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