From ee686203fdf8743eae23ffbcf5837954cfafb9a5 Mon Sep 17 00:00:00 2001 From: mdkinney Date: Mon, 3 Jan 2011 19:25:00 +0000 Subject: Use REPORT_STATUS_CODExxx() macros directly. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11224 6f19259b-4bc3-4df7-8a09-765794883524 --- IntelFrameworkModulePkg/Bus/Isa/IsaBusDxe/IsaIo.c | 65 +++++++++++++---------- 1 file changed, 37 insertions(+), 28 deletions(-) (limited to 'IntelFrameworkModulePkg/Bus/Isa/IsaBusDxe/IsaIo.c') diff --git a/IntelFrameworkModulePkg/Bus/Isa/IsaBusDxe/IsaIo.c b/IntelFrameworkModulePkg/Bus/Isa/IsaBusDxe/IsaIo.c index e821f5d546..e4715383ea 100644 --- a/IntelFrameworkModulePkg/Bus/Isa/IsaBusDxe/IsaIo.c +++ b/IntelFrameworkModulePkg/Bus/Isa/IsaBusDxe/IsaIo.c @@ -1,7 +1,7 @@ /** @file The implementation for EFI_ISA_IO_PROTOCOL. -Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.
+Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -80,24 +80,6 @@ EFI_ISA_DMA_REGISTERS mDmaRegisters[8] = { }, }; -/** - report a error Status code - - @param Code The error status code. - - @return EFI_SUCCESS Success to report status code. -**/ -EFI_STATUS -ReportErrorStatusCode ( - EFI_STATUS_CODE_VALUE Code - ) -{ - return REPORT_STATUS_CODE ( - EFI_ERROR_CODE | EFI_ERROR_MINOR, - Code - ); -} - /** Initializes an ISA I/O Instance @@ -176,7 +158,10 @@ IsaIoIoRead ( ); if (EFI_ERROR (Status)) { - ReportErrorStatusCode (EFI_IO_BUS_LPC | EFI_IOB_EC_CONTROLLER_ERROR); + REPORT_STATUS_CODE ( + EFI_ERROR_CODE | EFI_ERROR_MINOR, + EFI_IO_BUS_LPC | EFI_IOB_EC_CONTROLLER_ERROR + ); } return Status; @@ -235,7 +220,10 @@ IsaIoIoWrite ( ); if (EFI_ERROR (Status)) { - ReportErrorStatusCode (EFI_IO_BUS_LPC | EFI_IOB_EC_CONTROLLER_ERROR); + REPORT_STATUS_CODE ( + EFI_ERROR_CODE | EFI_ERROR_MINOR, + EFI_IO_BUS_LPC | EFI_IOB_EC_CONTROLLER_ERROR + ); } return Status; @@ -274,7 +262,10 @@ WritePort ( &Value ); if (EFI_ERROR (Status)) { - ReportErrorStatusCode (EFI_IO_BUS_LPC | EFI_IOB_EC_CONTROLLER_ERROR); + REPORT_STATUS_CODE ( + EFI_ERROR_CODE | EFI_ERROR_MINOR, + EFI_IO_BUS_LPC | EFI_IOB_EC_CONTROLLER_ERROR + ); return Status; } @@ -414,7 +405,10 @@ IsaIoFlush ( Status = IsaIoDevice->PciIo->Flush (IsaIoDevice->PciIo); if (EFI_ERROR (Status)) { - ReportErrorStatusCode (EFI_IO_BUS_LPC | EFI_IOB_EC_CONTROLLER_ERROR); + REPORT_STATUS_CODE ( + EFI_ERROR_CODE | EFI_ERROR_MINOR, + EFI_IO_BUS_LPC | EFI_IOB_EC_CONTROLLER_ERROR + ); } return Status; @@ -544,7 +538,10 @@ IsaIoMemRead ( ); if (EFI_ERROR (Status)) { - ReportErrorStatusCode (EFI_IO_BUS_LPC | EFI_IOB_EC_CONTROLLER_ERROR); + REPORT_STATUS_CODE ( + EFI_ERROR_CODE | EFI_ERROR_MINOR, + EFI_IO_BUS_LPC | EFI_IOB_EC_CONTROLLER_ERROR + ); } return Status; @@ -610,7 +607,10 @@ IsaIoMemWrite ( ); if (EFI_ERROR (Status)) { - ReportErrorStatusCode (EFI_IO_BUS_LPC | EFI_IOB_EC_CONTROLLER_ERROR); + REPORT_STATUS_CODE ( + EFI_ERROR_CODE | EFI_ERROR_MINOR, + EFI_IO_BUS_LPC | EFI_IOB_EC_CONTROLLER_ERROR + ); } return Status; @@ -688,7 +688,10 @@ IsaIoCopyMem ( ); if (EFI_ERROR (Status)) { - ReportErrorStatusCode (EFI_IO_BUS_LPC | EFI_IOB_EC_CONTROLLER_ERROR); + REPORT_STATUS_CODE ( + EFI_ERROR_CODE | EFI_ERROR_MINOR, + EFI_IO_BUS_LPC | EFI_IOB_EC_CONTROLLER_ERROR + ); } return Status; @@ -1404,7 +1407,10 @@ IsaIoAllocateBuffer ( Status = gBS->AllocatePages (Type, MemoryType, Pages, &PhysicalAddress); if (EFI_ERROR (Status)) { - ReportErrorStatusCode (EFI_IO_BUS_LPC | EFI_IOB_EC_CONTROLLER_ERROR); + REPORT_STATUS_CODE ( + EFI_ERROR_CODE | EFI_ERROR_MINOR, + EFI_IO_BUS_LPC | EFI_IOB_EC_CONTROLLER_ERROR + ); return Status; } @@ -1447,7 +1453,10 @@ IsaIoFreeBuffer ( Pages ); if (EFI_ERROR (Status)) { - ReportErrorStatusCode (EFI_IO_BUS_LPC | EFI_IOB_EC_CONTROLLER_ERROR); + REPORT_STATUS_CODE ( + EFI_ERROR_CODE | EFI_ERROR_MINOR, + EFI_IO_BUS_LPC | EFI_IOB_EC_CONTROLLER_ERROR + ); } return Status; -- cgit v1.2.3