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

Go to the source code of this file.

Data Structures

struct  qe_rxd
 
struct  qe_txd
 
struct  qe_init_block
 
struct  sunqec
 
struct  sunqe_buffers
 
struct  sunqe
 

Macros

#define GLOB_CTRL   0x00UL /* Control */
 
#define GLOB_STAT   0x04UL /* Status */
 
#define GLOB_PSIZE   0x08UL /* Packet Size */
 
#define GLOB_MSIZE   0x0cUL /* Local-memory Size */
 
#define GLOB_RSIZE   0x10UL /* Receive partition size */
 
#define GLOB_TSIZE   0x14UL /* Transmit partition size */
 
#define GLOB_REG_SIZE   0x18UL
 
#define GLOB_CTRL_MMODE   0x40000000 /* MACE qec mode */
 
#define GLOB_CTRL_BMODE   0x10000000 /* BigMAC qec mode */
 
#define GLOB_CTRL_EPAR   0x00000020 /* Enable parity */
 
#define GLOB_CTRL_ACNTRL   0x00000018 /* SBUS arbitration control */
 
#define GLOB_CTRL_B64   0x00000004 /* 64 byte dvma bursts */
 
#define GLOB_CTRL_B32   0x00000002 /* 32 byte dvma bursts */
 
#define GLOB_CTRL_B16   0x00000000 /* 16 byte dvma bursts */
 
#define GLOB_CTRL_RESET   0x00000001 /* Reset the QEC */
 
#define GLOB_STAT_TX   0x00000008 /* BigMAC Transmit IRQ */
 
#define GLOB_STAT_RX   0x00000004 /* BigMAC Receive IRQ */
 
#define GLOB_STAT_BM   0x00000002 /* BigMAC Global IRQ */
 
#define GLOB_STAT_ER   0x00000001 /* BigMAC Error IRQ */
 
#define GLOB_PSIZE_2048   0x00 /* 2k packet size */
 
#define GLOB_PSIZE_4096   0x01 /* 4k packet size */
 
#define GLOB_PSIZE_6144   0x10 /* 6k packet size */
 
#define GLOB_PSIZE_8192   0x11 /* 8k packet size */
 
#define GLOB_STAT_PER_QE(status, channel)   (((status) >> ((channel) * 4)) & 0xf)
 
#define CREG_CTRL   0x00UL /* Control */
 
#define CREG_STAT   0x04UL /* Status */
 
#define CREG_RXDS   0x08UL /* RX descriptor ring ptr */
 
#define CREG_TXDS   0x0cUL /* TX descriptor ring ptr */
 
#define CREG_RIMASK   0x10UL /* RX Interrupt Mask */
 
#define CREG_TIMASK   0x14UL /* TX Interrupt Mask */
 
#define CREG_QMASK   0x18UL /* QEC Error Interrupt Mask */
 
#define CREG_MMASK   0x1cUL /* MACE Error Interrupt Mask */
 
#define CREG_RXWBUFPTR   0x20UL /* Local memory rx write ptr */
 
#define CREG_RXRBUFPTR   0x24UL /* Local memory rx read ptr */
 
#define CREG_TXWBUFPTR   0x28UL /* Local memory tx write ptr */
 
#define CREG_TXRBUFPTR   0x2cUL /* Local memory tx read ptr */
 
#define CREG_CCNT   0x30UL /* Collision Counter */
 
#define CREG_PIPG   0x34UL /* Inter-Frame Gap */
 
#define CREG_REG_SIZE   0x38UL
 
#define CREG_CTRL_RXOFF   0x00000004 /* Disable this qe's receiver*/
 
#define CREG_CTRL_RESET   0x00000002 /* Reset this qe channel */
 
#define CREG_CTRL_TWAKEUP   0x00000001 /* Transmitter Wakeup, 'go'. */
 
#define CREG_STAT_EDEFER   0x10000000 /* Excessive Defers */
 
#define CREG_STAT_CLOSS   0x08000000 /* Carrier Loss */
 
#define CREG_STAT_ERETRIES   0x04000000 /* More than 16 retries */
 
#define CREG_STAT_LCOLL   0x02000000 /* Late TX Collision */
 
#define CREG_STAT_FUFLOW   0x01000000 /* FIFO Underflow */
 
#define CREG_STAT_JERROR   0x00800000 /* Jabber Error */
 
#define CREG_STAT_BERROR   0x00400000 /* Babble Error */
 
#define CREG_STAT_TXIRQ   0x00200000 /* Transmit Interrupt */
 
#define CREG_STAT_CCOFLOW   0x00100000 /* TX Coll-counter Overflow */
 
#define CREG_STAT_TXDERROR   0x00080000 /* TX Descriptor is bogus */
 
#define CREG_STAT_TXLERR   0x00040000 /* Late Transmit Error */
 
#define CREG_STAT_TXPERR   0x00020000 /* Transmit Parity Error */
 
#define CREG_STAT_TXSERR   0x00010000 /* Transmit SBUS error ack */
 
#define CREG_STAT_RCCOFLOW   0x00001000 /* RX Coll-counter Overflow */
 
#define CREG_STAT_RUOFLOW   0x00000800 /* Runt Counter Overflow */
 
#define CREG_STAT_MCOFLOW   0x00000400 /* Missed Counter Overflow */
 
#define CREG_STAT_RXFOFLOW   0x00000200 /* RX FIFO Overflow */
 
#define CREG_STAT_RLCOLL   0x00000100 /* RX Late Collision */
 
#define CREG_STAT_FCOFLOW   0x00000080 /* Frame Counter Overflow */
 
#define CREG_STAT_CECOFLOW   0x00000040 /* CRC Error-counter Overflow*/
 
#define CREG_STAT_RXIRQ   0x00000020 /* Receive Interrupt */
 
#define CREG_STAT_RXDROP   0x00000010 /* Dropped a RX'd packet */
 
#define CREG_STAT_RXSMALL   0x00000008 /* Receive buffer too small */
 
#define CREG_STAT_RXLERR   0x00000004 /* Receive Late Error */
 
#define CREG_STAT_RXPERR   0x00000002 /* Receive Parity Error */
 
#define CREG_STAT_RXSERR   0x00000001 /* Receive SBUS Error ACK */
 
#define CREG_STAT_ERRORS
 
