summaryrefslogtreecommitdiffstats
path: root/sys/pci
diff options
context:
space:
mode:
authoranholt <anholt@FreeBSD.org>2003-02-13 19:24:19 +0000
committeranholt <anholt@FreeBSD.org>2003-02-13 19:24:19 +0000
commit43e82f74f729c77a0250f5cd4bb20450b59f605b (patch)
treeaad85906fa06fe2daf6bbc76511fb37448b0d39c /sys/pci
parentbd72cf9687deb05d7da0fc117b07fca6dbed3c04 (diff)
downloadFreeBSD-src-43e82f74f729c77a0250f5cd4bb20450b59f605b.zip
FreeBSD-src-43e82f74f729c77a0250f5cd4bb20450b59f605b.tar.gz
Add agpreg.h missed in commit to agp_i810 (adding i85x/i86x AGP support).
Diffstat (limited to 'sys/pci')
-rw-r--r--sys/pci/agpreg.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/sys/pci/agpreg.h b/sys/pci/agpreg.h
index 36a11bc..015455a 100644
--- a/sys/pci/agpreg.h
+++ b/sys/pci/agpreg.h
@@ -176,4 +176,30 @@
#define AGP_I830_GCC1_GMASIZE_64 0x01
#define AGP_I830_GCC1_GMASIZE_128 0x00
+/*
+ * Config registers for 852GM/855GM/865G device 0
+ */
+#define AGP_I855_GCC1 0x52
+#define AGP_I855_GCC1_DEV2 0x08
+#define AGP_I855_GCC1_DEV2_ENABLED 0x00
+#define AGP_I855_GCC1_DEV2_DISABLED 0x08
+#define AGP_I855_GCC1_GMS 0x70
+#define AGP_I855_GCC1_GMS_STOLEN_0M 0x00
+#define AGP_I855_GCC1_GMS_STOLEN_1M 0x10
+#define AGP_I855_GCC1_GMS_STOLEN_4M 0x20
+#define AGP_I855_GCC1_GMS_STOLEN_8M 0x30
+#define AGP_I855_GCC1_GMS_STOLEN_16M 0x40
+#define AGP_I855_GCC1_GMS_STOLEN_32M 0x50
+
+/*
+ * 852GM/855GM variant identification
+ */
+#define AGP_I85X_CAPID 0x44
+#define AGP_I85X_VARIANT_MASK 0x7
+#define AGP_I85X_VARIANT_SHIFT 5
+#define AGP_I855_GME 0x0
+#define AGP_I855_GM 0x4
+#define AGP_I852_GME 0x2
+#define AGP_I852_GM 0x5
+
#endif /* !_PCI_AGPREG_H_ */
OpenPOWER on IntegriCloud