1 /****************************************************************************** 2 * 3 * Copyright(c) 2017 - 2019 Realtek Corporation. All rights reserved. 4 * 5 * This program is free software; you can redistribute it and/or modify it 6 * under the terms of version 2 of the GNU General Public License as 7 * published by the Free Software Foundation. 8 * 9 * This program is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 12 * more details. 13 * 14 ******************************************************************************/ 15 16 #ifndef _HALMAC_FLASH_88XX_H_ 17 #define _HALMAC_FLASH_88XX_H_ 18 19 #include "../halmac_api.h" 20 21 #if HALMAC_88XX_SUPPORT 22 23 enum halmac_ret_status 24 download_flash_88xx(struct halmac_adapter *adapter, u8 *fw_bin, u32 size, 25 u32 rom_addr); 26 27 enum halmac_ret_status 28 read_flash_88xx(struct halmac_adapter *adapter, u32 addr, u32 length, u8 *data); 29 30 enum halmac_ret_status 31 erase_flash_88xx(struct halmac_adapter *adapter, u8 erase_cmd, u32 addr); 32 33 enum halmac_ret_status 34 check_flash_88xx(struct halmac_adapter *adapter, u8 *fw_bin, u32 size, 35 u32 addr); 36 37 #endif /* HALMAC_88XX_SUPPORT */ 38 39 #endif/* _HALMAC_FLASH_88XX_H_ */ 40