hal_li_reo.h 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /*
  2. * Copyright (c) 2017-2019, 2021 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. #ifndef _HAL_LI_REO_H_
  19. #define _HAL_LI_REO_H_
  20. #include "hal_rx.h"
  21. #include "hal_reo.h"
  22. #define HAL_REO_QUEUE_EXT_DESC 9
  23. /* Proto-types */
  24. void hal_get_ba_aging_timeout_li(hal_soc_handle_t hal_soc_hdl, uint8_t ac,
  25. uint32_t *value);
  26. void hal_set_ba_aging_timeout_li(hal_soc_handle_t hal_soc_hdl, uint8_t ac,
  27. uint32_t value);
  28. uint32_t hal_get_reo_reg_base_offset_li(void);
  29. int hal_reo_send_cmd_li(hal_soc_handle_t hal_soc_hdl,
  30. hal_ring_handle_t hal_ring_hdl,
  31. enum hal_reo_cmd_type cmd,
  32. void *params);
  33. /* REO status ring routines */
  34. void
  35. hal_reo_queue_stats_status_li(hal_ring_desc_t ring_desc,
  36. void *st_handle,
  37. hal_soc_handle_t hal_soc_hdl);
  38. void
  39. hal_reo_flush_queue_status_li(hal_ring_desc_t ring_desc,
  40. void *st_handle,
  41. hal_soc_handle_t hal_soc_hdl);
  42. void
  43. hal_reo_flush_cache_status_li(hal_ring_desc_t ring_desc,
  44. void *st_handle,
  45. hal_soc_handle_t hal_soc_hdl);
  46. void
  47. hal_reo_unblock_cache_status_li(hal_ring_desc_t ring_desc,
  48. hal_soc_handle_t hal_soc_hdl,
  49. void *st_handle);
  50. void hal_reo_flush_timeout_list_status_li(hal_ring_desc_t ring_desc,
  51. void *st_handle,
  52. hal_soc_handle_t hal_soc_hdl);
  53. void hal_reo_desc_thres_reached_status_li(hal_ring_desc_t ring_desc,
  54. void *st_handle,
  55. hal_soc_handle_t hal_soc_hdl);
  56. void
  57. hal_reo_rx_update_queue_status_li(hal_ring_desc_t ring_desc,
  58. void *st_handle,
  59. hal_soc_handle_t hal_soc_hdl);
  60. /**
  61. * hal_reo_init_cmd_ring_li() - Initialize descriptors of REO command SRNG
  62. * with command number
  63. * @hal_soc: Handle to HAL SoC structure
  64. * @hal_ring: Handle to HAL SRNG structure
  65. *
  66. * Return: none
  67. */
  68. void hal_reo_init_cmd_ring_li(hal_soc_handle_t hal_soc_hdl,
  69. hal_ring_handle_t hal_ring_hdl);
  70. uint8_t hal_get_tlv_hdr_size_li(void);
  71. #endif /* _HAL_LI_REO_H_ */