1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2014-2021 Intel Corporation
4  */
5 
6 #ifndef _ABI_GUC_ERRORS_ABI_H
7 #define _ABI_GUC_ERRORS_ABI_H
8 
9 enum intel_guc_response_status {
10 	INTEL_GUC_RESPONSE_STATUS_SUCCESS = 0x0,
11 	INTEL_GUC_RESPONSE_NOT_SUPPORTED = 0x20,
12 	INTEL_GUC_RESPONSE_NO_ATTRIBUTE_TABLE = 0x201,
13 	INTEL_GUC_RESPONSE_NO_DECRYPTION_KEY = 0x202,
14 	INTEL_GUC_RESPONSE_DECRYPTION_FAILED = 0x204,
15 	INTEL_GUC_RESPONSE_STATUS_GENERIC_FAIL = 0xF000,
16 };
17 
18 enum intel_guc_load_status {
19 	INTEL_GUC_LOAD_STATUS_DEFAULT                          = 0x00,
20 	INTEL_GUC_LOAD_STATUS_START                            = 0x01,
21 	INTEL_GUC_LOAD_STATUS_ERROR_DEVID_BUILD_MISMATCH       = 0x02,
22 	INTEL_GUC_LOAD_STATUS_GUC_PREPROD_BUILD_MISMATCH       = 0x03,
23 	INTEL_GUC_LOAD_STATUS_ERROR_DEVID_INVALID_GUCTYPE      = 0x04,
24 	INTEL_GUC_LOAD_STATUS_HWCONFIG_START                   = 0x05,
25 	INTEL_GUC_LOAD_STATUS_HWCONFIG_DONE                    = 0x06,
26 	INTEL_GUC_LOAD_STATUS_HWCONFIG_ERROR                   = 0x07,
27 	INTEL_GUC_LOAD_STATUS_GDT_DONE                         = 0x10,
28 	INTEL_GUC_LOAD_STATUS_IDT_DONE                         = 0x20,
29 	INTEL_GUC_LOAD_STATUS_LAPIC_DONE                       = 0x30,
30 	INTEL_GUC_LOAD_STATUS_GUCINT_DONE                      = 0x40,
31 	INTEL_GUC_LOAD_STATUS_DPC_READY                        = 0x50,
32 	INTEL_GUC_LOAD_STATUS_DPC_ERROR                        = 0x60,
33 	INTEL_GUC_LOAD_STATUS_EXCEPTION                        = 0x70,
34 	INTEL_GUC_LOAD_STATUS_INIT_DATA_INVALID                = 0x71,
35 	INTEL_GUC_LOAD_STATUS_PXP_TEARDOWN_CTRL_ENABLED        = 0x72,
36 	INTEL_GUC_LOAD_STATUS_INVALID_INIT_DATA_RANGE_START,
37 	INTEL_GUC_LOAD_STATUS_MPU_DATA_INVALID                 = 0x73,
38 	INTEL_GUC_LOAD_STATUS_INIT_MMIO_SAVE_RESTORE_INVALID   = 0x74,
39 	INTEL_GUC_LOAD_STATUS_INVALID_INIT_DATA_RANGE_END,
40 
41 	INTEL_GUC_LOAD_STATUS_READY                            = 0xF0,
42 };
43 
44 enum intel_bootrom_load_status {
45 	INTEL_BOOTROM_STATUS_NO_KEY_FOUND                 = 0x13,
46 	INTEL_BOOTROM_STATUS_AES_PROD_KEY_FOUND           = 0x1A,
47 	INTEL_BOOTROM_STATUS_PROD_KEY_CHECK_FAILURE       = 0x2B,
48 	INTEL_BOOTROM_STATUS_RSA_FAILED                   = 0x50,
49 	INTEL_BOOTROM_STATUS_PAVPC_FAILED                 = 0x73,
50 	INTEL_BOOTROM_STATUS_WOPCM_FAILED                 = 0x74,
51 	INTEL_BOOTROM_STATUS_LOADLOC_FAILED               = 0x75,
52 	INTEL_BOOTROM_STATUS_JUMP_PASSED                  = 0x76,
53 	INTEL_BOOTROM_STATUS_JUMP_FAILED                  = 0x77,
54 	INTEL_BOOTROM_STATUS_RC6CTXCONFIG_FAILED          = 0x79,
55 	INTEL_BOOTROM_STATUS_MPUMAP_INCORRECT             = 0x7A,
56 	INTEL_BOOTROM_STATUS_EXCEPTION                    = 0x7E,
57 };
58 
59 #endif /* _ABI_GUC_ERRORS_ABI_H */
60