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

Go to the source code of this file.

Data Structures

struct  swStat
 
struct  xpakStat
 
struct  stat_block
 
struct  tx_fifo_config
 
struct  rx_ring_config
 
struct  config_param
 
struct  mac_addr
 
struct  TxFIFO_element
 
struct  TxD
 
struct  list_info_hold
 
struct  RxD_t
 
struct  RxD1
 
struct  RxD3
 
struct  RxD_block
 
struct  buffAdd
 
struct  rx_curr_get_info
 
struct  rx_curr_put_info
 
struct  tx_curr_get_info
 
struct  tx_curr_put_info
 
struct  rxd_info
 
struct  rx_block_info
 
struct  lro
 
struct  ring_info
 
struct  fifo_info
 
struct  mac_info
 
struct  s2io_msix_entry
 
struct  msix_info_st
 
struct  s2io_nic
 

Macros

#define TBD   0
 
#define s2BIT(loc)   (0x8000000000000000ULL >> (loc))
 
#define vBIT(val, loc, sz)   (((u64)val) << (64-loc-sz))
 
#define INV(d)   ((d&0xff)<<24) | (((d>>8)&0xff)<<16) | (((d>>16)&0xff)<<8)| ((d>>24)&0xff)
 
#define SUCCESS   0
 
#define FAILURE   -1
 
#define S2IO_MINUS_ONE   0xFFFFFFFFFFFFFFFFULL
 
#define S2IO_DISABLE_MAC_ENTRY   0xFFFFFFFFFFFFULL
 
#define S2IO_MAX_PCI_CONFIG_SPACE_REINIT   100
 
#define S2IO_BIT_RESET   1
 
#define S2IO_BIT_SET   2
 
#define CHECKBIT(value, nbit)   (value & (1 << nbit))
 
#define MAX_FLICKER_TIME   60000 /* 60 Secs */
 
#define XENA_MAX_OUTSTANDING_SPLITS(n)   (n << 4)
 
#define WATCH_DOG_TIMEOUT   15*HZ
 
#define EFILL   0x1234
 
#define ALIGN_SIZE   127
 
#define PCIX_COMMAND_REGISTER   0x62
 
#define ERR_DBG   0
 
#define INIT_DBG   1
 
#define INFO_DBG   2
 
#define TX_DBG   3
 
#define INTR_DBG   4
 
#define DBG_PRINT(dbg_level, fmt, args...)
 
#define L3_CKSUM_OK   0xFFFF
 
#define L4_CKSUM_OK   0xFFFF
 
#define S2IO_JUMBO_SIZE   9600
 
#define NO_STRIP_IN_PROMISC   2
 
#define MAX_TX_FIFOS   8
 
#define MAX_RX_RINGS   8
 
#define FIFO_DEFAULT_NUM   5
 
#define FIFO_UDP_MAX_NUM   2 /* 0 - even, 1 -odd ports */
 
#define FIFO_OTHER_MAX_NUM   1
 
#define MAX_RX_DESC_1   (MAX_RX_RINGS * MAX_RX_BLOCKS_PER_RING * 128)
 
#define MAX_RX_DESC_2   (MAX_RX_RINGS * MAX_RX_BLOCKS_PER_RING * 86)
 
#define MAX_TX_DESC   (MAX_AVAILABLE_TXDS)
 
#define MAX_AVAILABLE_TXDS   8192
 
#define TX_FIFO_PRI_0   0 /*Highest */
 
#define TX_FIFO_PRI_1   1
 
#define TX_FIFO_PRI_2   2
 
#define TX_FIFO_PRI_3   3
 
#define TX_FIFO_PRI_4   4
 
#define TX_FIFO_PRI_5   5
 
#define TX_FIFO_PRI_6   6
 
#define TX_FIFO_PRI_7   7 /*lowest */
 
#define NO_SNOOP_TXD   0x01
 
#define NO_SNOOP_TXD_BUFFER   0x02
 
#define RX_RING_PRI_0   0 /* highest */
 
#define RX_RING_PRI_1   1
 
#define RX_RING_PRI_2   2
 
#define RX_RING_PRI_3   3
 
#define RX_RING_PRI_4   4
 
#define RX_RING_PRI_5   5
 
#define RX_RING_PRI_6   6
 
#define RX_RING_PRI_7   7 /* lowest */
 
#define RING_ORG_BUFF1   0x01
 
#define RX_RING_ORG_BUFF3   0x03
 
#define RX_RING_ORG_BUFF5   0x05
 
#define NO_SNOOP_RXD   0x01
 
#define NO_SNOOP_RXD_BUFFER   0x02
 
#define NO_STEERING   0
 
#define TX_PRIORITY_STEERING   0x1
 
#define TX_DEFAULT_STEERING   0x2
 
#define INTA   0
 
#define MSI_X   2
 
#define MAX_RX_BLOCKS_PER_RING   150
 
#define HEADER_ETHERNET_II_802_3_SIZE   14
 
