Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
atl2.h File Reference
#include <linux/atomic.h>
#include <linux/netdevice.h>
#include <linux/pci.h>
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/if_ether.h>
#include "atlx.h"

Go to the source code of this file.

Data Structures

struct  tx_pkt_header
 
struct  tx_pkt_status
 
struct  rx_pkt_status
 
struct  rx_desc
 
struct  atl2_spi_flash_dev
 
struct  atl2_hw
 
struct  atl2_ring_header
 
struct  atl2_adapter
 

Macros

#define _ATL2_HW_H_
 
#define _ATL2_OSDEP_H_
 
#define PCI_COMMAND_REGISTER   PCI_COMMAND
 
#define CMD_MEM_WRT_INVALIDATE   PCI_COMMAND_INVALIDATE
 
#define ATL2_WRITE_REG(a, reg, value)
 
#define ATL2_WRITE_FLUSH(a)   (ioread32((a)->hw_addr))
 
#define ATL2_READ_REG(a, reg)   (ioread32((a)->hw_addr + (reg)))
 
#define ATL2_WRITE_REGB(a, reg, value)
 
#define ATL2_READ_REGB(a, reg)   (ioread8((a)->hw_addr + (reg)))
 
#define ATL2_WRITE_REGW(a, reg, value)
 
#define ATL2_READ_REGW(a, reg)   (ioread16((a)->hw_addr + (reg)))
 
#define ATL2_WRITE_REG_ARRAY(a, reg, offset, value)   (iowrite32((value), (((a)->hw_addr + (reg)) + ((offset) << 2))))
 
#define ATL2_READ_REG_ARRAY(a, reg, offset)   (ioread32(((a)->hw_addr + (reg)) + ((offset) << 2)))
 
#define IDLE_STATUS_RXMAC   1 /* 1: RXMAC is non-IDLE */
 
#define IDLE_STATUS_TXMAC   2 /* 1: TXMAC is non-IDLE */
 
#define IDLE_STATUS_DMAR   8 /* 1: DMAR is non-IDLE */
 
#define IDLE_STATUS_DMAW   4 /* 1: DMAW is non-IDLE */
 
#define MDIO_WAIT_TIMES   10
 
#define MAC_CTRL_DBG_TX_BKPRESURE   0x100000 /* 1: TX max backoff */
 
#define MAC_CTRL_MACLP_CLK_PHY   0x8000000 /* 1: 25MHz from phy */
 
#define MAC_CTRL_HALF_LEFT_BUF_SHIFT   28
 
#define MAC_CTRL_HALF_LEFT_BUF_MASK   0xF /* MAC retry buf x32B */
 
#define REG_SRAM_TXRAM_END
 
#define REG_SRAM_RXRAM_END
 
#define REG_TXD_BASE_ADDR_LO
 
#define REG_TXD_MEM_SIZE
 
#define REG_TXS_BASE_ADDR_LO
 
#define REG_TXS_MEM_SIZE
 
#define REG_RXD_BASE_ADDR_LO
 
#define REG_RXD_BUF_NUM
 
#define REG_DMAR   0x1580
 
#define DMAR_EN   0x1 /* 1: Enable DMAR */
 
#define REG_TX_CUT_THRESH
 
#define REG_DMAW   0x15A0
 
#define DMAW_EN   0x1
 
#define REG_PAUSE_ON_TH
 
#define REG_PAUSE_OFF_TH
 
#define REG_MB_TXD_WR_IDX   0x15f0 /* double word align */
 
#define REG_MB_RXD_RD_IDX   0x15F4 /* RXD Read index (unit: 1536byets) */
 
#define ISR_TIMER   1 /* Interrupt when Timer counts down to zero */
 
#define ISR_MANUAL
 
#define ISR_RXF_OV   4 /* RXF overflow interrupt */
 
#define ISR_TXF_UR   8 /* TXF underrun interrupt */
 
#define ISR_TXS_OV
 
#define ISR_RXS_OV
 
#define ISR_LINK_CHG   0x40 /* Link Status Change Interrupt */
 
#define ISR_HOST_TXD_UR   0x80
 
#define ISR_HOST_RXD_OV   0x100 /* Host rx data memory full , one pulse */
 
#define ISR_DMAR_TO_RST
 
#define ISR_DMAW_TO_RST   0x400
 
#define ISR_PHY   0x800 /* phy interrupt */
 
#define ISR_TS_UPDATE
 
#define ISR_RS_UPDATE
 
#define ISR_TX_EARLY
 
#define ISR_TX_EVENT
 
#define ISR_RX_EVENT
 
#define IMR_NORMAL_MASK
 
#define REG_STS_RX_PAUSE   0x1700 /* Num pause packets received */
 
#define REG_STS_RXD_OV
 
#define REG_STS_RXS_OV
 
#define REG_STS_RX_FILTER
 
#define MII_SMARTSPEED   0x14
 
#define MII_DBG_ADDR   0x1D
 
#define MII_DBG_DATA   0x1E
 
#define PCI_REG_COMMAND   0x04
 
#define CMD_IO_SPACE   0x0001
 
#define CMD_MEMORY_SPACE   0x0002
 
#define CMD_BUS_MASTER   0x0004
 
#define MEDIA_TYPE_100M_FULL   1
 
#define MEDIA_TYPE_100M_HALF   2
 
#define MEDIA_TYPE_10M_FULL   3
 
#define MEDIA_TYPE_10M_HALF   4
 
#define AUTONEG_ADVERTISE_SPEED_DEFAULT   0x000F /* Everything */
 
#define ENET_HEADER_SIZE   14
 
#define MAXIMUM_ETHERNET_FRAME_SIZE   1518 /* with FCS */
 
#define MINIMUM_ETHERNET_FRAME_SIZE   64 /* with FCS */
 
#define ETHERNET_FCS_SIZE   4
 
#define MAX_JUMBO_FRAME_SIZE   0x2000
 
#define VLAN_SIZE   4
 
#define TX_PKT_HEADER_SIZE_MASK   0x7FF
 
#define TX_PKT_HEADER_SIZE_SHIFT   0
 
#define TX_PKT_HEADER_INS_VLAN_MASK   0x1
 
#define TX_PKT_HEADER_INS_VLAN_SHIFT   15
 
#define TX_PKT_HEADER_VLAN_TAG_MASK   0xFFFF
 
#define TX_PKT_HEADER_VLAN_TAG_SHIFT   16
 
#define TX_PKT_STATUS_SIZE_MASK   0x7FF
 
#define TX_PKT_STATUS_SIZE_SHIFT   0
 
#define TX_PKT_STATUS_OK_MASK   0x1
 
#define TX_PKT_STATUS_OK_SHIFT   16
 
#define TX_PKT_STATUS_BCAST_MASK   0x1
 
#define TX_PKT_STATUS_BCAST_SHIFT   17
 
#define TX_PKT_STATUS_MCAST_MASK   0x1
 
#define TX_PKT_STATUS_MCAST_SHIFT   18
 
#define TX_PKT_STATUS_PAUSE_MASK   0x1
 
#define TX_PKT_STATUS_PAUSE_SHIFT   19
 
#define TX_PKT_STATUS_CTRL_MASK   0x1
 
#define TX_PKT_STATUS_CTRL_SHIFT   20
 
#define TX_PKT_STATUS_DEFER_MASK   0x1
 
#define TX_PKT_STATUS_DEFER_SHIFT   21
 
#define TX_PKT_STATUS_EXC_DEFER_MASK   0x1
 
#define TX_PKT_STATUS_EXC_DEFER_SHIFT   22
 
#define TX_PKT_STATUS_SINGLE_COL_MASK   0x1
 
#define TX_PKT_STATUS_SINGLE_COL_SHIFT   23
 
#define TX_PKT_STATUS_MULTI_COL_MASK   0x1
 
#define TX_PKT_STATUS_MULTI_COL_SHIFT   24
 
#define TX_PKT_STATUS_LATE_COL_MASK   0x1
 
#define TX_PKT_STATUS_LATE_COL_SHIFT   25
 
#define TX_PKT_STATUS_ABORT_COL_MASK   0x1
 
#define TX_PKT_STATUS_ABORT_COL_SHIFT   26
 
#define TX_PKT_STATUS_UNDERRUN_MASK   0x1
 
#define TX_PKT_STATUS_UNDERRUN_SHIFT   27
 
#define TX_PKT_STATUS_UPDATE_MASK   0x1
 
