summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2009-10-23 22:53:01 +0000
committermarcel <marcel@FreeBSD.org>2009-10-23 22:53:01 +0000
commit305f44a5b165fdb1923a69b5b51da43b8de5ed5d (patch)
tree5e709e2d920a65f58dbb68e5086add7b0c59dea2 /sys/dev/pci
parent15ae93bc67273b2ac1b70e477c543699fc38b3ad (diff)
downloadFreeBSD-src-305f44a5b165fdb1923a69b5b51da43b8de5ed5d.zip
FreeBSD-src-305f44a5b165fdb1923a69b5b51da43b8de5ed5d.tar.gz
BIOSes, buggy or otherwise, are i386 or amd64 specific.
Have the early USB takeover enabled for i386 and amd64 by default. This also avoids a panic on PowerPC where the resource isn't released properly and we find a busy resource when the USB host controller wants to allocate it...
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/pci.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index e60ee23..8922aba 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -274,7 +274,11 @@ TUNABLE_INT("hw.pci.honor_msi_blacklist", &pci_honor_msi_blacklist);
SYSCTL_INT(_hw_pci, OID_AUTO, honor_msi_blacklist, CTLFLAG_RD,
&pci_honor_msi_blacklist, 1, "Honor chipset blacklist for MSI");
+#if defined(__i386__) || defined(__amd64__)
static int pci_usb_takeover = 1;
+#else
+static int pci_usb_takeover = 0;
+#endif
TUNABLE_INT("hw.pci.usb_early_takeover", &pci_usb_takeover);
SYSCTL_INT(_hw_pci, OID_AUTO, usb_early_takeover, CTLFLAG_RD | CTLFLAG_TUN,
&pci_usb_takeover, 1, "Enable early takeover of USB controllers.\n\
OpenPOWER on IntegriCloud