diff options
author | njl <njl@FreeBSD.org> | 2004-04-03 22:55:12 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2004-04-03 22:55:12 +0000 |
commit | 26232fd45ba22f38c070234b7a0bf1fe9b557c37 (patch) | |
tree | 3bb2aec81f575bcfc16a7c274c11f5c632fed868 /sys/pci/agp_via.c | |
parent | 7ffed5b360a7debf9b32d181824552d32d5bb3bb (diff) | |
download | FreeBSD-src-26232fd45ba22f38c070234b7a0bf1fe9b557c37.zip FreeBSD-src-26232fd45ba22f38c070234b7a0bf1fe9b557c37.tar.gz |
Add the ability to disable agp devices at the loader prompt. Usage is
hint.agp.0.disabled="1"
Submitted by: jhb
Diffstat (limited to 'sys/pci/agp_via.c')
-rw-r--r-- | sys/pci/agp_via.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/pci/agp_via.c b/sys/pci/agp_via.c index 00e4892..e6cd94a 100644 --- a/sys/pci/agp_via.c +++ b/sys/pci/agp_via.c @@ -90,6 +90,8 @@ agp_via_probe(device_t dev) { const char *desc; + if (resource_disabled("agp", device_get_unit(dev))) + return (ENXIO); desc = agp_via_match(dev); if (desc) { device_verbose(dev); |