From 0492698ac6f59ed5abcde7d1b4f52af4e8566d18 Mon Sep 17 00:00:00 2001 From: jljusten Date: Sat, 16 Oct 2010 18:50:16 +0000 Subject: [PATCH] DuetPkg: Fix EFIAPI usage inconsistencies git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10945 6f19259b-4bc3-4df7-8a09-765794883524 --- DuetPkg/EfiLdr/EfiLdr.h | 2 +- .../PcatPciRootBridge.h | 20 +++++++++++++++++++ .../PcatPciRootBridgeIo.c | 20 ------------------- .../X64/PcatIo.c | 2 ++ 4 files changed, 23 insertions(+), 21 deletions(-) diff --git a/DuetPkg/EfiLdr/EfiLdr.h b/DuetPkg/EfiLdr/EfiLdr.h index 83240ddaf7..9434a780fc 100644 --- a/DuetPkg/EfiLdr/EfiLdr.h +++ b/DuetPkg/EfiLdr/EfiLdr.h @@ -84,7 +84,7 @@ EFILDR_LOADED_IMAGE DxeIplImage; typedef VOID -(* EFI_MAIN_ENTRYPOINT) ( +(EFIAPI * EFI_MAIN_ENTRYPOINT) ( IN EFILDRHANDOFF *Handoff ); diff --git a/DuetPkg/PciRootBridgeNoEnumerationDxe/PcatPciRootBridge.h b/DuetPkg/PciRootBridgeNoEnumerationDxe/PcatPciRootBridge.h index 058a0aea2a..0450fcf672 100644 --- a/DuetPkg/PciRootBridgeNoEnumerationDxe/PcatPciRootBridge.h +++ b/DuetPkg/PciRootBridgeNoEnumerationDxe/PcatPciRootBridge.h @@ -209,6 +209,26 @@ GetPciExpressBaseAddressForRootBridge ( IN UINTN RootBridgeNumber ); +EFI_STATUS +EFIAPI +PcatRootBridgeIoIoRead ( + IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *This, + IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_WIDTH Width, + IN UINT64 UserAddress, + IN UINTN Count, + IN OUT VOID *UserBuffer + ); + +EFI_STATUS +EFIAPI +PcatRootBridgeIoIoWrite ( + IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *This, + IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_WIDTH Width, + IN UINT64 UserAddress, + IN UINTN Count, + IN OUT VOID *UserBuffer + ); + // // Driver entry point prototype // diff --git a/DuetPkg/PciRootBridgeNoEnumerationDxe/PcatPciRootBridgeIo.c b/DuetPkg/PciRootBridgeNoEnumerationDxe/PcatPciRootBridgeIo.c index 83ce4d0a51..bfa3363490 100644 --- a/DuetPkg/PciRootBridgeNoEnumerationDxe/PcatPciRootBridgeIo.c +++ b/DuetPkg/PciRootBridgeNoEnumerationDxe/PcatPciRootBridgeIo.c @@ -69,26 +69,6 @@ PcatRootBridgeIoMemWrite ( IN OUT VOID *Buffer ); -EFI_STATUS -EFIAPI -PcatRootBridgeIoIoRead ( - IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *This, - IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_WIDTH Width, - IN UINT64 UserAddress, - IN UINTN Count, - IN OUT VOID *UserBuffer - ); - -EFI_STATUS -EFIAPI -PcatRootBridgeIoIoWrite ( - IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *This, - IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_WIDTH Width, - IN UINT64 UserAddress, - IN UINTN Count, - IN OUT VOID *UserBuffer - ); - EFI_STATUS EFIAPI PcatRootBridgeIoCopyMem ( diff --git a/DuetPkg/PciRootBridgeNoEnumerationDxe/X64/PcatIo.c b/DuetPkg/PciRootBridgeNoEnumerationDxe/X64/PcatIo.c index 6390df6c85..5320f560d9 100644 --- a/DuetPkg/PciRootBridgeNoEnumerationDxe/X64/PcatIo.c +++ b/DuetPkg/PciRootBridgeNoEnumerationDxe/X64/PcatIo.c @@ -26,6 +26,7 @@ BOOLEAN mPciOptionRomTableInstalled = FALSE; EFI_PCI_OPTION_ROM_TABLE mPciOptionRomTable = {0, NULL}; EFI_STATUS +EFIAPI PcatRootBridgeIoIoRead ( IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *This, IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_WIDTH Width, @@ -44,6 +45,7 @@ PcatRootBridgeIoIoRead ( } EFI_STATUS +EFIAPI PcatRootBridgeIoIoWrite ( IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *This, IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_WIDTH Width,