xref: /freebsd/sys/dev/cxgb/common/cxgb_sge_defs.h (revision 10faa568707403e7f72d9e20467c2d06b5517e43)
1b6d90eb7SKip Macy /**************************************************************************
2b6d90eb7SKip Macy 
3b6d90eb7SKip Macy Copyright (c) 2007, Chelsio Inc.
4b6d90eb7SKip Macy All rights reserved.
5b6d90eb7SKip Macy 
6b6d90eb7SKip Macy Redistribution and use in source and binary forms, with or without
7b6d90eb7SKip Macy modification, are permitted provided that the following conditions are met:
8b6d90eb7SKip Macy 
9b6d90eb7SKip Macy  1. Redistributions of source code must retain the above copyright notice,
10b6d90eb7SKip Macy     this list of conditions and the following disclaimer.
11b6d90eb7SKip Macy 
1210faa568SKip Macy  2. Neither the name of the Chelsio Corporation nor the names of its
13b6d90eb7SKip Macy     contributors may be used to endorse or promote products derived from
14b6d90eb7SKip Macy     this software without specific prior written permission.
15b6d90eb7SKip Macy 
16b6d90eb7SKip Macy THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17b6d90eb7SKip Macy AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18b6d90eb7SKip Macy IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19b6d90eb7SKip Macy ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
20b6d90eb7SKip Macy LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21b6d90eb7SKip Macy CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22b6d90eb7SKip Macy SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23b6d90eb7SKip Macy INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24b6d90eb7SKip Macy CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25b6d90eb7SKip Macy ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26b6d90eb7SKip Macy POSSIBILITY OF SUCH DAMAGE.
27b6d90eb7SKip Macy 
28b6d90eb7SKip Macy $FreeBSD$
29b6d90eb7SKip Macy 
30b6d90eb7SKip Macy ***************************************************************************/
31b6d90eb7SKip Macy /*
32b6d90eb7SKip Macy  * This file is automatically generated --- any changes will be lost.
33b6d90eb7SKip Macy  */
34b6d90eb7SKip Macy 
35b6d90eb7SKip Macy #ifndef _SGE_DEFS_H
36b6d90eb7SKip Macy #define _SGE_DEFS_H
37b6d90eb7SKip Macy 
38b6d90eb7SKip Macy #define S_EC_CREDITS    0
39b6d90eb7SKip Macy #define M_EC_CREDITS    0x7FFF
40b6d90eb7SKip Macy #define V_EC_CREDITS(x) ((x) << S_EC_CREDITS)
41b6d90eb7SKip Macy #define G_EC_CREDITS(x) (((x) >> S_EC_CREDITS) & M_EC_CREDITS)
42b6d90eb7SKip Macy 
43b6d90eb7SKip Macy #define S_EC_GTS    15
44b6d90eb7SKip Macy #define V_EC_GTS(x) ((x) << S_EC_GTS)
45b6d90eb7SKip Macy #define F_EC_GTS    V_EC_GTS(1U)
46b6d90eb7SKip Macy 
47b6d90eb7SKip Macy #define S_EC_INDEX    16
48b6d90eb7SKip Macy #define M_EC_INDEX    0xFFFF
49b6d90eb7SKip Macy #define V_EC_INDEX(x) ((x) << S_EC_INDEX)
50b6d90eb7SKip Macy #define G_EC_INDEX(x) (((x) >> S_EC_INDEX) & M_EC_INDEX)
51b6d90eb7SKip Macy 
52b6d90eb7SKip Macy #define S_EC_SIZE    0
53b6d90eb7SKip Macy #define M_EC_SIZE    0xFFFF
54b6d90eb7SKip Macy #define V_EC_SIZE(x) ((x) << S_EC_SIZE)
55b6d90eb7SKip Macy #define G_EC_SIZE(x) (((x) >> S_EC_SIZE) & M_EC_SIZE)
56b6d90eb7SKip Macy 
57b6d90eb7SKip Macy #define S_EC_BASE_LO    16
58b6d90eb7SKip Macy #define M_EC_BASE_LO    0xFFFF
59b6d90eb7SKip Macy #define V_EC_BASE_LO(x) ((x) << S_EC_BASE_LO)
60b6d90eb7SKip Macy #define G_EC_BASE_LO(x) (((x) >> S_EC_BASE_LO) & M_EC_BASE_LO)
61b6d90eb7SKip Macy 
62b6d90eb7SKip Macy #define S_EC_BASE_HI    0
63b6d90eb7SKip Macy #define M_EC_BASE_HI    0xF
64b6d90eb7SKip Macy #define V_EC_BASE_HI(x) ((x) << S_EC_BASE_HI)
65b6d90eb7SKip Macy #define G_EC_BASE_HI(x) (((x) >> S_EC_BASE_HI) & M_EC_BASE_HI)
66b6d90eb7SKip Macy 
67b6d90eb7SKip Macy #define S_EC_RESPQ    4
68b6d90eb7SKip Macy #define M_EC_RESPQ    0x7
69b6d90eb7SKip Macy #define V_EC_RESPQ(x) ((x) << S_EC_RESPQ)
70b6d90eb7SKip Macy #define G_EC_RESPQ(x) (((x) >> S_EC_RESPQ) & M_EC_RESPQ)
71b6d90eb7SKip Macy 
72b6d90eb7SKip Macy #define S_EC_TYPE    7
73b6d90eb7SKip Macy #define M_EC_TYPE    0x7
74b6d90eb7SKip Macy #define V_EC_TYPE(x) ((x) << S_EC_TYPE)
75b6d90eb7SKip Macy #define G_EC_TYPE(x) (((x) >> S_EC_TYPE) & M_EC_TYPE)
76b6d90eb7SKip Macy 
77b6d90eb7SKip Macy #define S_EC_GEN    10
78b6d90eb7SKip Macy #define V_EC_GEN(x) ((x) << S_EC_GEN)
79b6d90eb7SKip Macy #define F_EC_GEN    V_EC_GEN(1U)
80b6d90eb7SKip Macy 
81b6d90eb7SKip Macy #define S_EC_UP_TOKEN    11
82b6d90eb7SKip Macy #define M_EC_UP_TOKEN    0xFFFFF
83b6d90eb7SKip Macy #define V_EC_UP_TOKEN(x) ((x) << S_EC_UP_TOKEN)
84b6d90eb7SKip Macy #define G_EC_UP_TOKEN(x) (((x) >> S_EC_UP_TOKEN) & M_EC_UP_TOKEN)
85b6d90eb7SKip Macy 
86b6d90eb7SKip Macy #define S_EC_VALID    31
87b6d90eb7SKip Macy #define V_EC_VALID(x) ((x) << S_EC_VALID)
88b6d90eb7SKip Macy #define F_EC_VALID    V_EC_VALID(1U)
89b6d90eb7SKip Macy 
90b6d90eb7SKip Macy #define S_RQ_MSI_VEC    20
91b6d90eb7SKip Macy #define M_RQ_MSI_VEC    0x3F
92b6d90eb7SKip Macy #define V_RQ_MSI_VEC(x) ((x) << S_RQ_MSI_VEC)
93b6d90eb7SKip Macy #define G_RQ_MSI_VEC(x) (((x) >> S_RQ_MSI_VEC) & M_RQ_MSI_VEC)
94b6d90eb7SKip Macy 
95b6d90eb7SKip Macy #define S_RQ_INTR_EN    26
96b6d90eb7SKip Macy #define V_RQ_INTR_EN(x) ((x) << S_RQ_INTR_EN)
97b6d90eb7SKip Macy #define F_RQ_INTR_EN    V_RQ_INTR_EN(1U)
98b6d90eb7SKip Macy 
99b6d90eb7SKip Macy #define S_RQ_GEN    28
100b6d90eb7SKip Macy #define V_RQ_GEN(x) ((x) << S_RQ_GEN)
101b6d90eb7SKip Macy #define F_RQ_GEN    V_RQ_GEN(1U)
102b6d90eb7SKip Macy 
103b6d90eb7SKip Macy #define S_CQ_INDEX    0
104b6d90eb7SKip Macy #define M_CQ_INDEX    0xFFFF
105b6d90eb7SKip Macy #define V_CQ_INDEX(x) ((x) << S_CQ_INDEX)
106b6d90eb7SKip Macy #define G_CQ_INDEX(x) (((x) >> S_CQ_INDEX) & M_CQ_INDEX)
107b6d90eb7SKip Macy 
108b6d90eb7SKip Macy #define S_CQ_SIZE    16
109b6d90eb7SKip Macy #define M_CQ_SIZE    0xFFFF
110b6d90eb7SKip Macy #define V_CQ_SIZE(x) ((x) << S_CQ_SIZE)
111b6d90eb7SKip Macy #define G_CQ_SIZE(x) (((x) >> S_CQ_SIZE) & M_CQ_SIZE)
112b6d90eb7SKip Macy 
113b6d90eb7SKip Macy #define S_CQ_BASE_HI    0
114b6d90eb7SKip Macy #define M_CQ_BASE_HI    0xFFFFF
115b6d90eb7SKip Macy #define V_CQ_BASE_HI(x) ((x) << S_CQ_BASE_HI)
116b6d90eb7SKip Macy #define G_CQ_BASE_HI(x) (((x) >> S_CQ_BASE_HI) & M_CQ_BASE_HI)
117b6d90eb7SKip Macy 
118b6d90eb7SKip Macy #define S_CQ_RSPQ    20
119b6d90eb7SKip Macy #define M_CQ_RSPQ    0x3F
120b6d90eb7SKip Macy #define V_CQ_RSPQ(x) ((x) << S_CQ_RSPQ)
121b6d90eb7SKip Macy #define G_CQ_RSPQ(x) (((x) >> S_CQ_RSPQ) & M_CQ_RSPQ)
122b6d90eb7SKip Macy 
123b6d90eb7SKip Macy #define S_CQ_ASYNC_NOTIF    26
124b6d90eb7SKip Macy #define V_CQ_ASYNC_NOTIF(x) ((x) << S_CQ_ASYNC_NOTIF)
125b6d90eb7SKip Macy #define F_CQ_ASYNC_NOTIF    V_CQ_ASYNC_NOTIF(1U)
126b6d90eb7SKip Macy 
127b6d90eb7SKip Macy #define S_CQ_ARMED    27
128b6d90eb7SKip Macy #define V_CQ_ARMED(x) ((x) << S_CQ_ARMED)
129b6d90eb7SKip Macy #define F_CQ_ARMED    V_CQ_ARMED(1U)
130b6d90eb7SKip Macy 
131b6d90eb7SKip Macy #define S_CQ_ASYNC_NOTIF_SOL    28
132b6d90eb7SKip Macy #define V_CQ_ASYNC_NOTIF_SOL(x) ((x) << S_CQ_ASYNC_NOTIF_SOL)
133b6d90eb7SKip Macy #define F_CQ_ASYNC_NOTIF_SOL    V_CQ_ASYNC_NOTIF_SOL(1U)
134b6d90eb7SKip Macy 
135b6d90eb7SKip Macy #define S_CQ_GEN    29
136b6d90eb7SKip Macy #define V_CQ_GEN(x) ((x) << S_CQ_GEN)
137b6d90eb7SKip Macy #define F_CQ_GEN    V_CQ_GEN(1U)
138b6d90eb7SKip Macy 
139b6d90eb7SKip Macy #define S_CQ_OVERFLOW_MODE    31
140b6d90eb7SKip Macy #define V_CQ_OVERFLOW_MODE(x) ((x) << S_CQ_OVERFLOW_MODE)
141b6d90eb7SKip Macy #define F_CQ_OVERFLOW_MODE    V_CQ_OVERFLOW_MODE(1U)
142b6d90eb7SKip Macy 
143b6d90eb7SKip Macy #define S_CQ_CREDITS    0
144b6d90eb7SKip Macy #define M_CQ_CREDITS    0xFFFF
145b6d90eb7SKip Macy #define V_CQ_CREDITS(x) ((x) << S_CQ_CREDITS)
146b6d90eb7SKip Macy #define G_CQ_CREDITS(x) (((x) >> S_CQ_CREDITS) & M_CQ_CREDITS)
147b6d90eb7SKip Macy 
148b6d90eb7SKip Macy #define S_CQ_CREDIT_THRES    16
149b6d90eb7SKip Macy #define M_CQ_CREDIT_THRES    0x1FFF
150b6d90eb7SKip Macy #define V_CQ_CREDIT_THRES(x) ((x) << S_CQ_CREDIT_THRES)
151b6d90eb7SKip Macy #define G_CQ_CREDIT_THRES(x) (((x) >> S_CQ_CREDIT_THRES) & M_CQ_CREDIT_THRES)
152b6d90eb7SKip Macy 
153b6d90eb7SKip Macy #define S_FL_BASE_HI    0
154b6d90eb7SKip Macy #define M_FL_BASE_HI    0xFFFFF
155b6d90eb7SKip Macy #define V_FL_BASE_HI(x) ((x) << S_FL_BASE_HI)
156b6d90eb7SKip Macy #define G_FL_BASE_HI(x) (((x) >> S_FL_BASE_HI) & M_FL_BASE_HI)
157b6d90eb7SKip Macy 
158b6d90eb7SKip Macy #define S_FL_INDEX_LO    20
159b6d90eb7SKip Macy #define M_FL_INDEX_LO    0xFFF
160b6d90eb7SKip Macy #define V_FL_INDEX_LO(x) ((x) << S_FL_INDEX_LO)
161b6d90eb7SKip Macy #define G_FL_INDEX_LO(x) (((x) >> S_FL_INDEX_LO) & M_FL_INDEX_LO)
162b6d90eb7SKip Macy 
163b6d90eb7SKip Macy #define S_FL_INDEX_HI    0
164b6d90eb7SKip Macy #define M_FL_INDEX_HI    0xF
165b6d90eb7SKip Macy #define V_FL_INDEX_HI(x) ((x) << S_FL_INDEX_HI)
166b6d90eb7SKip Macy #define G_FL_INDEX_HI(x) (((x) >> S_FL_INDEX_HI) & M_FL_INDEX_HI)
167b6d90eb7SKip Macy 
168b6d90eb7SKip Macy #define S_FL_SIZE    4
169b6d90eb7SKip Macy #define M_FL_SIZE    0xFFFF
170b6d90eb7SKip Macy #define V_FL_SIZE(x) ((x) << S_FL_SIZE)
171b6d90eb7SKip Macy #define G_FL_SIZE(x) (((x) >> S_FL_SIZE) & M_FL_SIZE)
172b6d90eb7SKip Macy 
173b6d90eb7SKip Macy #define S_FL_GEN    20
174b6d90eb7SKip Macy #define V_FL_GEN(x) ((x) << S_FL_GEN)
175b6d90eb7SKip Macy #define F_FL_GEN    V_FL_GEN(1U)
176b6d90eb7SKip Macy 
177b6d90eb7SKip Macy #define S_FL_ENTRY_SIZE_LO    21
178b6d90eb7SKip Macy #define M_FL_ENTRY_SIZE_LO    0x7FF
179b6d90eb7SKip Macy #define V_FL_ENTRY_SIZE_LO(x) ((x) << S_FL_ENTRY_SIZE_LO)
180b6d90eb7SKip Macy #define G_FL_ENTRY_SIZE_LO(x) (((x) >> S_FL_ENTRY_SIZE_LO) & M_FL_ENTRY_SIZE_LO)
181b6d90eb7SKip Macy 
182b6d90eb7SKip Macy #define S_FL_ENTRY_SIZE_HI    0
183b6d90eb7SKip Macy #define M_FL_ENTRY_SIZE_HI    0x1FFFFF
184b6d90eb7SKip Macy #define V_FL_ENTRY_SIZE_HI(x) ((x) << S_FL_ENTRY_SIZE_HI)
185b6d90eb7SKip Macy #define G_FL_ENTRY_SIZE_HI(x) (((x) >> S_FL_ENTRY_SIZE_HI) & M_FL_ENTRY_SIZE_HI)
186b6d90eb7SKip Macy 
187b6d90eb7SKip Macy #define S_FL_CONG_THRES    21
188b6d90eb7SKip Macy #define M_FL_CONG_THRES    0x3FF
189b6d90eb7SKip Macy #define V_FL_CONG_THRES(x) ((x) << S_FL_CONG_THRES)
190b6d90eb7SKip Macy #define G_FL_CONG_THRES(x) (((x) >> S_FL_CONG_THRES) & M_FL_CONG_THRES)
191b6d90eb7SKip Macy 
192b6d90eb7SKip Macy #define S_FL_GTS    31
193b6d90eb7SKip Macy #define V_FL_GTS(x) ((x) << S_FL_GTS)
194b6d90eb7SKip Macy #define F_FL_GTS    V_FL_GTS(1U)
195b6d90eb7SKip Macy 
196b6d90eb7SKip Macy #define S_FLD_GEN1    31
197b6d90eb7SKip Macy #define V_FLD_GEN1(x) ((x) << S_FLD_GEN1)
198b6d90eb7SKip Macy #define F_FLD_GEN1    V_FLD_GEN1(1U)
199b6d90eb7SKip Macy 
200b6d90eb7SKip Macy #define S_FLD_GEN2    0
201b6d90eb7SKip Macy #define V_FLD_GEN2(x) ((x) << S_FLD_GEN2)
202b6d90eb7SKip Macy #define F_FLD_GEN2    V_FLD_GEN2(1U)
203b6d90eb7SKip Macy 
204b6d90eb7SKip Macy #define S_RSPD_TXQ1_CR    0
205b6d90eb7SKip Macy #define M_RSPD_TXQ1_CR    0x7F
206b6d90eb7SKip Macy #define V_RSPD_TXQ1_CR(x) ((x) << S_RSPD_TXQ1_CR)
207b6d90eb7SKip Macy #define G_RSPD_TXQ1_CR(x) (((x) >> S_RSPD_TXQ1_CR) & M_RSPD_TXQ1_CR)
208b6d90eb7SKip Macy 
209b6d90eb7SKip Macy #define S_RSPD_TXQ1_GTS    7
210b6d90eb7SKip Macy #define V_RSPD_TXQ1_GTS(x) ((x) << S_RSPD_TXQ1_GTS)
211b6d90eb7SKip Macy #define F_RSPD_TXQ1_GTS    V_RSPD_TXQ1_GTS(1U)
212b6d90eb7SKip Macy 
213b6d90eb7SKip Macy #define S_RSPD_TXQ2_CR    8
214b6d90eb7SKip Macy #define M_RSPD_TXQ2_CR    0x7F
215b6d90eb7SKip Macy #define V_RSPD_TXQ2_CR(x) ((x) << S_RSPD_TXQ2_CR)
216b6d90eb7SKip Macy #define G_RSPD_TXQ2_CR(x) (((x) >> S_RSPD_TXQ2_CR) & M_RSPD_TXQ2_CR)
217b6d90eb7SKip Macy 
218b6d90eb7SKip Macy #define S_RSPD_TXQ2_GTS    15
219b6d90eb7SKip Macy #define V_RSPD_TXQ2_GTS(x) ((x) << S_RSPD_TXQ2_GTS)
220b6d90eb7SKip Macy #define F_RSPD_TXQ2_GTS    V_RSPD_TXQ2_GTS(1U)
221b6d90eb7SKip Macy 
222b6d90eb7SKip Macy #define S_RSPD_TXQ0_CR    16
223b6d90eb7SKip Macy #define M_RSPD_TXQ0_CR    0x7F
224b6d90eb7SKip Macy #define V_RSPD_TXQ0_CR(x) ((x) << S_RSPD_TXQ0_CR)
225b6d90eb7SKip Macy #define G_RSPD_TXQ0_CR(x) (((x) >> S_RSPD_TXQ0_CR) & M_RSPD_TXQ0_CR)
226b6d90eb7SKip Macy 
227b6d90eb7SKip Macy #define S_RSPD_TXQ0_GTS    23
228b6d90eb7SKip Macy #define V_RSPD_TXQ0_GTS(x) ((x) << S_RSPD_TXQ0_GTS)
229b6d90eb7SKip Macy #define F_RSPD_TXQ0_GTS    V_RSPD_TXQ0_GTS(1U)
230b6d90eb7SKip Macy 
231b6d90eb7SKip Macy #define S_RSPD_EOP    24
232b6d90eb7SKip Macy #define V_RSPD_EOP(x) ((x) << S_RSPD_EOP)
233b6d90eb7SKip Macy #define F_RSPD_EOP    V_RSPD_EOP(1U)
234b6d90eb7SKip Macy #define G_RSPD_EOP(x) ((x) & F_RSPD_EOP)
235b6d90eb7SKip Macy 
236b6d90eb7SKip Macy #define S_RSPD_SOP    25
237b6d90eb7SKip Macy #define V_RSPD_SOP(x) ((x) << S_RSPD_SOP)
238b6d90eb7SKip Macy #define F_RSPD_SOP    V_RSPD_SOP(1U)
239b6d90eb7SKip Macy #define G_RSPD_SOP(x) ((x) & F_RSPD_SOP)
240b6d90eb7SKip Macy 
241b6d90eb7SKip Macy #define G_RSPD_SOP_EOP(x) ((G_RSPD_SOP(x) | G_RSPD_EOP(x)) >> S_RSPD_EOP)
242b6d90eb7SKip Macy 
243b6d90eb7SKip Macy #define S_RSPD_ASYNC_NOTIF    26
244b6d90eb7SKip Macy #define V_RSPD_ASYNC_NOTIF(x) ((x) << S_RSPD_ASYNC_NOTIF)
245b6d90eb7SKip Macy #define F_RSPD_ASYNC_NOTIF    V_RSPD_ASYNC_NOTIF(1U)
246b6d90eb7SKip Macy 
247b6d90eb7SKip Macy #define S_RSPD_FL0_GTS    27
248b6d90eb7SKip Macy #define V_RSPD_FL0_GTS(x) ((x) << S_RSPD_FL0_GTS)
249b6d90eb7SKip Macy #define F_RSPD_FL0_GTS    V_RSPD_FL0_GTS(1U)
250b6d90eb7SKip Macy 
251b6d90eb7SKip Macy #define S_RSPD_FL1_GTS    28
252b6d90eb7SKip Macy #define V_RSPD_FL1_GTS(x) ((x) << S_RSPD_FL1_GTS)
253b6d90eb7SKip Macy #define F_RSPD_FL1_GTS    V_RSPD_FL1_GTS(1U)
254b6d90eb7SKip Macy 
255b6d90eb7SKip Macy #define S_RSPD_IMM_DATA_VALID    29
256b6d90eb7SKip Macy #define V_RSPD_IMM_DATA_VALID(x) ((x) << S_RSPD_IMM_DATA_VALID)
257b6d90eb7SKip Macy #define F_RSPD_IMM_DATA_VALID    V_RSPD_IMM_DATA_VALID(1U)
258b6d90eb7SKip Macy 
259b6d90eb7SKip Macy #define S_RSPD_OFFLOAD    30
260b6d90eb7SKip Macy #define V_RSPD_OFFLOAD(x) ((x) << S_RSPD_OFFLOAD)
261b6d90eb7SKip Macy #define F_RSPD_OFFLOAD    V_RSPD_OFFLOAD(1U)
262b6d90eb7SKip Macy 
263b6d90eb7SKip Macy #define S_RSPD_GEN1    31
264b6d90eb7SKip Macy #define V_RSPD_GEN1(x) ((x) << S_RSPD_GEN1)
265b6d90eb7SKip Macy #define F_RSPD_GEN1    V_RSPD_GEN1(1U)
266b6d90eb7SKip Macy 
267b6d90eb7SKip Macy #define S_RSPD_LEN    0
268b6d90eb7SKip Macy #define M_RSPD_LEN    0x7FFFFFFF
269b6d90eb7SKip Macy #define V_RSPD_LEN(x) ((x) << S_RSPD_LEN)
270b6d90eb7SKip Macy #define G_RSPD_LEN(x) (((x) >> S_RSPD_LEN) & M_RSPD_LEN)
271b6d90eb7SKip Macy 
272b6d90eb7SKip Macy #define S_RSPD_FLQ    31
273b6d90eb7SKip Macy #define V_RSPD_FLQ(x) ((x) << S_RSPD_FLQ)
274b6d90eb7SKip Macy #define F_RSPD_FLQ    V_RSPD_FLQ(1U)
275b6d90eb7SKip Macy 
276b6d90eb7SKip Macy #define S_RSPD_GEN2    0
277b6d90eb7SKip Macy #define V_RSPD_GEN2(x) ((x) << S_RSPD_GEN2)
278b6d90eb7SKip Macy #define F_RSPD_GEN2    V_RSPD_GEN2(1U)
279b6d90eb7SKip Macy 
280b6d90eb7SKip Macy #define S_RSPD_INR_VEC    1
281b6d90eb7SKip Macy #define M_RSPD_INR_VEC    0x7F
282b6d90eb7SKip Macy #define V_RSPD_INR_VEC(x) ((x) << S_RSPD_INR_VEC)
283b6d90eb7SKip Macy #define G_RSPD_INR_VEC(x) (((x) >> S_RSPD_INR_VEC) & M_RSPD_INR_VEC)
284b6d90eb7SKip Macy 
285b6d90eb7SKip Macy #endif /* _SGE_DEFS_H */
286