wlan_ipa_public_struct.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. /*
  2. * Copyright (c) 2018-2020 The Linux Foundation. All rights reserved.
  3. * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
  4. *
  5. * Permission to use, copy, modify, and/or distribute this software for
  6. * any purpose with or without fee is hereby granted, provided that the
  7. * above copyright notice and this permission notice appear in all
  8. * copies.
  9. *
  10. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  11. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  12. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  13. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  14. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  15. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  16. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  17. * PERFORMANCE OF THIS SOFTWARE.
  18. */
  19. /*
  20. * DOC: contains ipa public structure definitions
  21. */
  22. #ifndef _WLAN_IPA_PUBLIC_STRUCT_H_
  23. #define _WLAN_IPA_PUBLIC_STRUCT_H_
  24. #include <wlan_cmn.h>
  25. #include <qdf_status.h>
  26. #include <wlan_objmgr_psoc_obj.h>
  27. /**
  28. * struct wlan_ipa_config
  29. * @ipa_config: IPA config
  30. * @desc_size: IPA descriptor size
  31. * @txbuf_count: TX buffer count
  32. * @bus_bw_high: Bus bandwidth high threshold
  33. * @bus_bw_medium: Bus bandwidth medium threshold
  34. * @bus_bw_low: Bus bandwidth low threshold
  35. * @ipa_bw_high: IPA bandwidth high threshold
  36. * @ipa_bw_medium: IPA bandwidth medium threshold
  37. * @ipa_bw_low: IPA bandwidth low threshold
  38. * @ipa_force_voting: support force bw voting
  39. * @ipa_wds: WDS support for IPA
  40. */
  41. struct wlan_ipa_config {
  42. uint32_t ipa_config;
  43. uint32_t desc_size;
  44. uint32_t txbuf_count;
  45. uint32_t bus_bw_high;
  46. uint32_t bus_bw_medium;
  47. uint32_t bus_bw_low;
  48. uint32_t ipa_bw_high;
  49. uint32_t ipa_bw_medium;
  50. uint32_t ipa_bw_low;
  51. bool ipa_force_voting;
  52. bool ipa_wds;
  53. };
  54. /**
  55. * enum wlan_ipa_wlan_event - WLAN IPA events
  56. * @WLAN_IPA_CLIENT_CONNECT: Client Connects
  57. * @WLAN_IPA_CLIENT_DISCONNECT: Client Disconnects
  58. * @WLAN_IPA_AP_CONNECT: SoftAP is started
  59. * @WLAN_IPA_AP_DISCONNECT: SoftAP is stopped
  60. * @WLAN_IPA_STA_CONNECT: STA associates to AP
  61. * @WLAN_IPA_STA_DISCONNECT: STA dissociates from AP
  62. * @WLAN_IPA_CLIENT_CONNECT_EX: Peer associates/re-associates to softap
  63. * @WLAN_IPA_WLAN_EVENT_MAX: Max value for the enum
  64. */
  65. enum wlan_ipa_wlan_event {
  66. WLAN_IPA_CLIENT_CONNECT,
  67. WLAN_IPA_CLIENT_DISCONNECT,
  68. WLAN_IPA_AP_CONNECT,
  69. WLAN_IPA_AP_DISCONNECT,
  70. WLAN_IPA_STA_CONNECT,
  71. WLAN_IPA_STA_DISCONNECT,
  72. WLAN_IPA_CLIENT_CONNECT_EX,
  73. WLAN_IPA_WLAN_EVENT_MAX
  74. };
  75. /**
  76. * struct ipa_uc_offload_control_params - ipa offload control params
  77. * @offload_type: ipa offload type
  78. * @vdev_id: vdev id
  79. * @enable: ipa offload enable/disable
  80. */
  81. struct ipa_uc_offload_control_params {
  82. uint32_t offload_type;
  83. uint32_t vdev_id;
  84. uint32_t enable;
  85. };
  86. /**
  87. * struct ipa_intrabss_control_params - ipa intrabss control params
  88. * @vdev_id: vdev id
  89. * @enable: ipa intrabss enable/disable
  90. */
  91. struct ipa_intrabss_control_params {
  92. uint32_t vdev_id;
  93. uint32_t enable;
  94. };
  95. #endif /* end of _WLAN_IPA_PUBLIC_STRUCT_H_ */