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

Go to the source code of this file.

Data Structures

struct  cnic_ctx
 
struct  cnic_dma
 
struct  cnic_id_tbl
 
struct  kwqe_16_data
 
struct  cnic_iscsi
 
struct  cnic_context
 
struct  kcq_info
 
struct  iro
 
struct  cnic_uio_dev
 
struct  cnic_local
 
struct  bnx2x_bd_chain_next
 

Macros

#define HC_INDEX_ISCSI_EQ_CONS   6
 
#define HC_INDEX_FCOE_EQ_CONS   3
 
#define HC_SP_INDEX_ETH_ISCSI_CQ_CONS   5
 
#define HC_SP_INDEX_ETH_ISCSI_RX_CQ_CONS   1
 
#define KWQ_PAGE_CNT   4
 
#define KCQ_PAGE_CNT   16
 
#define KWQ_CID   24
 
#define KCQ_CID   25
 
#define L5_KRNLQ_FLAGS   0x00000000
 
#define L5_KRNLQ_SIZE   0x00000000
 
#define L5_KRNLQ_TYPE   0x00000000
 
#define KRNLQ_FLAGS_PG_SZ   (0xf<<0)
 
#define KRNLQ_FLAGS_PG_SZ_256   (0<<0)
 
#define KRNLQ_FLAGS_PG_SZ_512   (1<<0)
 
#define KRNLQ_FLAGS_PG_SZ_1K   (2<<0)
 
#define KRNLQ_FLAGS_PG_SZ_2K   (3<<0)
 
#define KRNLQ_FLAGS_PG_SZ_4K   (4<<0)
 
#define KRNLQ_FLAGS_PG_SZ_8K   (5<<0)
 
#define KRNLQ_FLAGS_PG_SZ_16K   (6<<0)
 
#define KRNLQ_FLAGS_PG_SZ_32K   (7<<0)
 
#define KRNLQ_FLAGS_PG_SZ_64K   (8<<0)
 
#define KRNLQ_FLAGS_PG_SZ_128K   (9<<0)
 
#define KRNLQ_FLAGS_PG_SZ_256K   (10<<0)
 
#define KRNLQ_FLAGS_PG_SZ_512K   (11<<0)
 
#define KRNLQ_FLAGS_PG_SZ_1M   (12<<0)
 
#define KRNLQ_FLAGS_PG_SZ_2M   (13<<0)
 
#define KRNLQ_FLAGS_QE_SELF_SEQ   (1<<15)
 
#define KRNLQ_SIZE_TYPE_SIZE   ((((0x28 + 0x1f) & ~0x1f) / 0x20) << 16)
 
#define KRNLQ_TYPE_TYPE   (0xf<<28)
 
#define KRNLQ_TYPE_TYPE_EMPTY   (0<<28)
 
#define KRNLQ_TYPE_TYPE_KRNLQ   (6<<28)
 
#define L5_KRNLQ_HOST_QIDX   0x00000004
 
#define L5_KRNLQ_HOST_FW_QIDX   0x00000008
 
#define L5_KRNLQ_NX_QE_SELF_SEQ   0x0000000c
 
#define L5_KRNLQ_QE_SELF_SEQ_MAX   0x0000000c
 
#define L5_KRNLQ_NX_QE_HADDR_HI   0x00000010
 
#define L5_KRNLQ_NX_QE_HADDR_LO   0x00000014
 
#define L5_KRNLQ_PGTBL_PGIDX   0x00000018
 
#define L5_KRNLQ_NX_PG_QIDX   0x00000018
 
#define L5_KRNLQ_PGTBL_NPAGES   0x0000001c
 
#define L5_KRNLQ_QIDX_INCR   0x0000001c
 
#define L5_KRNLQ_PGTBL_HADDR_HI   0x00000020
 
#define L5_KRNLQ_PGTBL_HADDR_LO   0x00000024
 
#define BNX2_PG_CTX_MAP   0x1a0034
 
#define BNX2_ISCSI_CTX_MAP   0x1a0074
 
#define MAX_COMPLETED_KCQE   64
 
#define MAX_CNIC_L5_CONTEXT   256
 
#define MAX_CM_SK_TBL_SZ   MAX_CNIC_L5_CONTEXT
 
#define MAX_ISCSI_TBL_SZ   256
 
#define CNIC_LOCAL_PORT_MIN   60000
 
#define CNIC_LOCAL_PORT_MAX   61024
 
#define CNIC_LOCAL_PORT_RANGE   (CNIC_LOCAL_PORT_MAX - CNIC_LOCAL_PORT_MIN)
 
