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

Go to the source code of this file.

Macros

#define XIFC   0x000 /* low-level interface control */
 
#define TxOutputEnable   0x0001 /* output driver enable */
 
#define XIFLoopback   0x0002 /* Loopback-mode XIF enable */
 
#define MIILoopback   0x0004 /* Loopback-mode MII enable */
 
#define MIILoopbackBits   0x0006
 
#define MIIBuffDisable   0x0008 /* MII receive buffer disable */
 
#define SQETestEnable   0x0010 /* SQE test enable */
 
#define SQETimeWindow   0x03e0 /* SQE time window */
 
#define XIFLanceMode   0x0010 /* Lance mode enable */
 
#define XIFLanceIPG0   0x03e0 /* Lance mode IPG0 */
 
#define TXFIFOCSR   0x100 /* transmit FIFO control */
 
#define TxFIFOEnable   0x0001
 
#define TXTH   0x110 /* transmit threshold */
 
#define TxThreshold   0x0004
 
#define RXFIFOCSR   0x120 /* receive FIFO control */
 
#define RxFIFOEnable   0x0001
 
#define MEMADD   0x130 /* memory address, unknown function */
 
#define MEMDATAHI   0x140 /* memory data high, presently unused in driver */
 
#define MEMDATALO   0x150 /* memory data low, presently unused in driver */
 
#define XCVRIF   0x160 /* transceiver interface control */
 
#define COLActiveLow   0x0002
 
#define SerialMode   0x0004
 
#define ClkBit   0x0008
 
#define LinkStatus   0x0100
 
#define CHIPID   0x170 /* chip ID */
 
#define MIFCSR   0x180 /* ??? */
 
#define SROMCSR   0x190 /* SROM control */
 
#define ChipSelect   0x0001
 
#define Clk   0x0002
 
#define TXPNTR   0x1a0 /* transmit pointer */
 
#define RXPNTR   0x1b0 /* receive pointer */
 
#define STATUS   0x200 /* status--reading this clears it */
 
#define INTDISABLE   0x210 /* interrupt enable/disable control */
 
#define FrameReceived   0x00000001 /* Received a frame */
 
#define RxFrameCntExp   0x00000002 /* Receive frame counter expired */
 
#define RxAlignCntExp   0x00000004 /* Align-error counter expired */
 
#define RxCRCCntExp   0x00000008 /* CRC-error counter expired */
 
#define RxLenCntExp   0x00000010 /* Length-error counter expired */
 
#define RxOverFlow   0x00000020 /* Receive FIFO overflow */
 
#define RxCodeViolation   0x00000040 /* Code-violation counter expired */
 
#define SQETestError   0x00000080 /* Test error in XIF for SQE */
 
#define FrameSent   0x00000100 /* Transmitted a frame */
 
#define TxUnderrun   0x00000200 /* Transmit FIFO underrun */
 
#define TxMaxSizeError   0x00000400 /* Max-packet size error */
 
#define TxNormalCollExp   0x00000800 /* Normal-collision counter expired */
 
#define TxExcessCollExp   0x00001000 /* Excess-collision counter expired */
 
#define TxLateCollExp   0x00002000 /* Late-collision counter expired */
 
#define TxNetworkCollExp   0x00004000 /* First-collision counter expired */
 
#define TxDeferTimerExp   0x00008000 /* Defer-timer expired */
 
#define RxFIFOToHost   0x00010000 /* Data moved from FIFO to host */
 
#define RxNoDescriptors   0x00020000 /* No more receive descriptors */
 
#define RxDMAError   0x00040000 /* Error during receive DMA */
 
#define RxDMALateErr   0x00080000 /* Receive DMA, data late */
 
#define RxParityErr   0x00100000 /* Parity error during receive DMA */
 
#define RxTagError   0x00200000 /* Tag error during receive DMA */
 
#define TxEOPError   0x00400000 /* Tx descriptor did not have EOP set */
 
#define MIFIntrEvent   0x00800000 /* MIF is signaling an interrupt */
 
#define TxHostToFIFO   0x01000000 /* Data moved from host to FIFO */
 
#define TxFIFOAllSent   0x02000000 /* Transmitted all packets in FIFO */
 
#define TxDMAError   0x04000000 /* Error during transmit DMA */
 
#define TxDMALateError   0x08000000 /* Late error during transmit DMA */
 
#define TxParityError   0x10000000 /* Parity error during transmit DMA */
 
#define TxTagError   0x20000000 /* Tag error during transmit DMA */
 
#define PIOError   0x40000000 /* PIO access got an error */
 
