diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2011-04-28 17:33:09 -0400 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-05-13 20:04:29 -0400 |
commit | 4b65177b27ede9dee3186bc3a58c737997ee4749 (patch) | |
tree | 37d845f71303fbda77be9f16c2b0b91fe52fe3e0 | |
parent | 85436696fefd55afdf8f4ce26ac044be72f2d492 (diff) |
drm/i915: add IS_IVYBRIDGE macro for checks
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index 8a0fa14ee714..bb8e839d2ac8 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h | |||
@@ -229,6 +229,7 @@ struct intel_device_info { | |||
229 | u8 is_pineview : 1; | 229 | u8 is_pineview : 1; |
230 | u8 is_broadwater : 1; | 230 | u8 is_broadwater : 1; |
231 | u8 is_crestline : 1; | 231 | u8 is_crestline : 1; |
232 | u8 is_ivybridge : 1; | ||
232 | u8 has_fbc : 1; | 233 | u8 has_fbc : 1; |
233 | u8 has_pipe_cxsr : 1; | 234 | u8 has_pipe_cxsr : 1; |
234 | u8 has_hotplug : 1; | 235 | u8 has_hotplug : 1; |
@@ -933,6 +934,7 @@ enum intel_chip_family { | |||
933 | #define IS_G33(dev) (INTEL_INFO(dev)->is_g33) | 934 | #define IS_G33(dev) (INTEL_INFO(dev)->is_g33) |
934 | #define IS_IRONLAKE_D(dev) ((dev)->pci_device == 0x0042) | 935 | #define IS_IRONLAKE_D(dev) ((dev)->pci_device == 0x0042) |
935 | #define IS_IRONLAKE_M(dev) ((dev)->pci_device == 0x0046) | 936 | #define IS_IRONLAKE_M(dev) ((dev)->pci_device == 0x0046) |
937 | #define IS_IVYBRIDGE(dev) (INTEL_INFO(dev)->is_ivybridge) | ||
936 | #define IS_MOBILE(dev) (INTEL_INFO(dev)->is_mobile) | 938 | #define IS_MOBILE(dev) (INTEL_INFO(dev)->is_mobile) |
937 | 939 | ||
938 | /* | 940 | /* |