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