Go to the documentation of this file.
32 #ifndef _FIRMWARE_EXPORTS_H_
33 #define _FIRMWARE_EXPORTS_H_
37 #define FW_WROPCODE_FORWARD 0x01
38 #define FW_WROPCODE_BYPASS 0x05
40 #define FW_WROPCODE_TUNNEL_TX_PKT 0x03
42 #define FW_WROPOCDE_ULPTX_DATA_SGL 0x00
43 #define FW_WROPCODE_ULPTX_MEM_READ 0x02
44 #define FW_WROPCODE_ULPTX_PKT 0x04
45 #define FW_WROPCODE_ULPTX_INVALIDATE 0x06
47 #define FW_WROPCODE_TUNNEL_RX_PKT 0x07
49 #define FW_WROPCODE_OFLD_GETTCB_RPL 0x08
50 #define FW_WROPCODE_OFLD_CLOSE_CON 0x09
51 #define FW_WROPCODE_OFLD_TP_ABORT_CON_REQ 0x0A
52 #define FW_WROPCODE_OFLD_HOST_ABORT_CON_RPL 0x0F
53 #define FW_WROPCODE_OFLD_HOST_ABORT_CON_REQ 0x0B
54 #define FW_WROPCODE_OFLD_TP_ABORT_CON_RPL 0x0C
55 #define FW_WROPCODE_OFLD_TX_DATA 0x0D
56 #define FW_WROPCODE_OFLD_TX_DATA_ACK 0x0E
58 #define FW_WROPCODE_RI_RDMA_INIT 0x10
59 #define FW_WROPCODE_RI_RDMA_WRITE 0x11
60 #define FW_WROPCODE_RI_RDMA_READ_REQ 0x12
61 #define FW_WROPCODE_RI_RDMA_READ_RESP 0x13
62 #define FW_WROPCODE_RI_SEND 0x14
63 #define FW_WROPCODE_RI_TERMINATE 0x15
64 #define FW_WROPCODE_RI_RDMA_READ 0x16
65 #define FW_WROPCODE_RI_RECEIVE 0x17
66 #define FW_WROPCODE_RI_BIND_MW 0x18
67 #define FW_WROPCODE_RI_FASTREGISTER_MR 0x19
68 #define FW_WROPCODE_RI_LOCAL_INV 0x1A
69 #define FW_WROPCODE_RI_MODIFY_QP 0x1B
70 #define FW_WROPCODE_RI_BYPASS 0x1C
72 #define FW_WROPOCDE_RSVD 0x1E
74 #define FW_WROPCODE_SGE_EGRESSCONTEXT_RR 0x1F
76 #define FW_WROPCODE_MNGT 0x1D
77 #define FW_MNGTOPCODE_PKTSCHED_SET 0x00
83 #define FW_WR_SIZE 128
89 #define FW_T3_WR_NUM 16
90 #define FW_N3_WR_NUM 7
93 # define FW_WR_NUM FW_T3_WR_NUM
95 # define FW_WR_NUM FW_N3_WR_NUM
105 #define FW_TUNNEL_NUM 8
106 #define FW_TUNNEL_SGEEC_START 8
107 #define FW_TUNNEL_TID_START 65544
115 #define FW_CTRL_NUM 8
116 #define FW_CTRL_SGEEC_START 65528
117 #define FW_CTRL_TID_START 65536
128 #define FW_OFLD_NUM 8
129 #define FW_OFLD_SGEEC_START 0
135 #define FW_RI_SGEEC_START 65527
136 #define FW_RI_TID_START 65552
141 #define FW_RX_PKT_NUM 1
142 #define FW_RX_PKT_TID_START 65553
148 (65536 + FW_TUNNEL_NUM + FW_CTRL_NUM + FW_RI_NUM + FW_RX_PKT_NUM)
153 #define S_FW_VERSION_TYPE 28
154 #define M_FW_VERSION_TYPE 0xF
155 #define V_FW_VERSION_TYPE(x) ((x) << S_FW_VERSION_TYPE)
156 #define G_FW_VERSION_TYPE(x) \
157 (((x) >> S_FW_VERSION_TYPE) & M_FW_VERSION_TYPE)
159 #define S_FW_VERSION_MAJOR 16
160 #define M_FW_VERSION_MAJOR 0xFFF
161 #define V_FW_VERSION_MAJOR(x) ((x) << S_FW_VERSION_MAJOR)
162 #define G_FW_VERSION_MAJOR(x) \
163 (((x) >> S_FW_VERSION_MAJOR) & M_FW_VERSION_MAJOR)
165 #define S_FW_VERSION_MINOR 8
166 #define M_FW_VERSION_MINOR 0xFF
167 #define V_FW_VERSION_MINOR(x) ((x) << S_FW_VERSION_MINOR)
168 #define G_FW_VERSION_MINOR(x) \
169 (((x) >> S_FW_VERSION_MINOR) & M_FW_VERSION_MINOR)
171 #define S_FW_VERSION_MICRO 0
172 #define M_FW_VERSION_MICRO 0xFF
173 #define V_FW_VERSION_MICRO(x) ((x) << S_FW_VERSION_MICRO)
174 #define G_FW_VERSION_MICRO(x) \
175 (((x) >> S_FW_VERSION_MICRO) & M_FW_VERSION_MICRO)