tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Is it possible to do PCI enumeration in the kernel ?



Hello

We have a PCIe switch in our x86 based design. The PCIe switch is not
initialized by the BIOS and instead must be initialized in the kernel
during bootup. The sequence is

1. CPU power and starts NetBSD.
2. NetBSD PCI system scan the PCI devices and find Intel ICH10R based
SMBus controller.
3. The SMBUs controller init the PCIe switch over SMBUS.
4. Now NetBSD should re-enumerate the PCI bus in order to find the
PCIe switch and devices downstream of PCIe switch. I see that NetBSD
PCI system merely scan the PCI bus. I need NetBSD to re-enumerate the
PCI BIOS so that all the PCI resources such as bus no, BAR assignment
is done.

So is it possible to do PCI re-enumeration in the kernel ?

Thanks

Rohan


Home | Main Index | Thread Index | Old Index