summaryrefslogtreecommitdiff
path: root/lib/intel_chipset.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2009-10-22 15:52:02 -0700
committerEric Anholt <eric@anholt.net>2010-02-25 10:41:49 -0800
commit613d1c48968bf5b6130d01a3408a70fc2d1307ee (patch)
tree34fad033ca78a57b698ff59a08dcd2d3e191161f /lib/intel_chipset.h
parentc94174d106b0b7c97643309ec85d763b0429ef11 (diff)
Add some initial definitions for Sandybridge.
Diffstat (limited to 'lib/intel_chipset.h')
-rwxr-xr-xlib/intel_chipset.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/lib/intel_chipset.h b/lib/intel_chipset.h
index 9197ff6e..3545657e 100755
--- a/lib/intel_chipset.h
+++ b/lib/intel_chipset.h
@@ -70,6 +70,8 @@
#define PCI_CHIP_ILD_G 0x0042
#define PCI_CHIP_ILM_G 0x0046
+#define PCI_CHIP_SANDYBRIDGE 0x0102
+
#define IS_MOBILE(devid) (devid == PCI_CHIP_I855_GM || \
devid == PCI_CHIP_I915_GM || \
devid == PCI_CHIP_I945_GM || \
@@ -100,15 +102,23 @@
devid == PCI_CHIP_Q33_G || \
devid == PCI_CHIP_Q35_G || IS_IGD(devid))
-#define IS_965(devid) (devid == PCI_CHIP_I965_G || \
+#define IS_GEN4(devid) (devid == PCI_CHIP_I965_G || \
devid == PCI_CHIP_I965_Q || \
devid == PCI_CHIP_I965_G_1 || \
devid == PCI_CHIP_I965_GM || \
devid == PCI_CHIP_I965_GME || \
devid == PCI_CHIP_I946_GZ || \
- IS_G4X(devid) || \
- IS_IRONLAKE(devid))
+ IS_G4X(devid))
+
+#define IS_965(devid) (IS_GEN4(devid) || \
+ IS_IRONLAKE(devid) || \
+ IS_GEN6(devid))
+
+#define IS_GEN6(devid) (devid == PCI_CHIP_SANDYBRIDGE)
#define IS_9XX(devid) (IS_915(devid) || \
IS_945(devid) || \
IS_965(devid))
+
+#define HAS_PCH_SPLIT(devid) (IS_IRONLAKE(devid) || \
+ IS_GEN6(devid))