/********************************************************************************* * * Copyright (C) 2014 Hisilicon Technologies Co., Ltd. All rights reserved. * * This program is confidential and proprietary to Hisilicon Technologies Co., Ltd. * (Hisilicon), and may not be copied, reproduced, modified, disclosed to * others, published or used, in whole or in part, without the express prior * written permission of Hisilicon. * ***********************************************************************************/ /*******************************************************************************/ #ifndef __LOADERDB_H__ #define __LOADERDB_H__ #ifdef __cplusplus #if __cplusplus extern "C" { #endif #endif #define LOADER_INFOBASIC "loaderdb" typedef unsigned short HI_U16; typedef unsigned char HI_U8; typedef unsigned int HI_U32; typedef short HI_S16; typedef char HI_S8; typedef int HI_S32; typedef void HI_VOID; typedef unsigned int HI_HANDLE; typedef enum { HI_FALSE = 0, HI_TRUE = 1, } HI_BOOL; /*************************** Structure Definition ****************************/ /** \addtogroup H_2_2*/ /** @{ */ /** */ HI_U32 u32LowLO; /**< Low Local Oscillator Frequency, MHz *//***//**CNcomment:< 数据下载协议 0:TFTP, 1:FTP, 2 HTTP >*/ HI_IP_TYPE_E eIpType; /**< Used by the IP loader. IP obtaining mode.*//**CNcomment:< ip loader使用, ip获取类型*/ /*Configure the following parameters only when static IP addresses are used.*/ HI_IPAddr ipOurIp; /**< Used by the IP loader. Local IP address. *//**CNcomment:< ip loader使用, 本机ip*/ HI_IPAddr ipGateway; /**< Used by the IP loader. Gateway*//**CNcomment:< ip loader使用, 网关*/ HI_IPAddr ipSubnetMask; /**< Used by the IP loader. Subnet mask*//**CNcomment:< ip loader使用, 子网掩码*/ HI_IPAddr ipServer; /**< Used by the IP loader. Server IP address. *//**CNcomment:< ip loader使用, 服务器ip*/ HI_IPPort ipServerPort; /**< Used by the IP loader. Server port.*/ /**CNcomment:< ip loader使用, 服务器port*/ HI_S8 as8FileName[LOADER_FILE_NAME_LEN]; /***/ HI_S8 as8Password[LOADER_USER_NAME_LEN]; /***/ }HI_LOADER_IP_PARA_S; /**Define USB update parameter */ /**CNcomment:定义USB升级相关的参数*/ typedef struct tagUSBParam_S { HI_S8 as8FileName[LOADER_FILE_NAME_LEN]; } HI_LOADER_USB_PARAM_S; /** Data structure for defining upgrade parameters*/ /**CNcomment:定义升级参数数接口结构体*/ typedef struct hiLOADER_PARAMETER_S { /* Variable for the interaction between the application and loader */ HI_LOADER_TYPE_E eUpdateType; /**< Update type*//**