dp_rh_htt.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * Copyright (c) 2023 Qualcomm Innovation Center, Inc. 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. #ifndef __DP_RH_HTT_H
  19. #define __DP_RH_HTT_H
  20. #include <htt.h>
  21. #include "dp_types.h"
  22. #include "dp_internal.h"
  23. #include "dp_htt.h"
  24. #include "qdf_mem.h"
  25. #include "cdp_txrx_cmn_struct.h"
  26. /* sizeof(struct htt_t2h_soft_umac_tx_compl_ind) */
  27. #define HTT_SOFT_UMAC_TX_COMPL_IND_SIZE (1 * 4) //in bytes
  28. /* sizeof(struct htt_t2h_tx_msdu_info) */
  29. #define HTT_TX_MSDU_INFO_SIZE (8 * 4) //in bytes
  30. /*
  31. * dp_htt_h2t_rx_ring_rfs_cfg() - RFS config for RX DATA indication
  32. * @htt_soc: Opaque htt SOC handle
  33. *
  34. * Return: QDF_STATUS success or failure
  35. */
  36. QDF_STATUS dp_htt_h2t_rx_ring_rfs_cfg(struct htt_soc *soc);
  37. /*
  38. * dp_htt_soc_initialize_rh() - SOC level HTT initialization
  39. * @htt_soc: Opaque htt SOC handle
  40. * @ctrl_psoc: Opaque ctrl SOC handle
  41. * @htc_soc: SOC level HTC handle
  42. * @hal_soc: Opaque HAL SOC handle
  43. * @osdev: QDF device
  44. *
  45. * Return: HTT handle on success; NULL on failure
  46. */
  47. void *
  48. dp_htt_soc_initialize_rh(struct htt_soc *htt_soc,
  49. struct cdp_ctrl_objmgr_psoc *ctrl_psoc,
  50. HTC_HANDLE htc_soc,
  51. hal_soc_handle_t hal_soc_hdl, qdf_device_t osdev);
  52. #endif