wmi_unified_dcs_api.h 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /*
  2. * Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
  3. * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
  4. *
  5. * Permission to use, copy, modify, and/or distribute this software for any
  6. * purpose with or without fee is hereby granted, provided that the above
  7. * copyright notice and this permission notice appear in all copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  10. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  11. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  12. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  13. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  14. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  15. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  16. */
  17. /**
  18. * DOC: This file contains the API definitions for the Unified Wireless Module
  19. * Interface (WMI) which are specific to DFS module.
  20. */
  21. #ifndef _WMI_UNIFIED_DCS_API_H_
  22. #define _WMI_UNIFIED_DCS_API_H_
  23. #include <qdf_status.h>
  24. #include <wmi_unified_api.h>
  25. #include <wmi_unified_priv.h>
  26. #include <wlan_objmgr_vdev_obj.h>
  27. /**
  28. * wmi_extract_dcs_interference_type() - extract dcs interference type
  29. * @wmi_hdl: wmi handle
  30. * @evt_buf: pointer to event buffer
  31. * @param: Pointer to hold dcs interference param
  32. *
  33. * This function gets called to extract dcs interference type from dcs FW event
  34. *
  35. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  36. */
  37. QDF_STATUS wmi_extract_dcs_interference_type(
  38. void *wmi_hdl,
  39. void *evt_buf,
  40. struct wlan_host_dcs_interference_param *param);
  41. /**
  42. * wmi_extract_dcs_im_tgt_stats() - extract dcs im target stats
  43. * @wmi_hdl: wmi handle
  44. * @evt_buf: pointer to event buffer
  45. * @wlan_stat: Pointer to hold wlan stats
  46. *
  47. * This function gets called to extract dcs im target stats from event
  48. *
  49. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  50. */
  51. QDF_STATUS wmi_extract_dcs_im_tgt_stats(
  52. void *wmi_hdl,
  53. void *evt_buf,
  54. struct wlan_host_dcs_im_tgt_stats *wlan_stat);
  55. /**
  56. * wmi_extract_dcs_awgn_info() - extract DCS AWGN interference info from event
  57. * @wmi_hdl: WMI handle
  58. * @evt_buf: Pointer to event buffer
  59. * @awgn_info: Pointer to hold AWGN interference info
  60. *
  61. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  62. */
  63. QDF_STATUS
  64. wmi_extract_dcs_awgn_info(wmi_unified_t wmi_hdl, void *evt_buf,
  65. struct wlan_host_dcs_awgn_info *awgn_info);
  66. /**
  67. * wmi_send_dcs_pdev_param() - send dcs pdev param
  68. * @wmi_handle: wmi handle
  69. * @pdev_idx: pdev id
  70. * @is_host_pdev_id: host pdev_id or not
  71. * @dcs_enable: value of dcs enable
  72. *
  73. * This functions gets called to send dcs pdev param
  74. *
  75. * Return: QDF_STATUS
  76. */
  77. QDF_STATUS wmi_send_dcs_pdev_param(wmi_unified_t wmi_handle,
  78. uint32_t pdev_idx,
  79. bool is_host_pdev_id,
  80. uint32_t dcs_enable);
  81. #endif /* _WMI_UNIFIED_DCS_API_H_ */