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

Go to the source code of this file.

Data Structures

struct  __attribute__
 
struct  __attribute__
 

Macros

#define TSI_WRITE(offset, val)   out_be32((data->regs + (offset)), val)
 
#define TSI_READ(offset)   in_be32((data->regs + (offset)))
 
#define TSI_WRITE_PHY(offset, val)   out_be32((data->phyregs + (offset)), val)
 
#define TSI_READ_PHY(offset)   in_be32((data->phyregs + (offset)))
 
#define TSI108_ETH_PORT_NUM   2
 
#define TSI108_PBM_PORT   2
 
#define TSI108_SDRAM_PORT   4
 
#define TSI108_MAC_CFG1   (0x000)
 
#define TSI108_MAC_CFG1_SOFTRST   (1 << 31)
 
#define TSI108_MAC_CFG1_LOOPBACK   (1 << 8)
 
#define TSI108_MAC_CFG1_RXEN   (1 << 2)
 
#define TSI108_MAC_CFG1_TXEN   (1 << 0)
 
#define TSI108_MAC_CFG2   (0x004)
 
#define TSI108_MAC_CFG2_DFLT_PREAMBLE   (7 << 12)
 
#define TSI108_MAC_CFG2_IFACE_MASK   (3 << 8)
 
#define TSI108_MAC_CFG2_NOGIG   (1 << 8)
 
#define TSI108_MAC_CFG2_GIG   (2 << 8)
 
#define TSI108_MAC_CFG2_PADCRC   (1 << 2)
 
#define TSI108_MAC_CFG2_FULLDUPLEX   (1 << 0)
 
#define TSI108_MAC_MII_MGMT_CFG   (0x020)
 
#define TSI108_MAC_MII_MGMT_CLK   (7 << 0)
 
#define TSI108_MAC_MII_MGMT_RST   (1 << 31)
 
#define TSI108_MAC_MII_CMD   (0x024)
 
#define TSI108_MAC_MII_CMD_READ   (1 << 0)
 
#define TSI108_MAC_MII_ADDR   (0x028)
 
#define TSI108_MAC_MII_ADDR_REG   0
 
#define TSI108_MAC_MII_ADDR_PHY   8
 
#define TSI108_MAC_MII_DATAOUT   (0x02c)
 
#define TSI108_MAC_MII_DATAIN   (0x030)
 
#define TSI108_MAC_MII_IND   (0x034)
 
#define TSI108_MAC_MII_IND_NOTVALID   (1 << 2)
 
#define TSI108_MAC_MII_IND_SCANNING   (1 << 1)
 
#define TSI108_MAC_MII_IND_BUSY   (1 << 0)
 
#define TSI108_MAC_IFCTRL   (0x038)
 
#define TSI108_MAC_IFCTRL_PHYMODE   (1 << 24)
 
#define TSI108_MAC_ADDR1   (0x040)
 
#define TSI108_MAC_ADDR2   (0x044)
 
#define TSI108_STAT_RXBYTES   (0x06c)
 
#define TSI108_STAT_RXBYTES_CARRY   (1 << 24)
 
#define TSI108_STAT_RXPKTS   (0x070)
 
#define TSI108_STAT_RXPKTS_CARRY   (1 << 18)
 
#define TSI108_STAT_RXFCS   (0x074)
 
#define TSI108_STAT_RXFCS_CARRY   (1 << 12)
 
#define TSI108_STAT_RXMCAST   (0x078)
 
#define TSI108_STAT_RXMCAST_CARRY   (1 << 18)
 
#define TSI108_STAT_RXALIGN   (0x08c)
 
#define TSI108_STAT_RXALIGN_CARRY   (1 << 12)
 
#define TSI108_STAT_RXLENGTH   (0x090)
 
#define TSI108_STAT_RXLENGTH_CARRY   (1 << 12)
 
#define TSI108_STAT_RXRUNT   (0x09c)
 
#define TSI108_STAT_RXRUNT_CARRY   (1 << 12)
 
#define TSI108_STAT_RXJUMBO   (0x0a0)
 
#define TSI108_STAT_RXJUMBO_CARRY   (1 << 12)
 
#define TSI108_STAT_RXFRAG   (0x0a4)
 
#define TSI108_STAT_RXFRAG_CARRY   (1 << 12)
 
#define TSI108_STAT_RXJABBER   (0x0a8)
 
#define TSI108_STAT_RXJABBER_CARRY   (1 << 12)
 
#define TSI108_STAT_RXDROP   (0x0ac)
 
#define TSI108_STAT_RXDROP_CARRY   (1 << 12)
 
#define TSI108_STAT_TXBYTES   (0x0b0)
 
#define TSI108_STAT_TXBYTES_CARRY   (1 << 24)
 
#define TSI108_STAT_TXPKTS   (0x0b4)
 
#define TSI108_STAT_TXPKTS_CARRY   (1 << 18)
 
#define TSI108_STAT_TXEXDEF   (0x0c8)
 
#define TSI108_STAT_TXEXDEF_CARRY   (1 << 12)
 
#define TSI108_STAT_TXEXCOL   (0x0d8)
 
#define TSI108_STAT_TXEXCOL_CARRY   (1 << 12)
 
#define TSI108_STAT_TXTCOL   (0x0dc)
 
#define TSI108_STAT_TXTCOL_CARRY   (1 << 13)
 
#define TSI108_STAT_TXPAUSEDROP   (0x0e4)
 
#define TSI108_STAT_TXPAUSEDROP_CARRY   (1 << 12)
 
#define TSI108_STAT_CARRY1   (0x100)
 
#define TSI108_STAT_CARRY1_RXBYTES   (1 << 16)
 
#define TSI108_STAT_CARRY1_RXPKTS   (1 << 15)
 
#define TSI108_STAT_CARRY1_RXFCS   (1 << 14)
 
