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

Go to the source code of this file.

Data Structures

struct  ewrk3_ioctl
 

Macros

#define EWRK3_CSR   iobase+0x00 /* Control and Status Register */
 
#define EWRK3_CR   iobase+0x01 /* Control Register */
 
#define EWRK3_ICR   iobase+0x02 /* Interrupt Control Register */
 
#define EWRK3_TSR   iobase+0x03 /* Transmit Status Register */
 
#define EWRK3_RSVD1   iobase+0x04 /* RESERVED */
 
#define EWRK3_RSVD2   iobase+0x05 /* RESERVED */
 
#define EWRK3_FMQ   iobase+0x06 /* Free Memory Queue */
 
#define EWRK3_FMQC   iobase+0x07 /* Free Memory Queue Counter */
 
#define EWRK3_RQ   iobase+0x08 /* Receive Queue */
 
#define EWRK3_RQC   iobase+0x09 /* Receive Queue Counter */
 
#define EWRK3_TQ   iobase+0x0a /* Transmit Queue */
 
#define EWRK3_TQC   iobase+0x0b /* Transmit Queue Counter */
 
#define EWRK3_TDQ   iobase+0x0c /* Transmit Done Queue */
 
#define EWRK3_TDQC   iobase+0x0d /* Transmit Done Queue Counter */
 
#define EWRK3_PIR1   iobase+0x0e /* Page Index Register 1 */
 
#define EWRK3_PIR2   iobase+0x0f /* Page Index Register 2 */
 
#define EWRK3_DATA   iobase+0x10 /* Data Register */
 
#define EWRK3_IOPR   iobase+0x11 /* I/O Page Register */
 
#define EWRK3_IOBR   iobase+0x12 /* I/O Base Register */
 
#define EWRK3_MPR   iobase+0x13 /* Memory Page Register */
 
#define EWRK3_MBR   iobase+0x14 /* Memory Base Register */
 
#define EWRK3_APROM   iobase+0x15 /* Address PROM */
 
#define EWRK3_EPROM1   iobase+0x16 /* EEPROM Data Register 1 */
 
#define EWRK3_EPROM2   iobase+0x17 /* EEPROM Data Register 2 */
 
#define EWRK3_PAR0   iobase+0x18 /* Physical Address Register 0 */
 
#define EWRK3_PAR1   iobase+0x19 /* Physical Address Register 1 */
 
#define EWRK3_PAR2   iobase+0x1a /* Physical Address Register 2 */
 
#define EWRK3_PAR3   iobase+0x1b /* Physical Address Register 3 */
 
#define EWRK3_PAR4   iobase+0x1c /* Physical Address Register 4 */
 
#define EWRK3_PAR5   iobase+0x1d /* Physical Address Register 5 */
 
#define EWRK3_CMR   iobase+0x1e /* Configuration/Management Register */
 
#define PAGE0_FMQ   0x000 /* Free Memory Queue */
 
#define PAGE0_RQ   0x080 /* Receive Queue */
 
#define PAGE0_TQ   0x100 /* Transmit Queue */
 
#define PAGE0_TDQ   0x180 /* Transmit Done Queue */
 
#define PAGE0_HTE   0x200 /* Hash Table Entries */
 
#define PAGE0_RSVD   0x240 /* RESERVED */
 
#define PAGE0_USRD   0x600 /* User Data */
 
#define CSR_RA   0x80 /* Runt Accept */
 
#define CSR_PME   0x40 /* Promiscuous Mode Enable */
 
#define CSR_MCE   0x20 /* Multicast Enable */
 
#define CSR_TNE   0x08 /* TX Done Queue Not Empty */
 
#define CSR_RNE   0x04 /* RX Queue Not Empty */
 
#define CSR_TXD   0x02 /* TX Disable */
 
#define CSR_RXD   0x01 /* RX Disable */
 
#define CR_APD   0x80 /* Auto Port Disable */
 
#define CR_PSEL   0x40 /* Port Select (0->TP port) */
 
#define CR_LBCK   0x20 /* LoopBaCK enable */
 
#define CR_FDUP   0x10 /* Full DUPlex enable */
 
#define CR_FBUS   0x08 /* Fast BUS enable (ISA clk > 8.33MHz) */
 
#define CR_EN_16   0x04 /* ENable 16 bit memory accesses */
 
#define CR_LED   0x02 /* LED (1-> turn on) */
 
#define ICR_IE   0x80 /* Interrupt Enable */
 
#define ICR_IS   0x60 /* Interrupt Selected */
 
