00001 #ifndef _DEV_RTLREGS_H_
00002 #define _DEV_RTLREGS_H_
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00105
00106
00107
00108
00109 #define NIC_CR 0x00
00110 #define NIC_IOPORT 0x10
00111 #define NIC_RESET 0x1f
00113
00114
00115
00116 #define NIC_PG0_CLDA0 0x01
00117 #define NIC_PG0_PSTART 0x01
00118 #define NIC_PG0_CLDA1 0x02
00119 #define NIC_PG0_PSTOP 0x02
00120 #define NIC_PG0_BNRY 0x03
00121 #define NIC_PG0_TSR 0x04
00122 #define NIC_PG0_TPSR 0x04
00123 #define NIC_PG0_NCR 0x05
00124 #define NIC_PG0_TBCR0 0x05
00125 #define NIC_PG0_FIFO 0x06
00126 #define NIC_PG0_TBCR1 0x06
00127 #define NIC_PG0_ISR 0x07
00128 #define NIC_PG0_CRDA0 0x08
00129 #define NIC_PG0_RSAR0 0x08
00131 #define NIC_PG0_CRDA1 0x09
00132 #define NIC_PG0_RSAR1 0x09
00134 #define NIC_PG0_RBCR0 0x0a
00137 #define NIC_PG0_RBCR1 0x0b
00140 #define NIC_PG0_RSR 0x0c
00141 #define NIC_PG0_RCR 0x0c
00142 #define NIC_PG0_CNTR0 0x0d
00143 #define NIC_PG0_TCR 0x0d
00144 #define NIC_PG0_CNTR1 0x0e
00145 #define NIC_PG0_DCR 0x0e
00146 #define NIC_PG0_CNTR2 0x0f
00147 #define NIC_PG0_IMR 0x0f
00149
00150
00151
00152 #define NIC_PG1_PAR0 0x01
00153 #define NIC_PG1_PAR1 0x02
00154 #define NIC_PG1_PAR2 0x03
00155 #define NIC_PG1_PAR3 0x04
00156 #define NIC_PG1_PAR4 0x05
00157 #define NIC_PG1_PAR5 0x06
00158 #define NIC_PG1_CURR 0x07
00161 #define NIC_PG1_MAR0 0x08
00162 #define NIC_PG1_MAR1 0x09
00163 #define NIC_PG1_MAR2 0x0a
00164 #define NIC_PG1_MAR3 0x0b
00165 #define NIC_PG1_MAR4 0x0c
00166 #define NIC_PG1_MAR5 0x0d
00167 #define NIC_PG1_MAR6 0x0e
00168 #define NIC_PG1_MAR7 0x0f
00170
00171
00172
00173 #define NIC_PG2_PSTART 0x01
00174 #define NIC_PG2_CLDA0 0x01
00175 #define NIC_PG2_PSTOP 0x02
00176 #define NIC_PG2_CLDA1 0x02
00177 #define NIC_PG2_RNP 0x03
00178 #define NIC_PG2_TSPR 0x04
00179 #define NIC_PG2_LNP 0x05
00180 #define NIC_PG2_ACU 0x06
00181 #define NIC_PG2_ACL 0x07
00182 #define NIC_PG2_RCR 0x0c
00183 #define NIC_PG2_TCR 0x0d
00184 #define NIC_PG2_DCR 0x0e
00185 #define NIC_PG2_IMR 0x0f
00187
00188
00189
00190 #define NIC_PG3_EECR 0x01
00191 #define NIC_PG3_BPAGE 0x02
00192 #define NIC_PG3_CONFIG0 0x03
00193 #define NIC_PG3_CONFIG1 0x04
00194 #define NIC_PG3_CONFIG2 0x05
00195 #define NIC_PG3_CONFIG3 0x06
00196 #define NIC_PG3_CSNSAV 0x08
00197 #define NIC_PG3_HLTCLK 0x09
00198 #define NIC_PG3_INTR 0x0b
00200
00201
00202
00203 #define NIC_CR_STP 0x01
00204 #define NIC_CR_STA 0x02
00205 #define NIC_CR_TXP 0x04
00206 #define NIC_CR_RD0 0x08
00207 #define NIC_CR_RD1 0x10
00208 #define NIC_CR_RD2 0x20
00209 #define NIC_CR_PS0 0x40
00210 #define NIC_CR_PS1 0x80
00212
00213
00214
00215 #define NIC_ISR_PRX 0x01
00216 #define NIC_ISR_PTX 0x02
00217 #define NIC_ISR_RXE 0x04
00218 #define NIC_ISR_TXE 0x08
00219 #define NIC_ISR_OVW 0x10
00220 #define NIC_ISR_CNT 0x20
00221 #define NIC_ISR_RDC 0x40
00222 #define NIC_ISR_RST 0x80
00224
00225
00226
00227 #define NIC_IMR_PRXE 0x01
00228 #define NIC_IMR_PTXE 0x02
00229 #define NIC_IMR_RXEE 0x04
00230 #define NIC_IMR_TXEE 0x08
00231 #define NIC_IMR_OVWE 0x10
00232 #define NIC_IMR_CNTE 0x20
00233 #define NIC_IMR_RCDE 0x40
00235
00236
00237
00238 #define NIC_DCR_WTS 0x01
00239 #define NIC_DCR_BOS 0x02
00240 #define NIC_DCR_LAS 0x04
00241 #define NIC_DCR_LS 0x08
00242 #define NIC_DCR_AR 0x10
00243 #define NIC_DCR_FT0 0x20
00244 #define NIC_DCR_FT1 0x40
00246
00247
00248
00249 #define NIC_TCR_CRC 0x01
00250 #define NIC_TCR_LB0 0x02
00251 #define NIC_TCR_LB1 0x04
00252 #define NIC_TCR_ATD 0x08
00253 #define NIC_TCR_OFST 0x10
00255
00256
00257
00258 #define NIC_TSR_PTX 0x01
00259 #define NIC_TSR_COL 0x04
00260 #define NIC_TSR_ABT 0x08
00261 #define NIC_TSR_CRS 0x10
00262 #define NIC_TSR_FU 0x20
00263 #define NIC_TSR_CDH 0x40
00264 #define NIC_TSR_OWC 0x80
00266
00267
00268
00269 #define NIC_RCR_SEP 0x01
00270 #define NIC_RCR_AR 0x02
00271 #define NIC_RCR_AB 0x04
00272 #define NIC_RCR_AM 0x08
00273 #define NIC_RCR_PRO 0x10
00274 #define NIC_RCR_MON 0x20
00276
00277
00278
00279 #define NIC_RSR_PRX 0x01
00280 #define NIC_RSR_CRC 0x02
00281 #define NIC_RSR_FAE 0x04
00282 #define NIC_RSR_FO 0x08
00283 #define NIC_RSR_MPA 0x10
00284 #define NIC_RSR_PHY 0x20
00285 #define NIC_RSR_DIS 0x40
00286 #define NIC_RSR_DFR 0x80
00288
00289
00290
00291 #define NIC_EECR_EEM1 0x80
00292 #define NIC_EECR_EEM0 0x40
00297 #define NIC_EECR_EECS 0x08
00298 #define NIC_EECR_EESK 0x04
00299 #define NIC_EECR_EEDI 0x02
00300 #define NIC_EECR_EEDO 0x01
00302
00303
00304
00305 #define NIC_CONFIG2_PL1 0x80
00306 #define NIC_CONFIG2_PL0 0x40
00311 #define NIC_CONFIG2_BSELB 0x20
00312 #define NIC_CONFIG2_BS4 0x10
00313 #define NIC_CONFIG2_BS3 0x08
00314 #define NIC_CONFIG2_BS2 0x04
00315 #define NIC_CONFIG2_BS1 0x02
00316 #define NIC_CONFIG2_BS0 0x01
00317
00318
00319
00320
00321 #define NIC_CONFIG3_PNP 0x80
00322 #define NIC_CONFIG3_FUDUP 0x40
00323 #define NIC_CONFIG3_LEDS1 0x20
00326 #define NIC_CONFIG3_LEDS0 0x10
00329 #define NIC_CONFIG3_SLEEP 0x04
00330 #define NIC_CONFIG3_PWRDN 0x02
00331 #define NIC_CONFIG3_ACTIVEB 0x01
00334
00335
00338 #define nic_read(reg) *(base + (reg))
00339
00343 #define nic_write(reg, data) *(base + (reg)) = data
00344
00345 #endif