summaryrefslogtreecommitdiff
path: root/sys/dev/pci/agp_sis.c
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2007-08-04 19:40:26 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2007-08-04 19:40:26 +0000
commitcf330308e6b5ddeaf11a97fbffa5ad5407c3ff4c (patch)
tree942e39470dcdd01e202dea5a71acc3eba0e97272 /sys/dev/pci/agp_sis.c
parentd10897eb8775bda9eb018894980aa15923719830 (diff)
Add AGP support for the intel i965 chipset, this also extends the
internal AGP API to work with 64bit PCI-Express memory and non-standard AGP aperture bases. tested by many ok matthieu@, deraadt@
Diffstat (limited to 'sys/dev/pci/agp_sis.c')
-rw-r--r--sys/dev/pci/agp_sis.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/agp_sis.c b/sys/dev/pci/agp_sis.c
index e1c5b215e1f..31ef1591fe9 100644
--- a/sys/dev/pci/agp_sis.c
+++ b/sys/dev/pci/agp_sis.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: agp_sis.c,v 1.2 2002/07/25 23:31:04 fgsch Exp $ */
+/* $OpenBSD: agp_sis.c,v 1.3 2007/08/04 19:40:25 reyk Exp $ */
/* $NetBSD: agp_sis.c,v 1.2 2001/09/15 00:25:00 thorpej Exp $ */
/*-
@@ -89,7 +89,7 @@ agp_sis_attach(struct vga_pci_softc *sc, struct pci_attach_args *pa,
sc->sc_methods = &agp_sis_methods;
sc->sc_chipc = ssc;
- if (agp_map_aperture(sc) != 0) {
+ if (agp_map_aperture(sc, AGP_APBASE, PCI_MAPREG_TYPE_MEM) != 0) {
printf(": can't map aperture\n");
free(ssc, M_DEVBUF);
return (ENXIO);