#define TSI108_STAT_CARRY1_RXMCAST   (1 << 13)
 
#define TSI108_STAT_CARRY1_RXALIGN   (1 << 8)
 
#define TSI108_STAT_CARRY1_RXLENGTH   (1 << 7)
 
#define TSI108_STAT_CARRY1_RXRUNT   (1 << 4)
 
#define TSI108_STAT_CARRY1_RXJUMBO   (1 << 3)
 
#define TSI108_STAT_CARRY1_RXFRAG   (1 << 2)
 
#define TSI108_STAT_CARRY1_RXJABBER   (1 << 1)
 
#define TSI108_STAT_CARRY1_RXDROP   (1 << 0)
 
#define TSI108_STAT_CARRY2   (0x104)
 
#define TSI108_STAT_CARRY2_TXBYTES   (1 << 13)
 
#define TSI108_STAT_CARRY2_TXPKTS   (1 << 12)
 
#define TSI108_STAT_CARRY2_TXEXDEF   (1 << 7)
 
#define TSI108_STAT_CARRY2_TXEXCOL   (1 << 3)
 
#define TSI108_STAT_CARRY2_TXTCOL   (1 << 2)
 
#define TSI108_STAT_CARRY2_TXPAUSE   (1 << 0)
 
#define TSI108_STAT_CARRYMASK1   (0x108)
 
#define TSI108_STAT_CARRYMASK2   (0x10c)
 
#define TSI108_EC_PORTCTRL   (0x200)
 
#define TSI108_EC_PORTCTRL_STATRST   (1 << 31)
 
#define TSI108_EC_PORTCTRL_STATEN   (1 << 28)
 
#define TSI108_EC_PORTCTRL_NOGIG   (1 << 18)
 
#define TSI108_EC_PORTCTRL_HALFDUPLEX   (1 << 16)
 
#define TSI108_EC_INTSTAT   (0x204)
 
#define TSI108_EC_INTMASK   (0x208)
 
#define TSI108_INT_ANY   (1 << 31)
 
#define TSI108_INT_SFN   (1 << 30)
 
#define TSI108_INT_RXIDLE   (1 << 29)
 
#define TSI108_INT_RXABORT   (1 << 28)
 
#define TSI108_INT_RXERROR   (1 << 27)
 
#define TSI108_INT_RXOVERRUN   (1 << 26)
 
#define TSI108_INT_RXTHRESH   (1 << 25)
 
#define TSI108_INT_RXWAIT   (1 << 24)
 
#define TSI108_INT_RXQUEUE0   (1 << 16)
 
#define TSI108_INT_STATCARRY   (1 << 15)
 
#define TSI108_INT_TXIDLE   (1 << 13)
 
#define TSI108_INT_TXABORT   (1 << 12)
 
#define TSI108_INT_TXERROR   (1 << 11)
 
#define TSI108_INT_TXUNDERRUN   (1 << 10)
 
#define TSI108_INT_TXTHRESH   (1 << 9)
 
#define TSI108_INT_TXWAIT   (1 << 8)
 
#define TSI108_INT_TXQUEUE0   (1 << 0)
 
#define TSI108_EC_TXCFG   (0x220)
 
#define TSI108_EC_TXCFG_RST   (1 << 31)
 
#define TSI108_EC_TXCTRL   (0x224)
 
#define TSI108_EC_TXCTRL_IDLEINT   (1 << 31)
 
#define TSI108_EC_TXCTRL_ABORT   (1 << 30)
 
#define TSI108_EC_TXCTRL_GO   (1 << 15)
 
#define TSI108_EC_TXCTRL_QUEUE0   (1 << 0)
 
#define TSI108_EC_TXSTAT   (0x228)
 
#define TSI108_EC_TXSTAT_ACTIVE   (1 << 15)
 
#define TSI108_EC_TXSTAT_QUEUE0   (1 << 0)
 
#define TSI108_EC_TXESTAT   (0x22c)
 
#define TSI108_EC_TXESTAT_Q0_ERR   (1 << 24)
 
#define TSI108_EC_TXESTAT_Q0_DESCINT   (1 << 16)
 
#define TSI108_EC_TXESTAT_Q0_EOF   (1 << 8)
 
#define TSI108_EC_TXESTAT_Q0_EOQ   (1 << 0)
 
#define TSI108_EC_TXERR   (0x278)
 
#define TSI108_EC_TXQ_CFG   (0x280)
 
#define TSI108_EC_TXQ_CFG_DESC_INT   (1 << 20)
 
#define TSI108_EC_TXQ_CFG_EOQ_OWN_INT   (1 << 19)
 
#define TSI108_EC_TXQ_CFG_WSWP   (1 << 11)
 
#define TSI108_EC_TXQ_CFG_BSWP   (1 << 10)
 
#define TSI108_EC_TXQ_CFG_SFNPORT   0
 
#define TSI108_EC_TXQ_BUFCFG   (0x284)
 
#define TSI108_EC_TXQ_BUFCFG_BURST8   (0 << 8)
 
#define TSI108_EC_TXQ_BUFCFG_BURST32   (1 << 8)
 
#define TSI108_EC_TXQ_BUFCFG_BURST128   (2 << 8)
 
#define TSI108_EC_TXQ_BUFCFG_BURST256   (3 << 8)
 
#define TSI108_EC_TXQ_BUFCFG_WSWP   (1 << 11)
 
#define TSI108_EC_TXQ_BUFCFG_BSWP   (1 << 10)
 
#define TSI108_EC_TXQ_BUFCFG_SFNPORT   0
 
#define TSI108_EC_TXQ_PTRLOW   (0x288)
 
#define TSI108_EC_TXQ_PTRHIGH   (0x28c)
 
#define TSI108_EC_TXQ_PTRHIGH_VALID   (1 << 31)
 