#define CREG_QMASK_COFLOW   0x00100000 /* CollCntr overflow */
 
#define CREG_QMASK_TXDERROR   0x00080000 /* TXD error */
 
#define CREG_QMASK_TXLERR   0x00040000 /* TX late error */
 
#define CREG_QMASK_TXPERR   0x00020000 /* TX parity error */
 
#define CREG_QMASK_TXSERR   0x00010000 /* TX sbus error ack */
 
#define CREG_QMASK_RXDROP   0x00000010 /* RX drop */
 
#define CREG_QMASK_RXBERROR   0x00000008 /* RX buffer error */
 
#define CREG_QMASK_RXLEERR   0x00000004 /* RX late error */
 
#define CREG_QMASK_RXPERR   0x00000002 /* RX parity error */
 
#define CREG_QMASK_RXSERR   0x00000001 /* RX sbus error ack */
 
#define CREG_MMASK_EDEFER   0x10000000 /* Excess defer */
 
#define CREG_MMASK_CLOSS   0x08000000 /* Carrier loss */
 
#define CREG_MMASK_ERETRY   0x04000000 /* Excess retry */
 
#define CREG_MMASK_LCOLL   0x02000000 /* Late collision error */
 
#define CREG_MMASK_UFLOW   0x01000000 /* Underflow */
 
#define CREG_MMASK_JABBER   0x00800000 /* Jabber error */
 
#define CREG_MMASK_BABBLE   0x00400000 /* Babble error */
 
#define CREG_MMASK_OFLOW   0x00000800 /* Overflow */
 
#define CREG_MMASK_RXCOLL   0x00000400 /* RX Coll-Cntr overflow */
 
#define CREG_MMASK_RPKT   0x00000200 /* Runt pkt overflow */
 
#define CREG_MMASK_MPKT   0x00000100 /* Missed pkt overflow */
 
#define CREG_PIPG_TENAB   0x00000020 /* Enable Throttle */
 
#define CREG_PIPG_MMODE   0x00000010 /* Manual Mode */
 
#define CREG_PIPG_WMASK   0x0000000f /* SBUS Wait Mask */
 
#define MREGS_RXFIFO   0x00UL /* Receive FIFO */
 
#define MREGS_TXFIFO   0x01UL /* Transmit FIFO */
 
#define MREGS_TXFCNTL   0x02UL /* Transmit Frame Control */
 
#define MREGS_TXFSTAT   0x03UL /* Transmit Frame Status */
 
#define MREGS_TXRCNT   0x04UL /* Transmit Retry Count */
 
#define MREGS_RXFCNTL   0x05UL /* Receive Frame Control */
 
#define MREGS_RXFSTAT   0x06UL /* Receive Frame Status */
 
#define MREGS_FFCNT   0x07UL /* FIFO Frame Count */
 
#define MREGS_IREG   0x08UL /* Interrupt Register */
 
#define MREGS_IMASK   0x09UL /* Interrupt Mask */
 
#define MREGS_POLL   0x0aUL /* POLL Register */
 
#define MREGS_BCONFIG   0x0bUL /* BIU Config */
 
#define MREGS_FCONFIG   0x0cUL /* FIFO Config */
 
#define MREGS_MCONFIG   0x0dUL /* MAC Config */
 
#define MREGS_PLSCONFIG   0x0eUL /* PLS Config */
 
#define MREGS_PHYCONFIG   0x0fUL /* PHY Config */
 
#define MREGS_CHIPID1   0x10UL /* Chip-ID, low bits */
 
#define MREGS_CHIPID2   0x11UL /* Chip-ID, high bits */
 
#define MREGS_IACONFIG   0x12UL /* Internal Address Config */
 
#define MREGS_FILTER   0x14UL /* Logical Address Filter */
 
#define MREGS_ETHADDR   0x15UL /* Our Ethernet Address */
 
#define MREGS_MPCNT   0x18UL /* Missed Packet Count */
 
#define MREGS_RPCNT   0x1aUL /* Runt Packet Count */
 
#define MREGS_RCCNT   0x1bUL /* RX Collision Count */
 
#define MREGS_UTEST   0x1dUL /* User Test */
 
#define MREGS_RTEST1   0x1eUL /* Reserved Test 1 */
 
#define MREGS_RTEST2   0x1fUL /* Reserved Test 2 */
 
#define MREGS_REG_SIZE   0x20UL
 
#define MREGS_TXFCNTL_DRETRY   0x80 /* Retry disable */
 
#define MREGS_TXFCNTL_DFCS   0x08 /* Disable TX FCS */
 
#define MREGS_TXFCNTL_AUTOPAD   0x01 /* TX auto pad */
 
#define MREGS_TXFSTAT_VALID   0x80 /* TX valid */
 
#define MREGS_TXFSTAT_UNDERFLOW   0x40 /* TX underflow */
 
#define MREGS_TXFSTAT_LCOLL   0x20 /* TX late collision */
 
#define MREGS_TXFSTAT_MRETRY   0x10 /* TX > 1 retries */
 
#define MREGS_TXFSTAT_ORETRY   0x08 /* TX 1 retry */
 
#define MREGS_TXFSTAT_PDEFER   0x04 /* TX pkt deferred */
 
#define MREGS_TXFSTAT_CLOSS   0x02 /* TX carrier lost */
 
#define MREGS_TXFSTAT_RERROR   0x01 /* TX retry error */
 
#define MREGS_TXRCNT_EDEFER   0x80 /* TX Excess defers */
 
#define MREGS_TXRCNT_CMASK   0x0f /* TX retry count */
 
#define MREGS_RXFCNTL_LOWLAT   0x08 /* RX low latency */
 
#define MREGS_RXFCNTL_AREJECT   0x04 /* RX addr match rej */
 
#define MREGS_RXFCNTL_AUTOSTRIP   0x01 /* RX auto strip */
 
#define MREGS_RXFSTAT_OVERFLOW   0x80 /* RX overflow */
 
#define MREGS_RXFSTAT_LCOLL   0x40 /* RX late collision */
 
#define MREGS_RXFSTAT_FERROR   0x20 /* RX framing error */
 
#define MREGS_RXFSTAT_FCSERROR   0x10 /* RX FCS error */
 
#define MREGS_RXFSTAT_RBCNT   0x0f /* RX msg byte count */
 
