1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16#include <linux/serial_8250.h>
17
18struct old_serial_port {
19 unsigned int uart;
20 unsigned int baud_base;
21 unsigned int port;
22 unsigned int irq;
23 unsigned int flags;
24 unsigned char hub6;
25 unsigned char io_type;
26 unsigned char *iomem_base;
27 unsigned short iomem_reg_shift;
28};
29
30
31
32
33struct serial8250_config {
34 const char *name;
35 unsigned short fifo_size;
36 unsigned short tx_loadsz;
37 unsigned char fcr;
38 unsigned int flags;
39};
40
41#define UART_CAP_FIFO (1 << 8)
42#define UART_CAP_EFR (1 << 9)
43#define UART_CAP_SLEEP (1 << 10)
44#define UART_CAP_AFE (1 << 11)
45#define UART_CAP_UUE (1 << 12)
46
47#define UART_BUG_QUOT (1 << 0)
48#define UART_BUG_TXEN (1 << 1)
49#define UART_BUG_NOMSR (1 << 2)
50#define UART_BUG_THRE (1 << 3)
51
52#define PROBE_RSA (1 << 0)
53#define PROBE_ANY (~0)
54
55#define HIGH_BITS_OFFSET ((sizeof(long)-sizeof(int))*8)
56
57#ifdef CONFIG_SERIAL_8250_SHARE_IRQ
58#define SERIAL8250_SHARE_IRQS 1
59#else
60#define SERIAL8250_SHARE_IRQS 0
61#endif
62
63#if defined(__alpha__) && !defined(CONFIG_PCI)
64
65
66
67
68
69#define ALPHA_KLUDGE_MCR (UART_MCR_OUT2 | UART_MCR_OUT1)
70#elif defined(CONFIG_SBC8560)
71
72
73
74
75
76#define ALPHA_KLUDGE_MCR (UART_MCR_OUT2)
77#else
78#define ALPHA_KLUDGE_MCR 0
79#endif
80