hal_be_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_REO_BE_H_
  19. #define _HAL_REO_BE_H_
  20. #include "hal_be_hw_headers.h"
  21. #include "hal_rx.h"
  22. #include "hal_reo.h"
  23. #define HAL_REO_QUEUE_EXT_DESC 10
  24. /* Proto-types */
  25. void hal_get_ba_aging_timeout_be(hal_soc_handle_t hal_soc_hdl, uint8_t ac,
  26. uint32_t *value);
  27. void hal_set_ba_aging_timeout_be(hal_soc_handle_t hal_soc_hdl, uint8_t ac,
  28. uint32_t value);
  29. uint32_t hal_get_reo_reg_base_offset_be(void);
  30. int hal_reo_send_cmd_be(hal_soc_handle_t hal_soc_hdl,
  31. hal_ring_handle_t hal_ring_hdl,
  32. enum hal_reo_cmd_type cmd,
  33. void *params);
  34. /* REO status ring routines */
  35. void
  36. hal_reo_queue_stats_status_be(hal_ring_desc_t ring_desc,
  37. void *st_handle,
  38. hal_soc_handle_t hal_soc_hdl);
  39. void
  40. hal_reo_flush_queue_status_be(hal_ring_desc_t ring_desc,
  41. void *st_handle,
  42. hal_soc_handle_t hal_soc_hdl);
  43. void
  44. hal_reo_flush_cache_status_be(hal_ring_desc_t ring_desc,
  45. void *st_handle,
  46. hal_soc_handle_t hal_soc_hdl);
  47. void
  48. hal_reo_unblock_cache_status_be(hal_ring_desc_t ring_desc,
  49. hal_soc_handle_t hal_soc_hdl,
  50. void *st_handle);
  51. void hal_reo_flush_timeout_list_status_be(hal_ring_desc_t ring_desc,
  52. void *st_handle,
  53. hal_soc_handle_t hal_soc_hdl);
  54. void hal_reo_desc_thres_reached_status_be(hal_ring_desc_t ring_desc,
  55. void *st_handle,
  56. hal_soc_handle_t hal_soc_hdl);
  57. void
  58. hal_reo_rx_update_queue_status_be(hal_ring_desc_t ring_desc,
  59. void *st_handle,
  60. hal_soc_handle_t hal_soc_hdl);
  61. /**
  62. * hal_reo_init_cmd_ring_be() - Initialize descriptors of REO command SRNG
  63. * with command number
  64. * @hal_soc: Handle to HAL SoC structure
  65. * @hal_ring: Handle to HAL SRNG structure
  66. *
  67. * Return: none
  68. */
  69. void hal_reo_init_cmd_ring_be(hal_soc_handle_t hal_soc_hdl,
  70. hal_ring_handle_t hal_ring_hdl);
  71. uint8_t hal_get_tlv_hdr_size_be(void);
  72. #endif /* _HAL_REO_BE_H_ */