xref: /linux/drivers/media/platform/amphion/vpu_cmds.h (revision dec1c62e91ba268ab2a6e339d4d7a59287d5eba1)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Copyright 2020-2021 NXP
4  */
5 
6 #ifndef _AMPHION_VPU_CMDS_H
7 #define _AMPHION_VPU_CMDS_H
8 
9 int vpu_session_configure_codec(struct vpu_inst *inst);
10 int vpu_session_start(struct vpu_inst *inst);
11 int vpu_session_stop(struct vpu_inst *inst);
12 int vpu_session_abort(struct vpu_inst *inst);
13 int vpu_session_rst_buf(struct vpu_inst *inst);
14 int vpu_session_encode_frame(struct vpu_inst *inst, s64 timestamp);
15 int vpu_session_alloc_fs(struct vpu_inst *inst, struct vpu_fs_info *fs);
16 int vpu_session_release_fs(struct vpu_inst *inst, struct vpu_fs_info *fs);
17 int vpu_session_fill_timestamp(struct vpu_inst *inst, struct vpu_ts_info *info);
18 int vpu_session_update_parameters(struct vpu_inst *inst, void *arg);
19 int vpu_core_snapshot(struct vpu_core *core);
20 int vpu_core_sw_reset(struct vpu_core *core);
21 int vpu_response_cmd(struct vpu_inst *inst, u32 response, u32 handled);
22 void vpu_clear_request(struct vpu_inst *inst);
23 int vpu_session_debug(struct vpu_inst *inst);
24 
25 #endif
26