summaryrefslogtreecommitdiffstats
path: root/sys/dev/drm/i915_drv.h
diff options
context:
space:
mode:
authorrnoland <rnoland@FreeBSD.org>2010-03-13 11:51:18 +0000
committerrnoland <rnoland@FreeBSD.org>2010-03-13 11:51:18 +0000
commit9c66077065013a46ce0156bd4524ddd6b5444ae8 (patch)
treeef511ab29eaff812b7f5f0fa07220a03a55f9b95 /sys/dev/drm/i915_drv.h
parent9d0c668a1400c6b3f9488d68f93c0377417c07d5 (diff)
downloadFreeBSD-src-9c66077065013a46ce0156bd4524ddd6b5444ae8.zip
FreeBSD-src-9c66077065013a46ce0156bd4524ddd6b5444ae8.tar.gz
Add support for Intel Pineview chips, aka IGD
Slightly modified version of the submitted patch. PR: 143427 Submitted by: Mamoru Sumida <msumida@mvc.biglobe.ne.jp> MFC after: 3 days
Diffstat (limited to 'sys/dev/drm/i915_drv.h')
-rw-r--r--sys/dev/drm/i915_drv.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/dev/drm/i915_drv.h b/sys/dev/drm/i915_drv.h
index f52ab50..f011bcd 100644
--- a/sys/dev/drm/i915_drv.h
+++ b/sys/dev/drm/i915_drv.h
@@ -657,15 +657,21 @@ extern int i915_wait_ring(struct drm_device * dev, int n, const char *caller);
(dev)->pci_device == 0x2E32 || \
IS_GM45(dev))
+#define IS_IGDG(dev) ((dev)->pci_device == 0xa001)
+#define IS_IGDGM(dev) ((dev)->pci_device == 0xa011)
+#define IS_IGD(dev) (IS_IGDG(dev) || IS_IGDGM(dev))
+
#define IS_G33(dev) ((dev)->pci_device == 0x29C2 || \
(dev)->pci_device == 0x29B2 || \
- (dev)->pci_device == 0x29D2)
+ (dev)->pci_device == 0x29D2 || \
+ IS_IGD(DEV))
#define IS_I9XX(dev) (IS_I915G(dev) || IS_I915GM(dev) || IS_I945G(dev) || \
IS_I945GM(dev) || IS_I965G(dev) || IS_G33(dev))
#define IS_MOBILE(dev) (IS_I830(dev) || IS_I85X(dev) || IS_I915GM(dev) || \
- IS_I945GM(dev) || IS_I965GM(dev) || IS_GM45(dev))
+ IS_I945GM(dev) || IS_I965GM(dev) || IS_GM45(dev) || \
+ IS_IGD(dev))
#define I915_NEED_GFX_HWS(dev) (IS_G33(dev) || IS_GM45(dev) || IS_G4X(dev))
OpenPOWER on IntegriCloud