#define PIOParityError   0x80000000 /* PIO access got a parity error */
 
#define DisableAll   0xffffffff
 
#define EnableAll   0x00000000
 
#define EnableNormal   ~(FrameReceived | FrameSent)
 
#define EnableErrors   (FrameReceived | FrameSent)
 
#define RxErrorMask
 
#define TxErrorMask
 
#define TXRST   0x420 /* transmit reset */
 
#define TxResetBit   0x0001
 
#define TXCFG   0x430 /* transmit configuration control*/
 
#define TxMACEnable   0x0001 /* output driver enable */
 
#define TxSlowMode   0x0020 /* enable slow mode */
 
#define TxIgnoreColl   0x0040 /* ignore transmit collisions */
 
#define TxNoFCS   0x0080 /* do not emit FCS */
 
#define TxNoBackoff   0x0100 /* no backoff in case of collisions */
 
#define TxFullDuplex   0x0200 /* enable full-duplex */
 
#define TxNeverGiveUp   0x0400 /* don't give up on transmits */
 
#define IPG1   0x440 /* Inter-packet gap 1 */
 
#define IPG2   0x450 /* Inter-packet gap 2 */
 
#define ALIMIT   0x460 /* Transmit attempt limit */
 
#define SLOT   0x470 /* Transmit slot time */
 
#define PALEN   0x480 /* Size of transmit preamble */
 
#define PAPAT   0x490 /* Pattern for transmit preamble */
 
#define TXSFD   0x4a0 /* Transmit frame delimiter */
 
#define JAM   0x4b0 /* Jam size */
 
#define TXMAX   0x4c0 /* Transmit max pkt size */
 
#define TXMIN   0x4d0 /* Transmit min pkt size */
 
#define PAREG   0x4e0 /* Count of transmit peak attempts */
 
#define DCNT   0x4f0 /* Transmit defer timer */
 
#define NCCNT   0x500 /* Transmit normal-collision counter */
 
#define NTCNT   0x510 /* Transmit first-collision counter */
 
#define EXCNT   0x520 /* Transmit excess-collision counter */
 
#define LTCNT   0x530 /* Transmit late-collision counter */
 
#define RSEED   0x540 /* Transmit random number seed */
 
#define TXSM   0x550 /* Transmit state machine */
 
#define RXRST   0x620 /* receive reset */
 
#define RxResetValue   0x0000
 
#define RXCFG   0x630 /* receive configuration control */
 
#define RxMACEnable   0x0001 /* receiver overall enable */
 
#define RxCFGReserved   0x0004
 
#define RxPadStripEnab   0x0020 /* enable pad byte stripping */
 
#define RxPromiscEnable   0x0040 /* turn on promiscuous mode */
 
#define RxNoErrCheck   0x0080 /* disable receive error checking */
 
#define RxCRCNoStrip   0x0100 /* disable auto-CRC-stripping */
 
#define RxRejectOwnPackets   0x0200 /* don't receive our own packets */
 
#define RxGrpPromisck   0x0400 /* enable group promiscuous mode */
 
#define RxHashFilterEnable   0x0800 /* enable hash filter */
 
#define RxAddrFilterEnable   0x1000 /* enable address filter */
 
#define RXMAX   0x640 /* Max receive packet size */
 
#define RXMIN   0x650 /* Min receive packet size */
 
#define MADD2   0x660 /* our enet address, high part */
 
#define MADD1   0x670 /* our enet address, middle part */
 
#define MADD0   0x680 /* our enet address, low part */
 
#define FRCNT   0x690 /* receive frame counter */
 
#define LECNT   0x6a0 /* Receive excess length error counter */
 
#define AECNT   0x6b0 /* Receive misaligned error counter */
 
#define FECNT   0x6c0 /* Receive CRC error counter */
 
#define RXSM   0x6d0 /* Receive state machine */
 
#define RXCV   0x6e0 /* Receive code violation */
 
#define BHASH3   0x700 /* multicast hash register */
 
#define BHASH2   0x710 /* multicast hash register */
 
#define BHASH1   0x720 /* multicast hash register */
 
#define BHASH0   0x730 /* multicast hash register */
 
#define AFR2   0x740 /* address filtering setup? */
 
#define AFR1   0x750 /* address filtering setup? */
 
#define AFR0   0x760 /* address filtering setup? */
 
#define AFCR   0x770 /* address filter compare register? */
 
#define EnableAllCompares   0x0fff
 

Macro Definition Documentation

#define AECNT   0x6b0 /* Receive misaligned error counter */

Definition at line 148 of file bmac.h.

#define AFCR   0x770 /* address filter compare register? */

