7 /* enough bytes to match alignment of following func pointer */
15 void (*putc)(const char c);
16 void (*puts)(const char *s);
17 #if CONFIG_POST & CONFIG_SYS_POST_UART
20 struct serial_device *next;
23 extern struct serial_device serial_smc_device;
24 extern struct serial_device serial_scc_device;
25 extern struct serial_device *default_serial_console(void);
27 #if defined(CONFIG_405GP) || defined(CONFIG_405CR) || \
28 defined(CONFIG_405EP) || defined(CONFIG_405EZ) || \
29 defined(CONFIG_405EX) || defined(CONFIG_440) || \
30 defined(CONFIG_MB86R0x) || defined(CONFIG_MPC5xxx) || \
31 defined(CONFIG_MPC83xx) || defined(CONFIG_MPC85xx) || \
32 defined(CONFIG_MPC86xx) || defined(CONFIG_SYS_SC520) || \
33 defined(CONFIG_TEGRA20) || defined(CONFIG_SYS_COREBOOT) || \
34 defined(CONFIG_MICROBLAZE)
35 extern struct serial_device serial0_device;
36 extern struct serial_device serial1_device;
39 extern struct serial_device eserial1_device;
40 extern struct serial_device eserial2_device;
42 extern void serial_register(struct serial_device *);
43 extern void serial_initialize(void);
44 extern void serial_stdio_init(void);
45 extern int serial_assign(const char *name);
46 extern void serial_reinit_all(void);
51 extern int usbtty_getc(void);
52 extern void usbtty_putc(const char c);
53 extern void usbtty_puts(const char *str);
54 extern int usbtty_tstc(void);
59 #define usbtty_getc() 0
60 #define usbtty_putc(a)
61 #define usbtty_puts(a)
62 #define usbtty_tstc() 0
64 #endif /* CONFIG_USB_TTY */
66 #if defined(CONFIG_MPC512X)
67 extern struct stdio_dev *open_port(int num, int baudrate);
68 extern int close_port(int num);
69 extern int write_port(struct stdio_dev *port, char *buf);
70 extern int read_port(struct stdio_dev *port, char *buf, int size);