1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * Copyright (c) 2022-2024 Qualcomm Innovation Center, Inc. All rights reserved.
4  */
5 
6 #ifndef __IRIS_VPU_COMMON_H__
7 #define __IRIS_VPU_COMMON_H__
8 
9 struct iris_core;
10 
11 extern const struct vpu_ops iris_vpu2_ops;
12 extern const struct vpu_ops iris_vpu3_ops;
13 
14 struct vpu_ops {
15 	void (*power_off_hw)(struct iris_core *core);
16 	u64 (*calc_freq)(struct iris_inst *inst, size_t data_size);
17 };
18 
19 int iris_vpu_boot_firmware(struct iris_core *core);
20 void iris_vpu_raise_interrupt(struct iris_core *core);
21 void iris_vpu_clear_interrupt(struct iris_core *core);
22 int iris_vpu_watchdog(struct iris_core *core, u32 intr_status);
23 int iris_vpu_prepare_pc(struct iris_core *core);
24 int iris_vpu_power_on(struct iris_core *core);
25 void iris_vpu_power_off_hw(struct iris_core *core);
26 void iris_vpu_power_off(struct iris_core *core);
27 
28 #endif
29