#define TX_PKT_STATUS_UPDATE_SHIFT   31
 
#define RX_PKT_STATUS_SIZE_MASK   0x7FF
 
#define RX_PKT_STATUS_SIZE_SHIFT   0
 
#define RX_PKT_STATUS_OK_MASK   0x1
 
#define RX_PKT_STATUS_OK_SHIFT   16
 
#define RX_PKT_STATUS_BCAST_MASK   0x1
 
#define RX_PKT_STATUS_BCAST_SHIFT   17
 
#define RX_PKT_STATUS_MCAST_MASK   0x1
 
#define RX_PKT_STATUS_MCAST_SHIFT   18
 
#define RX_PKT_STATUS_PAUSE_MASK   0x1
 
#define RX_PKT_STATUS_PAUSE_SHIFT   19
 
#define RX_PKT_STATUS_CTRL_MASK   0x1
 
#define RX_PKT_STATUS_CTRL_SHIFT   20
 
#define RX_PKT_STATUS_CRC_MASK   0x1
 
#define RX_PKT_STATUS_CRC_SHIFT   21
 
#define RX_PKT_STATUS_CODE_MASK   0x1
 
#define RX_PKT_STATUS_CODE_SHIFT   22
 
#define RX_PKT_STATUS_RUNT_MASK   0x1
 
#define RX_PKT_STATUS_RUNT_SHIFT   23
 
#define RX_PKT_STATUS_FRAG_MASK   0x1
 
#define RX_PKT_STATUS_FRAG_SHIFT   24
 
#define RX_PKT_STATUS_TRUNK_MASK   0x1
 
#define RX_PKT_STATUS_TRUNK_SHIFT   25
 
#define RX_PKT_STATUS_ALIGN_MASK   0x1
 
#define RX_PKT_STATUS_ALIGN_SHIFT   26
 
#define RX_PKT_STATUS_VLAN_MASK   0x1
 
#define RX_PKT_STATUS_VLAN_SHIFT   27
 
#define RX_PKT_STATUS_UPDATE_MASK   0x1
 
#define RX_PKT_STATUS_UPDATE_SHIFT   31
 
#define RX_PKT_STATUS_VLAN_TAG_MASK   0xFFFF
 
#define RX_PKT_STATUS_VLAN_TAG_SHIFT   32
 

Enumerations

enum  atl2_speed_duplex { atl2_10_half = 0, atl2_10_full = 1, atl2_100_half = 2, atl2_100_full = 3 }
 
enum  atl2_state_t { __ATL2_TESTING, __ATL2_RESETTING, __ATL2_DOWN }
 

Macro Definition Documentation

#define _ATL2_HW_H_

Definition at line 32 of file atl2.h.

#define _ATL2_OSDEP_H_

Definition at line 35 of file atl2.h.

#define ATL2_READ_REG (   a,
  reg 
)    (ioread32((a)->hw_addr + (reg)))

Definition at line 56 of file atl2.h.

#define ATL2_READ_REG_ARRAY (   a,
  reg,
  offset 
)    (ioread32(((a)->hw_addr + (reg)) + ((offset) << 2)))

Definition at line 71 of file atl2.h.

#define ATL2_READ_REGB (   a,
  reg 
)    (ioread8((a)->hw_addr + (reg)))

Definition at line 61 of file atl2.h.

#define ATL2_READ_REGW (   a,
  reg 
)    (ioread16((a)->hw_addr + (reg)))

Definition at line 66 of file atl2.h.

#define ATL2_WRITE_FLUSH (   a)    (ioread32((a)->hw_addr))

Definition at line 54 of file atl2.h.

#define ATL2_WRITE_REG (   a,
  reg,
  value 
)
Value:
((a)->hw_addr + (reg))))

Definition at line 51 of file atl2.h.

#define ATL2_WRITE_REG_ARRAY (   a,
  reg,
  offset,
  value 
)    (iowrite32((value), (((a)->hw_addr + (reg)) + ((offset) << 2))))

Definition at line 68 of file atl2.h.

#define ATL2_WRITE_REGB (   a,
  reg,
  value 
)
Value:
((a)->hw_addr + (reg))))

Definition at line 58 of file atl2.h.

