]> git.proxmox.com Git - mirror_edk2.git/blob - UefiCpuPkg/Include/Register/StmStatusCode.h
UefiCpuPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / UefiCpuPkg / Include / Register / StmStatusCode.h
1 /** @file
2 STM Status Codes
3
4 Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7 @par Specification Reference:
8 SMI Transfer Monitor (STM) User Guide Revision 1.00
9
10 **/
11
12 #ifndef _STM_STATUS_CODE_H_
13 #define _STM_STATUS_CODE_H_
14
15 /**
16 STM Status Codes
17 **/
18 typedef UINT32 STM_STATUS;
19
20 /**
21 Success code have BIT31 clear.
22 All error codes have BIT31 set.
23 STM errors have BIT16 set.
24 SMM errors have BIT17 set
25 Errors that apply to both STM and SMM have bits BIT15, BT16, and BIT17 set.
26 STM TXT.ERRORCODE codes have BIT30 set.
27 @{
28 **/
29 #define STM_SUCCESS 0x00000000
30 #define SMM_SUCCESS 0x00000000
31 #define ERROR_STM_SECURITY_VIOLATION (BIT31 | BIT16 | 0x0001)
32 #define ERROR_STM_CACHE_TYPE_NOT_SUPPORTED (BIT31 | BIT16 | 0x0002)
33 #define ERROR_STM_PAGE_NOT_FOUND (BIT31 | BIT16 | 0x0003)
34 #define ERROR_STM_BAD_CR3 (BIT31 | BIT16 | 0x0004)
35 #define ERROR_STM_PHYSICAL_OVER_4G (BIT31 | BIT16 | 0x0005)
36 #define ERROR_STM_VIRTUAL_SPACE_TOO_SMALL (BIT31 | BIT16 | 0x0006)
37 #define ERROR_STM_UNPROTECTABLE_RESOURCE (BIT31 | BIT16 | 0x0007)
38 #define ERROR_STM_ALREADY_STARTED (BIT31 | BIT16 | 0x0008)
39 #define ERROR_STM_WITHOUT_SMX_UNSUPPORTED (BIT31 | BIT16 | 0x0009)
40 #define ERROR_STM_STOPPED (BIT31 | BIT16 | 0x000A)
41 #define ERROR_STM_BUFFER_TOO_SMALL (BIT31 | BIT16 | 0x000B)
42 #define ERROR_STM_INVALID_VMCS_DATABASE (BIT31 | BIT16 | 0x000C)
43 #define ERROR_STM_MALFORMED_RESOURCE_LIST (BIT31 | BIT16 | 0x000D)
44 #define ERROR_STM_INVALID_PAGECOUNT (BIT31 | BIT16 | 0x000E)
45 #define ERROR_STM_LOG_ALLOCATED (BIT31 | BIT16 | 0x000F)
46 #define ERROR_STM_LOG_NOT_ALLOCATED (BIT31 | BIT16 | 0x0010)
47 #define ERROR_STM_LOG_NOT_STOPPED (BIT31 | BIT16 | 0x0011)
48 #define ERROR_STM_LOG_NOT_STARTED (BIT31 | BIT16 | 0x0012)
49 #define ERROR_STM_RESERVED_BIT_SET (BIT31 | BIT16 | 0x0013)
50 #define ERROR_STM_NO_EVENTS_ENABLED (BIT31 | BIT16 | 0x0014)
51 #define ERROR_STM_OUT_OF_RESOURCES (BIT31 | BIT16 | 0x0015)
52 #define ERROR_STM_FUNCTION_NOT_SUPPORTED (BIT31 | BIT16 | 0x0016)
53 #define ERROR_STM_UNPROTECTABLE (BIT31 | BIT16 | 0x0017)
54 #define ERROR_STM_UNSUPPORTED_MSR_BIT (BIT31 | BIT16 | 0x0018)
55 #define ERROR_STM_UNSPECIFIED (BIT31 | BIT16 | 0xFFFF)
56 #define ERROR_SMM_BAD_BUFFER (BIT31 | BIT17 | 0x0001)
57 #define ERROR_SMM_INVALID_RSC (BIT31 | BIT17 | 0x0004)
58 #define ERROR_SMM_INVALID_BUFFER_SIZE (BIT31 | BIT17 | 0x0005)
59 #define ERROR_SMM_BUFFER_TOO_SHORT (BIT31 | BIT17 | 0x0006)
60 #define ERROR_SMM_INVALID_LIST (BIT31 | BIT17 | 0x0007)
61 #define ERROR_SMM_OUT_OF_MEMORY (BIT31 | BIT17 | 0x0008)
62 #define ERROR_SMM_AFTER_INIT (BIT31 | BIT17 | 0x0009)
63 #define ERROR_SMM_UNSPECIFIED (BIT31 | BIT17 | 0xFFFF)
64 #define ERROR_INVALID_API (BIT31 | BIT17 | BIT16 | BIT15 | 0x0001)
65 #define ERROR_INVALID_PARAMETER (BIT31 | BIT17 | BIT16 | BIT15 | 0x0002)
66 #define STM_CRASH_PROTECTION_EXCEPTION (BIT31 | BIT30 | 0xF001)
67 #define STM_CRASH_PROTECTION_EXCEPTION_FAILURE (BIT31 | BIT30 | 0xF002)
68 #define STM_CRASH_DOMAIN_DEGRADATION_FAILURE (BIT31 | BIT30 | 0xF003)
69 #define STM_CRASH_BIOS_PANIC (BIT31 | BIT30 | 0xE000)
70 /// @}
71
72 #endif