From cf330308e6b5ddeaf11a97fbffa5ad5407c3ff4c Mon Sep 17 00:00:00 2001 From: Reyk Floeter Date: Sat, 4 Aug 2007 19:40:26 +0000 Subject: 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@ --- sys/dev/pci/agp_sis.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/pci/agp_sis.c') 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); -- cgit v1.2.3