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

Go to the source code of this file.

Data Structures

struct  sge_qstat
 
struct  rsp_ctrl
 

Macros

#define RSPD_NEWBUF   0x80000000U
 
#define RSPD_LEN(x)   (((x) >> 0) & 0x7fffffffU)
 
#define RSPD_QID(x)   RSPD_LEN(x)
 
#define RSPD_GEN(x)   ((x) >> 7)
 
#define RSPD_TYPE(x)   (((x) >> 4) & 3)
 
#define QINTR_CNT_EN   0x1
 
#define QINTR_TIMER_IDX(x)   ((x) << 1)
 
#define QINTR_TIMER_IDX_GET(x)   (((x) >> 1) & 0x7)
 
#define FLASH_START(start)   ((start) * SF_SEC_SIZE)
 
#define FLASH_MAX_SIZE(nsecs)   ((nsecs) * SF_SEC_SIZE)
 

Enumerations

enum  {
  NCHAN = 4, MAX_MTU = 9600, EEPROMSIZE = 17408, EEPROMVSIZE = 32768,
  EEPROMPFSIZE = 1024, RSS_NENTRIES = 2048, TCB_SIZE = 128, NMTUS = 16,
  NCCTRL_WIN = 32, NEXACT_MAC = 336, L2T_SIZE = 4096, MBOX_LEN = 64,
  TRACE_LEN = 112, FILTER_OPT_LEN = 36, NWOL_PAT = 8, WOL_PAT_LEN = 128
}
 
enum  { SF_PAGE_SIZE = 256, SF_SEC_SIZE = 64 * 1024 }
 
enum  { RSP_TYPE_FLBUF, RSP_TYPE_CPL, RSP_TYPE_INTR }
 
enum  { MBOX_OWNER_NONE, MBOX_OWNER_FW, MBOX_OWNER_DRV }
 
enum  {
  SGE_MAX_WR_LEN = 512, SGE_NTIMERS = 6, SGE_NCOUNTERS = 4, SGE_TIMER_RSTRT_CNTR = 6,
  SGE_TIMER_UPD_CIDX = 7, SGE_EQ_IDXSIZE = 64, SGE_INTRDST_PCI = 0, SGE_INTRDST_IQ = 1,
  SGE_UPDATEDEL_NONE = 0, SGE_UPDATEDEL_INTR = 1, SGE_UPDATEDEL_STPG = 2, SGE_UPDATEDEL_BOTH = 3,
  SGE_HOSTFCMODE_NONE = 0, SGE_HOSTFCMODE_IQ = 1, SGE_HOSTFCMODE_STPG = 2, SGE_HOSTFCMODE_BOTH = 3,
  SGE_FETCHBURSTMIN_16B = 0, SGE_FETCHBURSTMIN_32B = 1, SGE_FETCHBURSTMIN_64B = 2, SGE_FETCHBURSTMIN_128B = 3,
  SGE_FETCHBURSTMAX_64B = 0, SGE_FETCHBURSTMAX_128B = 1, SGE_FETCHBURSTMAX_256B = 2, SGE_FETCHBURSTMAX_512B = 3,
  SGE_CIDXFLUSHTHRESH_1 = 0, SGE_CIDXFLUSHTHRESH_2 = 1, SGE_CIDXFLUSHTHRESH_4 = 2, SGE_CIDXFLUSHTHRESH_8 = 3,
  SGE_CIDXFLUSHTHRESH_16 = 4, SGE_CIDXFLUSHTHRESH_32 = 5, SGE_CIDXFLUSHTHRESH_64 = 6, SGE_CIDXFLUSHTHRESH_128 = 7,
  SGE_INGPADBOUNDARY_SHIFT = 5
}
 
