1 /* SPDX-License-Identifier: MIT */ 2 /* 3 * Copyright © 2023 Intel Corporation 4 */ 5 6 #ifndef _XE_GSC_REGS_H_ 7 #define _XE_GSC_REGS_H_ 8 9 #include <linux/compiler.h> 10 #include <linux/types.h> 11 12 #include "regs/xe_reg_defs.h" 13 14 /* Definitions of GSC H/W registers, bits, etc */ 15 16 #define MTL_GSC_HECI1_BASE 0x00116000 17 #define MTL_GSC_HECI2_BASE 0x00117000 18 19 #define HECI_H_CSR(base) XE_REG((base) + 0x4) 20 #define HECI_H_CSR_IE REG_BIT(0) 21 #define HECI_H_CSR_IS REG_BIT(1) 22 #define HECI_H_CSR_IG REG_BIT(2) 23 #define HECI_H_CSR_RDY REG_BIT(3) 24 #define HECI_H_CSR_RST REG_BIT(4) 25 26 /* 27 * The FWSTS register values are FW defined and can be different between 28 * HECI1 and HECI2 29 */ 30 #define HECI_FWSTS1(base) XE_REG((base) + 0xc40) 31 #define HECI1_FWSTS1_CURRENT_STATE REG_GENMASK(3, 0) 32 #define HECI1_FWSTS1_CURRENT_STATE_RESET 0 33 #define HECI1_FWSTS1_PROXY_STATE_NORMAL 5 34 #define HECI1_FWSTS1_INIT_COMPLETE REG_BIT(9) 35 #define HECI_FWSTS5(base) XE_REG((base) + 0xc68) 36 #define HECI1_FWSTS5_HUC_AUTH_DONE REG_BIT(19) 37 38 #define HECI_H_GS1(base) XE_REG((base) + 0xc4c) 39 #define HECI_H_GS1_ER_PREP REG_BIT(0) 40 41 #endif 42