/* * Copyright (c) Hisilicon Technologies Co., Ltd. 2020-2021. All rights reserved. * Description: API declaration of loader. * Author: Hisilicon * Created: 2020-04-01 */ #ifndef __LOADER_H__ #define __LOADER_H__ #include "td_type.h" #ifdef __cplusplus #if __cplusplus extern "C" { #endif /* __cplusplus */ #endif /* __cplusplus */ typedef enum { LOADER_BARE_BURN = 0x0, LOADER_EMPTY_BURN, LOADER_BURN_MAX, } loader_burn_type; /* Check the upgrade file that is used and ui init only in the dongle. */ td_s32 loader_base_init(loader_burn_type type); /* Upgrade Entry. must be init before calling * return: return upgrade_status, use to deinit upgrade status display. */ td_s32 loader_mandatory_upgrade(td_void); /* ui Resource release and upgrade exit * upgrade_status: TD_SUCCESS, TD_FAILURE, OSAL_ERR_LOADER_NOT_FOUND_USB_FILE, * OSAL_ERR_LOADER_INVALID_DATA,OSAL_ERR_LOADER_DOWNLOAD_ERROR */ td_s32 loader_base_deinit(td_s32 upgrade_status); #ifdef __cplusplus #if __cplusplus } #endif /* __cplusplus */ #endif /* __cplusplus */ #endif /* __LOADER_H__ */