Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
de4x5.h File Reference
#include <linux/sockios.h>

Go to the source code of this file.

Data Structures

struct  de4x5_ioctl
 

Macros

#define DE4X5_BMR   iobase+(0x000 << lp->bus) /* Bus Mode Register */
 
#define DE4X5_TPD   iobase+(0x008 << lp->bus) /* Transmit Poll Demand Reg */
 
#define DE4X5_RPD   iobase+(0x010 << lp->bus) /* Receive Poll Demand Reg */
 
#define DE4X5_RRBA   iobase+(0x018 << lp->bus) /* RX Ring Base Address Reg */
 
#define DE4X5_TRBA   iobase+(0x020 << lp->bus) /* TX Ring Base Address Reg */
 
#define DE4X5_STS   iobase+(0x028 << lp->bus) /* Status Register */
 
#define DE4X5_OMR   iobase+(0x030 << lp->bus) /* Operation Mode Register */
 
#define DE4X5_IMR   iobase+(0x038 << lp->bus) /* Interrupt Mask Register */
 
#define DE4X5_MFC   iobase+(0x040 << lp->bus) /* Missed Frame Counter */
 
#define DE4X5_APROM   iobase+(0x048 << lp->bus) /* Ethernet Address PROM */
 
#define DE4X5_BROM   iobase+(0x048 << lp->bus) /* Boot ROM Register */
 
#define DE4X5_SROM   iobase+(0x048 << lp->bus) /* Serial ROM Register */
 
#define DE4X5_MII   iobase+(0x048 << lp->bus) /* MII Interface Register */
 
#define DE4X5_DDR   iobase+(0x050 << lp->bus) /* Data Diagnostic Register */
 
#define DE4X5_FDR   iobase+(0x058 << lp->bus) /* Full Duplex Register */
 
#define DE4X5_GPT   iobase+(0x058 << lp->bus) /* General Purpose Timer Reg.*/
 
#define DE4X5_GEP   iobase+(0x060 << lp->bus) /* General Purpose Register */
 
#define DE4X5_SISR   iobase+(0x060 << lp->bus) /* SIA Status Register */
 
#define DE4X5_SICR   iobase+(0x068 << lp->bus) /* SIA Connectivity Register */
 
#define DE4X5_STRR   iobase+(0x070 << lp->bus) /* SIA TX/RX Register */
 
#define DE4X5_SIGR   iobase+(0x078 << lp->bus) /* SIA General Register */
 
#define EISA_ID   iobase+0x0c80 /* EISA ID Registers */
 
#define EISA_ID0   iobase+0x0c80 /* EISA ID Register 0 */
 
#define EISA_ID1   iobase+0x0c81 /* EISA ID Register 1 */
 
#define EISA_ID2   iobase+0x0c82 /* EISA ID Register 2 */
 
#define EISA_ID3   iobase+0x0c83 /* EISA ID Register 3 */
 
#define EISA_CR   iobase+0x0c84 /* EISA Control Register */
 
#define EISA_REG0   iobase+0x0c88 /* EISA Configuration Register 0 */
 
#define EISA_REG1   iobase+0x0c89 /* EISA Configuration Register 1 */
 
#define EISA_REG2   iobase+0x0c8a /* EISA Configuration Register 2 */
 
#define EISA_REG3   iobase+0x0c8f /* EISA Configuration Register 3 */
 
#define EISA_APROM   iobase+0x0c90 /* Ethernet Address PROM */
 
#define PCI_CFID   iobase+0x0008 /* PCI Configuration ID Register */
 
#define PCI_CFCS   iobase+0x000c /* PCI Command/Status Register */
 
#define PCI_CFRV   iobase+0x0018 /* PCI Revision Register */
 
#define PCI_CFLT   iobase+0x001c /* PCI Latency Timer Register */
 
#define PCI_CBIO   iobase+0x0028 /* PCI Base I/O Register */
 
#define PCI_CBMA   iobase+0x002c /* PCI Base Memory Address Register */
 
#define PCI_CBER   iobase+0x0030 /* PCI Expansion ROM Base Address Reg. */
 
#define PCI_CFIT   iobase+0x003c /* PCI Configuration Interrupt Register */
 
#define PCI_CFDA   iobase+0x0040 /* PCI Driver Area Register */
 
#define PCI_CFDD   iobase+0x0041 /* PCI Driver Dependent Area Register */
 
#define PCI_CFPM   iobase+0x0043 /* PCI Power Management Area Register */
 
#define ER0_BSW   0x80 /* EISA Bus Slave Width, 1: 32 bits */
 
#define ER0_BMW   0x40 /* EISA Bus Master Width, 1: 32 bits */
 
#define ER0_EPT   0x20 /* EISA PREEMPT Time, 0: 23 BCLKs */
 
#define ER0_ISTS   0x10 /* Interrupt Status (X) */
 
#define ER0_LI   0x08 /* Latch Interrupts */
 
#define ER0_INTL   0x06 /* INTerrupt Level */
 
#define ER0_INTT   0x01 /* INTerrupt Type, 0: Level, 1: Edge */
 
#define ER1_IAM   0xe0 /* ISA Address Mode */
 
#define ER1_IAE   0x10 /* ISA Addressing Enable */
 
#define ER1_UPIN   0x0f /* User Pins */
 
#define ER2_BRS   0xc0 /* Boot ROM Size */
 
#define ER2_BRA   0x3c /* Boot ROM Address <16:13> */
 
#define ER3_BWE   0x40 /* Burst Write Enable */
 
#define ER3_BRE   0x04 /* Burst Read Enable */
 
#define ER3_LSR   0x02 /* Local Software Reset */
 
#define CFID_DID   0xff00 /* Device ID */
 
#define CFID_VID   0x00ff /* Vendor ID */
 
#define DC21040_DID   0x0200 /* Unique Device ID # */
 
#define DC21040_VID   0x1011 /* DC21040 Manufacturer */
 
#define DC21041_DID   0x1400 /* Unique Device ID # */
 
#define DC21041_VID   0x1011 /* DC21041 Manufacturer */
 
#define DC21140_DID   0x0900 /* Unique Device ID # */
 
#define DC21140_VID   0x1011 /* DC21140 Manufacturer */
 
#define DC2114x_DID   0x1900 /* Unique Device ID # */
 
#define DC2114x_VID   0x1011 /* DC2114[23] Manufacturer */
 
#define DC21040   DC21040_DID
 
#define DC21041   DC21041_DID
 
#define DC21140   DC21140_DID
 
#define DC2114x   DC2114x_DID
 
#define DC21142   (DC2114x_DID | 0x0010)
 
#define DC21143   (DC2114x_DID | 0x0030)
 
#define DC2114x_BRK   0x0020 /* CFRV break between DC21142 & DC21143 */
 
#define is_DC21040   ((vendor == DC21040_VID) && (device == DC21040_DID))
 
#define is_DC21041   ((vendor == DC21041_VID) && (device == DC21041_DID))
 
#define is_DC21140   ((vendor == DC21140_VID) && (device == DC21140_DID))
 
#define is_DC2114x   ((vendor == DC2114x_VID) && (device == DC2114x_DID))
 
#define is_DC21142   ((vendor == DC2114x_VID) && (device == DC21142))
 
#define is_DC21143   ((vendor == DC2114x_VID) && (device == DC21143))
 
#define CFCS_DPE   0x80000000 /* Detected Parity Error (S) */
 
#define CFCS_SSE   0x40000000 /* Signal System Error (S) */
 
#define CFCS_RMA   0x20000000 /* Receive Master Abort (S) */
 
#define CFCS_RTA   0x10000000 /* Receive Target Abort (S) */
 
#define CFCS_DST   0x06000000 /* DEVSEL Timing (S) */
 
#define CFCS_DPR   0x01000000 /* Data Parity Report (S) */
 
#define CFCS_FBB   0x00800000 /* Fast Back-To-Back (S) */
 
#define CFCS_SEE   0x00000100 /* System Error Enable (C) */
 
#define CFCS_PER   0x00000040 /* Parity Error Response (C) */
 
#define CFCS_MO   0x00000004 /* Master Operation (C) */
 
#define CFCS_MSA   0x00000002 /* Memory Space Access (C) */
 
#define CFCS_IOSA   0x00000001 /* I/O Space Access (C) */
 
#define CFRV_BC   0xff000000 /* Base Class */
 
#define CFRV_SC   0x00ff0000 /* Subclass */
 
#define CFRV_RN   0x000000f0 /* Revision Number */
 
#define CFRV_SN   0x0000000f /* Step Number */
 
#define BASE_CLASS   0x02000000 /* Indicates Network Controller */
 
#define SUB_CLASS   0x00000000 /* Indicates Ethernet Controller */
 
#define STEP_NUMBER   0x00000020 /* Increments for future chips */
 
#define REV_NUMBER   0x00000003 /* 0x00, 0x01, 0x02, 0x03: Rev in Step */
 
#define CFRV_MASK   0xffff0000 /* Register mask */
 
#define CFLT_BC   0x0000ff00 /* Latency Timer bits */
 
#define CBIO_MASK   -128 /* Base I/O Address Mask */
 
#define CBIO_IOSI   0x00000001 /* I/O Space Indicator (RO, value is 1) */
 
#define CCIS_ROMI   0xf0000000 /* ROM Image */
 
#define CCIS_ASO   0x0ffffff8 /* Address Space Offset */
 
#define CCIS_ASI   0x00000007 /* Address Space Indicator */
 
#define SSID_SSID   0xffff0000 /* Subsystem ID */
 
#define SSID_SVID   0x0000ffff /* Subsystem Vendor ID */
 
#define CBER_MASK   0xfffffc00 /* Expansion ROM Base Address Mask */
 
#define CBER_ROME   0x00000001 /* ROM Enable */
 
#define CFIT_MXLT   0xff000000 /* MAX_LAT Value (0.25us periods) */
 
#define CFIT_MNGT   0x00ff0000 /* MIN_GNT Value (0.25us periods) */
 
#define CFIT_IRQP   0x0000ff00 /* Interrupt Pin */
 
#define CFIT_IRQL   0x000000ff /* Interrupt Line */
 
#define SLEEP   0x80 /* Power Saving Sleep Mode */
 
#define SNOOZE   0x40 /* Power Saving Snooze Mode */
 
#define WAKEUP   0x00 /* Power Saving Wakeup */
 
#define PCI_CFDA_DSU   0x41 /* 8 bit Configuration Space Address */
 
#define PCI_CFDA_PSM   0x43 /* 8 bit Configuration Space Address */
 
#define BMR_RML   0x00200000 /* [Memory] Read Multiple */
 
#define BMR_DBO   0x00100000 /* Descriptor Byte Ordering (Endian) */
 
#define BMR_TAP   0x000e0000 /* Transmit Automatic Polling */
 
#define BMR_DAS   0x00010000 /* Diagnostic Address Space */
 
#define BMR_CAL   0x0000c000 /* Cache Alignment */
 
#define BMR_PBL   0x00003f00 /* Programmable Burst Length */
 
#define BMR_BLE   0x00000080 /* Big/Little Endian */
 
#define BMR_DSL   0x0000007c /* Descriptor Skip Length */
 
#define BMR_BAR   0x00000002 /* Bus ARbitration */
 
#define BMR_SWR   0x00000001 /* Software Reset */
 
#define TAP_NOPOLL   0x00000000 /* No automatic polling */
 
#define TAP_200US   0x00020000 /* TX automatic polling every 200us */
 
#define TAP_800US   0x00040000 /* TX automatic polling every 800us */
 
#define TAP_1_6MS   0x00060000 /* TX automatic polling every 1.6ms */
 
#define TAP_12_8US   0x00080000 /* TX automatic polling every 12.8us */
 
#define TAP_25_6US   0x000a0000 /* TX automatic polling every 25.6us */
 
#define TAP_51_2US   0x000c0000 /* TX automatic polling every 51.2us */
 
#define TAP_102_4US   0x000e0000 /* TX automatic polling every 102.4us */
 
#define CAL_NOUSE   0x00000000 /* Not used */
 
#define CAL_8LONG   0x00004000 /* 8-longword alignment */
 
#define CAL_16LONG   0x00008000 /* 16-longword alignment */
 
#define CAL_32LONG   0x0000c000 /* 32-longword alignment */
 
#define PBL_0   0x00000000 /* DMA burst length = amount in RX FIFO */
 
#define PBL_1   0x00000100 /* 1 longword DMA burst length */
 
#define PBL_2   0x00000200 /* 2 longwords DMA burst length */
 
#define PBL_4   0x00000400 /* 4 longwords DMA burst length */
 
#define PBL_8   0x00000800 /* 8 longwords DMA burst length */
 
#define PBL_16   0x00001000 /* 16 longwords DMA burst length */
 
#define PBL_32   0x00002000 /* 32 longwords DMA burst length */
 
#define DSL_0   0x00000000 /* 0 longword / descriptor */
 
#define DSL_1   0x00000004 /* 1 longword / descriptor */
 
#define DSL_2   0x00000008 /* 2 longwords / descriptor */
 
#define DSL_4   0x00000010 /* 4 longwords / descriptor */
 
#define DSL_8   0x00000020 /* 8 longwords / descriptor */
 
#define DSL_16   0x00000040 /* 16 longwords / descriptor */
 
#define DSL_32   0x00000080 /* 32 longwords / descriptor */
 
#define TPD   0x00000001 /* Transmit Poll Demand */
 
#define RPD   0x00000001 /* Receive Poll Demand */
 
#define RRBA   0xfffffffc /* RX Descriptor List Start Address */
 
#define TRBA   0xfffffffc /* TX Descriptor List Start Address */
 
#define STS_GPI   0x04000000 /* General Purpose Port Interrupt */
 
#define STS_BE   0x03800000 /* Bus Error Bits */
 
#define STS_TS   0x00700000 /* Transmit Process State */
 
#define STS_RS   0x000e0000 /* Receive Process State */
 
#define STS_NIS   0x00010000 /* Normal Interrupt Summary */
 
#define STS_AIS   0x00008000 /* Abnormal Interrupt Summary */
 
#define STS_ER   0x00004000 /* Early Receive */
 
#define STS_FBE   0x00002000 /* Fatal Bus Error */
 
#define STS_SE   0x00002000 /* System Error */
 
#define STS_LNF   0x00001000 /* Link Fail */
 
#define STS_FD   0x00000800 /* Full-Duplex Short Frame Received */
 
#define STS_TM   0x00000800 /* Timer Expired (DC21041) */
 
#define STS_ETI   0x00000400 /* Early Transmit Interrupt */
 
#define STS_AT   0x00000400 /* AUI/TP Pin */
 
#define STS_RWT   0x00000200 /* Receive Watchdog Time-Out */
 
#define STS_RPS   0x00000100 /* Receive Process Stopped */
 
#define STS_RU   0x00000080 /* Receive Buffer Unavailable */
 
#define STS_RI   0x00000040 /* Receive Interrupt */
 
#define STS_UNF   0x00000020 /* Transmit Underflow */
 
#define STS_LNP   0x00000010 /* Link Pass */
 
#define STS_ANC   0x00000010 /* Autonegotiation Complete */
 
#define STS_TJT   0x00000008 /* Transmit Jabber Time-Out */
 
#define STS_TU   0x00000004 /* Transmit Buffer Unavailable */
 
#define STS_TPS   0x00000002 /* Transmit Process Stopped */
 
#define STS_TI   0x00000001 /* Transmit Interrupt */
 
#define EB_PAR   0x00000000 /* Parity Error */
 
#define EB_MA   0x00800000 /* Master Abort */
 
#define EB_TA   0x01000000 /* Target Abort */
 
#define EB_RES0   0x01800000 /* Reserved */
 
#define EB_RES1   0x02000000 /* Reserved */
 
#define TS_STOP   0x00000000 /* Stopped */
 
#define TS_FTD   0x00100000 /* Fetch Transmit Descriptor */
 
#define TS_WEOT   0x00200000 /* Wait for End Of Transmission */
 
#define TS_QDAT   0x00300000 /* Queue skb data into TX FIFO */
 
#define TS_RES   0x00400000 /* Reserved */
 
#define TS_SPKT   0x00500000 /* Setup Packet */
 
#define TS_SUSP   0x00600000 /* Suspended */
 
#define TS_CLTD   0x00700000 /* Close Transmit Descriptor */
 
#define RS_STOP   0x00000000 /* Stopped */
 
