On Sep 21, 2012, at 12:00 PM, Bhavana Brar wrote:

> Is the function GetPciExpressBaseAddress() ( PciExpressLib.h>) a reliable way 
> to get the PCIe memory mapped configuration space base address? 

No you have to build this library with platform specific knowledge for it to 
work properly. The MdePkg PCI libs are for low level PI platform code. 

> It seems to be returning 0xE0000000 on 4 systems that I've tried out. 
> Dereferencing the base address + PCIe Address + register offset works on a 
> couple of systems but not all... which makes me think the base address that 
> is being returned may not be valid. 
> 
> Does anyone know? I can use the PCI IO Protocol Handle and successfully 
> read/write config space but I'm  interested in verifying whether the above 
> mentioned technique would work on all UEFI platforms. 
> 

Use PCI IO. 

> Thanks 
> ------------------------------------------------------------------------------
> Got visibility?
> Most devs has no idea what their production app looks like.
> Find out how fast your code is with AppDynamics Lite.
> http://ad.doubleclick.net/clk;262219671;13503038;y?
> http://info.appdynamics.com/FreeJavaPerformanceDownload.html_______________________________________________
> edk2-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/edk2-devel

------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to