#define ATL2_WRITE_REGW (   a,
  reg,
  value 
)
Value:
((a)->hw_addr + (reg))))

Definition at line 63 of file atl2.h.

#define AUTONEG_ADVERTISE_SPEED_DEFAULT   0x000F /* Everything */

Definition at line 202 of file atl2.h.

#define CMD_BUS_MASTER   0x0004

Definition at line 195 of file atl2.h.

#define CMD_IO_SPACE   0x0001

Definition at line 193 of file atl2.h.

#define CMD_MEM_WRT_INVALIDATE   PCI_COMMAND_INVALIDATE

Definition at line 49 of file atl2.h.

#define CMD_MEMORY_SPACE   0x0002

Definition at line 194 of file atl2.h.

#define DMAR_EN   0x1 /* 1: Enable DMAR */

Definition at line 129 of file atl2.h.

#define DMAW_EN   0x1

Definition at line 136 of file atl2.h.

#define ENET_HEADER_SIZE   14

Definition at line 205 of file atl2.h.

#define ETHERNET_FCS_SIZE   4

Definition at line 208 of file atl2.h.

#define IDLE_STATUS_DMAR   8 /* 1: DMAR is non-IDLE */

Definition at line 103 of file atl2.h.

#define IDLE_STATUS_DMAW   4 /* 1: DMAW is non-IDLE */

Definition at line 104 of file atl2.h.

#define IDLE_STATUS_RXMAC   1 /* 1: RXMAC is non-IDLE */

Definition at line 101 of file atl2.h.

#define IDLE_STATUS_TXMAC   2 /* 1: TXMAC is non-IDLE */

Definition at line 102 of file atl2.h.

#define IMR_NORMAL_MASK
Value:
(\
/*ISR_LINK_CHG |*/\
ISR_MANUAL |\
ISR_DMAR_TO_RST |\
ISR_DMAW_TO_RST |\
ISR_PHY |\
ISR_PHY_LINKDOWN |\
ISR_TS_UPDATE |\
ISR_RS_UPDATE)

Definition at line 168 of file atl2.h.

#define ISR_DMAR_TO_RST
Value:
0x200 /* DMAR op timeout interrupt. SW should
* do Reset */

Definition at line 156 of file atl2.h.

#define ISR_DMAW_TO_RST   0x400

Definition at line 157 of file atl2.h.

#define ISR_HOST_RXD_OV   0x100 /* Host rx data memory full , one pulse */

Definition at line 155 of file atl2.h.

#define ISR_HOST_TXD_UR   0x80

Definition at line 154 of file atl2.h.

#define ISR_LINK_CHG   0x40 /* Link Status Change Interrupt */

Definition at line 153 of file atl2.h.

#define ISR_MANUAL
Value:
2 /* Software manual interrupt, for debug. Set
* when SW_MAN_INT_EN is set in Table 51
* Selene Master Control Register
* (Offset 0x1400). */

Definition at line 148 of file atl2.h.

#define ISR_PHY   0x800 /* phy interrupt */

Definition at line 158 of file atl2.h.

#define ISR_RS_UPDATE
Value:
0x20000 /* interrupt ater new rx pkt status written
* to host. */

Definition at line 160 of file atl2.h.

#define ISR_RX_EVENT
Value:
ISR_RS_UPDATE)

Definition at line 165 of file atl2.h.

#define ISR_RXF_OV   4 /* RXF overflow interrupt */

Definition at line 149 of file atl2.h.

#define ISR_RXS_OV
Value:
0x20 /* Internal receive status buffer full
* interrupt */

Definition at line 152 of file atl2.h.

#define ISR_TIMER   1 /* Interrupt when Timer counts down to zero */

Definition at line 147 of file atl2.h.

#define ISR_TS_UPDATE
Value:
0x10000 /* interrupt after new tx pkt status written
* to host */

Definition at line 159 of file atl2.h.

#define ISR_TX_EARLY
Value:
0x40000 /* interrupt when txmac begin transmit one
* packet */

Definition at line 161 of file atl2.h.

#define ISR_TX_EVENT
Value:

Definition at line 163 of file atl2.h.

#define ISR_TXF_UR   8 /* TXF underrun interrupt */

Definition at line 150 of file atl2.h.

#define ISR_TXS_OV
Value:
0x10 /* Internal transmit status buffer full
* interrupt */