#define MREGS_FFCNT_RX   0xf0 /* RX FIFO frame cnt */
 
#define MREGS_FFCNT_TX   0x0f /* TX FIFO frame cnt */
 
#define MREGS_IREG_JABBER   0x80 /* IRQ Jabber error */
 
#define MREGS_IREG_BABBLE   0x40 /* IRQ Babble error */
 
#define MREGS_IREG_COLL   0x20 /* IRQ Collision error */
 
#define MREGS_IREG_RCCO   0x10 /* IRQ Collision cnt overflow */
 
#define MREGS_IREG_RPKTCO   0x08 /* IRQ Runt packet count overflow */
 
#define MREGS_IREG_MPKTCO   0x04 /* IRQ missed packet cnt overflow */
 
#define MREGS_IREG_RXIRQ   0x02 /* IRQ RX'd a packet */
 
#define MREGS_IREG_TXIRQ   0x01 /* IRQ TX'd a packet */
 
#define MREGS_IMASK_BABBLE   0x40 /* IMASK Babble errors */
 
#define MREGS_IMASK_COLL   0x20 /* IMASK Collision errors */
 
#define MREGS_IMASK_MPKTCO   0x04 /* IMASK Missed pkt cnt overflow */
 
#define MREGS_IMASK_RXIRQ   0x02 /* IMASK RX interrupts */
 
#define MREGS_IMASK_TXIRQ   0x01 /* IMASK TX interrupts */
 
#define MREGS_POLL_TXVALID   0x80 /* TX is valid */
 
#define MREGS_POLL_TDTR   0x40 /* TX data transfer request */
 
#define MREGS_POLL_RDTR   0x20 /* RX data transfer request */
 
#define MREGS_BCONFIG_BSWAP   0x40 /* Byte Swap */
 
#define MREGS_BCONFIG_4TS   0x00 /* 4byte transmit start point */
 
#define MREGS_BCONFIG_16TS   0x10 /* 16byte transmit start point */
 
#define MREGS_BCONFIG_64TS   0x20 /* 64byte transmit start point */
 
#define MREGS_BCONFIG_112TS   0x30 /* 112byte transmit start point */
 
#define MREGS_BCONFIG_RESET   0x01 /* SW-Reset the MACE */
 
#define MREGS_FCONFIG_TXF8   0x00 /* TX fifo 8 write cycles */
 
#define MREGS_FCONFIG_TXF32   0x80 /* TX fifo 32 write cycles */
 
#define MREGS_FCONFIG_TXF16   0x40 /* TX fifo 16 write cycles */
 
#define MREGS_FCONFIG_RXF64   0x20 /* RX fifo 64 write cycles */
 
#define MREGS_FCONFIG_RXF32   0x10 /* RX fifo 32 write cycles */
 
#define MREGS_FCONFIG_RXF16   0x00 /* RX fifo 16 write cycles */
 
#define MREGS_FCONFIG_TFWU   0x08 /* TX fifo watermark update */
 
#define MREGS_FCONFIG_RFWU   0x04 /* RX fifo watermark update */
 
#define MREGS_FCONFIG_TBENAB   0x02 /* TX burst enable */
 
#define MREGS_FCONFIG_RBENAB   0x01 /* RX burst enable */
 
#define MREGS_MCONFIG_PROMISC   0x80 /* Promiscuous mode enable */
 
#define MREGS_MCONFIG_TPDDISAB   0x40 /* TX 2part deferral enable */
 
#define MREGS_MCONFIG_MBAENAB   0x20 /* Modified backoff enable */
 
#define MREGS_MCONFIG_RPADISAB   0x08 /* RX physical addr disable */
 
#define MREGS_MCONFIG_RBDISAB   0x04 /* RX broadcast disable */
 
#define MREGS_MCONFIG_TXENAB   0x02 /* Enable transmitter */
 
#define MREGS_MCONFIG_RXENAB   0x01 /* Enable receiver */
 
#define MREGS_PLSCONFIG_TXMS   0x08 /* TX mode select */
 
#define MREGS_PLSCONFIG_GPSI   0x06 /* Use GPSI connector */
 
#define MREGS_PLSCONFIG_DAI   0x04 /* Use DAI connector */
 
#define MREGS_PLSCONFIG_TP   0x02 /* Use TwistedPair connector */
 
#define MREGS_PLSCONFIG_AUI   0x00 /* Use AUI connector */
 
#define MREGS_PLSCONFIG_IOENAB   0x01 /* PLS I/O enable */
 
#define MREGS_PHYCONFIG_LSTAT   0x80 /* Link status */
 
#define MREGS_PHYCONFIG_LTESTDIS   0x40 /* Disable link test logic */
 
#define MREGS_PHYCONFIG_RXPOLARITY   0x20 /* RX polarity */
 
#define MREGS_PHYCONFIG_APCDISAB   0x10 /* AutoPolarityCorrect disab */
 
#define MREGS_PHYCONFIG_LTENAB   0x08 /* Select low threshold */
 
#define MREGS_PHYCONFIG_AUTO   0x04 /* Connector port auto-sel */
 
#define MREGS_PHYCONFIG_RWU   0x02 /* Remote WakeUp */
 
#define MREGS_PHYCONFIG_AW   0x01 /* Auto Wakeup */
 
#define MREGS_IACONFIG_ACHNGE   0x80 /* Do address change */
 
#define MREGS_IACONFIG_PARESET   0x04 /* Physical address reset */
 
#define MREGS_IACONFIG_LARESET   0x02 /* Logical address reset */
 
#define MREGS_UTEST_RTRENAB   0x80 /* Enable resv test register */
 
#define MREGS_UTEST_RTRDISAB   0x40 /* Disab resv test register */
 
#define MREGS_UTEST_RPACCEPT   0x20 /* Accept runt packets */
 
#define MREGS_UTEST_FCOLL   0x10 /* Force collision status */
 
#define MREGS_UTEST_FCSENAB   0x08 /* Enable FCS on RX */
 
#define MREGS_UTEST_INTLOOPM   0x06 /* Intern lpback w/MENDEC */
 
#define MREGS_UTEST_INTLOOP   0x04 /* Intern lpback */
 
#define MREGS_UTEST_EXTLOOP   0x02 /* Extern lpback */
 
#define MREGS_UTEST_NOLOOP   0x00 /* No loopback */
 
