summaryrefslogtreecommitdiffstats
path: root/sys/pci/agpreg.h
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2004-05-13 20:05:42 +0000
committerjhb <jhb@FreeBSD.org>2004-05-13 20:05:42 +0000
commitf3429f1d781a49e1e9652be7551fe7d969535248 (patch)
tree8705a9141c80ce7574539d829e25d1b518ae8c7b /sys/pci/agpreg.h
parent4e9e9bbec8240b74ff9b5c49b4ef7f9261de6f84 (diff)
downloadFreeBSD-src-f3429f1d781a49e1e9652be7551fe7d969535248.zip
FreeBSD-src-f3429f1d781a49e1e9652be7551fe7d969535248.tar.gz
Different VIA host bridges use different offsets to their AGP config
registers, so add a register offset array to the softc. We key off the device ID to determine which set of register offsets. Currently the 8385 host bridge used on amd64 is the only bridge to use the AGP3_VIA_* register offsets and all other bridges use the AGP_VIA_* offsets. It is currently unclear if the AGP3_VIA_* offsets are for VIA bridges that implement AGP 3.0 bridges or just for amd64 bridges. Submitted by: Kenneth Culver culverk at sweetdreamsracing dot biz
Diffstat (limited to 'sys/pci/agpreg.h')
-rw-r--r--sys/pci/agpreg.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/pci/agpreg.h b/sys/pci/agpreg.h
index 13df29e..a5373e4 100644
--- a/sys/pci/agpreg.h
+++ b/sys/pci/agpreg.h
@@ -87,13 +87,20 @@
#define AGP_INTEL_I8XX_ERRSTS 0xc8
/*
- * Config offsets for VIA AGP chipsets.
+ * Config offsets for VIA AGP 2.x chipsets.
*/
#define AGP_VIA_GARTCTRL 0x80
#define AGP_VIA_APSIZE 0x84
#define AGP_VIA_ATTBASE 0x88
/*
+ * Config offsets for VIA AGP 3.0 chipsets.
+ */
+#define AGP3_VIA_GARTCTRL 0x90
+#define AGP3_VIA_APSIZE 0x94
+#define AGP3_VIA_ATTBASE 0x98
+
+/*
* Config offsets for SiS AGP chipsets.
*/
#define AGP_SIS_ATTBASE 0x90
OpenPOWER on IntegriCloud