bmi.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. * Copyright (c) 2013-2017 The Linux Foundation. All rights reserved.
  3. *
  4. * Permission to use, copy, modify, and/or distribute this software for
  5. * any purpose with or without fee is hereby granted, provided that the
  6. * above copyright notice and this permission notice appear in all
  7. * copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  10. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  11. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  12. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  13. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  14. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  15. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  16. * PERFORMANCE OF THIS SOFTWARE.
  17. */
  18. /* ================================================================ */
  19. /* BMI declarations and prototypes */
  20. /* */
  21. /* ================================================================= */
  22. #ifndef _BMI_H_
  23. #define _BMI_H_
  24. #include "bmi_msg.h"
  25. #include "qdf_trace.h"
  26. #include "ol_if_athvar.h"
  27. #include "hif.h"
  28. struct ol_context;
  29. QDF_STATUS ol_cds_init(qdf_device_t qdf_dev, void *hif_ctx);
  30. void ol_cds_free(void);
  31. /**
  32. * struct hif_config_info - Place Holder for hif confiruation
  33. * @enable_uart_print: UART Print
  34. * @enable_self_recovery: Self Recovery
  35. * @enable_fw_log: To Enable FW LOG
  36. * @enable_lpass_support: LPASS support
  37. * @enable_ramdump_collection: Ramdump Collection
  38. *
  39. * Structure for holding ini parameters.
  40. */
  41. struct ol_config_info {
  42. bool enable_uart_print;
  43. bool enable_self_recovery;
  44. uint8_t enable_fw_log;
  45. bool enable_lpass_support;
  46. bool enable_ramdump_collection;
  47. };
  48. void ol_init_ini_config(struct ol_context *ol_ctx,
  49. struct ol_config_info *cfg);
  50. void bmi_cleanup(struct ol_context *scn);
  51. QDF_STATUS bmi_done(struct ol_context *ol_ctx);
  52. void bmi_target_ready(struct hif_opaque_softc *scn, void *cfg_ctx);
  53. QDF_STATUS bmi_download_firmware(struct ol_context *ol_ctx);
  54. #endif /* _BMI_H_ */