Go to the documentation of this file.
32 #ifndef __CXIO_HAL_H__
33 #define __CXIO_HAL_H__
35 #include <linux/list.h>
44 #define T3_CTRL_QP_ID FW_RI_SGEEC_START
45 #define T3_CTL_QP_TID FW_RI_TID_START
46 #define T3_CTRL_QP_SIZE_LOG2 8
47 #define T3_CTRL_CQ_ID 0
49 #define T3_MAX_NUM_RI (1<<15)
50 #define T3_MAX_NUM_QP (1<<15)
51 #define T3_MAX_NUM_CQ (1<<15)
52 #define T3_MAX_NUM_PD (1<<15)
53 #define T3_MAX_PBL_SIZE 256
54 #define T3_MAX_RQ_SIZE 1024
55 #define T3_MAX_QP_DEPTH (T3_MAX_RQ_SIZE-1)
56 #define T3_MAX_CQ_DEPTH 65536
57 #define T3_MAX_NUM_STAG (1<<15)
58 #define T3_MAX_MR_SIZE 0x100000000ULL
59 #define T3_PAGESIZE_MASK 0xffff000
61 #define T3_STAG_UNSET 0xffffffff
63 #define T3_MAX_DEV_NAME_LEN 32
116 #define CXIO_ERROR_FATAL 1
119 static inline int cxio_fatal_error(
struct cxio_rdev *rdev_p)
124 static inline int cxio_num_stags(
struct cxio_rdev *rdev_p)
132 #define RSPQ_CQID(rsp) (be32_to_cpu(rsp->cq_ptrid) & 0xffff)
133 #define RSPQ_CQPTR(rsp) ((be32_to_cpu(rsp->cq_ptrid) >> 16) & 0xffff)
134 #define RSPQ_GENBIT(rsp) ((be32_to_cpu(rsp->flags) >> 16) & 1)
135 #define RSPQ_OVERFLOW(rsp) ((be32_to_cpu(rsp->flags) >> 17) & 1)
136 #define RSPQ_AN(rsp) ((be32_to_cpu(rsp->flags) >> 18) & 1)
137 #define RSPQ_SE(rsp) ((be32_to_cpu(rsp->flags) >> 19) & 1)
138 #define RSPQ_NOTIFY(rsp) ((be32_to_cpu(rsp->flags) >> 20) & 1)
139 #define RSPQ_CQBRANCH(rsp) ((be32_to_cpu(rsp->flags) >> 21) & 1)
140 #define RSPQ_CREDIT_THRESH(rsp) ((be32_to_cpu(rsp->flags) >> 22) & 1)
171 u32 pbl_addr,
u32 pbl_size);
199 #define MOD "iw_cxgb3: "
200 #define PDBG(fmt, args...) pr_debug(MOD fmt, ## args)
205 void cxio_dump_wqe(
union t3_wr *wqe);