#define HEADER_802_2_SIZE   3
 
#define HEADER_SNAP_SIZE   5
 
#define HEADER_VLAN_SIZE   4
 
#define MIN_MTU   46
 
#define MAX_PYLD   1500
 
#define MAX_MTU   (MAX_PYLD+18)
 
#define MAX_MTU_VLAN   (MAX_PYLD+22)
 
#define MAX_PYLD_JUMBO   9600
 
#define MAX_MTU_JUMBO   (MAX_PYLD_JUMBO+18)
 
#define MAX_MTU_JUMBO_VLAN   (MAX_PYLD_JUMBO+22)
 
#define TX_FIFO_LAST_TXD_NUM(val)   vBIT(val,0,8)
 
#define TX_FIFO_FIRST_LIST   s2BIT(14)
 
#define TX_FIFO_LAST_LIST   s2BIT(15)
 
#define TX_FIFO_FIRSTNLAST_LIST   vBIT(3,14,2)
 
#define TX_FIFO_SPECIAL_FUNC   s2BIT(23)
 
#define TX_FIFO_DS_NO_SNOOP   s2BIT(31)
 
#define TX_FIFO_BUFF_NO_SNOOP   s2BIT(30)
 
#define TXD_LIST_OWN_XENA   s2BIT(7)
 
#define TXD_T_CODE   (s2BIT(12)|s2BIT(13)|s2BIT(14)|s2BIT(15))
 
#define TXD_T_CODE_OK(val)   (|(val & TXD_T_CODE))
 
#define GET_TXD_T_CODE(val)   ((val & TXD_T_CODE)<<12)
 
#define TXD_GATHER_CODE   (s2BIT(22) | s2BIT(23))
 
#define TXD_GATHER_CODE_FIRST   s2BIT(22)
 
#define TXD_GATHER_CODE_LAST   s2BIT(23)
 
#define TXD_TCP_LSO_EN   s2BIT(30)
 
#define TXD_UDP_COF_EN   s2BIT(31)
 
#define TXD_UFO_EN   s2BIT(31) | s2BIT(30)
 
#define TXD_TCP_LSO_MSS(val)   vBIT(val,34,14)
 
#define TXD_UFO_MSS(val)   vBIT(val,34,14)
 
#define TXD_BUFFER0_SIZE(val)   vBIT(val,48,16)
 
#define TXD_TX_CKO_CONTROL   (s2BIT(5)|s2BIT(6)|s2BIT(7))
 
#define TXD_TX_CKO_IPV4_EN   s2BIT(5)
 
#define TXD_TX_CKO_TCP_EN   s2BIT(6)
 
#define TXD_TX_CKO_UDP_EN   s2BIT(7)
 
#define TXD_VLAN_ENABLE   s2BIT(15)
 
#define TXD_VLAN_TAG(val)   vBIT(val,16,16)
 
#define TXD_INT_NUMBER(val)   vBIT(val,34,6)
 
#define TXD_INT_TYPE_PER_LIST   s2BIT(47)
 
#define TXD_INT_TYPE_UTILZ   s2BIT(46)
 
#define TXD_SET_MARKER   vBIT(0x6,0,4)
 
#define RXD_OWN_XENA   s2BIT(7)
 
#define RXD_T_CODE   (s2BIT(12)|s2BIT(13)|s2BIT(14)|s2BIT(15))
 
#define RXD_FRAME_PROTO   vBIT(0xFFFF,24,8)
 
#define RXD_FRAME_VLAN_TAG   s2BIT(24)
 
#define RXD_FRAME_PROTO_IPV4   s2BIT(27)
 
#define RXD_FRAME_PROTO_IPV6   s2BIT(28)
 
#define RXD_FRAME_IP_FRAG   s2BIT(29)
 
#define RXD_FRAME_PROTO_TCP   s2BIT(30)
 
#define RXD_FRAME_PROTO_UDP   s2BIT(31)
 
#define TCP_OR_UDP_FRAME   (RXD_FRAME_PROTO_TCP | RXD_FRAME_PROTO_UDP)
 
#define RXD_GET_L3_CKSUM(val)   ((u16)(val>> 16) & 0xFFFF)
 
#define RXD_GET_L4_CKSUM(val)   ((u16)(val) & 0xFFFF)
 
#define THE_RXD_MARK   0x3
 
#define SET_RXD_MARKER   vBIT(THE_RXD_MARK, 0, 2)
 
#define GET_RXD_MARKER(ctrl)   ((ctrl & SET_RXD_MARKER) >> 62)
 
#define MASK_VLAN_TAG   vBIT(0xFFFF,48,16)
 
#define SET_VLAN_TAG(val)   vBIT(val,48,16)
 
#define SET_NUM_TAG(val)   vBIT(val,16,32)
 
#define MASK_BUFFER0_SIZE_1   vBIT(0x3FFF,2,14)
 
#define SET_BUFFER0_SIZE_1(val)   vBIT(val,2,14)
 
#define RXD_GET_BUFFER0_SIZE_1(_Control_2)   (u16)((_Control_2 & MASK_BUFFER0_SIZE_1) >> 48)
 
#define MASK_BUFFER0_SIZE_3   vBIT(0xFF,2,14)
 
#define MASK_BUFFER1_SIZE_3   vBIT(0xFFFF,16,16)
 
#define MASK_BUFFER2_SIZE_3   vBIT(0xFFFF,32,16)
 
#define SET_BUFFER0_SIZE_3(val)   vBIT(val,8,8)
 
#define SET_BUFFER1_SIZE_3(val)   vBIT(val,16,16)
 
#define SET_BUFFER2_SIZE_3(val)   vBIT(val,32,16)
 
#define RXD_GET_BUFFER0_SIZE_3(Control_2)   (u8)((Control_2 & MASK_BUFFER0_SIZE_3) >> 48)
 
#define RXD_GET_BUFFER1_SIZE_3(Control_2)   (u16)((Control_2 & MASK_BUFFER1_SIZE_3) >> 32)
 
#define RXD_GET_BUFFER2_SIZE_3(Control_2)   (u16)((Control_2 & MASK_BUFFER2_SIZE_3) >> 16)
 
#define BUF0_LEN   40
 
#define BUF1_LEN   1
 
#define MAX_RXDS_PER_BLOCK_1   127
 
#define END_OF_BLOCK   0xFEFFFFFFFFFFFFFFULL
 
#define SIZE_OF_BLOCK   4096
 
#define RXD_MODE_1   0 /* One Buffer mode */
 
#define RXD_MODE_3B   1 /* Two Buffer mode */
 
#define MAX_LRO_SESSIONS   32
 
#define FIFO_QUEUE_START   0
 
#define FIFO_QUEUE_STOP   1
 
#define DEFAULT_FIFO_0_LEN   4096
 
#define DEFAULT_FIFO_1_7_LEN   512
 
#define SMALL_BLK_CNT   30
 
#define LARGE_BLK_CNT   100
 
#define MAX_REQUESTED_MSI_X   9
 
#define MSIX_ALARM_TYPE   1
 
#define MSIX_RING_TYPE   2
 
#define MSIX_REGISTERED_SUCCESS   0xAA
 
#define MAX_MAC_SUPPORTED   16
 
#define MAX_SUPPORTED_MULTICASTS   MAX_MAC_SUPPORTED
 
#define PROMISC   1
 
#define ALL_MULTI   2
 
#define MAX_ADDRS_SUPPORTED   64
 
#define LINK_DOWN   1
 
#define LINK_UP   2
 
#define MSIX_FLG   0xA5
 
#define XFRAME_I_DEVICE   1
 
#define XFRAME_II_DEVICE   2
 
#define VPD_STRING_LEN   80
 
#define RESET_ERROR   1
 
#define CMD_ERROR   2
 
#define UF   1
 
#define LF   2
 
#define ENABLE_INTRS   1
 
#define DISABLE_INTRS   2
 
#define TX_PIC_INTR   (0x0001<<0)
 
#define TX_DMA_INTR   (0x0001<<1)
 
#define TX_MAC_INTR   (0x0001<<2)
 
#define TX_XGXS_INTR   (0x0001<<3)
 
#define TX_TRAFFIC_INTR   (0x0001<<4)
 
#define RX_PIC_INTR   (0x0001<<5)
 
#define RX_DMA_INTR   (0x0001<<6)
 
#define RX_MAC_INTR   (0x0001<<7)
 
#define RX_XGXS_INTR   (0x0001<<8)
 
#define RX_TRAFFIC_INTR   (0x0001<<9)
 
#define MC_INTR   (0x0001<<10)
 
#define ENA_ALL_INTRS
 
#define DISABLE_ALL_INTRS   0xFFFFFFFFFFFFFFFFULL
 
#define TXPIC_INT_M   s2BIT(0)
 
#define TXDMA_INT_M   s2BIT(1)
 
#define TXMAC_INT_M   s2BIT(2)
 
#define TXXGXS_INT_M   s2BIT(3)
 
#define TXTRAFFIC_INT_M   s2BIT(8)
 
#define PIC_RX_INT_M   s2BIT(32)
 
#define RXDMA_INT_M   s2BIT(33)
 
#define RXMAC_INT_M   s2BIT(34)
 
#define MC_INT_M   s2BIT(35)
 
#define RXXGXS_INT_M   s2BIT(36)
 
#define RXTRAFFIC_INT_M   s2BIT(40)
 
#define TXDMA_PFC_INT_M   s2BIT(0)
 
#define TXDMA_PCC_INT_M   s2BIT(2)
 
#define PFC_MISC_ERR_1   s2BIT(0) /* Interrupt to indicate FIFO full */
 
#define PCC_FB_ECC_ERR
 
#define RXD_GET_VLAN_TAG(Control_2)   (u16)(Control_2 & MASK_VLAN_TAG)
 
#define s2io_tcp_mss(skb)   skb_shinfo(skb)->gso_size
 
#define s2io_udp_mss(skb)   skb_shinfo(skb)->gso_size
 
#define s2io_offload_type(skb)   skb_shinfo(skb)->gso_type
 
#define S2IO_PARM_INT(X, def_val)
 

Enumerations

enum  {
  XENA_ONE_SPLIT_TRANSACTION = 0, XENA_TWO_SPLIT_TRANSACTION = 1, XENA_THREE_SPLIT_TRANSACTION = 2, XENA_FOUR_SPLIT_TRANSACTION = 3,
  XENA_EIGHT_SPLIT_TRANSACTION = 4, XENA_TWELVE_SPLIT_TRANSACTION = 5, XENA_SIXTEEN_SPLIT_TRANSACTION = 6, XENA_THIRTYTWO_SPLIT_TRANSACTION = 7
}
 
enum  s2io_device_state_t { __S2IO_STATE_LINK_TASK =0, __S2IO_STATE_CARD_UP }
 

Variables

struct lro ____cacheline_aligned
 

Macro Definition Documentation

#define ALIGN_SIZE   127

Definition at line 50 of file s2io.h.

#define ALL_MULTI   2

Definition at line 887 of file s2io.h.

#define BUF0_LEN   40

Definition at line 586 of file s2io.h.

#define BUF1_LEN   1

Definition at line 587 of file s2io.h.

#define CHECKBIT (   value,
  nbit 
)    (value & (1 << nbit))

Definition at line 29 of file s2io.h.

#define CMD_ERROR   2

Definition at line 971 of file s2io.h.

#define DBG_PRINT (   dbg_level,
  fmt,
  args... 
)
Value:
do { \
if (dbg_level <= debug_level) \
pr_info(fmt, ##args); \
} while (0)

Definition at line 67 of file s2io.h.

#define DEFAULT_FIFO_0_LEN   4096

Definition at line 819 of file s2io.h.

#define DEFAULT_FIFO_1_7_LEN   512

Definition at line 820 of file s2io.h.

#define DISABLE_ALL_INTRS   0xFFFFFFFFFFFFFFFFULL

Definition at line 1047 of file s2io.h.

#define DISABLE_INTRS   2

Definition at line 1020 of file s2io.h.

#define EFILL   0x1234

Definition at line 49 of file s2io.h.

#define ENA_ALL_INTRS
Value:
TX_DMA_INTR | \
TX_MAC_INTR | \
TX_XGXS_INTR | \
TX_TRAFFIC_INTR | \
RX_PIC_INTR | \
RX_DMA_INTR | \
RX_MAC_INTR | \
RX_XGXS_INTR | \
RX_TRAFFIC_INTR | \
MC_INTR )

Definition at line 1034 of file s2io.h.

#define ENABLE_INTRS   1

Definition at line 1019 of file s2io.h.

#define END_OF_BLOCK   0xFEFFFFFFFFFFFFFFULL

Definition at line 603 of file s2io.h.

#define ERR_DBG   0

Definition at line 57 of file s2io.h.

#define FAILURE   -1

Definition at line 23 of file s2io.h.

#define FIFO_DEFAULT_NUM   5

Definition at line 353 of file s2io.h.

#define FIFO_OTHER_MAX_NUM   1

Definition at line 355 of file s2io.h.

#define FIFO_QUEUE_START   0

Definition at line 771 of file s2io.h.

#define FIFO_QUEUE_STOP   1

Definition at line 772 of file s2io.h.

#define FIFO_UDP_MAX_NUM   2 /* 0 - even, 1 -odd ports */

Definition at line 354 of file s2io.h.

#define GET_RXD_MARKER (   ctrl)    ((ctrl & SET_RXD_MARKER) >> 62)

Definition at line 551 of file s2io.h.

#define GET_TXD_T_CODE (   val)    ((val & TXD_T_CODE)<<12)

Definition at line 498 of file s2io.h.

#define HEADER_802_2_SIZE   3

Definition at line 452 of file s2io.h.

#define HEADER_ETHERNET_II_802_3_SIZE   14

Definition at line 451 of file s2io.h.

#define HEADER_SNAP_SIZE   5

Definition at line 453 of file s2io.h.

#define HEADER_VLAN_SIZE   4

Definition at line 454 of file s2io.h.

#define INFO_DBG   2

Definition at line 59 of file s2io.h.

#define INIT_DBG   1

Definition at line 58 of file s2io.h.

#define INTA   0

Definition at line 438 of file s2io.h.

#define INTR_DBG   4

Definition at line 61 of file s2io.h.

#define INV (   d)    ((d&0xff)<<24) | (((d>>8)&0xff)<<16) | (((d>>16)&0xff)<<8)| ((d>>24)&0xff)

Definition at line 19 of file s2io.h.

#define L3_CKSUM_OK   0xFFFF

Definition at line 73 of file s2io.h.