#define TSI108_EC_TXTHRESH   (0x230)
 
#define TSI108_EC_TXTHRESH_STARTFILL   0
 
#define TSI108_EC_TXTHRESH_STOPFILL   16
 
#define TSI108_EC_RXCFG   (0x320)
 
#define TSI108_EC_RXCFG_RST   (1 << 31)
 
#define TSI108_EC_RXSTAT   (0x328)
 
#define TSI108_EC_RXSTAT_ACTIVE   (1 << 15)
 
#define TSI108_EC_RXSTAT_QUEUE0   (1 << 0)
 
#define TSI108_EC_RXESTAT   (0x32c)
 
#define TSI108_EC_RXESTAT_Q0_ERR   (1 << 24)
 
#define TSI108_EC_RXESTAT_Q0_DESCINT   (1 << 16)
 
#define TSI108_EC_RXESTAT_Q0_EOF   (1 << 8)
 
#define TSI108_EC_RXESTAT_Q0_EOQ   (1 << 0)
 
#define TSI108_EC_HASHADDR   (0x360)
 
#define TSI108_EC_HASHADDR_AUTOINC   (1 << 31)
 
#define TSI108_EC_HASHADDR_DO1STREAD   (1 << 30)
 
#define TSI108_EC_HASHADDR_UNICAST   (0 << 4)
 
#define TSI108_EC_HASHADDR_MCAST   (1 << 4)
 
#define TSI108_EC_HASHDATA   (0x364)
 
#define TSI108_EC_RXQ_PTRLOW   (0x388)
 
#define TSI108_EC_RXQ_PTRHIGH   (0x38c)
 
#define TSI108_EC_RXQ_PTRHIGH_VALID   (1 << 31)
 
#define TSI108_EC_RXCFG_SE   (1 << 13)
 
#define TSI108_EC_RXCFG_UFE   (1 << 12)
 
#define TSI108_EC_RXCFG_MFE   (1 << 11)
 
#define TSI108_EC_RXCFG_BFE   (1 << 10)
 
#define TSI108_EC_RXCFG_UC_HASH   (1 << 9)
 
#define TSI108_EC_RXCFG_MC_HASH   (1 << 8)
 
#define TSI108_EC_RXQ_CFG   (0x380)
 
#define TSI108_EC_RXQ_CFG_DESC_INT   (1 << 20)
 
#define TSI108_EC_RXQ_CFG_EOQ_OWN_INT   (1 << 19)
 
#define TSI108_EC_RXQ_CFG_WSWP   (1 << 11)
 
#define TSI108_EC_RXQ_CFG_BSWP   (1 << 10)
 
#define TSI108_EC_RXQ_CFG_SFNPORT   0
 
#define TSI108_EC_RXQ_BUFCFG   (0x384)
 
#define TSI108_EC_RXQ_BUFCFG_BURST8   (0 << 8)
 
#define TSI108_EC_RXQ_BUFCFG_BURST32   (1 << 8)
 
#define TSI108_EC_RXQ_BUFCFG_BURST128   (2 << 8)
 
#define TSI108_EC_RXQ_BUFCFG_BURST256   (3 << 8)
 
#define TSI108_EC_RXQ_BUFCFG_WSWP   (1 << 11)
 
#define TSI108_EC_RXQ_BUFCFG_BSWP   (1 << 10)
 
#define TSI108_EC_RXQ_BUFCFG_SFNPORT   0
 
#define TSI108_EC_RXCTRL   (0x324)
 
#define TSI108_EC_RXCTRL_ABORT   (1 << 30)
 
#define TSI108_EC_RXCTRL_GO   (1 << 15)
 
#define TSI108_EC_RXCTRL_QUEUE0   (1 << 0)
 
#define TSI108_EC_RXERR   (0x378)
 
#define TSI108_TX_EOF   (1 << 0) /* End of frame; last fragment of packet */
 
#define TSI108_TX_SOF   (1 << 1) /* Start of frame; first frag. of packet */
 
#define TSI108_TX_VLAN   (1 << 2) /* Per-frame VLAN: enables VLAN override */
 
#define TSI108_TX_HUGE   (1 << 3) /* Huge frame enable */
 
#define TSI108_TX_PAD   (1 << 4) /* Pad the packet if too short */
 
#define TSI108_TX_CRC   (1 << 5) /* Generate CRC for this packet */
 
#define TSI108_TX_INT   (1 << 14) /* Generate an IRQ after frag. processed */
 
#define TSI108_TX_RETRY   (0xf << 16) /* 4 bit field indicating num. of retries */
 
#define TSI108_TX_COL   (1 << 20) /* Set if a collision occurred */
 
#define TSI108_TX_LCOL   (1 << 24) /* Set if a late collision occurred */
 
#define TSI108_TX_UNDER   (1 << 25) /* Set if a FIFO underrun occurred */
 
#define TSI108_TX_RLIM   (1 << 26) /* Set if the retry limit was reached */
 
#define TSI108_TX_OK   (1 << 30) /* Set if the frame TX was successful */
 
#define TSI108_TX_OWN   (1 << 31) /* Set if the device owns the descriptor */
 
#define TSI108_RX_EOF   (1 << 0) /* End of frame; last fragment of packet */
 
#define TSI108_RX_SOF   (1 << 1) /* Start of frame; first frag. of packet */
 
#define TSI108_RX_VLAN   (1 << 2) /* Set on SOF if packet has a VLAN */
 
#define TSI108_RX_FTYPE   (1 << 3) /* Length/Type field is type, not length */
 
#define TSI108_RX_RUNT   (1 << 4)/* Packet is less than minimum size */
 
#define TSI108_RX_HASH   (1 << 7)/* Hash table match */
 
#define TSI108_RX_BAD   (1 << 8) /* Bad frame */
 