Definition at line 151 of file atl2.h.

#define MAC_CTRL_DBG_TX_BKPRESURE   0x100000 /* 1: TX max backoff */

Definition at line 110 of file atl2.h.

#define MAC_CTRL_HALF_LEFT_BUF_MASK   0xF /* MAC retry buf x32B */

Definition at line 113 of file atl2.h.

#define MAC_CTRL_HALF_LEFT_BUF_SHIFT   28

Definition at line 112 of file atl2.h.

#define MAC_CTRL_MACLP_CLK_PHY   0x8000000 /* 1: 25MHz from phy */

Definition at line 111 of file atl2.h.

#define MAX_JUMBO_FRAME_SIZE   0x2000

Definition at line 209 of file atl2.h.

#define MAXIMUM_ETHERNET_FRAME_SIZE   1518 /* with FCS */

Definition at line 206 of file atl2.h.

#define MDIO_WAIT_TIMES   10

Definition at line 107 of file atl2.h.

#define MEDIA_TYPE_100M_FULL   1

Definition at line 197 of file atl2.h.

#define MEDIA_TYPE_100M_HALF   2

Definition at line 198 of file atl2.h.

#define MEDIA_TYPE_10M_FULL   3

Definition at line 199 of file atl2.h.

#define MEDIA_TYPE_10M_HALF   4

Definition at line 200 of file atl2.h.

#define MII_DBG_ADDR   0x1D

Definition at line 188 of file atl2.h.

#define MII_DBG_DATA   0x1E

Definition at line 189 of file atl2.h.

#define MII_SMARTSPEED   0x14

Definition at line 187 of file atl2.h.

#define MINIMUM_ETHERNET_FRAME_SIZE   64 /* with FCS */

Definition at line 207 of file atl2.h.

#define PCI_COMMAND_REGISTER   PCI_COMMAND

Definition at line 48 of file atl2.h.

#define PCI_REG_COMMAND   0x04

Definition at line 192 of file atl2.h.

#define REG_DMAR   0x1580

Definition at line 128 of file atl2.h.

#define REG_DMAW   0x15A0

Definition at line 135 of file atl2.h.

#define REG_MB_RXD_RD_IDX   0x15F4 /* RXD Read index (unit: 1536byets) */

Definition at line 144 of file atl2.h.

#define REG_MB_TXD_WR_IDX   0x15f0 /* double word align */

Definition at line 143 of file atl2.h.

#define REG_PAUSE_OFF_TH
Value:
0x15AA /* RXD lower watermark of overflow
* threshold configuration register */

Definition at line 140 of file atl2.h.

#define REG_PAUSE_ON_TH
Value:
0x15A8 /* RXD high watermark of overflow
* threshold configuration register */

Definition at line 139 of file atl2.h.

#define REG_RXD_BASE_ADDR_LO
Value:
0x1554 /* The base address of the Transmit
* Status Memory low 32-bit(unit 8
* bytes) */

Definition at line 124 of file atl2.h.

#define REG_RXD_BUF_NUM
Value:
0x1558 /* Receive Data & Status Memory buffer
* number (unit 1536bytes, max
* 1536*2047) */

Definition at line 125 of file atl2.h.

#define REG_SRAM_RXRAM_END
Value:
0x1502 /* Internal tail address of RXRAM
* default: 2byte*1024 */

Definition at line 117 of file atl2.h.

#define REG_SRAM_TXRAM_END
Value:
0x1500 /* Internal tail address of TXRAM
* default: 2byte*1024 */

Definition at line 116 of file atl2.h.

#define REG_STS_RX_FILTER
Value:
0x170C /* Num packets dropped due to
* address filtering */

Definition at line 182 of file atl2.h.

#define REG_STS_RX_PAUSE   0x1700 /* Num pause packets received */

Definition at line 179 of file atl2.h.

#define REG_STS_RXD_OV
Value:
0x1704 /* Num frames dropped due to RX
* FIFO overflow */

Definition at line 180 of file atl2.h.

#define REG_STS_RXS_OV
Value:
0x1708 /* Num frames dropped due to RX
* Status Buffer Overflow */

Definition at line 181 of file atl2.h.

#define REG_TX_CUT_THRESH
Value:
0x1590 /* TxMac begin transmit packet
* threshold(unit word) */

