summaryrefslogtreecommitdiffstats
path: root/MdePkg/Library/UefiPciLibPciRootBridgeIo
diff options
context:
space:
mode:
authormdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>2008-11-24 08:34:06 +0000
committermdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>2008-11-24 08:34:06 +0000
commit3e3ae6345709da38e9a26dffb83a47cc47d7b0e5 (patch)
treec78f28eb59f0d3e51e3de330d0294984830bb87f /MdePkg/Library/UefiPciLibPciRootBridgeIo
parent0a559bb9b2a6d2834f13a5eefd02289d9e10f2c1 (diff)
downloadedk2-3e3ae6345709da38e9a26dffb83a47cc47d7b0e5.tar.gz
edk2-3e3ae6345709da38e9a26dffb83a47cc47d7b0e5.tar.bz2
edk2-3e3ae6345709da38e9a26dffb83a47cc47d7b0e5.zip
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
Diffstat (limited to 'MdePkg/Library/UefiPciLibPciRootBridgeIo')
-rw-r--r--MdePkg/Library/UefiPciLibPciRootBridgeIo/PciLib.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/MdePkg/Library/UefiPciLibPciRootBridgeIo/PciLib.c b/MdePkg/Library/UefiPciLibPciRootBridgeIo/PciLib.c
index a408b0a0f1..7e5c60858b 100644
--- a/MdePkg/Library/UefiPciLibPciRootBridgeIo/PciLib.c
+++ b/MdePkg/Library/UefiPciLibPciRootBridgeIo/PciLib.c
@@ -143,6 +143,33 @@ DxePciLibPciRootBridgeIoWriteWorker (
}
/**
+ 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 RETURN_UNSUPPORTED;
+}
+
+/**
Reads an 8-bit PCI configuration register.
Reads and returns the 8-bit PCI configuration register specified by Address.