#define L4_CKSUM_OK   0xFFFF

Definition at line 74 of file s2io.h.

#define LARGE_BLK_CNT   100

Definition at line 822 of file s2io.h.

#define LF   2

Definition at line 1001 of file s2io.h.

#define LINK_DOWN   1

Definition at line 937 of file s2io.h.

#define LINK_UP   2

Definition at line 938 of file s2io.h.

#define MASK_BUFFER0_SIZE_1   vBIT(0x3FFF,2,14)

Definition at line 563 of file s2io.h.

#define MASK_BUFFER0_SIZE_3   vBIT(0xFF,2,14)

Definition at line 574 of file s2io.h.

#define MASK_BUFFER1_SIZE_3   vBIT(0xFFFF,16,16)

Definition at line 575 of file s2io.h.

#define MASK_BUFFER2_SIZE_3   vBIT(0xFFFF,32,16)

Definition at line 576 of file s2io.h.

#define MASK_VLAN_TAG   vBIT(0xFFFF,48,16)

Definition at line 553 of file s2io.h.

#define MAX_ADDRS_SUPPORTED   64

Definition at line 889 of file s2io.h.

#define MAX_AVAILABLE_TXDS   8192

Definition at line 378 of file s2io.h.

#define MAX_FLICKER_TIME   60000 /* 60 Secs */

Definition at line 32 of file s2io.h.

#define MAX_LRO_SESSIONS   32

Definition at line 698 of file s2io.h.

#define MAX_MAC_SUPPORTED   16

Definition at line 869 of file s2io.h.

#define MAX_MTU   (MAX_PYLD+18)

Definition at line 458 of file s2io.h.

#define MAX_MTU_JUMBO   (MAX_PYLD_JUMBO+18)

Definition at line 461 of file s2io.h.

#define MAX_MTU_JUMBO_VLAN   (MAX_PYLD_JUMBO+22)

Definition at line 462 of file s2io.h.

#define MAX_MTU_VLAN   (MAX_PYLD+22)

Definition at line 459 of file s2io.h.

#define MAX_PYLD   1500

Definition at line 457 of file s2io.h.

#define MAX_PYLD_JUMBO   9600

Definition at line 460 of file s2io.h.

#define MAX_REQUESTED_MSI_X   9

Definition at line 828 of file s2io.h.

#define MAX_RX_BLOCKS_PER_RING   150

Definition at line 447 of file s2io.h.

#define MAX_RX_DESC_1   (MAX_RX_RINGS * MAX_RX_BLOCKS_PER_RING * 128)

Definition at line 358 of file s2io.h.

#define MAX_RX_DESC_2   (MAX_RX_RINGS * MAX_RX_BLOCKS_PER_RING * 86)

Definition at line 359 of file s2io.h.

#define MAX_RX_RINGS   8

Definition at line 351 of file s2io.h.

#define MAX_RXDS_PER_BLOCK_1   127

Definition at line 599 of file s2io.h.

#define MAX_SUPPORTED_MULTICASTS   MAX_MAC_SUPPORTED

Definition at line 870 of file s2io.h.

#define MAX_TX_DESC   (MAX_AVAILABLE_TXDS)

Definition at line 360 of file s2io.h.

#define MAX_TX_FIFOS   8

Definition at line 350 of file s2io.h.

#define MC_INT_M   s2BIT(35)

Definition at line 1057 of file s2io.h.

#define MC_INTR   (0x0001<<10)

Definition at line 1033 of file s2io.h.

#define MIN_MTU   46

Definition at line 456 of file s2io.h.

#define MSI_X   2

Definition at line 439 of file s2io.h.

#define MSIX_ALARM_TYPE   1

Definition at line 836 of file s2io.h.

#define MSIX_FLG   0xA5

Definition at line 943 of file s2io.h.

#define MSIX_REGISTERED_SUCCESS   0xAA

Definition at line 840 of file s2io.h.

#define MSIX_RING_TYPE   2

Definition at line 837 of file s2io.h.

#define NO_SNOOP_RXD   0x01

Definition at line 417 of file s2io.h.

#define NO_SNOOP_RXD_BUFFER   0x02

Definition at line 418 of file s2io.h.

#define NO_SNOOP_TXD   0x01

Definition at line 392 of file s2io.h.

#define NO_SNOOP_TXD_BUFFER   0x02

Definition at line 393 of file s2io.h.

#define NO_STEERING   0

Definition at line 429 of file s2io.h.

#define NO_STRIP_IN_PROMISC   2

Definition at line 343 of file s2io.h.

#define PCC_FB_ECC_ERR
Value:
vBIT(0xff, 16, 8) /* Interrupt to indicate
PCC_FB_ECC Error. */

Definition at line 1071 of file s2io.h.

#define PCIX_COMMAND_REGISTER   0x62

Definition at line 51 of file s2io.h.

#define PFC_MISC_ERR_1   s2BIT(0) /* Interrupt to indicate FIFO full */

Definition at line 1068 of file s2io.h.

