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_GDT_DONE                         = 0x10,
25 	INTEL_GUC_LOAD_STATUS_IDT_DONE                         = 0x20,
26 	INTEL_GUC_LOAD_STATUS_LAPIC_DONE                       = 0x30,
27 	INTEL_GUC_LOAD_STATUS_GUCINT_DONE                      = 0x40,
28 	INTEL_GUC_LOAD_STATUS_DPC_READY                        = 0x50,
29 	INTEL_GUC_LOAD_STATUS_DPC_ERROR                        = 0x60,
30 	INTEL_GUC_LOAD_STATUS_EXCEPTION                        = 0x70,
31 	INTEL_GUC_LOAD_STATUS_INIT_DATA_INVALID                = 0x71,
32 	INTEL_GUC_LOAD_STATUS_PXP_TEARDOWN_CTRL_ENABLED        = 0x72,
33 	INTEL_GUC_LOAD_STATUS_INVALID_INIT_DATA_RANGE_START,
34 	INTEL_GUC_LOAD_STATUS_MPU_DATA_INVALID                 = 0x73,
35 	INTEL_GUC_LOAD_STATUS_INIT_MMIO_SAVE_RESTORE_INVALID   = 0x74,
36 	INTEL_GUC_LOAD_STATUS_INVALID_INIT_DATA_RANGE_END,
37 
38 	INTEL_GUC_LOAD_STATUS_READY                            = 0xF0,
39 };
40 
41 #endif /* _ABI_GUC_ERRORS_ABI_H */
42