#define KWQE_CNT   (BCM_PAGE_SIZE / sizeof(struct kwqe))
 
#define KCQE_CNT   (BCM_PAGE_SIZE / sizeof(struct kcqe))
 
#define MAX_KWQE_CNT   (KWQE_CNT - 1)
 
#define MAX_KCQE_CNT   (KCQE_CNT - 1)
 
#define MAX_KWQ_IDX   ((KWQ_PAGE_CNT * KWQE_CNT) - 1)
 
#define MAX_KCQ_IDX   ((KCQ_PAGE_CNT * KCQE_CNT) - 1)
 
#define KWQ_PG(x)   (((x) & ~MAX_KWQE_CNT) >> (BCM_PAGE_BITS - 5))
 
#define KWQ_IDX(x)   ((x) & MAX_KWQE_CNT)
 
#define KCQ_PG(x)   (((x) & ~MAX_KCQE_CNT) >> (BCM_PAGE_BITS - 5))
 
#define KCQ_IDX(x)   ((x) & MAX_KCQE_CNT)
 
#define BNX2X_NEXT_KCQE(x)
 
#define BNX2X_KWQ_DATA_PG(cp, x)   ((x) / (cp)->kwq_16_data_pp)
 
#define BNX2X_KWQ_DATA_IDX(cp, x)   ((x) % (cp)->kwq_16_data_pp)
 
#define BNX2X_KWQ_DATA(cp, x)   &(cp)->kwq_16_data[BNX2X_KWQ_DATA_PG(cp, x)][BNX2X_KWQ_DATA_IDX(cp, x)]
 
#define DEF_IPID_START   0x8000
 
#define DEF_KA_TIMEOUT   10000
 
#define DEF_KA_INTERVAL   300000
 
#define DEF_KA_MAX_PROBE_COUNT   3
 
#define DEF_TOS   0
 
#define DEF_TTL   0xfe
 
#define DEF_SND_SEQ_SCALE   0
 
#define DEF_RCV_BUF   0xffff
 
#define DEF_SND_BUF   0xffff
 
#define DEF_SEED   0
 
#define DEF_MAX_RT_TIME   500
 
#define DEF_MAX_DA_COUNT   2
 
#define DEF_SWS_TIMER   1000
 
#define DEF_MAX_CWND   0xffff
 
#define BNX2_MAX_CID   0x2000
 
#define CNIC_KWQ16_DATA_SIZE   128
 
#define CTX_FL_OFFLD_START   0
 
#define CTX_FL_DELETE_WAIT   1
 
#define CTX_FL_CID_ERROR   2
 
#define ULP_F_INIT   0
 
#define ULP_F_START   1
 
#define ULP_F_CALL_PENDING   2
 
#define CNIC_LCL_FL_KWQ_INIT   0x0
 
#define CNIC_LCL_FL_L2_WAIT   0x1
 
#define CNIC_LCL_FL_RINGS_INITED   0x2
 
#define CNIC_LCL_FL_STOP_ISCSI   0x4
 
#define IRO   (((struct cnic_local *) dev->cnic_priv)->iro_arr)
 
#define SM_RX_ID   0
 
#define SM_TX_ID   1
 
#define CHIP_4_PORT_MODE   0
 
#define CHIP_2_PORT_MODE   1
 
#define CHIP_PORT_MODE_NONE   2
 
#define ISCSI_DEFAULT_MAX_OUTSTANDING_R2T   (1)
 
#define ISCSI_RAMROD_CMD_ID_UPDATE_CONN   (ISCSI_KCQE_OPCODE_UPDATE_CONN)
 
#define ISCSI_RAMROD_CMD_ID_INIT   (ISCSI_KCQE_OPCODE_INIT)
 
#define CDU_REGION_NUMBER_XCM_AG   2
 
#define CDU_REGION_NUMBER_UCM_AG   4
 
#define CDU_VALID_DATA(_cid, _region, _type)   (((_cid) << 8) | (((_region)&0xf)<<4) | (((_type)&0xf)))
 
#define CDU_CRC8(_cid, _region, _type)   (calc_crc8(CDU_VALID_DATA(_cid, _region, _type), 0xff))
 
#define CDU_RSRVD_VALUE_TYPE_A(_cid, _region, _type)   (0x80 | ((CDU_CRC8(_cid, _region, _type)) & 0x7f))
 
#define BNX2X_CONTEXT_MEM_SIZE   1024
 
#define BNX2X_FCOE_CID   16
 
#define BNX2X_ISCSI_START_CID   18
 
#define BNX2X_ISCSI_NUM_CONNECTIONS   128
 
