From b842aa665d4834a9a91436fb0030670c62002fc8 Mon Sep 17 00:00:00 2001 From: Zbigniew Kempczyński Date: Mon, 14 Feb 2022 13:33:37 +0100 Subject: lib/intel_device_info: Introduce i915_pciids_local.h and add DG2 definition MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before pciids will land in the kernel and then is merged to IGT we need to add them locally to unblock compilation and testing staged kernels. We can use some hybrid solution where intel_device_info takes official pciids from i915_pciids.h and not official from i915_pciids_local.h. Such strategy allows us to decrease code changes in the libraries/tests especially where IS_GENx() or IS_() macros are in use. Signed-off-by: Zbigniew Kempczyński Cc: Petri Latvala Reviewed-by: Petri Latvala --- lib/intel_chipset.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/intel_chipset.h') diff --git a/lib/intel_chipset.h b/lib/intel_chipset.h index 3527cbe5..1396f105 100644 --- a/lib/intel_chipset.h +++ b/lib/intel_chipset.h @@ -77,6 +77,7 @@ struct intel_device_info { bool is_tigerlake : 1; bool is_rocketlake : 1; bool is_dg1 : 1; + bool is_dg2 : 1; bool is_alderlake_s : 1; bool is_raptorlake_s : 1; bool is_alderlake_p : 1; @@ -182,6 +183,7 @@ void intel_check_pch(void); #define IS_TIGERLAKE(devid) (intel_get_device_info(devid)->is_tigerlake) #define IS_ROCKETLAKE(devid) (intel_get_device_info(devid)->is_rocketlake) #define IS_DG1(devid) (intel_get_device_info(devid)->is_dg1) +#define IS_DG2(devid) (intel_get_device_info(devid)->is_dg2) #define IS_ALDERLAKE_S(devid) (intel_get_device_info(devid)->is_alderlake_s) #define IS_RAPTORLAKE_S(devid) (intel_get_device_info(devid)->is_raptorlake_s) #define IS_ALDERLAKE_P(devid) (intel_get_device_info(devid)->is_alderlake_p) -- cgit v1.2.3