Linux-6.18.2/drivers/crypto/intel/qat/qat_common/adf_timer.h
2025-12-23 20:06:59 +08:00

22 lines
455 B
C

/* 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_ */