summaryrefslogtreecommitdiff
path: root/lib/intel_chipset.h
diff options
context:
space:
mode:
authorZbigniew Kempczyński <zbigniew.kempczynski@intel.com>2022-02-14 13:33:37 +0100
committerZbigniew Kempczyński <zbigniew.kempczynski@intel.com>2022-02-15 16:05:49 +0100
commitb842aa665d4834a9a91436fb0030670c62002fc8 (patch)
tree25174464aedd28488fa2a0e30d5e684e78df7706 /lib/intel_chipset.h
parent4a18bc7336a88d1ce76510d19d346e4c26b22e9a (diff)
lib/intel_device_info: Introduce i915_pciids_local.h and add DG2 definition
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_<machine>() macros are in use. Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com> Cc: Petri Latvala <petri.latvala@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'lib/intel_chipset.h')
-rw-r--r--lib/intel_chipset.h2
1 files changed, 2 insertions, 0 deletions
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)