#define ICR_TNEM   0x08 /* TNE Mask (0->mask) */
 
#define ICR_RNEM   0x04 /* RNE Mask (0->mask) */
 
#define ICR_TXDM   0x02 /* TXD Mask (0->mask) */
 
#define ICR_RXDM   0x01 /* RXD Mask (0->mask) */
 
#define TSR_NCL   0x80 /* No Carrier Loopback */
 
#define TSR_ID   0x40 /* Initially Deferred */
 
#define TSR_LCL   0x20 /* Late CoLlision */
 
#define TSR_ECL   0x10 /* Excessive CoLlisions */
 
#define TSR_RCNTR   0x0f /* Retries CouNTeR */
 
#define EEPROM_INIT   0xc0 /* EEPROM INIT command */
 
#define EEPROM_WR_EN   0xc8 /* EEPROM WRITE ENABLE command */
 
#define EEPROM_WR   0xd0 /* EEPROM WRITE command */
 
#define EEPROM_WR_DIS   0xd8 /* EEPROM WRITE DISABLE command */
 
#define EEPROM_RD   0xe0 /* EEPROM READ command */
 
#define EISA_REGS_EN   0x20 /* Enable EISA ID and Control Registers */
 
#define EISA_IOB   0x1f /* Compare bits for I/O Base Address */
 
#define CMR_RA   0x80 /* Read Ahead */
 
#define CMR_WB   0x40 /* Write Behind */
 
#define CMR_LINK   0x20 /* 0->TP */
 
#define CMR_POLARITY   0x10 /* Informational */
 
#define CMR_NO_EEPROM   0x0c /* NO_EEPROM<1:0> pin status */
 
#define CMR_HS   0x08 /* Hard Strapped pin status (LeMAC2) */
 
#define CMR_PNP   0x04 /* Plug 'n Play */
 
#define CMR_DRAM   0x02 /* 0-> 1DRAM, 1-> 2 DRAM on board */
 
#define CMR_0WS   0x01 /* Zero Wait State */
 
#define R_ROK   0x80 /* Receive OK summary */
 
#define R_IAM   0x10 /* Individual Address Match */
 
#define R_MCM   0x08 /* MultiCast Match */
 
#define R_DBE   0x04 /* Dribble Bit Error */
 
#define R_CRC   0x02 /* CRC error */
 
#define R_PLL   0x01 /* Phase Lock Lost */
 
#define TCR_SQEE   0x40 /* SQE Enable - look for heartbeat */
 
#define TCR_SED   0x20 /* Stop when Error Detected */
 
#define TCR_QMODE   0x10 /* Q_MODE */
 
#define TCR_LAB   0x08 /* Less Aggressive Backoff */
 
#define TCR_PAD   0x04 /* PAD Runt Packets */
 
#define TCR_IFC   0x02 /* Insert Frame Check */
 
#define TCR_ISA   0x01 /* Insert Source Address */
 
#define T_VSTS   0x80 /* Valid STatuS */
 
#define T_CTU   0x40 /* Cut Through Used */
 
#define T_SQE   0x20 /* Signal Quality Error */
 
#define T_NCL   0x10 /* No Carrier Loopback */
 
#define T_LCL   0x08 /* Late Collision */
 
#define T_ID   0x04 /* Initially Deferred */
 
#define T_COLL   0x03 /* COLLision status */
 
#define T_XCOLL   0x03 /* Excessive Collisions */
 
#define T_MCOLL   0x02 /* Multiple Collisions */
 
#define T_OCOLL   0x01 /* One Collision */
 
#define T_NOCOLL   0x00 /* No Collisions */
 
#define T_XUR   0x03 /* Excessive Underruns */
 
#define T_TXE   0x7f /* TX Errors */
 
#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 EEPROM_MEMB   0x00
 
#define EEPROM_IOB   0x01
 
#define EEPROM_EISA_ID0   0x02
 
#define EEPROM_EISA_ID1   0x03
 
#define EEPROM_EISA_ID2   0x04
 
#define EEPROM_EISA_ID3   0x05
 
#define EEPROM_MISC0   0x06
 
#define EEPROM_MISC1   0x07
 
#define EEPROM_PNAME7   0x08
 
#define EEPROM_PNAME6   0x09
 
#define EEPROM_PNAME5   0x0a
 
#define EEPROM_PNAME4   0x0b
 
#define EEPROM_PNAME3   0x0c
 
#define EEPROM_PNAME2   0x0d
 
