linux/drivers/crypto/intel/qat/qat_common/adf_timer.h
George Abraham P b8ca438062 crypto: qat - rename and relocate timer logic
Rename adf_gen4_timer.c to adf_timer.c and adf_gen4_timer.h to
adf_timer.h to make the files generation-agnostic. This includes
renaming the start() and stop() timer APIs and macro definitions
to be generic, allowing for reuse across different device
generations.
This does not introduce any functional changes.

Signed-off-by: George Abraham P <george.abraham.p@intel.com>
Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2025-05-05 18:20:44 +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_ */