halmac_flash_88xx.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /******************************************************************************
  2. *
  3. * Copyright(c) 2017 - 2018 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. #ifndef _HALMAC_FLASH_88XX_H_
  16. #define _HALMAC_FLASH_88XX_H_
  17. #include "../halmac_api.h"
  18. #if HALMAC_88XX_SUPPORT
  19. enum halmac_ret_status
  20. download_flash_88xx(struct halmac_adapter *adapter, u8 *fw_bin, u32 size,
  21. u32 rom_addr);
  22. enum halmac_ret_status
  23. read_flash_88xx(struct halmac_adapter *adapter, u32 addr, u32 length);
  24. enum halmac_ret_status
  25. erase_flash_88xx(struct halmac_adapter *adapter, u8 erase_cmd, u32 addr);
  26. enum halmac_ret_status
  27. check_flash_88xx(struct halmac_adapter *adapter, u8 *fw_bin, u32 size,
  28. u32 addr);
  29. #endif /* HALMAC_88XX_SUPPORT */
  30. #endif/* _HALMAC_FLASH_88XX_H_ */