Definition at line 132 of file atl2.h.

#define REG_TXD_BASE_ADDR_LO
Value:
0x1544 /* The base address of the Transmit
* Data Mem low 32-bit(dword align) */

Definition at line 120 of file atl2.h.

#define REG_TXD_MEM_SIZE
Value:
0x1548 /* Transmit Data Memory size(by
* double word , max 256KB) */

Definition at line 121 of file atl2.h.

#define REG_TXS_BASE_ADDR_LO
Value:
0x154C /* The base address of the Transmit
* Status Memory low 32-bit(dword word
* align) */

Definition at line 122 of file atl2.h.

#define REG_TXS_MEM_SIZE
Value:
0x1550 /* double word unit, max 4*2047
* bytes. */

Definition at line 123 of file atl2.h.

#define RX_PKT_STATUS_ALIGN_MASK   0x1

Definition at line 320 of file atl2.h.

#define RX_PKT_STATUS_ALIGN_SHIFT   26

Definition at line 321 of file atl2.h.

#define RX_PKT_STATUS_BCAST_MASK   0x1

Definition at line 302 of file atl2.h.

#define RX_PKT_STATUS_BCAST_SHIFT   17

Definition at line 303 of file atl2.h.

#define RX_PKT_STATUS_CODE_MASK   0x1

Definition at line 312 of file atl2.h.

#define RX_PKT_STATUS_CODE_SHIFT   22

Definition at line 313 of file atl2.h.

#define RX_PKT_STATUS_CRC_MASK   0x1

Definition at line 310 of file atl2.h.

#define RX_PKT_STATUS_CRC_SHIFT   21

Definition at line 311 of file atl2.h.

#define RX_PKT_STATUS_CTRL_MASK   0x1

Definition at line 308 of file atl2.h.

#define RX_PKT_STATUS_CTRL_SHIFT   20

Definition at line 309 of file atl2.h.

#define RX_PKT_STATUS_FRAG_MASK   0x1

Definition at line 316 of file atl2.h.

#define RX_PKT_STATUS_FRAG_SHIFT   24

Definition at line 317 of file atl2.h.

#define RX_PKT_STATUS_MCAST_MASK   0x1

Definition at line 304 of file atl2.h.

#define RX_PKT_STATUS_MCAST_SHIFT   18

Definition at line 305 of file atl2.h.

#define RX_PKT_STATUS_OK_MASK   0x1

Definition at line 300 of file atl2.h.

#define RX_PKT_STATUS_OK_SHIFT   16

Definition at line 301 of file atl2.h.

#define RX_PKT_STATUS_PAUSE_MASK   0x1

Definition at line 306 of file atl2.h.

#define RX_PKT_STATUS_PAUSE_SHIFT   19

Definition at line 307 of file atl2.h.

#define RX_PKT_STATUS_RUNT_MASK   0x1

Definition at line 314 of file atl2.h.

#define RX_PKT_STATUS_RUNT_SHIFT   23

Definition at line 315 of file atl2.h.

#define RX_PKT_STATUS_SIZE_MASK   0x7FF

Definition at line 298 of file atl2.h.

#define RX_PKT_STATUS_SIZE_SHIFT   0

Definition at line 299 of file atl2.h.

#define RX_PKT_STATUS_TRUNK_MASK   0x1

Definition at line 318 of file atl2.h.

#define RX_PKT_STATUS_TRUNK_SHIFT   25

Definition at line 319 of file atl2.h.

#define RX_PKT_STATUS_UPDATE_MASK   0x1

Definition at line 324 of file atl2.h.

#define RX_PKT_STATUS_UPDATE_SHIFT   31

Definition at line 325 of file atl2.h.

#define RX_PKT_STATUS_VLAN_MASK   0x1

Definition at line 322 of file atl2.h.

#define RX_PKT_STATUS_VLAN_SHIFT   27

Definition at line 323 of file atl2.h.

#define RX_PKT_STATUS_VLAN_TAG_MASK   0xFFFF

Definition at line 326 of file atl2.h.

#define RX_PKT_STATUS_VLAN_TAG_SHIFT   32

Definition at line 327 of file atl2.h.

#define TX_PKT_HEADER_INS_VLAN_MASK   0x1