#define BNX2X_ISCSI_TASK_CONTEXT_SIZE   128
 
#define BNX2X_ISCSI_MAX_PENDING_R2TS   4
 
#define BNX2X_ISCSI_R2TQE_SIZE   8
 
#define BNX2X_ISCSI_HQ_BD_SIZE   64
 
#define BNX2X_ISCSI_GLB_BUF_SIZE   64
 
#define BNX2X_ISCSI_PBL_NOT_CACHED   0xff
 
#define BNX2X_ISCSI_PDU_HEADER_NOT_CACHED   0xff
 
#define BNX2X_FCOE_NUM_CONNECTIONS   1024
 
#define BNX2X_FCOE_L5_CID_BASE   MAX_ISCSI_TBL_SZ
 
#define BNX2X_CHIP_NUM_57710   0x164e
 
#define BNX2X_CHIP_NUM_57711   0x164f
 
#define BNX2X_CHIP_NUM_57711E   0x1650
 
#define BNX2X_CHIP_NUM_57712   0x1662
 
#define BNX2X_CHIP_NUM_57712E   0x1663
 
#define BNX2X_CHIP_NUM_57713   0x1651
 
#define BNX2X_CHIP_NUM_57713E   0x1652
 
#define BNX2X_CHIP_NUM_57800   0x168a
 
#define BNX2X_CHIP_NUM_57810   0x168e
 
#define BNX2X_CHIP_NUM_57840   0x168d
 
#define BNX2X_CHIP_NUM(x)   (x >> 16)
 
#define BNX2X_CHIP_IS_57710(x)   (BNX2X_CHIP_NUM(x) == BNX2X_CHIP_NUM_57710)
 
#define BNX2X_CHIP_IS_57711(x)   (BNX2X_CHIP_NUM(x) == BNX2X_CHIP_NUM_57711)
 
#define BNX2X_CHIP_IS_57711E(x)   (BNX2X_CHIP_NUM(x) == BNX2X_CHIP_NUM_57711E)
 
#define BNX2X_CHIP_IS_E1H(x)   (BNX2X_CHIP_IS_57711(x) || BNX2X_CHIP_IS_57711E(x))
 
#define BNX2X_CHIP_IS_57712(x)   (BNX2X_CHIP_NUM(x) == BNX2X_CHIP_NUM_57712)
 
#define BNX2X_CHIP_IS_57712E(x)   (BNX2X_CHIP_NUM(x) == BNX2X_CHIP_NUM_57712E)
 
#define BNX2X_CHIP_IS_57713(x)   (BNX2X_CHIP_NUM(x) == BNX2X_CHIP_NUM_57713)
 
#define BNX2X_CHIP_IS_57713E(x)   (BNX2X_CHIP_NUM(x) == BNX2X_CHIP_NUM_57713E)
 
#define BNX2X_CHIP_IS_57800(x)   (BNX2X_CHIP_NUM(x) == BNX2X_CHIP_NUM_57800)
 
#define BNX2X_CHIP_IS_57810(x)   (BNX2X_CHIP_NUM(x) == BNX2X_CHIP_NUM_57810)
 
#define BNX2X_CHIP_IS_57840(x)   (BNX2X_CHIP_NUM(x) == BNX2X_CHIP_NUM_57840)
 
#define BNX2X_CHIP_IS_E2(x)
 
#define BNX2X_CHIP_IS_E3(x)
 
#define BNX2X_CHIP_IS_E2_PLUS(x)   (BNX2X_CHIP_IS_E2(x) || BNX2X_CHIP_IS_E3(x))
 
#define IS_E1H_OFFSET   BNX2X_CHIP_IS_E1H(cp->chip_id)
 
#define BNX2X_RX_DESC_CNT   (BCM_PAGE_SIZE / sizeof(struct eth_rx_bd))
 
#define BNX2X_MAX_RX_DESC_CNT   (BNX2X_RX_DESC_CNT - 2)
 
#define BNX2X_RCQ_DESC_CNT   (BCM_PAGE_SIZE / sizeof(union eth_rx_cqe))
 
#define BNX2X_MAX_RCQ_DESC_CNT   (BNX2X_RCQ_DESC_CNT - 1)
 
#define BNX2X_NEXT_RCQE(x)
 
#define BNX2X_DEF_SB_ID   HC_SP_SB_ID
 
#define BNX2X_SHMEM_MF_BLK_OFFSET   0x7e4
 
#define BNX2X_SHMEM_ADDR(base, field)
 
#define BNX2X_SHMEM2_ADDR(base, field)
 
