]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkPkg/Include/Framework/StatusCode.h
Remove "Module Name:" from include file headers.
[mirror_edk2.git] / IntelFrameworkPkg / Include / Framework / StatusCode.h
index 41b7720f2cf1aba2a14b216351cb4aca8abc12b6..cdd9d44c19300c7c59133b10b0836e26677a9dba 100644 (file)
@@ -6,13 +6,12 @@
 \r
 <pre>\r
   Section:    Contents:\r
-  1           General Status Code Definitions\r
-  2           Class definitions\r
-  3           Computing Unit Subclasses, Progress and Error Codes\r
-  4           Peripheral Subclasses, Progress and Error Codes.\r
-  5           IO Bus Subclasses, Progress and Error Codes.\r
-  6           Software Subclasses, Progress and Error Codes.\r
-  7           Debug Codes\r
+  1           Class definitions\r
+  2           Computing Unit Subclasses, Progress and Error Codes\r
+  3           Peripheral Subclasses, Progress and Error Codes.\r
+  4           IO Bus Subclasses, Progress and Error Codes.\r
+  5           Software Subclasses, Progress and Error Codes.\r
+  6           Debug Codes\r
 </pre>\r
 \r
   Copyright (c) 2007, Intel Corporation\r
@@ -24,9 +23,8 @@
   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-  Module Name:  StatusCode.h\r
-\r
   @par Revision Reference:\r
+  Intel Platform Innovation Framework for EFI Status Codes Specification\r
   Version 0.92.\r
 \r
 **/\r
 #ifndef _FRAMEWORK_STATUS_CODE_H_\r
 #define _FRAMEWORK_STATUS_CODE_H_\r
 \r
-#include <PiPei.h>\r
-\r
 //\r
-// /////////////////////////////////////////////////////////////////////////////\r
 // Section 1\r
-///////////////////////////////////////////////////////////////////////////////\r
-//\r
 // Class definitions\r
 // Values of 4-127 are reserved for future use by this\r
 // specification.\r
 #define EFI_SUBCLASS_SPECIFIC 0x1000\r
 #define EFI_OEM_SPECIFIC      0x8000\r
 \r
-//\r
-// /////////////////////////////////////////////////////////////////////////////\r
+// \r
 // Section 2\r
-///////////////////////////////////////////////////////////////////////////////\r
-//\r
 // Computing Unit Subclass definitions.\r
 // Values of 8-127 are reserved for future use by this\r
 // specification.\r
 #define EFI_CU_PC_INIT_BEGIN  0x00000000\r
 #define EFI_CU_PC_INIT_END    0x00000001\r
 \r
+//\r
+// The reason that the processor was disabled.\r
+//\r
+#define EFI_CPU_CAUSE_NOT_DISABLED              0x0000\r
+#define EFI_CPU_CAUSE_INTERNAL_ERROR            0x0001\r
+#define EFI_CPU_CAUSE_THERMAL_ERROR             0x0002\r
+#define EFI_CPU_CAUSE_SELFTEST_FAILURE          0x0004\r
+#define EFI_CPU_CAUSE_PREBOOT_TIMEOUT           0x0008\r
+#define EFI_CPU_CAUSE_FAILED_TO_START           0x0010\r
+#define EFI_CPU_CAUSE_CONFIG_ERROR              0x0020\r
+#define EFI_CPU_CAUSE_USER_SELECTION            0x0080\r
+#define EFI_CPU_CAUSE_BY_ASSOCIATION            0x0100\r
+#define EFI_CPU_CAUSE_UNSPECIFIED               0x8000\r
+\r
+typedef UINT32                                  EFI_CPU_STATE_CHANGE_CAUSE;\r
 //\r
 // Computing Unit Unspecified Subclass Progress Code definitions.\r
 //\r
 // Computing Unit Chipset Subclass Error Code definitions.\r
 //\r
 \r
-///////////////////////////////////////////////////////////////////////////////\r
-// Section 4\r
-///////////////////////////////////////////////////////////////////////////////\r
 //\r
+// Section 3\r
 // Peripheral Subclass definitions.\r
 // Values of 12-127 are reserved for future use by this\r
 // specification.\r
 // Peripheral Class Network Subclass Error Code definitions.\r
 //\r
 \r
-///////////////////////////////////////////////////////////////////////////////\r
-// Section 5\r
-///////////////////////////////////////////////////////////////////////////////\r
 //\r
+// Section 4\r
 // IO Bus Subclass definitions.\r
 // Values of 14-127 are reserved for future use by this\r
 // specification.\r
 // IO Bus Class I2C Subclass Error Code definitions.\r
 //\r
 \r
-///////////////////////////////////////////////////////////////////////////////\r
-// Section 6\r
-///////////////////////////////////////////////////////////////////////////////\r
 //\r
+// Section 5\r
 // Software Subclass definitions.\r
 // Values of 14-127 are reserved for future use by this\r
 // specification.\r
 #define EFI_SW_DXE_BS_PC_LEGACY_BOOT_EVENT            (EFI_SUBCLASS_SPECIFIC | 0x00000002)\r
 #define EFI_SW_DXE_BS_PC_EXIT_BOOT_SERVICES_EVENT     (EFI_SUBCLASS_SPECIFIC | 0x00000003)\r
 #define EFI_SW_DXE_BS_PC_VIRTUAL_ADDRESS_CHANGE_EVENT (EFI_SUBCLASS_SPECIFIC | 0x00000004)\r
+///\r
+/// Inconsistent with specification here: \r
+/// In Framework Spec, Status0.92, no following two macro. And it is expectable that\r
+/// to add the definitions to Framework Spec.\r
+///\r
 #define EFI_SW_DXE_BS_PC_BEGIN_CONNECTING_DRIVERS     (EFI_SUBCLASS_SPECIFIC | 0x00000005)\r
 #define EFI_SW_DXE_BS_PC_VERIFYING_PASSWORD           (EFI_SUBCLASS_SPECIFIC | 0x00000006)\r
 \r
+///\r
+/// Inconsistent with specification here: \r
+/// In Framework Spec, Status0.92, no following two macro. And it is expectable that\r
+/// to add the definitions to Framework Spec.\r
+///\r
+\r
 //\r
 // Software Class DXE RT Driver Subclass Progress Code definitions.\r
 //\r
 #define EFI_SW_EC_IA32_MACHINE_CHECK    EXCEPT_IA32_MACHINE_CHECK\r
 #define EFI_SW_EC_IA32_SIMD             EXCEPT_IA32_SIMD\r
 \r
+///\r
+/// Inconsistent with specification here: \r
+/// In Framework Spec, Status0.92, no following two macro. And it is expectable that\r
+/// to add the definitions to Framework Spec.\r
+///\r
+\r
 //\r
 // Software Class X64 Exception Subclass Error Code definitions.\r
 // These exceptions are derived from the debug protocol definitions in the EFI\r
 // Software Class EFI DXE Service Subclass Error Code definitions.\r
 //\r
 \r
-///////////////////////////////////////////////////////////////////////////////\r
-// Section 7\r
-///////////////////////////////////////////////////////////////////////////////\r
 //\r
+// Section 6\r
 // Debug Code definitions for all classes and subclass\r
 // Only one debug code is defined at this point and should\r
 // be used for anything that gets sent to debug stream.\r
 //\r
 #define EFI_DC_UNSPECIFIED  0x0\r
 \r
-///////////////////////////////////////////////////////////////////////////////\r
-// Common Status Code Definitions\r
-///////////////////////////////////////////////////////////////////////////////\r
-///\r
-/// This is the max data size including all the headers which can be passed\r
-/// as Status Code data. This data should be multiple of 8 byte\r
-/// to avoid any kind of boundary issue. Also, sum of this data size (inclusive\r
-/// of size of EFI_STATUS_CODE_DATA should not exceed the max record size of\r
-/// data hub\r
-///\r
-#define EFI_STATUS_CODE_DATA_MAX_SIZE 200\r
-\r
 #endif\r