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

Go to the source code of this file.

Data Structures

struct  dev_priv
 
struct  ether3_data
 

Macros

#define DEBUG_TX   2
 
#define DEBUG_RX   4
 
#define DEBUG_INT   8
 
#define DEBUG_IC   16
 
#define NET_DEBUG   0
 
#define priv(dev)   ((struct dev_priv *)netdev_priv(dev))
 
#define REG_COMMAND   (priv(dev)->seeq + 0x0000)
 
#define CMD_ENINTDMA   0x0001
 
#define CMD_ENINTRX   0x0002
 
#define CMD_ENINTTX   0x0004
 
#define CMD_ENINTBUFWIN   0x0008
 
#define CMD_ACKINTDMA   0x0010
 
#define CMD_ACKINTRX   0x0020
 
#define CMD_ACKINTTX   0x0040
 
#define CMD_ACKINTBUFWIN   0x0080
 
#define CMD_DMAON   0x0100
 
#define CMD_RXON   0x0200
 
#define CMD_TXON   0x0400
 
#define CMD_DMAOFF   0x0800
 
#define CMD_RXOFF   0x1000
 
#define CMD_TXOFF   0x2000
 
#define CMD_FIFOREAD   0x4000
 
#define CMD_FIFOWRITE   0x8000
 
#define REG_STATUS   (priv(dev)->seeq + 0x0000)
 
#define STAT_ENINTSTAT   0x0001
 
#define STAT_ENINTRX   0x0002
 
#define STAT_ENINTTX   0x0004
 
#define STAT_ENINTBUFWIN   0x0008
 
#define STAT_INTDMA   0x0010
 
#define STAT_INTRX   0x0020
 
#define STAT_INTTX   0x0040
 
#define STAT_INTBUFWIN   0x0080
 
#define STAT_DMAON   0x0100
 
#define STAT_RXON   0x0200
 
#define STAT_TXON   0x0400
 
#define STAT_FIFOFULL   0x2000
 
#define STAT_FIFOEMPTY   0x4000
 
#define STAT_FIFODIR   0x8000
 
#define REG_CONFIG1   (priv(dev)->seeq + 0x0040)
 
#define CFG1_BUFSELSTAT0   0x0000
 
#define CFG1_BUFSELSTAT1   0x0001
 
#define CFG1_BUFSELSTAT2   0x0002
 
#define CFG1_BUFSELSTAT3   0x0003
 
#define CFG1_BUFSELSTAT4   0x0004
 
#define CFG1_BUFSELSTAT5   0x0005
 
#define CFG1_ADDRPROM   0x0006
 
#define CFG1_TRANSEND   0x0007
 
#define CFG1_LOCBUFMEM   0x0008
 
#define CFG1_INTVECTOR   0x0009
 
#define CFG1_RECVSPECONLY   0x0000
 
#define CFG1_RECVSPECBROAD   0x4000
 
#define CFG1_RECVSPECBRMULTI   0x8000
 
#define CFG1_RECVPROMISC   0xC000
 
#define CFG1_DMABURSTCONT   0x0000
 
#define CFG1_DMABURST800NS   0x0010
 
#define CFG1_DMABURST1600NS   0x0020
 
#define CFG1_DMABURST3200NS   0x0030
 
#define CFG1_DMABURST1   0x0000
 
#define CFG1_DMABURST4   0x0040
 
#define CFG1_DMABURST8   0x0080
 
#define CFG1_DMABURST16   0x00C0
 
#define CFG1_RECVCOMPSTAT0   0x0100
 
#define CFG1_RECVCOMPSTAT1   0x0200
 
#define CFG1_RECVCOMPSTAT2   0x0400
 
#define CFG1_RECVCOMPSTAT3   0x0800
 
#define CFG1_RECVCOMPSTAT4   0x1000
 
#define CFG1_RECVCOMPSTAT5   0x2000
 
#define REG_CONFIG2   (priv(dev)->seeq + 0x0080)
 
#define CFG2_BYTESWAP   0x0001
 
#define CFG2_ERRENCRC   0x0008
 
#define CFG2_ERRENDRIBBLE   0x0010
 
#define CFG2_ERRSHORTFRAME   0x0020
 
#define CFG2_SLOTSELECT   0x0040
 
#define CFG2_PREAMSELECT   0x0080
 
#define CFG2_ADDRLENGTH   0x0100
 
