treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / misc / habanalabs / include / hl_boot_if.h
blob2853a2de8cf61e47f0850621f9ad9981ac115d63
1 /* SPDX-License-Identifier: GPL-2.0
3 * Copyright 2018 HabanaLabs, Ltd.
4 * All Rights Reserved.
6 */
8 #ifndef HL_BOOT_IF_H
9 #define HL_BOOT_IF_H
11 enum cpu_boot_status {
12 CPU_BOOT_STATUS_NA = 0, /* Default value after reset of chip */
13 CPU_BOOT_STATUS_IN_WFE,
14 CPU_BOOT_STATUS_DRAM_RDY,
15 CPU_BOOT_STATUS_SRAM_AVAIL,
16 CPU_BOOT_STATUS_IN_BTL, /* BTL is H/W FSM */
17 CPU_BOOT_STATUS_IN_PREBOOT,
18 CPU_BOOT_STATUS_IN_SPL,
19 CPU_BOOT_STATUS_IN_UBOOT,
20 CPU_BOOT_STATUS_DRAM_INIT_FAIL,
21 CPU_BOOT_STATUS_FIT_CORRUPTED,
22 CPU_BOOT_STATUS_UBOOT_NOT_READY,
23 CPU_BOOT_STATUS_RESERVED,
24 CPU_BOOT_STATUS_TS_INIT_FAIL,
27 enum kmd_msg {
28 KMD_MSG_NA = 0,
29 KMD_MSG_GOTO_WFE,
30 KMD_MSG_FIT_RDY
33 #endif /* HL_BOOT_IF_H */