summaryrefslogtreecommitdiffstats
path: root/sys/mips/idt
diff options
context:
space:
mode:
authorzbb <zbb@FreeBSD.org>2015-09-16 23:34:51 +0000
committerzbb <zbb@FreeBSD.org>2015-09-16 23:34:51 +0000
commit95f13176f56de2d56ebb014bf8b5d39de209c08a (patch)
tree2bf6705f8c0a23d33a95bffbd3241b047662100a /sys/mips/idt
parent76309d54d25ceab92ba6484b52eb4a0fd488cfc0 (diff)
downloadFreeBSD-src-95f13176f56de2d56ebb014bf8b5d39de209c08a.zip
FreeBSD-src-95f13176f56de2d56ebb014bf8b5d39de209c08a.tar.gz
Add domain support to PCI bus allocation
When the system has more than a single PCI domain, the bus numbers are not unique, thus they cannot be used for "pci" device numbering. Change bus numbers to -1 (i.e. to-be-determined automatically) wherever the code did not care about domains. Reviewed by: jhb Obtained from: Semihalf Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3406
Diffstat (limited to 'sys/mips/idt')
-rw-r--r--sys/mips/idt/idtpci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/mips/idt/idtpci.c b/sys/mips/idt/idtpci.c
index 7e003fd..d962e68 100644
--- a/sys/mips/idt/idtpci.c
+++ b/sys/mips/idt/idtpci.c
@@ -275,7 +275,7 @@ idtpci_attach(device_t dev)
PCI_IRQ_END) != 0)
panic("idtpci_attach: failed to set up IRQ rman");
- device_add_child(dev, "pci", busno);
+ device_add_child(dev, "pci", -1);
return (bus_generic_attach(dev));
}
OpenPOWER on IntegriCloud