Will be necessary to use this driver on non-ecam platforms. This basically should be an init/fini pair + function to read/write a config space register. Also add a VOID *Context to _PCI_ROOT_BRIDGE_INSTANCE so the lib can maintain extra state if needed.
All state manipulated by init/fini/cfg accessors should be pushed into a common struct, i.e.:
Will be necessary to use this driver on non-ecam platforms. This basically should be an init/fini pair + function to read/write a config space register. Also add a VOID *Context to _PCI_ROOT_BRIDGE_INSTANCE so the lib can maintain extra state if needed.
All state manipulated by init/fini/cfg accessors should be pushed into a common struct, i.e.:
Originally posted by @andreiw in https://github.com/intel/FdtBusPkg/issues/12#issuecomment-1962280347