summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@fairlite.demon.co.uk>2005-05-20 11:56:45 +0000
committerAlan Hourihane <alanh@fairlite.demon.co.uk>2005-05-20 11:56:45 +0000
commitb99ef9cd59fce0e02e8829210c7cb8aadb6a3499 (patch)
treee851f4d5dbe03531df16e422aa5996ba3e2265ab /src/common.h
parent3b87fac327b5549678f91a9c961b9fe5c0bf8a37 (diff)
Bugzilla #2585: https://bugs.freedesktop.org/show_bug.cgi?id=2585
Support the Intel E7221 server chipset.
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/common.h b/src/common.h
index 62854455..dda5d36b 100644
--- a/src/common.h
+++ b/src/common.h
@@ -310,6 +310,12 @@ extern int I810_DEBUG;
#define PCI_CHIP_I915_GM_BRIDGE 0x2590
#endif
+#ifndef PCI_CHIP_E7221_G
+#define PCI_CHIP_E7221_G 0x258A
+/* Same as I915_G_BRIDGE */
+#define PCI_CHIP_E7221_G_BRIDGE 0x2580
+#endif
+
#define IS_I810(pI810) (pI810->PciInfo->chipType == PCI_CHIP_I810 || \
pI810->PciInfo->chipType == PCI_CHIP_I810_DC100 || \
pI810->PciInfo->chipType == PCI_CHIP_I810_E)
@@ -317,8 +323,10 @@ extern int I810_DEBUG;
#define IS_I830(pI810) (pI810->PciInfo->chipType == PCI_CHIP_I830_M)
#define IS_845G(pI810) (pI810->PciInfo->chipType == PCI_CHIP_845_G)
#define IS_I85X(pI810) (pI810->PciInfo->chipType == PCI_CHIP_I855_GM)
+#define IS_I852(pI810) (pI810->PciInfo->chipType == PCI_CHIP_I855_GM && (pI810->variant == I852_GM || pI810->variant == I852_GME))
+#define IS_I855(pI810) (pI810->PciInfo->chipType == PCI_CHIP_I855_GM && (pI810->variant == I855_GM || pI810->variant == I855_GME))
#define IS_I865G(pI810) (pI810->PciInfo->chipType == PCI_CHIP_I865_G)
-#define IS_I915G(pI810) (pI810->PciInfo->chipType == PCI_CHIP_I915_G)
+#define IS_I915G(pI810) (pI810->PciInfo->chipType == PCI_CHIP_I915_G || pI810->PciInfo->chipType == PCI_CHIP_E7221_G)
#define IS_I915GM(pI810) (pI810->PciInfo->chipType == PCI_CHIP_I915_GM)
#define IS_MOBILE(pI810) (IS_I830(pI810) || IS_I85X(pI810) || IS_I915GM(pI810))