From 3e3ae6345709da38e9a26dffb83a47cc47d7b0e5 Mon Sep 17 00:00:00 2001 From: mdkinney Date: Mon, 24 Nov 2008 08:34:06 +0000 Subject: Add runtime registration function to all PCI Libs git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6708 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Library/BasePciLibCf8/PciLib.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'MdePkg/Library/BasePciLibCf8') diff --git a/MdePkg/Library/BasePciLibCf8/PciLib.c b/MdePkg/Library/BasePciLibCf8/PciLib.c index af71b88e59..d4a3ef06f6 100644 --- a/MdePkg/Library/BasePciLibCf8/PciLib.c +++ b/MdePkg/Library/BasePciLibCf8/PciLib.c @@ -19,6 +19,33 @@ #include #include +/** + Register a PCI device so PCI configuration registers may be accessed after + SetVirtualAddressMap(). + + If Address > 0x0FFFFFFF, then ASSERT(). + + @param Address Address that encodes the PCI Bus, Device, Function and + Register. + + @retval RETURN_SUCCESS The PCI device was registered for runtime access. + @retval RETURN_UNSUPPORTED An attempt was made to call this function + after ExitBootServices(). + @retval RETURN_UNSUPPORTED The resources required to access the PCI device + at runtime could not be mapped. + @retval RETURN_OUT_OF_RESOURCES There are not enough resources available to + complete the registration. + +**/ +RETURN_STATUS +EFIAPI +PciRegisterForRuntimeAccess ( + IN UINTN Address + ) +{ + return PciCf8RegisterForRuntimeAccess (Address); +} + /** Reads an 8-bit PCI configuration register. -- cgit v1.2.3