Go to the documentation of this file.
31 #include <linux/time.h>
35 #include <linux/types.h>
39 #define NSC_FORCE_DONGLE_TYPE9 0x00000001
42 #define DMA_TX_MODE 0x08
43 #define DMA_RX_MODE 0x04
46 #define CFG_108_BAIC 0x00
47 #define CFG_108_CSRT 0x01
48 #define CFG_108_MCTL 0x02
51 #define CFG_338_FER 0x00
52 #define CFG_338_FAR 0x01
53 #define CFG_338_PTR 0x02
54 #define CFG_338_PNP0 0x1b
55 #define CFG_338_PNP1 0x1c
56 #define CFG_338_PNP3 0x4f
59 #define CFG_39X_LDN 0x07
60 #define CFG_39X_SIOCF1 0x21
61 #define CFG_39X_ACT 0x30
62 #define CFG_39X_BASEH 0x60
63 #define CFG_39X_BASEL 0x61
64 #define CFG_39X_IRQNUM 0x70
65 #define CFG_39X_IRQSEL 0x71
66 #define CFG_39X_DMA0 0x74
67 #define CFG_39X_DMA1 0x75
68 #define CFG_39X_SPC 0xF0
80 #define IER_RXHDL_IE 0x01
81 #define IER_TXLDL_IE 0x02
82 #define IER_LS_IE 0x04//* Link Status Interrupt */
83 #define IER_ETXURI 0x04
84 #define IER_DMA_IE 0x10
85 #define IER_TXEMP_IE 0x20
86 #define IER_SFIF_IE 0x40
87 #define IER_TMR_IE 0x80
90 #define FCR_FIFO_EN 0x01
97 #define EIR_RXHDL_EV 0x01
98 #define EIR_TXLDL_EV 0x02
99 #define EIR_LS_EV 0x04
100 #define EIR_DMA_EV 0x10
101 #define EIR_TXEMP_EV 0x20
102 #define EIR_SFIF_EV 0x40
103 #define EIR_TMR_EV 0x80
106 #define LCR_WLS_8 0x03
109 #define BSR_BKSE 0x80
110 #define BANK0 LCR_WLS_8
120 #define MCR_MODE_MASK ~(0xd0)
121 #define MCR_UART 0x00
122 #define MCR_RESERVED 0x20
123 #define MCR_SHARP_IR 0x40
127 #define MCR_CEIR 0xb0
128 #define MCR_IR_PLS 0x10
129 #define MCR_DMA_EN 0x04
130 #define MCR_EN_IRQ 0x08
131 #define MCR_TX_DFR 0x08
134 #define LSR_RXDA 0x01
135 #define LSR_TXRDY 0x20
136 #define LSR_TXEMP 0x40
139 #define ASCR_RXF_TOUT 0x01
140 #define ASCR_FEND_INF 0x02
141 #define ASCR_S_EOT 0x04
142 #define ASCT_RXBSY 0x20
143 #define ASCR_TXUR 0x40
144 #define ASCR_CTE 0x80
151 #define ECR1_EXT_SL 0x01
152 #define ECR1_DMANF 0x02
153 #define ECR1_DMATH 0x04
154 #define ECR1_DMASWP 0x08
157 #define EXCR2_TFSIZ 0x01
158 #define EXCR2_RFSIZ 0x04
170 #define IRCR1_TMR_EN 0x01
179 #define IRCR2_MDRS 0x04
180 #define IRCR2_FEND_MD 0x20
183 #define FRM_ST_VLD 0x80
184 #define FRM_ST_ERR_MSK 0x5f
185 #define FRM_ST_LOST_FR 0x40
186 #define FRM_ST_MAX_LEN 0x10
187 #define FRM_ST_PHY_ERR 0x08
188 #define FRM_ST_BAD_CRC 0x04
189 #define FRM_ST_OVR1 0x02
190 #define FRM_ST_OVR2 0x01
197 #define IR_CFG2_DIS_CRC 0x02
201 #define IRM_CR_IRX_MSL 0x40
202 #define IRM_CR_AF_MNT 0x80
224 #define MAX_TX_WINDOW 7
225 #define MAX_RX_WINDOW 7
277 static inline void switch_bank(
int iobase,
int bank)