Definition at line 161 of file bmac.h.

#define AFR0   0x760 /* address filtering setup? */

Definition at line 160 of file bmac.h.

#define AFR1   0x750 /* address filtering setup? */

Definition at line 159 of file bmac.h.

#define AFR2   0x740 /* address filtering setup? */

Definition at line 158 of file bmac.h.

#define ALIMIT   0x460 /* Transmit attempt limit */

Definition at line 110 of file bmac.h.

#define BHASH0   0x730 /* multicast hash register */

Definition at line 156 of file bmac.h.

#define BHASH1   0x720 /* multicast hash register */

Definition at line 155 of file bmac.h.

#define BHASH2   0x710 /* multicast hash register */

Definition at line 154 of file bmac.h.

#define BHASH3   0x700 /* multicast hash register */

Definition at line 153 of file bmac.h.

#define CHIPID   0x170 /* chip ID */

Definition at line 45 of file bmac.h.

#define ChipSelect   0x0001

Definition at line 48 of file bmac.h.

#define Clk   0x0002

Definition at line 49 of file bmac.h.

#define ClkBit   0x0008

Definition at line 43 of file bmac.h.

#define COLActiveLow   0x0002

Definition at line 41 of file bmac.h.

#define DCNT   0x4f0 /* Transmit defer timer */

Definition at line 119 of file bmac.h.

#define DisableAll   0xffffffff

Definition at line 87 of file bmac.h.

#define EnableAll   0x00000000

Definition at line 88 of file bmac.h.

#define EnableAllCompares   0x0fff

Definition at line 162 of file bmac.h.

#define EnableErrors   (FrameReceived | FrameSent)

Definition at line 91 of file bmac.h.

#define EnableNormal   ~(FrameReceived | FrameSent)

Definition at line 90 of file bmac.h.

#define EXCNT   0x520 /* Transmit excess-collision counter */

Definition at line 122 of file bmac.h.

#define FECNT   0x6c0 /* Receive CRC error counter */

Definition at line 149 of file bmac.h.

#define FrameReceived   0x00000001 /* Received a frame */

Definition at line 55 of file bmac.h.

#define FrameSent   0x00000100 /* Transmitted a frame */

Definition at line 63 of file bmac.h.

#define FRCNT   0x690 /* receive frame counter */

Definition at line 146 of file bmac.h.

#define INTDISABLE   0x210 /* interrupt enable/disable control */

Definition at line 53 of file bmac.h.

#define IPG1   0x440 /* Inter-packet gap 1 */

Definition at line 108 of file bmac.h.

#define IPG2   0x450 /* Inter-packet gap 2 */

Definition at line 109 of file bmac.h.

#define JAM   0x4b0 /* Jam size */

Definition at line 115 of file bmac.h.

#define LECNT   0x6a0 /* Receive excess length error counter */

Definition at line 147 of file bmac.h.

#define LinkStatus   0x0100

Definition at line 44 of file bmac.h.

#define LTCNT   0x530 /* Transmit late-collision counter */

Definition at line 123 of file bmac.h.

#define MADD0   0x680 /* our enet address, low part */

Definition at line 145 of file bmac.h.

#define MADD1   0x670 /* our enet address, middle part */

Definition at line 144 of file bmac.h.

#define MADD2   0x660 /* our enet address, high part */

Definition at line 143 of file bmac.h.

#define MEMADD   0x130 /* memory address, unknown function */

Definition at line 37 of file bmac.h.

#define MEMDATAHI   0x140 /* memory data high, presently unused in driver */

Definition at line 38 of file bmac.h.

#define MEMDATALO   0x150 /* memory data low, presently unused in driver */

Definition at line 39 of file bmac.h.

#define MIFCSR   0x180 /* ??? */

Definition at line 46 of file bmac.h.

#define MIFIntrEvent   0x00800000 /* MIF is signaling an interrupt */

Definition at line 78 of file bmac.h.

#define MIIBuffDisable   0x0008 /* MII receive buffer disable */

Definition at line 26 of file bmac.h.

#define MIILoopback   0x0004 /* Loopback-mode MII enable */

Definition at line 24 of file bmac.h.

#define MIILoopbackBits   0x0006

Definition at line 25 of file bmac.h.

#define NCCNT   0x500 /* Transmit normal-collision counter */

Definition at line 120 of file bmac.h.

#define NTCNT   0x510 /* Transmit first-collision counter */

Definition at line 121 of file bmac.h.

#define PALEN   0x480 /* Size of transmit preamble */

Definition at line 112 of file bmac.h.

#define PAPAT   0x490 /* Pattern for transmit preamble */

Definition at line 113 of file bmac.h.

#define PAREG   0x4e0 /* Count of transmit peak attempts */

Definition at line 118 of file bmac.h.

#define PIOError   0x40000000 /* PIO access got an error */

Definition at line 85 of file bmac.h.

#define PIOParityError   0x80000000 /* PIO access got a parity error */

Definition at line 86 of file bmac.h.

#define RSEED   0x540 /* Transmit random number seed */

Definition at line 124 of file bmac.h.

#define RxAddrFilterEnable   0x1000 /* enable address filter */

Definition at line 140 of file bmac.h.

#define RxAlignCntExp   0x00000004 /* Align-error counter expired */

Definition at line 57 of file bmac.h.

#define RXCFG   0x630 /* receive configuration control */

Definition at line 130 of file bmac.h.

#define RxCFGReserved   0x0004

Definition at line 132 of file bmac.h.

#define RxCodeViolation   0x00000040 /* Code-violation counter expired */

Definition at line 61 of file bmac.h.

#define RxCRCCntExp   0x00000008 /* CRC-error counter expired */

Definition at line 58 of file bmac.h.

#define RxCRCNoStrip   0x0100 /* disable auto-CRC-stripping */

Definition at line 136 of file bmac.h.

#define RXCV   0x6e0 /* Receive code violation */

Definition at line 151 of file bmac.h.

#define RxDMAError   0x00040000 /* Error during receive DMA */

Definition at line 73 of file bmac.h.

#define RxDMALateErr   0x00080000 /* Receive DMA, data late */

Definition at line 74 of file bmac.h.

#define RxErrorMask
Value:

Definition at line 92 of file bmac.h.

#define RXFIFOCSR   0x120 /* receive FIFO control */

Definition at line 35 of file bmac.h.

#define RxFIFOEnable   0x0001

Definition at line 36 of file bmac.h.

#define RxFIFOToHost   0x00010000 /* Data moved from FIFO to host */

Definition at line 71 of file bmac.h.

#define RxFrameCntExp   0x00000002 /* Receive frame counter expired */

Definition at line 56 of file bmac.h.

#define RxGrpPromisck   0x0400 /* enable group promiscuous mode */

Definition at line 138 of file bmac.h.

#define RxHashFilterEnable   0x0800 /* enable hash filter */

Definition at line 139 of file bmac.h.

#define RxLenCntExp   0x00000010 /* Length-error counter expired */

Definition at line 59 of file bmac.h.

#define RxMACEnable   0x0001 /* receiver overall enable */

Definition at line 131 of file bmac.h.

#define RXMAX   0x640 /* Max receive packet size */

Definition at line 141 of file bmac.h.

#define RXMIN   0x650 /* Min receive packet size */

Definition at line 142 of file bmac.h.

#define RxNoDescriptors   0x00020000 /* No more receive descriptors */

Definition at line 72 of file bmac.h.

#define RxNoErrCheck   0x0080 /* disable receive error checking */

Definition at line 135 of file bmac.h.

#define RxOverFlow   0x00000020 /* Receive FIFO overflow */

Definition at line 60 of file bmac.h.

#define RxPadStripEnab   0x0020 /* enable pad byte stripping */

Definition at line 133 of file bmac.h.

#define RxParityErr   0x00100000 /* Parity error during receive DMA */

Definition at line 75 of file bmac.h.

#define RXPNTR   0x1b0 /* receive pointer */

Definition at line 51 of file bmac.h.

#define RxPromiscEnable   0x0040 /* turn on promiscuous mode */

Definition at line 134 of file bmac.h.

#define RxRejectOwnPackets   0x0200 /* don't receive our own packets */

Definition at line 137 of file bmac.h.

#define RxResetValue   0x0000

Definition at line 129 of file bmac.h.

#define RXRST   0x620 /* receive reset */

Definition at line 128 of file bmac.h.

#define RXSM   0x6d0 /* Receive state machine */

Definition at line 150 of file bmac.h.

#define RxTagError   0x00200000 /* Tag error during receive DMA */

Definition at line 76 of file bmac.h.

#define SerialMode   0x0004

Definition at line 42 of file bmac.h.

#define SLOT   0x470 /* Transmit slot time */

Definition at line 111 of file bmac.h.

#define SQETestEnable   0x0010 /* SQE test enable */

Definition at line 27 of file bmac.h.

#define SQETestError   0x00000080 /* Test error in XIF for SQE */

Definition at line 62 of file bmac.h.

#define SQETimeWindow   0x03e0 /* SQE time window */

Definition at line 28 of file bmac.h.

