Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6563960rdb; Fri, 15 Dec 2023 02:03:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IH9Y/IPu0XuhUHPjjEwukykJZq0/hFPc3+RptOKEn3fsSdlXa5FQtSbeEGI5orQM4DGS6Kt X-Received: by 2002:a05:6830:16c5:b0:6da:325c:8f23 with SMTP id l5-20020a05683016c500b006da325c8f23mr5126224otr.7.1702634617196; Fri, 15 Dec 2023 02:03:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702634617; cv=none; d=google.com; s=arc-20160816; b=MNdu3ojLtMoe7KnUx2JmdkIGDRhOra5JfSQqzuSmOUbGq5ytqvPgnYCA6uoqI0Pkej 7p4vb9ah3APB/vEljVse7CcxJ7/2hUliyfLBjR0jcvWyZ377/9WQdert1svk/cknrVxj gbGlA5X8KoBFIM3T40PPK70veZa2421EUg6Rh8xxKCkdwzZFY0XZo4Dkmu45aBo55MdP NfoWVsJzG6pIA6JiVQQZSRnBJC08hQO4nltCn/MpRgZ1gzEd/AY0VHP2abZl78ki+ck/ FEmNixxr2x2CFkl/Yp9XKY6Vw8SapZ4LQEkNf0DrwGxxyb6Mrz+/BUylf1Jp09wA+bJg MSTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:organization:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=+MEVGBwCbY375FrkCqpOiF3inXlAlAvz6mRh+FCVbSc=; fh=UdkG4AweFH2yMGehrLnMHjSuotyR7wxkgnI3aeQb9V4=; b=d8YzXXoS1zME091iAB2cYzvR6Csf7NuxaF5kf90dGBMab+NnLNvn9kU9aw4jT2Vu7P KdZuTYdMXVzl70Wq0GipytLfI6omRsS5MrLF3ZyrnsjY/a8Pm/l4zwBQ8/7ZtUo66xgl WcAqMVQ7NgU5HdugNRU0NNsZwCgTsGmaLxTwoVpF9c6yP+Z4VO7l/QEMw7Enna4BDmXB lNBHbmYBywyq+nLB7M+eixFvVrnvU5zVo/GZyK2krtbVx2fuFeR+WAWhQgIVymR7q63w rG3TRANNzzDu8uyS6Wx+JJcaHV8Y326lHnPa7l4QCc+juQOplisN/VcbsI4EV7ZQZ7gD 1STQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=P9HhGm9F; spf=pass (google.com: domain of linux-crypto+bounces-860-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-860-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id l5-20020a056a00140500b006cdf584699fsi12901808pfu.336.2023.12.15.02.03.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 02:03:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto+bounces-860-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=P9HhGm9F; spf=pass (google.com: domain of linux-crypto+bounces-860-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-860-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id D67722848AB for ; Fri, 15 Dec 2023 10:03:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1057019456; Fri, 15 Dec 2023 10:03:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="P9HhGm9F" X-Original-To: linux-crypto@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9110A19449 for ; Fri, 15 Dec 2023 10:03:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702634613; x=1734170613; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=odBB7OBGYdkTPnDr36LdJ6adGf9OjZBdp4N89v48JlQ=; b=P9HhGm9FQfa2Bb4MT4zFcj1VQaGALZWowt4kt5BBbH6Fklx+swbQMq5V muw2qmYEr0MrvpPjN8TxRRdOBfXLVZHfm16hmOW9kDz5NQO/yL6Y7rbgF LVX3Ycyx3uw6HeBGVbbx/qjiv5TimK4u7DOad2DmsbFew3YOIsVnyBHxt ratp74ylHPjoOa/cemwrg4R54rL0N1OKimLRHSWCamkdyRB6VfQ3WCg3B UD76VhMp1RIaCsxeArRD0zcg2aF9YF70M2DrXMuY1QuSNNDoanaIhd1oQ M2TQ7jBvvOklpTLW+R5yj+drnbh7cxiYZEH2Ru5jFyqOTNDFCskYy0OV8 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10924"; a="374759866" X-IronPort-AV: E=Sophos;i="6.04,278,1695711600"; d="scan'208";a="374759866" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Dec 2023 02:03:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10924"; a="845074113" X-IronPort-AV: E=Sophos;i="6.04,278,1695711600"; d="scan'208";a="845074113" Received: from qat-wangjie-342.sh.intel.com ([10.67.115.171]) by fmsmga004.fm.intel.com with ESMTP; 15 Dec 2023 02:03:31 -0800 From: Jie Wang To: herbert@gondor.apana.org.au Cc: linux-crypto@vger.kernel.org, qat-linux@intel.com Subject: [PATCH 4/5] crypto: qat - move fw config related structures Date: Fri, 15 Dec 2023 05:01:47 -0500 Message-Id: <20231215100147.1703641-5-jie.wang@intel.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20231215100147.1703641-1-jie.wang@intel.com> References: <20231215100147.1703641-1-jie.wang@intel.com> Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Organization: Intel Asia-Pacific Research & Development Ltd. - No. 880, Zi Xing, Road, Shanghai Zizhu Science Park, Shanghai, 200241, PRC Content-Transfer-Encoding: 8bit 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 Reviewed-by: Giovanni Cabiddu --- .../intel/qat/qat_4xxx/adf_4xxx_hw_data.c | 13 +------------ .../intel/qat/qat_common/adf_fw_config.h | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 12 deletions(-) create mode 100644 drivers/crypto/intel/qat/qat_common/adf_fw_config.h diff --git a/drivers/crypto/intel/qat/qat_4xxx/adf_4xxx_hw_data.c b/drivers/crypto/intel/qat/qat_4xxx/adf_4xxx_hw_data.c index ee0ffeec491b..f133126932c1 100644 --- a/drivers/crypto/intel/qat/qat_4xxx/adf_4xxx_hw_data.c +++ b/drivers/crypto/intel/qat/qat_4xxx/adf_4xxx_hw_data.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include @@ -21,13 +22,6 @@ #define ADF_AE_GROUP_1 GENMASK(7, 4) #define ADF_AE_GROUP_2 BIT(8) -enum adf_fw_objs { - ADF_FW_SYM_OBJ, - ADF_FW_ASYM_OBJ, - ADF_FW_DC_OBJ, - ADF_FW_ADMIN_OBJ, -}; - static const char * const adf_4xxx_fw_objs[] = { [ADF_FW_SYM_OBJ] = ADF_4XXX_SYM_OBJ, [ADF_FW_ASYM_OBJ] = ADF_4XXX_ASYM_OBJ, @@ -42,11 +36,6 @@ static const char * const adf_402xx_fw_objs[] = { [ADF_FW_ADMIN_OBJ] = ADF_402XX_ADMIN_OBJ, }; -struct adf_fw_config { - u32 ae_mask; - enum adf_fw_objs obj; -}; - static const struct adf_fw_config adf_fw_cy_config[] = { {ADF_AE_GROUP_1, ADF_FW_SYM_OBJ}, {ADF_AE_GROUP_0, ADF_FW_ASYM_OBJ}, diff --git a/drivers/crypto/intel/qat/qat_common/adf_fw_config.h b/drivers/crypto/intel/qat/qat_common/adf_fw_config.h new file mode 100644 index 000000000000..4f86696800c9 --- /dev/null +++ b/drivers/crypto/intel/qat/qat_common/adf_fw_config.h @@ -0,0 +1,18 @@ +/* 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, +}; + +struct adf_fw_config { + u32 ae_mask; + enum adf_fw_objs obj; +}; + +#endif -- 2.32.0