#define BNX2X_SHMEM2_HAS(base, field)
 
#define BNX2X_MF_CFG_ADDR(base, field)   ((base) + offsetof(struct mf_cfg, field))
 
#define ETH_MAX_RX_CLIENTS_E2   ETH_MAX_RX_CLIENTS_E1H
 
#define CNIC_PORT(cp)   ((cp)->pfid & 1)
 
#define CNIC_FUNC(cp)   ((cp)->func)
 
#define CNIC_PATH(cp)
 
#define CNIC_E1HVN(cp)   ((cp)->pfid >> 1)
 
#define BNX2X_HW_CID(cp, x)
 
#define BNX2X_SW_CID(x)   (x & 0x1ffff)
 
#define BNX2X_CL_QZONE_ID(cp, cli)
 
#define MAX_STAT_COUNTER_ID
 
#define CNIC_SUPPORTS_FCOE(cp)
 
#define CNIC_RAMROD_TMO   (HZ / 4)
 

Macro Definition Documentation

#define BNX2_ISCSI_CTX_MAP   0x1a0074

Definition at line 69 of file cnic.h.

#define BNX2_MAX_CID   0x2000

Definition at line 128 of file cnic.h.

#define BNX2_PG_CTX_MAP   0x1a0034

Definition at line 68 of file cnic.h.

#define BNX2X_CHIP_IS_57710 (   x)    (BNX2X_CHIP_NUM(x) == BNX2X_CHIP_NUM_57710)

Definition at line 393 of file cnic.h.

#define BNX2X_CHIP_IS_57711 (   x)    (BNX2X_CHIP_NUM(x) == BNX2X_CHIP_NUM_57711)

Definition at line 395 of file cnic.h.

#define BNX2X_CHIP_IS_57711E (   x)    (BNX2X_CHIP_NUM(x) == BNX2X_CHIP_NUM_57711E)

Definition at line 397 of file cnic.h.

#define BNX2X_CHIP_IS_57712 (   x)    (BNX2X_CHIP_NUM(x) == BNX2X_CHIP_NUM_57712)

Definition at line 401 of file cnic.h.

#define BNX2X_CHIP_IS_57712E (   x)    (BNX2X_CHIP_NUM(x) == BNX2X_CHIP_NUM_57712E)

Definition at line 403 of file cnic.h.

#define BNX2X_CHIP_IS_57713 (   x)    (BNX2X_CHIP_NUM(x) == BNX2X_CHIP_NUM_57713)

Definition at line 405 of file cnic.h.

#define BNX2X_CHIP_IS_57713E (   x)    (BNX2X_CHIP_NUM(x) == BNX2X_CHIP_NUM_57713E)

Definition at line 407 of file cnic.h.

#define BNX2X_CHIP_IS_57800 (   x)    (BNX2X_CHIP_NUM(x) == BNX2X_CHIP_NUM_57800)

Definition at line 409 of file cnic.h.

#define BNX2X_CHIP_IS_57810 (   x)    (BNX2X_CHIP_NUM(x) == BNX2X_CHIP_NUM_57810)

Definition at line 411 of file cnic.h.

#define BNX2X_CHIP_IS_57840 (   x)    (BNX2X_CHIP_NUM(x) == BNX2X_CHIP_NUM_57840)

Definition at line 413 of file cnic.h.

#define BNX2X_CHIP_IS_E1H (   x)    (BNX2X_CHIP_IS_57711(x) || BNX2X_CHIP_IS_57711E(x))

Definition at line 399 of file cnic.h.

#define BNX2X_CHIP_IS_E2 (   x)
Value:
BNX2X_CHIP_IS_57713(x) || BNX2X_CHIP_IS_57713E(x))

Definition at line 415 of file cnic.h.

#define BNX2X_CHIP_IS_E2_PLUS (   x)    (BNX2X_CHIP_IS_E2(x) || BNX2X_CHIP_IS_E3(x))

Definition at line 421 of file cnic.h.

#define BNX2X_CHIP_IS_E3 (   x)
Value:
BNX2X_CHIP_IS_57840(x))

Definition at line 418 of file cnic.h.

#define BNX2X_CHIP_NUM (   x)    (x >> 16)

Definition at line 392 of file cnic.h.

#define BNX2X_CHIP_NUM_57710   0x164e

Definition at line 381 of file cnic.h.

#define BNX2X_CHIP_NUM_57711   0x164f

Definition at line 382 of file cnic.h.

#define BNX2X_CHIP_NUM_57711E   0x1650

Definition at line 383 of file cnic.h.