#define RXD_OWN   0x80000000 /* Ownership. */
 
#define RXD_UPDATE   0x10000000 /* Being Updated? */
 
#define RXD_LENGTH   0x000007ff /* Packet Length. */
 
#define TXD_OWN   0x80000000 /* Ownership. */
 
#define TXD_SOP   0x40000000 /* Start Of Packet */
 
#define TXD_EOP   0x20000000 /* End Of Packet */
 
#define TXD_UPDATE   0x10000000 /* Being Updated? */
 
#define TXD_LENGTH   0x000007ff /* Packet Length. */
 
#define TX_RING_MAXSIZE   256
 
#define RX_RING_MAXSIZE   256
 
#define TX_RING_SIZE   16
 
#define RX_RING_SIZE   16
 
#define NEXT_RX(num)   (((num) + 1) & (RX_RING_MAXSIZE - 1))
 
#define NEXT_TX(num)   (((num) + 1) & (TX_RING_MAXSIZE - 1))
 
#define PREV_RX(num)   (((num) - 1) & (RX_RING_MAXSIZE - 1))
 
#define PREV_TX(num)   (((num) - 1) & (TX_RING_MAXSIZE - 1))
 
#define TX_BUFFS_AVAIL(qp)
 
#define qib_offset(mem, elem)   ((__u32)((unsigned long)(&(((struct qe_init_block *)0)->mem[elem]))))
 
#define PKT_BUF_SZ   1664
 
#define RXD_PKT_SZ   1664
 
#define qebuf_offset(mem, elem)   ((__u32)((unsigned long)(&(((struct sunqe_buffers *)0)->mem[elem][0]))))
 

Macro Definition Documentation

#define CREG_CCNT   0x30UL /* Collision Counter */

Definition at line 57 of file sunqe.h.

#define CREG_CTRL   0x00UL /* Control */

Definition at line 45 of file sunqe.h.

#define CREG_CTRL_RESET   0x00000002 /* Reset this qe channel */

Definition at line 62 of file sunqe.h.

#define CREG_CTRL_RXOFF   0x00000004 /* Disable this qe's receiver*/

Definition at line 61 of file sunqe.h.

#define CREG_CTRL_TWAKEUP   0x00000001 /* Transmitter Wakeup, 'go'. */

Definition at line 63 of file sunqe.h.

#define CREG_MMASK   0x1cUL /* MACE Error Interrupt Mask */

Definition at line 52 of file sunqe.h.

#define CREG_MMASK_BABBLE   0x00400000 /* Babble error */

Definition at line 118 of file sunqe.h.

#define CREG_MMASK_CLOSS   0x08000000 /* Carrier loss */

Definition at line 113 of file sunqe.h.

#define CREG_MMASK_EDEFER   0x10000000 /* Excess defer */

Definition at line 112 of file sunqe.h.

#define CREG_MMASK_ERETRY   0x04000000 /* Excess retry */

Definition at line 114 of file sunqe.h.

#define CREG_MMASK_JABBER   0x00800000 /* Jabber error */

Definition at line 117 of file sunqe.h.

#define CREG_MMASK_LCOLL   0x02000000 /* Late collision error */

Definition at line 115 of file sunqe.h.

#define CREG_MMASK_MPKT   0x00000100 /* Missed pkt overflow */

Definition at line 122 of file sunqe.h.

#define CREG_MMASK_OFLOW   0x00000800 /* Overflow */

Definition at line 119 of file sunqe.h.

#define CREG_MMASK_RPKT   0x00000200 /* Runt pkt overflow */

Definition at line 121 of file sunqe.h.

#define CREG_MMASK_RXCOLL   0x00000400 /* RX Coll-Cntr overflow */

Definition at line 120 of file sunqe.h.

#define CREG_MMASK_UFLOW   0x01000000 /* Underflow */

Definition at line 116 of file sunqe.h.

#define CREG_PIPG   0x34UL /* Inter-Frame Gap */

Definition at line 58 of file sunqe.h.

#define CREG_PIPG_MMODE   0x00000010 /* Manual Mode */

Definition at line 125 of file sunqe.h.

#define CREG_PIPG_TENAB   0x00000020 /* Enable Throttle */

Definition at line 124 of file sunqe.h.

#define CREG_PIPG_WMASK   0x0000000f /* SBUS Wait Mask */

Definition at line 126 of file sunqe.h.

#define CREG_QMASK   0x18UL /* QEC Error Interrupt Mask */

Definition at line 51 of file sunqe.h.

#define CREG_QMASK_COFLOW   0x00100000 /* CollCntr overflow */

Definition at line 101 of file sunqe.h.

#define CREG_QMASK_RXBERROR   0x00000008 /* RX buffer error */

Definition at line 107 of file sunqe.h.

#define CREG_QMASK_RXDROP   0x00000010 /* RX drop */

Definition at line 106 of file sunqe.h.

#define CREG_QMASK_RXLEERR   0x00000004 /* RX late error */

Definition at line 108 of file sunqe.h.

#define CREG_QMASK_RXPERR   0x00000002 /* RX parity error */

Definition at line 109 of file sunqe.h.

#define CREG_QMASK_RXSERR   0x00000001 /* RX sbus error ack */

Definition at line 110 of file sunqe.h.

#define CREG_QMASK_TXDERROR   0x00080000 /* TXD error */

Definition at line 102 of file sunqe.h.

#define CREG_QMASK_TXLERR   0x00040000 /* TX late error */

Definition at line 103 of file sunqe.h.

#define CREG_QMASK_TXPERR   0x00020000 /* TX parity error */

Definition at line 104 of file sunqe.h.

#define CREG_QMASK_TXSERR   0x00010000 /* TX sbus error ack */

Definition at line 105 of file sunqe.h.

#define CREG_REG_SIZE   0x38UL

Definition at line 59 of file sunqe.h.

#define CREG_RIMASK   0x10UL /* RX Interrupt Mask */

Definition at line 49 of file sunqe.h.

#define CREG_RXDS   0x08UL /* RX descriptor ring ptr */

Definition at line 47 of file sunqe.h.

#define CREG_RXRBUFPTR   0x24UL /* Local memory rx read ptr */

Definition at line 54 of file sunqe.h.

#define CREG_RXWBUFPTR   0x20UL /* Local memory rx write ptr */

