X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FInclude%2FLibrary%2FPciCf8Lib.h;h=1f6ec13ffdd18f550bee29c45fbb30583c19369d;hb=98a1fa1f349476533c626020a7196f08c1ef2dba;hp=e2808418fabb34ee13f952c4914a9a9a0a94489c;hpb=add13dc21720eff1a37fdea34c0fef190e2ad37d;p=mirror_edk2.git diff --git a/MdePkg/Include/Library/PciCf8Lib.h b/MdePkg/Include/Library/PciCf8Lib.h index e2808418fa..1f6ec13ffd 100644 --- a/MdePkg/Include/Library/PciCf8Lib.h +++ b/MdePkg/Include/Library/PciCf8Lib.h @@ -10,14 +10,11 @@ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. - Module Name: PciCf8Lib.h - **/ #ifndef __PCI_CF8_LIB_H__ #define __PCI_CF8_LIB_H__ -#include /** Macro that converts PCI Bus, PCI Device, PCI Function and PCI Register to an @@ -36,7 +33,7 @@ **/ #define PCI_CF8_LIB_ADDRESS(Bus,Device,Function,Offset) \ - PCI_LIB_ADDRESS (Bus, Device, Function, Offset) + (((Offset) & 0xfff) | (((Function) & 0x07) << 12) | (((Device) & 0x1f) << 15) | (((Bus) & 0xff) << 20)) /** Reads an 8-bit PCI configuration register.