#define EEPROM_PNAME1   0x0e
 
#define EEPROM_PNAME0   0x0f
 
#define EEPROM_SWFLAGS   0x10
 
#define EEPROM_HWCAT   0x11
 
#define EEPROM_NETMAN2   0x12
 
#define EEPROM_REVLVL   0x13
 
#define EEPROM_NETMAN0   0x14
 
#define EEPROM_NETMAN1   0x15
 
#define EEPROM_CHIPVER   0x16
 
#define EEPROM_SETUP   0x17
 
#define EEPROM_PADDR0   0x18
 
#define EEPROM_PADDR1   0x19
 
#define EEPROM_PADDR2   0x1a
 
#define EEPROM_PADDR3   0x1b
 
#define EEPROM_PADDR4   0x1c
 
#define EEPROM_PADDR5   0x1d
 
#define EEPROM_PA_CRC   0x1e
 
#define EEPROM_CHKSUM   0x1f
 
#define EEPROM_MAX   32 /* bytes */
 
#define RBE_SHADOW   0x0100 /* Remote Boot Enable Shadow */
 
#define READ_AHEAD   0x0080 /* Read Ahead feature */
 
#define IRQ_SEL2   0x0070 /* IRQ line selection (LeMAC2) */
 
#define IRQ_SEL   0x0060 /* IRQ line selection */
 
#define FAST_BUS   0x0008 /* ISA Bus speeds > 8.33MHz */
 
#define ENA_16   0x0004 /* Enables 16 bit memory transfers */
 
#define WRITE_BEHIND   0x0002 /* Write Behind feature */
 
#define _0WS_ENA   0x0001 /* Zero Wait State Enable */
 
#define NETMAN_POL   0x04 /* Polarity defeat */
 
#define NETMAN_LINK   0x02 /* Link defeat */
 
#define NETMAN_CCE   0x01 /* Custom Counters Enable */
 
#define SW_SQE   0x10 /* Signal Quality Error */
 
#define SW_LAB   0x08 /* Less Aggressive Backoff */
 
#define SW_INIT   0x04 /* Initialized */
 
#define SW_TIMEOUT   0x02 /* 0:2.5 mins, 1: 30 secs */
 
#define SW_REMOTE   0x01 /* Remote Boot Enable -> 1 */
 
#define SETUP_APD   0x80 /* AutoPort Disable */
 
#define SETUP_PS   0x40 /* Port Select */
 
#define SETUP_MP   0x20 /* MultiPort */
 
#define SETUP_1TP   0x10 /* 1 port, TP */
 
#define SETUP_1COAX   0x00 /* 1 port, Coax */
 
#define SETUP_DRAM   0x02 /* Number of DRAMS on board */
 
#define MGMT_CCE   0x01 /* Custom Counters Enable */
 
#define LeMAC   0x11
 
#define LeMAC2   0x12
 
#define EEPROM_WAIT_TIME   1000 /* Number of microseconds */
 
#define EISA_EN   0x0001 /* Enable EISA bus buffers */
 
#define HASH_TABLE_LEN   512 /* Bits */
 
#define XCT   0x80 /* Transmit Cut Through */
 
#define PRELOAD   16 /* 4 long words */
 
#define MASK_INTERRUPTS   1
 
#define UNMASK_INTERRUPTS   0
 
#define EEPROM_OFFSET(a)   ((u_short)((u_long)(a)))
 
#define EWRK3IOCTL   SIOCDEVPRIVATE
 
#define EWRK3_GET_HWADDR   0x01 /* Get the hardware address */
 
#define EWRK3_SET_HWADDR   0x02 /* Get the hardware address */
 
#define EWRK3_SET_PROM   0x03 /* Set Promiscuous Mode */
 
#define EWRK3_CLR_PROM   0x04 /* Clear Promiscuous Mode */
 
#define EWRK3_SAY_BOO   0x05 /* Say "Boo!" to the kernel log file */
 
#define EWRK3_GET_MCA   0x06 /* Get a multicast address */
 
#define EWRK3_SET_MCA   0x07 /* Set a multicast address */
 
#define EWRK3_CLR_MCA   0x08 /* Clear a multicast address */
 
#define EWRK3_MCA_EN   0x09 /* Enable a multicast address group */
 
#define EWRK3_GET_STATS   0x0a /* Get the driver statistics */
 
#define EWRK3_CLR_STATS   0x0b /* Zero out the driver statistics */
 
#define EWRK3_GET_CSR   0x0c /* Get the CSR Register contents */
 
