diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-06-29 11:06:09 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-06-30 23:06:51 +0100 |
commit | e63f1544ff033f8b8b5e83e16cb0e60e65a04c7d (patch) | |
tree | 1cd21150e34ffc367ac440a8a73b8016971261af /lib/intel_chipset.h | |
parent | 755fc0c8c3961fd22eff28e368f115101e9dab1d (diff) |
intel_chipset: Convert IS_G4X to device info
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/intel_chipset.h')
-rw-r--r-- | lib/intel_chipset.h | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/lib/intel_chipset.h b/lib/intel_chipset.h index 9806f2f5a..e3e97ff07 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))) |