mirror of
https://gitee.com/Vancouver2017/luban-lite.git
synced 2025-12-25 05:28:55 +00:00
40 lines
1.2 KiB
C
40 lines
1.2 KiB
C
/**************************************************************************************************************
|
|
* altobeam RTOS
|
|
*
|
|
* Copyright (c) 2018, altobeam.inc All rights reserved.
|
|
*
|
|
* The source code contains proprietary information of AltoBeam, and shall not be distributed,
|
|
* copied, reproduced, or disclosed in whole or in part without prior written permission of AltoBeam.
|
|
*****************************************************************************************************************/
|
|
|
|
|
|
#ifndef ATBM_USB_FWIO_H
|
|
#define ATBM_USB_FWIO_H
|
|
|
|
#define ALTOBEAM_WIFI_HDR_FLAG_V2 (0x34353678)
|
|
|
|
struct firmware_headr {
|
|
atbm_uint32 flags; /*0x34353677*/
|
|
atbm_uint32 version;
|
|
atbm_uint32 iccm_len;
|
|
atbm_uint32 dccm_len;
|
|
atbm_uint32 sram_len;
|
|
atbm_uint32 sram_addr;
|
|
atbm_uint32 reserve[1];
|
|
atbm_uint16 reserve2;
|
|
atbm_uint16 checksum;
|
|
};
|
|
struct firmware_altobeam {
|
|
struct firmware_headr hdr;
|
|
atbm_uint8 *fw_iccm;
|
|
atbm_uint8 *fw_dccm;
|
|
atbm_uint8 *fw_sram;
|
|
};
|
|
#define FIRMWARE_DEFAULT_PATH "fw.bin"
|
|
int atbm_init_firmware(atbm_void) ;
|
|
int atbm_load_firmware(struct atbmwifi_common *hw_priv);
|
|
atbm_void atbm_release_firmware(atbm_void) ;
|
|
|
|
#endif //ATBM_USB_FWIO_H
|
|
|