1 /* SPDX-License-Identifier: MIT */ 2 /* 3 * Copyright © 2023 Intel Corporation 4 */ 5 #ifndef _XE_REGS_H_ 6 #define _XE_REGS_H_ 7 8 #include "regs/xe_reg_defs.h" 9 10 #define TIMESTAMP_OVERRIDE XE_REG(0x44074) 11 #define TIMESTAMP_OVERRIDE_US_COUNTER_DENOMINATOR_MASK REG_GENMASK(15, 12) 12 #define TIMESTAMP_OVERRIDE_US_COUNTER_DIVIDER_MASK REG_GENMASK(9, 0) 13 14 #define PCU_IRQ_OFFSET 0x444e0 15 #define GU_MISC_IRQ_OFFSET 0x444f0 16 #define GU_MISC_GSE REG_BIT(27) 17 18 #define SOFTWARE_FLAGS_SPR33 XE_REG(0x4f084) 19 20 #define GU_CNTL_PROTECTED XE_REG(0x10100C) 21 #define DRIVERINT_FLR_DIS REG_BIT(31) 22 23 #define GU_CNTL XE_REG(0x101010) 24 #define LMEM_INIT REG_BIT(7) 25 #define DRIVERFLR REG_BIT(31) 26 27 #define GU_DEBUG XE_REG(0x101018) 28 #define DRIVERFLR_STATUS REG_BIT(31) 29 30 #define XEHP_CLOCK_GATE_DIS XE_REG(0x101014) 31 #define SGSI_SIDECLK_DIS REG_BIT(17) 32 33 #define GGC XE_REG(0x108040) 34 #define GMS_MASK REG_GENMASK(15, 8) 35 #define GGMS_MASK REG_GENMASK(7, 6) 36 37 #define DSMBASE XE_REG(0x1080C0) 38 #define BDSM_MASK REG_GENMASK64(63, 20) 39 40 #define GSMBASE XE_REG(0x108100) 41 42 #define STOLEN_RESERVED XE_REG(0x1082c0) 43 #define WOPCM_SIZE_MASK REG_GENMASK64(9, 7) 44 45 #define MTL_RP_STATE_CAP XE_REG(0x138000) 46 47 #define MTL_GT_RPE_FREQUENCY XE_REG(0x13800c) 48 49 #define MTL_MEDIAP_STATE_CAP XE_REG(0x138020) 50 #define MTL_RPN_CAP_MASK REG_GENMASK(24, 16) 51 #define MTL_RP0_CAP_MASK REG_GENMASK(8, 0) 52 53 #define MTL_MPE_FREQUENCY XE_REG(0x13802c) 54 #define MTL_RPE_MASK REG_GENMASK(8, 0) 55 56 #define DG1_MSTR_TILE_INTR XE_REG(0x190008) 57 #define DG1_MSTR_IRQ REG_BIT(31) 58 #define DG1_MSTR_TILE(t) REG_BIT(t) 59 60 #define GFX_MSTR_IRQ XE_REG(0x190010, XE_REG_OPTION_VF) 61 #define MASTER_IRQ REG_BIT(31) 62 #define GU_MISC_IRQ REG_BIT(29) 63 #define DISPLAY_IRQ REG_BIT(16) 64 #define GT_DW_IRQ(x) REG_BIT(x) 65 66 #define PVC_RP_STATE_CAP XE_REG(0x281014) 67 68 #endif 69