#define CFG2_RECVCRC   0x0200
 
#define CFG2_XMITNOCRC   0x0400
 
#define CFG2_LOOPBACK   0x0800
 
#define CFG2_CTRLO   0x1000
 
#define CFG2_RESET   0x8000
 
#define REG_RECVEND   (priv(dev)->seeq + 0x00c0)
 
#define REG_BUFWIN   (priv(dev)->seeq + 0x0100)
 
#define REG_RECVPTR   (priv(dev)->seeq + 0x0140)
 
#define REG_TRANSMITPTR   (priv(dev)->seeq + 0x0180)
 
#define REG_DMAADDR   (priv(dev)->seeq + 0x01c0)
 
#define TX_NEXT   (0xffff)
 
#define TXHDR_ENBABBLEINT   (1 << 16)
 
#define TXHDR_ENCOLLISIONINT   (1 << 17)
 
#define TXHDR_EN16COLLISION   (1 << 18)
 
#define TXHDR_ENSUCCESS   (1 << 19)
 
#define TXHDR_DATAFOLLOWS   (1 << 21)
 
#define TXHDR_CHAINCONTINUE   (1 << 22)
 
#define TXHDR_TRANSMIT   (1 << 23)
 
#define TXSTAT_BABBLED   (1 << 24)
 
#define TXSTAT_COLLISION   (1 << 25)
 
#define TXSTAT_16COLLISIONS   (1 << 26)
 
#define TXSTAT_DONE   (1 << 31)
 
#define RX_NEXT   (0xffff)
 
#define RXHDR_CHAINCONTINUE   (1 << 6)
 
#define RXHDR_RECEIVE   (1 << 7)
 
#define RXSTAT_OVERSIZE   (1 << 8)
 
#define RXSTAT_CRCERROR   (1 << 9)
 
#define RXSTAT_DRIBBLEERROR   (1 << 10)
 
#define RXSTAT_SHORTPACKET   (1 << 11)
 
#define RXSTAT_DONE   (1 << 15)
 
#define TX_START   0x0000
 
#define TX_END   0x6000
 
#define RX_START   0x6000
 
#define RX_LEN   0xA000
 
#define RX_END   0x10000
 
#define MAX_TXED   16
 
#define MAX_TX_BUFFERED   10
 

Macro Definition Documentation

#define CFG1_ADDRPROM   0x0006

Definition at line 71 of file ether3.h.

#define CFG1_BUFSELSTAT0   0x0000

Definition at line 65 of file ether3.h.

#define CFG1_BUFSELSTAT1   0x0001

Definition at line 66 of file ether3.h.

#define CFG1_BUFSELSTAT2   0x0002

Definition at line 67 of file ether3.h.

#define CFG1_BUFSELSTAT3   0x0003

Definition at line 68 of file ether3.h.

#define CFG1_BUFSELSTAT4   0x0004

Definition at line 69 of file ether3.h.

#define CFG1_BUFSELSTAT5   0x0005

Definition at line 70 of file ether3.h.

#define CFG1_DMABURST1   0x0000

Definition at line 85 of file ether3.h.

#define CFG1_DMABURST16   0x00C0

Definition at line 88 of file ether3.h.

#define CFG1_DMABURST1600NS   0x0020

Definition at line 83 of file ether3.h.

#define CFG1_DMABURST3200NS   0x0030

Definition at line 84 of file ether3.h.

#define CFG1_DMABURST4   0x0040

Definition at line 86 of file ether3.h.

#define CFG1_DMABURST8   0x0080

Definition at line 87 of file ether3.h.

#define CFG1_DMABURST800NS   0x0010

Definition at line 82 of file ether3.h.

#define CFG1_DMABURSTCONT   0x0000

Definition at line 81 of file ether3.h.

#define CFG1_INTVECTOR   0x0009

Definition at line 74 of file ether3.h.

#define CFG1_LOCBUFMEM   0x0008

Definition at line 73 of file ether3.h.

#define CFG1_RECVCOMPSTAT0   0x0100

Definition at line 89 of file ether3.h.

#define CFG1_RECVCOMPSTAT1   0x0200

Definition at line 90 of file ether3.h.

#define CFG1_RECVCOMPSTAT2   0x0400

Definition at line 91 of file ether3.h.

#define CFG1_RECVCOMPSTAT3   0x0800

