venus_hfi_response.h 720 B

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