13 void (*setbrg) (void);
16 void (*putc) (const char c);
17 void (*puts) (const char *s);
19 struct serial_device *next;
22 extern struct serial_device serial_smc_device;
23 extern struct serial_device serial_scc_device;
24 extern struct serial_device * default_serial_console (void);
26 #if defined(CONFIG_405GP) || defined(CONFIG_405CR) || defined(CONFIG_440) || \
27 defined(CONFIG_405EP) || defined(CONFIG_405EZ) || defined(CONFIG_405EX) || \
28 defined(CONFIG_MPC5xxx) || defined(CONFIG_MPC83xx) || \
29 defined(CONFIG_MPC85xx) || defined(CONFIG_MPC86xx)
30 extern struct serial_device serial0_device;
31 extern struct serial_device serial1_device;
32 #if defined(CONFIG_SYS_NS16550_SERIAL)
33 extern struct serial_device eserial1_device;
34 extern struct serial_device eserial2_device;
35 extern struct serial_device eserial3_device;
36 extern struct serial_device eserial4_device;
37 #endif /* CONFIG_SYS_NS16550_SERIAL */
41 #if defined(CONFIG_S3C2410)
42 extern struct serial_device s3c24xx_serial0_device;
43 extern struct serial_device s3c24xx_serial1_device;
44 extern struct serial_device s3c24xx_serial2_device;
47 #if defined(CONFIG_S5PC1XX)
48 extern struct serial_device s5pc1xx_serial0_device;
49 extern struct serial_device s5pc1xx_serial1_device;
50 extern struct serial_device s5pc1xx_serial2_device;
51 extern struct serial_device s5pc1xx_serial3_device;
54 #if defined(CONFIG_OMAP3_ZOOM2)
55 extern struct serial_device zoom2_serial_device0;
56 extern struct serial_device zoom2_serial_device1;
57 extern struct serial_device zoom2_serial_device2;
58 extern struct serial_device zoom2_serial_device3;
61 extern struct serial_device serial_ffuart_device;
62 extern struct serial_device serial_btuart_device;
63 extern struct serial_device serial_stuart_device;
65 extern void serial_initialize(void);
66 extern void serial_stdio_init(void);
67 extern int serial_assign(char * name);
68 extern void serial_reinit_all(void);
73 extern int usbtty_getc(void);
74 extern void usbtty_putc(const char c);
75 extern void usbtty_puts(const char *str);
76 extern int usbtty_tstc(void);
81 #define usbtty_getc() 0
82 #define usbtty_putc(a)
83 #define usbtty_puts(a)
84 #define usbtty_tstc() 0
86 #endif /* CONFIG_USB_TTY */