]>
git.proxmox.com Git - mirror_edk2.git/blob - IntelFrameworkPkg/Include/Framework/StatusCode.h
2 Status Code Definitions, according to Intel Platform Innovation Framework
3 for EFI Status Codes Specification
5 Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>
6 This program and the accompanying materials are licensed and made available under
7 the terms and conditions of the BSD License that accompanies this distribution.
8 The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php.
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
14 @par Revision Reference:
15 Intel Platform Innovation Framework for EFI Status Codes Specification
20 #ifndef _FRAMEWORK_STATUS_CODE_H_
21 #define _FRAMEWORK_STATUS_CODE_H_
24 // Required for X64 defines for CPU exception types
26 #include <Protocol/DebugSupport.h>
29 /// Software Class DXE BS Driver Subclass Progress Code definitions.
31 /// Inconsistent with specification here:
32 /// The Framework Specification, StatusCodes 0.92, does not define the macros.
35 #define EFI_SW_DXE_BS_PC_BEGIN_CONNECTING_DRIVERS (EFI_SUBCLASS_SPECIFIC | 0x00000005)
36 #define EFI_SW_DXE_BS_PC_VERIFYING_PASSWORD (EFI_SUBCLASS_SPECIFIC | 0x00000006)
40 /// Software Class DXE RT Driver Subclass Progress Code definitions.
42 /// Inconsistent with specification here:
43 /// The Framework Specification, StatusCodes 0.92, does not define the macros.
46 #define EFI_SW_DXE_RT_PC_S0 (EFI_SUBCLASS_SPECIFIC | 0x00000000)
47 #define EFI_SW_DXE_RT_PC_S1 (EFI_SUBCLASS_SPECIFIC | 0x00000001)
48 #define EFI_SW_DXE_RT_PC_S2 (EFI_SUBCLASS_SPECIFIC | 0x00000002)
49 #define EFI_SW_DXE_RT_PC_S3 (EFI_SUBCLASS_SPECIFIC | 0x00000003)
50 #define EFI_SW_DXE_RT_PC_S4 (EFI_SUBCLASS_SPECIFIC | 0x00000004)
51 #define EFI_SW_DXE_RT_PC_S5 (EFI_SUBCLASS_SPECIFIC | 0x00000005)
55 /// Software Subclass definitions.
57 /// Inconsistent with specification here:
58 /// The Framework Specification, StatusCodes 0.92, does not define the macros.
60 #define EFI_SOFTWARE_X64_EXCEPTION (EFI_SOFTWARE | 0x00130000)
63 /// Software Class X64 Exception Subclass Error Code definitions.
64 /// These exceptions are derived from the debug protocol definitions in the EFI
67 /// Inconsistent with specification here:
68 /// The Framework Specification, StatusCodes 0.92, does not define the macros.
71 #define EFI_SW_EC_X64_DIVIDE_ERROR EXCEPT_X64_DIVIDE_ERROR
72 #define EFI_SW_EC_X64_DEBUG EXCEPT_X64_DEBUG
73 #define EFI_SW_EC_X64_NMI EXCEPT_X64_NMI
74 #define EFI_SW_EC_X64_BREAKPOINT EXCEPT_X64_BREAKPOINT
75 #define EFI_SW_EC_X64_OVERFLOW EXCEPT_X64_OVERFLOW
76 #define EFI_SW_EC_X64_BOUND EXCEPT_X64_BOUND
77 #define EFI_SW_EC_X64_INVALID_OPCODE EXCEPT_X64_INVALID_OPCODE
78 #define EFI_SW_EC_X64_DOUBLE_FAULT EXCEPT_X64_DOUBLE_FAULT
79 #define EFI_SW_EC_X64_INVALID_TSS EXCEPT_X64_INVALID_TSS
80 #define EFI_SW_EC_X64_SEG_NOT_PRESENT EXCEPT_X64_SEG_NOT_PRESENT
81 #define EFI_SW_EC_X64_STACK_FAULT EXCEPT_X64_STACK_FAULT
82 #define EFI_SW_EC_X64_GP_FAULT EXCEPT_X64_GP_FAULT
83 #define EFI_SW_EC_X64_PAGE_FAULT EXCEPT_X64_PAGE_FAULT
84 #define EFI_SW_EC_X64_FP_ERROR EXCEPT_X64_FP_ERROR
85 #define EFI_SW_EC_X64_ALIGNMENT_CHECK EXCEPT_X64_ALIGNMENT_CHECK
86 #define EFI_SW_EC_X64_MACHINE_CHECK EXCEPT_X64_MACHINE_CHECK
87 #define EFI_SW_EC_X64_SIMD EXCEPT_X64_SIMD
91 /// Software Class EFI After Life Subclass Progress Code definitions.
94 #define EFI_SW_AL_PC_ENTRY_POINT (EFI_SUBCLASS_SPECIFIC | 0x00000000)
95 #define EFI_SW_AL_PC_RETURN_TO_LAST (EFI_SUBCLASS_SPECIFIC | 0x00000001)
99 /// Software Class DXE Core Subclass Error Code definitions.
101 /// Inconsistent with specification here:
102 /// The Framework Specification, StatusCodes 0.92, does not define the macros.
104 #define EFI_SW_CSM_LEGACY_ROM_INIT (EFI_SUBCLASS_SPECIFIC | 0x00000000)
107 /// IO Bus Class ATA/ATAPI Subclass Progress Code definitions.
110 /// Inconsistent with specification here:
111 /// The Framework Specification, StatusCodes 0.92, does not define the macros.
114 #define EFI_IOB_ATA_BUS_SMART_ENABLE (EFI_SUBCLASS_SPECIFIC | 0x00000000)
115 #define EFI_IOB_ATA_BUS_SMART_DISABLE (EFI_SUBCLASS_SPECIFIC | 0x00000001)
116 #define EFI_IOB_ATA_BUS_SMART_OVERTHRESHOLD (EFI_SUBCLASS_SPECIFIC | 0x00000002)
117 #define EFI_IOB_ATA_BUS_SMART_UNDERTHRESHOLD (EFI_SUBCLASS_SPECIFIC | 0x00000003)
121 /// IO Bus Class ATA/ATAPI Subclass Error Code definitions.
124 /// Inconsistent with specification here:
125 /// The Framework Specification, StatusCodes 0.92, does not define the macros.
128 #define EFI_IOB_ATA_BUS_SMART_NOTSUPPORTED (EFI_SUBCLASS_SPECIFIC | 0x00000000)
129 #define EFI_IOB_ATA_BUS_SMART_DISABLED (EFI_SUBCLASS_SPECIFIC | 0x00000001)
133 /// The reason that the processor was disabled.
135 /// Inconsistent with specification here:
136 /// The Framework Specification, StatusCodes 0.92, does not define the macros.
139 #define EFI_CPU_CAUSE_NOT_DISABLED 0x0000