#define BNX2X_CHIP_NUM_57712   0x1662

Definition at line 384 of file cnic.h.

#define BNX2X_CHIP_NUM_57712E   0x1663

Definition at line 385 of file cnic.h.

#define BNX2X_CHIP_NUM_57713   0x1651

Definition at line 386 of file cnic.h.

#define BNX2X_CHIP_NUM_57713E   0x1652

Definition at line 387 of file cnic.h.

#define BNX2X_CHIP_NUM_57800   0x168a

Definition at line 388 of file cnic.h.

#define BNX2X_CHIP_NUM_57810   0x168e

Definition at line 389 of file cnic.h.

#define BNX2X_CHIP_NUM_57840   0x168d

Definition at line 390 of file cnic.h.

#define BNX2X_CL_QZONE_ID (   cp,
  cli 
)
Value:
(BNX2X_CHIP_IS_E2_PLUS(cp->chip_id) ? cli : \

Definition at line 467 of file cnic.h.

#define BNX2X_CONTEXT_MEM_SIZE   1024

Definition at line 364 of file cnic.h.

#define BNX2X_DEF_SB_ID   HC_SP_SB_ID

Definition at line 434 of file cnic.h.

#define BNX2X_FCOE_CID   16

Definition at line 365 of file cnic.h.

#define BNX2X_FCOE_L5_CID_BASE   MAX_ISCSI_TBL_SZ

Definition at line 379 of file cnic.h.

#define BNX2X_FCOE_NUM_CONNECTIONS   1024

Definition at line 377 of file cnic.h.

#define BNX2X_HW_CID (   cp,
  x 
)
Value:
((CNIC_PORT(cp) << 23) | \
(CNIC_E1HVN(cp) << 17) | (x))

Definition at line 462 of file cnic.h.

#define BNX2X_ISCSI_GLB_BUF_SIZE   64

Definition at line 373 of file cnic.h.

#define BNX2X_ISCSI_HQ_BD_SIZE   64

Definition at line 372 of file cnic.h.

#define BNX2X_ISCSI_MAX_PENDING_R2TS   4

Definition at line 370 of file cnic.h.

#define BNX2X_ISCSI_NUM_CONNECTIONS   128

Definition at line 368 of file cnic.h.

#define BNX2X_ISCSI_PBL_NOT_CACHED   0xff

Definition at line 374 of file cnic.h.

#define BNX2X_ISCSI_PDU_HEADER_NOT_CACHED   0xff

Definition at line 375 of file cnic.h.

#define BNX2X_ISCSI_R2TQE_SIZE   8

Definition at line 371 of file cnic.h.

#define BNX2X_ISCSI_START_CID   18

Definition at line 367 of file cnic.h.

#define BNX2X_ISCSI_TASK_CONTEXT_SIZE   128

Definition at line 369 of file cnic.h.

#define BNX2X_KWQ_DATA (   cp,
  x 
)    &(cp)->kwq_16_data[BNX2X_KWQ_DATA_PG(cp, x)][BNX2X_KWQ_DATA_IDX(cp, x)]

Definition at line 103 of file cnic.h.

#define BNX2X_KWQ_DATA_IDX (   cp,
  x 
)    ((x) % (cp)->kwq_16_data_pp)

Definition at line 102 of file cnic.h.

#define BNX2X_KWQ_DATA_PG (   cp,
  x 
)    ((x) / (cp)->kwq_16_data_pp)

Definition at line 101 of file cnic.h.

#define BNX2X_MAX_RCQ_DESC_CNT   (BNX2X_RCQ_DESC_CNT - 1)

Definition at line 428 of file cnic.h.

#define BNX2X_MAX_RX_DESC_CNT   (BNX2X_RX_DESC_CNT - 2)

Definition at line 426 of file cnic.h.

#define BNX2X_MF_CFG_ADDR (   base,
  field 
)    ((base) + offsetof(struct mf_cfg, field))

Definition at line 449 of file cnic.h.

#define BNX2X_NEXT_KCQE (   x)
Value:
(((x) & (MAX_KCQE_CNT - 1)) == \
(MAX_KCQE_CNT - 1)) ? \
(x) + 2 : (x) + 1

Definition at line 97 of file cnic.h.

#define BNX2X_NEXT_RCQE (   x)
Value:
((x) + 2) : ((x) + 1)

Definition at line 430 of file cnic.h.

#define BNX2X_RCQ_DESC_CNT   (BCM_PAGE_SIZE / sizeof(union eth_rx_cqe))

Definition at line 427 of file cnic.h.

#define BNX2X_RX_DESC_CNT   (BCM_PAGE_SIZE / sizeof(struct eth_rx_bd))