#define RS_FRD   0x00020000 /* Fetch Receive Descriptor */
 
#define RS_CEOR   0x00040000 /* Check for End of Receive Packet */
 
#define RS_WFRP   0x00060000 /* Wait for Receive Packet */
 
#define RS_SUSP   0x00080000 /* Suspended */
 
#define RS_CLRD   0x000a0000 /* Close Receive Descriptor */
 
#define RS_FLUSH   0x000c0000 /* Flush RX FIFO */
 
#define RS_QRFS   0x000e0000 /* Queue RX FIFO into RX Skb */
 
#define INT_CANCEL   0x0001ffff /* For zeroing all interrupt sources */
 
#define OMR_SC   0x80000000 /* Special Capture Effect Enable */
 
#define OMR_RA   0x40000000 /* Receive All */
 
#define OMR_SDP   0x02000000 /* SD Polarity - MUST BE ASSERTED */
 
#define OMR_SCR   0x01000000 /* Scrambler Mode */
 
#define OMR_PCS   0x00800000 /* PCS Function */
 
#define OMR_TTM   0x00400000 /* Transmit Threshold Mode */
 
#define OMR_SF   0x00200000 /* Store and Forward */
 
#define OMR_HBD   0x00080000 /* HeartBeat Disable */
 
#define OMR_PS   0x00040000 /* Port Select */
 
#define OMR_CA   0x00020000 /* Capture Effect Enable */
 
#define OMR_BP   0x00010000 /* Back Pressure */
 
#define OMR_TR   0x0000c000 /* Threshold Control Bits */
 
#define OMR_ST   0x00002000 /* Start/Stop Transmission Command */
 
#define OMR_FC   0x00001000 /* Force Collision Mode */
 
#define OMR_OM   0x00000c00 /* Operating Mode */
 
#define OMR_FDX   0x00000200 /* Full Duplex Mode */
 
#define OMR_FKD   0x00000100 /* Flaky Oscillator Disable */
 
#define OMR_PM   0x00000080 /* Pass All Multicast */
 
#define OMR_PR   0x00000040 /* Promiscuous Mode */
 
#define OMR_SB   0x00000020 /* Start/Stop Backoff Counter */
 
#define OMR_IF   0x00000010 /* Inverse Filtering */
 
#define OMR_PB   0x00000008 /* Pass Bad Frames */
 
#define OMR_HO   0x00000004 /* Hash Only Filtering Mode */
 
#define OMR_SR   0x00000002 /* Start/Stop Receive */
 
#define OMR_HP   0x00000001 /* Hash/Perfect Receive Filtering Mode */
 
#define TR_72   0x00000000 /* Threshold set to 72 (128) bytes */
 
#define TR_96   0x00004000 /* Threshold set to 96 (256) bytes */
 
#define TR_128   0x00008000 /* Threshold set to 128 (512) bytes */
 
#define TR_160   0x0000c000 /* Threshold set to 160 (1024) bytes */
 
#define OMR_DEF   (OMR_SDP)
 
#define OMR_SIA   (OMR_SDP | OMR_TTM)
 
#define OMR_SYM   (OMR_SDP | OMR_SCR | OMR_PCS | OMR_HBD | OMR_PS)
 
#define OMR_MII_10   (OMR_SDP | OMR_TTM | OMR_PS)
 
#define OMR_MII_100   (OMR_SDP | OMR_HBD | OMR_PS)
 
#define IMR_GPM   0x04000000 /* General Purpose Port Mask */
 
#define IMR_NIM   0x00010000 /* Normal Interrupt Summary Mask */
 
#define IMR_AIM   0x00008000 /* Abnormal Interrupt Summary Mask */
 
#define IMR_ERM   0x00004000 /* Early Receive Mask */
 
#define IMR_FBM   0x00002000 /* Fatal Bus Error Mask */
 
#define IMR_SEM   0x00002000 /* System Error Mask */
 
#define IMR_LFM   0x00001000 /* Link Fail Mask */
 
#define IMR_FDM   0x00000800 /* Full-Duplex (Short Frame) Mask */
 
#define IMR_TMM   0x00000800 /* Timer Expired Mask (DC21041) */
 
#define IMR_ETM   0x00000400 /* Early Transmit Interrupt Mask */
 
#define IMR_ATM   0x00000400 /* AUI/TP Switch Mask */
 
#define IMR_RWM   0x00000200 /* Receive Watchdog Time-Out Mask */
 
#define IMR_RSM   0x00000100 /* Receive Stopped Mask */
 
#define IMR_RUM   0x00000080 /* Receive Buffer Unavailable Mask */
 
#define IMR_RIM   0x00000040 /* Receive Interrupt Mask */
 
#define IMR_UNM   0x00000020 /* Underflow Interrupt Mask */
 
#define IMR_ANM   0x00000010 /* Autonegotiation Complete Mask */
 
#define IMR_LPM   0x00000010 /* Link Pass */
 
#define IMR_TJM   0x00000008 /* Transmit Time-Out Jabber Mask */
 
#define IMR_TUM   0x00000004 /* Transmit Buffer Unavailable Mask */
 
#define IMR_TSM   0x00000002 /* Transmission Stopped Mask */
 
#define IMR_TIM   0x00000001 /* Transmit Interrupt Mask */
 
#define MFC_FOCO   0x10000000 /* FIFO Overflow Counter Overflow Bit */
 
#define MFC_FOC   0x0ffe0000 /* FIFO Overflow Counter Bits */
 
#define MFC_OVFL   0x00010000 /* Missed Frames Counter Overflow Bit */
 
#define MFC_CNTR   0x0000ffff /* Missed Frames Counter Bits */
 
#define MFC_FOCM   0x1ffe0000 /* FIFO Overflow Counter Mask */
 
#define APROM_DN   0x80000000 /* Data Not Valid */
 
#define APROM_DT   0x000000ff /* Address Byte */
 
#define BROM_MODE   0x00008000 /* MODE_1: 0, MODE_0: 1 (read only) */
 
#define BROM_RD   0x00004000 /* Read from Boot ROM */
 
#define BROM_WR   0x00002000 /* Write to Boot ROM */
 
#define BROM_BR   0x00001000 /* Select Boot ROM when set */
 
#define BROM_SR   0x00000800 /* Select Serial ROM when set */
 
#define BROM_REG   0x00000400 /* External Register Select */
 
#define BROM_DT   0x000000ff /* Data Byte */
 
#define MII_MDI   0x00080000 /* MII Management Data In */
 
#define MII_MDO   0x00060000 /* MII Management Mode/Data Out */
 
#define MII_MRD   0x00040000 /* MII Management Define Read Mode */
 
#define MII_MWR   0x00000000 /* MII Management Define Write Mode */
 
#define MII_MDT   0x00020000 /* MII Management Data Out */
 
#define MII_MDC   0x00010000 /* MII Management Clock */
 
#define MII_RD   0x00004000 /* Read from MII */
 
#define MII_WR   0x00002000 /* Write to MII */
 
#define MII_SEL   0x00000800 /* Select MII when RESET */
 
#define SROM_MODE   0x00008000 /* MODE_1: 0, MODE_0: 1 (read only) */
 
#define SROM_RD   0x00004000 /* Read from Boot ROM */
 
#define SROM_WR   0x00002000 /* Write to Boot ROM */
 
#define SROM_BR   0x00001000 /* Select Boot ROM when set */
 
#define SROM_SR   0x00000800 /* Select Serial ROM when set */
 
#define SROM_REG   0x00000400 /* External Register Select */
 
#define SROM_DT   0x000000ff /* Data Byte */
 
#define DT_OUT   0x00000008 /* Serial Data Out */
 
#define DT_IN   0x00000004 /* Serial Data In */
 
#define DT_CLK   0x00000002 /* Serial ROM Clock */
 
#define DT_CS   0x00000001 /* Serial ROM Chip Select */
 
#define MII_PREAMBLE   0xffffffff /* MII Management Preamble */
 
#define MII_TEST   0xaaaaaaaa /* MII Test Signal */
 
#define MII_STRD   0x06 /* Start of Frame+Op Code: use low nibble */
 
#define MII_STWR   0x0a /* Start of Frame+Op Code: use low nibble */
 
#define MII_CR   0x00 /* MII Management Control Register */
 
#define MII_SR   0x01 /* MII Management Status Register */
 
#define MII_ID0   0x02 /* PHY Identifier Register 0 */
 
#define MII_ID1   0x03 /* PHY Identifier Register 1 */
 
#define MII_ANA   0x04 /* Auto Negotiation Advertisement */
 
#define MII_ANLPA   0x05 /* Auto Negotiation Link Partner Ability */
 
#define MII_ANE   0x06 /* Auto Negotiation Expansion */
 
#define MII_ANP   0x07 /* Auto Negotiation Next Page TX */
 
#define DE4X5_MAX_MII   32 /* Maximum address of MII PHY devices */
 
#define MII_CR_RST   0x8000 /* RESET the PHY chip */
 
#define MII_CR_LPBK   0x4000 /* Loopback enable */
 
#define MII_CR_SPD   0x2000 /* 0: 10Mb/s; 1: 100Mb/s */
 
#define MII_CR_10   0x0000 /* Set 10Mb/s */
 
#define MII_CR_100   0x2000 /* Set 100Mb/s */
 
#define MII_CR_ASSE   0x1000 /* Auto Speed Select Enable */
 
#define MII_CR_PD   0x0800 /* Power Down */
 
#define MII_CR_ISOL   0x0400 /* Isolate Mode */
 
#define MII_CR_RAN   0x0200 /* Restart Auto Negotiation */
 
#define MII_CR_FDM   0x0100 /* Full Duplex Mode */
 
#define MII_CR_CTE   0x0080 /* Collision Test Enable */
 
#define MII_SR_T4C   0x8000 /* 100BASE-T4 capable */
 
#define MII_SR_TXFD   0x4000 /* 100BASE-TX Full Duplex capable */
 
#define MII_SR_TXHD   0x2000 /* 100BASE-TX Half Duplex capable */
 
#define MII_SR_TFD   0x1000 /* 10BASE-T Full Duplex capable */
 
#define MII_SR_THD   0x0800 /* 10BASE-T Half Duplex capable */
 
#define MII_SR_ASSC   0x0020 /* Auto Speed Selection Complete*/
 
#define MII_SR_RFD   0x0010 /* Remote Fault Detected */
 
#define MII_SR_ANC   0x0008 /* Auto Negotiation capable */
 
#define MII_SR_LKS   0x0004 /* Link Status */
 
#define MII_SR_JABD   0x0002 /* Jabber Detect */
 
#define MII_SR_XC   0x0001 /* Extended Capabilities */
 
#define MII_ANA_TAF   0x03e0 /* Technology Ability Field */
 
#define MII_ANA_T4AM   0x0200 /* T4 Technology Ability Mask */
 
#define MII_ANA_TXAM   0x0180 /* TX Technology Ability Mask */
 
#define MII_ANA_FDAM   0x0140 /* Full Duplex Technology Ability Mask */
 
#define MII_ANA_HDAM   0x02a0 /* Half Duplex Technology Ability Mask */
 
#define MII_ANA_100M   0x0380 /* 100Mb Technology Ability Mask */
 
#define MII_ANA_10M   0x0060 /* 10Mb Technology Ability Mask */
 
#define MII_ANA_CSMA   0x0001 /* CSMA-CD Capable */
 
#define MII_ANLPA_NP   0x8000 /* Next Page (Enable) */
 
#define MII_ANLPA_ACK   0x4000 /* Remote Acknowledge */
 
#define MII_ANLPA_RF   0x2000 /* Remote Fault */
 
#define MII_ANLPA_TAF   0x03e0 /* Technology Ability Field */
 
#define MII_ANLPA_T4AM   0x0200 /* T4 Technology Ability Mask */
 
#define MII_ANLPA_TXAM   0x0180 /* TX Technology Ability Mask */
 
#define MII_ANLPA_FDAM   0x0140 /* Full Duplex Technology Ability Mask */
 
#define MII_ANLPA_HDAM   0x02a0 /* Half Duplex Technology Ability Mask */
 
#define MII_ANLPA_100M   0x0380 /* 100Mb Technology Ability Mask */
 
#define MII_ANLPA_10M   0x0060 /* 10Mb Technology Ability Mask */
 
#define MII_ANLPA_CSMA   0x0001 /* CSMA-CD Capable */
 
#define MEDIA_NWAY   0x0080 /* Nway (Auto Negotiation) on PHY */
 
#define MEDIA_MII   0x0040 /* MII Present on the adapter */
 
#define MEDIA_FIBRE   0x0008 /* Fibre Media present */
 
#define MEDIA_AUI   0x0004 /* AUI Media present */
 
#define MEDIA_TP   0x0002 /* TP Media present */
 
#define MEDIA_BNC   0x0001 /* BNC Media present */
 
#define SROM_SSVID   0x0000 /* Sub-system Vendor ID offset */
 
#define SROM_SSID   0x0002 /* Sub-system ID offset */
 
#define SROM_CISPL   0x0004 /* CardBus CIS Pointer low offset */
 
#define SROM_CISPH   0x0006 /* CardBus CIS Pointer high offset */
 
#define SROM_IDCRC   0x0010 /* ID Block CRC offset*/
 
#define SROM_RSVD2   0x0011 /* ID Reserved 2 offset */
 
#define SROM_SFV   0x0012 /* SROM Format Version offset */
 
#define SROM_CCNT   0x0013 /* Controller Count offset */
 
#define SROM_HWADD   0x0014 /* Hardware Address offset */
 
#define SROM_MRSVD   0x007c /* Manufacturer Reserved offset*/
 
#define SROM_CRC   0x007e /* SROM CRC offset */
 
#define SROM_10BT   0x0000 /* 10BASE-T half duplex */
 
#define SROM_10BTN   0x0100 /* 10BASE-T with Nway */
 
#define SROM_10BTF   0x0204 /* 10BASE-T full duplex */
 
#define SROM_10BTNLP   0x0400 /* 10BASE-T without Link Pass test */
 
#define SROM_10B2   0x0001 /* 10BASE-2 (BNC) */
 
#define SROM_10B5   0x0002 /* 10BASE-5 (AUI) */
 
#define SROM_100BTH   0x0003 /* 100BASE-T half duplex */
 
#define SROM_100BTF   0x0205 /* 100BASE-T full duplex */
 
#define SROM_100BT4   0x0006 /* 100BASE-T4 */
 
#define SROM_100BFX   0x0007 /* 100BASE-FX half duplex (Fiber) */
 
#define SROM_M10BT   0x0009 /* MII 10BASE-T half duplex */
 
#define SROM_M10BTF   0x020a /* MII 10BASE-T full duplex */
 
#define SROM_M100BT   0x000d /* MII 100BASE-T half duplex */
 
#define SROM_M100BTF   0x020e /* MII 100BASE-T full duplex */
 
#define SROM_M100BT4   0x000f /* MII 100BASE-T4 */
 
#define SROM_M100BF   0x0010 /* MII 100BASE-FX half duplex */
 
#define SROM_M100BFF   0x0211 /* MII 100BASE-FX full duplex */
 
#define SROM_PDA   0x0800 /* Powerup & Dynamic Autosense */
 
#define SROM_PAO   0x8800 /* Powerup Autosense Only */
 
#define SROM_NSMI   0xffff /* No Selected Media Information */
 
#define SROM_10BASET   0x0000 /* 10BASE-T half duplex */
 
#define SROM_10BASE2   0x0001 /* 10BASE-2 (BNC) */
 
#define SROM_10BASE5   0x0002 /* 10BASE-5 (AUI) */
 
#define SROM_100BASET   0x0003 /* 100BASE-T half duplex */
 
#define SROM_10BASETF   0x0004 /* 10BASE-T full duplex */
 
#define SROM_100BASETF   0x0005 /* 100BASE-T full duplex */
 
#define SROM_100BASET4   0x0006 /* 100BASE-T4 */
 
#define SROM_100BASEF   0x0007 /* 100BASE-FX half duplex */
 
#define SROM_100BASEFF   0x0008 /* 100BASE-FX full duplex */
 
#define BLOCK_LEN   0x7f /* Extended blocks length mask */
 
#define EXT_FIELD   0x40 /* Extended blocks extension field bit */
 
#define MEDIA_CODE   0x3f /* Extended blocks media code mask */
 
#define COMPACT_FI   0x80 /* Format Indicator */
 
#define COMPACT_LEN   0x04 /* Length */
 
#define COMPACT_MC   0x3f /* Media Code */
 
#define BLOCK0_FI   0x80 /* Format Indicator */
 
#define BLOCK0_MCS   0x80 /* Media Code byte Sign */
 
#define BLOCK0_MC   0x3f /* Media Code */
 
#define FDR_FDACV   0x0000ffff /* Full Duplex Auto Configuration Value */
 
#define GPT_CON   0x00010000 /* One shot: 0, Continuous: 1 */
 
#define GPT_VAL   0x0000ffff /* Timer Value */
 
#define GEP_LNP   0x00000080 /* Link Pass (input) */
 
#define GEP_SLNK   0x00000040 /* SYM LINK (input) */
 
#define GEP_SDET   0x00000020 /* Signal Detect (input) */
 
#define GEP_HRST   0x00000010 /* Hard RESET (to PHY) (output) */
 
#define GEP_FDXD   0x00000008 /* Full Duplex Disable (output) */
 
#define GEP_PHYL   0x00000004 /* PHY Loopback (output) */
 
#define GEP_FLED   0x00000002 /* Force Activity LED on (output) */
 
#define GEP_MODE   0x00000001 /* 0: 10Mb/s, 1: 100Mb/s */
 
#define GEP_INIT   0x0000011f /* Setup inputs (0) and outputs (1) */
 
#define GEP_CTRL   0x00000100 /* GEP control bit */
 
#define CSR13   0x00000001
 
#define CSR14   0x0003ff7f /* Autonegotiation disabled */
 
#define CSR15   0x00000008
 
#define SISR_LPC   0xffff0000 /* Link Partner's Code Word */
 
#define SISR_LPN   0x00008000 /* Link Partner Negotiable */
 
#define SISR_ANS   0x00007000 /* Auto Negotiation Arbitration State */
 
#define SISR_NSN   0x00000800 /* Non Stable NLPs Detected (DC21041) */
 
#define SISR_TRF   0x00000800 /* Transmit Remote Fault */
 
#define SISR_NSND   0x00000400 /* Non Stable NLPs Detected (DC21142) */
 
#define SISR_ANR_FDS   0x00000400 /* Auto Negotiate Restart/Full Duplex Sel.*/
 
#define SISR_TRA   0x00000200 /* 10BASE-T Receive Port Activity */
 
#define SISR_NRA   0x00000200 /* Non Selected Port Receive Activity */
 
#define SISR_ARA   0x00000100 /* AUI Receive Port Activity */
 
#define SISR_SRA   0x00000100 /* Selected Port Receive Activity */
 
#define SISR_DAO   0x00000080 /* PLL All One */
 
#define SISR_DAZ   0x00000040 /* PLL All Zero */
 
#define SISR_DSP   0x00000020 /* PLL Self-Test Pass */
 
#define SISR_DSD   0x00000010 /* PLL Self-Test Done */
 
#define SISR_APS   0x00000008 /* Auto Polarity State */
 
#define SISR_LKF   0x00000004 /* Link Fail Status */
 
#define SISR_LS10   0x00000004 /* 10Mb/s Link Fail Status */
 
#define SISR_NCR   0x00000002 /* Network Connection Error */
 
#define SISR_LS100   0x00000002 /* 100Mb/s Link Fail Status */
 
#define SISR_PAUI   0x00000001 /* AUI_TP Indication */
 
#define SISR_MRA   0x00000001 /* MII Receive Port Activity */
 
#define ANS_NDIS   0x00000000 /* Nway disable */
 
#define ANS_TDIS   0x00001000 /* Transmit Disable */
 
#define ANS_ADET   0x00002000 /* Ability Detect */
 
#define ANS_ACK   0x00003000 /* Acknowledge */
 
#define ANS_CACK   0x00004000 /* Complete Acknowledge */
 
#define ANS_NWOK   0x00005000 /* Nway OK - FLP Link Good */
 
#define ANS_LCHK   0x00006000 /* Link Check */
 
#define SISR_RST   0x00000301 /* CSR12 reset */
 
#define SISR_ANR   0x00001301 /* Autonegotiation restart */
 
#define SICR_SDM   0xffff0000 /* SIA Diagnostics Mode */
 
#define SICR_OE57   0x00008000 /* Output Enable 5 6 7 */
 
#define SICR_OE24   0x00004000 /* Output Enable 2 4 */
 
#define SICR_OE13   0x00002000 /* Output Enable 1 3 */
 
#define SICR_IE   0x00001000 /* Input Enable */
 
#define SICR_EXT   0x00000000 /* SIA MUX Select External SIA Mode */
 
#define SICR_D_SIA   0x00000400 /* SIA MUX Select Diagnostics - SIA Sigs */
 
#define SICR_DPLL   0x00000800 /* SIA MUX Select Diagnostics - DPLL Sigs*/
 
#define SICR_APLL   0x00000a00 /* SIA MUX Select Diagnostics - DPLL Sigs*/
 
#define SICR_D_RxM   0x00000c00 /* SIA MUX Select Diagnostics - RxM Sigs */
 
#define SICR_M_RxM   0x00000d00 /* SIA MUX Select Diagnostics - RxM Sigs */
 
#define SICR_LNKT   0x00000e00 /* SIA MUX Select Diagnostics - Link Test*/
 
#define SICR_SEL   0x00000f00 /* SIA MUX Select AUI or TP with LEDs */
 
#define SICR_ASE   0x00000080 /* APLL Start Enable*/
 
#define SICR_SIM   0x00000040 /* Serial Interface Input Multiplexer */
 
#define SICR_ENI   0x00000020 /* Encoder Input Multiplexer */
 
#define SICR_EDP   0x00000010 /* SIA PLL External Input Enable */
 
#define SICR_AUI   0x00000008 /* 10Base-T (0) or AUI (1) */
 
#define SICR_CAC   0x00000004 /* CSR Auto Configuration */
 
#define SICR_PS   0x00000002 /* Pin AUI/TP Selection */
 
#define SICR_SRL   0x00000001 /* SIA Reset */
 
#define SIA_RESET   0x00000000 /* SIA Reset Value */
 
#define STRR_TAS   0x00008000 /* 10Base-T/AUI Autosensing Enable */
 
#define STRR_SPP   0x00004000 /* Set Polarity Plus */
 
#define STRR_APE   0x00002000 /* Auto Polarity Enable */
 
#define STRR_LTE   0x00001000 /* Link Test Enable */
 
#define STRR_SQE   0x00000800 /* Signal Quality Enable */
 
#define STRR_CLD   0x00000400 /* Collision Detect Enable */
 
#define STRR_CSQ   0x00000200 /* Collision Squelch Enable */
 
#define STRR_RSQ   0x00000100 /* Receive Squelch Enable */
 
#define STRR_ANE   0x00000080 /* Auto Negotiate Enable */
 
#define STRR_HDE   0x00000040 /* Half Duplex Enable */
 
#define STRR_CPEN   0x00000030 /* Compensation Enable */
 
#define STRR_LSE   0x00000008 /* Link Pulse Send Enable */
 
#define STRR_DREN   0x00000004 /* Driver Enable */
 
#define STRR_LBK   0x00000002 /* Loopback Enable */
 
#define STRR_ECEN   0x00000001 /* Encoder Enable */
 
#define STRR_RESET   0xffffffff /* Reset value for STRR */
 
#define SIGR_RMI   0x40000000 /* Receive Match Interrupt */
 
#define SIGR_GI1   0x20000000 /* General Port Interrupt 1 */
 
#define SIGR_GI0   0x10000000 /* General Port Interrupt 0 */
 
#define SIGR_CWE   0x08000000 /* Control Write Enable */
 
#define SIGR_RME   0x04000000 /* Receive Match Enable */
 
#define SIGR_GEI1   0x02000000 /* GEP Interrupt Enable on Port 1 */
 
#define SIGR_GEI0   0x01000000 /* GEP Interrupt Enable on Port 0 */
 
#define SIGR_LGS3   0x00800000 /* LED/GEP3 Select */
 
#define SIGR_LGS2   0x00400000 /* LED/GEP2 Select */
 
#define SIGR_LGS1   0x00200000 /* LED/GEP1 Select */
 
#define SIGR_LGS0   0x00100000 /* LED/GEP0 Select */
 
#define SIGR_MD   0x000f0000 /* General Purpose Mode and Data */
 
#define SIGR_LV2   0x00008000 /* General Purpose LED2 value */
 
#define SIGR_LE2   0x00004000 /* General Purpose LED2 enable */
 
#define SIGR_FRL   0x00002000 /* Force Receiver Low */
 
#define SIGR_DPST   0x00001000 /* PLL Self Test Start */
 
#define SIGR_LSD   0x00000800 /* LED Stretch Disable */
 
#define SIGR_FLF   0x00000400 /* Force Link Fail */
 
#define SIGR_FUSQ   0x00000200 /* Force Unsquelch */
 
#define SIGR_TSCK   0x00000100 /* Test Clock */
 
#define SIGR_LV1   0x00000080 /* General Purpose LED1 value */
 
#define SIGR_LE1   0x00000040 /* General Purpose LED1 enable */
 
#define SIGR_RWR   0x00000020 /* Receive Watchdog Release */
 
#define SIGR_RWD   0x00000010 /* Receive Watchdog Disable */
 
#define SIGR_ABM   0x00000008 /* BNC: 0, AUI:1 */
 
#define SIGR_JCK   0x00000004 /* Jabber Clock */
 
#define SIGR_HUJ   0x00000002 /* Host Unjab */
 
#define SIGR_JBD   0x00000001 /* Jabber Disable */
 
#define SIGR_RESET   0xffff0000 /* Reset value for SIGR */
 
#define R_OWN   0x80000000 /* Own Bit */
 
#define RD_FF   0x40000000 /* Filtering Fail */
 
#define RD_FL   0x3fff0000 /* Frame Length */
 
#define RD_ES   0x00008000 /* Error Summary */
 
#define RD_LE   0x00004000 /* Length Error */
 
#define RD_DT   0x00003000 /* Data Type */
 
#define RD_RF   0x00000800 /* Runt Frame */
 
#define RD_MF   0x00000400 /* Multicast Frame */
 
#define RD_FS   0x00000200 /* First Descriptor */
 
#define RD_LS   0x00000100 /* Last Descriptor */
 
#define RD_TL   0x00000080 /* Frame Too Long */
 
#define RD_CS   0x00000040 /* Collision Seen */
 
#define RD_FT   0x00000020 /* Frame Type */
 
#define RD_RJ   0x00000010 /* Receive Watchdog */
 
#define RD_RE   0x00000008 /* Report on MII Error */
 
#define RD_DB   0x00000004 /* Dribbling Bit */
 
#define RD_CE   0x00000002 /* CRC Error */
 
#define RD_OF   0x00000001 /* Overflow */
 
#define RD_RER   0x02000000 /* Receive End Of Ring */
 
#define RD_RCH   0x01000000 /* Second Address Chained */
 
#define RD_RBS2   0x003ff800 /* Buffer 2 Size */
 
#define RD_RBS1   0x000007ff /* Buffer 1 Size */
 
#define T_OWN   0x80000000 /* Own Bit */
 
#define TD_ES   0x00008000 /* Error Summary */
 
#define TD_TO   0x00004000 /* Transmit Jabber Time-Out */
 
#define TD_LO   0x00000800 /* Loss Of Carrier */
 
#define TD_NC   0x00000400 /* No Carrier */
 
#define TD_LC   0x00000200 /* Late Collision */
 
#define TD_EC   0x00000100 /* Excessive Collisions */
 
#define TD_HF   0x00000080 /* Heartbeat Fail */
 
#define TD_CC   0x00000078 /* Collision Counter */
 
#define TD_LF   0x00000004 /* Link Fail */
 
#define TD_UF   0x00000002 /* Underflow Error */
 
#define TD_DE   0x00000001 /* Deferred */
 
#define TD_IC   0x80000000 /* Interrupt On Completion */
 
#define TD_LS   0x40000000 /* Last Segment */
 
#define TD_FS   0x20000000 /* First Segment */
 
#define TD_FT1   0x10000000 /* Filtering Type */
 
#define TD_SET   0x08000000 /* Setup Packet */
 
#define TD_AC   0x04000000 /* Add CRC Disable */
 
#define TD_TER   0x02000000 /* Transmit End Of Ring */
 
#define TD_TCH   0x01000000 /* Second Address Chained */
 
#define TD_DPD   0x00800000 /* Disabled Padding */
 
#define TD_FT0   0x00400000 /* Filtering Type */
 
#define TD_TBS2   0x003ff800 /* Buffer 2 Size */
 
#define TD_TBS1   0x000007ff /* Buffer 1 Size */
 
#define PERFECT_F   0x00000000
 
#define HASH_F   TD_FT0
 
#define INVERSE_F   TD_FT1
 
#define HASH_O_F   (TD_FT1 | TD_F0)
 
#define TP   0x0040 /* 10Base-T (now equiv to _10Mb) */
 
#define TP_NW   0x0002 /* 10Base-T with Nway */
 
#define BNC   0x0004 /* Thinwire */
 
#define AUI   0x0008 /* Thickwire */
 
#define BNC_AUI   0x0010 /* BNC/AUI on DC21040 indistinguishable */
 
#define _10Mb   0x0040 /* 10Mb/s Ethernet */
 
#define _100Mb   0x0080 /* 100Mb/s Ethernet */
 
#define AUTO   0x4000 /* Auto sense the media or speed */
 
#define NC   0x0000 /* No Connection */
 
#define ANS   0x0020 /* Intermediate AutoNegotiation State */
 
#define SPD_DET   0x0100 /* Parallel speed detection */
 
#define INIT   0x0200 /* Initial state */
 
#define EXT_SIA   0x0400 /* External SIA for motherboard chip */
 
#define ANS_SUSPECT   0x0802 /* Suspect the ANS (TP) port is down */
 
#define TP_SUSPECT   0x0803 /* Suspect the TP port is down */
 
#define BNC_AUI_SUSPECT   0x0804 /* Suspect the BNC or AUI port is down */
 
#define EXT_SIA_SUSPECT   0x0805 /* Suspect the EXT SIA port is down */
 
#define BNC_SUSPECT   0x0806 /* Suspect the BNC port is down */
 
#define AUI_SUSPECT   0x0807 /* Suspect the AUI port is down */
 
#define MII   0x1000 /* MII on the 21143 */
 
#define TIMER_CB   0x80000000 /* Timer callback detection */
 
#define DEBUG_NONE   0x0000 /* No DEBUG messages */
 
#define DEBUG_VERSION   0x0001 /* Print version message */
 
#define DEBUG_MEDIA   0x0002 /* Print media messages */
 
#define DEBUG_TX   0x0004 /* Print TX (queue_pkt) messages */
 
#define DEBUG_RX   0x0008 /* Print RX (de4x5_rx) messages */
 
#define DEBUG_SROM   0x0010 /* Print SROM messages */
 
#define DEBUG_MII   0x0020 /* Print MII messages */
 
#define DEBUG_OPEN   0x0040 /* Print de4x5_open() messages */
 
#define DEBUG_CLOSE   0x0080 /* Print de4x5_close() messages */
 
#define DEBUG_PCICFG   0x0100
 
#define DEBUG_ALL   0x01ff
 
#define PCI   0
 
#define EISA   1
 
#define HASH_TABLE_LEN   512 /* Bits */
 
#define HASH_BITS   0x01ff /* 9 LS bits */
 
#define SETUP_FRAME_LEN   192 /* Bytes */
 
#define IMPERF_PA_OFFSET   156 /* Bytes */
 
#define POLL_DEMAND   1
 
#define LOST_MEDIA_THRESHOLD   3
 
#define MASK_INTERRUPTS   1
 
#define UNMASK_INTERRUPTS   0
 
#define DE4X5_STRLEN   8
 
#define DE4X5_INIT   0 /* Initialisation time */
 
#define DE4X5_RUN   1 /* Run time */
 
#define DE4X5_SAVE_STATE   0
 
#define DE4X5_RESTORE_STATE   1
 
#define PERFECT   0 /* 16 perfect physical addresses */
 
#define HASH_PERF   1 /* 1 perfect, 512 multicast addresses */
 
#define PERFECT_REJ   2 /* Reject 16 perfect physical addresses */
 
#define ALL_HASH   3 /* Hashes all physical & multicast addrs */
 
#define ALL   0 /* Clear out all the setup frame */
 
#define PHYS_ADDR_ONLY   1 /* Update the physical address only */
 
#define INITIALISED   0 /* After h/w initialised and mem alloc'd */
 
#define CLOSED   1 /* Ready for opening */
 
#define OPEN   2 /* Running */
 
#define PDET_LINK_WAIT   1200 /* msecs to wait for link detect bits */
 
#define ANS_FINISH_WAIT   1000 /* msecs to wait for link detect bits */
 
#define NATIONAL_TX   0x2000
 
#define BROADCOM_T4   0x03e0
 
#define SEEQ_T4   0x0016
 
#define CYPRESS_T4   0x0014
 
#define SET_10Mb
 
#define SET_100Mb
 
#define SET_100Mb_PDET
 
#define DE4X5_GET_HWADDR   0x01 /* Get the hardware address */
 
#define DE4X5_SET_HWADDR   0x02 /* Set the hardware address */
 
#define DE4X5_SAY_BOO   0x05 /* Say "Boo!" to the kernel log file */
 
#define DE4X5_GET_MCA   0x06 /* Get a multicast address */
 
#define DE4X5_SET_MCA   0x07 /* Set a multicast address */
 
#define DE4X5_CLR_MCA   0x08 /* Clear a multicast address */
 
#define DE4X5_MCA_EN   0x09 /* Enable a multicast address group */
 
#define DE4X5_GET_STATS   0x0a /* Get the driver statistics */
 
#define DE4X5_CLR_STATS   0x0b /* Zero out the driver statistics */
 
#define DE4X5_GET_OMR   0x0c /* Get the OMR Register contents */
 
#define DE4X5_SET_OMR   0x0d /* Set the OMR Register contents */
 
#define DE4X5_GET_REG   0x0e /* Get the DE4X5 Registers */
 
#define MOTO_SROM_BUG   (lp->active == 8 && (get_unaligned_le32(dev->dev_addr) & 0x00ffffff) == 0x3e0008)
 

Macro Definition Documentation

#define _100Mb   0x0080 /* 100Mb/s Ethernet */

Definition at line 821 of file de4x5.h.

#define _10Mb   0x0040 /* 10Mb/s Ethernet */

Definition at line 820 of file de4x5.h.

#define ALL   0 /* Clear out all the setup frame */

Definition at line 892 of file de4x5.h.

#define ALL_HASH   3 /* Hashes all physical & multicast addrs */

Definition at line 890 of file de4x5.h.

#define ANS   0x0020 /* Intermediate AutoNegotiation State */

Definition at line 828 of file de4x5.h.

#define ANS_ACK   0x00003000 /* Acknowledge */

Definition at line 663 of file de4x5.h.

#define ANS_ADET   0x00002000 /* Ability Detect */

Definition at line 662 of file de4x5.h.

#define ANS_CACK   0x00004000 /* Complete Acknowledge */

Definition at line 664 of file de4x5.h.

#define ANS_FINISH_WAIT   1000 /* msecs to wait for link detect bits */

Definition at line 906 of file de4x5.h.

#define ANS_LCHK   0x00006000 /* Link Check */

Definition at line 666 of file de4x5.h.

#define ANS_NDIS   0x00000000 /* Nway disable */

Definition at line 660 of file de4x5.h.

#define ANS_NWOK   0x00005000 /* Nway OK - FLP Link Good */

Definition at line 665 of file de4x5.h.

#define ANS_SUSPECT   0x0802 /* Suspect the ANS (TP) port is down */

Definition at line 832 of file de4x5.h.

#define ANS_TDIS   0x00001000 /* Transmit Disable */

Definition at line 661 of file de4x5.h.

#define APROM_DN   0x80000000 /* Data Not Valid */

Definition at line 408 of file de4x5.h.

#define APROM_DT   0x000000ff /* Address Byte */

Definition at line 409 of file de4x5.h.

#define AUI   0x0008 /* Thickwire */

Definition at line 818 of file de4x5.h.

#define AUI_SUSPECT   0x0807 /* Suspect the AUI port is down */

Definition at line 837 of file de4x5.h.

#define AUTO   0x4000 /* Auto sense the media or speed */

Definition at line 822 of file de4x5.h.

#define BASE_CLASS   0x02000000 /* Indicates Network Controller */

Definition at line 156 of file de4x5.h.

#define BLOCK0_FI   0x80 /* Format Indicator */

Definition at line 597 of file de4x5.h.

#define BLOCK0_MC   0x3f /* Media Code */

Definition at line 599 of file de4x5.h.

#define BLOCK0_MCS   0x80 /* Media Code byte Sign */

Definition at line 598 of file de4x5.h.

#define BLOCK_LEN   0x7f /* Extended blocks length mask */

Definition at line 583 of file de4x5.h.

#define BMR_BAR   0x00000002 /* Bus ARbitration */

Definition at line 221 of file de4x5.h.

#define BMR_BLE   0x00000080 /* Big/Little Endian */

Definition at line 219 of file de4x5.h.

#define BMR_CAL   0x0000c000 /* Cache Alignment */

Definition at line 217 of file de4x5.h.

#define BMR_DAS   0x00010000 /* Diagnostic Address Space */

Definition at line 216 of file de4x5.h.

#define BMR_DBO   0x00100000 /* Descriptor Byte Ordering (Endian) */

Definition at line 214 of file de4x5.h.

#define BMR_DSL   0x0000007c /* Descriptor Skip Length */

Definition at line 220 of file de4x5.h.

#define BMR_PBL   0x00003f00 /* Programmable Burst Length */

Definition at line 218 of file de4x5.h.

#define BMR_RML   0x00200000 /* [Memory] Read Multiple */

Definition at line 213 of file de4x5.h.

#define BMR_SWR   0x00000001 /* Software Reset */

Definition at line 222 of file de4x5.h.

#define BMR_TAP   0x000e0000 /* Transmit Automatic Polling */

Definition at line 215 of file de4x5.h.

#define BNC   0x0004 /* Thinwire */

Definition at line 817 of file de4x5.h.

#define BNC_AUI   0x0010 /* BNC/AUI on DC21040 indistinguishable */

Definition at line 819 of file de4x5.h.

#define BNC_AUI_SUSPECT   0x0804 /* Suspect the BNC or AUI port is down */

Definition at line 834 of file de4x5.h.

#define BNC_SUSPECT   0x0806 /* Suspect the BNC port is down */

Definition at line 836 of file de4x5.h.

#define BROADCOM_T4   0x03e0

Definition at line 914 of file de4x5.h.

#define BROM_BR   0x00001000 /* Select Boot ROM when set */

Definition at line 417 of file de4x5.h.

#define BROM_DT   0x000000ff /* Data Byte */

Definition at line 420 of file de4x5.h.

#define BROM_MODE   0x00008000 /* MODE_1: 0, MODE_0: 1 (read only) */

Definition at line 414 of file de4x5.h.

#define BROM_RD   0x00004000 /* Read from Boot ROM */

Definition at line 415 of file de4x5.h.

#define BROM_REG   0x00000400 /* External Register Select */

Definition at line 419 of file de4x5.h.

#define BROM_SR   0x00000800 /* Select Serial ROM when set */

Definition at line 418 of file de4x5.h.

#define BROM_WR   0x00002000 /* Write to Boot ROM */

Definition at line 416 of file de4x5.h.

#define CAL_16LONG   0x00008000 /* 16-longword alignment */

Definition at line 236 of file de4x5.h.

#define CAL_32LONG   0x0000c000 /* 32-longword alignment */

Definition at line 237 of file de4x5.h.

#define CAL_8LONG   0x00004000 /* 8-longword alignment */

Definition at line 235 of file de4x5.h.

#define CAL_NOUSE   0x00000000 /* Not used */

Definition at line 234 of file de4x5.h.

#define CBER_MASK   0xfffffc00 /* Expansion ROM Base Address Mask */

Definition at line 189 of file de4x5.h.

#define CBER_ROME   0x00000001 /* ROM Enable */

Definition at line 190 of file de4x5.h.

#define CBIO_IOSI   0x00000001 /* I/O Space Indicator (RO, value is 1) */

Definition at line 171 of file de4x5.h.

#define CBIO_MASK   -128 /* Base I/O Address Mask */

Definition at line 170 of file de4x5.h.

#define CCIS_ASI   0x00000007 /* Address Space Indicator */

Definition at line 178 of file de4x5.h.

#define CCIS_ASO   0x0ffffff8 /* Address Space Offset */

Definition at line 177 of file de4x5.h.

#define CCIS_ROMI   0xf0000000 /* ROM Image */

Definition at line 176 of file de4x5.h.

#define CFCS_DPE   0x80000000 /* Detected Parity Error (S) */

Definition at line 136 of file de4x5.h.

#define CFCS_DPR   0x01000000 /* Data Parity Report (S) */

Definition at line 141 of file de4x5.h.

#define CFCS_DST   0x06000000 /* DEVSEL Timing (S) */

Definition at line 140 of file de4x5.h.

#define CFCS_FBB   0x00800000 /* Fast Back-To-Back (S) */

Definition at line 142 of file de4x5.h.

#define CFCS_IOSA   0x00000001 /* I/O Space Access (C) */

Definition at line 147 of file de4x5.h.

#define CFCS_MO   0x00000004 /* Master Operation (C) */

Definition at line 145 of file de4x5.h.

#define CFCS_MSA   0x00000002 /* Memory Space Access (C) */

Definition at line 146 of file de4x5.h.

#define CFCS_PER   0x00000040 /* Parity Error Response (C) */

Definition at line 144 of file de4x5.h.

#define CFCS_RMA   0x20000000 /* Receive Master Abort (S) */

Definition at line 138 of file de4x5.h.

#define CFCS_RTA   0x10000000 /* Receive Target Abort (S) */

Definition at line 139 of file de4x5.h.

#define CFCS_SEE   0x00000100 /* System Error Enable (C) */

Definition at line 143 of file de4x5.h.

#define CFCS_SSE   0x40000000 /* Signal System Error (S) */

Definition at line 137 of file de4x5.h.

#define CFID_DID   0xff00 /* Device ID */

Definition at line 104 of file de4x5.h.

#define CFID_VID   0x00ff /* Vendor ID */

Definition at line 105 of file de4x5.h.

#define CFIT_IRQL   0x000000ff /* Interrupt Line */

Definition at line 198 of file de4x5.h.

#define CFIT_IRQP   0x0000ff00 /* Interrupt Pin */

Definition at line 197 of file de4x5.h.

#define CFIT_MNGT   0x00ff0000 /* MIN_GNT Value (0.25us periods) */

Definition at line 196 of file de4x5.h.

#define CFIT_MXLT   0xff000000 /* MAX_LAT Value (0.25us periods) */

Definition at line 195 of file de4x5.h.

#define CFLT_BC   0x0000ff00 /* Latency Timer bits */

Definition at line 165 of file de4x5.h.

#define CFRV_BC   0xff000000 /* Base Class */

Definition at line 152 of file de4x5.h.

#define CFRV_MASK   0xffff0000 /* Register mask */

Definition at line 160 of file de4x5.h.

#define CFRV_RN   0x000000f0 /* Revision Number */

Definition at line 154 of file de4x5.h.

#define CFRV_SC   0x00ff0000 /* Subclass */

Definition at line 153 of file de4x5.h.

#define CFRV_SN   0x0000000f /* Step Number */

Definition at line 155 of file de4x5.h.

#define CLOSED   1 /* Ready for opening */

Definition at line 899 of file de4x5.h.

#define COMPACT_FI   0x80 /* Format Indicator */

Definition at line 590 of file de4x5.h.

#define COMPACT_LEN   0x04 /* Length */

Definition at line 591 of file de4x5.h.

#define COMPACT_MC   0x3f /* Media Code */

Definition at line 592 of file de4x5.h.

#define CSR13   0x00000001

Definition at line 630 of file de4x5.h.

#define CSR14   0x0003ff7f /* Autonegotiation disabled */

Definition at line 631 of file de4x5.h.

#define CSR15   0x00000008

Definition at line 632 of file de4x5.h.

#define CYPRESS_T4   0x0014

Definition at line 916 of file de4x5.h.

#define DC21040   DC21040_DID

Definition at line 118 of file de4x5.h.

#define DC21040_DID   0x0200 /* Unique Device ID # */

Definition at line 106 of file de4x5.h.

#define DC21040_VID   0x1011 /* DC21040 Manufacturer */

Definition at line 107 of file de4x5.h.

#define DC21041   DC21041_DID

Definition at line 119 of file de4x5.h.

#define DC21041_DID   0x1400 /* Unique Device ID # */

Definition at line 108 of file de4x5.h.

#define DC21041_VID   0x1011 /* DC21041 Manufacturer */

Definition at line 109 of file de4x5.h.

#define DC21140   DC21140_DID

Definition at line 120 of file de4x5.h.

#define DC21140_DID   0x0900 /* Unique Device ID # */

Definition at line 110 of file de4x5.h.

#define DC21140_VID   0x1011 /* DC21140 Manufacturer */

Definition at line 111 of file de4x5.h.

#define DC21142   (DC2114x_DID | 0x0010)

Definition at line 122 of file de4x5.h.

#define DC21143   (DC2114x_DID | 0x0030)

Definition at line 123 of file de4x5.h.

#define DC2114x   DC2114x_DID

Definition at line 121 of file de4x5.h.

#define DC2114x_BRK   0x0020 /* CFRV break between DC21142 & DC21143 */

Definition at line 124 of file de4x5.h.

#define DC2114x_DID   0x1900 /* Unique Device ID # */

Definition at line 112 of file de4x5.h.

#define DC2114x_VID   0x1011 /* DC2114[23] Manufacturer */

Definition at line 113 of file de4x5.h.

#define DE4X5_APROM   iobase+(0x048 << lp->bus) /* Ethernet Address PROM */

Definition at line 25 of file de4x5.h.

#define DE4X5_BMR   iobase+(0x000 << lp->bus) /* Bus Mode Register */

Definition at line 16 of file de4x5.h.

#define DE4X5_BROM   iobase+(0x048 << lp->bus) /* Boot ROM Register */

Definition at line 26 of file de4x5.h.

#define DE4X5_CLR_MCA   0x08 /* Clear a multicast address */

Definition at line 1009 of file de4x5.h.

#define DE4X5_CLR_STATS   0x0b /* Zero out the driver statistics */

Definition at line 1012 of file de4x5.h.

#define DE4X5_DDR   iobase+(0x050 << lp->bus) /* Data Diagnostic Register */

Definition at line 29 of file de4x5.h.

#define DE4X5_FDR   iobase+(0x058 << lp->bus) /* Full Duplex Register */

Definition at line 30 of file de4x5.h.

#define DE4X5_GEP   iobase+(0x060 << lp->bus) /* General Purpose Register */

Definition at line 32 of file de4x5.h.

#define DE4X5_GET_HWADDR   0x01 /* Get the hardware address */

Definition at line 1003 of file de4x5.h.

#define DE4X5_GET_MCA   0x06 /* Get a multicast address */

Definition at line 1007 of file de4x5.h.

#define DE4X5_GET_OMR   0x0c /* Get the OMR Register contents */

Definition at line 1013 of file de4x5.h.

#define DE4X5_GET_REG   0x0e /* Get the DE4X5 Registers */

Definition at line 1015 of file de4x5.h.

#define DE4X5_GET_STATS   0x0a /* Get the driver statistics */

Definition at line 1011 of file de4x5.h.

#define DE4X5_GPT   iobase+(0x058 << lp->bus) /* General Purpose Timer Reg.*/

Definition at line 31 of file de4x5.h.

#define DE4X5_IMR   iobase+(0x038 << lp->bus) /* Interrupt Mask Register */

Definition at line 23 of file de4x5.h.

#define DE4X5_INIT   0 /* Initialisation time */

Definition at line 878 of file de4x5.h.

#define DE4X5_MAX_MII   32 /* Maximum address of MII PHY devices */

Definition at line 462 of file de4x5.h.

#define DE4X5_MCA_EN   0x09 /* Enable a multicast address group */

Definition at line 1010 of file de4x5.h.

#define DE4X5_MFC   iobase+(0x040 << lp->bus) /* Missed Frame Counter */

Definition at line 24 of file de4x5.h.

#define DE4X5_MII   iobase+(0x048 << lp->bus) /* MII Interface Register */

Definition at line 28 of file de4x5.h.

#define DE4X5_OMR   iobase+(0x030 << lp->bus) /* Operation Mode Register */