Definition at line 92 of file ether3.h.

#define CFG1_RECVCOMPSTAT4   0x1000

Definition at line 93 of file ether3.h.

#define CFG1_RECVCOMPSTAT5   0x2000

Definition at line 94 of file ether3.h.

#define CFG1_RECVPROMISC   0xC000

Definition at line 78 of file ether3.h.

#define CFG1_RECVSPECBRMULTI   0x8000

Definition at line 77 of file ether3.h.

#define CFG1_RECVSPECBROAD   0x4000

Definition at line 76 of file ether3.h.

#define CFG1_RECVSPECONLY   0x0000

Definition at line 75 of file ether3.h.

#define CFG1_TRANSEND   0x0007

Definition at line 72 of file ether3.h.

#define CFG2_ADDRLENGTH   0x0100

Definition at line 104 of file ether3.h.

#define CFG2_BYTESWAP   0x0001

Definition at line 98 of file ether3.h.

#define CFG2_CTRLO   0x1000

Definition at line 108 of file ether3.h.

#define CFG2_ERRENCRC   0x0008

Definition at line 99 of file ether3.h.

#define CFG2_ERRENDRIBBLE   0x0010

Definition at line 100 of file ether3.h.

#define CFG2_ERRSHORTFRAME   0x0020

Definition at line 101 of file ether3.h.

#define CFG2_LOOPBACK   0x0800

Definition at line 107 of file ether3.h.

#define CFG2_PREAMSELECT   0x0080

Definition at line 103 of file ether3.h.

#define CFG2_RECVCRC   0x0200

Definition at line 105 of file ether3.h.

#define CFG2_RESET   0x8000

Definition at line 109 of file ether3.h.

#define CFG2_SLOTSELECT   0x0040

Definition at line 102 of file ether3.h.

#define CFG2_XMITNOCRC   0x0400

Definition at line 106 of file ether3.h.

#define CMD_ACKINTBUFWIN   0x0080

Definition at line 36 of file ether3.h.

#define CMD_ACKINTDMA   0x0010

Definition at line 33 of file ether3.h.

#define CMD_ACKINTRX   0x0020

Definition at line 34 of file ether3.h.

#define CMD_ACKINTTX   0x0040

Definition at line 35 of file ether3.h.

#define CMD_DMAOFF   0x0800

Definition at line 40 of file ether3.h.

#define CMD_DMAON   0x0100

Definition at line 37 of file ether3.h.

#define CMD_ENINTBUFWIN   0x0008

Definition at line 32 of file ether3.h.

#define CMD_ENINTDMA   0x0001

Definition at line 29 of file ether3.h.

#define CMD_ENINTRX   0x0002

Definition at line 30 of file ether3.h.

#define CMD_ENINTTX   0x0004

Definition at line 31 of file ether3.h.

#define CMD_FIFOREAD   0x4000

Definition at line 43 of file ether3.h.

#define CMD_FIFOWRITE   0x8000

Definition at line 44 of file ether3.h.

#define CMD_RXOFF   0x1000

Definition at line 41 of file ether3.h.

#define CMD_RXON   0x0200

Definition at line 38 of file ether3.h.

#define CMD_TXOFF   0x2000

Definition at line 42 of file ether3.h.

#define CMD_TXON   0x0400

Definition at line 39 of file ether3.h.

#define DEBUG_IC   16

Definition at line 20 of file ether3.h.

#define DEBUG_INT   8

Definition at line 19 of file ether3.h.

#define DEBUG_RX   4

Definition at line 18 of file ether3.h.

#define DEBUG_TX   2

Definition at line 17 of file ether3.h.

#define MAX_TX_BUFFERED   10

Definition at line 154 of file ether3.h.

#define MAX_TXED   16

Definition at line 153 of file ether3.h.

#define NET_DEBUG   0

Definition at line 22 of file ether3.h.

#define priv (   dev)    ((struct dev_priv *)netdev_priv(dev))

Definition at line 25 of file ether3.h.

#define REG_BUFWIN   (priv(dev)->seeq + 0x0100)

Definition at line 113 of file ether3.h.

#define REG_COMMAND   (priv(dev)->seeq + 0x0000)

Definition at line 28 of file ether3.h.

#define REG_CONFIG1   (priv(dev)->seeq + 0x0040)

Definition at line 64 of file ether3.h.

#define REG_CONFIG2   (priv(dev)->seeq + 0x0080)