#define TSI108_RX_OVER   (1 << 9) /* FIFO overrun occurred */
 
#define TSI108_RX_TRUNC   (1 << 11) /* Packet truncated due to excess length */
 
#define TSI108_RX_CRC   (1 << 12) /* Packet had a CRC error */
 
#define TSI108_RX_INT   (1 << 13) /* Generate an IRQ after frag. processed */
 
#define TSI108_RX_OWN   (1 << 15) /* Set if the device owns the descriptor */
 
#define TSI108_RX_SKB_SIZE   1536 /* The RX skb length */
 

Macro Definition Documentation

#define TSI108_EC_HASHADDR   (0x360)

Definition at line 253 of file tsi108_eth.h.

#define TSI108_EC_HASHADDR_AUTOINC   (1 << 31)

Definition at line 254 of file tsi108_eth.h.

#define TSI108_EC_HASHADDR_DO1STREAD   (1 << 30)

Definition at line 255 of file tsi108_eth.h.

#define TSI108_EC_HASHADDR_MCAST   (1 << 4)

Definition at line 257 of file tsi108_eth.h.

#define TSI108_EC_HASHADDR_UNICAST   (0 << 4)

Definition at line 256 of file tsi108_eth.h.

#define TSI108_EC_HASHDATA   (0x364)

Definition at line 259 of file tsi108_eth.h.

#define TSI108_EC_INTMASK   (0x208)

Definition at line 174 of file tsi108_eth.h.

#define TSI108_EC_INTSTAT   (0x204)

Definition at line 173 of file tsi108_eth.h.

#define TSI108_EC_PORTCTRL   (0x200)

Definition at line 167 of file tsi108_eth.h.

#define TSI108_EC_PORTCTRL_HALFDUPLEX   (1 << 16)

Definition at line 171 of file tsi108_eth.h.

#define TSI108_EC_PORTCTRL_NOGIG   (1 << 18)

Definition at line 170 of file tsi108_eth.h.

#define TSI108_EC_PORTCTRL_STATEN   (1 << 28)

Definition at line 169 of file tsi108_eth.h.

#define TSI108_EC_PORTCTRL_STATRST   (1 << 31)

Definition at line 168 of file tsi108_eth.h.

#define TSI108_EC_RXCFG   (0x320)

Definition at line 240 of file tsi108_eth.h.

#define TSI108_EC_RXCFG_BFE   (1 << 10)

Definition at line 273 of file tsi108_eth.h.

#define TSI108_EC_RXCFG_MC_HASH   (1 << 8)

Definition at line 275 of file tsi108_eth.h.

#define TSI108_EC_RXCFG_MFE   (1 << 11)

Definition at line 271 of file tsi108_eth.h.

#define TSI108_EC_RXCFG_RST   (1 << 31)

Definition at line 241 of file tsi108_eth.h.

#define TSI108_EC_RXCFG_SE   (1 << 13)

Definition at line 267 of file tsi108_eth.h.

#define TSI108_EC_RXCFG_UC_HASH   (1 << 9)

Definition at line 274 of file tsi108_eth.h.

#define TSI108_EC_RXCFG_UFE   (1 << 12)

Definition at line 269 of file tsi108_eth.h.

#define TSI108_EC_RXCTRL   (0x324)

Definition at line 293 of file tsi108_eth.h.

#define TSI108_EC_RXCTRL_ABORT   (1 << 30)

Definition at line 294 of file tsi108_eth.h.

#define TSI108_EC_RXCTRL_GO   (1 << 15)

Definition at line 295 of file tsi108_eth.h.

#define TSI108_EC_RXCTRL_QUEUE0   (1 << 0)

Definition at line 296 of file tsi108_eth.h.

#define TSI108_EC_RXERR   (0x378)

Definition at line 298 of file tsi108_eth.h.

#define TSI108_EC_RXESTAT   (0x32c)

Definition at line 247 of file tsi108_eth.h.

#define TSI108_EC_RXESTAT_Q0_DESCINT   (1 << 16)

Definition at line 249 of file tsi108_eth.h.

#define TSI108_EC_RXESTAT_Q0_EOF   (1 << 8)

Definition at line 250 of file tsi108_eth.h.

#define TSI108_EC_RXESTAT_Q0_EOQ   (1 << 0)

Definition at line 251 of file tsi108_eth.h.

#define TSI108_EC_RXESTAT_Q0_ERR   (1 << 24)

Definition at line 248 of file tsi108_eth.h.

#define TSI108_EC_RXQ_BUFCFG   (0x384)

Definition at line 284 of file tsi108_eth.h.

#define TSI108_EC_RXQ_BUFCFG_BSWP   (1 << 10)

Definition at line 290 of file tsi108_eth.h.

#define TSI108_EC_RXQ_BUFCFG_BURST128   (2 << 8)

Definition at line 287 of file tsi108_eth.h.

#define TSI108_EC_RXQ_BUFCFG_BURST256   (3 << 8)

Definition at line 288 of file tsi108_eth.h.

#define TSI108_EC_RXQ_BUFCFG_BURST32   (1 << 8)

Definition at line 286 of file tsi108_eth.h.

#define TSI108_EC_RXQ_BUFCFG_BURST8   (0 << 8)

Definition at line 285 of file tsi108_eth.h.

#define TSI108_EC_RXQ_BUFCFG_SFNPORT   0

Definition at line 291 of file tsi108_eth.h.

#define TSI108_EC_RXQ_BUFCFG_WSWP   (1 << 11)

Definition at line 289 of file tsi108_eth.h.

#define TSI108_EC_RXQ_CFG   (0x380)

Definition at line 277 of file tsi108_eth.h.

#define TSI108_EC_RXQ_CFG_BSWP   (1 << 10)

Definition at line 281 of file tsi108_eth.h.

#define TSI108_EC_RXQ_CFG_DESC_INT   (1 << 20)

