X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FInclude%2FLibrary%2FPciExpressLib.h;h=29ff9dde8289a6337a5cd3012071d47b0549fb45;hb=c39294176417321486316962aa705508d5a72ecf;hp=9bd1166a8706f7608979403e4ba2bcf5afbf4fec;hpb=add13dc21720eff1a37fdea34c0fef190e2ad37d;p=mirror_edk2.git diff --git a/MdePkg/Include/Library/PciExpressLib.h b/MdePkg/Include/Library/PciExpressLib.h index 9bd1166a87..29ff9dde82 100644 --- a/MdePkg/Include/Library/PciExpressLib.h +++ b/MdePkg/Include/Library/PciExpressLib.h @@ -36,7 +36,7 @@ **/ #define PCI_EXPRESS_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.