summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/pci_pci.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2009-03-15 06:40:57 +0000
committerimp <imp@FreeBSD.org>2009-03-15 06:40:57 +0000
commit17991531066544951ce0655b304c427f2688f64a (patch)
tree6935cbb0fcfad5437c765e256516635e97fc4fc2 /sys/dev/pci/pci_pci.c
parentf178c1baa69bb04c92599b8f0248ad3e78cf6fe5 (diff)
downloadFreeBSD-src-17991531066544951ce0655b304c427f2688f64a.zip
FreeBSD-src-17991531066544951ce0655b304c427f2688f64a.tar.gz
Don't adjust ranges at all for subtractive bridges. The simple-minded
stuff we're doing is too simple-minded, so back it out for now.
Diffstat (limited to 'sys/dev/pci/pci_pci.c')
-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 9372157..15cad92 100644
--- a/sys/dev/pci/pci_pci.c
+++ b/sys/dev/pci/pci_pci.c
@@ -413,12 +413,14 @@ pcib_alloc_resource(device_t dev, device_t child, int type, int *rid,
}
} else {
ok = 1;
+#if 0
/*
* If we overlap with the subtractive range, then
* pick the upper range to use.
*/
if (start < sc->iolimit && end > sc->iobase)
start = sc->iolimit + 1;
+#endif
}
if (end < start) {
device_printf(dev, "ioport: end (%lx) < start (%lx)\n",
@@ -478,6 +480,7 @@ pcib_alloc_resource(device_t dev, device_t child, int type, int *rid,
}
} else if (!ok) {
ok = 1; /* subtractive bridge: always ok */
+#if 0
if (pcib_is_nonprefetch_open(sc)) {
if (start < sc->memlimit && end > sc->membase)
start = sc->memlimit + 1;
@@ -486,6 +489,7 @@ pcib_alloc_resource(device_t dev, device_t child, int type, int *rid,
if (start < sc->pmemlimit && end > sc->pmembase)
start = sc->pmemlimit + 1;
}
+#endif
}
if (end < start) {
device_printf(dev, "memory: end (%lx) < start (%lx)\n",
OpenPOWER on IntegriCloud