2 * This file is automatically generated --- any changes will be lost.
9 #define M_EC_CREDITS 0x7FFF
10 #define V_EC_CREDITS(x) ((x) << S_EC_CREDITS)
11 #define G_EC_CREDITS(x) (((x) >> S_EC_CREDITS) & M_EC_CREDITS)
14 #define V_EC_GTS(x) ((x) << S_EC_GTS)
15 #define F_EC_GTS V_EC_GTS(1U)
18 #define M_EC_INDEX 0xFFFF
19 #define V_EC_INDEX(x) ((x) << S_EC_INDEX)
20 #define G_EC_INDEX(x) (((x) >> S_EC_INDEX) & M_EC_INDEX)
23 #define M_EC_SIZE 0xFFFF
24 #define V_EC_SIZE(x) ((x) << S_EC_SIZE)
25 #define G_EC_SIZE(x) (((x) >> S_EC_SIZE) & M_EC_SIZE)
27 #define S_EC_BASE_LO 16
28 #define M_EC_BASE_LO 0xFFFF
29 #define V_EC_BASE_LO(x) ((x) << S_EC_BASE_LO)
30 #define G_EC_BASE_LO(x) (((x) >> S_EC_BASE_LO) & M_EC_BASE_LO)
32 #define S_EC_BASE_HI 0
33 #define M_EC_BASE_HI 0xF
34 #define V_EC_BASE_HI(x) ((x) << S_EC_BASE_HI)
35 #define G_EC_BASE_HI(x) (((x) >> S_EC_BASE_HI) & M_EC_BASE_HI)
38 #define M_EC_RESPQ 0x7
39 #define V_EC_RESPQ(x) ((x) << S_EC_RESPQ)
40 #define G_EC_RESPQ(x) (((x) >> S_EC_RESPQ) & M_EC_RESPQ)
44 #define V_EC_TYPE(x) ((x) << S_EC_TYPE)
45 #define G_EC_TYPE(x) (((x) >> S_EC_TYPE) & M_EC_TYPE)
48 #define V_EC_GEN(x) ((x) << S_EC_GEN)
49 #define F_EC_GEN V_EC_GEN(1U)
51 #define S_EC_UP_TOKEN 11
52 #define M_EC_UP_TOKEN 0xFFFFF
53 #define V_EC_UP_TOKEN(x) ((x) << S_EC_UP_TOKEN)
54 #define G_EC_UP_TOKEN(x) (((x) >> S_EC_UP_TOKEN) & M_EC_UP_TOKEN)
57 #define V_EC_VALID(x) ((x) << S_EC_VALID)
58 #define F_EC_VALID V_EC_VALID(1U)
60 #define S_RQ_MSI_VEC 20
61 #define M_RQ_MSI_VEC 0x3F
62 #define V_RQ_MSI_VEC(x) ((x) << S_RQ_MSI_VEC)
63 #define G_RQ_MSI_VEC(x) (((x) >> S_RQ_MSI_VEC) & M_RQ_MSI_VEC)
65 #define S_RQ_INTR_EN 26
66 #define V_RQ_INTR_EN(x) ((x) << S_RQ_INTR_EN)
67 #define F_RQ_INTR_EN V_RQ_INTR_EN(1U)
70 #define V_RQ_GEN(x) ((x) << S_RQ_GEN)
71 #define F_RQ_GEN V_RQ_GEN(1U)
74 #define M_CQ_INDEX 0xFFFF
75 #define V_CQ_INDEX(x) ((x) << S_CQ_INDEX)
76 #define G_CQ_INDEX(x) (((x) >> S_CQ_INDEX) & M_CQ_INDEX)
79 #define M_CQ_SIZE 0xFFFF
80 #define V_CQ_SIZE(x) ((x) << S_CQ_SIZE)
81 #define G_CQ_SIZE(x) (((x) >> S_CQ_SIZE) & M_CQ_SIZE)
83 #define S_CQ_BASE_HI 0
84 #define M_CQ_BASE_HI 0xFFFFF
85 #define V_CQ_BASE_HI(x) ((x) << S_CQ_BASE_HI)
86 #define G_CQ_BASE_HI(x) (((x) >> S_CQ_BASE_HI) & M_CQ_BASE_HI)
89 #define M_CQ_RSPQ 0x3F
90 #define V_CQ_RSPQ(x) ((x) << S_CQ_RSPQ)
91 #define G_CQ_RSPQ(x) (((x) >> S_CQ_RSPQ) & M_CQ_RSPQ)
93 #define S_CQ_ASYNC_NOTIF 26
94 #define V_CQ_ASYNC_NOTIF(x) ((x) << S_CQ_ASYNC_NOTIF)
95 #define F_CQ_ASYNC_NOTIF V_CQ_ASYNC_NOTIF(1U)
98 #define V_CQ_ARMED(x) ((x) << S_CQ_ARMED)
99 #define F_CQ_ARMED V_CQ_ARMED(1U)
101 #define S_CQ_ASYNC_NOTIF_SOL 28
102 #define V_CQ_ASYNC_NOTIF_SOL(x) ((x) << S_CQ_ASYNC_NOTIF_SOL)
103 #define F_CQ_ASYNC_NOTIF_SOL V_CQ_ASYNC_NOTIF_SOL(1U)
106 #define V_CQ_GEN(x) ((x) << S_CQ_GEN)
107 #define F_CQ_GEN V_CQ_GEN(1U)
109 #define S_CQ_OVERFLOW_MODE 31
110 #define V_CQ_OVERFLOW_MODE(x) ((x) << S_CQ_OVERFLOW_MODE)
111 #define F_CQ_OVERFLOW_MODE V_CQ_OVERFLOW_MODE(1U)
113 #define S_CQ_CREDITS 0
114 #define M_CQ_CREDITS 0xFFFF
115 #define V_CQ_CREDITS(x) ((x) << S_CQ_CREDITS)
116 #define G_CQ_CREDITS(x) (((x) >> S_CQ_CREDITS) & M_CQ_CREDITS)
118 #define S_CQ_CREDIT_THRES 16
119 #define M_CQ_CREDIT_THRES 0x1FFF
120 #define V_CQ_CREDIT_THRES(x) ((x) << S_CQ_CREDIT_THRES)
121 #define G_CQ_CREDIT_THRES(x) (((x) >> S_CQ_CREDIT_THRES) & M_CQ_CREDIT_THRES)
123 #define S_FL_BASE_HI 0
124 #define M_FL_BASE_HI 0xFFFFF
125 #define V_FL_BASE_HI(x) ((x) << S_FL_BASE_HI)
126 #define G_FL_BASE_HI(x) (((x) >> S_FL_BASE_HI) & M_FL_BASE_HI)
128 #define S_FL_INDEX_LO 20
129 #define M_FL_INDEX_LO 0xFFF
130 #define V_FL_INDEX_LO(x) ((x) << S_FL_INDEX_LO)
131 #define G_FL_INDEX_LO(x) (((x) >> S_FL_INDEX_LO) & M_FL_INDEX_LO)
133 #define S_FL_INDEX_HI 0
134 #define M_FL_INDEX_HI 0xF
135 #define V_FL_INDEX_HI(x) ((x) << S_FL_INDEX_HI)
136 #define G_FL_INDEX_HI(x) (((x) >> S_FL_INDEX_HI) & M_FL_INDEX_HI)
139 #define M_FL_SIZE 0xFFFF
140 #define V_FL_SIZE(x) ((x) << S_FL_SIZE)
141 #define G_FL_SIZE(x) (((x) >> S_FL_SIZE) & M_FL_SIZE)
144 #define V_FL_GEN(x) ((x) << S_FL_GEN)
145 #define F_FL_GEN V_FL_GEN(1U)
147 #define S_FL_ENTRY_SIZE_LO 21
148 #define M_FL_ENTRY_SIZE_LO 0x7FF
149 #define V_FL_ENTRY_SIZE_LO(x) ((x) << S_FL_ENTRY_SIZE_LO)
150 #define G_FL_ENTRY_SIZE_LO(x) (((x) >> S_FL_ENTRY_SIZE_LO) & M_FL_ENTRY_SIZE_LO)
152 #define S_FL_ENTRY_SIZE_HI 0
153 #define M_FL_ENTRY_SIZE_HI 0x1FFFFF
154 #define V_FL_ENTRY_SIZE_HI(x) ((x) << S_FL_ENTRY_SIZE_HI)
155 #define G_FL_ENTRY_SIZE_HI(x) (((x) >> S_FL_ENTRY_SIZE_HI) & M_FL_ENTRY_SIZE_HI)
157 #define S_FL_CONG_THRES 21
158 #define M_FL_CONG_THRES 0x3FF
159 #define V_FL_CONG_THRES(x) ((x) << S_FL_CONG_THRES)
160 #define G_FL_CONG_THRES(x) (((x) >> S_FL_CONG_THRES) & M_FL_CONG_THRES)
163 #define V_FL_GTS(x) ((x) << S_FL_GTS)
164 #define F_FL_GTS V_FL_GTS(1U)
166 #define S_FLD_GEN1 31
167 #define V_FLD_GEN1(x) ((x) << S_FLD_GEN1)
168 #define F_FLD_GEN1 V_FLD_GEN1(1U)
171 #define V_FLD_GEN2(x) ((x) << S_FLD_GEN2)
172 #define F_FLD_GEN2 V_FLD_GEN2(1U)
174 #define S_RSPD_TXQ1_CR 0
175 #define M_RSPD_TXQ1_CR 0x7F
176 #define V_RSPD_TXQ1_CR(x) ((x) << S_RSPD_TXQ1_CR)
177 #define G_RSPD_TXQ1_CR(x) (((x) >> S_RSPD_TXQ1_CR) & M_RSPD_TXQ1_CR)
179 #define S_RSPD_TXQ1_GTS 7
180 #define V_RSPD_TXQ1_GTS(x) ((x) << S_RSPD_TXQ1_GTS)
181 #define F_RSPD_TXQ1_GTS V_RSPD_TXQ1_GTS(1U)
183 #define S_RSPD_TXQ2_CR 8
184 #define M_RSPD_TXQ2_CR 0x7F
185 #define V_RSPD_TXQ2_CR(x) ((x) << S_RSPD_TXQ2_CR)
186 #define G_RSPD_TXQ2_CR(x) (((x) >> S_RSPD_TXQ2_CR) & M_RSPD_TXQ2_CR)
188 #define S_RSPD_TXQ2_GTS 15
189 #define V_RSPD_TXQ2_GTS(x) ((x) << S_RSPD_TXQ2_GTS)
190 #define F_RSPD_TXQ2_GTS V_RSPD_TXQ2_GTS(1U)
192 #define S_RSPD_TXQ0_CR 16
193 #define M_RSPD_TXQ0_CR 0x7F
194 #define V_RSPD_TXQ0_CR(x) ((x) << S_RSPD_TXQ0_CR)
195 #define G_RSPD_TXQ0_CR(x) (((x) >> S_RSPD_TXQ0_CR) & M_RSPD_TXQ0_CR)
197 #define S_RSPD_TXQ0_GTS 23
198 #define V_RSPD_TXQ0_GTS(x) ((x) << S_RSPD_TXQ0_GTS)
199 #define F_RSPD_TXQ0_GTS V_RSPD_TXQ0_GTS(1U)
201 #define S_RSPD_EOP 24
202 #define V_RSPD_EOP(x) ((x) << S_RSPD_EOP)
203 #define F_RSPD_EOP V_RSPD_EOP(1U)
205 #define S_RSPD_SOP 25
206 #define V_RSPD_SOP(x) ((x) << S_RSPD_SOP)
207 #define F_RSPD_SOP V_RSPD_SOP(1U)
209 #define S_RSPD_ASYNC_NOTIF 26
210 #define V_RSPD_ASYNC_NOTIF(x) ((x) << S_RSPD_ASYNC_NOTIF)
211 #define F_RSPD_ASYNC_NOTIF V_RSPD_ASYNC_NOTIF(1U)
213 #define S_RSPD_FL0_GTS 27
214 #define V_RSPD_FL0_GTS(x) ((x) << S_RSPD_FL0_GTS)
215 #define F_RSPD_FL0_GTS V_RSPD_FL0_GTS(1U)
217 #define S_RSPD_FL1_GTS 28
218 #define V_RSPD_FL1_GTS(x) ((x) << S_RSPD_FL1_GTS)
219 #define F_RSPD_FL1_GTS V_RSPD_FL1_GTS(1U)
221 #define S_RSPD_IMM_DATA_VALID 29
222 #define V_RSPD_IMM_DATA_VALID(x) ((x) << S_RSPD_IMM_DATA_VALID)
223 #define F_RSPD_IMM_DATA_VALID V_RSPD_IMM_DATA_VALID(1U)
225 #define S_RSPD_OFFLOAD 30
226 #define V_RSPD_OFFLOAD(x) ((x) << S_RSPD_OFFLOAD)
227 #define F_RSPD_OFFLOAD V_RSPD_OFFLOAD(1U)
229 #define S_RSPD_GEN1 31
230 #define V_RSPD_GEN1(x) ((x) << S_RSPD_GEN1)
231 #define F_RSPD_GEN1 V_RSPD_GEN1(1U)
234 #define M_RSPD_LEN 0x7FFFFFFF
235 #define V_RSPD_LEN(x) ((x) << S_RSPD_LEN)
236 #define G_RSPD_LEN(x) (((x) >> S_RSPD_LEN) & M_RSPD_LEN)
238 #define S_RSPD_FLQ 31
239 #define V_RSPD_FLQ(x) ((x) << S_RSPD_FLQ)
240 #define F_RSPD_FLQ V_RSPD_FLQ(1U)
242 #define S_RSPD_GEN2 0
243 #define V_RSPD_GEN2(x) ((x) << S_RSPD_GEN2)
244 #define F_RSPD_GEN2 V_RSPD_GEN2(1U)
246 #define S_RSPD_INR_VEC 1
247 #define M_RSPD_INR_VEC 0x7F
248 #define V_RSPD_INR_VEC(x) ((x) << S_RSPD_INR_VEC)
249 #define G_RSPD_INR_VEC(x) (((x) >> S_RSPD_INR_VEC) & M_RSPD_INR_VEC)
251 #endif /* _SGE_DEFS_H */