venus_hfi_response.h 829 B

12345678910111213141516171819202122232425
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2020-2021,, The Linux Foundation. All rights reserved.
  4. */
  5. #ifndef __VENUS_HFI_RESPONSE_H__
  6. #define __VENUS_HFI_RESPONSE_H__
  7. #include "hfi_packet.h"
  8. int handle_response(struct msm_vidc_core *core,
  9. void *response);
  10. int validate_packet(u8 *response_pkt, u8 *core_resp_pkt,
  11. u32 core_resp_pkt_size, const char *func);
  12. bool is_valid_port(struct msm_vidc_inst *inst, u32 port,
  13. const char *func);
  14. bool is_valid_hfi_buffer_type(struct msm_vidc_inst *inst,
  15. u32 buffer_type, const char *func);
  16. void handle_session_response_work_handler(struct work_struct *work);
  17. int handle_session_response_work(struct msm_vidc_inst *inst,
  18. struct response_work *work);
  19. int handle_system_error(struct msm_vidc_core *core,
  20. struct hfi_packet *pkt);
  21. #endif // __VENUS_HFI_RESPONSE_H__