#define SROMCSR   0x190 /* SROM control */

Definition at line 47 of file bmac.h.

#define STATUS   0x200 /* status--reading this clears it */

Definition at line 52 of file bmac.h.

#define TXCFG   0x430 /* transmit configuration control*/

Definition at line 100 of file bmac.h.

#define TxDeferTimerExp   0x00008000 /* Defer-timer expired */

Definition at line 70 of file bmac.h.

#define TxDMAError   0x04000000 /* Error during transmit DMA */

Definition at line 81 of file bmac.h.

#define TxDMALateError   0x08000000 /* Late error during transmit DMA */

Definition at line 82 of file bmac.h.

#define TxEOPError   0x00400000 /* Tx descriptor did not have EOP set */

Definition at line 77 of file bmac.h.

#define TxErrorMask
Value:

Definition at line 94 of file bmac.h.

#define TxExcessCollExp   0x00001000 /* Excess-collision counter expired */

Definition at line 67 of file bmac.h.

#define TxFIFOAllSent   0x02000000 /* Transmitted all packets in FIFO */

Definition at line 80 of file bmac.h.

#define TXFIFOCSR   0x100 /* transmit FIFO control */

Definition at line 31 of file bmac.h.

#define TxFIFOEnable   0x0001

Definition at line 32 of file bmac.h.

#define TxFullDuplex   0x0200 /* enable full-duplex */

Definition at line 106 of file bmac.h.

#define TxHostToFIFO   0x01000000 /* Data moved from host to FIFO */

Definition at line 79 of file bmac.h.

#define TxIgnoreColl   0x0040 /* ignore transmit collisions */

Definition at line 103 of file bmac.h.

#define TxLateCollExp   0x00002000 /* Late-collision counter expired */

Definition at line 68 of file bmac.h.

#define TxMACEnable   0x0001 /* output driver enable */

Definition at line 101 of file bmac.h.

#define TXMAX   0x4c0 /* Transmit max pkt size */

Definition at line 116 of file bmac.h.

#define TxMaxSizeError   0x00000400 /* Max-packet size error */

Definition at line 65 of file bmac.h.

#define TXMIN   0x4d0 /* Transmit min pkt size */

Definition at line 117 of file bmac.h.

#define TxNetworkCollExp   0x00004000 /* First-collision counter expired */

Definition at line 69 of file bmac.h.

#define TxNeverGiveUp   0x0400 /* don't give up on transmits */

Definition at line 107 of file bmac.h.

#define TxNoBackoff   0x0100 /* no backoff in case of collisions */

Definition at line 105 of file bmac.h.

#define TxNoFCS   0x0080 /* do not emit FCS */

Definition at line 104 of file bmac.h.

#define TxNormalCollExp   0x00000800 /* Normal-collision counter expired */

Definition at line 66 of file bmac.h.

#define TxOutputEnable   0x0001 /* output driver enable */

Definition at line 22 of file bmac.h.

#define TxParityError   0x10000000 /* Parity error during transmit DMA */

Definition at line 83 of file bmac.h.

#define TXPNTR   0x1a0 /* transmit pointer */

Definition at line 50 of file bmac.h.

#define TxResetBit   0x0001

Definition at line 99 of file bmac.h.

#define TXRST   0x420 /* transmit reset */

Definition at line 98 of file bmac.h.

#define TXSFD   0x4a0 /* Transmit frame delimiter */

Definition at line 114 of file bmac.h.

#define TxSlowMode   0x0020 /* enable slow mode */

Definition at line 102 of file bmac.h.

#define TXSM   0x550 /* Transmit state machine */

Definition at line 125 of file bmac.h.

#define TxTagError   0x20000000 /* Tag error during transmit DMA */

Definition at line 84 of file bmac.h.

#define TXTH   0x110 /* transmit threshold */

Definition at line 33 of file bmac.h.

#define TxThreshold   0x0004

Definition at line 34 of file bmac.h.

#define TxUnderrun   0x00000200 /* Transmit FIFO underrun */

Definition at line 64 of file bmac.h.

#define XCVRIF   0x160 /* transceiver interface control */

Definition at line 40 of file bmac.h.

#define XIFC   0x000 /* low-level interface control */

Definition at line 21 of file bmac.h.

#define XIFLanceIPG0   0x03e0 /* Lance mode IPG0 */

Definition at line 30 of file bmac.h.

#define XIFLanceMode   0x0010 /* Lance mode enable */

Definition at line 29 of file bmac.h.

#define XIFLoopback   0x0002 /* Loopback-mode XIF enable */

Definition at line 23 of file bmac.h.