venus_hfi_response.h 862 B

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