intel / FdtBusPkg

Device Tree-based Platform Device Driver Development for Tiano UEFI
https://wiki.riseproject.dev/display/HOME/EDK2_00_03+-+FdtBusDxe+support
10 stars 1 forks source link

Implement DT-aware PciHostBridgeDxe. #12

Closed andreiw closed 6 months ago

andreiw commented 7 months ago

Today FdtBusPkg provides a PciHostBridgeLib (PciHostBridgeLibEcam), for use with MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf, which is somewhat limited:

See https://github.com/intel/FdtBusPkg/issues/11, https://github.com/intel/FdtBusPkg/issues/2, https://github.com/intel/FdtBusPkg/issues/3, https://github.com/intel/FdtBusPkg/issues/4, https://github.com/intel/FdtBusPkg/issues/5.

andreiw commented 6 months ago

Partially resolved by https://github.com/intel/FdtBusPkg/pull/97/commits/ec866edd1e9952c825b84782b453c8de95729b7b

Uses DT I/O Reg* API to service config space and BAR reads/writes.

andreiw commented 6 months ago

Now uses DMA API (but does not support non-coherent RCs yet)

https://github.com/intel/FdtBusPkg/pull/101/commits/982ea7265c628b0da439568af5a815f25adc55e5