Definition at line 22 of file de4x5.h.

#define DE4X5_RESTORE_STATE   1

Definition at line 882 of file de4x5.h.

#define DE4X5_RPD   iobase+(0x010 << lp->bus) /* Receive Poll Demand Reg */

Definition at line 18 of file de4x5.h.

#define DE4X5_RRBA   iobase+(0x018 << lp->bus) /* RX Ring Base Address Reg */

Definition at line 19 of file de4x5.h.

#define DE4X5_RUN   1 /* Run time */

Definition at line 879 of file de4x5.h.

#define DE4X5_SAVE_STATE   0

Definition at line 881 of file de4x5.h.

#define DE4X5_SAY_BOO   0x05 /* Say "Boo!" to the kernel log file */

Definition at line 1006 of file de4x5.h.

#define DE4X5_SET_HWADDR   0x02 /* Set the hardware address */

Definition at line 1004 of file de4x5.h.

#define DE4X5_SET_MCA   0x07 /* Set a multicast address */

Definition at line 1008 of file de4x5.h.

#define DE4X5_SET_OMR   0x0d /* Set the OMR Register contents */

Definition at line 1014 of file de4x5.h.

#define DE4X5_SICR   iobase+(0x068 << lp->bus) /* SIA Connectivity Register */

Definition at line 34 of file de4x5.h.

#define DE4X5_SIGR   iobase+(0x078 << lp->bus) /* SIA General Register */

Definition at line 36 of file de4x5.h.

#define DE4X5_SISR   iobase+(0x060 << lp->bus) /* SIA Status Register */

Definition at line 33 of file de4x5.h.

#define DE4X5_SROM   iobase+(0x048 << lp->bus) /* Serial ROM Register */

Definition at line 27 of file de4x5.h.

#define DE4X5_STRLEN   8

Definition at line 876 of file de4x5.h.

#define DE4X5_STRR   iobase+(0x070 << lp->bus) /* SIA TX/RX Register */

Definition at line 35 of file de4x5.h.

#define DE4X5_STS   iobase+(0x028 << lp->bus) /* Status Register */

Definition at line 21 of file de4x5.h.

#define DE4X5_TPD   iobase+(0x008 << lp->bus) /* Transmit Poll Demand Reg */

Definition at line 17 of file de4x5.h.

#define DE4X5_TRBA   iobase+(0x020 << lp->bus) /* TX Ring Base Address Reg */

Definition at line 20 of file de4x5.h.

#define DEBUG_ALL   0x01ff

Definition at line 855 of file de4x5.h.

#define DEBUG_CLOSE   0x0080 /* Print de4x5_close() messages */

Definition at line 853 of file de4x5.h.

#define DEBUG_MEDIA   0x0002 /* Print media messages */

Definition at line 847 of file de4x5.h.

#define DEBUG_MII   0x0020 /* Print MII messages */

Definition at line 851 of file de4x5.h.

#define DEBUG_NONE   0x0000 /* No DEBUG messages */

Definition at line 845 of file de4x5.h.

#define DEBUG_OPEN   0x0040 /* Print de4x5_open() messages */

Definition at line 852 of file de4x5.h.

#define DEBUG_PCICFG   0x0100

Definition at line 854 of file de4x5.h.

#define DEBUG_RX   0x0008 /* Print RX (de4x5_rx) messages */

Definition at line 849 of file de4x5.h.

#define DEBUG_SROM   0x0010 /* Print SROM messages */

Definition at line 850 of file de4x5.h.

#define DEBUG_TX   0x0004 /* Print TX (queue_pkt) messages */

Definition at line 848 of file de4x5.h.

#define DEBUG_VERSION   0x0001 /* Print version message */

Definition at line 846 of file de4x5.h.

#define DSL_0   0x00000000 /* 0 longword / descriptor */

Definition at line 247 of file de4x5.h.

#define DSL_1   0x00000004 /* 1 longword / descriptor */

Definition at line 248 of file de4x5.h.

#define DSL_16   0x00000040 /* 16 longwords / descriptor */

Definition at line 252 of file de4x5.h.

#define DSL_2   0x00000008 /* 2 longwords / descriptor */

Definition at line 249 of file de4x5.h.

#define DSL_32   0x00000080 /* 32 longwords / descriptor */

Definition at line 253 of file de4x5.h.

#define DSL_4   0x00000010 /* 4 longwords / descriptor */

Definition at line 250 of file de4x5.h.

#define DSL_8   0x00000020 /* 8 longwords / descriptor */

Definition at line 251 of file de4x5.h.

#define DT_CLK   0x00000002 /* Serial ROM Clock */

Definition at line 445 of file de4x5.h.

#define DT_CS   0x00000001 /* Serial ROM Chip Select */

Definition at line 446 of file de4x5.h.

#define DT_IN   0x00000004 /* Serial Data In */

Definition at line 444 of file de4x5.h.

#define DT_OUT   0x00000008 /* Serial Data Out */

Definition at line 443 of file de4x5.h.

#define EB_MA   0x00800000 /* Master Abort */

Definition at line 305 of file de4x5.h.

#define EB_PAR   0x00000000 /* Parity Error */

Definition at line 304 of file de4x5.h.

#define EB_RES0   0x01800000 /* Reserved */

Definition at line 307 of file de4x5.h.

#define EB_RES1   0x02000000 /* Reserved */

Definition at line 308 of file de4x5.h.

#define EB_TA   0x01000000 /* Target Abort */

Definition at line 306 of file de4x5.h.

#define EISA   1

Definition at line 861 of file de4x5.h.

#define EISA_APROM   iobase+0x0c90 /* Ethernet Address PROM */

Definition at line 51 of file de4x5.h.

#define EISA_CR   iobase+0x0c84 /* EISA Control Register */

Definition at line 46 of file de4x5.h.

#define EISA_ID   iobase+0x0c80 /* EISA ID Registers */

Definition at line 41 of file de4x5.h.

#define EISA_ID0   iobase+0x0c80 /* EISA ID Register 0 */

Definition at line 42 of file de4x5.h.

#define EISA_ID1   iobase+0x0c81 /* EISA ID Register 1 */

Definition at line 43 of file de4x5.h.

#define EISA_ID2   iobase+0x0c82 /* EISA ID Register 2 */

Definition at line 44 of file de4x5.h.

#define EISA_ID3   iobase+0x0c83 /* EISA ID Register 3 */

Definition at line 45 of file de4x5.h.

#define EISA_REG0   iobase+0x0c88 /* EISA Configuration Register 0 */

Definition at line 47 of file de4x5.h.

#define EISA_REG1   iobase+0x0c89 /* EISA Configuration Register 1 */

Definition at line 48 of file de4x5.h.

#define EISA_REG2   iobase+0x0c8a /* EISA Configuration Register 2 */

Definition at line 49 of file de4x5.h.

#define EISA_REG3   iobase+0x0c8f /* EISA Configuration Register 3 */

Definition at line 50 of file de4x5.h.

#define ER0_BMW   0x40 /* EISA Bus Master Width, 1: 32 bits */

Definition at line 72 of file de4x5.h.

#define ER0_BSW   0x80 /* EISA Bus Slave Width, 1: 32 bits */

Definition at line 71 of file de4x5.h.

#define ER0_EPT   0x20 /* EISA PREEMPT Time, 0: 23 BCLKs */

Definition at line 73 of file de4x5.h.

#define ER0_INTL   0x06 /* INTerrupt Level */

Definition at line 76 of file de4x5.h.

#define ER0_INTT   0x01 /* INTerrupt Type, 0: Level, 1: Edge */

Definition at line 77 of file de4x5.h.

#define ER0_ISTS   0x10 /* Interrupt Status (X) */

Definition at line 74 of file de4x5.h.

#define ER0_LI   0x08 /* Latch Interrupts */

Definition at line 75 of file de4x5.h.

#define ER1_IAE   0x10 /* ISA Addressing Enable */

Definition at line 83 of file de4x5.h.

#define ER1_IAM   0xe0 /* ISA Address Mode */

Definition at line 82 of file de4x5.h.

#define ER1_UPIN   0x0f /* User Pins */

Definition at line 84 of file de4x5.h.

#define ER2_BRA   0x3c /* Boot ROM Address <16:13> */

Definition at line 90 of file de4x5.h.

#define ER2_BRS   0xc0 /* Boot ROM Size */

Definition at line 89 of file de4x5.h.

#define ER3_BRE   0x04 /* Burst Read Enable */

Definition at line 96 of file de4x5.h.

#define ER3_BWE   0x40 /* Burst Write Enable */

Definition at line 95 of file de4x5.h.

#define ER3_LSR   0x02 /* Local Software Reset */

Definition at line 97 of file de4x5.h.

#define EXT_FIELD   0x40 /* Extended blocks extension field bit */

Definition at line 584 of file de4x5.h.

#define EXT_SIA   0x0400 /* External SIA for motherboard chip */

Definition at line 831 of file de4x5.h.

#define EXT_SIA_SUSPECT   0x0805 /* Suspect the EXT SIA port is down */

Definition at line 835 of file de4x5.h.

#define FDR_FDACV   0x0000ffff /* Full Duplex Auto Configuration Value */

Definition at line 604 of file de4x5.h.

#define GEP_CTRL   0x00000100 /* GEP control bit */

Definition at line 625 of file de4x5.h.

#define GEP_FDXD   0x00000008 /* Full Duplex Disable (output) */

Definition at line 620 of file de4x5.h.

#define GEP_FLED   0x00000002 /* Force Activity LED on (output) */

Definition at line 622 of file de4x5.h.

#define GEP_HRST   0x00000010 /* Hard RESET (to PHY) (output) */

Definition at line 619 of file de4x5.h.

#define GEP_INIT   0x0000011f /* Setup inputs (0) and outputs (1) */

Definition at line 624 of file de4x5.h.

#define GEP_LNP   0x00000080 /* Link Pass (input) */

Definition at line 616 of file de4x5.h.

#define GEP_MODE   0x00000001 /* 0: 10Mb/s, 1: 100Mb/s */

Definition at line 623 of file de4x5.h.

#define GEP_PHYL   0x00000004 /* PHY Loopback (output) */

Definition at line 621 of file de4x5.h.

#define GEP_SDET   0x00000020 /* Signal Detect (input) */

Definition at line 618 of file de4x5.h.

#define GEP_SLNK   0x00000040 /* SYM LINK (input) */

Definition at line 617 of file de4x5.h.

#define GPT_CON   0x00010000 /* One shot: 0, Continuous: 1 */

Definition at line 609 of file de4x5.h.

#define GPT_VAL   0x0000ffff /* Timer Value */

Definition at line 610 of file de4x5.h.

#define HASH_BITS   0x01ff /* 9 LS bits */

Definition at line 864 of file de4x5.h.

#define HASH_F   TD_FT0

Definition at line 807 of file de4x5.h.

#define HASH_O_F   (TD_FT1 | TD_F0)

Definition at line 809 of file de4x5.h.

#define HASH_PERF   1 /* 1 perfect, 512 multicast addresses */

Definition at line 888 of file de4x5.h.

#define HASH_TABLE_LEN   512 /* Bits */

Definition at line 863 of file de4x5.h.

#define IMPERF_PA_OFFSET   156 /* Bytes */

Definition at line 867 of file de4x5.h.

#define IMR_AIM   0x00008000 /* Abnormal Interrupt Summary Mask */

Definition at line 375 of file de4x5.h.

#define IMR_ANM   0x00000010 /* Autonegotiation Complete Mask */

Definition at line 389 of file de4x5.h.

#define IMR_ATM   0x00000400 /* AUI/TP Switch Mask */

Definition at line 383 of file de4x5.h.

#define IMR_ERM   0x00004000 /* Early Receive Mask */

Definition at line 376 of file de4x5.h.

#define IMR_ETM   0x00000400 /* Early Transmit Interrupt Mask */

Definition at line 382 of file de4x5.h.

#define IMR_FBM   0x00002000 /* Fatal Bus Error Mask */

Definition at line 377 of file de4x5.h.

#define IMR_FDM   0x00000800 /* Full-Duplex (Short Frame) Mask */

Definition at line 380 of file de4x5.h.

#define IMR_GPM   0x04000000 /* General Purpose Port Mask */

Definition at line 373 of file de4x5.h.

#define IMR_LFM   0x00001000 /* Link Fail Mask */

Definition at line 379 of file de4x5.h.

#define IMR_LPM   0x00000010 /* Link Pass */

Definition at line 390 of file de4x5.h.

#define IMR_NIM   0x00010000 /* Normal Interrupt Summary Mask */

Definition at line 374 of file de4x5.h.

#define IMR_RIM   0x00000040 /* Receive Interrupt Mask */

Definition at line 387 of file de4x5.h.

#define IMR_RSM   0x00000100 /* Receive Stopped Mask */

Definition at line 385 of file de4x5.h.

#define IMR_RUM   0x00000080 /* Receive Buffer Unavailable Mask */

Definition at line 386 of file de4x5.h.

#define IMR_RWM   0x00000200 /* Receive Watchdog Time-Out Mask */

Definition at line 384 of file de4x5.h.

#define IMR_SEM   0x00002000 /* System Error Mask */

Definition at line 378 of file de4x5.h.

#define IMR_TIM   0x00000001 /* Transmit Interrupt Mask */

Definition at line 394 of file de4x5.h.

#define IMR_TJM   0x00000008 /* Transmit Time-Out Jabber Mask */

Definition at line 391 of file de4x5.h.

#define IMR_TMM   0x00000800 /* Timer Expired Mask (DC21041) */

Definition at line 381 of file de4x5.h.

#define IMR_TSM   0x00000002 /* Transmission Stopped Mask */

Definition at line 393 of file de4x5.h.

#define IMR_TUM   0x00000004 /* Transmit Buffer Unavailable Mask */

Definition at line 392 of file de4x5.h.

#define IMR_UNM   0x00000020 /* Underflow Interrupt Mask */

Definition at line 388 of file de4x5.h.

#define INIT   0x0200 /* Initial state */

Definition at line 830 of file de4x5.h.

#define INITIALISED   0 /* After h/w initialised and mem alloc'd */

Definition at line 898 of file de4x5.h.

#define INT_CANCEL   0x0001ffff /* For zeroing all interrupt sources */

Definition at line 328 of file de4x5.h.

#define INVERSE_F   TD_FT1

Definition at line 808 of file de4x5.h.

#define is_DC21040   ((vendor == DC21040_VID) && (device == DC21040_DID))

Definition at line 126 of file de4x5.h.

#define is_DC21041   ((vendor == DC21041_VID) && (device == DC21041_DID))

Definition at line 127 of file de4x5.h.

#define is_DC21140   ((vendor == DC21140_VID) && (device == DC21140_DID))

Definition at line 128 of file de4x5.h.

#define is_DC21142   ((vendor == DC2114x_VID) && (device == DC21142))

Definition at line 130 of file de4x5.h.

#define is_DC21143   ((vendor == DC2114x_VID) && (device == DC21143))

Definition at line 131 of file de4x5.h.

#define is_DC2114x   ((vendor == DC2114x_VID) && (device == DC2114x_DID))

Definition at line 129 of file de4x5.h.

#define LOST_MEDIA_THRESHOLD   3

Definition at line 871 of file de4x5.h.

#define MASK_INTERRUPTS   1

Definition at line 873 of file de4x5.h.

#define MEDIA_AUI   0x0004 /* AUI Media present */

Definition at line 527 of file de4x5.h.

#define MEDIA_BNC   0x0001 /* BNC Media present */

Definition at line 529 of file de4x5.h.

#define MEDIA_CODE   0x3f /* Extended blocks media code mask */

Definition at line 585 of file de4x5.h.

#define MEDIA_FIBRE   0x0008 /* Fibre Media present */

Definition at line 526 of file de4x5.h.

#define MEDIA_MII   0x0040 /* MII Present on the adapter */

Definition at line 525 of file de4x5.h.

#define MEDIA_NWAY   0x0080 /* Nway (Auto Negotiation) on PHY */

Definition at line 524 of file de4x5.h.

#define MEDIA_TP   0x0002 /* TP Media present */

Definition at line 528 of file de4x5.h.

#define MFC_CNTR   0x0000ffff /* Missed Frames Counter Bits */

Definition at line 402 of file de4x5.h.

#define MFC_FOC   0x0ffe0000 /* FIFO Overflow Counter Bits */

