summaryrefslogtreecommitdiffstats
path: root/sys/pci/agp_i810.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_i810.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_i810.c')
-rw-r--r--sys/pci/agp_i810.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/pci/agp_i810.c b/sys/pci/agp_i810.c
index b79ce13..9210247 100644
--- a/sys/pci/agp_i810.c
+++ b/sys/pci/agp_i810.c
@@ -183,6 +183,8 @@ agp_i810_probe(device_t dev)
{
const char *desc;
+ if (resource_disabled("agp", device_get_unit(dev)))
+ return (ENXIO);
desc = agp_i810_match(dev);
if (desc) {
device_t bdev;
OpenPOWER on IntegriCloud