diff options
author | obrien <obrien@FreeBSD.org> | 2004-08-16 12:25:48 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2004-08-16 12:25:48 +0000 |
commit | 963044797eef5dd7f1a14ea2a2aacbe08135061d (patch) | |
tree | f2af86527c43b447205f70744d9db857d016735d /sys/pci/agp_via.c | |
parent | 6dfaccd6e42cb6600ffe5683599ed9c965a5de28 (diff) | |
download | FreeBSD-src-963044797eef5dd7f1a14ea2a2aacbe08135061d.zip FreeBSD-src-963044797eef5dd7f1a14ea2a2aacbe08135061d.tar.gz |
AMD64 on-CPU GART support.
This also applies to AMD64 HW running 'i386' OS.
Submitted by: Jung-uk Kim <jkim@niksun.com>
Integration by: obrien
Diffstat (limited to 'sys/pci/agp_via.c')
-rw-r--r-- | sys/pci/agp_via.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/pci/agp_via.c b/sys/pci/agp_via.c index 90edbfd..441d26e 100644 --- a/sys/pci/agp_via.c +++ b/sys/pci/agp_via.c @@ -28,6 +28,7 @@ __FBSDID("$FreeBSD$"); #include "opt_bus.h" +#include "opt_agp.h" #include <sys/param.h> #include <sys/systm.h> @@ -88,7 +89,11 @@ agp_via_match(device_t dev) case 0x06911106: return ("VIA 82C691 (Apollo Pro) host to PCI bridge"); case 0x31881106: +#if defined(__amd64__) || defined(AGP_AMD64_GART) + return NULL; +#else return ("VIA 8385 host to PCI bridge"); +#endif case 0x31891106: return ("VIA 8377 (Apollo KT400/KT400A/KT600) host to PCI bridge"); }; @@ -125,7 +130,9 @@ agp_via_attach(device_t dev) u_int32_t agpsel; switch (pci_get_devid(dev)) { +#ifdef AGP_NO_AMD64_GART case 0x31881106: +#endif case 0x31891106: /* The newer VIA chipsets will select the AGP version based on * what AGP versions the card supports. We still have to |