Move the function get_service_enabled() from adf_4xxx_hw_data.c to adf_cfg_services.c and rename it as adf_get_service_enabled(). This function is not specific to the 4xxx and will be used by other QAT drivers. This does not introduce any functional change. Signed-off-by: Jie Wang <jie.wang@intel.com> Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
28 lines
475 B
C
28 lines
475 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/* Copyright(c) 2023 Intel Corporation */
|
|
#ifndef _ADF_CFG_SERVICES_H_
|
|
#define _ADF_CFG_SERVICES_H_
|
|
|
|
#include "adf_cfg_strings.h"
|
|
|
|
struct adf_accel_dev;
|
|
|
|
enum adf_services {
|
|
SVC_CY = 0,
|
|
SVC_CY2,
|
|
SVC_DC,
|
|
SVC_DCC,
|
|
SVC_SYM,
|
|
SVC_ASYM,
|
|
SVC_DC_ASYM,
|
|
SVC_ASYM_DC,
|
|
SVC_DC_SYM,
|
|
SVC_SYM_DC,
|
|
SVC_COUNT
|
|
};
|
|
|
|
extern const char *const adf_cfg_services[SVC_COUNT];
|
|
|
|
int adf_get_service_enabled(struct adf_accel_dev *accel_dev);
|
|
|
|
#endif
|