Definition at line 400 of file de4x5.h.

#define MFC_FOCM   0x1ffe0000 /* FIFO Overflow Counter Mask */

Definition at line 403 of file de4x5.h.

#define MFC_FOCO   0x10000000 /* FIFO Overflow Counter Overflow Bit */

Definition at line 399 of file de4x5.h.

#define MFC_OVFL   0x00010000 /* Missed Frames Counter Overflow Bit */

Definition at line 401 of file de4x5.h.

#define MII   0x1000 /* MII on the 21143 */

Definition at line 838 of file de4x5.h.

#define MII_ANA   0x04 /* Auto Negotiation Advertisement */

Definition at line 457 of file de4x5.h.

#define MII_ANA_100M   0x0380 /* 100Mb Technology Ability Mask */

Definition at line 502 of file de4x5.h.

#define MII_ANA_10M   0x0060 /* 10Mb Technology Ability Mask */

Definition at line 503 of file de4x5.h.

#define MII_ANA_CSMA   0x0001 /* CSMA-CD Capable */

Definition at line 504 of file de4x5.h.

#define MII_ANA_FDAM   0x0140 /* Full Duplex Technology Ability Mask */

Definition at line 500 of file de4x5.h.

#define MII_ANA_HDAM   0x02a0 /* Half Duplex Technology Ability Mask */

Definition at line 501 of file de4x5.h.

#define MII_ANA_T4AM   0x0200 /* T4 Technology Ability Mask */

Definition at line 498 of file de4x5.h.

#define MII_ANA_TAF   0x03e0 /* Technology Ability Field */

Definition at line 497 of file de4x5.h.

#define MII_ANA_TXAM   0x0180 /* TX Technology Ability Mask */

Definition at line 499 of file de4x5.h.

#define MII_ANE   0x06 /* Auto Negotiation Expansion */

Definition at line 459 of file de4x5.h.

#define MII_ANLPA   0x05 /* Auto Negotiation Link Partner Ability */

Definition at line 458 of file de4x5.h.

#define MII_ANLPA_100M   0x0380 /* 100Mb Technology Ability Mask */

Definition at line 517 of file de4x5.h.

#define MII_ANLPA_10M   0x0060 /* 10Mb Technology Ability Mask */

Definition at line 518 of file de4x5.h.

#define MII_ANLPA_ACK   0x4000 /* Remote Acknowledge */

Definition at line 510 of file de4x5.h.

#define MII_ANLPA_CSMA   0x0001 /* CSMA-CD Capable */

Definition at line 519 of file de4x5.h.

#define MII_ANLPA_FDAM   0x0140 /* Full Duplex Technology Ability Mask */

Definition at line 515 of file de4x5.h.

#define MII_ANLPA_HDAM   0x02a0 /* Half Duplex Technology Ability Mask */

Definition at line 516 of file de4x5.h.

#define MII_ANLPA_NP   0x8000 /* Next Page (Enable) */

Definition at line 509 of file de4x5.h.

#define MII_ANLPA_RF   0x2000 /* Remote Fault */

Definition at line 511 of file de4x5.h.

#define MII_ANLPA_T4AM   0x0200 /* T4 Technology Ability Mask */

Definition at line 513 of file de4x5.h.

#define MII_ANLPA_TAF   0x03e0 /* Technology Ability Field */

Definition at line 512 of file de4x5.h.

#define MII_ANLPA_TXAM   0x0180 /* TX Technology Ability Mask */

Definition at line 514 of file de4x5.h.

#define MII_ANP   0x07 /* Auto Negotiation Next Page TX */

Definition at line 460 of file de4x5.h.

#define MII_CR   0x00 /* MII Management Control Register */

Definition at line 453 of file de4x5.h.

#define MII_CR_10   0x0000 /* Set 10Mb/s */

Definition at line 470 of file de4x5.h.

#define MII_CR_100   0x2000 /* Set 100Mb/s */

Definition at line 471 of file de4x5.h.

#define MII_CR_ASSE   0x1000 /* Auto Speed Select Enable */

Definition at line 472 of file de4x5.h.

#define MII_CR_CTE   0x0080 /* Collision Test Enable */

Definition at line 477 of file de4x5.h.

#define MII_CR_FDM   0x0100 /* Full Duplex Mode */

Definition at line 476 of file de4x5.h.

#define MII_CR_ISOL   0x0400 /* Isolate Mode */

Definition at line 474 of file de4x5.h.

#define MII_CR_LPBK   0x4000 /* Loopback enable */

Definition at line 468 of file de4x5.h.

#define MII_CR_PD   0x0800 /* Power Down */

Definition at line 473 of file de4x5.h.

#define MII_CR_RAN   0x0200 /* Restart Auto Negotiation */

Definition at line 475 of file de4x5.h.

#define MII_CR_RST   0x8000 /* RESET the PHY chip */

Definition at line 467 of file de4x5.h.

#define MII_CR_SPD   0x2000 /* 0: 10Mb/s; 1: 100Mb/s */

Definition at line 469 of file de4x5.h.

#define MII_ID0   0x02 /* PHY Identifier Register 0 */

Definition at line 455 of file de4x5.h.

#define MII_ID1   0x03 /* PHY Identifier Register 1 */

Definition at line 456 of file de4x5.h.

#define MII_MDC   0x00010000 /* MII Management Clock */

Definition at line 430 of file de4x5.h.

#define MII_MDI   0x00080000 /* MII Management Data In */

Definition at line 425 of file de4x5.h.

#define MII_MDO   0x00060000 /* MII Management Mode/Data Out */

Definition at line 426 of file de4x5.h.

#define MII_MDT   0x00020000 /* MII Management Data Out */

Definition at line 429 of file de4x5.h.

#define MII_MRD   0x00040000 /* MII Management Define Read Mode */

Definition at line 427 of file de4x5.h.

#define MII_MWR   0x00000000 /* MII Management Define Write Mode */

Definition at line 428 of file de4x5.h.

#define MII_PREAMBLE   0xffffffff /* MII Management Preamble */

Definition at line 448 of file de4x5.h.

#define MII_RD   0x00004000 /* Read from MII */

Definition at line 431 of file de4x5.h.

#define MII_SEL   0x00000800 /* Select MII when RESET */

Definition at line 433 of file de4x5.h.

#define MII_SR   0x01 /* MII Management Status Register */

Definition at line 454 of file de4x5.h.

#define MII_SR_ANC   0x0008 /* Auto Negotiation capable */

Definition at line 489 of file de4x5.h.

#define MII_SR_ASSC   0x0020 /* Auto Speed Selection Complete*/

Definition at line 487 of file de4x5.h.

#define MII_SR_JABD   0x0002 /* Jabber Detect */

Definition at line 491 of file de4x5.h.

#define MII_SR_LKS   0x0004 /* Link Status */

Definition at line 490 of file de4x5.h.

#define MII_SR_RFD   0x0010 /* Remote Fault Detected */

Definition at line 488 of file de4x5.h.

#define MII_SR_T4C   0x8000 /* 100BASE-T4 capable */

Definition at line 482 of file de4x5.h.

#define MII_SR_TFD   0x1000 /* 10BASE-T Full Duplex capable */

Definition at line 485 of file de4x5.h.

#define MII_SR_THD   0x0800 /* 10BASE-T Half Duplex capable */

Definition at line 486 of file de4x5.h.

#define MII_SR_TXFD   0x4000 /* 100BASE-TX Full Duplex capable */

Definition at line 483 of file de4x5.h.

#define MII_SR_TXHD   0x2000 /* 100BASE-TX Half Duplex capable */

Definition at line 484 of file de4x5.h.

#define MII_SR_XC   0x0001 /* Extended Capabilities */

Definition at line 492 of file de4x5.h.

#define MII_STRD   0x06 /* Start of Frame+Op Code: use low nibble */

Definition at line 450 of file de4x5.h.

#define MII_STWR   0x0a /* Start of Frame+Op Code: use low nibble */

Definition at line 451 of file de4x5.h.

#define MII_TEST   0xaaaaaaaa /* MII Test Signal */

Definition at line 449 of file de4x5.h.

#define MII_WR   0x00002000 /* Write to MII */

Definition at line 432 of file de4x5.h.

#define MOTO_SROM_BUG   (lp->active == 8 && (get_unaligned_le32(dev->dev_addr) & 0x00ffffff) == 0x3e0008)

Definition at line 1017 of file de4x5.h.

#define NATIONAL_TX   0x2000

Definition at line 913 of file de4x5.h.

#define NC   0x0000 /* No Connection */

Definition at line 827 of file de4x5.h.

#define OMR_BP   0x00010000 /* Back Pressure */

Definition at line 343 of file de4x5.h.

#define OMR_CA   0x00020000 /* Capture Effect Enable */

Definition at line 342 of file de4x5.h.

#define OMR_DEF   (OMR_SDP)

Definition at line 364 of file de4x5.h.

#define OMR_FC   0x00001000 /* Force Collision Mode */

Definition at line 346 of file de4x5.h.

#define OMR_FDX   0x00000200 /* Full Duplex Mode */

Definition at line 348 of file de4x5.h.

#define OMR_FKD   0x00000100 /* Flaky Oscillator Disable */

Definition at line 349 of file de4x5.h.

#define OMR_HBD   0x00080000 /* HeartBeat Disable */

Definition at line 340 of file de4x5.h.

#define OMR_HO   0x00000004 /* Hash Only Filtering Mode */

Definition at line 355 of file de4x5.h.

#define OMR_HP   0x00000001 /* Hash/Perfect Receive Filtering Mode */

Definition at line 357 of file de4x5.h.

#define OMR_IF   0x00000010 /* Inverse Filtering */

Definition at line 353 of file de4x5.h.

#define OMR_MII_10   (OMR_SDP | OMR_TTM | OMR_PS)

Definition at line 367 of file de4x5.h.

#define OMR_MII_100   (OMR_SDP | OMR_HBD | OMR_PS)

Definition at line 368 of file de4x5.h.

#define OMR_OM   0x00000c00 /* Operating Mode */

Definition at line 347 of file de4x5.h.

#define OMR_PB   0x00000008 /* Pass Bad Frames */

Definition at line 354 of file de4x5.h.

#define OMR_PCS   0x00800000 /* PCS Function */

Definition at line 337 of file de4x5.h.

#define OMR_PM   0x00000080 /* Pass All Multicast */

Definition at line 350 of file de4x5.h.

#define OMR_PR   0x00000040 /* Promiscuous Mode */

Definition at line 351 of file de4x5.h.

#define OMR_PS   0x00040000 /* Port Select */

Definition at line 341 of file de4x5.h.

#define OMR_RA   0x40000000 /* Receive All */

Definition at line 334 of file de4x5.h.

#define OMR_SB   0x00000020 /* Start/Stop Backoff Counter */

Definition at line 352 of file de4x5.h.

#define OMR_SC   0x80000000 /* Special Capture Effect Enable */

Definition at line 333 of file de4x5.h.

#define OMR_SCR   0x01000000 /* Scrambler Mode */

Definition at line 336 of file de4x5.h.

#define OMR_SDP   0x02000000 /* SD Polarity - MUST BE ASSERTED */

Definition at line 335 of file de4x5.h.

#define OMR_SF   0x00200000 /* Store and Forward */

Definition at line 339 of file de4x5.h.

#define OMR_SIA   (OMR_SDP | OMR_TTM)

Definition at line 365 of file de4x5.h.

#define OMR_SR   0x00000002 /* Start/Stop Receive */

Definition at line 356 of file de4x5.h.

#define OMR_ST   0x00002000 /* Start/Stop Transmission Command */

Definition at line 345 of file de4x5.h.

#define OMR_SYM   (OMR_SDP | OMR_SCR | OMR_PCS | OMR_HBD | OMR_PS)

Definition at line 366 of file de4x5.h.

#define OMR_TR   0x0000c000 /* Threshold Control Bits */

Definition at line 344 of file de4x5.h.

#define OMR_TTM   0x00400000 /* Transmit Threshold Mode */

Definition at line 338 of file de4x5.h.

#define OPEN   2 /* Running */

Definition at line 900 of file de4x5.h.

#define PBL_0   0x00000000 /* DMA burst length = amount in RX FIFO */

Definition at line 239 of file de4x5.h.

#define PBL_1   0x00000100 /* 1 longword DMA burst length */

Definition at line 240 of file de4x5.h.

#define PBL_16   0x00001000 /* 16 longwords DMA burst length */

Definition at line 244 of file de4x5.h.

#define PBL_2   0x00000200 /* 2 longwords DMA burst length */

Definition at line 241 of file de4x5.h.

#define PBL_32   0x00002000 /* 32 longwords DMA burst length */

Definition at line 245 of file de4x5.h.

#define PBL_4   0x00000400 /* 4 longwords DMA burst length */

Definition at line 242 of file de4x5.h.

#define PBL_8   0x00000800 /* 8 longwords DMA burst length */

Definition at line 243 of file de4x5.h.

#define PCI   0

Definition at line 860 of file de4x5.h.

#define PCI_CBER   iobase+0x0030 /* PCI Expansion ROM Base Address Reg. */

Definition at line 62 of file de4x5.h.

#define PCI_CBIO   iobase+0x0028 /* PCI Base I/O Register */

Definition at line 60 of file de4x5.h.

#define PCI_CBMA   iobase+0x002c /* PCI Base Memory Address Register */

Definition at line 61 of file de4x5.h.

#define PCI_CFCS   iobase+0x000c /* PCI Command/Status Register */

Definition at line 57 of file de4x5.h.

#define PCI_CFDA   iobase+0x0040 /* PCI Driver Area Register */

Definition at line 64 of file de4x5.h.

#define PCI_CFDA_DSU   0x41 /* 8 bit Configuration Space Address */

Definition at line 207 of file de4x5.h.

#define PCI_CFDA_PSM   0x43 /* 8 bit Configuration Space Address */

Definition at line 208 of file de4x5.h.

#define PCI_CFDD   iobase+0x0041 /* PCI Driver Dependent Area Register */

Definition at line 65 of file de4x5.h.

#define PCI_CFID   iobase+0x0008 /* PCI Configuration ID Register */

Definition at line 56 of file de4x5.h.

#define PCI_CFIT   iobase+0x003c /* PCI Configuration Interrupt Register */

Definition at line 63 of file de4x5.h.

#define PCI_CFLT   iobase+0x001c /* PCI Latency Timer Register */

Definition at line 59 of file de4x5.h.

#define PCI_CFPM   iobase+0x0043 /* PCI Power Management Area Register */

Definition at line 66 of file de4x5.h.

#define PCI_CFRV   iobase+0x0018 /* PCI Revision Register */

Definition at line 58 of file de4x5.h.

#define PDET_LINK_WAIT   1200 /* msecs to wait for link detect bits */

Definition at line 905 of file de4x5.h.

#define PERFECT   0 /* 16 perfect physical addresses */

Definition at line 887 of file de4x5.h.

#define PERFECT_F   0x00000000

Definition at line 806 of file de4x5.h.

#define PERFECT_REJ   2 /* Reject 16 perfect physical addresses */

Definition at line 889 of file de4x5.h.

#define PHYS_ADDR_ONLY   1 /* Update the physical address only */

Definition at line 893 of file de4x5.h.

#define POLL_DEMAND   1

Definition at line 869 of file de4x5.h.

#define R_OWN   0x80000000 /* Own Bit */

Definition at line 753 of file de4x5.h.

#define RD_CE   0x00000002 /* CRC Error */

Definition at line 769 of file de4x5.h.

#define RD_CS   0x00000040 /* Collision Seen */

Definition at line 764 of file de4x5.h.

#define RD_DB   0x00000004 /* Dribbling Bit */

Definition at line 768 of file de4x5.h.

#define RD_DT   0x00003000 /* Data Type */

Definition at line 758 of file de4x5.h.

#define RD_ES   0x00008000 /* Error Summary */

Definition at line 756 of file de4x5.h.

#define RD_FF   0x40000000 /* Filtering Fail */

Definition at line 754 of file de4x5.h.

#define RD_FL   0x3fff0000 /* Frame Length */

Definition at line 755 of file de4x5.h.

#define RD_FS   0x00000200 /* First Descriptor */

Definition at line 761 of file de4x5.h.

#define RD_FT   0x00000020 /* Frame Type */

Definition at line 765 of file de4x5.h.

#define RD_LE   0x00004000 /* Length Error */

Definition at line 757 of file de4x5.h.

