X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FLibrary%2FUefiPciLibPciRootBridgeIo%2FPciLib.c;fp=MdePkg%2FLibrary%2FUefiPciLibPciRootBridgeIo%2FPciLib.c;h=ff95ec7862a49119b2dcaf46357ac53fef281fac;hb=070a76b19386875d96f945262e832183d61f43da;hp=5a43f66f860786ab5d28db3c6ee32adb39896841;hpb=530e25f536376c86c296aaee465461ddb04fc321;p=mirror_edk2.git diff --git a/MdePkg/Library/UefiPciLibPciRootBridgeIo/PciLib.c b/MdePkg/Library/UefiPciLibPciRootBridgeIo/PciLib.c index 5a43f66f86..ff95ec7862 100644 --- a/MdePkg/Library/UefiPciLibPciRootBridgeIo/PciLib.c +++ b/MdePkg/Library/UefiPciLibPciRootBridgeIo/PciLib.c @@ -143,9 +143,12 @@ DxePciLibPciRootBridgeIoWriteWorker ( } /** - Register a PCI device so PCI configuration registers may be accessed after + Registers a PCI device so PCI configuration registers may be accessed after SetVirtualAddressMap(). + Registers the PCI device specified by Address so all the PCI configuration registers + associated with that PCI device may be accessed after SetVirtualAddressMap() is called. + If Address > 0x0FFFFFFF, then ASSERT(). @param Address Address that encodes the PCI Bus, Device, Function and @@ -181,7 +184,7 @@ PciRegisterForRuntimeAccess ( @param Address Address that encodes the PCI Bus, Device, Function and Register. - @return The value read from the PCI configuration register. + @return The read value from the PCI configuration register. **/ UINT8 @@ -206,7 +209,7 @@ PciRead8 ( @param Address Address that encodes the PCI Bus, Device, Function and Register. - @param Data The value to write. + @param Value The value to write. @return The value written to the PCI configuration register. @@ -215,12 +218,12 @@ UINT8 EFIAPI PciWrite8 ( IN UINTN Address, - IN UINT8 Data + IN UINT8 Value ) { ASSERT_INVALID_PCI_ADDRESS (Address, 0); - return (UINT8) DxePciLibPciRootBridgeIoWriteWorker (Address, EfiPciWidthUint8, Data); + return (UINT8) DxePciLibPciRootBridgeIoWriteWorker (Address, EfiPciWidthUint8, Value); } /** @@ -526,7 +529,7 @@ PciBitFieldAndThenOr8 ( @param Address Address that encodes the PCI Bus, Device, Function and Register. - @return The value read from the PCI configuration register. + @return The read value from the PCI configuration register. **/ UINT16 @@ -552,7 +555,7 @@ PciRead16 ( @param Address Address that encodes the PCI Bus, Device, Function and Register. - @param Data The value to write. + @param Value The value to write. @return The value written to the PCI configuration register. @@ -561,12 +564,12 @@ UINT16 EFIAPI PciWrite16 ( IN UINTN Address, - IN UINT16 Data + IN UINT16 Value ) { ASSERT_INVALID_PCI_ADDRESS (Address, 1); - return (UINT16) DxePciLibPciRootBridgeIoWriteWorker (Address, EfiPciWidthUint16, Data); + return (UINT16) DxePciLibPciRootBridgeIoWriteWorker (Address, EfiPciWidthUint16, Value); } /** @@ -880,7 +883,7 @@ PciBitFieldAndThenOr16 ( @param Address Address that encodes the PCI Bus, Device, Function and Register. - @return The value read from the PCI configuration register. + @return The read value from the PCI configuration register. **/ UINT32 @@ -906,7 +909,7 @@ PciRead32 ( @param Address Address that encodes the PCI Bus, Device, Function and Register. - @param Data The value to write. + @param Value The value to write. @return The value written to the PCI configuration register. @@ -915,12 +918,12 @@ UINT32 EFIAPI PciWrite32 ( IN UINTN Address, - IN UINT32 Data + IN UINT32 Value ) { ASSERT_INVALID_PCI_ADDRESS (Address, 3); - return DxePciLibPciRootBridgeIoWriteWorker (Address, EfiPciWidthUint32, Data); + return DxePciLibPciRootBridgeIoWriteWorker (Address, EfiPciWidthUint32, Value); } /** @@ -1339,7 +1342,7 @@ PciReadBuffer ( @param Size Size in bytes of the transfer. @param Buffer Pointer to a buffer containing the data to write. - @return Size + @return Size written to StartAddress. **/ UINTN