summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/pci_pci.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2004-04-09 15:44:34 +0000
committerimp <imp@FreeBSD.org>2004-04-09 15:44:34 +0000
commitca56ea20fc3b156a88a5caf374733a36948e1cbf (patch)
treeca7c96811517c5490a15746b5ab4f48b8ac626d7 /sys/dev/pci/pci_pci.c
parentfd75a2f931626c978079f80dd1e0191255a38a7c (diff)
downloadFreeBSD-src-ca56ea20fc3b156a88a5caf374733a36948e1cbf.zip
FreeBSD-src-ca56ea20fc3b156a88a5caf374733a36948e1cbf.tar.gz
Omnibus PCI commit:
o Save and restore bars for suspend/resume as well as for D3->D0 transitions. o preallocate resources that the PCI devices use to avoid resource conflicts o lazy allocation of resources not allocated by the BIOS. o set unattached drivers to state D3. Set power state to D0 before probe/attach. Right now there's two special cases for this (display and memory devices) that need work in other areas of the tree. Please report any bugs to me.
Diffstat (limited to 'sys/dev/pci/pci_pci.c')
-rw-r--r--sys/dev/pci/pci_pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/pci_pci.c b/sys/dev/pci/pci_pci.c
index 293c372..b046ceb 100644
--- a/sys/dev/pci/pci_pci.c
+++ b/sys/dev/pci/pci_pci.c
@@ -321,7 +321,7 @@ pcib_alloc_resource(device_t dev, device_t child, int type, int *rid,
}
} else {
ok = 1;
-#if 0
+#if 1
if (start < sc->iobase && end > sc->iolimit) {
start = sc->iobase;
end = sc->iolimit;
@@ -377,7 +377,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 1
if (pcib_is_nonprefetch_open(sc)) {
if (start < sc->membase && end > sc->memlimit) {
start = sc->membase;
OpenPOWER on IntegriCloud