[Intel-gfx] [PATCH igt 15/17] intel_chipset: Convert IS_G4X to device info
Chris Wilson
chris at chris-wilson.co.uk
Wed Jun 29 11:39:05 UTC 2016
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
---
lib/intel_chipset.h | 17 +++++++----------
1 file changed, 7 insertions(+), 10 deletions(-)
diff --git a/lib/intel_chipset.h b/lib/intel_chipset.h
index 9806f2f..e3e97ff 100644
--- a/lib/intel_chipset.h
+++ b/lib/intel_chipset.h
@@ -269,13 +269,6 @@ void intel_check_pch(void);
#endif /* __GTK_DOC_IGNORE__ */
-#define IS_G45(devid) ((devid) == PCI_CHIP_IGD_E_G || \
- (devid) == PCI_CHIP_Q45_G || \
- (devid) == PCI_CHIP_G45_G || \
- (devid) == PCI_CHIP_G41_G)
-#define IS_GM45(devid) ((devid) == PCI_CHIP_GM45_GM)
-#define IS_G4X(devid) (IS_G45(devid) || IS_GM45(devid))
-
#define IS_HSW_GT1(devid) ((devid) == PCI_CHIP_HASWELL_GT1 || \
(devid) == PCI_CHIP_HASWELL_M_GT1 || \
(devid) == PCI_CHIP_HASWELL_S_GT1 || \
@@ -400,6 +393,13 @@ void intel_check_pch(void);
#define IS_G33(devid) (intel_device_info(devid)->is_bearlake || \
intel_device_info(devid)->is_pineview)
+#define IS_BROADWATER(devid) (intel_device_info(devid)->is_broadwater)
+#define IS_CRESTLINE(devid) (intel_device_info(devid)->is_crestline)
+
+#define IS_GM45(devid) (intel_device_info(devid)->is_cantiga)
+#define IS_G45(devid) (intel_device_info(devid)->is_eaglelake)
+#define IS_G4X(devid) (IS_G45(devid) || IS_GM45(devid))
+
#define IS_IRONLAKE(devid) (intel_device_info(devid)->is_ironlake)
#define IS_ARRANDALE(devid) (intel_device_info(devid)->is_arrandale)
#define IS_IVYBRIDGE(devid) (intel_device_info(devid)->is_ivybridge)
@@ -411,9 +411,6 @@ void intel_check_pch(void);
#define IS_SKYLAKE(devid) (intel_device_info(devid)->is_skylake)
#define IS_BROXTON(devid) (intel_device_info(devid)->is_broxton)
-#define IS_BROADWATER(devid) (intel_device_info(devid)->is_broadwater)
-#define IS_CRESTLINE(devid) (intel_device_info(devid)->is_crestline)
-
#define IS_GEN(devid, x) (intel_device_info(devid)->gen & (1u << ((x)-1)))
#define AT_LEAST_GEN(devid, x) (intel_device_info(devid)->gen & -(1u << ((x)-1)))
--
2.8.1
More information about the Intel-gfx
mailing list