Definition at line 425 of file cnic.h.

#define BNX2X_SHMEM2_ADDR (   base,
  field 
)
Value:
(base + \
offsetof(struct shmem2_region, field))

Definition at line 441 of file cnic.h.

#define BNX2X_SHMEM2_HAS (   base,
  field 
)
Value:
((base) && \
offsetof(struct shmem2_region, field)))

Definition at line 444 of file cnic.h.

#define BNX2X_SHMEM_ADDR (   base,
  field 
)
Value:
(base + \
offsetof(struct shmem_region, field))

Definition at line 438 of file cnic.h.

#define BNX2X_SHMEM_MF_BLK_OFFSET   0x7e4

Definition at line 436 of file cnic.h.

#define BNX2X_SW_CID (   x)    (x & 0x1ffff)

Definition at line 465 of file cnic.h.

#define CDU_CRC8 (   _cid,
  _region,
  _type 
)    (calc_crc8(CDU_VALID_DATA(_cid, _region, _type), 0xff))

Definition at line 358 of file cnic.h.

#define CDU_REGION_NUMBER_UCM_AG   4

Definition at line 353 of file cnic.h.

#define CDU_REGION_NUMBER_XCM_AG   2

Definition at line 352 of file cnic.h.

#define CDU_RSRVD_VALUE_TYPE_A (   _cid,
  _region,
  _type 
)    (0x80 | ((CDU_CRC8(_cid, _region, _type)) & 0x7f))

Definition at line 361 of file cnic.h.

#define CDU_VALID_DATA (   _cid,
  _region,
  _type 
)    (((_cid) << 8) | (((_region)&0xf)<<4) | (((_type)&0xf)))

Definition at line 355 of file cnic.h.

#define CHIP_2_PORT_MODE   1

Definition at line 320 of file cnic.h.

#define CHIP_4_PORT_MODE   0

Definition at line 319 of file cnic.h.

#define CHIP_PORT_MODE_NONE   2

Definition at line 321 of file cnic.h.

#define CNIC_E1HVN (   cp)    ((cp)->pfid >> 1)

Definition at line 460 of file cnic.h.

#define CNIC_FUNC (   cp)    ((cp)->func)

Definition at line 457 of file cnic.h.

#define CNIC_KWQ16_DATA_SIZE   128

Definition at line 147 of file cnic.h.

#define CNIC_LCL_FL_KWQ_INIT   0x0

Definition at line 225 of file cnic.h.

#define CNIC_LCL_FL_L2_WAIT   0x1

Definition at line 226 of file cnic.h.

#define CNIC_LCL_FL_RINGS_INITED   0x2

Definition at line 227 of file cnic.h.

#define CNIC_LCL_FL_STOP_ISCSI   0x4

Definition at line 228 of file cnic.h.

#define CNIC_LOCAL_PORT_MAX   61024

Definition at line 80 of file cnic.h.

#define CNIC_LOCAL_PORT_MIN   60000

Definition at line 79 of file cnic.h.

#define CNIC_LOCAL_PORT_RANGE   (CNIC_LOCAL_PORT_MAX - CNIC_LOCAL_PORT_MIN)

Definition at line 81 of file cnic.h.

#define CNIC_PATH (   cp)
Value:
(!BNX2X_CHIP_IS_E2_PLUS(cp->chip_id) ? \
0 : (CNIC_FUNC(cp) & 1))

Definition at line 458 of file cnic.h.

#define CNIC_PORT (   cp)    ((cp)->pfid & 1)

Definition at line 456 of file cnic.h.

#define CNIC_RAMROD_TMO   (HZ / 4)

Definition at line 482 of file cnic.h.

#define CNIC_SUPPORTS_FCOE (   cp)
Value:
!((cp)->ethdev->drv_state & CNIC_DRV_STATE_NO_FCOE))

Definition at line 478 of file cnic.h.

#define CTX_FL_CID_ERROR   2

Definition at line 169 of file cnic.h.

#define CTX_FL_DELETE_WAIT   1

Definition at line 168 of file cnic.h.

#define CTX_FL_OFFLD_START   0

Definition at line 167 of file cnic.h.

#define DEF_IPID_START   0x8000

Definition at line 106 of file cnic.h.

#define DEF_KA_INTERVAL   300000

Definition at line 109 of file cnic.h.

#define DEF_KA_MAX_PROBE_COUNT   3

Definition at line 110 of file cnic.h.

#define DEF_KA_TIMEOUT   10000

Definition at line 108 of file cnic.h.

