mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04:00
Add wireless mode support for QAT GEN6 devices. When the WCP_WAT fuse bit is clear, the device operates in wireless cipher mode (wcy_mode). In this mode all accelerator engines load the wireless firmware and service configuration via 'cfg_services' sysfs attribute is restricted to 'sym' only. The get_accel_cap() function is extended to report wireless-specific capabilities (ZUC, ZUC-256, 5G, extended algorithm chaining) gated by their respective slice-disable fuse bits. The set_ssm_wdtimer() function is updated to configure WCP (wireless cipher) and WAT (wireless authentication) watchdog timers. The adf_gen6_cfg_dev_init() function is updated to use adf_6xxx_is_wcy() to enforce sym-only service selection for WCY devices during initialization. Co-developed-by: Aviraj Cj <aviraj.cj@intel.com> Signed-off-by: Aviraj Cj <aviraj.cj@intel.com> Signed-off-by: George Abraham P <george.abraham.p@intel.com> Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 lines
577 B
C
17 lines
577 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/* Copyright(c) 2025 Intel Corporation */
|
|
#ifndef ADF_GEN6_SHARED_H_
|
|
#define ADF_GEN6_SHARED_H_
|
|
|
|
struct adf_hw_csr_ops;
|
|
struct qat_migdev_ops;
|
|
struct adf_accel_dev;
|
|
struct adf_pfvf_ops;
|
|
|
|
void adf_gen6_init_pf_pfvf_ops(struct adf_pfvf_ops *pfvf_ops);
|
|
void adf_gen6_init_hw_csr_ops(struct adf_hw_csr_ops *csr_ops);
|
|
int adf_gen6_comp_dev_config(struct adf_accel_dev *accel_dev);
|
|
int adf_gen6_no_dev_config(struct adf_accel_dev *accel_dev);
|
|
void adf_gen6_init_vf_mig_ops(struct qat_migdev_ops *vfmig_ops);
|
|
#endif/* ADF_GEN6_SHARED_H_ */
|