wmi_unified_concurrency_api.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /*
  2. * Copyright (c) 2013-2018 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. * DOC: Implement API's specific to concurrency component.
  20. */
  21. #ifndef _WMI_UNIFIED_CONCURRENCY_API_H_
  22. #define _WMI_UNIFIED_CONCURRENCY_API_H_
  23. /**
  24. * wmi_unified_set_mcc_channel_time_quota_cmd() - set MCC channel time quota
  25. * @wmi: wmi handle
  26. * @adapter_1_chan_number: adapter 1 channel number
  27. * @adapter_1_quota: adapter 1 quota
  28. * @adapter_2_chan_number: adapter 2 channel number
  29. *
  30. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  31. */
  32. QDF_STATUS wmi_unified_set_mcc_channel_time_quota_cmd
  33. (void *wmi_hdl,
  34. uint32_t adapter_1_chan_freq,
  35. uint32_t adapter_1_quota, uint32_t adapter_2_chan_freq);
  36. /**
  37. * wmi_unified_set_mcc_channel_time_latency_cmd() - set MCC channel time latency
  38. * @wmi: wmi handle
  39. * @mcc_channel: mcc channel
  40. * @mcc_channel_time_latency: MCC channel time latency.
  41. *
  42. * Currently used to set time latency for an MCC vdev/adapter using operating
  43. * channel of it and channel number. The info is provided run time using
  44. * iwpriv command: iwpriv <wlan0 | p2p0> setMccLatency <latency in ms>.
  45. *
  46. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  47. */
  48. QDF_STATUS wmi_unified_set_mcc_channel_time_latency_cmd
  49. (void *wmi_hdl,
  50. uint32_t mcc_channel_freq, uint32_t mcc_channel_time_latency);
  51. /**
  52. * wmi_unified_set_enable_disable_mcc_adaptive_scheduler_cmd() - control mcc
  53. * scheduler
  54. * @wmi_handle: wmi handle
  55. * @mcc_adaptive_scheduler: enable/disable
  56. *
  57. * This function enable/disable mcc adaptive scheduler in fw.
  58. *
  59. * Return: QDF_STATUS_SUCCESS for success or error code
  60. */
  61. QDF_STATUS wmi_unified_set_enable_disable_mcc_adaptive_scheduler_cmd(
  62. void *wmi_hdl, uint32_t mcc_adaptive_scheduler,
  63. uint32_t pdev_id);
  64. #endif /* _WMI_UNIFIED_CONCURRENCY_API_H_ */