#define EWRK3_SET_CSR   0x0d /* Set the CSR Register contents */
 
#define EWRK3_GET_EEPROM   0x0e /* Get the EEPROM contents */
 
#define EWRK3_SET_EEPROM   0x0f /* Set the EEPROM contents */
 
#define EWRK3_GET_CMR   0x10 /* Get the CMR Register contents */
 
#define EWRK3_CLR_TX_CUT_THRU   0x11 /* Clear the TX cut through mode */
 
#define EWRK3_SET_TX_CUT_THRU   0x12 /* Set the TX cut through mode */
 

Macro Definition Documentation

#define _0WS_ENA   0x0001 /* Zero Wait State Enable */

Definition at line 233 of file ewrk3.h.

#define CMR_0WS   0x01 /* Zero Wait State */

Definition at line 128 of file ewrk3.h.

#define CMR_DRAM   0x02 /* 0-> 1DRAM, 1-> 2 DRAM on board */

Definition at line 127 of file ewrk3.h.

#define CMR_HS   0x08 /* Hard Strapped pin status (LeMAC2) */

Definition at line 125 of file ewrk3.h.

#define CMR_LINK   0x20 /* 0->TP */

Definition at line 122 of file ewrk3.h.

#define CMR_NO_EEPROM   0x0c /* NO_EEPROM<1:0> pin status */

Definition at line 124 of file ewrk3.h.

#define CMR_PNP   0x04 /* Plug 'n Play */

Definition at line 126 of file ewrk3.h.

#define CMR_POLARITY   0x10 /* Informational */

Definition at line 123 of file ewrk3.h.

#define CMR_RA   0x80 /* Read Ahead */

Definition at line 120 of file ewrk3.h.

#define CMR_WB   0x40 /* Write Behind */

Definition at line 121 of file ewrk3.h.

#define CR_APD   0x80 /* Auto Port Disable */

Definition at line 75 of file ewrk3.h.

#define CR_EN_16   0x04 /* ENable 16 bit memory accesses */

Definition at line 80 of file ewrk3.h.

#define CR_FBUS   0x08 /* Fast BUS enable (ISA clk > 8.33MHz) */

Definition at line 79 of file ewrk3.h.

#define CR_FDUP   0x10 /* Full DUPlex enable */

Definition at line 78 of file ewrk3.h.

#define CR_LBCK   0x20 /* LoopBaCK enable */

Definition at line 77 of file ewrk3.h.

#define CR_LED   0x02 /* LED (1-> turn on) */

Definition at line 81 of file ewrk3.h.

#define CR_PSEL   0x40 /* Port Select (0->TP port) */

Definition at line 76 of file ewrk3.h.

#define CSR_MCE   0x20 /* Multicast Enable */

Definition at line 66 of file ewrk3.h.

#define CSR_PME   0x40 /* Promiscuous Mode Enable */

Definition at line 65 of file ewrk3.h.

#define CSR_RA   0x80 /* Runt Accept */

Definition at line 64 of file ewrk3.h.

#define CSR_RNE   0x04 /* RX Queue Not Empty */

Definition at line 68 of file ewrk3.h.

#define CSR_RXD   0x01 /* RX Disable */

Definition at line 70 of file ewrk3.h.

#define CSR_TNE   0x08 /* TX Done Queue Not Empty */

Definition at line 67 of file ewrk3.h.

#define CSR_TXD   0x02 /* TX Disable */

Definition at line 69 of file ewrk3.h.

#define EEPROM_CHIPVER   0x16

Definition at line 207 of file ewrk3.h.

#define EEPROM_CHKSUM   0x1f

Definition at line 216 of file ewrk3.h.

#define EEPROM_EISA_ID0   0x02

Definition at line 187 of file ewrk3.h.

#define EEPROM_EISA_ID1   0x03

Definition at line 188 of file ewrk3.h.

#define EEPROM_EISA_ID2   0x04

Definition at line 189 of file ewrk3.h.

#define EEPROM_EISA_ID3   0x05

Definition at line 190 of file ewrk3.h.

#define EEPROM_HWCAT   0x11

Definition at line 202 of file ewrk3.h.

#define EEPROM_INIT   0xc0 /* EEPROM INIT command */

Definition at line 105 of file ewrk3.h.

#define EEPROM_IOB   0x01

Definition at line 186 of file ewrk3.h.

#define EEPROM_MAX   32 /* bytes */

Definition at line 221 of file ewrk3.h.

