1 /* Copyright 2023 The ChromiumOS Authors 2 * Use of this source code is governed by a BSD-style license that can be 3 * found in the LICENSE file. 4 * 5 */ 6 #ifndef __CR50_INCLUDE_AP_RO_STATUS_H 7 #define __CR50_INCLUDE_AP_RO_STATUS_H 8 9 enum ap_ro_status { 10 /* All AP RO Verification V1 statuses are less than 20 */ 11 AP_RO_NOT_RUN = 0, 12 AP_RO_PASS_UNVERIFIED_GBB = 1, 13 AP_RO_FAIL = 2, 14 AP_RO_UNSUPPORTED_UNKNOWN = 3, /* Deprecated */ 15 AP_RO_UNSUPPORTED_NOT_TRIGGERED = 4, 16 AP_RO_UNSUPPORTED_TRIGGERED = 5, 17 AP_RO_PASS = 6, 18 AP_RO_IN_PROGRESS = 7, 19 /* All AP RO Verification V2 status are 20 or greater */ 20 AP_RO_V2_SUCCESS = 20, 21 AP_RO_V2_FAILED_VERIFICATION = 21, 22 AP_RO_V2_INCONSISTENT_GSCVD = 22, 23 AP_RO_V2_INCONSISTENT_KEYBLOCK = 23, 24 AP_RO_V2_INCONSISTENT_KEY = 24, 25 AP_RO_V2_SPI_READ = 25, 26 AP_RO_V2_UNSUPPORTED_CRYPTO_ALGORITHM = 26, 27 AP_RO_V2_VERSION_MISMATCH = 27, 28 AP_RO_V2_OUT_OF_MEMORY = 28, 29 AP_RO_V2_INTERNAL = 29, 30 AP_RO_V2_TOO_BIG = 30, 31 AP_RO_V2_MISSING_GSCVD = 31, 32 AP_RO_V2_BOARD_ID_MISMATCH = 32, 33 AP_RO_V2_SETTING_NOT_PROVISIONED = 33, 34 /* 35 * Do not use values 34 and 35. They are ambiguous depending on 36 * ti50 FW version. 37 */ 38 AP_RO_V2_NON_ZERO_GBB_FLAGS = 36, 39 AP_RO_V2_WRONG_ROOT_KEY = 37, 40 AP_RO_V2_UNKNOWN = 255, 41 }; 42 43 #endif /* ! __CR50_INCLUDE_AP_RO_STATUS_H */ 44