diff options
author | Zbigniew Bodek <zbb@FreeBSD.org> | 2015-09-16 23:34:51 +0000 |
---|---|---|
committer | Zbigniew Bodek <zbb@FreeBSD.org> | 2015-09-16 23:34:51 +0000 |
commit | 18c72666ce583eac1f0ad106766249648696b022 (patch) | |
tree | 2bf6705f8c0a23d33a95bffbd3241b047662100a /sys/mips/cavium | |
parent | ae9677993397faf59a5d985d188d68dcdd79b421 (diff) | |
download | src-18c72666ce583eac1f0ad106766249648696b022.tar.gz src-18c72666ce583eac1f0ad106766249648696b022.zip |
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
Notes
Notes:
svn path=/head/; revision=287882
Diffstat (limited to 'sys/mips/cavium')
-rw-r--r-- | sys/mips/cavium/octopci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/mips/cavium/octopci.c b/sys/mips/cavium/octopci.c index ae92063f9229..f6d73bdc65cc 100644 --- a/sys/mips/cavium/octopci.c +++ b/sys/mips/cavium/octopci.c @@ -205,7 +205,7 @@ octopci_attach(device_t dev) subbus = octopci_init_bus(dev, sc->sc_bus); octopci_write_config(dev, sc->sc_bus, 0, 0, PCIR_SUBBUS_1, subbus, 1); - device_add_child(dev, "pci", device_get_unit(dev)); + device_add_child(dev, "pci", -1); return (bus_generic_attach(dev)); } |