enum  {
  FLASH_EXP_ROM_START_SEC = 0, FLASH_EXP_ROM_NSECS = 6, FLASH_EXP_ROM_START = FLASH_START(FLASH_EXP_ROM_START_SEC), FLASH_EXP_ROM_MAX_SIZE = FLASH_MAX_SIZE(FLASH_EXP_ROM_NSECS),
  FLASH_IBFT_START_SEC = 6, FLASH_IBFT_NSECS = 1, FLASH_IBFT_START = FLASH_START(FLASH_IBFT_START_SEC), FLASH_IBFT_MAX_SIZE = FLASH_MAX_SIZE(FLASH_IBFT_NSECS),
  FLASH_BOOTCFG_START_SEC = 7, FLASH_BOOTCFG_NSECS = 1, FLASH_BOOTCFG_START = FLASH_START(FLASH_BOOTCFG_START_SEC), FLASH_BOOTCFG_MAX_SIZE = FLASH_MAX_SIZE(FLASH_BOOTCFG_NSECS),
  FLASH_FW_START_SEC = 8, FLASH_FW_NSECS = 8, FLASH_FW_START = FLASH_START(FLASH_FW_START_SEC), FLASH_FW_MAX_SIZE = FLASH_MAX_SIZE(FLASH_FW_NSECS),
  FLASH_ISCSI_CRASH_START_SEC = 29, FLASH_ISCSI_CRASH_NSECS = 1, FLASH_ISCSI_CRASH_START = FLASH_START(FLASH_ISCSI_CRASH_START_SEC), FLASH_ISCSI_CRASH_MAX_SIZE = FLASH_MAX_SIZE(FLASH_ISCSI_CRASH_NSECS),
  FLASH_FCOE_CRASH_START_SEC = 30, FLASH_FCOE_CRASH_NSECS = 1, FLASH_FCOE_CRASH_START = FLASH_START(FLASH_FCOE_CRASH_START_SEC), FLASH_FCOE_CRASH_MAX_SIZE = FLASH_MAX_SIZE(FLASH_FCOE_CRASH_NSECS),
  FLASH_CFG_START_SEC = 31, FLASH_CFG_NSECS = 1, FLASH_CFG_START = FLASH_START(FLASH_CFG_START_SEC), FLASH_CFG_MAX_SIZE = FLASH_MAX_SIZE(FLASH_CFG_NSECS),
  FLASH_FPGA_CFG_START_SEC = 15, FLASH_FPGA_CFG_START = FLASH_START(FLASH_FPGA_CFG_START_SEC)
}
 

Macro Definition Documentation

#define FLASH_MAX_SIZE (   nsecs)    ((nsecs) * SF_SEC_SIZE)

Definition at line 146 of file t4_hw.h.

#define FLASH_START (   start)    ((start) * SF_SEC_SIZE)

Definition at line 145 of file t4_hw.h.

#define QINTR_CNT_EN   0x1

Definition at line 138 of file t4_hw.h.

#define QINTR_TIMER_IDX (   x)    ((x) << 1)

Definition at line 139 of file t4_hw.h.

#define QINTR_TIMER_IDX_GET (   x)    (((x) >> 1) & 0x7)

Definition at line 140 of file t4_hw.h.

#define RSPD_GEN (   x)    ((x) >> 7)

Definition at line 135 of file t4_hw.h.

#define RSPD_LEN (   x)    (((x) >> 0) & 0x7fffffffU)

Definition at line 132 of file t4_hw.h.

#define RSPD_NEWBUF   0x80000000U

Definition at line 131 of file t4_hw.h.

#define RSPD_QID (   x)    RSPD_LEN(x)

Definition at line 133 of file t4_hw.h.

#define RSPD_TYPE (   x)    (((x) >> 4) & 3)

Definition at line 136 of file t4_hw.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
NCHAN 
MAX_MTU 
EEPROMSIZE 
EEPROMVSIZE 
EEPROMPFSIZE 
RSS_NENTRIES 
TCB_SIZE 
NMTUS 
NCCTRL_WIN 
NEXACT_MAC 
L2T_SIZE 
MBOX_LEN 
TRACE_LEN 
FILTER_OPT_LEN 
NWOL_PAT 
WOL_PAT_LEN 

