1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * Copyright (C) 2020-2023 Intel Corporation
4  */
5 
6 #ifndef __IVPU_JSM_MSG_H__
7 #define __IVPU_JSM_MSG_H__
8 
9 #include "vpu_jsm_api.h"
10 
11 int ivpu_jsm_register_db(struct ivpu_device *vdev, u32 ctx_id, u32 db_id,
12 			 u64 jobq_base, u32 jobq_size);
13 int ivpu_jsm_unregister_db(struct ivpu_device *vdev, u32 db_id);
14 int ivpu_jsm_get_heartbeat(struct ivpu_device *vdev, u32 engine, u64 *heartbeat);
15 int ivpu_jsm_reset_engine(struct ivpu_device *vdev, u32 engine);
16 int ivpu_jsm_preempt_engine(struct ivpu_device *vdev, u32 engine, u32 preempt_id);
17 int ivpu_jsm_dyndbg_control(struct ivpu_device *vdev, char *command, size_t size);
18 int ivpu_jsm_trace_get_capability(struct ivpu_device *vdev, u32 *trace_destination_mask,
19 				  u64 *trace_hw_component_mask);
20 int ivpu_jsm_trace_set_config(struct ivpu_device *vdev, u32 trace_level, u32 trace_destination_mask,
21 			      u64 trace_hw_component_mask);
22 int ivpu_jsm_context_release(struct ivpu_device *vdev, u32 host_ssid);
23 #endif
24