Definition at line 221 of file atl2.h.

#define TX_PKT_HEADER_INS_VLAN_SHIFT   15

Definition at line 222 of file atl2.h.

#define TX_PKT_HEADER_SIZE_MASK   0x7FF

Definition at line 219 of file atl2.h.

#define TX_PKT_HEADER_SIZE_SHIFT   0

Definition at line 220 of file atl2.h.

#define TX_PKT_HEADER_VLAN_TAG_MASK   0xFFFF

Definition at line 223 of file atl2.h.

#define TX_PKT_HEADER_VLAN_TAG_SHIFT   16

Definition at line 224 of file atl2.h.

#define TX_PKT_STATUS_ABORT_COL_MASK   0x1

Definition at line 268 of file atl2.h.

#define TX_PKT_STATUS_ABORT_COL_SHIFT   26

Definition at line 269 of file atl2.h.

#define TX_PKT_STATUS_BCAST_MASK   0x1

Definition at line 250 of file atl2.h.

#define TX_PKT_STATUS_BCAST_SHIFT   17

Definition at line 251 of file atl2.h.

#define TX_PKT_STATUS_CTRL_MASK   0x1

Definition at line 256 of file atl2.h.

#define TX_PKT_STATUS_CTRL_SHIFT   20

Definition at line 257 of file atl2.h.

#define TX_PKT_STATUS_DEFER_MASK   0x1

Definition at line 258 of file atl2.h.

#define TX_PKT_STATUS_DEFER_SHIFT   21

Definition at line 259 of file atl2.h.

#define TX_PKT_STATUS_EXC_DEFER_MASK   0x1

Definition at line 260 of file atl2.h.

#define TX_PKT_STATUS_EXC_DEFER_SHIFT   22

Definition at line 261 of file atl2.h.

#define TX_PKT_STATUS_LATE_COL_MASK   0x1

Definition at line 266 of file atl2.h.

#define TX_PKT_STATUS_LATE_COL_SHIFT   25

Definition at line 267 of file atl2.h.

#define TX_PKT_STATUS_MCAST_MASK   0x1

Definition at line 252 of file atl2.h.

#define TX_PKT_STATUS_MCAST_SHIFT   18

Definition at line 253 of file atl2.h.

#define TX_PKT_STATUS_MULTI_COL_MASK   0x1

Definition at line 264 of file atl2.h.

#define TX_PKT_STATUS_MULTI_COL_SHIFT   24

Definition at line 265 of file atl2.h.

#define TX_PKT_STATUS_OK_MASK   0x1

Definition at line 248 of file atl2.h.

#define TX_PKT_STATUS_OK_SHIFT   16

Definition at line 249 of file atl2.h.

#define TX_PKT_STATUS_PAUSE_MASK   0x1

Definition at line 254 of file atl2.h.

#define TX_PKT_STATUS_PAUSE_SHIFT   19

Definition at line 255 of file atl2.h.

#define TX_PKT_STATUS_SINGLE_COL_MASK   0x1

Definition at line 262 of file atl2.h.

#define TX_PKT_STATUS_SINGLE_COL_SHIFT   23

Definition at line 263 of file atl2.h.

#define TX_PKT_STATUS_SIZE_MASK   0x7FF

Definition at line 246 of file atl2.h.

#define TX_PKT_STATUS_SIZE_SHIFT   0

Definition at line 247 of file atl2.h.

#define TX_PKT_STATUS_UNDERRUN_MASK   0x1

Definition at line 270 of file atl2.h.

#define TX_PKT_STATUS_UNDERRUN_SHIFT   27

Definition at line 271 of file atl2.h.

#define TX_PKT_STATUS_UPDATE_MASK   0x1

Definition at line 272 of file atl2.h.

#define TX_PKT_STATUS_UPDATE_SHIFT   31

Definition at line 273 of file atl2.h.

#define VLAN_SIZE   4

Definition at line 210 of file atl2.h.

Enumeration Type Documentation

Enumerator:
atl2_10_half 
atl2_10_full 
atl2_100_half 
atl2_100_full 

Definition at line 334 of file atl2.h.

Enumerator:
__ATL2_TESTING 
__ATL2_RESETTING 
__ATL2_DOWN 

Definition at line 492 of file atl2.h.