#define RD_LS   0x00000100 /* Last Descriptor */

Definition at line 762 of file de4x5.h.

#define RD_MF   0x00000400 /* Multicast Frame */

Definition at line 760 of file de4x5.h.

#define RD_OF   0x00000001 /* Overflow */

Definition at line 770 of file de4x5.h.

#define RD_RBS1   0x000007ff /* Buffer 1 Size */

Definition at line 775 of file de4x5.h.

#define RD_RBS2   0x003ff800 /* Buffer 2 Size */

Definition at line 774 of file de4x5.h.

#define RD_RCH   0x01000000 /* Second Address Chained */

Definition at line 773 of file de4x5.h.

#define RD_RE   0x00000008 /* Report on MII Error */

Definition at line 767 of file de4x5.h.

#define RD_RER   0x02000000 /* Receive End Of Ring */

Definition at line 772 of file de4x5.h.

#define RD_RF   0x00000800 /* Runt Frame */

Definition at line 759 of file de4x5.h.

#define RD_RJ   0x00000010 /* Receive Watchdog */

Definition at line 766 of file de4x5.h.

#define RD_TL   0x00000080 /* Frame Too Long */

Definition at line 763 of file de4x5.h.

#define REV_NUMBER   0x00000003 /* 0x00, 0x01, 0x02, 0x03: Rev in Step */

Definition at line 159 of file de4x5.h.

#define RPD   0x00000001 /* Receive Poll Demand */

Definition at line 263 of file de4x5.h.

#define RRBA   0xfffffffc /* RX Descriptor List Start Address */

Definition at line 268 of file de4x5.h.

#define RS_CEOR   0x00040000 /* Check for End of Receive Packet */

Definition at line 321 of file de4x5.h.

#define RS_CLRD   0x000a0000 /* Close Receive Descriptor */

Definition at line 324 of file de4x5.h.

#define RS_FLUSH   0x000c0000 /* Flush RX FIFO */

Definition at line 325 of file de4x5.h.

#define RS_FRD   0x00020000 /* Fetch Receive Descriptor */

Definition at line 320 of file de4x5.h.

#define RS_QRFS   0x000e0000 /* Queue RX FIFO into RX Skb */

Definition at line 326 of file de4x5.h.

#define RS_STOP   0x00000000 /* Stopped */

Definition at line 319 of file de4x5.h.

#define RS_SUSP   0x00080000 /* Suspended */

Definition at line 323 of file de4x5.h.

#define RS_WFRP   0x00060000 /* Wait for Receive Packet */

Definition at line 322 of file de4x5.h.

#define SEEQ_T4   0x0016

Definition at line 915 of file de4x5.h.

#define SET_100Mb
Value:
{\
if ((lp->phy[lp->active].id) && (!lp->useSROM || lp->useMII)) {\
int fdx=0;\
if (lp->phy[lp->active].id == NATIONAL_TX) {\
mii_wr(mii_rd(0x18, lp->phy[lp->active].addr, DE4X5_MII) & ~0x2000,\
0x18, lp->phy[lp->active].addr, DE4X5_MII);\
}\
sr = mii_rd(MII_SR, lp->phy[lp->active].addr, DE4X5_MII);\
if (!(sr & MII_ANA_T4AM) && lp->fdx) fdx=1;\
if ((lp->tmp != MII_SR_ASSC) || (lp->autosense != AUTO)) {\
mii_wr(MII_CR_100|(fdx?MII_CR_FDM:0), MII_CR, lp->phy[lp->active].addr, DE4X5_MII);\
}\
if (fdx) omr |= OMR_FDX;\
outl(omr, DE4X5_OMR);\
if (!lp->useSROM) lp->cache.gep = 0;\
} else if (lp->useSROM && !lp->useMII) {\
omr = (inl(DE4X5_OMR) & ~(OMR_PS | OMR_HBD | OMR_TTM | OMR_PCS | OMR_SCR | OMR_FDX));\
omr |= (lp->fdx ? OMR_FDX : 0);\
outl(omr | lp->infoblock_csr6, DE4X5_OMR);\
} else {\
omr |= (lp->fdx ? OMR_FDX : 0);\
lp->cache.gep = (lp->fdx ? 0 : GEP_FDXD) | GEP_MODE;\
gep_wr(lp->cache.gep, dev);\
}\
}

Definition at line 943 of file de4x5.h.

#define SET_100Mb_PDET
Value:
{\
if ((lp->phy[lp->active].id) && (!lp->useSROM || lp->useMII)) {\
mii_wr(MII_CR_100|MII_CR_ASSE, MII_CR, lp->phy[lp->active].addr, DE4X5_MII);\
omr = (inl(DE4X5_OMR) & ~(OMR_TTM | OMR_PCS | OMR_SCR | OMR_FDX));\
outl(omr, DE4X5_OMR);\
} else if (lp->useSROM && !lp->useMII) {\
omr = (inl(DE4X5_OMR) & ~(OMR_TTM | OMR_PCS | OMR_SCR | OMR_FDX));\
outl(omr, DE4X5_OMR);\
} else {\
outl(omr | OMR_SDP | OMR_PS | OMR_HBD | OMR_PCS, DE4X5_OMR);\
lp->cache.gep = (GEP_FDXD | GEP_MODE);\
gep_wr(lp->cache.gep, dev);\
}\
}

Definition at line 973 of file de4x5.h.

#define SET_10Mb
Value:
{\
if ((lp->phy[lp->active].id) && (!lp->useSROM || lp->useMII)) {\
if ((lp->tmp != MII_SR_ASSC) || (lp->autosense != AUTO)) {\
mii_wr(MII_CR_10|(lp->fdx?MII_CR_FDM:0), MII_CR, lp->phy[lp->active].addr, DE4X5_MII);\
}\
omr |= ((lp->fdx ? OMR_FDX : 0) | OMR_TTM);\
outl(omr, DE4X5_OMR);\
if (!lp->useSROM) lp->cache.gep = 0;\
} else if (lp->useSROM && !lp->useMII) {\
omr |= (lp->fdx ? OMR_FDX : 0);\
outl(omr | (lp->infoblock_csr6 & ~(OMR_SCR | OMR_HBD)), DE4X5_OMR);\
} else {\
omr |= (lp->fdx ? OMR_FDX : 0);\
outl(omr | OMR_SDP | OMR_TTM, DE4X5_OMR);\
lp->cache.gep = (lp->fdx ? 0 : GEP_FDXD);\
gep_wr(lp->cache.gep, dev);\
}\
}

Definition at line 921 of file de4x5.h.

#define SETUP_FRAME_LEN   192 /* Bytes */

Definition at line 866 of file de4x5.h.

#define SIA_RESET   0x00000000 /* SIA Reset Value */

Definition at line 695 of file de4x5.h.

#define SICR_APLL   0x00000a00 /* SIA MUX Select Diagnostics - DPLL Sigs*/

Definition at line 682 of file de4x5.h.

#define SICR_ASE   0x00000080 /* APLL Start Enable*/

Definition at line 687 of file de4x5.h.

#define SICR_AUI   0x00000008 /* 10Base-T (0) or AUI (1) */

Definition at line 691 of file de4x5.h.

#define SICR_CAC   0x00000004 /* CSR Auto Configuration */

Definition at line 692 of file de4x5.h.

#define SICR_D_RxM   0x00000c00 /* SIA MUX Select Diagnostics - RxM Sigs */

Definition at line 683 of file de4x5.h.

#define SICR_D_SIA   0x00000400 /* SIA MUX Select Diagnostics - SIA Sigs */

Definition at line 680 of file de4x5.h.

#define SICR_DPLL   0x00000800 /* SIA MUX Select Diagnostics - DPLL Sigs*/

Definition at line 681 of file de4x5.h.

#define SICR_EDP   0x00000010 /* SIA PLL External Input Enable */

Definition at line 690 of file de4x5.h.

#define SICR_ENI   0x00000020 /* Encoder Input Multiplexer */

Definition at line 689 of file de4x5.h.

#define SICR_EXT   0x00000000 /* SIA MUX Select External SIA Mode */

Definition at line 679 of file de4x5.h.

#define SICR_IE   0x00001000 /* Input Enable */

Definition at line 678 of file de4x5.h.

#define SICR_LNKT   0x00000e00 /* SIA MUX Select Diagnostics - Link Test*/

Definition at line 685 of file de4x5.h.

#define SICR_M_RxM   0x00000d00 /* SIA MUX Select Diagnostics - RxM Sigs */

Definition at line 684 of file de4x5.h.

#define SICR_OE13   0x00002000 /* Output Enable 1 3 */

Definition at line 677 of file de4x5.h.

#define SICR_OE24   0x00004000 /* Output Enable 2 4 */

Definition at line 676 of file de4x5.h.

#define SICR_OE57   0x00008000 /* Output Enable 5 6 7 */

Definition at line 675 of file de4x5.h.

#define SICR_PS   0x00000002 /* Pin AUI/TP Selection */

Definition at line 693 of file de4x5.h.

#define SICR_SDM   0xffff0000 /* SIA Diagnostics Mode */

Definition at line 674 of file de4x5.h.

#define SICR_SEL   0x00000f00 /* SIA MUX Select AUI or TP with LEDs */

Definition at line 686 of file de4x5.h.

#define SICR_SIM   0x00000040 /* Serial Interface Input Multiplexer */

Definition at line 688 of file de4x5.h.

#define SICR_SRL   0x00000001 /* SIA Reset */

Definition at line 694 of file de4x5.h.

#define SIGR_ABM   0x00000008 /* BNC: 0, AUI:1 */

Definition at line 744 of file de4x5.h.

#define SIGR_CWE   0x08000000 /* Control Write Enable */

Definition at line 723 of file de4x5.h.

#define SIGR_DPST   0x00001000 /* PLL Self Test Start */

Definition at line 735 of file de4x5.h.

#define SIGR_FLF   0x00000400 /* Force Link Fail */

Definition at line 737 of file de4x5.h.

#define SIGR_FRL   0x00002000 /* Force Receiver Low */

Definition at line 734 of file de4x5.h.

#define SIGR_FUSQ   0x00000200 /* Force Unsquelch */

Definition at line 738 of file de4x5.h.

#define SIGR_GEI0   0x01000000 /* GEP Interrupt Enable on Port 0 */

Definition at line 726 of file de4x5.h.

#define SIGR_GEI1   0x02000000 /* GEP Interrupt Enable on Port 1 */

Definition at line 725 of file de4x5.h.

#define SIGR_GI0   0x10000000 /* General Port Interrupt 0 */

Definition at line 722 of file de4x5.h.

#define SIGR_GI1   0x20000000 /* General Port Interrupt 1 */

Definition at line 721 of file de4x5.h.

#define SIGR_HUJ   0x00000002 /* Host Unjab */

Definition at line 746 of file de4x5.h.

#define SIGR_JBD   0x00000001 /* Jabber Disable */

Definition at line 747 of file de4x5.h.

#define SIGR_JCK   0x00000004 /* Jabber Clock */

Definition at line 745 of file de4x5.h.

#define SIGR_LE1   0x00000040 /* General Purpose LED1 enable */

Definition at line 741 of file de4x5.h.

#define SIGR_LE2   0x00004000 /* General Purpose LED2 enable */

Definition at line 733 of file de4x5.h.

#define SIGR_LGS0   0x00100000 /* LED/GEP0 Select */

Definition at line 730 of file de4x5.h.

#define SIGR_LGS1   0x00200000 /* LED/GEP1 Select */

Definition at line 729 of file de4x5.h.

#define SIGR_LGS2   0x00400000 /* LED/GEP2 Select */

Definition at line 728 of file de4x5.h.

#define SIGR_LGS3   0x00800000 /* LED/GEP3 Select */

Definition at line 727 of file de4x5.h.

#define SIGR_LSD   0x00000800 /* LED Stretch Disable */

Definition at line 736 of file de4x5.h.

#define SIGR_LV1   0x00000080 /* General Purpose LED1 value */

Definition at line 740 of file de4x5.h.

#define SIGR_LV2   0x00008000 /* General Purpose LED2 value */

Definition at line 732 of file de4x5.h.

#define SIGR_MD   0x000f0000 /* General Purpose Mode and Data */

Definition at line 731 of file de4x5.h.

#define SIGR_RESET   0xffff0000 /* Reset value for SIGR */

Definition at line 748 of file de4x5.h.

#define SIGR_RME   0x04000000 /* Receive Match Enable */

Definition at line 724 of file de4x5.h.

#define SIGR_RMI   0x40000000 /* Receive Match Interrupt */

Definition at line 720 of file de4x5.h.

#define SIGR_RWD   0x00000010 /* Receive Watchdog Disable */

Definition at line 743 of file de4x5.h.

#define SIGR_RWR   0x00000020 /* Receive Watchdog Release */

Definition at line 742 of file de4x5.h.

#define SIGR_TSCK   0x00000100 /* Test Clock */

Definition at line 739 of file de4x5.h.

#define SISR_ANR   0x00001301 /* Autonegotiation restart */

Definition at line 669 of file de4x5.h.

#define SISR_ANR_FDS   0x00000400 /* Auto Negotiate Restart/Full Duplex Sel.*/

Definition at line 643 of file de4x5.h.

#define SISR_ANS   0x00007000 /* Auto Negotiation Arbitration State */

Definition at line 639 of file de4x5.h.

#define SISR_APS   0x00000008 /* Auto Polarity State */

Definition at line 652 of file de4x5.h.

#define SISR_ARA   0x00000100 /* AUI Receive Port Activity */

Definition at line 646 of file de4x5.h.

#define SISR_DAO   0x00000080 /* PLL All One */

Definition at line 648 of file de4x5.h.

#define SISR_DAZ   0x00000040 /* PLL All Zero */

Definition at line 649 of file de4x5.h.

#define SISR_DSD   0x00000010 /* PLL Self-Test Done */

Definition at line 651 of file de4x5.h.

#define SISR_DSP   0x00000020 /* PLL Self-Test Pass */

Definition at line 650 of file de4x5.h.

#define SISR_LKF   0x00000004 /* Link Fail Status */

Definition at line 653 of file de4x5.h.

#define SISR_LPC   0xffff0000 /* Link Partner's Code Word */

Definition at line 637 of file de4x5.h.

#define SISR_LPN   0x00008000 /* Link Partner Negotiable */

Definition at line 638 of file de4x5.h.

#define SISR_LS10   0x00000004 /* 10Mb/s Link Fail Status */

Definition at line 654 of file de4x5.h.

#define SISR_LS100   0x00000002 /* 100Mb/s Link Fail Status */

Definition at line 656 of file de4x5.h.

#define SISR_MRA   0x00000001 /* MII Receive Port Activity */

Definition at line 658 of file de4x5.h.

#define SISR_NCR   0x00000002 /* Network Connection Error */

Definition at line 655 of file de4x5.h.

#define SISR_NRA   0x00000200 /* Non Selected Port Receive Activity */

Definition at line 645 of file de4x5.h.

#define SISR_NSN   0x00000800 /* Non Stable NLPs Detected (DC21041) */

Definition at line 640 of file de4x5.h.

#define SISR_NSND   0x00000400 /* Non Stable NLPs Detected (DC21142) */

Definition at line 642 of file de4x5.h.

#define SISR_PAUI   0x00000001 /* AUI_TP Indication */

Definition at line 657 of file de4x5.h.

#define SISR_RST   0x00000301 /* CSR12 reset */

Definition at line 668 of file de4x5.h.

#define SISR_SRA   0x00000100 /* Selected Port Receive Activity */

Definition at line 647 of file de4x5.h.

#define SISR_TRA   0x00000200 /* 10BASE-T Receive Port Activity */

Definition at line 644 of file de4x5.h.

#define SISR_TRF   0x00000800 /* Transmit Remote Fault */

Definition at line 641 of file de4x5.h.

#define SLEEP   0x80 /* Power Saving Sleep Mode */

Definition at line 203 of file de4x5.h.

#define SNOOZE   0x40 /* Power Saving Snooze Mode */

Definition at line 204 of file de4x5.h.

#define SPD_DET   0x0100 /* Parallel speed detection */

Definition at line 829 of file de4x5.h.

#define SROM_100BASEF   0x0007 /* 100BASE-FX half duplex */

Definition at line 580 of file de4x5.h.

#define SROM_100BASEFF   0x0008 /* 100BASE-FX full duplex */

Definition at line 581 of file de4x5.h.

