1 /* SPDX-License-Identifier: MIT */ 2 /* 3 * Copyright © 2023 Intel Corporation 4 */ 5 6 #ifndef _ABI_GSC_MKHI_COMMANDS_ABI_H 7 #define _ABI_GSC_MKHI_COMMANDS_ABI_H 8 9 #include <linux/types.h> 10 11 /* Heci client ID for MKHI commands */ 12 #define HECI_MEADDRESS_MKHI 7 13 14 /* Generic MKHI header */ 15 struct gsc_mkhi_header { 16 u8 group_id; 17 u8 command; 18 u8 reserved; 19 u8 result; 20 } __packed; 21 22 /* GFX_SRV commands */ 23 #define MKHI_GROUP_ID_GFX_SRV 0x30 24 25 #define MKHI_GFX_SRV_GET_HOST_COMPATIBILITY_VERSION (0x42) 26 27 struct gsc_get_compatibility_version_in { 28 struct gsc_mkhi_header header; 29 } __packed; 30 31 struct gsc_get_compatibility_version_out { 32 struct gsc_mkhi_header header; 33 u16 proj_major; 34 u16 compat_major; 35 u16 compat_minor; 36 u16 reserved[5]; 37 } __packed; 38 39 #endif 40