Files
luban-lite/bsp/peripheral/wireless/atbm603x/hal/usb/atbm_usb_fwio.h
刘可亮 8bca5e8332 v1.0.4
2024-04-03 16:40:57 +08:00

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