summaryrefslogtreecommitdiffstats
path: root/sys/pci/agp_ali.c
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2004-04-03 22:55:12 +0000
committernjl <njl@FreeBSD.org>2004-04-03 22:55:12 +0000
commit26232fd45ba22f38c070234b7a0bf1fe9b557c37 (patch)
tree3bb2aec81f575bcfc16a7c274c11f5c632fed868 /sys/pci/agp_ali.c
parent7ffed5b360a7debf9b32d181824552d32d5bb3bb (diff)
downloadFreeBSD-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_ali.c')
-rw-r--r--sys/pci/agp_ali.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/pci/agp_ali.c b/sys/pci/agp_ali.c
index fc99574..c455ed3 100644
--- a/sys/pci/agp_ali.c
+++ b/sys/pci/agp_ali.c
@@ -80,6 +80,8 @@ agp_ali_probe(device_t dev)
{
const char *desc;
+ if (resource_disabled("agp", device_get_unit(dev)))
+ return (ENXIO);
desc = agp_ali_match(dev);
if (desc) {
device_verbose(dev);
OpenPOWER on IntegriCloud