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>
21 lines
334 B
C
21 lines
334 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/* Copyright(c) 2023 Intel Corporation */
|
|
#ifndef ADF_FW_CONFIG_H_
|
|
#define ADF_FW_CONFIG_H_
|
|
|
|
enum adf_fw_objs {
|
|
ADF_FW_SYM_OBJ,
|
|
ADF_FW_ASYM_OBJ,
|
|
ADF_FW_DC_OBJ,
|
|
ADF_FW_ADMIN_OBJ,
|
|
ADF_FW_CY_OBJ,
|
|
ADF_FW_WCY_OBJ,
|
|
};
|
|
|
|
struct adf_fw_config {
|
|
u32 ae_mask;
|
|
enum adf_fw_objs obj;
|
|
};
|
|
|
|
#endif
|