#define DEF_MAX_CWND   0xffff

Definition at line 120 of file cnic.h.

#define DEF_MAX_DA_COUNT   2

Definition at line 118 of file cnic.h.

#define DEF_MAX_RT_TIME   500

Definition at line 117 of file cnic.h.

#define DEF_RCV_BUF   0xffff

Definition at line 114 of file cnic.h.

#define DEF_SEED   0

Definition at line 116 of file cnic.h.

#define DEF_SND_BUF   0xffff

Definition at line 115 of file cnic.h.

#define DEF_SND_SEQ_SCALE   0

Definition at line 113 of file cnic.h.

#define DEF_SWS_TIMER   1000

Definition at line 119 of file cnic.h.

#define DEF_TOS   0

Definition at line 111 of file cnic.h.

#define DEF_TTL   0xfe

Definition at line 112 of file cnic.h.

#define ETH_MAX_RX_CLIENTS_E2   ETH_MAX_RX_CLIENTS_E1H

Definition at line 453 of file cnic.h.

#define HC_INDEX_FCOE_EQ_CONS   3

Definition at line 17 of file cnic.h.

#define HC_INDEX_ISCSI_EQ_CONS   6

Definition at line 15 of file cnic.h.

#define HC_SP_INDEX_ETH_ISCSI_CQ_CONS   5

Definition at line 19 of file cnic.h.

#define HC_SP_INDEX_ETH_ISCSI_RX_CQ_CONS   1

Definition at line 20 of file cnic.h.

#define IRO   (((struct cnic_local *) dev->cnic_priv)->iro_arr)

Definition at line 245 of file cnic.h.

#define IS_E1H_OFFSET   BNX2X_CHIP_IS_E1H(cp->chip_id)

Definition at line 423 of file cnic.h.

#define ISCSI_DEFAULT_MAX_OUTSTANDING_R2T   (1)

Definition at line 347 of file cnic.h.

#define ISCSI_RAMROD_CMD_ID_INIT   (ISCSI_KCQE_OPCODE_INIT)

Definition at line 350 of file cnic.h.

#define ISCSI_RAMROD_CMD_ID_UPDATE_CONN   (ISCSI_KCQE_OPCODE_UPDATE_CONN)

Definition at line 349 of file cnic.h.

#define KCQ_CID   25

Definition at line 26 of file cnic.h.

#define KCQ_IDX (   x)    ((x) & MAX_KCQE_CNT)

Definition at line 95 of file cnic.h.

#define KCQ_PAGE_CNT   16

Definition at line 23 of file cnic.h.

#define KCQ_PG (   x)    (((x) & ~MAX_KCQE_CNT) >> (BCM_PAGE_BITS - 5))

Definition at line 94 of file cnic.h.

#define KCQE_CNT   (BCM_PAGE_SIZE / sizeof(struct kcqe))

Definition at line 84 of file cnic.h.

#define KRNLQ_FLAGS_PG_SZ   (0xf<<0)

Definition at line 34 of file cnic.h.

#define KRNLQ_FLAGS_PG_SZ_128K   (9<<0)

Definition at line 44 of file cnic.h.

#define KRNLQ_FLAGS_PG_SZ_16K   (6<<0)

Definition at line 41 of file cnic.h.

#define KRNLQ_FLAGS_PG_SZ_1K   (2<<0)

Definition at line 37 of file cnic.h.

#define KRNLQ_FLAGS_PG_SZ_1M   (12<<0)

Definition at line 47 of file cnic.h.

#define KRNLQ_FLAGS_PG_SZ_256   (0<<0)

Definition at line 35 of file cnic.h.

#define KRNLQ_FLAGS_PG_SZ_256K   (10<<0)

Definition at line 45 of file cnic.h.

#define KRNLQ_FLAGS_PG_SZ_2K   (3<<0)

Definition at line 38 of file cnic.h.

#define KRNLQ_FLAGS_PG_SZ_2M   (13<<0)

Definition at line 48 of file cnic.h.

#define KRNLQ_FLAGS_PG_SZ_32K   (7<<0)

Definition at line 42 of file cnic.h.

#define KRNLQ_FLAGS_PG_SZ_4K   (4<<0)

Definition at line 39 of file cnic.h.

#define KRNLQ_FLAGS_PG_SZ_512   (1<<0)

Definition at line 36 of file cnic.h.

#define KRNLQ_FLAGS_PG_SZ_512K   (11<<0)

Definition at line 46 of file cnic.h.

#define KRNLQ_FLAGS_PG_SZ_64K   (8<<0)

Definition at line 43 of file cnic.h.

