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 defined(CONFIG_SYS_SC520)
31 extern struct serial_device serial0_device;
32 extern struct serial_device serial1_device;
33 #if defined(CONFIG_SYS_NS16550_SERIAL)
34 extern struct serial_device eserial1_device;
35 extern struct serial_device eserial2_device;
36 extern struct serial_device eserial3_device;
37 extern struct serial_device eserial4_device;
38 #endif /* CONFIG_SYS_NS16550_SERIAL */
42 #if defined(CONFIG_MPC512X)
43 extern struct serial_device serial1_device;
44 extern struct serial_device serial3_device;
45 extern struct serial_device serial4_device;
46 extern struct serial_device serial6_device;
49 #if defined(CONFIG_S3C2410)
50 extern struct serial_device s3c24xx_serial0_device;
51 extern struct serial_device s3c24xx_serial1_device;
52 extern struct serial_device s3c24xx_serial2_device;
55 #if defined(CONFIG_S5P)
56 extern struct serial_device s5p_serial0_device;
57 extern struct serial_device s5p_serial1_device;
58 extern struct serial_device s5p_serial2_device;
59 extern struct serial_device s5p_serial3_device;
62 #if defined(CONFIG_OMAP3_ZOOM2)
63 extern struct serial_device zoom2_serial_device0;
64 extern struct serial_device zoom2_serial_device1;
65 extern struct serial_device zoom2_serial_device2;
66 extern struct serial_device zoom2_serial_device3;
69 extern struct serial_device serial_ffuart_device;
70 extern struct serial_device serial_btuart_device;
71 extern struct serial_device serial_stuart_device;
73 extern void serial_initialize(void);
74 extern void serial_stdio_init(void);
75 extern int serial_assign(char * name);
76 extern void serial_reinit_all(void);
81 extern int usbtty_getc(void);
82 extern void usbtty_putc(const char c);
83 extern void usbtty_puts(const char *str);
84 extern int usbtty_tstc(void);
89 #define usbtty_getc() 0
90 #define usbtty_putc(a)
91 #define usbtty_puts(a)
92 #define usbtty_tstc() 0
94 #endif /* CONFIG_USB_TTY */
96 #if defined(CONFIG_MPC512X) && defined(CONFIG_SERIAL_MULTI)
97 extern struct stdio_dev *open_port(int num, int baudrate);
98 extern int close_port(int num);
99 extern int write_port(struct stdio_dev *port, char *buf);
100 extern int read_port(struct stdio_dev *port, char *buf, int size);