summaryrefslogtreecommitdiff
path: root/sys/dev/pci/agp.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.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.c')
-rw-r--r--sys/dev/pci/agp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/agp.c b/sys/dev/pci/agp.c
index 98dd20ccba1..20147866804 100644
--- a/sys/dev/pci/agp.c
+++ b/sys/dev/pci/agp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: agp.c,v 1.5 2007/01/30 21:12:14 dim Exp $ */
+/* $OpenBSD: agp.c,v 1.6 2007/08/04 19:40:25 reyk Exp $ */
/*-
* Copyright (c) 2000 Doug Rabson
* All rights reserved.
@@ -350,14 +350,14 @@ pciagp_set_pchb(struct pci_attach_args *pa)
}
int
-agp_map_aperture(struct vga_pci_softc *sc)
+agp_map_aperture(struct vga_pci_softc *sc, u_int32_t bar, u_int32_t memtype)
{
/*
* Find and the aperture. Don't map it (yet), this would
* eat KVA.
*/
- if (pci_mapreg_info(sc->sc_pc, sc->sc_pcitag, AGP_APBASE,
- PCI_MAPREG_TYPE_MEM, &sc->sc_apaddr, &sc->sc_apsize,
+ if (pci_mapreg_info(sc->sc_pc, sc->sc_pcitag, bar,
+ memtype, &sc->sc_apaddr, &sc->sc_apsize,
&sc->sc_apflags) != 0)
return ENXIO;