halmac_fw_88xx.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /******************************************************************************
  2. *
  3. * Copyright(c) 2016 - 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_FW_88XX_H_
  16. #define _HALMAC_FW_88XX_H_
  17. #include "../halmac_api.h"
  18. #if HALMAC_88XX_SUPPORT
  19. #define HALMC_DDMA_POLLING_COUNT 1000
  20. enum halmac_ret_status
  21. download_firmware_88xx(struct halmac_adapter *adapter, u8 *fw_bin, u32 size);
  22. enum halmac_ret_status
  23. free_download_firmware_88xx(struct halmac_adapter *adapter,
  24. enum halmac_dlfw_mem mem_sel, u8 *fw_bin, u32 size);
  25. enum halmac_ret_status
  26. get_fw_version_88xx(struct halmac_adapter *adapter,
  27. struct halmac_fw_version *ver);
  28. enum halmac_ret_status
  29. check_fw_status_88xx(struct halmac_adapter *adapter, u8 *fw_status);
  30. enum halmac_ret_status
  31. dump_fw_dmem_88xx(struct halmac_adapter *adapter, u8 *dmem, u32 *size);
  32. enum halmac_ret_status
  33. cfg_max_dl_size_88xx(struct halmac_adapter *adapter, u32 size);
  34. enum halmac_ret_status
  35. enter_cpu_sleep_mode_88xx(struct halmac_adapter *adapter);
  36. enum halmac_ret_status
  37. get_cpu_mode_88xx(struct halmac_adapter *adapter,
  38. enum halmac_wlcpu_mode *mode);
  39. enum halmac_ret_status
  40. send_general_info_88xx(struct halmac_adapter *adapter,
  41. struct halmac_general_info *info);
  42. enum halmac_ret_status
  43. drv_fwctrl_88xx(struct halmac_adapter *adapter, u8 *payload, u32 size, u8 ack);
  44. #endif /* HALMAC_88XX_SUPPORT */
  45. #endif/* _HALMAC_FW_88XX_H_ */