#define EEPROM_MEMB   0x00

Definition at line 185 of file ewrk3.h.

#define EEPROM_MISC0   0x06

Definition at line 191 of file ewrk3.h.

#define EEPROM_MISC1   0x07

Definition at line 192 of file ewrk3.h.

#define EEPROM_NETMAN0   0x14

Definition at line 205 of file ewrk3.h.

#define EEPROM_NETMAN1   0x15

Definition at line 206 of file ewrk3.h.

#define EEPROM_NETMAN2   0x12

Definition at line 203 of file ewrk3.h.

#define EEPROM_OFFSET (   a)    ((u_short)((u_long)(a)))

Definition at line 287 of file ewrk3.h.

#define EEPROM_PA_CRC   0x1e

Definition at line 215 of file ewrk3.h.

#define EEPROM_PADDR0   0x18

Definition at line 209 of file ewrk3.h.

#define EEPROM_PADDR1   0x19

Definition at line 210 of file ewrk3.h.

#define EEPROM_PADDR2   0x1a

Definition at line 211 of file ewrk3.h.

#define EEPROM_PADDR3   0x1b

Definition at line 212 of file ewrk3.h.

#define EEPROM_PADDR4   0x1c

Definition at line 213 of file ewrk3.h.

#define EEPROM_PADDR5   0x1d

Definition at line 214 of file ewrk3.h.

#define EEPROM_PNAME0   0x0f

Definition at line 200 of file ewrk3.h.

#define EEPROM_PNAME1   0x0e

Definition at line 199 of file ewrk3.h.

#define EEPROM_PNAME2   0x0d

Definition at line 198 of file ewrk3.h.

#define EEPROM_PNAME3   0x0c

Definition at line 197 of file ewrk3.h.

#define EEPROM_PNAME4   0x0b

Definition at line 196 of file ewrk3.h.

#define EEPROM_PNAME5   0x0a

Definition at line 195 of file ewrk3.h.

#define EEPROM_PNAME6   0x09

Definition at line 194 of file ewrk3.h.

#define EEPROM_PNAME7   0x08

Definition at line 193 of file ewrk3.h.

#define EEPROM_RD   0xe0 /* EEPROM READ command */

Definition at line 109 of file ewrk3.h.

#define EEPROM_REVLVL   0x13

Definition at line 204 of file ewrk3.h.

#define EEPROM_SETUP   0x17

Definition at line 208 of file ewrk3.h.

#define EEPROM_SWFLAGS   0x10

Definition at line 201 of file ewrk3.h.

#define EEPROM_WAIT_TIME   1000 /* Number of microseconds */

Definition at line 276 of file ewrk3.h.

#define EEPROM_WR   0xd0 /* EEPROM WRITE command */

Definition at line 107 of file ewrk3.h.

#define EEPROM_WR_DIS   0xd8 /* EEPROM WRITE DISABLE command */

Definition at line 108 of file ewrk3.h.

#define EEPROM_WR_EN   0xc8 /* EEPROM WRITE ENABLE command */

Definition at line 106 of file ewrk3.h.

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

Definition at line 180 of file ewrk3.h.

#define EISA_EN   0x0001 /* Enable EISA bus buffers */

Definition at line 277 of file ewrk3.h.

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

Definition at line 175 of file ewrk3.h.

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

Definition at line 176 of file ewrk3.h.

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

Definition at line 177 of file ewrk3.h.

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

Definition at line 178 of file ewrk3.h.

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

Definition at line 179 of file ewrk3.h.

#define EISA_IOB   0x1f /* Compare bits for I/O Base Address */

Definition at line 115 of file ewrk3.h.

#define EISA_REGS_EN   0x20 /* Enable EISA ID and Control Registers */

Definition at line 114 of file ewrk3.h.

#define ENA_16   0x0004 /* Enables 16 bit memory transfers */

Definition at line 231 of file ewrk3.h.

#define EWRK3_APROM   iobase+0x15 /* Address PROM */

Definition at line 39 of file ewrk3.h.

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

Definition at line 312 of file ewrk3.h.

#define EWRK3_CLR_PROM   0x04 /* Clear Promiscuous Mode */

Definition at line 308 of file ewrk3.h.

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

Definition at line 315 of file ewrk3.h.

#define EWRK3_CLR_TX_CUT_THRU   0x11 /* Clear the TX cut through mode */

Definition at line 321 of file ewrk3.h.

#define EWRK3_CMR   iobase+0x1e /* Configuration/Management Register */

