11 #ifndef _MN10300_SERIAL_H
12 #define _MN10300_SERIAL_H
15 #include <linux/serial_core.h>
20 #include <asm/serial-regs.h>
24 #define MNSC_BUFFER_SIZE +(PAGE_SIZE / 2)
27 #define MNSCx_RX_AVAIL 0x01
28 #define MNSCx_RX_OVERF 0x02
29 #define MNSCx_TX_SPACE 0x04
30 #define MNSCx_TX_EMPTY 0x08
72 #define MNSCx_CLOCK_SRC_IOCLK 0
73 #define MNSCx_CLOCK_SRC_IOBCLK 1
76 #define MNSCx_DIV_TIMER_16BIT 0
77 #define MNSCx_DIV_TIMER_8BIT 1
80 #define MNSCx_OPT_CTS 0x0001
85 #ifdef CONFIG_MN10300_TTYSM0
89 #ifdef CONFIG_MN10300_TTYSM1
93 #ifdef CONFIG_MN10300_TTYSM2
112 #if defined(CONFIG_GDBSTUB_ON_TTYSM0)
113 #define SCgSTR SC0STR
114 #define SCgRXB SC0RXB
115 #define SCgRXIRQ SC0RXIRQ
116 #elif defined(CONFIG_GDBSTUB_ON_TTYSM1)
117 #define SCgSTR SC1STR
118 #define SCgRXB SC1RXB
119 #define SCgRXIRQ SC1RXIRQ
120 #elif defined(CONFIG_GDBSTUB_ON_TTYSM2)
121 #define SCgSTR SC2STR
122 #define SCgRXB SC2RXB
123 #define SCgRXIRQ SC2RXIRQ