Definition at line 40 of file t4_hw.h.

anonymous enum
Enumerator:
SF_PAGE_SIZE 
SF_SEC_SIZE 

Definition at line 59 of file t4_hw.h.

anonymous enum
Enumerator:
RSP_TYPE_FLBUF 
RSP_TYPE_CPL 
RSP_TYPE_INTR 

Definition at line 64 of file t4_hw.h.

anonymous enum
Enumerator:
MBOX_OWNER_NONE 
MBOX_OWNER_FW 
MBOX_OWNER_DRV 

Definition at line 66 of file t4_hw.h.

anonymous enum
Enumerator:
SGE_MAX_WR_LEN 
SGE_NTIMERS 
SGE_NCOUNTERS 
SGE_TIMER_RSTRT_CNTR 
SGE_TIMER_UPD_CIDX 
SGE_EQ_IDXSIZE 
SGE_INTRDST_PCI 
SGE_INTRDST_IQ 
SGE_UPDATEDEL_NONE 
SGE_UPDATEDEL_INTR 
SGE_UPDATEDEL_STPG 
SGE_UPDATEDEL_BOTH 
SGE_HOSTFCMODE_NONE 
SGE_HOSTFCMODE_IQ 
SGE_HOSTFCMODE_STPG 
SGE_HOSTFCMODE_BOTH 
SGE_FETCHBURSTMIN_16B 
SGE_FETCHBURSTMIN_32B 
SGE_FETCHBURSTMIN_64B 
SGE_FETCHBURSTMIN_128B 
SGE_FETCHBURSTMAX_64B 
SGE_FETCHBURSTMAX_128B 
SGE_FETCHBURSTMAX_256B 
SGE_FETCHBURSTMAX_512B 
SGE_CIDXFLUSHTHRESH_1 
SGE_CIDXFLUSHTHRESH_2 
SGE_CIDXFLUSHTHRESH_4 
SGE_CIDXFLUSHTHRESH_8 
SGE_CIDXFLUSHTHRESH_16 
SGE_CIDXFLUSHTHRESH_32 
SGE_CIDXFLUSHTHRESH_64 
SGE_CIDXFLUSHTHRESH_128 
SGE_INGPADBOUNDARY_SHIFT 

Definition at line 68 of file t4_hw.h.

anonymous enum
Enumerator:
FLASH_EXP_ROM_START_SEC 
FLASH_EXP_ROM_NSECS 
FLASH_EXP_ROM_START 
FLASH_EXP_ROM_MAX_SIZE 
FLASH_IBFT_START_SEC 
FLASH_IBFT_NSECS 
FLASH_IBFT_START 
FLASH_IBFT_MAX_SIZE 
FLASH_BOOTCFG_START_SEC 
FLASH_BOOTCFG_NSECS 
FLASH_BOOTCFG_START 
FLASH_BOOTCFG_MAX_SIZE 
FLASH_FW_START_SEC 
FLASH_FW_NSECS 
FLASH_FW_START 
FLASH_FW_MAX_SIZE 
FLASH_ISCSI_CRASH_START_SEC 
FLASH_ISCSI_CRASH_NSECS 
FLASH_ISCSI_CRASH_START 
FLASH_ISCSI_CRASH_MAX_SIZE 
FLASH_FCOE_CRASH_START_SEC 
FLASH_FCOE_CRASH_NSECS 
FLASH_FCOE_CRASH_START 
FLASH_FCOE_CRASH_MAX_SIZE 
FLASH_CFG_START_SEC 
FLASH_CFG_NSECS 
FLASH_CFG_START 
FLASH_CFG_MAX_SIZE 
FLASH_FPGA_CFG_START_SEC 
FLASH_FPGA_CFG_START 

Definition at line 148 of file t4_hw.h.