1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32 #ifndef _FIRMWARE_EXPORTS_H_
33 #define _FIRMWARE_EXPORTS_H_
34
35
36
37 #define FW_WROPCODE_FORWARD 0x01
38 #define FW_WROPCODE_BYPASS 0x05
39
40 #define FW_WROPCODE_TUNNEL_TX_PKT 0x03
41
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
46
47 #define FW_WROPCODE_TUNNEL_RX_PKT 0x07
48
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
57
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
71
72 #define FW_WROPOCDE_RSVD 0x1E
73
74 #define FW_WROPCODE_SGE_EGRESSCONTEXT_RR 0x1F
75
76 #define FW_WROPCODE_MNGT 0x1D
77 #define FW_MNGTOPCODE_PKTSCHED_SET 0x00
78
79
80
81
82
83 #define FW_WR_SIZE 128
84
85
86
87
88
89 #define FW_T3_WR_NUM 16
90 #define FW_N3_WR_NUM 7
91
92 #ifndef N3
93 # define FW_WR_NUM FW_T3_WR_NUM
94 #else
95 # define FW_WR_NUM FW_N3_WR_NUM
96 #endif
97
98
99
100
101
102
103
104
105 #define FW_TUNNEL_NUM 8
106 #define FW_TUNNEL_SGEEC_START 8
107 #define FW_TUNNEL_TID_START 65544
108
109
110
111
112
113
114
115 #define FW_CTRL_NUM 8
116 #define FW_CTRL_SGEEC_START 65528
117 #define FW_CTRL_TID_START 65536
118
119
120
121
122
123
124
125
126
127
128 #define FW_OFLD_NUM 8
129 #define FW_OFLD_SGEEC_START 0
130
131
132
133
134 #define FW_RI_NUM 1
135 #define FW_RI_SGEEC_START 65527
136 #define FW_RI_TID_START 65552
137
138
139
140
141 #define FW_RX_PKT_NUM 1
142 #define FW_RX_PKT_TID_START 65553
143
144
145
146
147 #define FW_WRC_NUM \
148 (65536 + FW_TUNNEL_NUM + FW_CTRL_NUM + FW_RI_NUM + FW_RX_PKT_NUM)
149
150
151
152
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)
158
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)
164
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)
170
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)
176
177 #endif