Definition at line 278 of file tsi108_eth.h.

#define TSI108_EC_RXQ_CFG_EOQ_OWN_INT   (1 << 19)

Definition at line 279 of file tsi108_eth.h.

#define TSI108_EC_RXQ_CFG_SFNPORT   0

Definition at line 282 of file tsi108_eth.h.

#define TSI108_EC_RXQ_CFG_WSWP   (1 << 11)

Definition at line 280 of file tsi108_eth.h.

#define TSI108_EC_RXQ_PTRHIGH   (0x38c)

Definition at line 263 of file tsi108_eth.h.

#define TSI108_EC_RXQ_PTRHIGH_VALID   (1 << 31)

Definition at line 264 of file tsi108_eth.h.

#define TSI108_EC_RXQ_PTRLOW   (0x388)

Definition at line 261 of file tsi108_eth.h.

#define TSI108_EC_RXSTAT   (0x328)

Definition at line 243 of file tsi108_eth.h.

#define TSI108_EC_RXSTAT_ACTIVE   (1 << 15)

Definition at line 244 of file tsi108_eth.h.

#define TSI108_EC_RXSTAT_QUEUE0   (1 << 0)

Definition at line 245 of file tsi108_eth.h.

#define TSI108_EC_TXCFG   (0x220)

Definition at line 194 of file tsi108_eth.h.

#define TSI108_EC_TXCFG_RST   (1 << 31)

Definition at line 195 of file tsi108_eth.h.

#define TSI108_EC_TXCTRL   (0x224)

Definition at line 197 of file tsi108_eth.h.

#define TSI108_EC_TXCTRL_ABORT   (1 << 30)

Definition at line 199 of file tsi108_eth.h.

#define TSI108_EC_TXCTRL_GO   (1 << 15)

Definition at line 200 of file tsi108_eth.h.

#define TSI108_EC_TXCTRL_IDLEINT   (1 << 31)

Definition at line 198 of file tsi108_eth.h.

#define TSI108_EC_TXCTRL_QUEUE0   (1 << 0)

Definition at line 201 of file tsi108_eth.h.

#define TSI108_EC_TXERR   (0x278)

Definition at line 213 of file tsi108_eth.h.

#define TSI108_EC_TXESTAT   (0x22c)

Definition at line 207 of file tsi108_eth.h.

#define TSI108_EC_TXESTAT_Q0_DESCINT   (1 << 16)

Definition at line 209 of file tsi108_eth.h.

#define TSI108_EC_TXESTAT_Q0_EOF   (1 << 8)

Definition at line 210 of file tsi108_eth.h.

#define TSI108_EC_TXESTAT_Q0_EOQ   (1 << 0)

Definition at line 211 of file tsi108_eth.h.

#define TSI108_EC_TXESTAT_Q0_ERR   (1 << 24)

Definition at line 208 of file tsi108_eth.h.

#define TSI108_EC_TXQ_BUFCFG   (0x284)

Definition at line 222 of file tsi108_eth.h.

#define TSI108_EC_TXQ_BUFCFG_BSWP   (1 << 10)

Definition at line 228 of file tsi108_eth.h.

#define TSI108_EC_TXQ_BUFCFG_BURST128   (2 << 8)

Definition at line 225 of file tsi108_eth.h.

#define TSI108_EC_TXQ_BUFCFG_BURST256   (3 << 8)

Definition at line 226 of file tsi108_eth.h.

#define TSI108_EC_TXQ_BUFCFG_BURST32   (1 << 8)

Definition at line 224 of file tsi108_eth.h.

#define TSI108_EC_TXQ_BUFCFG_BURST8   (0 << 8)

Definition at line 223 of file tsi108_eth.h.

#define TSI108_EC_TXQ_BUFCFG_SFNPORT   0

Definition at line 229 of file tsi108_eth.h.

#define TSI108_EC_TXQ_BUFCFG_WSWP   (1 << 11)

Definition at line 227 of file tsi108_eth.h.

#define TSI108_EC_TXQ_CFG   (0x280)

Definition at line 215 of file tsi108_eth.h.

#define TSI108_EC_TXQ_CFG_BSWP   (1 << 10)

Definition at line 219 of file tsi108_eth.h.

#define TSI108_EC_TXQ_CFG_DESC_INT   (1 << 20)

Definition at line 216 of file tsi108_eth.h.

#define TSI108_EC_TXQ_CFG_EOQ_OWN_INT   (1 << 19)

Definition at line 217 of file tsi108_eth.h.

#define TSI108_EC_TXQ_CFG_SFNPORT   0

Definition at line 220 of file tsi108_eth.h.

#define TSI108_EC_TXQ_CFG_WSWP   (1 << 11)

Definition at line 218 of file tsi108_eth.h.

#define TSI108_EC_TXQ_PTRHIGH   (0x28c)

Definition at line 233 of file tsi108_eth.h.

#define TSI108_EC_TXQ_PTRHIGH_VALID   (1 << 31)

Definition at line 234 of file tsi108_eth.h.

#define TSI108_EC_TXQ_PTRLOW   (0x288)

Definition at line 231 of file tsi108_eth.h.

#define TSI108_EC_TXSTAT   (0x228)

Definition at line 203 of file tsi108_eth.h.

#define TSI108_EC_TXSTAT_ACTIVE   (1 << 15)

Definition at line 204 of file tsi108_eth.h.

#define TSI108_EC_TXSTAT_QUEUE0   (1 << 0)

Definition at line 205 of file tsi108_eth.h.

#define TSI108_EC_TXTHRESH   (0x230)

Definition at line 236 of file tsi108_eth.h.

#define TSI108_EC_TXTHRESH_STARTFILL   0

Definition at line 237 of file tsi108_eth.h.

#define TSI108_EC_TXTHRESH_STOPFILL   16

