aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/8250/8250.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/tty/serial/8250/8250.h')
-rw-r--r--drivers/tty/serial/8250/8250.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/tty/serial/8250/8250.h b/drivers/tty/serial/8250/8250.h
index d54dcd87c67e..047a7ba6796a 100644
--- a/drivers/tty/serial/8250/8250.h
+++ b/drivers/tty/serial/8250/8250.h
@@ -92,6 +92,18 @@ struct serial8250_config {
92#define SERIAL8250_SHARE_IRQS 0 92#define SERIAL8250_SHARE_IRQS 0
93#endif 93#endif
94 94
95#define SERIAL8250_PORT_FLAGS(_base, _irq, _flags) \
96 { \
97 .iobase = _base, \
98 .irq = _irq, \
99 .uartclk = 1843200, \
100 .iotype = UPIO_PORT, \
101 .flags = UPF_BOOT_AUTOCONF | (_flags), \
102 }
103
104#define SERIAL8250_PORT(_base, _irq) SERIAL8250_PORT_FLAGS(_base, _irq, 0)
105
106
95static inline int serial_in(struct uart_8250_port *up, int offset) 107static inline int serial_in(struct uart_8250_port *up, int offset)
96{ 108{
97 return up->port.serial_in(&up->port, offset); 109 return up->port.serial_in(&up->port, offset);
@@ -117,6 +129,8 @@ static inline void serial_dl_write(struct uart_8250_port *up, int value)
117struct uart_8250_port *serial8250_get_port(int line); 129struct uart_8250_port *serial8250_get_port(int line);
118void serial8250_rpm_get(struct uart_8250_port *p); 130void serial8250_rpm_get(struct uart_8250_port *p);
119void serial8250_rpm_put(struct uart_8250_port *p); 131void serial8250_rpm_put(struct uart_8250_port *p);
132int serial8250_em485_init(struct uart_8250_port *p);
133void serial8250_em485_destroy(struct uart_8250_port *p);
120 134
121#if defined(__alpha__) && !defined(CONFIG_PCI) 135#if defined(__alpha__) && !defined(CONFIG_PCI)
122/* 136/*