git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11224
6f19259b-4bc3-4df7-8a09-
765794883524
/** @file\r
The header file for EFI_ISA_IO protocol implementation.\r
\r
/** @file\r
The header file for EFI_ISA_IO protocol implementation.\r
\r
-Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
IN EFI_ISA_IO_PROTOCOL *This\r
);\r
\r
IN EFI_ISA_IO_PROTOCOL *This\r
);\r
\r
-/**\r
- report a error Status code\r
-\r
- @param Code The error status code.\r
- \r
- @return EFI_SUCCESS Success to report status code.\r
-**/\r
-EFI_STATUS\r
-ReportErrorStatusCode (\r
- EFI_STATUS_CODE_VALUE Code\r
- );\r
-\r
/**\r
Writes I/O operation base address and count number to a 8 bit I/O Port.\r
\r
/**\r
Writes I/O operation base address and count number to a 8 bit I/O Port.\r
\r
/** @file\r
The implementation for EFI_ISA_IO_PROTOCOL. \r
\r
/** @file\r
The implementation for EFI_ISA_IO_PROTOCOL. \r
\r
-Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
-/**\r
- report a error Status code\r
-\r
- @param Code The error status code.\r
- \r
- @return EFI_SUCCESS Success to report status code.\r
-**/\r
-EFI_STATUS\r
-ReportErrorStatusCode (\r
- EFI_STATUS_CODE_VALUE Code\r
- )\r
-{\r
- return REPORT_STATUS_CODE (\r
- EFI_ERROR_CODE | EFI_ERROR_MINOR,\r
- Code\r
- );\r
-}\r
-\r
/**\r
Initializes an ISA I/O Instance\r
\r
/**\r
Initializes an ISA I/O Instance\r
\r
);\r
\r
if (EFI_ERROR (Status)) {\r
);\r
\r
if (EFI_ERROR (Status)) {\r
- ReportErrorStatusCode (EFI_IO_BUS_LPC | EFI_IOB_EC_CONTROLLER_ERROR);\r
+ REPORT_STATUS_CODE (\r
+ EFI_ERROR_CODE | EFI_ERROR_MINOR,\r
+ EFI_IO_BUS_LPC | EFI_IOB_EC_CONTROLLER_ERROR\r
+ );\r
);\r
\r
if (EFI_ERROR (Status)) {\r
);\r
\r
if (EFI_ERROR (Status)) {\r
- ReportErrorStatusCode (EFI_IO_BUS_LPC | EFI_IOB_EC_CONTROLLER_ERROR);\r
+ REPORT_STATUS_CODE (\r
+ EFI_ERROR_CODE | EFI_ERROR_MINOR,\r
+ EFI_IO_BUS_LPC | EFI_IOB_EC_CONTROLLER_ERROR\r
+ );\r
&Value\r
);\r
if (EFI_ERROR (Status)) {\r
&Value\r
);\r
if (EFI_ERROR (Status)) {\r
- ReportErrorStatusCode (EFI_IO_BUS_LPC | EFI_IOB_EC_CONTROLLER_ERROR);\r
+ REPORT_STATUS_CODE (\r
+ EFI_ERROR_CODE | EFI_ERROR_MINOR,\r
+ EFI_IO_BUS_LPC | EFI_IOB_EC_CONTROLLER_ERROR\r
+ );\r
Status = IsaIoDevice->PciIo->Flush (IsaIoDevice->PciIo);\r
\r
if (EFI_ERROR (Status)) {\r
Status = IsaIoDevice->PciIo->Flush (IsaIoDevice->PciIo);\r
\r
if (EFI_ERROR (Status)) {\r
- ReportErrorStatusCode (EFI_IO_BUS_LPC | EFI_IOB_EC_CONTROLLER_ERROR);\r
+ REPORT_STATUS_CODE (\r
+ EFI_ERROR_CODE | EFI_ERROR_MINOR,\r
+ EFI_IO_BUS_LPC | EFI_IOB_EC_CONTROLLER_ERROR\r
+ );\r
);\r
\r
if (EFI_ERROR (Status)) {\r
);\r
\r
if (EFI_ERROR (Status)) {\r
- ReportErrorStatusCode (EFI_IO_BUS_LPC | EFI_IOB_EC_CONTROLLER_ERROR);\r
+ REPORT_STATUS_CODE (\r
+ EFI_ERROR_CODE | EFI_ERROR_MINOR,\r
+ EFI_IO_BUS_LPC | EFI_IOB_EC_CONTROLLER_ERROR\r
+ );\r
);\r
\r
if (EFI_ERROR (Status)) {\r
);\r
\r
if (EFI_ERROR (Status)) {\r
- ReportErrorStatusCode (EFI_IO_BUS_LPC | EFI_IOB_EC_CONTROLLER_ERROR);\r
+ REPORT_STATUS_CODE (\r
+ EFI_ERROR_CODE | EFI_ERROR_MINOR,\r
+ EFI_IO_BUS_LPC | EFI_IOB_EC_CONTROLLER_ERROR\r
+ );\r
);\r
\r
if (EFI_ERROR (Status)) {\r
);\r
\r
if (EFI_ERROR (Status)) {\r
- ReportErrorStatusCode (EFI_IO_BUS_LPC | EFI_IOB_EC_CONTROLLER_ERROR);\r
+ REPORT_STATUS_CODE (\r
+ EFI_ERROR_CODE | EFI_ERROR_MINOR,\r
+ EFI_IO_BUS_LPC | EFI_IOB_EC_CONTROLLER_ERROR\r
+ );\r
\r
Status = gBS->AllocatePages (Type, MemoryType, Pages, &PhysicalAddress);\r
if (EFI_ERROR (Status)) {\r
\r
Status = gBS->AllocatePages (Type, MemoryType, Pages, &PhysicalAddress);\r
if (EFI_ERROR (Status)) {\r
- ReportErrorStatusCode (EFI_IO_BUS_LPC | EFI_IOB_EC_CONTROLLER_ERROR);\r
+ REPORT_STATUS_CODE (\r
+ EFI_ERROR_CODE | EFI_ERROR_MINOR,\r
+ EFI_IO_BUS_LPC | EFI_IOB_EC_CONTROLLER_ERROR\r
+ );\r
Pages\r
);\r
if (EFI_ERROR (Status)) {\r
Pages\r
);\r
if (EFI_ERROR (Status)) {\r
- ReportErrorStatusCode (EFI_IO_BUS_LPC | EFI_IOB_EC_CONTROLLER_ERROR);\r
+ REPORT_STATUS_CODE (\r
+ EFI_ERROR_CODE | EFI_ERROR_MINOR,\r
+ EFI_IO_BUS_LPC | EFI_IOB_EC_CONTROLLER_ERROR\r
+ );\r