Definition at line 97 of file ether3.h.

#define REG_DMAADDR   (priv(dev)->seeq + 0x01c0)

Definition at line 119 of file ether3.h.

#define REG_RECVEND   (priv(dev)->seeq + 0x00c0)

Definition at line 111 of file ether3.h.

#define REG_RECVPTR   (priv(dev)->seeq + 0x0140)

Definition at line 115 of file ether3.h.

#define REG_STATUS   (priv(dev)->seeq + 0x0000)

Definition at line 47 of file ether3.h.

#define REG_TRANSMITPTR   (priv(dev)->seeq + 0x0180)

Definition at line 117 of file ether3.h.

#define RX_END   0x10000

Definition at line 151 of file ether3.h.

#define RX_LEN   0xA000

Definition at line 150 of file ether3.h.

#define RX_NEXT   (0xffff)

Definition at line 137 of file ether3.h.

#define RX_START   0x6000

Definition at line 149 of file ether3.h.

#define RXHDR_CHAINCONTINUE   (1 << 6)

Definition at line 138 of file ether3.h.

#define RXHDR_RECEIVE   (1 << 7)

Definition at line 139 of file ether3.h.

#define RXSTAT_CRCERROR   (1 << 9)

Definition at line 141 of file ether3.h.

#define RXSTAT_DONE   (1 << 15)

Definition at line 144 of file ether3.h.

#define RXSTAT_DRIBBLEERROR   (1 << 10)

Definition at line 142 of file ether3.h.

#define RXSTAT_OVERSIZE   (1 << 8)

Definition at line 140 of file ether3.h.

#define RXSTAT_SHORTPACKET   (1 << 11)

Definition at line 143 of file ether3.h.

#define STAT_DMAON   0x0100

Definition at line 56 of file ether3.h.

#define STAT_ENINTBUFWIN   0x0008

Definition at line 51 of file ether3.h.

#define STAT_ENINTRX   0x0002

Definition at line 49 of file ether3.h.

#define STAT_ENINTSTAT   0x0001

Definition at line 48 of file ether3.h.

#define STAT_ENINTTX   0x0004

Definition at line 50 of file ether3.h.

#define STAT_FIFODIR   0x8000

Definition at line 61 of file ether3.h.

#define STAT_FIFOEMPTY   0x4000

Definition at line 60 of file ether3.h.

#define STAT_FIFOFULL   0x2000

Definition at line 59 of file ether3.h.

#define STAT_INTBUFWIN   0x0080

Definition at line 55 of file ether3.h.

#define STAT_INTDMA   0x0010

Definition at line 52 of file ether3.h.

#define STAT_INTRX   0x0020

Definition at line 53 of file ether3.h.

#define STAT_INTTX   0x0040

Definition at line 54 of file ether3.h.

#define STAT_RXON   0x0200

Definition at line 57 of file ether3.h.

#define STAT_TXON   0x0400

Definition at line 58 of file ether3.h.

#define TX_END   0x6000

Definition at line 148 of file ether3.h.

#define TX_NEXT   (0xffff)

Definition at line 124 of file ether3.h.

#define TX_START   0x0000

Definition at line 147 of file ether3.h.

#define TXHDR_CHAINCONTINUE   (1 << 22)

Definition at line 130 of file ether3.h.

#define TXHDR_DATAFOLLOWS   (1 << 21)

Definition at line 129 of file ether3.h.

#define TXHDR_EN16COLLISION   (1 << 18)

Definition at line 127 of file ether3.h.

#define TXHDR_ENBABBLEINT   (1 << 16)

Definition at line 125 of file ether3.h.

#define TXHDR_ENCOLLISIONINT   (1 << 17)

Definition at line 126 of file ether3.h.

#define TXHDR_ENSUCCESS   (1 << 19)

Definition at line 128 of file ether3.h.

#define TXHDR_TRANSMIT   (1 << 23)

Definition at line 131 of file ether3.h.

#define TXSTAT_16COLLISIONS   (1 << 26)

Definition at line 134 of file ether3.h.

#define TXSTAT_BABBLED   (1 << 24)

Definition at line 132 of file ether3.h.

#define TXSTAT_COLLISION   (1 << 25)

Definition at line 133 of file ether3.h.

#define TXSTAT_DONE   (1 << 31)

Definition at line 135 of file ether3.h.