Definition at line 48 of file ewrk3.h.

#define EWRK3_CR   iobase+0x01 /* Control Register */

Definition at line 19 of file ewrk3.h.

#define EWRK3_CSR   iobase+0x00 /* Control and Status Register */

Definition at line 18 of file ewrk3.h.

#define EWRK3_DATA   iobase+0x10 /* Data Register */

Definition at line 34 of file ewrk3.h.

#define EWRK3_EPROM1   iobase+0x16 /* EEPROM Data Register 1 */

Definition at line 40 of file ewrk3.h.

#define EWRK3_EPROM2   iobase+0x17 /* EEPROM Data Register 2 */

Definition at line 41 of file ewrk3.h.

#define EWRK3_FMQ   iobase+0x06 /* Free Memory Queue */

Definition at line 24 of file ewrk3.h.

#define EWRK3_FMQC   iobase+0x07 /* Free Memory Queue Counter */

Definition at line 25 of file ewrk3.h.

#define EWRK3_GET_CMR   0x10 /* Get the CMR Register contents */

Definition at line 320 of file ewrk3.h.

#define EWRK3_GET_CSR   0x0c /* Get the CSR Register contents */

Definition at line 316 of file ewrk3.h.

#define EWRK3_GET_EEPROM   0x0e /* Get the EEPROM contents */

Definition at line 318 of file ewrk3.h.

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

Definition at line 305 of file ewrk3.h.

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

Definition at line 310 of file ewrk3.h.

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

Definition at line 314 of file ewrk3.h.

#define EWRK3_ICR   iobase+0x02 /* Interrupt Control Register */

Definition at line 20 of file ewrk3.h.

#define EWRK3_IOBR   iobase+0x12 /* I/O Base Register */

Definition at line 36 of file ewrk3.h.

#define EWRK3_IOPR   iobase+0x11 /* I/O Page Register */

Definition at line 35 of file ewrk3.h.

#define EWRK3_MBR   iobase+0x14 /* Memory Base Register */

Definition at line 38 of file ewrk3.h.

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

Definition at line 313 of file ewrk3.h.

#define EWRK3_MPR   iobase+0x13 /* Memory Page Register */

Definition at line 37 of file ewrk3.h.

#define EWRK3_PAR0   iobase+0x18 /* Physical Address Register 0 */

Definition at line 42 of file ewrk3.h.

#define EWRK3_PAR1   iobase+0x19 /* Physical Address Register 1 */

Definition at line 43 of file ewrk3.h.

#define EWRK3_PAR2   iobase+0x1a /* Physical Address Register 2 */

Definition at line 44 of file ewrk3.h.

#define EWRK3_PAR3   iobase+0x1b /* Physical Address Register 3 */

Definition at line 45 of file ewrk3.h.

#define EWRK3_PAR4   iobase+0x1c /* Physical Address Register 4 */

Definition at line 46 of file ewrk3.h.

#define EWRK3_PAR5   iobase+0x1d /* Physical Address Register 5 */

Definition at line 47 of file ewrk3.h.

#define EWRK3_PIR1   iobase+0x0e /* Page Index Register 1 */

Definition at line 32 of file ewrk3.h.

#define EWRK3_PIR2   iobase+0x0f /* Page Index Register 2 */

Definition at line 33 of file ewrk3.h.

#define EWRK3_RQ   iobase+0x08 /* Receive Queue */

Definition at line 26 of file ewrk3.h.

#define EWRK3_RQC   iobase+0x09 /* Receive Queue Counter */

Definition at line 27 of file ewrk3.h.

#define EWRK3_RSVD1   iobase+0x04 /* RESERVED */

Definition at line 22 of file ewrk3.h.

#define EWRK3_RSVD2   iobase+0x05 /* RESERVED */

Definition at line 23 of file ewrk3.h.

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

Definition at line 309 of file ewrk3.h.

#define EWRK3_SET_CSR   0x0d /* Set the CSR Register contents */

Definition at line 317 of file ewrk3.h.

#define EWRK3_SET_EEPROM   0x0f /* Set the EEPROM contents */

Definition at line 319 of file ewrk3.h.

#define EWRK3_SET_HWADDR   0x02 /* Get the hardware address */

Definition at line 306 of file ewrk3.h.

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

Definition at line 311 of file ewrk3.h.

#define EWRK3_SET_PROM   0x03 /* Set Promiscuous Mode */

Definition at line 307 of file ewrk3.h.

#define EWRK3_SET_TX_CUT_THRU   0x12 /* Set the TX cut through mode */

Definition at line 322 of file ewrk3.h.

#define EWRK3_TDQ   iobase+0x0c /* Transmit Done Queue */

Definition at line 30 of file ewrk3.h.

#define EWRK3_TDQC   iobase+0x0d /* Transmit Done Queue Counter */

Definition at line 31 of file ewrk3.h.

#define EWRK3_TQ   iobase+0x0a /* Transmit Queue */

Definition at line 28 of file ewrk3.h.

#define EWRK3_TQC   iobase+0x0b /* Transmit Queue Counter */

Definition at line 29 of file ewrk3.h.

#define EWRK3_TSR   iobase+0x03 /* Transmit Status Register */

Definition at line 21 of file ewrk3.h.

#define EWRK3IOCTL   SIOCDEVPRIVATE

Definition at line 294 of file ewrk3.h.

#define FAST_BUS   0x0008 /* ISA Bus speeds > 8.33MHz */

Definition at line 230 of file ewrk3.h.

#define HASH_TABLE_LEN   512 /* Bits */

Definition at line 279 of file ewrk3.h.

#define ICR_IE   0x80 /* Interrupt Enable */

Definition at line 86 of file ewrk3.h.

#define ICR_IS   0x60 /* Interrupt Selected */

Definition at line 87 of file ewrk3.h.

#define ICR_RNEM   0x04 /* RNE Mask (0->mask) */

Definition at line 89 of file ewrk3.h.

#define ICR_RXDM   0x01 /* RXD Mask (0->mask) */

Definition at line 91 of file ewrk3.h.

#define ICR_TNEM   0x08 /* TNE Mask (0->mask) */

Definition at line 88 of file ewrk3.h.

#define ICR_TXDM   0x02 /* TXD Mask (0->mask) */

Definition at line 90 of file ewrk3.h.

#define IRQ_SEL   0x0060 /* IRQ line selection */

Definition at line 229 of file ewrk3.h.

#define IRQ_SEL2   0x0070 /* IRQ line selection (LeMAC2) */

Definition at line 228 of file ewrk3.h.

#define LeMAC   0x11

Definition at line 269 of file ewrk3.h.

#define LeMAC2   0x12

Definition at line 270 of file ewrk3.h.

#define MASK_INTERRUPTS   1

Definition at line 284 of file ewrk3.h.

#define MGMT_CCE   0x01 /* Custom Counters Enable */

Definition at line 264 of file ewrk3.h.

#define NETMAN_CCE   0x01 /* Custom Counters Enable */

Definition at line 240 of file ewrk3.h.

#define NETMAN_LINK   0x02 /* Link defeat */

Definition at line 239 of file ewrk3.h.

#define NETMAN_POL   0x04 /* Polarity defeat */

Definition at line 238 of file ewrk3.h.

#define PAGE0_FMQ   0x000 /* Free Memory Queue */

Definition at line 53 of file ewrk3.h.

#define PAGE0_HTE   0x200 /* Hash Table Entries */

Definition at line 57 of file ewrk3.h.

#define PAGE0_RQ   0x080 /* Receive Queue */

Definition at line 54 of file ewrk3.h.

#define PAGE0_RSVD   0x240 /* RESERVED */

Definition at line 58 of file ewrk3.h.

#define PAGE0_TDQ   0x180 /* Transmit Done Queue */

Definition at line 56 of file ewrk3.h.

#define PAGE0_TQ   0x100 /* Transmit Queue */

Definition at line 55 of file ewrk3.h.

#define PAGE0_USRD   0x600 /* User Data */

Definition at line 59 of file ewrk3.h.

#define PRELOAD   16 /* 4 long words */

Definition at line 282 of file ewrk3.h.

#define R_CRC   0x02 /* CRC error */

Definition at line 138 of file ewrk3.h.

#define R_DBE   0x04 /* Dribble Bit Error */

Definition at line 137 of file ewrk3.h.

#define R_IAM   0x10 /* Individual Address Match */

Definition at line 135 of file ewrk3.h.

#define R_MCM   0x08 /* MultiCast Match */

Definition at line 136 of file ewrk3.h.

#define R_PLL   0x01 /* Phase Lock Lost */

Definition at line 139 of file ewrk3.h.

#define R_ROK   0x80 /* Receive OK summary */

Definition at line 134 of file ewrk3.h.

#define RBE_SHADOW   0x0100 /* Remote Boot Enable Shadow */

Definition at line 226 of file ewrk3.h.

