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:
Khalid Ali 2026-01-22 10:52:57 +00:00 committed by mergify[bot]
parent 070d88a592
commit 8ba64a9a94

View file

@ -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