X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=IntelFrameworkPkg%2FInclude%2FFramework%2FStatusCode.h;h=cdd9d44c19300c7c59133b10b0836e26677a9dba;hp=91b9d08a080852e25a7f798f9cb1eb2c7fa1f784;hb=3a228b9ed500e7379de53ff9bfc17d9fe43b8a7a;hpb=820dff10c79e28b7c230e0baebbea49cd12f9d9f
diff --git a/IntelFrameworkPkg/Include/Framework/StatusCode.h b/IntelFrameworkPkg/Include/Framework/StatusCode.h
index 91b9d08a08..cdd9d44c19 100644
--- a/IntelFrameworkPkg/Include/Framework/StatusCode.h
+++ b/IntelFrameworkPkg/Include/Framework/StatusCode.h
@@ -6,13 +6,12 @@
Section: Contents:
- 1 General Status Code Definitions
- 2 Class definitions
- 3 Computing Unit Subclasses, Progress and Error Codes
- 4 Peripheral Subclasses, Progress and Error Codes.
- 5 IO Bus Subclasses, Progress and Error Codes.
- 6 Software Subclasses, Progress and Error Codes.
- 7 Debug Codes
+ 1 Class definitions
+ 2 Computing Unit Subclasses, Progress and Error Codes
+ 3 Peripheral Subclasses, Progress and Error Codes.
+ 4 IO Bus Subclasses, Progress and Error Codes.
+ 5 Software Subclasses, Progress and Error Codes.
+ 6 Debug Codes
Copyright (c) 2007, Intel Corporation
@@ -24,9 +23,8 @@
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
- Module Name: StatusCode.h
-
@par Revision Reference:
+ Intel Platform Innovation Framework for EFI Status Codes Specification
Version 0.92.
**/
@@ -34,13 +32,8 @@
#ifndef _FRAMEWORK_STATUS_CODE_H_
#define _FRAMEWORK_STATUS_CODE_H_
-#include
-
//
-// /////////////////////////////////////////////////////////////////////////////
// Section 1
-///////////////////////////////////////////////////////////////////////////////
-//
// Class definitions
// Values of 4-127 are reserved for future use by this
// specification.
@@ -60,11 +53,8 @@
#define EFI_SUBCLASS_SPECIFIC 0x1000
#define EFI_OEM_SPECIFIC 0x8000
-//
-// /////////////////////////////////////////////////////////////////////////////
+//
// Section 2
-///////////////////////////////////////////////////////////////////////////////
-//
// Computing Unit Subclass definitions.
// Values of 8-127 are reserved for future use by this
// specification.
@@ -85,6 +75,21 @@
#define EFI_CU_PC_INIT_BEGIN 0x00000000
#define EFI_CU_PC_INIT_END 0x00000001
+//
+// The reason that the processor was disabled.
+//
+#define EFI_CPU_CAUSE_NOT_DISABLED 0x0000
+#define EFI_CPU_CAUSE_INTERNAL_ERROR 0x0001
+#define EFI_CPU_CAUSE_THERMAL_ERROR 0x0002
+#define EFI_CPU_CAUSE_SELFTEST_FAILURE 0x0004
+#define EFI_CPU_CAUSE_PREBOOT_TIMEOUT 0x0008
+#define EFI_CPU_CAUSE_FAILED_TO_START 0x0010
+#define EFI_CPU_CAUSE_CONFIG_ERROR 0x0020
+#define EFI_CPU_CAUSE_USER_SELECTION 0x0080
+#define EFI_CPU_CAUSE_BY_ASSOCIATION 0x0100
+#define EFI_CPU_CAUSE_UNSPECIFIED 0x8000
+
+typedef UINT32 EFI_CPU_STATE_CHANGE_CAUSE;
//
// Computing Unit Unspecified Subclass Progress Code definitions.
//
@@ -195,10 +200,8 @@
// Computing Unit Chipset Subclass Error Code definitions.
//
-///////////////////////////////////////////////////////////////////////////////
-// Section 4
-///////////////////////////////////////////////////////////////////////////////
//
+// Section 3
// Peripheral Subclass definitions.
// Values of 12-127 are reserved for future use by this
// specification.
@@ -336,10 +339,8 @@
// Peripheral Class Network Subclass Error Code definitions.
//
-///////////////////////////////////////////////////////////////////////////////
-// Section 5
-///////////////////////////////////////////////////////////////////////////////
//
+// Section 4
// IO Bus Subclass definitions.
// Values of 14-127 are reserved for future use by this
// specification.
@@ -475,10 +476,8 @@
// IO Bus Class I2C Subclass Error Code definitions.
//
-///////////////////////////////////////////////////////////////////////////////
-// Section 6
-///////////////////////////////////////////////////////////////////////////////
//
+// Section 5
// Software Subclass definitions.
// Values of 14-127 are reserved for future use by this
// specification.
@@ -559,9 +558,20 @@
#define EFI_SW_DXE_BS_PC_LEGACY_BOOT_EVENT (EFI_SUBCLASS_SPECIFIC | 0x00000002)
#define EFI_SW_DXE_BS_PC_EXIT_BOOT_SERVICES_EVENT (EFI_SUBCLASS_SPECIFIC | 0x00000003)
#define EFI_SW_DXE_BS_PC_VIRTUAL_ADDRESS_CHANGE_EVENT (EFI_SUBCLASS_SPECIFIC | 0x00000004)
+///
+/// Inconsistent with specification here:
+/// In Framework Spec, Status0.92, no following two macro. And it is expectable that
+/// to add the definitions to Framework Spec.
+///
#define EFI_SW_DXE_BS_PC_BEGIN_CONNECTING_DRIVERS (EFI_SUBCLASS_SPECIFIC | 0x00000005)
#define EFI_SW_DXE_BS_PC_VERIFYING_PASSWORD (EFI_SUBCLASS_SPECIFIC | 0x00000006)
+///
+/// Inconsistent with specification here:
+/// In Framework Spec, Status0.92, no following two macro. And it is expectable that
+/// to add the definitions to Framework Spec.
+///
+
//
// Software Class DXE RT Driver Subclass Progress Code definitions.
//
@@ -815,6 +825,12 @@
#define EFI_SW_EC_IA32_MACHINE_CHECK EXCEPT_IA32_MACHINE_CHECK
#define EFI_SW_EC_IA32_SIMD EXCEPT_IA32_SIMD
+///
+/// Inconsistent with specification here:
+/// In Framework Spec, Status0.92, no following two macro. And it is expectable that
+/// to add the definitions to Framework Spec.
+///
+
//
// Software Class X64 Exception Subclass Error Code definitions.
// These exceptions are derived from the debug protocol definitions in the EFI
@@ -870,10 +886,8 @@
// Software Class EFI DXE Service Subclass Error Code definitions.
//
-///////////////////////////////////////////////////////////////////////////////
-// Section 7
-///////////////////////////////////////////////////////////////////////////////
//
+// Section 6
// Debug Code definitions for all classes and subclass
// Only one debug code is defined at this point and should
// be used for anything that gets sent to debug stream.