#define READ_AHEAD   0x0080 /* Read Ahead feature */

Definition at line 227 of file ewrk3.h.

#define SETUP_1COAX   0x00 /* 1 port, Coax */

Definition at line 258 of file ewrk3.h.

#define SETUP_1TP   0x10 /* 1 port, TP */

Definition at line 257 of file ewrk3.h.

#define SETUP_APD   0x80 /* AutoPort Disable */

Definition at line 254 of file ewrk3.h.

#define SETUP_DRAM   0x02 /* Number of DRAMS on board */

Definition at line 259 of file ewrk3.h.

#define SETUP_MP   0x20 /* MultiPort */

Definition at line 256 of file ewrk3.h.

#define SETUP_PS   0x40 /* Port Select */

Definition at line 255 of file ewrk3.h.

#define SW_INIT   0x04 /* Initialized */

Definition at line 247 of file ewrk3.h.

#define SW_LAB   0x08 /* Less Aggressive Backoff */

Definition at line 246 of file ewrk3.h.

#define SW_REMOTE   0x01 /* Remote Boot Enable -> 1 */

Definition at line 249 of file ewrk3.h.

#define SW_SQE   0x10 /* Signal Quality Error */

Definition at line 245 of file ewrk3.h.

#define SW_TIMEOUT   0x02 /* 0:2.5 mins, 1: 30 secs */

Definition at line 248 of file ewrk3.h.

#define T_COLL   0x03 /* COLLision status */

Definition at line 163 of file ewrk3.h.

#define T_CTU   0x40 /* Cut Through Used */

Definition at line 158 of file ewrk3.h.

#define T_ID   0x04 /* Initially Deferred */

Definition at line 162 of file ewrk3.h.

#define T_LCL   0x08 /* Late Collision */

Definition at line 161 of file ewrk3.h.

#define T_MCOLL   0x02 /* Multiple Collisions */

Definition at line 165 of file ewrk3.h.

#define T_NCL   0x10 /* No Carrier Loopback */

Definition at line 160 of file ewrk3.h.

#define T_NOCOLL   0x00 /* No Collisions */

Definition at line 167 of file ewrk3.h.

#define T_OCOLL   0x01 /* One Collision */

Definition at line 166 of file ewrk3.h.

#define T_SQE   0x20 /* Signal Quality Error */

Definition at line 159 of file ewrk3.h.

#define T_TXE   0x7f /* TX Errors */

Definition at line 169 of file ewrk3.h.

#define T_VSTS   0x80 /* Valid STatuS */

Definition at line 157 of file ewrk3.h.

#define T_XCOLL   0x03 /* Excessive Collisions */

Definition at line 164 of file ewrk3.h.

#define T_XUR   0x03 /* Excessive Underruns */

Definition at line 168 of file ewrk3.h.

#define TCR_IFC   0x02 /* Insert Frame Check */

Definition at line 150 of file ewrk3.h.

#define TCR_ISA   0x01 /* Insert Source Address */

Definition at line 151 of file ewrk3.h.

#define TCR_LAB   0x08 /* Less Aggressive Backoff */

Definition at line 148 of file ewrk3.h.

#define TCR_PAD   0x04 /* PAD Runt Packets */

Definition at line 149 of file ewrk3.h.

#define TCR_QMODE   0x10 /* Q_MODE */

Definition at line 147 of file ewrk3.h.

#define TCR_SED   0x20 /* Stop when Error Detected */

Definition at line 146 of file ewrk3.h.

#define TCR_SQEE   0x40 /* SQE Enable - look for heartbeat */

Definition at line 145 of file ewrk3.h.

#define TSR_ECL   0x10 /* Excessive CoLlisions */

Definition at line 99 of file ewrk3.h.

#define TSR_ID   0x40 /* Initially Deferred */

Definition at line 97 of file ewrk3.h.

#define TSR_LCL   0x20 /* Late CoLlision */

Definition at line 98 of file ewrk3.h.

#define TSR_NCL   0x80 /* No Carrier Loopback */

Definition at line 96 of file ewrk3.h.

#define TSR_RCNTR   0x0f /* Retries CouNTeR */

Definition at line 100 of file ewrk3.h.

#define UNMASK_INTERRUPTS   0

Definition at line 285 of file ewrk3.h.

#define WRITE_BEHIND   0x0002 /* Write Behind feature */

Definition at line 232 of file ewrk3.h.

#define XCT   0x80 /* Transmit Cut Through */

Definition at line 281 of file ewrk3.h.