aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2001-09-26 01:11:33 +0000
committerBrooks Davis <brooks@FreeBSD.org>2001-09-26 01:11:33 +0000
commit9efaa0ae62faa8f627d135f1de1c99c659753281 (patch)
treece220d0907d4fc1ffecb54eb2dd31abc721fda80 /sys/dev
parentbd5b9e17b052781cb36035a2d7c167121d8a5cc1 (diff)
Notes
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/pci_pci.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/pci/pci_pci.c b/sys/dev/pci/pci_pci.c
index 3980158f40e3..9587622cf923 100644
--- a/sys/dev/pci/pci_pci.c
+++ b/sys/dev/pci/pci_pci.c
@@ -286,7 +286,9 @@ pcib_alloc_resource(device_t dev, device_t child, int type, int *rid,
" (decoding 0x%x-0x%x)\n",
device_get_name(child), device_get_unit(child), start, end,
sc->iobase, sc->iolimit);
+#ifndef PCI_ALLOW_UNSUPPORTED_IO_RANGE
return(NULL);
+#endif
}
if (bootverbose)
device_printf(sc->dev, "device %s%d requested decoded I/O range 0x%lx-0x%lx\n",
@@ -306,7 +308,9 @@ pcib_alloc_resource(device_t dev, device_t child, int type, int *rid,
" (decoding 0x%x-0x%x, 0x%x-0x%x)\n",
device_get_name(child), device_get_unit(child), start, end,
sc->membase, sc->memlimit, sc->pmembase, sc->pmemlimit);
+#ifndef PCI_ALLOW_UNSUPPORTED_IO_RANGE
return(NULL);
+#endif
}
if (bootverbose)
device_printf(sc->dev, "device %s%d requested decoded memory range 0x%lx-0x%lx\n",