On 12/4/19 1:56 PM, Ahmad Fatoum wrote: > UEFI 2.1D specifies two protocols for abstracting both the PCI host bus > controller and for PCI devices. The protocol for PCI devices provides > function pointers for accessing IO Port, Memory and PCI configuration > space, among others. The protocol for bus controllers provides the > ability to read the root bridge's PCI configuration space and to query > resources. > > In barebox, we would want to reuse existing PCI drivers unmodified, so > we utilize the root bridge protocol, unlike most other EFI payloads. Please dismiss this patch for now. While it works on QEMU, it doesn't handle address space descriptors of zero size (easily fixable) and the PCI bridges on my laptop (not so easily fixable). I'll resend when I had time to figure it out. Cheers Ahmad -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox