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