summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
authorEric Anholt <anholt@FreeBSD.org>2006-05-12 13:32:38 -0700
committerEric Anholt <anholt@FreeBSD.org>2006-05-12 13:32:38 -0700
commitaf2432322ba1d561057c34ab185561a8e799e8cd (patch)
tree9ac0e286777cd1198f13ec0830946815edd64e53 /src/common.h
parentf2967a2f5f47b636b2445fa69dbc3ec79e065c90 (diff)
First pass of integrating the Tungsten Graphics driver for Broadwater. This
patch is based off of diffing from the branchpoint to the supplied code, but with many chunks containing reversions of commits removed. Won't work yet.
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/common.h b/src/common.h
index a6e4ca3e..70f58a94 100644
--- a/src/common.h
+++ b/src/common.h
@@ -272,6 +272,11 @@ extern int I810_DEBUG;
#define PCI_CHIP_I945_GM_BRIDGE 0x27A0
#endif
+#ifndef PCI_CHIP_BROADWATER
+#define PCI_CHIP_BROADWATER 0x2982
+#define PCI_CHIP_BROADWATER_BRIDGE 0x2980
+#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)
@@ -287,7 +292,8 @@ extern int I810_DEBUG;
#define IS_I915GM(pI810) (pI810->PciInfo->chipType == PCI_CHIP_I915_GM)
#define IS_I945G(pI810) (pI810->PciInfo->chipType == PCI_CHIP_I945_G)
#define IS_I945GM(pI810) (pI810->PciInfo->chipType == PCI_CHIP_I945_GM)
-#define IS_I9XX(pI810) (IS_I915G(pI810) || IS_I915GM(pI810) || IS_I945G(pI810) || IS_I945GM(pI810))
+#define IS_BROADWATER(pI810) (pI810->PciInfo->chipType == PCI_CHIP_BROADWATER)
+#define IS_I9XX(pI810) (IS_I915G(pI810) || IS_I915GM(pI810) || IS_I945G(pI810) || IS_I945GM(pI810) || IS_BROADWATER(pI810))
#define IS_MOBILE(pI810) (IS_I830(pI810) || IS_I85X(pI810) || IS_I915GM(pI810) || IS_I945GM(pI810))