#define PIC_RX_INT_M   s2BIT(32)

Definition at line 1054 of file s2io.h.

#define PROMISC   1

Definition at line 886 of file s2io.h.

#define RESET_ERROR   1

Definition at line 970 of file s2io.h.

#define RING_ORG_BUFF1   0x01

Definition at line 412 of file s2io.h.

#define RX_DMA_INTR   (0x0001<<6)

Definition at line 1029 of file s2io.h.

#define RX_MAC_INTR   (0x0001<<7)

Definition at line 1030 of file s2io.h.

#define RX_PIC_INTR   (0x0001<<5)

Definition at line 1028 of file s2io.h.

#define RX_RING_ORG_BUFF3   0x03

Definition at line 413 of file s2io.h.

#define RX_RING_ORG_BUFF5   0x05

Definition at line 414 of file s2io.h.

#define RX_RING_PRI_0   0 /* highest */

Definition at line 400 of file s2io.h.

#define RX_RING_PRI_1   1

Definition at line 401 of file s2io.h.

#define RX_RING_PRI_2   2

Definition at line 402 of file s2io.h.

#define RX_RING_PRI_3   3

Definition at line 403 of file s2io.h.

#define RX_RING_PRI_4   4

Definition at line 404 of file s2io.h.

#define RX_RING_PRI_5   5

Definition at line 405 of file s2io.h.

#define RX_RING_PRI_6   6

Definition at line 406 of file s2io.h.

#define RX_RING_PRI_7   7 /* lowest */

Definition at line 407 of file s2io.h.

#define RX_TRAFFIC_INTR   (0x0001<<9)

Definition at line 1032 of file s2io.h.

#define RX_XGXS_INTR   (0x0001<<8)

Definition at line 1031 of file s2io.h.

#define RXD_FRAME_IP_FRAG   s2BIT(29)

Definition at line 541 of file s2io.h.

#define RXD_FRAME_PROTO   vBIT(0xFFFF,24,8)

Definition at line 537 of file s2io.h.

#define RXD_FRAME_PROTO_IPV4   s2BIT(27)

Definition at line 539 of file s2io.h.

#define RXD_FRAME_PROTO_IPV6   s2BIT(28)

Definition at line 540 of file s2io.h.

#define RXD_FRAME_PROTO_TCP   s2BIT(30)

Definition at line 542 of file s2io.h.

#define RXD_FRAME_PROTO_UDP   s2BIT(31)

Definition at line 543 of file s2io.h.

#define RXD_FRAME_VLAN_TAG   s2BIT(24)

Definition at line 538 of file s2io.h.

#define RXD_GET_BUFFER0_SIZE_1 (   _Control_2)    (u16)((_Control_2 & MASK_BUFFER0_SIZE_1) >> 48)

Definition at line 565 of file s2io.h.

#define RXD_GET_BUFFER0_SIZE_3 (   Control_2)    (u8)((Control_2 & MASK_BUFFER0_SIZE_3) >> 48)

Definition at line 580 of file s2io.h.

#define RXD_GET_BUFFER1_SIZE_3 (   Control_2)    (u16)((Control_2 & MASK_BUFFER1_SIZE_3) >> 32)

Definition at line 582 of file s2io.h.

#define RXD_GET_BUFFER2_SIZE_3 (   Control_2)    (u16)((Control_2 & MASK_BUFFER2_SIZE_3) >> 16)

Definition at line 584 of file s2io.h.

#define RXD_GET_L3_CKSUM (   val)    ((u16)(val>> 16) & 0xFFFF)

Definition at line 545 of file s2io.h.

#define RXD_GET_L4_CKSUM (   val)    ((u16)(val) & 0xFFFF)

Definition at line 546 of file s2io.h.

#define RXD_GET_VLAN_TAG (   Control_2)    (u16)(Control_2 & MASK_VLAN_TAG)

Definition at line 1073 of file s2io.h.

#define RXD_MODE_1   0 /* One Buffer mode */

Definition at line 614 of file s2io.h.

#define RXD_MODE_3B   1 /* Two Buffer mode */

Definition at line 615 of file s2io.h.

#define RXD_OWN_XENA   s2BIT(7)

Definition at line 535 of file s2io.h.

#define RXD_T_CODE   (s2BIT(12)|s2BIT(13)|s2BIT(14)|s2BIT(15))

Definition at line 536 of file s2io.h.

#define RXDMA_INT_M   s2BIT(33)

Definition at line 1055 of file s2io.h.

#define RXMAC_INT_M   s2BIT(34)

Definition at line 1056 of file s2io.h.

#define RXTRAFFIC_INT_M   s2BIT(40)

Definition at line 1059 of file s2io.h.

#define RXXGXS_INT_M   s2BIT(36)

Definition at line 1058 of file s2io.h.

#define s2BIT (   loc)    (0x8000000000000000ULL >> (loc))

Definition at line 17 of file s2io.h.

#define S2IO_BIT_RESET   1

