wmi_unified_dbr_api.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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 DBR component.
  20. */
  21. #ifndef _WMI_UNIFIED_DBR_API_H_
  22. #define _WMI_UNIFIED_DBR_API_H_
  23. #include "wmi_unified_dbr_param.h"
  24. /* Opaque handle of WMI structure */
  25. struct wmi_unified;
  26. typedef struct wmi_unified *wmi_unified_t;
  27. /**
  28. * wmi_unified_dbr_ring_cfg: Configure direct buffer rx rings
  29. * @wmi_hdl: WMI handle
  30. * @cfg: pointer to direct buffer rx config request
  31. *
  32. * Return: QDF status of operation
  33. */
  34. QDF_STATUS wmi_unified_dbr_ring_cfg(void *wmi_hdl,
  35. struct direct_buf_rx_cfg_req *cfg);
  36. /**
  37. * wmi_extract_dbr_buf_release_fixed : Extract direct buffer rx fixed param
  38. * from buffer release event
  39. * @wmi_hdl: WMI handle
  40. * @evt_buf: Event buffer
  41. * @param: Pointer to direct buffer rx response struct
  42. *
  43. * Return: QDF status of operation
  44. */
  45. QDF_STATUS wmi_extract_dbr_buf_release_fixed(
  46. void *wmi_hdl,
  47. uint8_t *evt_buf,
  48. struct direct_buf_rx_rsp *param);
  49. /**
  50. * wmi_extract_dbr_buf_release_entry: Extract direct buffer rx buffer tlv
  51. *
  52. * @wmi_hdl: WMI handle
  53. * @evt_buf: Event buffer
  54. * @idx: Index of the module for which capability is received
  55. * @param: Pointer to direct buffer rx entry
  56. *
  57. * Return: QDF status of operation
  58. */
  59. QDF_STATUS wmi_extract_dbr_buf_release_entry(
  60. void *wmi_hdl,
  61. uint8_t *evt_buf, uint8_t idx,
  62. struct direct_buf_rx_entry *param);
  63. /**
  64. * wmi_extract_dbr_buf_metadata: Extract direct buffer metadata
  65. *
  66. * @wmi_hdl: WMI handle
  67. * @evt_buf: Event buffer
  68. * @idx: Index of the module for which capability is received
  69. * @param: Pointer to direct buffer metadata
  70. *
  71. * Return: QDF status of operation
  72. */
  73. QDF_STATUS wmi_extract_dbr_buf_metadata(
  74. void *wmi_hdl,
  75. uint8_t *evt_buf, uint8_t idx,
  76. struct direct_buf_rx_metadata *param);
  77. #endif /* _WMI_UNIFIED_DBR_API_H_ */