Definition at line 53 of file sunqe.h.

#define CREG_STAT   0x04UL /* Status */

Definition at line 46 of file sunqe.h.

#define CREG_STAT_BERROR   0x00400000 /* Babble Error */

Definition at line 71 of file sunqe.h.

#define CREG_STAT_CCOFLOW   0x00100000 /* TX Coll-counter Overflow */

Definition at line 73 of file sunqe.h.

#define CREG_STAT_CECOFLOW   0x00000040 /* CRC Error-counter Overflow*/

Definition at line 84 of file sunqe.h.

#define CREG_STAT_CLOSS   0x08000000 /* Carrier Loss */

Definition at line 66 of file sunqe.h.

#define CREG_STAT_EDEFER   0x10000000 /* Excessive Defers */

Definition at line 65 of file sunqe.h.

#define CREG_STAT_ERETRIES   0x04000000 /* More than 16 retries */

Definition at line 67 of file sunqe.h.

#define CREG_STAT_ERRORS
Value:

Definition at line 92 of file sunqe.h.

#define CREG_STAT_FCOFLOW   0x00000080 /* Frame Counter Overflow */

Definition at line 83 of file sunqe.h.

#define CREG_STAT_FUFLOW   0x01000000 /* FIFO Underflow */

Definition at line 69 of file sunqe.h.

#define CREG_STAT_JERROR   0x00800000 /* Jabber Error */

Definition at line 70 of file sunqe.h.

#define CREG_STAT_LCOLL   0x02000000 /* Late TX Collision */

Definition at line 68 of file sunqe.h.

#define CREG_STAT_MCOFLOW   0x00000400 /* Missed Counter Overflow */

Definition at line 80 of file sunqe.h.

#define CREG_STAT_RCCOFLOW   0x00001000 /* RX Coll-counter Overflow */

Definition at line 78 of file sunqe.h.

#define CREG_STAT_RLCOLL   0x00000100 /* RX Late Collision */

Definition at line 82 of file sunqe.h.

#define CREG_STAT_RUOFLOW   0x00000800 /* Runt Counter Overflow */

Definition at line 79 of file sunqe.h.

#define CREG_STAT_RXDROP   0x00000010 /* Dropped a RX'd packet */

Definition at line 86 of file sunqe.h.

#define CREG_STAT_RXFOFLOW   0x00000200 /* RX FIFO Overflow */

Definition at line 81 of file sunqe.h.

#define CREG_STAT_RXIRQ   0x00000020 /* Receive Interrupt */

Definition at line 85 of file sunqe.h.

#define CREG_STAT_RXLERR   0x00000004 /* Receive Late Error */

Definition at line 88 of file sunqe.h.

#define CREG_STAT_RXPERR   0x00000002 /* Receive Parity Error */

Definition at line 89 of file sunqe.h.

#define CREG_STAT_RXSERR   0x00000001 /* Receive SBUS Error ACK */

Definition at line 90 of file sunqe.h.

#define CREG_STAT_RXSMALL   0x00000008 /* Receive buffer too small */

Definition at line 87 of file sunqe.h.

#define CREG_STAT_TXDERROR   0x00080000 /* TX Descriptor is bogus */

Definition at line 74 of file sunqe.h.

#define CREG_STAT_TXIRQ   0x00200000 /* Transmit Interrupt */

Definition at line 72 of file sunqe.h.

#define CREG_STAT_TXLERR   0x00040000 /* Late Transmit Error */

Definition at line 75 of file sunqe.h.

#define CREG_STAT_TXPERR   0x00020000 /* Transmit Parity Error */

Definition at line 76 of file sunqe.h.

#define CREG_STAT_TXSERR   0x00010000 /* Transmit SBUS error ack */

Definition at line 77 of file sunqe.h.

#define CREG_TIMASK   0x14UL /* TX Interrupt Mask */

Definition at line 50 of file sunqe.h.

#define CREG_TXDS   0x0cUL /* TX descriptor ring ptr */

Definition at line 48 of file sunqe.h.

#define CREG_TXRBUFPTR   0x2cUL /* Local memory tx read ptr */

Definition at line 56 of file sunqe.h.

#define CREG_TXWBUFPTR   0x28UL /* Local memory tx write ptr */

Definition at line 55 of file sunqe.h.

#define GLOB_CTRL   0x00UL /* Control */

Definition at line 11 of file sunqe.h.

#define GLOB_CTRL_ACNTRL   0x00000018 /* SBUS arbitration control */

Definition at line 22 of file sunqe.h.

#define GLOB_CTRL_B16   0x00000000 /* 16 byte dvma bursts */

Definition at line 25 of file sunqe.h.

#define GLOB_CTRL_B32   0x00000002 /* 32 byte dvma bursts */

Definition at line 24 of file sunqe.h.

#define GLOB_CTRL_B64   0x00000004 /* 64 byte dvma bursts */

Definition at line 23 of file sunqe.h.

#define GLOB_CTRL_BMODE   0x10000000 /* BigMAC qec mode */

Definition at line 20 of file sunqe.h.

#define GLOB_CTRL_EPAR   0x00000020 /* Enable parity */

Definition at line 21 of file sunqe.h.

#define GLOB_CTRL_MMODE   0x40000000 /* MACE qec mode */

Definition at line 19 of file sunqe.h.

#define GLOB_CTRL_RESET   0x00000001 /* Reset the QEC */

Definition at line 26 of file sunqe.h.

#define GLOB_MSIZE   0x0cUL /* Local-memory Size */

Definition at line 14 of file sunqe.h.

#define GLOB_PSIZE   0x08UL /* Packet Size */

Definition at line 13 of file sunqe.h.

#define GLOB_PSIZE_2048   0x00 /* 2k packet size */

Definition at line 33 of file sunqe.h.

#define GLOB_PSIZE_4096   0x01 /* 4k packet size */

Definition at line 34 of file sunqe.h.

#define GLOB_PSIZE_6144   0x10 /* 6k packet size */

Definition at line 35 of file sunqe.h.

#define GLOB_PSIZE_8192   0x11 /* 8k packet size */

Definition at line 36 of file sunqe.h.

#define GLOB_REG_SIZE   0x18UL

Definition at line 17 of file sunqe.h.

#define GLOB_RSIZE   0x10UL /* Receive partition size */