#define SROM_100BASET   0x0003 /* 100BASE-T half duplex */

Definition at line 576 of file de4x5.h.

#define SROM_100BASET4   0x0006 /* 100BASE-T4 */

Definition at line 579 of file de4x5.h.

#define SROM_100BASETF   0x0005 /* 100BASE-T full duplex */

Definition at line 578 of file de4x5.h.

#define SROM_100BFX   0x0007 /* 100BASE-FX half duplex (Fiber) */

Definition at line 558 of file de4x5.h.

#define SROM_100BT4   0x0006 /* 100BASE-T4 */

Definition at line 557 of file de4x5.h.

#define SROM_100BTF   0x0205 /* 100BASE-T full duplex */

Definition at line 556 of file de4x5.h.

#define SROM_100BTH   0x0003 /* 100BASE-T half duplex */

Definition at line 555 of file de4x5.h.

#define SROM_10B2   0x0001 /* 10BASE-2 (BNC) */

Definition at line 553 of file de4x5.h.

#define SROM_10B5   0x0002 /* 10BASE-5 (AUI) */

Definition at line 554 of file de4x5.h.

#define SROM_10BASE2   0x0001 /* 10BASE-2 (BNC) */

Definition at line 574 of file de4x5.h.

#define SROM_10BASE5   0x0002 /* 10BASE-5 (AUI) */

Definition at line 575 of file de4x5.h.

#define SROM_10BASET   0x0000 /* 10BASE-T half duplex */

Definition at line 573 of file de4x5.h.

#define SROM_10BASETF   0x0004 /* 10BASE-T full duplex */

Definition at line 577 of file de4x5.h.

#define SROM_10BT   0x0000 /* 10BASE-T half duplex */

Definition at line 549 of file de4x5.h.

#define SROM_10BTF   0x0204 /* 10BASE-T full duplex */

Definition at line 551 of file de4x5.h.

#define SROM_10BTN   0x0100 /* 10BASE-T with Nway */

Definition at line 550 of file de4x5.h.

#define SROM_10BTNLP   0x0400 /* 10BASE-T without Link Pass test */

Definition at line 552 of file de4x5.h.

#define SROM_BR   0x00001000 /* Select Boot ROM when set */

Definition at line 438 of file de4x5.h.

#define SROM_CCNT   0x0013 /* Controller Count offset */

Definition at line 541 of file de4x5.h.

#define SROM_CISPH   0x0006 /* CardBus CIS Pointer high offset */

Definition at line 537 of file de4x5.h.

#define SROM_CISPL   0x0004 /* CardBus CIS Pointer low offset */

Definition at line 536 of file de4x5.h.

#define SROM_CRC   0x007e /* SROM CRC offset */

Definition at line 544 of file de4x5.h.

#define SROM_DT   0x000000ff /* Data Byte */

Definition at line 441 of file de4x5.h.

#define SROM_HWADD   0x0014 /* Hardware Address offset */

Definition at line 542 of file de4x5.h.

#define SROM_IDCRC   0x0010 /* ID Block CRC offset*/

Definition at line 538 of file de4x5.h.

#define SROM_M100BF   0x0010 /* MII 100BASE-FX half duplex */

Definition at line 564 of file de4x5.h.

#define SROM_M100BFF   0x0211 /* MII 100BASE-FX full duplex */

Definition at line 565 of file de4x5.h.

#define SROM_M100BT   0x000d /* MII 100BASE-T half duplex */

Definition at line 561 of file de4x5.h.

#define SROM_M100BT4   0x000f /* MII 100BASE-T4 */

Definition at line 563 of file de4x5.h.

#define SROM_M100BTF   0x020e /* MII 100BASE-T full duplex */

Definition at line 562 of file de4x5.h.

#define SROM_M10BT   0x0009 /* MII 10BASE-T half duplex */

Definition at line 559 of file de4x5.h.

#define SROM_M10BTF   0x020a /* MII 10BASE-T full duplex */

Definition at line 560 of file de4x5.h.

#define SROM_MODE   0x00008000 /* MODE_1: 0, MODE_0: 1 (read only) */

Definition at line 435 of file de4x5.h.

#define SROM_MRSVD   0x007c /* Manufacturer Reserved offset*/

Definition at line 543 of file de4x5.h.

#define SROM_NSMI   0xffff /* No Selected Media Information */

Definition at line 568 of file de4x5.h.

#define SROM_PAO   0x8800 /* Powerup Autosense Only */

Definition at line 567 of file de4x5.h.

#define SROM_PDA   0x0800 /* Powerup & Dynamic Autosense */

Definition at line 566 of file de4x5.h.

#define SROM_RD   0x00004000 /* Read from Boot ROM */

Definition at line 436 of file de4x5.h.

#define SROM_REG   0x00000400 /* External Register Select */

Definition at line 440 of file de4x5.h.

#define SROM_RSVD2   0x0011 /* ID Reserved 2 offset */

Definition at line 539 of file de4x5.h.

#define SROM_SFV   0x0012 /* SROM Format Version offset */

Definition at line 540 of file de4x5.h.

#define SROM_SR   0x00000800 /* Select Serial ROM when set */

Definition at line 439 of file de4x5.h.

#define SROM_SSID   0x0002 /* Sub-system ID offset */

Definition at line 535 of file de4x5.h.

#define SROM_SSVID   0x0000 /* Sub-system Vendor ID offset */

Definition at line 534 of file de4x5.h.

#define SROM_WR   0x00002000 /* Write to Boot ROM */

Definition at line 437 of file de4x5.h.

#define SSID_SSID   0xffff0000 /* Subsystem ID */

Definition at line 183 of file de4x5.h.

#define SSID_SVID   0x0000ffff /* Subsystem Vendor ID */

Definition at line 184 of file de4x5.h.

#define STEP_NUMBER   0x00000020 /* Increments for future chips */

Definition at line 158 of file de4x5.h.

#define STRR_ANE   0x00000080 /* Auto Negotiate Enable */

Definition at line 708 of file de4x5.h.

#define STRR_APE   0x00002000 /* Auto Polarity Enable */

Definition at line 702 of file de4x5.h.

#define STRR_CLD   0x00000400 /* Collision Detect Enable */

Definition at line 705 of file de4x5.h.

#define STRR_CPEN   0x00000030 /* Compensation Enable */

Definition at line 710 of file de4x5.h.

#define STRR_CSQ   0x00000200 /* Collision Squelch Enable */

Definition at line 706 of file de4x5.h.

#define STRR_DREN   0x00000004 /* Driver Enable */

Definition at line 712 of file de4x5.h.

#define STRR_ECEN   0x00000001 /* Encoder Enable */

Definition at line 714 of file de4x5.h.

#define STRR_HDE   0x00000040 /* Half Duplex Enable */

Definition at line 709 of file de4x5.h.

#define STRR_LBK   0x00000002 /* Loopback Enable */

Definition at line 713 of file de4x5.h.

#define STRR_LSE   0x00000008 /* Link Pulse Send Enable */

Definition at line 711 of file de4x5.h.

#define STRR_LTE   0x00001000 /* Link Test Enable */

Definition at line 703 of file de4x5.h.

#define STRR_RESET   0xffffffff /* Reset value for STRR */

Definition at line 715 of file de4x5.h.

#define STRR_RSQ   0x00000100 /* Receive Squelch Enable */

Definition at line 707 of file de4x5.h.

#define STRR_SPP   0x00004000 /* Set Polarity Plus */

Definition at line 701 of file de4x5.h.

#define STRR_SQE   0x00000800 /* Signal Quality Enable */

Definition at line 704 of file de4x5.h.

#define STRR_TAS   0x00008000 /* 10Base-T/AUI Autosensing Enable */

Definition at line 700 of file de4x5.h.

#define STS_AIS   0x00008000 /* Abnormal Interrupt Summary */

Definition at line 283 of file de4x5.h.

#define STS_ANC   0x00000010 /* Autonegotiation Complete */

Definition at line 298 of file de4x5.h.

#define STS_AT   0x00000400 /* AUI/TP Pin */

Definition at line 291 of file de4x5.h.

#define STS_BE   0x03800000 /* Bus Error Bits */

Definition at line 279 of file de4x5.h.

#define STS_ER   0x00004000 /* Early Receive */

Definition at line 284 of file de4x5.h.

#define STS_ETI   0x00000400 /* Early Transmit Interrupt */

Definition at line 290 of file de4x5.h.

#define STS_FBE   0x00002000 /* Fatal Bus Error */

Definition at line 285 of file de4x5.h.

#define STS_FD   0x00000800 /* Full-Duplex Short Frame Received */

Definition at line 288 of file de4x5.h.

#define STS_GPI   0x04000000 /* General Purpose Port Interrupt */

Definition at line 278 of file de4x5.h.

#define STS_LNF   0x00001000 /* Link Fail */

Definition at line 287 of file de4x5.h.

#define STS_LNP   0x00000010 /* Link Pass */

Definition at line 297 of file de4x5.h.

#define STS_NIS   0x00010000 /* Normal Interrupt Summary */

Definition at line 282 of file de4x5.h.

#define STS_RI   0x00000040 /* Receive Interrupt */

Definition at line 295 of file de4x5.h.

#define STS_RPS   0x00000100 /* Receive Process Stopped */

Definition at line 293 of file de4x5.h.

#define STS_RS   0x000e0000 /* Receive Process State */

Definition at line 281 of file de4x5.h.

#define STS_RU   0x00000080 /* Receive Buffer Unavailable */

Definition at line 294 of file de4x5.h.

#define STS_RWT   0x00000200 /* Receive Watchdog Time-Out */

Definition at line 292 of file de4x5.h.

#define STS_SE   0x00002000 /* System Error */

Definition at line 286 of file de4x5.h.

#define STS_TI   0x00000001 /* Transmit Interrupt */

Definition at line 302 of file de4x5.h.

#define STS_TJT   0x00000008 /* Transmit Jabber Time-Out */

Definition at line 299 of file de4x5.h.

#define STS_TM   0x00000800 /* Timer Expired (DC21041) */

Definition at line 289 of file de4x5.h.

#define STS_TPS   0x00000002 /* Transmit Process Stopped */

Definition at line 301 of file de4x5.h.

#define STS_TS   0x00700000 /* Transmit Process State */

Definition at line 280 of file de4x5.h.

#define STS_TU   0x00000004 /* Transmit Buffer Unavailable */

Definition at line 300 of file de4x5.h.

#define STS_UNF   0x00000020 /* Transmit Underflow */

Definition at line 296 of file de4x5.h.

#define SUB_CLASS   0x00000000 /* Indicates Ethernet Controller */

Definition at line 157 of file de4x5.h.

#define T_OWN   0x80000000 /* Own Bit */

Definition at line 780 of file de4x5.h.

#define TAP_102_4US   0x000e0000 /* TX automatic polling every 102.4us */

Definition at line 232 of file de4x5.h.

#define TAP_12_8US   0x00080000 /* TX automatic polling every 12.8us */

Definition at line 229 of file de4x5.h.

#define TAP_1_6MS   0x00060000 /* TX automatic polling every 1.6ms */

Definition at line 228 of file de4x5.h.

#define TAP_200US   0x00020000 /* TX automatic polling every 200us */

Definition at line 226 of file de4x5.h.

#define TAP_25_6US   0x000a0000 /* TX automatic polling every 25.6us */

Definition at line 230 of file de4x5.h.

#define TAP_51_2US   0x000c0000 /* TX automatic polling every 51.2us */

Definition at line 231 of file de4x5.h.

#define TAP_800US   0x00040000 /* TX automatic polling every 800us */

Definition at line 227 of file de4x5.h.

#define TAP_NOPOLL   0x00000000 /* No automatic polling */

Definition at line 225 of file de4x5.h.

#define TD_AC   0x04000000 /* Add CRC Disable */

Definition at line 798 of file de4x5.h.

#define TD_CC   0x00000078 /* Collision Counter */

Definition at line 788 of file de4x5.h.

#define TD_DE   0x00000001 /* Deferred */

Definition at line 791 of file de4x5.h.

#define TD_DPD   0x00800000 /* Disabled Padding */

Definition at line 801 of file de4x5.h.

#define TD_EC   0x00000100 /* Excessive Collisions */

Definition at line 786 of file de4x5.h.

#define TD_ES   0x00008000 /* Error Summary */

Definition at line 781 of file de4x5.h.

#define TD_FS   0x20000000 /* First Segment */

Definition at line 795 of file de4x5.h.

#define TD_FT0   0x00400000 /* Filtering Type */

Definition at line 802 of file de4x5.h.

#define TD_FT1   0x10000000 /* Filtering Type */

Definition at line 796 of file de4x5.h.

#define TD_HF   0x00000080 /* Heartbeat Fail */

Definition at line 787 of file de4x5.h.

#define TD_IC   0x80000000 /* Interrupt On Completion */

Definition at line 793 of file de4x5.h.

#define TD_LC   0x00000200 /* Late Collision */

Definition at line 785 of file de4x5.h.

#define TD_LF   0x00000004 /* Link Fail */

Definition at line 789 of file de4x5.h.

#define TD_LO   0x00000800 /* Loss Of Carrier */

Definition at line 783 of file de4x5.h.

#define TD_LS   0x40000000 /* Last Segment */

Definition at line 794 of file de4x5.h.

#define TD_NC   0x00000400 /* No Carrier */

Definition at line 784 of file de4x5.h.

#define TD_SET   0x08000000 /* Setup Packet */

Definition at line 797 of file de4x5.h.

#define TD_TBS1   0x000007ff /* Buffer 1 Size */

Definition at line 804 of file de4x5.h.

#define TD_TBS2   0x003ff800 /* Buffer 2 Size */

Definition at line 803 of file de4x5.h.

#define TD_TCH   0x01000000 /* Second Address Chained */

Definition at line 800 of file de4x5.h.

#define TD_TER   0x02000000 /* Transmit End Of Ring */

Definition at line 799 of file de4x5.h.

#define TD_TO   0x00004000 /* Transmit Jabber Time-Out */

Definition at line 782 of file de4x5.h.

#define TD_UF   0x00000002 /* Underflow Error */

Definition at line 790 of file de4x5.h.

#define TIMER_CB   0x80000000 /* Timer callback detection */

Definition at line 840 of file de4x5.h.

#define TP   0x0040 /* 10Base-T (now equiv to _10Mb) */

Definition at line 815 of file de4x5.h.

#define TP_NW   0x0002 /* 10Base-T with Nway */

Definition at line 816 of file de4x5.h.

#define TP_SUSPECT   0x0803 /* Suspect the TP port is down */

Definition at line 833 of file de4x5.h.

#define TPD   0x00000001 /* Transmit Poll Demand */

Definition at line 258 of file de4x5.h.

#define TR_128   0x00008000 /* Threshold set to 128 (512) bytes */

Definition at line 361 of file de4x5.h.

#define TR_160   0x0000c000 /* Threshold set to 160 (1024) bytes */

Definition at line 362 of file de4x5.h.

#define TR_72   0x00000000 /* Threshold set to 72 (128) bytes */

Definition at line 359 of file de4x5.h.

#define TR_96   0x00004000 /* Threshold set to 96 (256) bytes */

Definition at line 360 of file de4x5.h.

#define TRBA   0xfffffffc /* TX Descriptor List Start Address */

Definition at line 273 of file de4x5.h.

#define TS_CLTD   0x00700000 /* Close Transmit Descriptor */

Definition at line 317 of file de4x5.h.

#define TS_FTD   0x00100000 /* Fetch Transmit Descriptor */

Definition at line 311 of file de4x5.h.

#define TS_QDAT   0x00300000 /* Queue skb data into TX FIFO */

Definition at line 313 of file de4x5.h.

#define TS_RES   0x00400000 /* Reserved */

Definition at line 314 of file de4x5.h.

#define TS_SPKT   0x00500000 /* Setup Packet */

Definition at line 315 of file de4x5.h.

#define TS_STOP   0x00000000 /* Stopped */

Definition at line 310 of file de4x5.h.

#define TS_SUSP   0x00600000 /* Suspended */

Definition at line 316 of file de4x5.h.

#define TS_WEOT   0x00200000 /* Wait for End Of Transmission */

Definition at line 312 of file de4x5.h.

#define UNMASK_INTERRUPTS   0

Definition at line 874 of file de4x5.h.

#define WAKEUP   0x00 /* Power Saving Wakeup */

Definition at line 205 of file de4x5.h.