Definition at line 27 of file s2io.h.

#define S2IO_BIT_SET   2

Definition at line 28 of file s2io.h.

#define S2IO_DISABLE_MAC_ENTRY   0xFFFFFFFFFFFFULL

Definition at line 25 of file s2io.h.

#define S2IO_JUMBO_SIZE   9600

Definition at line 75 of file s2io.h.

#define S2IO_MAX_PCI_CONFIG_SPACE_REINIT   100

Definition at line 26 of file s2io.h.

#define S2IO_MINUS_ONE   0xFFFFFFFFFFFFFFFFULL

Definition at line 24 of file s2io.h.

#define s2io_offload_type (   skb)    skb_shinfo(skb)->gso_type

Definition at line 1141 of file s2io.h.

#define S2IO_PARM_INT (   X,
  def_val 
)
Value:
static unsigned int X = def_val;\
module_param(X , uint, 0);

Definition at line 1143 of file s2io.h.

#define s2io_tcp_mss (   skb)    skb_shinfo(skb)->gso_size

Definition at line 1139 of file s2io.h.

#define s2io_udp_mss (   skb)    skb_shinfo(skb)->gso_size

Definition at line 1140 of file s2io.h.

#define SET_BUFFER0_SIZE_1 (   val)    vBIT(val,2,14)

Definition at line 564 of file s2io.h.

#define SET_BUFFER0_SIZE_3 (   val)    vBIT(val,8,8)

Definition at line 577 of file s2io.h.

#define SET_BUFFER1_SIZE_3 (   val)    vBIT(val,16,16)

Definition at line 578 of file s2io.h.

#define SET_BUFFER2_SIZE_3 (   val)    vBIT(val,32,16)

Definition at line 579 of file s2io.h.

#define SET_NUM_TAG (   val)    vBIT(val,16,32)

Definition at line 555 of file s2io.h.

#define SET_RXD_MARKER   vBIT(THE_RXD_MARK, 0, 2)

Definition at line 550 of file s2io.h.

#define SET_VLAN_TAG (   val)    vBIT(val,48,16)

Definition at line 554 of file s2io.h.

#define SIZE_OF_BLOCK   4096

Definition at line 612 of file s2io.h.

#define SMALL_BLK_CNT   30

Definition at line 821 of file s2io.h.

#define SUCCESS   0

Definition at line 22 of file s2io.h.

#define TBD   0

Definition at line 16 of file s2io.h.

#define TCP_OR_UDP_FRAME   (RXD_FRAME_PROTO_TCP | RXD_FRAME_PROTO_UDP)

Definition at line 544 of file s2io.h.

#define THE_RXD_MARK   0x3

Definition at line 549 of file s2io.h.

#define TX_DBG   3

Definition at line 60 of file s2io.h.

#define TX_DEFAULT_STEERING   0x2

Definition at line 431 of file s2io.h.

#define TX_DMA_INTR   (0x0001<<1)

Definition at line 1024 of file s2io.h.

#define TX_FIFO_BUFF_NO_SNOOP   s2BIT(30)

Definition at line 488 of file s2io.h.

#define TX_FIFO_DS_NO_SNOOP   s2BIT(31)

Definition at line 487 of file s2io.h.

#define TX_FIFO_FIRST_LIST   s2BIT(14)

Definition at line 483 of file s2io.h.

#define TX_FIFO_FIRSTNLAST_LIST   vBIT(3,14,2)

Definition at line 485 of file s2io.h.

#define TX_FIFO_LAST_LIST   s2BIT(15)

Definition at line 484 of file s2io.h.

#define TX_FIFO_LAST_TXD_NUM (   val)    vBIT(val,0,8)

Definition at line 482 of file s2io.h.

#define TX_FIFO_PRI_0   0 /*Highest */

Definition at line 381 of file s2io.h.

#define TX_FIFO_PRI_1   1

Definition at line 382 of file s2io.h.

#define TX_FIFO_PRI_2   2

Definition at line 383 of file s2io.h.

#define TX_FIFO_PRI_3   3

Definition at line 384 of file s2io.h.

#define TX_FIFO_PRI_4   4

Definition at line 385 of file s2io.h.

#define TX_FIFO_PRI_5   5

Definition at line 386 of file s2io.h.

#define TX_FIFO_PRI_6   6

Definition at line 387 of file s2io.h.

#define TX_FIFO_PRI_7   7 /*lowest */

Definition at line 388 of file s2io.h.

#define TX_FIFO_SPECIAL_FUNC   s2BIT(23)

Definition at line 486 of file s2io.h.

#define TX_MAC_INTR   (0x0001<<2)

Definition at line 1025 of file s2io.h.

#define TX_PIC_INTR   (0x0001<<0)

Definition at line 1023 of file s2io.h.

#define TX_PRIORITY_STEERING   0x1

Definition at line 430 of file s2io.h.

#define TX_TRAFFIC_INTR   (0x0001<<4)

Definition at line 1027 of file s2io.h.

