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_nvidia.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_nvidia.c')
-rw-r--r-- | sys/pci/agp_nvidia.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/pci/agp_nvidia.c b/sys/pci/agp_nvidia.c index ad1495f..cc6ac2c 100644 --- a/sys/pci/agp_nvidia.c +++ b/sys/pci/agp_nvidia.c @@ -116,6 +116,8 @@ agp_nvidia_probe (device_t dev) { const char *desc; + if (resource_disabled("agp", device_get_unit(dev))) + return (ENXIO); desc = agp_nvidia_match(dev); if (desc) { device_verbose(dev); |