9
9
10
10
#include <linux/bits.h>
11
11
#include <linux/serial_8250.h>
12
- #include <linux/serial_reg .h>
12
+ #include <linux/serial_core .h>
13
13
#include <linux/dmaengine.h>
14
14
15
15
#include "../serial_mctrl_gpio.h"
@@ -93,13 +93,20 @@ struct serial8250_config {
93
93
#define UART_BUG_THRE BIT(3) /* UART has buggy THRE reassertion */
94
94
#define UART_BUG_TXRACE BIT(5) /* UART Tx fails to set remote DR */
95
95
96
+ /* Module parameters */
97
+ #define UART_NR CONFIG_SERIAL_8250_NR_UARTS
98
+
99
+ extern unsigned int nr_uarts ;
96
100
97
101
#ifdef CONFIG_SERIAL_8250_SHARE_IRQ
98
102
#define SERIAL8250_SHARE_IRQS 1
99
103
#else
100
104
#define SERIAL8250_SHARE_IRQS 0
101
105
#endif
102
106
107
+ extern unsigned int share_irqs ;
108
+ extern unsigned int skip_txen_test ;
109
+
103
110
#define SERIAL8250_PORT_FLAGS (_base , _irq , _flags ) \
104
111
{ \
105
112
.iobase = _base, \
@@ -111,7 +118,19 @@ struct serial8250_config {
111
118
112
119
#define SERIAL8250_PORT (_base , _irq ) SERIAL8250_PORT_FLAGS(_base, _irq, 0)
113
120
121
+ extern struct uart_driver serial8250_reg ;
122
+ void serial8250_register_ports (struct uart_driver * drv , struct device * dev );
123
+
124
+ /* Legacy ISA bus related APIs */
125
+ typedef void (* serial8250_isa_config_fn )(int , struct uart_port * , u32 * );
126
+ extern serial8250_isa_config_fn serial8250_isa_config ;
127
+
128
+ void serial8250_isa_init_ports (void );
129
+
130
+ extern struct platform_device * serial8250_isa_devs ;
131
+
114
132
extern const struct uart_ops * univ8250_port_base_ops ;
133
+ extern struct uart_ops univ8250_port_ops ;
115
134
116
135
static inline int serial_in (struct uart_8250_port * up , int offset )
117
136
{
@@ -201,6 +220,7 @@ static inline bool serial8250_clear_THRI(struct uart_8250_port *up)
201
220
return true;
202
221
}
203
222
223
+ struct uart_8250_port * serial8250_setup_port (int index );
204
224
struct uart_8250_port * serial8250_get_port (int line );
205
225
206
226
void serial8250_rpm_get (struct uart_8250_port * p );
0 commit comments