wmi_unified_concurrency_api.c 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. * Copyright (c) 2013-2019 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. #include <wmi_unified_priv.h>
  22. #include <wmi_unified_concurrency_api.h>
  23. QDF_STATUS wmi_unified_set_enable_disable_mcc_adaptive_scheduler_cmd(
  24. wmi_unified_t wmi_handle, uint32_t mcc_adaptive_scheduler,
  25. uint32_t pdev_id)
  26. {
  27. if (wmi_handle->ops->send_set_enable_disable_mcc_adaptive_scheduler_cmd)
  28. return wmi_handle->ops->send_set_enable_disable_mcc_adaptive_scheduler_cmd(wmi_handle,
  29. mcc_adaptive_scheduler, pdev_id);
  30. return QDF_STATUS_E_FAILURE;
  31. }
  32. QDF_STATUS wmi_unified_set_mcc_channel_time_latency_cmd(
  33. wmi_unified_t wmi_handle,
  34. uint32_t mcc_channel_freq, uint32_t mcc_channel_time_latency)
  35. {
  36. if (wmi_handle->ops->send_set_mcc_channel_time_latency_cmd)
  37. return wmi_handle->ops->send_set_mcc_channel_time_latency_cmd(wmi_handle,
  38. mcc_channel_freq,
  39. mcc_channel_time_latency);
  40. return QDF_STATUS_E_FAILURE;
  41. }
  42. QDF_STATUS wmi_unified_set_mcc_channel_time_quota_cmd(
  43. wmi_unified_t wmi_handle,
  44. uint32_t adapter_1_chan_freq,
  45. uint32_t adapter_1_quota, uint32_t adapter_2_chan_freq)
  46. {
  47. if (wmi_handle->ops->send_set_mcc_channel_time_quota_cmd)
  48. return wmi_handle->ops->send_set_mcc_channel_time_quota_cmd(wmi_handle,
  49. adapter_1_chan_freq,
  50. adapter_1_quota,
  51. adapter_2_chan_freq);
  52. return QDF_STATUS_E_FAILURE;
  53. }