Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
3c503.h File Reference

Go to the source code of this file.

Macros

#define EL2H   (dev->base_addr + 0x400)
 
#define EL2L   (dev->base_addr)
 
#define OLD_3COM_ID   0x02608c
 
#define NEW_3COM_ID   0x0020af
 
#define EL2_MB0_START_PG   (0x00) /* EL2/16 Tx packets go in bank 0 */
 
#define EL2_MB1_START_PG   (0x20) /* First page of bank 1 */
 
#define EL2_MB1_STOP_PG   (0x40) /* Last page +1 of bank 1 */
 
#define E33G_STARTPG   (EL2H+0) /* Start page, matching EN0_STARTPG */
 
#define E33G_STOPPG   (EL2H+1) /* Stop page, must match EN0_STOPPG */
 
#define E33G_DRQCNT   (EL2H+2) /* DMA burst count */
 
#define E33G_IOBASE   (EL2H+3) /* Read of I/O base jumpers. */
 
#define E33G_ROMBASE   (EL2H+4) /* Read of memory base jumpers. */
 
#define E33G_GACFR   (EL2H+5) /* Config/setup bits for the ASIC GA */
 
#define E33G_CNTRL   (EL2H+6) /* Board's main control register */
 
#define E33G_STATUS   (EL2H+7) /* Status on completions. */
 
#define E33G_IDCFR   (EL2H+8) /* Interrupt/DMA config register */
 
#define E33G_DMAAH   (EL2H+9) /* High byte of DMA address reg */
 
#define E33G_DMAAL   (EL2H+10) /* Low byte of DMA address reg */
 
#define E33G_VP2   (EL2H+11)
 
#define E33G_VP1   (EL2H+12)
 
#define E33G_VP0   (EL2H+13)
 
#define E33G_FIFOH   (EL2H+14) /* FIFO for programmed I/O moves */
 
#define E33G_FIFOL   (EL2H+15) /* ... low byte of above. */
 
#define ECNTRL_RESET   (0x01) /* Software reset of the ASIC and 8390 */
 
#define ECNTRL_THIN   (0x02) /* Onboard xcvr enable, AUI disable */
 
#define ECNTRL_AUI   (0x00) /* Onboard xcvr disable, AUI enable */
 
#define ECNTRL_SAPROM   (0x04) /* Map the station address prom */
 
#define ECNTRL_DBLBFR   (0x20) /* FIFO configuration bit */
 
#define ECNTRL_OUTPUT   (0x40) /* PC-to-3C503 direction if 1 */
 
#define ECNTRL_INPUT   (0x00) /* 3C503-to-PC direction if 0 */
 
#define ECNTRL_START   (0x80) /* Start the DMA logic */
 
#define ESTAT_DPRDY   (0x80) /* Data port (of FIFO) ready */
 
#define ESTAT_UFLW   (0x40) /* Tried to read FIFO when it was empty */
 
#define ESTAT_OFLW   (0x20) /* Tried to write FIFO when it was full */
 
#define ESTAT_DTC   (0x10) /* Terminal Count from PC bus DMA logic */
 
#define ESTAT_DIP   (0x08) /* DMA In Progress */
 
#define EGACFR_NIM   (0x80) /* NIC interrupt mask */
 
#define EGACFR_TCM   (0x40) /* DMA term. count interrupt mask */
 
#define EGACFR_RSEL   (0x08) /* Map a bank of card mem into system mem */
 
#define EGACFR_MBS2   (0x04) /* Memory bank select, bit 2. */
 
#define EGACFR_MBS1   (0x02) /* Memory bank select, bit 1. */
 
#define EGACFR_MBS0   (0x01) /* Memory bank select, bit 0. */
 
#define EGACFR_NORM   (0x49) /* TCM | RSEL | MBS0 */
 
#define EGACFR_IRQOFF   (0xc9) /* TCM | RSEL | MBS0 | NIM */
 

Macro Definition Documentation

#define E33G_CNTRL   (EL2H+6) /* Board's main control register */

Definition at line 32 of file 3c503.h.

#define E33G_DMAAH   (EL2H+9) /* High byte of DMA address reg */

Definition at line 36 of file 3c503.h.

#define E33G_DMAAL   (EL2H+10) /* Low byte of DMA address reg */

Definition at line 37 of file 3c503.h.

#define E33G_DRQCNT   (EL2H+2) /* DMA burst count */

Definition at line 27 of file 3c503.h.

#define E33G_FIFOH   (EL2H+14) /* FIFO for programmed I/O moves */

Definition at line 43 of file 3c503.h.

#define E33G_FIFOL   (EL2H+15) /* ... low byte of above. */

Definition at line 44 of file 3c503.h.

#define E33G_GACFR   (EL2H+5) /* Config/setup bits for the ASIC GA */

Definition at line 31 of file 3c503.h.

#define E33G_IDCFR   (EL2H+8) /* Interrupt/DMA config register */

Definition at line 34 of file 3c503.h.

#define E33G_IOBASE   (EL2H+3) /* Read of I/O base jumpers. */

Definition at line 28 of file 3c503.h.

#define E33G_ROMBASE   (EL2H+4) /* Read of memory base jumpers. */

Definition at line 30 of file 3c503.h.

#define E33G_STARTPG   (EL2H+0) /* Start page, matching EN0_STARTPG */

Definition at line 25 of file 3c503.h.

#define E33G_STATUS   (EL2H+7) /* Status on completions. */

Definition at line 33 of file 3c503.h.

#define E33G_STOPPG   (EL2H+1) /* Stop page, must match EN0_STOPPG */

Definition at line 26 of file 3c503.h.

#define E33G_VP0   (EL2H+13)

Definition at line 42 of file 3c503.h.

#define E33G_VP1   (EL2H+12)

Definition at line 41 of file 3c503.h.

#define E33G_VP2   (EL2H+11)

Definition at line 40 of file 3c503.h.

#define ECNTRL_AUI   (0x00) /* Onboard xcvr disable, AUI enable */

Definition at line 50 of file 3c503.h.

#define ECNTRL_DBLBFR   (0x20) /* FIFO configuration bit */

Definition at line 52 of file 3c503.h.

#define ECNTRL_INPUT   (0x00) /* 3C503-to-PC direction if 0 */

Definition at line 54 of file 3c503.h.

#define ECNTRL_OUTPUT   (0x40) /* PC-to-3C503 direction if 1 */

Definition at line 53 of file 3c503.h.

#define ECNTRL_RESET   (0x01) /* Software reset of the ASIC and 8390 */

Definition at line 48 of file 3c503.h.

#define ECNTRL_SAPROM   (0x04) /* Map the station address prom */

Definition at line 51 of file 3c503.h.

#define ECNTRL_START   (0x80) /* Start the DMA logic */

Definition at line 55 of file 3c503.h.

#define ECNTRL_THIN   (0x02) /* Onboard xcvr enable, AUI disable */

Definition at line 49 of file 3c503.h.

#define EGACFR_IRQOFF   (0xc9) /* TCM | RSEL | MBS0 | NIM */

Definition at line 75 of file 3c503.h.

#define EGACFR_MBS0   (0x01) /* Memory bank select, bit 0. */

Definition at line 72 of file 3c503.h.

#define EGACFR_MBS1   (0x02) /* Memory bank select, bit 1. */

Definition at line 71 of file 3c503.h.

#define EGACFR_MBS2   (0x04) /* Memory bank select, bit 2. */

Definition at line 70 of file 3c503.h.

#define EGACFR_NIM   (0x80) /* NIC interrupt mask */

Definition at line 67 of file 3c503.h.

#define EGACFR_NORM   (0x49) /* TCM | RSEL | MBS0 */

Definition at line 74 of file 3c503.h.

#define EGACFR_RSEL   (0x08) /* Map a bank of card mem into system mem */

Definition at line 69 of file 3c503.h.

#define EGACFR_TCM   (0x40) /* DMA term. count interrupt mask */

Definition at line 68 of file 3c503.h.

#define EL2_MB0_START_PG   (0x00) /* EL2/16 Tx packets go in bank 0 */

Definition at line 20 of file 3c503.h.

#define EL2_MB1_START_PG   (0x20) /* First page of bank 1 */

Definition at line 21 of file 3c503.h.

#define EL2_MB1_STOP_PG   (0x40) /* Last page +1 of bank 1 */

Definition at line 22 of file 3c503.h.

#define EL2H   (dev->base_addr + 0x400)

Definition at line 6 of file 3c503.h.

#define EL2L   (dev->base_addr)

Definition at line 7 of file 3c503.h.

#define ESTAT_DIP   (0x08) /* DMA In Progress */

Definition at line 63 of file 3c503.h.

#define ESTAT_DPRDY   (0x80) /* Data port (of FIFO) ready */

Definition at line 59 of file 3c503.h.

#define ESTAT_DTC   (0x10) /* Terminal Count from PC bus DMA logic */

Definition at line 62 of file 3c503.h.

#define ESTAT_OFLW   (0x20) /* Tried to write FIFO when it was full */

Definition at line 61 of file 3c503.h.

#define ESTAT_UFLW   (0x40) /* Tried to read FIFO when it was empty */

Definition at line 60 of file 3c503.h.

#define NEW_3COM_ID   0x0020af

Definition at line 13 of file 3c503.h.

#define OLD_3COM_ID   0x02608c

Definition at line 12 of file 3c503.h.