diff options
Diffstat (limited to 'drivers/crypto/intel/qat/qat_common/adf_timer.h')
-rw-r--r-- | drivers/crypto/intel/qat/qat_common/adf_timer.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/drivers/crypto/intel/qat/qat_common/adf_timer.h b/drivers/crypto/intel/qat/qat_common/adf_timer.h new file mode 100644 index 000000000000..68e5136d6ba1 --- /dev/null +++ b/drivers/crypto/intel/qat/qat_common/adf_timer.h @@ -0,0 +1,21 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* Copyright(c) 2023 Intel Corporation */ + +#ifndef ADF_TIMER_H_ +#define ADF_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_timer_start(struct adf_accel_dev *accel_dev); +void adf_timer_stop(struct adf_accel_dev *accel_dev); + +#endif /* ADF_TIMER_H_ */ |