Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

crypto: qat - move fw config related structures

Relocate the structures adf_fw_objs and adf_fw_config from the file
adf_4xxx_hw_data.c to the newly created adf_fw_config.h.

These structures will be used by new device 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>

authored by

Jie Wang and committed by
Herbert Xu
98a4f29f de51d223

+19 -12
+1 -12
drivers/crypto/intel/qat/qat_4xxx/adf_4xxx_hw_data.c
··· 7 7 #include <adf_cfg_services.h> 8 8 #include <adf_clock.h> 9 9 #include <adf_common_drv.h> 10 + #include <adf_fw_config.h> 10 11 #include <adf_gen4_config.h> 11 12 #include <adf_gen4_dc.h> 12 13 #include <adf_gen4_hw_data.h> ··· 22 21 #define ADF_AE_GROUP_1 GENMASK(7, 4) 23 22 #define ADF_AE_GROUP_2 BIT(8) 24 23 25 - enum adf_fw_objs { 26 - ADF_FW_SYM_OBJ, 27 - ADF_FW_ASYM_OBJ, 28 - ADF_FW_DC_OBJ, 29 - ADF_FW_ADMIN_OBJ, 30 - }; 31 - 32 24 static const char * const adf_4xxx_fw_objs[] = { 33 25 [ADF_FW_SYM_OBJ] = ADF_4XXX_SYM_OBJ, 34 26 [ADF_FW_ASYM_OBJ] = ADF_4XXX_ASYM_OBJ, ··· 34 40 [ADF_FW_ASYM_OBJ] = ADF_402XX_ASYM_OBJ, 35 41 [ADF_FW_DC_OBJ] = ADF_402XX_DC_OBJ, 36 42 [ADF_FW_ADMIN_OBJ] = ADF_402XX_ADMIN_OBJ, 37 - }; 38 - 39 - struct adf_fw_config { 40 - u32 ae_mask; 41 - enum adf_fw_objs obj; 42 43 }; 43 44 44 45 static const struct adf_fw_config adf_fw_cy_config[] = {
+18
drivers/crypto/intel/qat/qat_common/adf_fw_config.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0-only */ 2 + /* Copyright(c) 2023 Intel Corporation */ 3 + #ifndef ADF_FW_CONFIG_H_ 4 + #define ADF_FW_CONFIG_H_ 5 + 6 + enum adf_fw_objs { 7 + ADF_FW_SYM_OBJ, 8 + ADF_FW_ASYM_OBJ, 9 + ADF_FW_DC_OBJ, 10 + ADF_FW_ADMIN_OBJ, 11 + }; 12 + 13 + struct adf_fw_config { 14 + u32 ae_mask; 15 + enum adf_fw_objs obj; 16 + }; 17 + 18 + #endif