Definition at line 238 of file tsi108_eth.h.

#define TSI108_ETH_PORT_NUM   2

Definition at line 49 of file tsi108_eth.h.

#define TSI108_INT_ANY   (1 << 31)

Definition at line 176 of file tsi108_eth.h.

#define TSI108_INT_RXABORT   (1 << 28)

Definition at line 179 of file tsi108_eth.h.

#define TSI108_INT_RXERROR   (1 << 27)

Definition at line 180 of file tsi108_eth.h.

#define TSI108_INT_RXIDLE   (1 << 29)

Definition at line 178 of file tsi108_eth.h.

#define TSI108_INT_RXOVERRUN   (1 << 26)

Definition at line 181 of file tsi108_eth.h.

#define TSI108_INT_RXQUEUE0   (1 << 16)

Definition at line 184 of file tsi108_eth.h.

#define TSI108_INT_RXTHRESH   (1 << 25)

Definition at line 182 of file tsi108_eth.h.

#define TSI108_INT_RXWAIT   (1 << 24)

Definition at line 183 of file tsi108_eth.h.

#define TSI108_INT_SFN   (1 << 30)

Definition at line 177 of file tsi108_eth.h.

#define TSI108_INT_STATCARRY   (1 << 15)

Definition at line 185 of file tsi108_eth.h.

#define TSI108_INT_TXABORT   (1 << 12)

Definition at line 187 of file tsi108_eth.h.

#define TSI108_INT_TXERROR   (1 << 11)

Definition at line 188 of file tsi108_eth.h.

#define TSI108_INT_TXIDLE   (1 << 13)

Definition at line 186 of file tsi108_eth.h.

#define TSI108_INT_TXQUEUE0   (1 << 0)

Definition at line 192 of file tsi108_eth.h.

#define TSI108_INT_TXTHRESH   (1 << 9)

Definition at line 190 of file tsi108_eth.h.

#define TSI108_INT_TXUNDERRUN   (1 << 10)

Definition at line 189 of file tsi108_eth.h.

#define TSI108_INT_TXWAIT   (1 << 8)

Definition at line 191 of file tsi108_eth.h.

#define TSI108_MAC_ADDR1   (0x040)

Definition at line 89 of file tsi108_eth.h.

#define TSI108_MAC_ADDR2   (0x044)

Definition at line 90 of file tsi108_eth.h.

#define TSI108_MAC_CFG1   (0x000)

Definition at line 53 of file tsi108_eth.h.

#define TSI108_MAC_CFG1_LOOPBACK   (1 << 8)

Definition at line 55 of file tsi108_eth.h.

#define TSI108_MAC_CFG1_RXEN   (1 << 2)

Definition at line 56 of file tsi108_eth.h.

#define TSI108_MAC_CFG1_SOFTRST   (1 << 31)

Definition at line 54 of file tsi108_eth.h.

#define TSI108_MAC_CFG1_TXEN   (1 << 0)

Definition at line 57 of file tsi108_eth.h.

#define TSI108_MAC_CFG2   (0x004)

Definition at line 59 of file tsi108_eth.h.

#define TSI108_MAC_CFG2_DFLT_PREAMBLE   (7 << 12)

Definition at line 60 of file tsi108_eth.h.

#define TSI108_MAC_CFG2_FULLDUPLEX   (1 << 0)

Definition at line 65 of file tsi108_eth.h.

#define TSI108_MAC_CFG2_GIG   (2 << 8)

Definition at line 63 of file tsi108_eth.h.

#define TSI108_MAC_CFG2_IFACE_MASK   (3 << 8)

Definition at line 61 of file tsi108_eth.h.

#define TSI108_MAC_CFG2_NOGIG   (1 << 8)

Definition at line 62 of file tsi108_eth.h.

#define TSI108_MAC_CFG2_PADCRC   (1 << 2)

Definition at line 64 of file tsi108_eth.h.

#define TSI108_MAC_IFCTRL   (0x038)

Definition at line 86 of file tsi108_eth.h.

#define TSI108_MAC_IFCTRL_PHYMODE   (1 << 24)

Definition at line 87 of file tsi108_eth.h.

#define TSI108_MAC_MII_ADDR   (0x028)

Definition at line 74 of file tsi108_eth.h.

#define TSI108_MAC_MII_ADDR_PHY   8

Definition at line 76 of file tsi108_eth.h.

#define TSI108_MAC_MII_ADDR_REG   0

Definition at line 75 of file tsi108_eth.h.

#define TSI108_MAC_MII_CMD   (0x024)

Definition at line 71 of file tsi108_eth.h.

#define TSI108_MAC_MII_CMD_READ   (1 << 0)

Definition at line 72 of file tsi108_eth.h.

#define TSI108_MAC_MII_DATAIN   (0x030)

Definition at line 79 of file tsi108_eth.h.

#define TSI108_MAC_MII_DATAOUT   (0x02c)

Definition at line 78 of file tsi108_eth.h.

#define TSI108_MAC_MII_IND   (0x034)

Definition at line 81 of file tsi108_eth.h.

#define TSI108_MAC_MII_IND_BUSY   (1 << 0)

Definition at line 84 of file tsi108_eth.h.

#define TSI108_MAC_MII_IND_NOTVALID   (1 << 2)

Definition at line 82 of file tsi108_eth.h.

#define TSI108_MAC_MII_IND_SCANNING   (1 << 1)

Definition at line 83 of file tsi108_eth.h.

#define TSI108_MAC_MII_MGMT_CFG   (0x020)

Definition at line 67 of file tsi108_eth.h.

#define TSI108_MAC_MII_MGMT_CLK   (7 << 0)

Definition at line 68 of file tsi108_eth.h.

#define TSI108_MAC_MII_MGMT_RST   (1 << 31)

Definition at line 69 of file tsi108_eth.h.

