On Fri, 24 May 2019 at 15:03, Marcin Wojtas <m...@semihalf.com> wrote: > > pt., 24 maj 2019 o 14:50 Ard Biesheuvel <ard.biesheu...@linaro.org> > napisaĆ(a): > > > > On Mon, 20 May 2019 at 17:27, Marcin Wojtas <m...@semihalf.com> wrote: > > > > > > From: Ard Biesheuvel <ard.biesheu...@linaro.org> > > > > > > Implement a special version of PciExpressLib that takes the quirky > > > nature of the Synopsys Designware PCIe IP into account. In particular, > > > we need to ignore config space accesses to all devices on the first > > > bus except device 0, because the broadcast nature of type 0 configuration > > > cycles will result in whatever device is in the slot to appear at each > > > of the 32 device positions. > > > > > > > I never bothered to implement multisegment support for this SoC, since > > MacchiatoBin has only one segment wired up, but since your interest is > > in generic support, it might make sense to drop this patch and > > implement PciSegmentLib instead (without depending on any of the other > > library classes that the generic PciExpressLib depends on) > > > > This was (and still is) my plan, but I've been having some serious > time shortages for extra development. In order not to postpone this > support any longer I prefer to get merged, what I have and possibly > rework on top. > > About depending on a generic PciExpressLib - do you mean I can filter > out devices from bus0 in PciSegmentLib? >
Yes, please look at Silicon/Socionext/SynQuacer/Library/SynQuacerPciSegmentLib If you follow the same approach, you no longer need PciLib or PciExpressLib, it is all flattened into PciSegmentLib. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#41331): https://edk2.groups.io/g/devel/message/41331 Mute This Topic: https://groups.io/mt/31686572/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-