mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
UefiPayloadPkg: Fix build failure with CLANGPDB
EFI_PCI_IO_PROTOCOL->Pci services (Read and Write) take EFI_PCI_IO_PROTOCOL_WIDTH as second argument. However in PciPlatformDxe enum argument of EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_WIDTH is usedwhich caused build to fail. Use EfiPciWidthUint32 which is enum member of EFI_PCI_IO_PROTOCOL_WIDTH. Signed-off-by: Khalid Ali <khaliidcaliy@gmail.com>
This commit is contained in:
parent
070d88a592
commit
8ba64a9a94
1 changed files with 5 additions and 5 deletions
|
|
@ -166,7 +166,7 @@ PciGetPciRom (
|
|||
//
|
||||
Status = PciIo->Pci.Read (
|
||||
PciIo,
|
||||
EfiPciWidthUint32,
|
||||
EfiPciIoWidthUint32,
|
||||
RomBarIndex,
|
||||
1,
|
||||
&Buffer
|
||||
|
|
@ -182,7 +182,7 @@ PciGetPciRom (
|
|||
|
||||
Status = PciIo->Pci.Write (
|
||||
PciIo,
|
||||
EfiPciWidthUint32,
|
||||
EfiPciIoWidthUint32,
|
||||
RomBarIndex,
|
||||
1,
|
||||
&AllOnes
|
||||
|
|
@ -196,7 +196,7 @@ PciGetPciRom (
|
|||
//
|
||||
Status = PciIo->Pci.Read (
|
||||
PciIo,
|
||||
EfiPciWidthUint32,
|
||||
EfiPciIoWidthUint32,
|
||||
RomBarIndex,
|
||||
1,
|
||||
&AllOnes
|
||||
|
|
@ -222,7 +222,7 @@ PciGetPciRom (
|
|||
RomBar = Buffer | 1;
|
||||
Status = PciIo->Pci.Write (
|
||||
PciIo,
|
||||
EfiPciWidthUint32,
|
||||
EfiPciIoWidthUint32,
|
||||
RomBarIndex,
|
||||
1,
|
||||
&RomBar
|
||||
|
|
@ -386,7 +386,7 @@ RestoreBar:
|
|||
//
|
||||
PciIo->Pci.Write (
|
||||
PciIo,
|
||||
EfiPciWidthUint32,
|
||||
EfiPciIoWidthUint32,
|
||||
RomBarIndex,
|
||||
1,
|
||||
&RomBar
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue