Lines Matching +full:0 +full:x00002000
39 #define DC_BUSCTL 0x00 /* bus control */
40 #define DC_TXSTART 0x08 /* tx start demand */
41 #define DC_RXSTART 0x10 /* rx start demand */
42 #define DC_RXADDR 0x18 /* rx descriptor list start addr */
43 #define DC_TXADDR 0x20 /* tx descriptor list start addr */
44 #define DC_ISR 0x28 /* interrupt status register */
45 #define DC_NETCFG 0x30 /* network config register */
46 #define DC_IMR 0x38 /* interrupt mask */
47 #define DC_FRAMESDISCARDED 0x40 /* # of discarded frames */
48 #define DC_SIO 0x48 /* MII and ROM/EEPROM access */
49 #define DC_ROM 0x50 /* ROM programming address */
50 #define DC_TIMER 0x58 /* general timer */
51 #define DC_10BTSTAT 0x60 /* SIA status */
52 #define DC_SIARESET 0x68 /* SIA connectivity */
53 #define DC_10BTCTRL 0x70 /* SIA transmit and receive */
54 #define DC_WATCHDOG 0x78 /* SIA and general purpose port */
55 #define DC_SIAGP 0x78 /* SIA and general purpose port (X3201) */
67 #define DC_TYPE_98713 0x1
68 #define DC_TYPE_98713A 0x2
69 #define DC_TYPE_987x5 0x3
72 #define DC_TYPE_21143 0x4 /* Intel 21143 */
73 #define DC_TYPE_ASIX 0x5 /* ASIX AX88140A/AX88141 */
74 #define DC_TYPE_AL981 0x6 /* ADMtek AL981 Comet */
75 #define DC_TYPE_AN983 0x7 /* ADMtek AN983 Centaur */
76 #define DC_TYPE_DM9102 0x8 /* Davicom DM9102 */
77 #define DC_TYPE_PNICII 0x9 /* 82c115 PNIC II */
78 #define DC_TYPE_PNIC 0xA /* 82c168/82c169 PNIC I */
79 #define DC_TYPE_XIRCOM 0xB /* Xircom X3201 */
80 #define DC_TYPE_CONEXANT 0xC /* Conexant LANfinity RS7112 */
81 #define DC_TYPE_ULI_M5261 0xD /* ALi/ULi M5261 */
82 #define DC_TYPE_ULI_M5263 0xE /* ALi/ULi M5263 */
108 #define DC_PMODE_MII 0x1
109 #define DC_PMODE_SYM 0x2
110 #define DC_PMODE_SIA 0x3
115 #define DC_BUSCTL_RESET 0x00000001
116 #define DC_BUSCTL_ARBITRATION 0x00000002
117 #define DC_BUSCTL_SKIPLEN 0x0000007C
118 #define DC_BUSCTL_BUF_BIGENDIAN 0x00000080
119 #define DC_BUSCTL_BURSTLEN 0x00003F00
120 #define DC_BUSCTL_CACHEALIGN 0x0000C000
121 #define DC_BUSCTL_TXPOLL 0x000E0000
122 #define DC_BUSCTL_DBO 0x00100000
123 #define DC_BUSCTL_MRME 0x00200000
124 #define DC_BUSCTL_MRLE 0x00800000
125 #define DC_BUSCTL_MWIE 0x01000000
126 #define DC_BUSCTL_ONNOW_ENB 0x04000000
128 #define DC_SKIPLEN_1LONG 0x00000004
129 #define DC_SKIPLEN_2LONG 0x00000008
130 #define DC_SKIPLEN_3LONG 0x00000010
131 #define DC_SKIPLEN_4LONG 0x00000020
132 #define DC_SKIPLEN_5LONG 0x00000040
134 #define DC_CACHEALIGN_NONE 0x00000000
135 #define DC_CACHEALIGN_8LONG 0x00004000
136 #define DC_CACHEALIGN_16LONG 0x00008000
137 #define DC_CACHEALIGN_32LONG 0x0000C000
139 #define DC_BURSTLEN_USECA 0x00000000
140 #define DC_BURSTLEN_1LONG 0x00000100
141 #define DC_BURSTLEN_2LONG 0x00000200
142 #define DC_BURSTLEN_4LONG 0x00000400
143 #define DC_BURSTLEN_8LONG 0x00000800
144 #define DC_BURSTLEN_16LONG 0x00001000
145 #define DC_BURSTLEN_32LONG 0x00002000
147 #define DC_TXPOLL_OFF 0x00000000
148 #define DC_TXPOLL_1 0x00020000
149 #define DC_TXPOLL_2 0x00040000
150 #define DC_TXPOLL_3 0x00060000
151 #define DC_TXPOLL_4 0x00080000
152 #define DC_TXPOLL_5 0x000A0000
153 #define DC_TXPOLL_6 0x000C0000
154 #define DC_TXPOLL_7 0x000E0000
159 #define DC_ISR_TX_OK 0x00000001
160 #define DC_ISR_TX_IDLE 0x00000002
161 #define DC_ISR_TX_NOBUF 0x00000004
162 #define DC_ISR_TX_JABBERTIMEO 0x00000008
163 #define DC_ISR_LINKGOOD 0x00000010
164 #define DC_ISR_TX_UNDERRUN 0x00000020
165 #define DC_ISR_RX_OK 0x00000040
166 #define DC_ISR_RX_NOBUF 0x00000080
167 #define DC_ISR_RX_READ 0x00000100
168 #define DC_ISR_RX_WATDOGTIMEO 0x00000200
169 #define DC_ISR_TX_EARLY 0x00000400
170 #define DC_ISR_TIMER_EXPIRED 0x00000800
171 #define DC_ISR_LINKFAIL 0x00001000
172 #define DC_ISR_BUS_ERR 0x00002000
173 #define DC_ISR_RX_EARLY 0x00004000
174 #define DC_ISR_ABNORMAL 0x00008000
175 #define DC_ISR_NORMAL 0x00010000
176 #define DC_ISR_RX_STATE 0x000E0000
177 #define DC_ISR_TX_STATE 0x00700000
178 #define DC_ISR_BUSERRTYPE 0x03800000
179 #define DC_ISR_100MBPSLINK 0x08000000
180 #define DC_ISR_MAGICKPACK 0x10000000
182 #define DC_RXSTATE_STOPPED 0x00000000 /* 000 - Stopped */
183 #define DC_RXSTATE_FETCH 0x00020000 /* 001 - Fetching descriptor */
184 #define DC_RXSTATE_ENDCHECK 0x00040000 /* 010 - check for rx end */
185 #define DC_RXSTATE_WAIT 0x00060000 /* 011 - waiting for packet */
186 #define DC_RXSTATE_SUSPEND 0x00080000 /* 100 - suspend rx */
187 #define DC_RXSTATE_CLOSE 0x000A0000 /* 101 - close tx desc */
188 #define DC_RXSTATE_FLUSH 0x000C0000 /* 110 - flush from FIFO */
189 #define DC_RXSTATE_DEQUEUE 0x000E0000 /* 111 - dequeue from FIFO */
195 #define DC_TXSTATE_RESET 0x00000000 /* 000 - reset */
196 #define DC_TXSTATE_FETCH 0x00100000 /* 001 - fetching descriptor */
197 #define DC_TXSTATE_WAITEND 0x00200000 /* 010 - wait for tx end */
198 #define DC_TXSTATE_READING 0x00300000 /* 011 - read and enqueue */
199 #define DC_TXSTATE_RSVD 0x00400000 /* 100 - reserved */
200 #define DC_TXSTATE_SETUP 0x00500000 /* 101 - setup packet */
201 #define DC_TXSTATE_SUSPEND 0x00600000 /* 110 - suspend tx */
202 #define DC_TXSTATE_CLOSE 0x00700000 /* 111 - close tx desc */
207 #define DC_NETCFG_RX_HASHPERF 0x00000001
208 #define DC_NETCFG_RX_ON 0x00000002
209 #define DC_NETCFG_RX_HASHONLY 0x00000004
210 #define DC_NETCFG_RX_BADFRAMES 0x00000008
211 #define DC_NETCFG_RX_INVFILT 0x00000010
212 #define DC_NETCFG_BACKOFFCNT 0x00000020
213 #define DC_NETCFG_RX_PROMISC 0x00000040
214 #define DC_NETCFG_RX_ALLMULTI 0x00000080
215 #define DC_NETCFG_FULLDUPLEX 0x00000200
216 #define DC_NETCFG_LOOPBACK 0x00000C00
217 #define DC_NETCFG_FORCECOLL 0x00001000
218 #define DC_NETCFG_TX_ON 0x00002000
219 #define DC_NETCFG_TX_THRESH 0x0000C000
220 #define DC_NETCFG_TX_BACKOFF 0x00020000
221 #define DC_NETCFG_PORTSEL 0x00040000 /* 0 == 10, 1 == 100 */
222 #define DC_NETCFG_HEARTBEAT 0x00080000
223 #define DC_NETCFG_STORENFWD 0x00200000
224 #define DC_NETCFG_SPEEDSEL 0x00400000 /* 1 == 10, 0 == 100 */
225 #define DC_NETCFG_PCS 0x00800000
226 #define DC_NETCFG_SCRAMBLER 0x01000000
227 #define DC_NETCFG_NO_RXCRC 0x02000000
228 #define DC_NETCFG_RX_ALL 0x40000000
229 #define DC_NETCFG_CAPEFFECT 0x80000000
231 #define DC_OPMODE_NORM 0x00000000
232 #define DC_OPMODE_INTLOOP 0x00000400
233 #define DC_OPMODE_EXTLOOP 0x00000800
235 #if 0
236 #define DC_TXTHRESH_72BYTES 0x00000000
237 #define DC_TXTHRESH_96BYTES 0x00004000
238 #define DC_TXTHRESH_128BYTES 0x00008000
239 #define DC_TXTHRESH_160BYTES 0x0000C000
242 #define DC_TXTHRESH_MIN 0x00000000
243 #define DC_TXTHRESH_INC 0x00004000
244 #define DC_TXTHRESH_MAX 0x0000C000
250 #define DC_IMR_TX_OK 0x00000001
251 #define DC_IMR_TX_IDLE 0x00000002
252 #define DC_IMR_TX_NOBUF 0x00000004
253 #define DC_IMR_TX_JABBERTIMEO 0x00000008
254 #define DC_IMR_LINKGOOD 0x00000010
255 #define DC_IMR_TX_UNDERRUN 0x00000020
256 #define DC_IMR_RX_OK 0x00000040
257 #define DC_IMR_RX_NOBUF 0x00000080
258 #define DC_IMR_RX_READ 0x00000100
259 #define DC_IMR_RX_WATDOGTIMEO 0x00000200
260 #define DC_IMR_TX_EARLY 0x00000400
261 #define DC_IMR_TIMER_EXPIRED 0x00000800
262 #define DC_IMR_LINKFAIL 0x00001000
263 #define DC_IMR_BUS_ERR 0x00002000
264 #define DC_IMR_RX_EARLY 0x00004000
265 #define DC_IMR_ABNORMAL 0x00008000
266 #define DC_IMR_NORMAL 0x00010000
267 #define DC_IMR_100MBPSLINK 0x08000000
268 #define DC_IMR_MAGICKPACK 0x10000000
277 #define DC_SIO_EE_CS 0x00000001 /* EEPROM chip select */
278 #define DC_SIO_EE_CLK 0x00000002 /* EEPROM clock */
279 #define DC_SIO_EE_DATAIN 0x00000004 /* EEPROM data output */
280 #define DC_SIO_EE_DATAOUT 0x00000008 /* EEPROM data input */
281 #define DC_SIO_ROMDATA4 0x00000010
282 #define DC_SIO_ROMDATA5 0x00000020
283 #define DC_SIO_ROMDATA6 0x00000040
284 #define DC_SIO_ROMDATA7 0x00000080
285 #define DC_SIO_EESEL 0x00000800
286 #define DC_SIO_ROMSEL 0x00001000
287 #define DC_SIO_ROMCTL_WRITE 0x00002000
288 #define DC_SIO_ROMCTL_READ 0x00004000
289 #define DC_SIO_MII_CLK 0x00010000 /* MDIO clock */
290 #define DC_SIO_MII_DATAOUT 0x00020000 /* MDIO data out */
291 #define DC_SIO_MII_DIR 0x00040000 /* MDIO dir */
292 #define DC_SIO_MII_DATAIN 0x00080000 /* MDIO data in */
294 #define DC_EECMD_WRITE 0x140
295 #define DC_EECMD_READ 0x180
296 #define DC_EECMD_ERASE 0x1c0
298 #define DC_EE_NODEADDR_OFFSET 0x70
304 #define DC_TIMER_VALUE 0x0000FFFF
305 #define DC_TIMER_CONTINUOUS 0x00010000
310 #define DC_TSTAT_MIIACT 0x00000001 /* MII port activity */
311 #define DC_TSTAT_LS100 0x00000002 /* link status of 100baseTX */
312 #define DC_TSTAT_LS10 0x00000004 /* link status of 10baseT */
313 #define DC_TSTAT_AUTOPOLARITY 0x00000008
314 #define DC_TSTAT_AUIACT 0x00000100 /* AUI activity */
315 #define DC_TSTAT_10BTACT 0x00000200 /* 10baseT activity */
316 #define DC_TSTAT_NSN 0x00000400 /* non-stable FLPs detected */
317 #define DC_TSTAT_REMFAULT 0x00000800
318 #define DC_TSTAT_ANEGSTAT 0x00007000
319 #define DC_TSTAT_LP_CAN_NWAY 0x00008000 /* link partner supports NWAY */
320 #define DC_TSTAT_LPCODEWORD 0xFFFF0000 /* link partner's code word */
322 #define DC_ASTAT_DISABLE 0x00000000
323 #define DC_ASTAT_TXDISABLE 0x00001000
324 #define DC_ASTAT_ABDETECT 0x00002000
325 #define DC_ASTAT_ACKDETECT 0x00003000
326 #define DC_ASTAT_CMPACKDETECT 0x00004000
327 #define DC_ASTAT_AUTONEGCMP 0x00005000
328 #define DC_ASTAT_LINKCHECK 0x00006000
333 #define DC_SIA_RESET 0x00000001
334 #define DC_SIA_AUI 0x00000008 /* AUI or 10baseT */
339 #define DC_TCTL_ENCODER_ENB 0x00000001
340 #define DC_TCTL_LOOPBACK 0x00000002
341 #define DC_TCTL_DRIVER_ENB 0x00000004
342 #define DC_TCTL_LNKPULSE_ENB 0x00000008
343 #define DC_TCTL_HALFDUPLEX 0x00000040
344 #define DC_TCTL_AUTONEGENBL 0x00000080
345 #define DC_TCTL_RX_SQUELCH 0x00000100
346 #define DC_TCTL_COLL_SQUELCH 0x00000200
347 #define DC_TCTL_COLL_DETECT 0x00000400
348 #define DC_TCTL_SQE_ENB 0x00000800
349 #define DC_TCTL_LINKTEST 0x00001000
350 #define DC_TCTL_AUTOPOLARITY 0x00002000
351 #define DC_TCTL_SET_POL_PLUS 0x00004000
352 #define DC_TCTL_AUTOSENSE 0x00008000 /* 10bt/AUI autosense */
353 #define DC_TCTL_100BTXHALF 0x00010000
354 #define DC_TCTL_100BTXFULL 0x00020000
355 #define DC_TCTL_100BT4 0x00040000
360 #define DC_WDOG_JABBERDIS 0x00000001
361 #define DC_WDOG_HOSTUNJAB 0x00000002
362 #define DC_WDOG_JABBERCLK 0x00000004
363 #define DC_WDOG_RXWDOGDIS 0x00000010
364 #define DC_WDOG_RXWDOGCLK 0x00000020
365 #define DC_WDOG_MUSTBEZERO 0x00000100
366 #define DC_WDOG_AUIBNC 0x00100000
367 #define DC_WDOG_ACTIVITY 0x00200000
368 #define DC_WDOG_RX_MATCH 0x00400000
369 #define DC_WDOG_LINK 0x00800000
370 #define DC_WDOG_CTLWREN 0x08000000
375 #define DC_SIAGP_RXMATCH 0x40000000
376 #define DC_SIAGP_INT1 0x20000000
377 #define DC_SIAGP_INT0 0x10000000
378 #define DC_SIAGP_WRITE_EN 0x08000000
379 #define DC_SIAGP_RXMATCH_EN 0x04000000
380 #define DC_SIAGP_INT1_EN 0x02000000
381 #define DC_SIAGP_INT0_EN 0x01000000
382 #define DC_SIAGP_LED3 0x00800000
383 #define DC_SIAGP_LED2 0x00400000
384 #define DC_SIAGP_LED1 0x00200000
385 #define DC_SIAGP_LED0 0x00100000
386 #define DC_SIAGP_MD_GP3_OUTPUT 0x00080000
387 #define DC_SIAGP_MD_GP2_OUTPUT 0x00040000
388 #define DC_SIAGP_MD_GP1_OUTPUT 0x00020000
389 #define DC_SIAGP_MD_GP0_OUTPUT 0x00010000
410 #define DC_RXSTAT_FIFOOFLOW 0x00000001
411 #define DC_RXSTAT_CRCERR 0x00000002
412 #define DC_RXSTAT_DRIBBLE 0x00000004
413 #define DC_RXSTAT_MIIERE 0x00000008
414 #define DC_RXSTAT_WATCHDOG 0x00000010
415 #define DC_RXSTAT_FRAMETYPE 0x00000020 /* 0 == IEEE 802.3 */
416 #define DC_RXSTAT_COLLSEEN 0x00000040
417 #define DC_RXSTAT_GIANT 0x00000080
418 #define DC_RXSTAT_LASTFRAG 0x00000100
419 #define DC_RXSTAT_FIRSTFRAG 0x00000200
420 #define DC_RXSTAT_MULTICAST 0x00000400
421 #define DC_RXSTAT_RUNT 0x00000800
422 #define DC_RXSTAT_RXTYPE 0x00003000
423 #define DC_RXSTAT_DE 0x00004000
424 #define DC_RXSTAT_RXERR 0x00008000
425 #define DC_RXSTAT_RXLEN 0x3FFF0000
426 #define DC_RXSTAT_OWN 0x80000000
431 #define DC_RXCTL_BUFLEN1 0x00000FFF
432 #define DC_RXCTL_BUFLEN2 0x00FFF000
433 #define DC_RXCTL_RLINK 0x01000000
434 #define DC_RXCTL_RLAST 0x02000000
436 #define DC_TXSTAT_DEFER 0x00000001
437 #define DC_TXSTAT_UNDERRUN 0x00000002
438 #define DC_TXSTAT_LINKFAIL 0x00000003
439 #define DC_TXSTAT_COLLCNT 0x00000078
440 #define DC_TXSTAT_SQE 0x00000080
441 #define DC_TXSTAT_EXCESSCOLL 0x00000100
442 #define DC_TXSTAT_LATECOLL 0x00000200
443 #define DC_TXSTAT_NOCARRIER 0x00000400
444 #define DC_TXSTAT_CARRLOST 0x00000800
445 #define DC_TXSTAT_JABTIMEO 0x00004000
446 #define DC_TXSTAT_ERRSUM 0x00008000
447 #define DC_TXSTAT_OWN 0x80000000
449 #define DC_TXCTL_BUFLEN1 0x000007FF
450 #define DC_TXCTL_BUFLEN2 0x003FF800
451 #define DC_TXCTL_FILTTYPE0 0x00400000
452 #define DC_TXCTL_PAD 0x00800000
453 #define DC_TXCTL_TLINK 0x01000000
454 #define DC_TXCTL_TLAST 0x02000000
455 #define DC_TXCTL_NOCRC 0x04000000
456 #define DC_TXCTL_SETUP 0x08000000
457 #define DC_TXCTL_FILTTYPE1 0x10000000
458 #define DC_TXCTL_FIRSTFRAG 0x20000000
459 #define DC_TXCTL_LASTFRAG 0x40000000
460 #define DC_TXCTL_FINT 0x80000000
462 #define DC_FILTER_PERFECT 0x00000000
463 #define DC_FILTER_HASHPERF 0x00400000
464 #define DC_FILTER_INVERSE 0x10000000
465 #define DC_FILTER_HASHONLY 0x10400000
484 #define DC_ADDR_LO(x) ((uint64_t)(x) & 0xFFFFFFFF)
547 #define DC_AL_CR 0x88 /* command register */
548 #define DC_AL_PAR0 0xA4 /* station address */
549 #define DC_AL_PAR1 0xA8 /* station address */
550 #define DC_AL_MAR0 0xAC /* multicast hash filter */
551 #define DC_AL_MAR1 0xB0 /* multicast hash filter */
552 #define DC_AL_BMCR 0xB4 /* built in PHY control */
553 #define DC_AL_BMSR 0xB8 /* built in PHY status */
554 #define DC_AL_VENID 0xBC /* built in PHY ID0 */
555 #define DC_AL_DEVID 0xC0 /* built in PHY ID1 */
556 #define DC_AL_ANAR 0xC4 /* built in PHY autoneg advert */
557 #define DC_AL_LPAR 0xC8 /* bnilt in PHY link part. ability */
558 #define DC_AL_ANER 0xCC /* built in PHY autoneg expansion */
560 #define DC_AL_CR_ATUR 0x00000001 /* automatic TX underrun recovery */
561 #define DC_ADMTEK_PHYADDR 0x1
568 #define DC_AX_FILTIDX 0x68 /* RX filter index */
569 #define DC_AX_FILTDATA 0x70 /* RX filter data */
574 #define DC_AX_NETCFG_RX_BROAD 0x00000100
579 #define DC_AX_FILTIDX_PAR0 0x00000000
580 #define DC_AX_FILTIDX_PAR1 0x00000001
581 #define DC_AX_FILTIDX_MAR0 0x00000002
582 #define DC_AX_FILTIDX_MAR1 0x00000003
591 #define DC_MX_MAGICPACKET 0x80
592 #define DC_MX_NWAYSTAT 0xA0
597 #define DC_MX_MPACK_DISABLE 0x00400000
602 #define DC_MX_NWAY_10BTHALF 0x08000000
603 #define DC_MX_NWAY_10BTFULL 0x10000000
604 #define DC_MX_NWAY_100BTHALF 0x20000000
605 #define DC_MX_NWAY_100BTFULL 0x40000000
606 #define DC_MX_NWAY_100BT4 0x80000000
614 #define DC_MX_MAGIC_98713 0x0F370000
615 #define DC_MX_MAGIC_98713A 0x0B3C0000
616 #define DC_MX_MAGIC_98715 0x0B3C0000
617 #define DC_MX_MAGIC_98725 0x0B3C0000
625 #define DC_PN_GPIO 0x60 /* general purpose pins control */
626 #define DC_PN_PWRUP_CFG 0x90 /* config register, set by EEPROM */
627 #define DC_PN_SIOCTL 0x98 /* serial EEPROM control register */
628 #define DC_PN_MII 0xA0 /* MII access register */
629 #define DC_PN_NWAY 0xB8 /* Internal NWAY register */
632 #define DC_PN_SIOCTL_DATA 0x0000003F
633 #define DC_PN_SIOCTL_OPCODE 0x00000300
634 #define DC_PN_SIOCTL_BUSY 0x80000000
636 #define DC_PN_EEOPCODE_ERASE 0x00000300
637 #define DC_PN_EEOPCODE_READ 0x00000600
638 #define DC_PN_EEOPCODE_WRITE 0x00000100
647 #define DC_PN_GPIO_DATA0 0x000000001
648 #define DC_PN_GPIO_DATA1 0x000000002
649 #define DC_PN_GPIO_DATA2 0x000000004
650 #define DC_PN_GPIO_DATA3 0x000000008
651 #define DC_PN_GPIO_CTL0 0x000000010
652 #define DC_PN_GPIO_CTL1 0x000000020
653 #define DC_PN_GPIO_CTL2 0x000000040
654 #define DC_PN_GPIO_CTL3 0x000000080
655 #define DC_PN_GPIO_SPEEDSEL DC_PN_GPIO_DATA0/* 1 == 100Mbps, 0 == 10Mbps */
656 #define DC_PN_GPIO_100TX_LOOP DC_PN_GPIO_DATA1/* 1 == normal, 0 == loop */
668 #define DC_PN_MII_DATA 0x0000FFFF
669 #define DC_PN_MII_RESERVER 0x00020000
670 #define DC_PN_MII_REGADDR 0x007C0000
671 #define DC_PN_MII_PHYADDR 0x0F800000
672 #define DC_PN_MII_OPCODE 0x30000000
673 #define DC_PN_MII_BUSY 0x80000000
675 #define DC_PN_MIIOPCODE_READ 0x60020000
676 #define DC_PN_MIIOPCODE_WRITE 0x50020000
679 #define DC_PN_NWAY_RESET 0x00000001 /* reset */
680 #define DC_PN_NWAY_PDOWN 0x00000002 /* power down */
681 #define DC_PN_NWAY_BYPASS 0x00000004 /* bypass */
682 #define DC_PN_NWAY_AUILOWCUR 0x00000008 /* AUI low current */
683 #define DC_PN_NWAY_TPEXTEND 0x00000010 /* low squelch voltage */
684 #define DC_PN_NWAY_POLARITY 0x00000020 /* 0 == on, 1 == off */
685 #define DC_PN_NWAY_TP 0x00000040 /* 1 == tp, 0 == AUI */
686 #define DC_PN_NWAY_AUIVOLT 0x00000080 /* 1 == full, 0 == half */
687 #define DC_PN_NWAY_DUPLEX 0x00000100 /* LED, 1 == full, 0 == half */
688 #define DC_PN_NWAY_LINKTEST 0x00000200 /* 0 == on, 1 == off */
689 #define DC_PN_NWAY_AUTODETECT 0x00000400 /* 1 == off, 0 == on */
690 #define DC_PN_NWAY_SPEEDSEL 0x00000800 /* LED, 0 = 10, 1 == 100 */
691 #define DC_PN_NWAY_NWAY_ENB 0x00001000 /* 0 == off, 1 == on */
692 #define DC_PN_NWAY_CAP10HDX 0x00002000
693 #define DC_PN_NWAY_CAP10FDX 0x00004000
694 #define DC_PN_NWAY_CAP100FDX 0x00008000
695 #define DC_PN_NWAY_CAP100HDX 0x00010000
696 #define DC_PN_NWAY_CAP100T4 0x00020000
697 #define DC_PN_NWAY_ANEGRESTART 0x02000000 /* resets when aneg done */
698 #define DC_PN_NWAY_REMFAULT 0x04000000
699 #define DC_PN_NWAY_LPAR10HDX 0x08000000
700 #define DC_PN_NWAY_LPAR10FDX 0x10000000
701 #define DC_PN_NWAY_LPAR100FDX 0x20000000
702 #define DC_PN_NWAY_LPAR100HDX 0x40000000
703 #define DC_PN_NWAY_LPAR100T4 0x80000000
711 #define DC_CONEXANT_PHYADDR 0x1
712 #define DC_CONEXANT_EE_NODEADDR 0x19A
721 #define DC_ULI_PHY_DATA_MASK 0x0000FFFF
722 #define DC_ULI_PHY_REG_MASK 0x001F0000
723 #define DC_ULI_PHY_ADDR_MASK 0x03E00000
724 #define DC_ULI_PHY_OP_WRITE 0x04000000
725 #define DC_ULI_PHY_OP_READ 0x08000000
726 #define DC_ULI_PHY_OP_DONE 0x10000000
728 #define DC_ULI_PHY_DATA_SHIFT 0
777 int suspended; /* 0 = normal 1 = suspended */
785 #define DC_TX_POLL 0x00000001
786 #define DC_TX_COALESCE 0x00000002
787 #define DC_TX_ADMTEK_WAR 0x00000004
788 #define DC_TX_USE_TX_INTR 0x00000008
789 #define DC_RX_FILTER_TULIP 0x00000010
790 #define DC_TX_INTR_FIRSTFRAG 0x00000020
791 #define DC_PNIC_RX_BUG_WAR 0x00000040
792 #define DC_TX_FIXED_RING 0x00000080
793 #define DC_TX_STORENFWD 0x00000100
794 #define DC_REDUCED_MII_POLL 0x00000200
795 #define DC_TX_INTR_ALWAYS 0x00000400
796 #define DC_21143_NWAY 0x00000800
797 #define DC_128BIT_HASH 0x00001000
798 #define DC_64BIT_HASH 0x00002000
799 #define DC_TULIP_LEDS 0x00004000
800 #define DC_TX_ALIGN 0x00010000 /* align mbuf on tx */
823 #define DC_VENDORID_DEC 0x1011
828 #define DC_DEVICEID_21143 0x0019
833 #define DC_VENDORID_MX 0x10D9
838 #define DC_DEVICEID_98713 0x0512
839 #define DC_DEVICEID_987x5 0x0531
840 #define DC_DEVICEID_98727 0x0532
841 #define DC_DEVICEID_98732 0x0532
844 #define DC_REVISION_98713 0x00
845 #define DC_REVISION_98713A 0x10
846 #define DC_REVISION_98715 0x20
847 #define DC_REVISION_98715AEC_C 0x25
848 #define DC_REVISION_98725 0x30
853 #define DC_VENDORID_CP 0x11F6
858 #define DC_DEVICEID_98713_CP 0x9881
863 #define DC_VENDORID_LO 0x11AD
867 * ID but different revisions. Revision 0x10 is the 82c168, and
868 * 0x20 is the 82c169.
870 #define DC_DEVICEID_82C168 0x0002
872 #define DC_REVISION_82C168 0x10
873 #define DC_REVISION_82C169 0x20
879 #define DC_DEVICEID_82C115 0xc115
884 #define DC_VENDORID_DAVICOM 0x1282
889 #define DC_DEVICEID_DM9009 0x9009
890 #define DC_DEVICEID_DM9100 0x9100
891 #define DC_DEVICEID_DM9102 0x9102
897 #define DC_REVISION_DM9102 0x10
898 #define DC_REVISION_DM9102A 0x30
903 #define DC_VENDORID_ADMTEK 0x1317
908 #define DC_DEVICEID_AL981 0x0981
909 #define DC_DEVICEID_AN983 0x0985
910 #define DC_DEVICEID_AN985 0x1985
911 #define DC_DEVICEID_ADM9511 0x9511
912 #define DC_DEVICEID_ADM9513 0x9513
917 #define DC_VENDORID_3COM 0x10b7
922 #define DC_DEVICEID_3CSOHOB 0x9300
927 #define DC_VENDORID_ASIX 0x125B
932 #define DC_DEVICEID_AX88140A 0x1400
938 #define DC_REVISION_88140 0x00
939 #define DC_REVISION_88141 0x10
944 #define DC_VENDORID_ACCTON 0x1113
949 #define DC_DEVICEID_EN1217 0x1217
950 #define DC_DEVICEID_EN2242 0x1216
955 #define DC_VENDORID_XIRCOM 0x115d
960 #define DC_DEVICEID_X3201 0x0003
965 #define DC_VENDORID_DLINK 0x1186
970 #define DC_DEVICEID_DRP32TXD 0x1561
975 #define DC_VENDORID_ABOCOM 0x13d1
980 #define DC_DEVICEID_FE2500 0xAB02
981 #define DC_DEVICEID_FE2500MX 0xab08
986 #define DC_VENDORID_CONEXANT 0x14f1
991 #define DC_DEVICEID_RS7112 0x1803
996 #define DC_VENDORID_PLANEX 0x14ea
1001 #define DC_DEVICEID_FNW3602T 0xab08
1007 #define DC_VENDORID_HAWKING 0x17b3
1013 #define DC_DEVICEID_HAWKING_PN672TX 0xab08
1018 #define DC_VENDORID_MICROSOFT 0x1414
1025 #define DC_DEVICEID_MSMN120 0x0001
1026 #define DC_DEVICEID_MSMN130 0x0002
1031 #define DC_VENDORID_LINKSYS 0x1737
1036 #define DC_DEVICEID_PCMPC200_AB08 0xab08
1037 #define DC_DEVICEID_PCMPC200_AB09 0xab09
1042 #define DC_VENDORID_ULI 0x10b9
1047 #define DC_DEVICEID_M5261 0x5261
1048 #define DC_DEVICEID_M5263 0x5263
1057 #define DC_PCI_CFBIO PCIR_BAR(0) /* Base I/O address */
1059 #define DC_PCI_CFDD 0x40 /* Device and driver area */
1060 #define DC_PCI_CWUA0 0x44 /* Wake-Up LAN addr 0 */
1061 #define DC_PCI_CWUA1 0x48 /* Wake-Up LAN addr 1 */
1062 #define DC_PCI_SOP0 0x4C /* SecureON passwd 0 */
1063 #define DC_PCI_SOP1 0x50 /* SecureON passwd 1 */
1064 #define DC_PCI_CWUC 0x54 /* Configuration Wake-Up cmd */
1066 #define DC_21143_PB_REV 0x00000030
1067 #define DC_21143_TB_REV 0x00000030
1068 #define DC_21143_PC_REV 0x00000030
1069 #define DC_21143_TC_REV 0x00000030
1070 #define DC_21143_PD_REV 0x00000041
1071 #define DC_21143_TD_REV 0x00000041
1074 #define DC_CFDD_DRVUSE 0x0000FFFF
1075 #define DC_CFDD_SNOOZE_MODE 0x40000000
1076 #define DC_CFDD_SLEEP_MODE 0x80000000
1079 #define DC_CWUC_MUST_BE_ZERO 0x00000001
1080 #define DC_CWUC_SECUREON_ENB 0x00000002
1081 #define DC_CWUC_FORCE_WUL 0x00000004
1082 #define DC_CWUC_BNC_ABILITY 0x00000008
1083 #define DC_CWUC_AUI_ABILITY 0x00000010
1084 #define DC_CWUC_TP10_ABILITY 0x00000020
1085 #define DC_CWUC_MII_ABILITY 0x00000040
1086 #define DC_CWUC_SYM_ABILITY 0x00000080
1087 #define DC_CWUC_LOCK 0x00000100
1095 #define DC_IB_CTLRCNT 0x13
1096 #define DC_IB_LEAF0_CNUM 0x1A
1097 #define DC_IB_LEAF0_OFFSET 0x1B
1106 #define DC_CTYPE_10BT 0x0000
1107 #define DC_CTYPE_10BT_NWAY 0x0100
1108 #define DC_CTYPE_10BT_FDX 0x0204
1109 #define DC_CTYPE_10B2 0x0001
1110 #define DC_CTYPE_10B5 0x0002
1111 #define DC_CTYPE_100BT 0x0003
1112 #define DC_CTYPE_100BT_FDX 0x0205
1113 #define DC_CTYPE_100T4 0x0006
1114 #define DC_CTYPE_100FX 0x0007
1115 #define DC_CTYPE_100FX_FDX 0x0208
1116 #define DC_CTYPE_MII_10BT 0x0009
1117 #define DC_CTYPE_MII_10BT_FDX 0x020A
1118 #define DC_CTYPE_MII_100BT 0x000D
1119 #define DC_CTYPE_MII_100BT_FDX 0x020E
1120 #define DC_CTYPE_MII_100T4 0x000F
1121 #define DC_CTYPE_MII_100FX 0x0010
1122 #define DC_CTYPE_MII_100FX_FDX 0x0211
1123 #define DC_CTYPE_DYN_PUP_AUTOSENSE 0x0800
1124 #define DC_CTYPE_PUP_AUTOSENSE 0x8800
1125 #define DC_CTYPE_NOMEDIA 0xFFFF
1127 #define DC_EBLOCK_SIA 0x0002
1128 #define DC_EBLOCK_MII 0x0003
1129 #define DC_EBLOCK_SYM 0x0004
1130 #define DC_EBLOCK_RESET 0x0005
1131 #define DC_EBLOCK_PHY_SHUTDOWN 0x0006
1160 #define DC_SIA_CODE_10BT 0x00
1161 #define DC_SIA_CODE_10B2 0x01
1162 #define DC_SIA_CODE_10B5 0x02
1163 #define DC_SIA_CODE_10BT_FDX 0x04
1164 #define DC_SIA_CODE_EXT 0x40
1191 #define DC_SYM_CODE_100BT 0x03
1192 #define DC_SYM_CODE_100BT_FDX 0x05
1193 #define DC_SYM_CODE_100T4 0x06
1194 #define DC_SYM_CODE_100FX 0x07
1195 #define DC_SYM_CODE_100FX_FDX 0x08