#define TSI108_PBM_PORT   2

Definition at line 50 of file tsi108_eth.h.

#define TSI108_RX_BAD   (1 << 8) /* Bad frame */

Definition at line 334 of file tsi108_eth.h.

#define TSI108_RX_CRC   (1 << 12) /* Packet had a CRC error */

Definition at line 337 of file tsi108_eth.h.

#define TSI108_RX_EOF   (1 << 0) /* End of frame; last fragment of packet */

Definition at line 328 of file tsi108_eth.h.

#define TSI108_RX_FTYPE   (1 << 3) /* Length/Type field is type, not length */

Definition at line 331 of file tsi108_eth.h.

#define TSI108_RX_HASH   (1 << 7)/* Hash table match */

Definition at line 333 of file tsi108_eth.h.

#define TSI108_RX_INT   (1 << 13) /* Generate an IRQ after frag. processed */

Definition at line 338 of file tsi108_eth.h.

#define TSI108_RX_OVER   (1 << 9) /* FIFO overrun occurred */

Definition at line 335 of file tsi108_eth.h.

#define TSI108_RX_OWN   (1 << 15) /* Set if the device owns the descriptor */

Definition at line 339 of file tsi108_eth.h.

#define TSI108_RX_RUNT   (1 << 4)/* Packet is less than minimum size */

Definition at line 332 of file tsi108_eth.h.

#define TSI108_RX_SKB_SIZE   1536 /* The RX skb length */

Definition at line 341 of file tsi108_eth.h.

#define TSI108_RX_SOF   (1 << 1) /* Start of frame; first frag. of packet */

Definition at line 329 of file tsi108_eth.h.

#define TSI108_RX_TRUNC   (1 << 11) /* Packet truncated due to excess length */

Definition at line 336 of file tsi108_eth.h.

#define TSI108_RX_VLAN   (1 << 2) /* Set on SOF if packet has a VLAN */

Definition at line 330 of file tsi108_eth.h.

#define TSI108_SDRAM_PORT   4

Definition at line 51 of file tsi108_eth.h.

#define TSI108_STAT_CARRY1   (0x100)

Definition at line 143 of file tsi108_eth.h.

#define TSI108_STAT_CARRY1_RXALIGN   (1 << 8)

Definition at line 148 of file tsi108_eth.h.

#define TSI108_STAT_CARRY1_RXBYTES   (1 << 16)

Definition at line 144 of file tsi108_eth.h.

#define TSI108_STAT_CARRY1_RXDROP   (1 << 0)

Definition at line 154 of file tsi108_eth.h.

#define TSI108_STAT_CARRY1_RXFCS   (1 << 14)

Definition at line 146 of file tsi108_eth.h.

#define TSI108_STAT_CARRY1_RXFRAG   (1 << 2)

Definition at line 152 of file tsi108_eth.h.

#define TSI108_STAT_CARRY1_RXJABBER   (1 << 1)

Definition at line 153 of file tsi108_eth.h.

#define TSI108_STAT_CARRY1_RXJUMBO   (1 << 3)

Definition at line 151 of file tsi108_eth.h.

#define TSI108_STAT_CARRY1_RXLENGTH   (1 << 7)

Definition at line 149 of file tsi108_eth.h.

#define TSI108_STAT_CARRY1_RXMCAST   (1 << 13)

Definition at line 147 of file tsi108_eth.h.

#define TSI108_STAT_CARRY1_RXPKTS   (1 << 15)

Definition at line 145 of file tsi108_eth.h.

#define TSI108_STAT_CARRY1_RXRUNT   (1 << 4)

Definition at line 150 of file tsi108_eth.h.

#define TSI108_STAT_CARRY2   (0x104)

Definition at line 156 of file tsi108_eth.h.

#define TSI108_STAT_CARRY2_TXBYTES   (1 << 13)

Definition at line 157 of file tsi108_eth.h.

#define TSI108_STAT_CARRY2_TXEXCOL   (1 << 3)

Definition at line 160 of file tsi108_eth.h.

#define TSI108_STAT_CARRY2_TXEXDEF   (1 << 7)

Definition at line 159 of file tsi108_eth.h.

#define TSI108_STAT_CARRY2_TXPAUSE   (1 << 0)

Definition at line 162 of file tsi108_eth.h.

#define TSI108_STAT_CARRY2_TXPKTS   (1 << 12)

Definition at line 158 of file tsi108_eth.h.

#define TSI108_STAT_CARRY2_TXTCOL   (1 << 2)

Definition at line 161 of file tsi108_eth.h.

#define TSI108_STAT_CARRYMASK1   (0x108)

Definition at line 164 of file tsi108_eth.h.

#define TSI108_STAT_CARRYMASK2   (0x10c)

Definition at line 165 of file tsi108_eth.h.

#define TSI108_STAT_RXALIGN   (0x08c)

Definition at line 104 of file tsi108_eth.h.

#define TSI108_STAT_RXALIGN_CARRY   (1 << 12)

Definition at line 105 of file tsi108_eth.h.

#define TSI108_STAT_RXBYTES   (0x06c)

Definition at line 92 of file tsi108_eth.h.

#define TSI108_STAT_RXBYTES_CARRY   (1 << 24)

Definition at line 93 of file tsi108_eth.h.

#define TSI108_STAT_RXDROP   (0x0ac)

Definition at line 122 of file tsi108_eth.h.

#define TSI108_STAT_RXDROP_CARRY   (1 << 12)

Definition at line 123 of file tsi108_eth.h.

#define TSI108_STAT_RXFCS   (0x074)

Definition at line 98 of file tsi108_eth.h.

#define TSI108_STAT_RXFCS_CARRY   (1 << 12)

Definition at line 99 of file tsi108_eth.h.

#define TSI108_STAT_RXFRAG   (0x0a4)

