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 | 2a74eb5994257a1cfddb59f341f638fe81566af1 (patch) | |
tree | 1d299515cb370f6e78469966ac171fb72e970336 /lib/intel_chipset.h | |
parent | 5679105766d0213df09d27edaed069048f3df1aa (diff) |
intel_chipset: Convert IS_BROADWATER, IS_CRESTLINE 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 | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/intel_chipset.h b/lib/intel_chipset.h index 8f159ea0..6f7f26d0 100644 --- a/lib/intel_chipset.h +++ b/lib/intel_chipset.h @@ -453,13 +453,8 @@ void intel_check_pch(void); (devid) == PCI_CHIP_BROXTON_3 || \ (devid) == PCI_CHIP_BROXTON_4) -#define IS_BROADWATER(devid) ((devid) == PCI_CHIP_I946_GZ || \ - (devid) == PCI_CHIP_I965_G_1 || \ - (devid) == PCI_CHIP_I965_Q || \ - (devid) == PCI_CHIP_I965_G) - -#define IS_CRESTLINE(devid) ((devid) == PCI_CHIP_I965_GM || \ - (devid) == PCI_CHIP_I965_GME) +#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))) |