Only conform to PCIe spec of 1 device per bus on !x86

bhyve's root PCI complex shows up as PCIe, but behaves as traditional PCI.
Until that is special cased in a root complex driver, leave x86 as it was.

Requested by:	grehan
This commit is contained in:
Justin Hibbits 2018-05-30 22:39:41 +00:00
parent 56226f5673
commit 5502348d9a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334407

View File

@ -2545,6 +2545,7 @@ pcib_enable_ari(struct pcib_softc *sc, uint32_t pcie_pos)
int
pcib_maxslots(device_t dev)
{
#if !defined(__amd64__) && !defined(__i386__)
uint32_t pcie_pos;
uint16_t val;
@ -2559,6 +2560,7 @@ pcib_maxslots(device_t dev)
val == PCIEM_TYPE_DOWNSTREAM_PORT)
return (0);
}
#endif
return (PCI_SLOTMAX);
}