1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* Copyright(c) 2023 Intel Corporation */
3 
4 #ifndef ADF_GEN4_TIMER_H_
5 #define ADF_GEN4_TIMER_H_
6 
7 #include <linux/ktime.h>
8 #include <linux/workqueue.h>
9 
10 struct adf_accel_dev;
11 
12 struct adf_timer {
13 	struct adf_accel_dev *accel_dev;
14 	struct delayed_work work_ctx;
15 	ktime_t initial_ktime;
16 };
17 
18 int adf_gen4_timer_start(struct adf_accel_dev *accel_dev);
19 void adf_gen4_timer_stop(struct adf_accel_dev *accel_dev);
20 
21 #endif /* ADF_GEN4_TIMER_H_ */
22