#define TX_XGXS_INTR   (0x0001<<3)

Definition at line 1026 of file s2io.h.

#define TXD_BUFFER0_SIZE (   val)    vBIT(val,48,16)

Definition at line 507 of file s2io.h.

#define TXD_GATHER_CODE   (s2BIT(22) | s2BIT(23))

Definition at line 499 of file s2io.h.

#define TXD_GATHER_CODE_FIRST   s2BIT(22)

Definition at line 500 of file s2io.h.

#define TXD_GATHER_CODE_LAST   s2BIT(23)

Definition at line 501 of file s2io.h.

#define TXD_INT_NUMBER (   val)    vBIT(val,34,6)

Definition at line 516 of file s2io.h.

#define TXD_INT_TYPE_PER_LIST   s2BIT(47)

Definition at line 517 of file s2io.h.

#define TXD_INT_TYPE_UTILZ   s2BIT(46)

Definition at line 518 of file s2io.h.

#define TXD_LIST_OWN_XENA   s2BIT(7)

Definition at line 495 of file s2io.h.

#define TXD_SET_MARKER   vBIT(0x6,0,4)

Definition at line 519 of file s2io.h.

#define TXD_T_CODE   (s2BIT(12)|s2BIT(13)|s2BIT(14)|s2BIT(15))

Definition at line 496 of file s2io.h.

#define TXD_T_CODE_OK (   val)    (|(val & TXD_T_CODE))

Definition at line 497 of file s2io.h.

#define TXD_TCP_LSO_EN   s2BIT(30)

Definition at line 502 of file s2io.h.

#define TXD_TCP_LSO_MSS (   val)    vBIT(val,34,14)

Definition at line 505 of file s2io.h.

#define TXD_TX_CKO_CONTROL   (s2BIT(5)|s2BIT(6)|s2BIT(7))

Definition at line 510 of file s2io.h.

#define TXD_TX_CKO_IPV4_EN   s2BIT(5)

Definition at line 511 of file s2io.h.

#define TXD_TX_CKO_TCP_EN   s2BIT(6)

Definition at line 512 of file s2io.h.

#define TXD_TX_CKO_UDP_EN   s2BIT(7)

Definition at line 513 of file s2io.h.

#define TXD_UDP_COF_EN   s2BIT(31)

Definition at line 503 of file s2io.h.

#define TXD_UFO_EN   s2BIT(31) | s2BIT(30)

Definition at line 504 of file s2io.h.

#define TXD_UFO_MSS (   val)    vBIT(val,34,14)

Definition at line 506 of file s2io.h.

#define TXD_VLAN_ENABLE   s2BIT(15)

Definition at line 514 of file s2io.h.

#define TXD_VLAN_TAG (   val)    vBIT(val,16,16)

Definition at line 515 of file s2io.h.

#define TXDMA_INT_M   s2BIT(1)

Definition at line 1050 of file s2io.h.

#define TXDMA_PCC_INT_M   s2BIT(2)

Definition at line 1065 of file s2io.h.

#define TXDMA_PFC_INT_M   s2BIT(0)

Definition at line 1064 of file s2io.h.

#define TXMAC_INT_M   s2BIT(2)

Definition at line 1051 of file s2io.h.

#define TXPIC_INT_M   s2BIT(0)

Definition at line 1049 of file s2io.h.

#define TXTRAFFIC_INT_M   s2BIT(8)

Definition at line 1053 of file s2io.h.

#define TXXGXS_INT_M   s2BIT(3)

Definition at line 1052 of file s2io.h.

#define UF   1

Definition at line 1000 of file s2io.h.

#define vBIT (   val,
  loc,
  sz 
)    (((u64)val) << (64-loc-sz))

Definition at line 18 of file s2io.h.

#define VPD_STRING_LEN   80

Definition at line 965 of file s2io.h.

#define WATCH_DOG_TIMEOUT   15*HZ

Definition at line 48 of file s2io.h.

#define XENA_MAX_OUTSTANDING_SPLITS (   n)    (n << 4)

Definition at line 45 of file s2io.h.

#define XFRAME_I_DEVICE   1

Definition at line 955 of file s2io.h.

#define XFRAME_II_DEVICE   2

Definition at line 956 of file s2io.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
XENA_ONE_SPLIT_TRANSACTION 
XENA_TWO_SPLIT_TRANSACTION 
XENA_THREE_SPLIT_TRANSACTION 
XENA_FOUR_SPLIT_TRANSACTION 
XENA_EIGHT_SPLIT_TRANSACTION 
XENA_TWELVE_SPLIT_TRANSACTION 
XENA_SIXTEEN_SPLIT_TRANSACTION 
XENA_THIRTYTWO_SPLIT_TRANSACTION 

Definition at line 35 of file s2io.h.

Enumerator:
__S2IO_STATE_LINK_TASK 
__S2IO_STATE_CARD_UP 

Definition at line 849 of file s2io.h.

Variable Documentation