Definition at line 15 of file sunqe.h.

#define GLOB_STAT   0x04UL /* Status */

Definition at line 12 of file sunqe.h.

#define GLOB_STAT_BM   0x00000002 /* BigMAC Global IRQ */

Definition at line 30 of file sunqe.h.

#define GLOB_STAT_ER   0x00000001 /* BigMAC Error IRQ */

Definition at line 31 of file sunqe.h.

#define GLOB_STAT_PER_QE (   status,
  channel 
)    (((status) >> ((channel) * 4)) & 0xf)

Definition at line 42 of file sunqe.h.

#define GLOB_STAT_RX   0x00000004 /* BigMAC Receive IRQ */

Definition at line 29 of file sunqe.h.

#define GLOB_STAT_TX   0x00000008 /* BigMAC Transmit IRQ */

Definition at line 28 of file sunqe.h.

#define GLOB_TSIZE   0x14UL /* Transmit partition size */

Definition at line 16 of file sunqe.h.

#define MREGS_BCONFIG   0x0bUL /* BIU Config */

Definition at line 140 of file sunqe.h.

#define MREGS_BCONFIG_112TS   0x30 /* 112byte transmit start point */

Definition at line 215 of file sunqe.h.

#define MREGS_BCONFIG_16TS   0x10 /* 16byte transmit start point */

Definition at line 213 of file sunqe.h.

#define MREGS_BCONFIG_4TS   0x00 /* 4byte transmit start point */

Definition at line 212 of file sunqe.h.

#define MREGS_BCONFIG_64TS   0x20 /* 64byte transmit start point */

Definition at line 214 of file sunqe.h.

#define MREGS_BCONFIG_BSWAP   0x40 /* Byte Swap */

Definition at line 211 of file sunqe.h.

#define MREGS_BCONFIG_RESET   0x01 /* SW-Reset the MACE */

Definition at line 216 of file sunqe.h.

#define MREGS_CHIPID1   0x10UL /* Chip-ID, low bits */

Definition at line 145 of file sunqe.h.

#define MREGS_CHIPID2   0x11UL /* Chip-ID, high bits */

Definition at line 146 of file sunqe.h.

#define MREGS_ETHADDR   0x15UL /* Our Ethernet Address */

Definition at line 150 of file sunqe.h.

#define MREGS_FCONFIG   0x0cUL /* FIFO Config */

Definition at line 141 of file sunqe.h.

#define MREGS_FCONFIG_RBENAB   0x01 /* RX burst enable */

Definition at line 227 of file sunqe.h.

#define MREGS_FCONFIG_RFWU   0x04 /* RX fifo watermark update */

Definition at line 225 of file sunqe.h.

#define MREGS_FCONFIG_RXF16   0x00 /* RX fifo 16 write cycles */

Definition at line 223 of file sunqe.h.

#define MREGS_FCONFIG_RXF32   0x10 /* RX fifo 32 write cycles */

Definition at line 222 of file sunqe.h.

#define MREGS_FCONFIG_RXF64   0x20 /* RX fifo 64 write cycles */

Definition at line 221 of file sunqe.h.

#define MREGS_FCONFIG_TBENAB   0x02 /* TX burst enable */

Definition at line 226 of file sunqe.h.

#define MREGS_FCONFIG_TFWU   0x08 /* TX fifo watermark update */

Definition at line 224 of file sunqe.h.

#define MREGS_FCONFIG_TXF16   0x40 /* TX fifo 16 write cycles */

Definition at line 220 of file sunqe.h.

#define MREGS_FCONFIG_TXF32   0x80 /* TX fifo 32 write cycles */

Definition at line 219 of file sunqe.h.

#define MREGS_FCONFIG_TXF8   0x00 /* TX fifo 8 write cycles */

Definition at line 218 of file sunqe.h.

#define MREGS_FFCNT   0x07UL /* FIFO Frame Count */

Definition at line 136 of file sunqe.h.

#define MREGS_FFCNT_RX   0xf0 /* RX FIFO frame cnt */

Definition at line 189 of file sunqe.h.

#define MREGS_FFCNT_TX   0x0f /* TX FIFO frame cnt */

Definition at line 190 of file sunqe.h.

#define MREGS_FILTER   0x14UL /* Logical Address Filter */

Definition at line 149 of file sunqe.h.

#define MREGS_IACONFIG   0x12UL /* Internal Address Config */

Definition at line 147 of file sunqe.h.

#define MREGS_IACONFIG_ACHNGE   0x80 /* Do address change */

Definition at line 253 of file sunqe.h.

#define MREGS_IACONFIG_LARESET   0x02 /* Logical address reset */

Definition at line 255 of file sunqe.h.

#define MREGS_IACONFIG_PARESET   0x04 /* Physical address reset */

Definition at line 254 of file sunqe.h.

#define MREGS_IMASK   0x09UL /* Interrupt Mask */

Definition at line 138 of file sunqe.h.

#define MREGS_IMASK_BABBLE   0x40 /* IMASK Babble errors */

Definition at line 201 of file sunqe.h.

#define MREGS_IMASK_COLL   0x20 /* IMASK Collision errors */

Definition at line 202 of file sunqe.h.

#define MREGS_IMASK_MPKTCO   0x04 /* IMASK Missed pkt cnt overflow */

Definition at line 203 of file sunqe.h.

#define MREGS_IMASK_RXIRQ   0x02 /* IMASK RX interrupts */

Definition at line 204 of file sunqe.h.

#define MREGS_IMASK_TXIRQ   0x01 /* IMASK TX interrupts */

Definition at line 205 of file sunqe.h.

#define MREGS_IREG   0x08UL /* Interrupt Register */

Definition at line 137 of file sunqe.h.

#define MREGS_IREG_BABBLE   0x40 /* IRQ Babble error */

Definition at line 193 of file sunqe.h.

#define MREGS_IREG_COLL   0x20 /* IRQ Collision error */

Definition at line 194 of file sunqe.h.

#define MREGS_IREG_JABBER   0x80 /* IRQ Jabber error */

Definition at line 192 of file sunqe.h.

#define MREGS_IREG_MPKTCO   0x04 /* IRQ missed packet cnt overflow */

Definition at line 197 of file sunqe.h.

#define MREGS_IREG_RCCO   0x10 /* IRQ Collision cnt overflow */

