diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-06-29 11:16:24 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-06-30 23:06:51 +0100 |
commit | fa3bbcf9b7870d106efbf8f1c6706c7cda7e44d5 (patch) | |
tree | 2cf83e30ce8d88f5f3e2727f10c5ce8f8f584a70 /lib/intel_chipset.h | |
parent | d308bb082d429eb25dfd2844bcbafe722660a1ff (diff) |
intel_chipset: Convert IS_MOBILE to intel_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 | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/lib/intel_chipset.h b/lib/intel_chipset.h index 69c878bd..ce130ed0 100644 --- a/lib/intel_chipset.h +++ b/lib/intel_chipset.h @@ -273,16 +273,6 @@ void intel_check_pch(void); #endif /* __GTK_DOC_IGNORE__ */ -#define IS_MOBILE(devid) ((devid) == PCI_CHIP_I855_GM || \ - (devid) == PCI_CHIP_I915_GM || \ - (devid) == PCI_CHIP_I945_GM || \ - (devid) == PCI_CHIP_I945_GME || \ - (devid) == PCI_CHIP_I965_GM || \ - (devid) == PCI_CHIP_I965_GME || \ - (devid) == PCI_CHIP_GM45_GM || IS_IGD(devid) || \ - (devid) == PCI_CHIP_IVYBRIDGE_M_GT1 || \ - (devid) == PCI_CHIP_IVYBRIDGE_M_GT2) - #define IS_G45(devid) ((devid) == PCI_CHIP_IGD_E_G || \ (devid) == PCI_CHIP_Q45_G || \ (devid) == PCI_CHIP_G45_G || \ @@ -490,6 +480,8 @@ void intel_check_pch(void); #define IS_GEN8(devid) IS_GEN(devid, 8) #define IS_GEN9(devid) IS_GEN(devid, 9) +#define IS_MOBILE(devid) (intel_device_info(devid)->is_mobile) + #define HAS_BSD_RING(devid) AT_LEAST_GEN(devid, 5) #define HAS_BLT_RING(devid) AT_LEAST_GEN(devid, 6) |