13 void (*setbrg) (void);
16 void (*putc) (const char c);
17 void (*puts) (const char *s);
18 #if CONFIG_POST & CONFIG_SYS_POST_UART
22 struct serial_device *next;
25 extern struct serial_device serial_smc_device;
26 extern struct serial_device serial_scc_device;
27 extern struct serial_device * default_serial_console (void);
29 #if defined(CONFIG_405GP) || defined(CONFIG_405CR) || defined(CONFIG_440) || \
30 defined(CONFIG_405EP) || defined(CONFIG_405EZ) || defined(CONFIG_405EX) || \
31 defined(CONFIG_MB86R0x) || defined(CONFIG_MPC5xxx) || \
32 defined(CONFIG_MPC83xx) || defined(CONFIG_MPC85xx) || \
33 defined(CONFIG_MPC86xx) || defined(CONFIG_SYS_SC520) || \
34 defined(CONFIG_TEGRA2)
35 extern struct serial_device serial0_device;
36 extern struct serial_device serial1_device;
37 #if defined(CONFIG_SYS_NS16550_SERIAL)
38 extern struct serial_device eserial1_device;
39 extern struct serial_device eserial2_device;
40 extern struct serial_device eserial3_device;
41 extern struct serial_device eserial4_device;
42 #endif /* CONFIG_SYS_NS16550_SERIAL */
46 #if defined(CONFIG_MPC512X)
47 extern struct serial_device serial1_device;
48 extern struct serial_device serial3_device;
49 extern struct serial_device serial4_device;
50 extern struct serial_device serial6_device;
53 #if defined(CONFIG_S3C2410)
54 extern struct serial_device s3c24xx_serial0_device;
55 extern struct serial_device s3c24xx_serial1_device;
56 extern struct serial_device s3c24xx_serial2_device;
59 #if defined(CONFIG_S5P)
60 extern struct serial_device s5p_serial0_device;
61 extern struct serial_device s5p_serial1_device;
62 extern struct serial_device s5p_serial2_device;
63 extern struct serial_device s5p_serial3_device;
66 #if defined(CONFIG_OMAP3_ZOOM2)
67 extern struct serial_device zoom2_serial_device0;
68 extern struct serial_device zoom2_serial_device1;
69 extern struct serial_device zoom2_serial_device2;
70 extern struct serial_device zoom2_serial_device3;
73 extern struct serial_device serial_ffuart_device;
74 extern struct serial_device serial_btuart_device;
75 extern struct serial_device serial_stuart_device;
77 extern void serial_initialize(void);
78 extern void serial_stdio_init(void);
79 extern int serial_assign(char * name);
80 extern void serial_reinit_all(void);
85 extern int usbtty_getc(void);
86 extern void usbtty_putc(const char c);
87 extern void usbtty_puts(const char *str);
88 extern int usbtty_tstc(void);
93 #define usbtty_getc() 0
94 #define usbtty_putc(a)
95 #define usbtty_puts(a)
96 #define usbtty_tstc() 0
98 #endif /* CONFIG_USB_TTY */
100 #if defined(CONFIG_MPC512X) && defined(CONFIG_SERIAL_MULTI)
101 extern struct stdio_dev *open_port(int num, int baudrate);
102 extern int close_port(int num);
103 extern int write_port(struct stdio_dev *port, char *buf);
104 extern int read_port(struct stdio_dev *port, char *buf, int size);