Definition at line 195 of file sunqe.h.

#define MREGS_IREG_RPKTCO   0x08 /* IRQ Runt packet count overflow */

Definition at line 196 of file sunqe.h.

#define MREGS_IREG_RXIRQ   0x02 /* IRQ RX'd a packet */

Definition at line 198 of file sunqe.h.

#define MREGS_IREG_TXIRQ   0x01 /* IRQ TX'd a packet */

Definition at line 199 of file sunqe.h.

#define MREGS_MCONFIG   0x0dUL /* MAC Config */

Definition at line 142 of file sunqe.h.

#define MREGS_MCONFIG_MBAENAB   0x20 /* Modified backoff enable */

Definition at line 231 of file sunqe.h.

#define MREGS_MCONFIG_PROMISC   0x80 /* Promiscuous mode enable */

Definition at line 229 of file sunqe.h.

#define MREGS_MCONFIG_RBDISAB   0x04 /* RX broadcast disable */

Definition at line 233 of file sunqe.h.

#define MREGS_MCONFIG_RPADISAB   0x08 /* RX physical addr disable */

Definition at line 232 of file sunqe.h.

#define MREGS_MCONFIG_RXENAB   0x01 /* Enable receiver */

Definition at line 235 of file sunqe.h.

#define MREGS_MCONFIG_TPDDISAB   0x40 /* TX 2part deferral enable */

Definition at line 230 of file sunqe.h.

#define MREGS_MCONFIG_TXENAB   0x02 /* Enable transmitter */

Definition at line 234 of file sunqe.h.

#define MREGS_MPCNT   0x18UL /* Missed Packet Count */

Definition at line 153 of file sunqe.h.

#define MREGS_PHYCONFIG   0x0fUL /* PHY Config */

Definition at line 144 of file sunqe.h.

#define MREGS_PHYCONFIG_APCDISAB   0x10 /* AutoPolarityCorrect disab */

Definition at line 247 of file sunqe.h.

#define MREGS_PHYCONFIG_AUTO   0x04 /* Connector port auto-sel */

Definition at line 249 of file sunqe.h.

#define MREGS_PHYCONFIG_AW   0x01 /* Auto Wakeup */

Definition at line 251 of file sunqe.h.

#define MREGS_PHYCONFIG_LSTAT   0x80 /* Link status */

Definition at line 244 of file sunqe.h.

#define MREGS_PHYCONFIG_LTENAB   0x08 /* Select low threshold */

Definition at line 248 of file sunqe.h.

#define MREGS_PHYCONFIG_LTESTDIS   0x40 /* Disable link test logic */

Definition at line 245 of file sunqe.h.

#define MREGS_PHYCONFIG_RWU   0x02 /* Remote WakeUp */

Definition at line 250 of file sunqe.h.

#define MREGS_PHYCONFIG_RXPOLARITY   0x20 /* RX polarity */

Definition at line 246 of file sunqe.h.

#define MREGS_PLSCONFIG   0x0eUL /* PLS Config */

Definition at line 143 of file sunqe.h.

#define MREGS_PLSCONFIG_AUI   0x00 /* Use AUI connector */

Definition at line 241 of file sunqe.h.

#define MREGS_PLSCONFIG_DAI   0x04 /* Use DAI connector */

Definition at line 239 of file sunqe.h.

#define MREGS_PLSCONFIG_GPSI   0x06 /* Use GPSI connector */

Definition at line 238 of file sunqe.h.

#define MREGS_PLSCONFIG_IOENAB   0x01 /* PLS I/O enable */

Definition at line 242 of file sunqe.h.

#define MREGS_PLSCONFIG_TP   0x02 /* Use TwistedPair connector */

Definition at line 240 of file sunqe.h.

#define MREGS_PLSCONFIG_TXMS   0x08 /* TX mode select */

Definition at line 237 of file sunqe.h.

#define MREGS_POLL   0x0aUL /* POLL Register */

Definition at line 139 of file sunqe.h.

#define MREGS_POLL_RDTR   0x20 /* RX data transfer request */

Definition at line 209 of file sunqe.h.

#define MREGS_POLL_TDTR   0x40 /* TX data transfer request */

Definition at line 208 of file sunqe.h.

#define MREGS_POLL_TXVALID   0x80 /* TX is valid */

Definition at line 207 of file sunqe.h.

#define MREGS_RCCNT   0x1bUL /* RX Collision Count */

Definition at line 156 of file sunqe.h.

#define MREGS_REG_SIZE   0x20UL

Definition at line 161 of file sunqe.h.

#define MREGS_RPCNT   0x1aUL /* Runt Packet Count */

Definition at line 155 of file sunqe.h.

#define MREGS_RTEST1   0x1eUL /* Reserved Test 1 */

Definition at line 159 of file sunqe.h.

#define MREGS_RTEST2   0x1fUL /* Reserved Test 2 */

Definition at line 160 of file sunqe.h.

#define MREGS_RXFCNTL   0x05UL /* Receive Frame Control */

Definition at line 134 of file sunqe.h.

#define MREGS_RXFCNTL_AREJECT   0x04 /* RX addr match rej */

Definition at line 180 of file sunqe.h.

#define MREGS_RXFCNTL_AUTOSTRIP   0x01 /* RX auto strip */

Definition at line 181 of file sunqe.h.

#define MREGS_RXFCNTL_LOWLAT   0x08 /* RX low latency */

Definition at line 179 of file sunqe.h.

#define MREGS_RXFIFO   0x00UL /* Receive FIFO */

Definition at line 129 of file sunqe.h.

#define MREGS_RXFSTAT   0x06UL /* Receive Frame Status */

Definition at line 135 of file sunqe.h.

#define MREGS_RXFSTAT_FCSERROR   0x10 /* RX FCS error */

Definition at line 186 of file sunqe.h.

#define MREGS_RXFSTAT_FERROR   0x20 /* RX framing error */

Definition at line 185 of file sunqe.h.

#define MREGS_RXFSTAT_LCOLL   0x40 /* RX late collision */

Definition at line 184 of file sunqe.h.

#define MREGS_RXFSTAT_OVERFLOW   0x80 /* RX overflow */

Definition at line 183 of file sunqe.h.

#define MREGS_RXFSTAT_RBCNT   0x0f /* RX msg byte count */

