diff options
author | Zhenyu Wang <zhenyu.z.wang@intel.com> | 2008-01-24 01:46:36 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2008-02-07 00:09:40 -0500 |
commit | 5f5f9d4c7bf96c044fb98c7c107172a730b2a247 (patch) | |
tree | bd5b0b5e79896ac88c68f476e0c7f8c11d490423 /drivers/char | |
parent | 3e684eae586a9b210a4517da5637a255b1ff5a92 (diff) |
i915: Add chipset id for Intel Integrated Graphics Device
This adds new chipset id in drm.
Signed-off-by: Zhenyu Wang <zhenyu.z.wang@intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/drm/drm_pciids.h | 1 | ||||
-rw-r--r-- | drivers/char/drm/i915_drv.c | 2 | ||||
-rw-r--r-- | drivers/char/drm/i915_drv.h | 7 |
3 files changed, 7 insertions, 3 deletions
diff --git a/drivers/char/drm/drm_pciids.h b/drivers/char/drm/drm_pciids.h index c4621beefd56..c69a4d095e2d 100644 --- a/drivers/char/drm/drm_pciids.h +++ b/drivers/char/drm/drm_pciids.h | |||
@@ -311,4 +311,5 @@ | |||
311 | {0x8086, 0x29d2, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, \ | 311 | {0x8086, 0x29d2, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, \ |
312 | {0x8086, 0x2a02, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, \ | 312 | {0x8086, 0x2a02, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, \ |
313 | {0x8086, 0x2a12, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, \ | 313 | {0x8086, 0x2a12, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, \ |
314 | {0x8086, 0x2a42, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, \ | ||
314 | {0, 0, 0} | 315 | {0, 0, 0} |
diff --git a/drivers/char/drm/i915_drv.c b/drivers/char/drm/i915_drv.c index d745f3fd6fbf..52e51033d32c 100644 --- a/drivers/char/drm/i915_drv.c +++ b/drivers/char/drm/i915_drv.c | |||
@@ -298,7 +298,7 @@ static int i915_suspend(struct drm_device *dev) | |||
298 | dev_priv->saveDSPBSIZE = I915_READ(DSPBSIZE); | 298 | dev_priv->saveDSPBSIZE = I915_READ(DSPBSIZE); |
299 | dev_priv->saveDSPBPOS = I915_READ(DSPBPOS); | 299 | dev_priv->saveDSPBPOS = I915_READ(DSPBPOS); |
300 | dev_priv->saveDSPBBASE = I915_READ(DSPBBASE); | 300 | dev_priv->saveDSPBBASE = I915_READ(DSPBBASE); |
301 | if (IS_I965GM(dev)) { | 301 | if (IS_I965GM(dev) || IS_IGD_GM(dev)) { |
302 | dev_priv->saveDSPBSURF = I915_READ(DSPBSURF); | 302 | dev_priv->saveDSPBSURF = I915_READ(DSPBSURF); |
303 | dev_priv->saveDSPBTILEOFF = I915_READ(DSPBTILEOFF); | 303 | dev_priv->saveDSPBTILEOFF = I915_READ(DSPBTILEOFF); |
304 | } | 304 | } |
diff --git a/drivers/char/drm/i915_drv.h b/drivers/char/drm/i915_drv.h index 440228f71fe0..37bbf6729b4e 100644 --- a/drivers/char/drm/i915_drv.h +++ b/drivers/char/drm/i915_drv.h | |||
@@ -1084,10 +1084,13 @@ extern int i915_wait_ring(struct drm_device * dev, int n, const char *caller); | |||
1084 | (dev)->pci_device == 0x2992 || \ | 1084 | (dev)->pci_device == 0x2992 || \ |
1085 | (dev)->pci_device == 0x29A2 || \ | 1085 | (dev)->pci_device == 0x29A2 || \ |
1086 | (dev)->pci_device == 0x2A02 || \ | 1086 | (dev)->pci_device == 0x2A02 || \ |
1087 | (dev)->pci_device == 0x2A12) | 1087 | (dev)->pci_device == 0x2A12 || \ |
1088 | (dev)->pci_device == 0x2A42) | ||
1088 | 1089 | ||
1089 | #define IS_I965GM(dev) ((dev)->pci_device == 0x2A02) | 1090 | #define IS_I965GM(dev) ((dev)->pci_device == 0x2A02) |
1090 | 1091 | ||
1092 | #define IS_IGD_GM(dev) ((dev)->pci_device == 0x2A42) | ||
1093 | |||
1091 | #define IS_G33(dev) ((dev)->pci_device == 0x29C2 || \ | 1094 | #define IS_G33(dev) ((dev)->pci_device == 0x29C2 || \ |
1092 | (dev)->pci_device == 0x29B2 || \ | 1095 | (dev)->pci_device == 0x29B2 || \ |
1093 | (dev)->pci_device == 0x29D2) | 1096 | (dev)->pci_device == 0x29D2) |
@@ -1096,7 +1099,7 @@ extern int i915_wait_ring(struct drm_device * dev, int n, const char *caller); | |||
1096 | IS_I945GM(dev) || IS_I965G(dev) || IS_G33(dev)) | 1099 | IS_I945GM(dev) || IS_I965G(dev) || IS_G33(dev)) |
1097 | 1100 | ||
1098 | #define IS_MOBILE(dev) (IS_I830(dev) || IS_I85X(dev) || IS_I915GM(dev) || \ | 1101 | #define IS_MOBILE(dev) (IS_I830(dev) || IS_I85X(dev) || IS_I915GM(dev) || \ |
1099 | IS_I945GM(dev) || IS_I965GM(dev)) | 1102 | IS_I945GM(dev) || IS_I965GM(dev) || IS_IGD_GM(dev)) |
1100 | 1103 | ||
1101 | #define PRIMARY_RINGBUFFER_SIZE (128*1024) | 1104 | #define PRIMARY_RINGBUFFER_SIZE (128*1024) |
1102 | 1105 | ||