Definition at line 116 of file tsi108_eth.h.

#define TSI108_STAT_RXFRAG_CARRY   (1 << 12)

Definition at line 117 of file tsi108_eth.h.

#define TSI108_STAT_RXJABBER   (0x0a8)

Definition at line 119 of file tsi108_eth.h.

#define TSI108_STAT_RXJABBER_CARRY   (1 << 12)

Definition at line 120 of file tsi108_eth.h.

#define TSI108_STAT_RXJUMBO   (0x0a0)

Definition at line 113 of file tsi108_eth.h.

#define TSI108_STAT_RXJUMBO_CARRY   (1 << 12)

Definition at line 114 of file tsi108_eth.h.

#define TSI108_STAT_RXLENGTH   (0x090)

Definition at line 107 of file tsi108_eth.h.

#define TSI108_STAT_RXLENGTH_CARRY   (1 << 12)

Definition at line 108 of file tsi108_eth.h.

#define TSI108_STAT_RXMCAST   (0x078)

Definition at line 101 of file tsi108_eth.h.

#define TSI108_STAT_RXMCAST_CARRY   (1 << 18)

Definition at line 102 of file tsi108_eth.h.

#define TSI108_STAT_RXPKTS   (0x070)

Definition at line 95 of file tsi108_eth.h.

#define TSI108_STAT_RXPKTS_CARRY   (1 << 18)

Definition at line 96 of file tsi108_eth.h.

#define TSI108_STAT_RXRUNT   (0x09c)

Definition at line 110 of file tsi108_eth.h.

#define TSI108_STAT_RXRUNT_CARRY   (1 << 12)

Definition at line 111 of file tsi108_eth.h.

#define TSI108_STAT_TXBYTES   (0x0b0)

Definition at line 125 of file tsi108_eth.h.

#define TSI108_STAT_TXBYTES_CARRY   (1 << 24)

Definition at line 126 of file tsi108_eth.h.

#define TSI108_STAT_TXEXCOL   (0x0d8)

Definition at line 134 of file tsi108_eth.h.

#define TSI108_STAT_TXEXCOL_CARRY   (1 << 12)

Definition at line 135 of file tsi108_eth.h.

#define TSI108_STAT_TXEXDEF   (0x0c8)

Definition at line 131 of file tsi108_eth.h.

#define TSI108_STAT_TXEXDEF_CARRY   (1 << 12)

Definition at line 132 of file tsi108_eth.h.

#define TSI108_STAT_TXPAUSEDROP   (0x0e4)

Definition at line 140 of file tsi108_eth.h.

#define TSI108_STAT_TXPAUSEDROP_CARRY   (1 << 12)

Definition at line 141 of file tsi108_eth.h.

#define TSI108_STAT_TXPKTS   (0x0b4)

Definition at line 128 of file tsi108_eth.h.

#define TSI108_STAT_TXPKTS_CARRY   (1 << 18)

Definition at line 129 of file tsi108_eth.h.

#define TSI108_STAT_TXTCOL   (0x0dc)

Definition at line 137 of file tsi108_eth.h.

#define TSI108_STAT_TXTCOL_CARRY   (1 << 13)

Definition at line 138 of file tsi108_eth.h.

#define TSI108_TX_COL   (1 << 20) /* Set if a collision occurred */

Definition at line 308 of file tsi108_eth.h.

#define TSI108_TX_CRC   (1 << 5) /* Generate CRC for this packet */

Definition at line 305 of file tsi108_eth.h.

#define TSI108_TX_EOF   (1 << 0) /* End of frame; last fragment of packet */

Definition at line 300 of file tsi108_eth.h.

#define TSI108_TX_HUGE   (1 << 3) /* Huge frame enable */

Definition at line 303 of file tsi108_eth.h.

#define TSI108_TX_INT   (1 << 14) /* Generate an IRQ after frag. processed */

Definition at line 306 of file tsi108_eth.h.

#define TSI108_TX_LCOL   (1 << 24) /* Set if a late collision occurred */

Definition at line 309 of file tsi108_eth.h.

#define TSI108_TX_OK   (1 << 30) /* Set if the frame TX was successful */

Definition at line 312 of file tsi108_eth.h.

#define TSI108_TX_OWN   (1 << 31) /* Set if the device owns the descriptor */

Definition at line 313 of file tsi108_eth.h.

#define TSI108_TX_PAD   (1 << 4) /* Pad the packet if too short */

Definition at line 304 of file tsi108_eth.h.

#define TSI108_TX_RETRY   (0xf << 16) /* 4 bit field indicating num. of retries */

Definition at line 307 of file tsi108_eth.h.

#define TSI108_TX_RLIM   (1 << 26) /* Set if the retry limit was reached */

Definition at line 311 of file tsi108_eth.h.

#define TSI108_TX_SOF   (1 << 1) /* Start of frame; first frag. of packet */

Definition at line 301 of file tsi108_eth.h.

#define TSI108_TX_UNDER   (1 << 25) /* Set if a FIFO underrun occurred */

Definition at line 310 of file tsi108_eth.h.

#define TSI108_TX_VLAN   (1 << 2) /* Per-frame VLAN: enables VLAN override */

Definition at line 302 of file tsi108_eth.h.

#define TSI_READ (   offset)    in_be32((data->regs + (offset)))

Definition at line 36 of file tsi108_eth.h.

#define TSI_READ_PHY (   offset)    in_be32((data->phyregs + (offset)))

Definition at line 42 of file tsi108_eth.h.

#define TSI_WRITE (   offset,
  val 
)    out_be32((data->regs + (offset)), val)

Definition at line 33 of file tsi108_eth.h.

#define TSI_WRITE_PHY (   offset,
  val 
)    out_be32((data->phyregs + (offset)), val)

Definition at line 39 of file tsi108_eth.h.