Definition at line 187 of file sunqe.h.

#define MREGS_TXFCNTL   0x02UL /* Transmit Frame Control */

Definition at line 131 of file sunqe.h.

#define MREGS_TXFCNTL_AUTOPAD   0x01 /* TX auto pad */

Definition at line 165 of file sunqe.h.

#define MREGS_TXFCNTL_DFCS   0x08 /* Disable TX FCS */

Definition at line 164 of file sunqe.h.

#define MREGS_TXFCNTL_DRETRY   0x80 /* Retry disable */

Definition at line 163 of file sunqe.h.

#define MREGS_TXFIFO   0x01UL /* Transmit FIFO */

Definition at line 130 of file sunqe.h.

#define MREGS_TXFSTAT   0x03UL /* Transmit Frame Status */

Definition at line 132 of file sunqe.h.

#define MREGS_TXFSTAT_CLOSS   0x02 /* TX carrier lost */

Definition at line 173 of file sunqe.h.

#define MREGS_TXFSTAT_LCOLL   0x20 /* TX late collision */

Definition at line 169 of file sunqe.h.

#define MREGS_TXFSTAT_MRETRY   0x10 /* TX > 1 retries */

Definition at line 170 of file sunqe.h.

#define MREGS_TXFSTAT_ORETRY   0x08 /* TX 1 retry */

Definition at line 171 of file sunqe.h.

#define MREGS_TXFSTAT_PDEFER   0x04 /* TX pkt deferred */

Definition at line 172 of file sunqe.h.

#define MREGS_TXFSTAT_RERROR   0x01 /* TX retry error */

Definition at line 174 of file sunqe.h.

#define MREGS_TXFSTAT_UNDERFLOW   0x40 /* TX underflow */

Definition at line 168 of file sunqe.h.

#define MREGS_TXFSTAT_VALID   0x80 /* TX valid */

Definition at line 167 of file sunqe.h.

#define MREGS_TXRCNT   0x04UL /* Transmit Retry Count */

Definition at line 133 of file sunqe.h.

#define MREGS_TXRCNT_CMASK   0x0f /* TX retry count */

Definition at line 177 of file sunqe.h.

#define MREGS_TXRCNT_EDEFER   0x80 /* TX Excess defers */

Definition at line 176 of file sunqe.h.

#define MREGS_UTEST   0x1dUL /* User Test */

Definition at line 158 of file sunqe.h.

#define MREGS_UTEST_EXTLOOP   0x02 /* Extern lpback */

Definition at line 264 of file sunqe.h.

#define MREGS_UTEST_FCOLL   0x10 /* Force collision status */

Definition at line 260 of file sunqe.h.

#define MREGS_UTEST_FCSENAB   0x08 /* Enable FCS on RX */

Definition at line 261 of file sunqe.h.

#define MREGS_UTEST_INTLOOP   0x04 /* Intern lpback */

Definition at line 263 of file sunqe.h.

#define MREGS_UTEST_INTLOOPM   0x06 /* Intern lpback w/MENDEC */

Definition at line 262 of file sunqe.h.

#define MREGS_UTEST_NOLOOP   0x00 /* No loopback */

Definition at line 265 of file sunqe.h.

#define MREGS_UTEST_RPACCEPT   0x20 /* Accept runt packets */

Definition at line 259 of file sunqe.h.

#define MREGS_UTEST_RTRDISAB   0x40 /* Disab resv test register */

Definition at line 258 of file sunqe.h.

#define MREGS_UTEST_RTRENAB   0x80 /* Enable resv test register */

Definition at line 257 of file sunqe.h.

#define NEXT_RX (   num)    (((num) + 1) & (RX_RING_MAXSIZE - 1))

Definition at line 293 of file sunqe.h.

#define NEXT_TX (   num)    (((num) + 1) & (TX_RING_MAXSIZE - 1))

Definition at line 294 of file sunqe.h.

#define PKT_BUF_SZ   1664

Definition at line 321 of file sunqe.h.

#define PREV_RX (   num)    (((num) - 1) & (RX_RING_MAXSIZE - 1))

Definition at line 295 of file sunqe.h.

#define PREV_TX (   num)    (((num) - 1) & (TX_RING_MAXSIZE - 1))

Definition at line 296 of file sunqe.h.

#define qebuf_offset (   mem,
  elem 
)    ((__u32)((unsigned long)(&(((struct sunqe_buffers *)0)->mem[elem][0]))))

Definition at line 330 of file sunqe.h.

#define qib_offset (   mem,
  elem 
)    ((__u32)((unsigned long)(&(((struct qe_init_block *)0)->mem[elem]))))

Definition at line 308 of file sunqe.h.

#define RX_RING_MAXSIZE   256

Definition at line 288 of file sunqe.h.

#define RX_RING_SIZE   16

Definition at line 291 of file sunqe.h.

#define RXD_LENGTH   0x000007ff /* Packet Length. */

Definition at line 274 of file sunqe.h.

#define RXD_OWN   0x80000000 /* Ownership. */

Definition at line 272 of file sunqe.h.

#define RXD_PKT_SZ   1664

Definition at line 322 of file sunqe.h.

#define RXD_UPDATE   0x10000000 /* Being Updated? */

Definition at line 273 of file sunqe.h.

#define TX_BUFFS_AVAIL (   qp)
Value:
(((qp)->tx_old <= (qp)->tx_new) ? \
(qp)->tx_old + (TX_RING_SIZE - 1) - (qp)->tx_new : \
(qp)->tx_old - (qp)->tx_new - 1)

Definition at line 298 of file sunqe.h.

#define TX_RING_MAXSIZE   256

Definition at line 287 of file sunqe.h.

#define TX_RING_SIZE   16

Definition at line 290 of file sunqe.h.

#define TXD_EOP   0x20000000 /* End Of Packet */

Definition at line 283 of file sunqe.h.

#define TXD_LENGTH   0x000007ff /* Packet Length. */

Definition at line 285 of file sunqe.h.

#define TXD_OWN   0x80000000 /* Ownership. */

Definition at line 281 of file sunqe.h.

#define TXD_SOP   0x40000000 /* Start Of Packet */

Definition at line 282 of file sunqe.h.

#define TXD_UPDATE   0x10000000 /* Being Updated? */

Definition at line 284 of file sunqe.h.