venus_hfi_response.h 715 B

1234567891011121314151617181920212223
  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. int handle_system_error(struct msm_vidc_core *core,
  17. struct hfi_packet *pkt);
  18. void fw_coredump(struct msm_vidc_core *core);
  19. #endif // __VENUS_HFI_RESPONSE_H__