Go to the documentation of this file.
25 #include <linux/time.h>
29 #include <linux/types.h>
47 #define FIR_LCR_A 0x03
48 #define FIR_LCR_B 0x04
55 #define IER_TIMER 0x20
61 #define IIR_TIMER 0x20
66 #define LCR_A_FIFO_RESET 0x80
70 #define LCR_B_SIP 0x20
71 #define LCR_B_TX_MODE 0x40
72 #define LCR_B_RX_MODE 0x80
75 #define LSR_FIR_LSA 0x00
76 #define LSR_FRAME_ABORT 0x08
77 #define LSR_CRC_ERROR 0x10
78 #define LSR_SIZE_ERROR 0x20
79 #define LSR_FRAME_ERROR 0x40
80 #define LSR_FIFO_UR 0x80
81 #define LSR_FIFO_OR 0x80
84 #define BSR_FIFO_NOT_EMPTY 0x80
88 #define FIR_FIFO_TR 0x01
89 #define FIR_DMA_TR 0x02
90 #define FIR_TIMER_IIR 0x03
91 #define FIR_FIFO_FR 0x03
92 #define FIR_FIFO_RAR 0x04
93 #define FIR_FIFO_WAR 0x05
97 #define CR_DMA_EN 0x01
98 #define CR_DMA_BURST 0x02
99 #define CR_TIMER_EN 0x08
102 #define TIMER_IIR_500 0x00
103 #define TIMER_IIR_1ms 0x01
104 #define TIMER_IIR_2ms 0x02
105 #define TIMER_IIR_4ms 0x03
108 #define FIR_IRDA_CR 0x00
109 #define FIR_BOF_CR 0x01
110 #define FIR_BW_CR 0x02
111 #define FIR_TX_DSR_HI 0x03
112 #define FIR_TX_DSR_LO 0x04
113 #define FIR_RX_DSR_HI 0x05
114 #define FIR_RX_DSR_LO 0x06
117 #define IRDA_CR_HDLC1152 0x80
118 #define IRDA_CR_CRC 0X40
119 #define IRDA_CR_HDLC 0x20
120 #define IRDA_CR_HP_MODE 0x10
121 #define IRDA_CR_SD_ST 0x08
122 #define IRDA_CR_FIR_SIN 0x04
123 #define IRDA_CR_ITTX_0 0x02
124 #define IRDA_CR_ITTX_1 0x03
127 #define FIR_ID_VR 0x00
128 #define FIR_MODULE_CR 0x01
129 #define FIR_IO_BASE_HI 0x02
130 #define FIR_IO_BASE_LO 0x03
131 #define FIR_IRQ_CR 0x04
132 #define FIR_DMA_CR 0x05
148 #define DMA_TX_MODE 0x08
149 #define DMA_RX_MODE 0x04
151 #define MAX_TX_WINDOW 7
152 #define MAX_RX_WINDOW 7
154 #define TX_FIFO_Threshold 8
155 #define RX_FIFO_Threshold 1
156 #define TX_DMA_Threshold 1
157 #define RX_DMA_Threshold 1
223 static inline void switch_bank(
int iobase,
int bank)