#define KRNLQ_FLAGS_PG_SZ_8K   (5<<0)

Definition at line 40 of file cnic.h.

#define KRNLQ_FLAGS_QE_SELF_SEQ   (1<<15)

Definition at line 49 of file cnic.h.

#define KRNLQ_SIZE_TYPE_SIZE   ((((0x28 + 0x1f) & ~0x1f) / 0x20) << 16)

Definition at line 50 of file cnic.h.

#define KRNLQ_TYPE_TYPE   (0xf<<28)

Definition at line 51 of file cnic.h.

#define KRNLQ_TYPE_TYPE_EMPTY   (0<<28)

Definition at line 52 of file cnic.h.

#define KRNLQ_TYPE_TYPE_KRNLQ   (6<<28)

Definition at line 53 of file cnic.h.

#define KWQ_CID   24

Definition at line 25 of file cnic.h.

#define KWQ_IDX (   x)    ((x) & MAX_KWQE_CNT)

Definition at line 92 of file cnic.h.

#define KWQ_PAGE_CNT   4

Definition at line 22 of file cnic.h.

#define KWQ_PG (   x)    (((x) & ~MAX_KWQE_CNT) >> (BCM_PAGE_BITS - 5))

Definition at line 91 of file cnic.h.

#define KWQE_CNT   (BCM_PAGE_SIZE / sizeof(struct kwqe))

Definition at line 83 of file cnic.h.

#define L5_KRNLQ_FLAGS   0x00000000

Definition at line 31 of file cnic.h.

#define L5_KRNLQ_HOST_FW_QIDX   0x00000008

Definition at line 56 of file cnic.h.

#define L5_KRNLQ_HOST_QIDX   0x00000004

Definition at line 55 of file cnic.h.

#define L5_KRNLQ_NX_PG_QIDX   0x00000018

Definition at line 62 of file cnic.h.

#define L5_KRNLQ_NX_QE_HADDR_HI   0x00000010

Definition at line 59 of file cnic.h.

#define L5_KRNLQ_NX_QE_HADDR_LO   0x00000014

Definition at line 60 of file cnic.h.

#define L5_KRNLQ_NX_QE_SELF_SEQ   0x0000000c

Definition at line 57 of file cnic.h.

#define L5_KRNLQ_PGTBL_HADDR_HI   0x00000020

Definition at line 65 of file cnic.h.

#define L5_KRNLQ_PGTBL_HADDR_LO   0x00000024

Definition at line 66 of file cnic.h.

#define L5_KRNLQ_PGTBL_NPAGES   0x0000001c

Definition at line 63 of file cnic.h.

#define L5_KRNLQ_PGTBL_PGIDX   0x00000018

Definition at line 61 of file cnic.h.

#define L5_KRNLQ_QE_SELF_SEQ_MAX   0x0000000c

Definition at line 58 of file cnic.h.

#define L5_KRNLQ_QIDX_INCR   0x0000001c

Definition at line 64 of file cnic.h.

#define L5_KRNLQ_SIZE   0x00000000

Definition at line 32 of file cnic.h.

#define L5_KRNLQ_TYPE   0x00000000

Definition at line 33 of file cnic.h.

#define MAX_CM_SK_TBL_SZ   MAX_CNIC_L5_CONTEXT

Definition at line 75 of file cnic.h.

#define MAX_CNIC_L5_CONTEXT   256

Definition at line 73 of file cnic.h.

#define MAX_COMPLETED_KCQE   64

Definition at line 71 of file cnic.h.

#define MAX_ISCSI_TBL_SZ   256

Definition at line 77 of file cnic.h.

#define MAX_KCQ_IDX   ((KCQ_PAGE_CNT * KCQE_CNT) - 1)

Definition at line 89 of file cnic.h.

#define MAX_KCQE_CNT   (KCQE_CNT - 1)

Definition at line 86 of file cnic.h.

#define MAX_KWQ_IDX   ((KWQ_PAGE_CNT * KWQE_CNT) - 1)

Definition at line 88 of file cnic.h.

#define MAX_KWQE_CNT   (KWQE_CNT - 1)

Definition at line 85 of file cnic.h.

#define MAX_STAT_COUNTER_ID
#define SM_RX_ID   0

Definition at line 268 of file cnic.h.

#define SM_TX_ID   1

Definition at line 269 of file cnic.h.

#define ULP_F_CALL_PENDING   2

Definition at line 221 of file cnic.h.

#define ULP_F_INIT   0

Definition at line 219 of file cnic.h.

#define ULP_F_START   1

Definition at line 220 of file cnic.h.