From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0058.outbound.protection.outlook.com [104.47.42.58]) by dpdk.org (Postfix) with ESMTP id 1054E3238 for ; Tue, 17 Jan 2017 08:15:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=agCOGkN/FhHtTbS7yW0G0OCLjwoFguk6ip6+QlzJrnk=; b=VlEvKjhzL7VCYTv28vL6mFTvd2Wwk3Y6z7nBif+DvcXBu+TpLeqUQrCNScfhv3ZsyUjbm7gUrdZVVs3aRpptZta0JNmVP/a3xH0wcf7IZO2Iu4JdvY9l/IYZZdlFpdAD2UNhl23nb7Q1JOhnaYmXFUguNPjgFdYntepow2IM0AU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@cavium.com; Received: from localhost.caveonetworks.com (111.93.218.67) by BY1PR0701MB1724.namprd07.prod.outlook.com (10.162.111.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.845.12; Tue, 17 Jan 2017 07:15:36 +0000 From: Jerin Jacob To: CC: , , , , , , John Griffin , Fiona Trahe , Deepak Kumar Jain , Jerin Jacob Date: Tue, 17 Jan 2017 12:43:50 +0530 Message-ID: <1484637244-7548-16-git-send-email-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1484637244-7548-1-git-send-email-jerin.jacob@caviumnetworks.com> References: <1484212646-10338-1-git-send-email-jerin.jacob@caviumnetworks.com> <1484637244-7548-1-git-send-email-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: PN1PR01CA0030.INDPRD01.PROD.OUTLOOK.COM (10.164.137.37) To BY1PR0701MB1724.namprd07.prod.outlook.com (10.162.111.143) X-MS-Office365-Filtering-Correlation-Id: 4c8eb641-2bd4-4b21-882f-08d43ea8a4bb X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BY1PR0701MB1724; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1724; 3:7TVm/4/cx+L5ly3p1FngkaOsKtf+03CWcAn/Xmq0DG0lQLVC5pvH7JdXq4YgPXdr4Qn6zrXxh5M1ngIIT3cGX/YJbGntgy0ERrdL6lonW0RQcCKy1xtebglse+3mY8M5R2cbw4Rx0ESJ8/nXkBqSmVQj2i74f9e+O3kzGi7gbR2pXy9g1sBhKSXAfRVbNtcvwWP6yZb93TwmMzHR1YfaFhAbfxAbQlKKI/OTTWso/3QRYRVayXa2SSf8+ClLwJ/rmdLVoG7Oe0M4i6/Bp1hnjA==; 25:0yYfTuYAiS4h5YIzPwlR+Kr68G01rywxHJ+FiAtFIOsHdKboO9lgSgsGvjkM/uQ0/8wqJN4A7+gV17a5CbV8rWk5WNT/WUItDmoU/yHlZ6x1txeWQj7c3eJMOp8Og7oz6DfPU7WoouNkWgqKBu/Yv0hktPIDizJuYU/ZbikMt2Dx2U0GUq+hVCd1zMTjTDsYuBHNgmnQp2H7yRc8FOR7RIkJdRB5q3MUI7cdVcadyWGXi59b14Bj+TIVXCw6SYom71l6IEbUghp+LB2RARcrdGBOYX3ducHaLVGAlrbpMCuFvJl0YJ5u7ressJRu/PROmUoDOgZkB5v0s/EJXFpjS+JF8FMqeO6mpQw8H4qLk+oSrU1dXHygS2tv4se0JXfGf/hVl/8zlkse7hBfW/jpsdamJ41tmYdoWASXQI/eaRzpDVL+hMcdGN9tR2CcreLNGvr2SRtJFL5YISLMNJACyg== X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1724; 31:lOCScKiWzstegwI6a+BiSQxbaNRf9ruNRa+wEDsH9/7Fzvy5821zHdO1GbmurRt/CpJlejlKkcMh+NS+OyAqzBpnrgVnZ334HIwcDwhP21JSDV6FakjOMzM0z4STasRRAgeOoimg8oYsJp2iOi4DhyfgSOAPzJQAfZ6uGc0i07l2dshPxKhpl1AnFWcbdqW1HMZaMsDzvaOZfpiDKgg/+8JJBpVaCOQOZ0w8rnC0qDVuc0Y5D5ov181svv5JKp+XPY71Xa2L28u7g1Wrk0SU+w==; 20:BvgNRZJmogqhZLBCC6Dmf6W+V8yDIbCs+7P3Kmb73FNO3DVRN6d+bi5K8OBXEca6Nbcy6Jfw+XW3mLNwd0G+zs1EKBchUE+h48wSMRC9gHi+tAZMz9IjC4VATj/nPacWvpxEIPp74Kcq1fofei8axhAhBfeYvYZN8zDPy9WGs2ey/cSGQj/QcQn4N0WMxN1h1wzjwAdGmEH3mA5zUFMUyPCpzMtMvB3xVq7ZzKFI3pSjjBBObJEdTtgZDj+SVBifT0ctHOkGT4FglL70PTYgfJREdOwMrBxLNLNmwc92IrX8W7Ihpb014d0f9w8QdLcQXasa7uJCrTregfLxpXMLj03KWoI5fwQYT1YxDcVLvQNa0XSHKuuQelxzJ4C27+cFFEb8qRjkWcTHIDplC1F0SWsW+Bkngprf5j0Ue+WlYDcKk9ueKOS8wSWrs9xT0tvwRXtwoGno+wMz+CjlCAD+FHlAIT35aFuoiWV2V4NaMvmxmg7jLT29CAkjrCN89T4/WpB3YIoQClefnQBk/K1TVM+Ov8DR0mVmvCX54bzx4y7bYHy1a4FXLADRVkGAWEnn8zsaL+UTLEY28x4Kry2TsadABB72MfIbRUjNMI0j498= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(788757137089)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6041248)(20161123562025)(20161123555025)(20161123564025)(20161123560025)(6072148); SRVR:BY1PR0701MB1724; BCL:0; PCL:0; RULEID:; SRVR:BY1PR0701MB1724; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1724; 4:PWZcHHgz7BB3QKyga04XSgVRKB+AGwnBC01+LflV/rZCuKBFsTlemjsxhDzRe3Pu5y+tkt4sFjlNHGF5HYSoYlR3v7gbCUzDEvUZvR8L1EFZEeokqI4zgH2ONt5Dj4pHAbQGg88Vc9GpnBHoO9vMhY8M8eDpTbPImBWAVtbkYZ08gQV3xXKuVeP5U3ixCzZVQgAzKsVYp6nE7QkW+XudaAenUq+552xdQupISLouT3t3HEDHsAMJYA3FxsQ3Gu47K1BeYHgb0t2U/wjGBJ1HqujBsQWFgiAV4CmZ21W5HlIoK5NDzWszHUYzf7Gkn+tS9wKoYWuEDPgyGRqv50Cen1hwtbNx/pvxreAxrtxl1wYCg7LpcEkPNmH6HGeXgtWVcaWTIKM6Yt+ENBza8NxeEMS0x7GlbpWU8zYPvswAOSYAGIUpS9Ufb/cHHhjwEtb0jfVnSqUcjVUM2LpzNV4Q78TPUOAUlE58DAeKDh7+T1T9mAkd+nufyhgzi03sElvxq2YsUP0wda2rvnu5aPIbwZStJR729vEdTvza39OaVNBUaBfWqr8OrjYQJceCpxYiBTYqSSUYaQAC5BCxyAbJ9bZWNnH/oWUgDm6lcwkRRLdefV8tS7MABbcgy4Tz9ZtBdiW0uU5p1XpC+uyWXSYSAw== X-Forefront-PRVS: 01901B3451 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(7916002)(39450400003)(199003)(189002)(2906002)(4326007)(76506005)(107886002)(53416004)(189998001)(92566002)(106356001)(38730400001)(47776003)(25786008)(6486002)(54906002)(66066001)(6506006)(305945005)(7736002)(6512007)(5009440100003)(81156014)(3846002)(50226002)(5003940100001)(68736007)(4001430100002)(6116002)(76176999)(50986999)(2351001)(97736004)(81166006)(5660300001)(8676002)(105586002)(69596002)(42186005)(48376002)(6666003)(36756003)(33646002)(101416001)(2950100002)(6916009)(110136003)(50466002)(42882006)(30001)(7099028); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR0701MB1724; H:localhost.caveonetworks.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY1PR0701MB1724; 23:EbBPejvZrH9HSWGx0+T0mSgNoasoxPcamycHxhs?= =?us-ascii?Q?viyd/zrRyUWpnMyNmykbEvg10ceAHssdsI91D7/Hx1TND8jDDXInznhK9lsx?= =?us-ascii?Q?GODzDk8eJImMxiSxa/sBXMrOuat+ReJMPft+WwZMgyGRKjtc2IsaaC6fI4dB?= =?us-ascii?Q?ruuia/j3bX0ljVNEdOK1ByxAzwq5stJ9oOImfj02/kiPKl4A44xxVV+aSwRT?= =?us-ascii?Q?p6F5sZg+barmhX2k/n59KkT/gKhO3p77tc3Wm56gsiqERVs3+N+bUy03gtf1?= =?us-ascii?Q?EFwE1H4oxm3pMRrPwHSTFPJ6umfKeYocj4hLw5xHiFVsHWs9FXbuq5uokkSZ?= =?us-ascii?Q?yoP75I30bf5FB97+1j3C3GFCwhAEl79BdFYEQzseyZL7+5MeZl9LLS7gX8ld?= =?us-ascii?Q?7FubgIRAhvcRx2hMa3Xh+GdGDxQdruUjh6qFUctI90VSv9xIaEKKvDFa48wY?= =?us-ascii?Q?bqyj/9uTo7Q+ZuvqRPHxFvewSQxZX3iW6sZ6X+hqUoWw0WLIeyIIfxUPwHj8?= =?us-ascii?Q?2pw90FPxAeHnnSByt9fiY+XG5IBKSQVo84EWHghiXgHPaKpP1A15c91yctNI?= =?us-ascii?Q?tWBr711THShTqDL4j3MASdQefDjTXTl++VHK98Zjy7MmsUZ6Gzxz0H4k/NrH?= =?us-ascii?Q?JMea4Zb55RK3N2ZG1n+RUhTt7PTDpPTscK7BIXSESb7TmqZi1BOzCd7lfcBJ?= =?us-ascii?Q?5KtxrEaEYWbByP11u+9bXFMJNRp0+x9asGMJyEfcYagGE//VPajp71CfjJih?= =?us-ascii?Q?Bvkf/OIO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u/3DGIIVbJdyGY8EEFP6KmiJfuwWhJDh041SdNbEZNKl6l6FtoNgRi9S1pBjz9L0/dgvMxjVFw=; 5:Ucb9hQZmhadFi1SgROU7SjNJ3tuiOuK0epy04tqusbRRSvDdQRYIZJa6YE6LDDUoLYcl/BIoBS3zEHJMO2SlH21AQHF+A4w4g0g5+wU7InSffLMbpcD8q/+aecOr5BGblx0l4t4PR5xd9FurKAHORw==; 24:kywjpwSQ+DjhI7TWvMk0vRNM2h38psJ8shz5hZEzJQiwY3orkXskDnY6rKzAOyt6dsXfF30853q/d+ZSPQRVwQikWIgRbFs9nOtBmmRtsEc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1724; 7:dRpkFwNLPvb20X4YVu7g255Z/7GOjbe2ro0Sjjzn0lG9odU0y/5QYxq0D8jFXC2sKn19wbGaqP7mkknkHK7gB6YNpbNq8AbTZxvvOgzBTkIEQjRpNeVQeipYpe02wrUtgMb2gzR7MZA/AYLlI8i6dpxf9tiQmw8lLe8KDfzhYXJ9UuzpHoW7UQoukaDnWk4jJn2mkFnbPldyJXmgjU8+jxDjJ5sAt6KzeYxLJg4DAUlLNyYLbKoIHtk2PpEH0DCPRkY3F1bB5wcs4DbNMXdRtntWqJqXpYvgmbBpsruZYH1gtaxRpBLROCHbeIXVaF1PHR3ssb3tF8ZwHawG+TJHmXBQBxMIWA1nRZL5ORYSKhMv5x88GP0kTY0nkeJ9Dh1QUCSZJ8mNUCDkjM6dmY656IJygADH1WQ8+P7YZX6K7LEwx+kLq7Yx9AYEv/OBMImpk1dXjnIF50moLyX0VSrMbw== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jan 2017 07:15:36.7012 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0701MB1724 Subject: [dpdk-dev] [PATCH v4 15/29] crypto/qat: use eal I/O device memory read/write API X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jan 2017 07:15:46 -0000 From: Santosh Shukla Replace the raw I/O device memory read/write access with eal abstraction for I/O device memory read/write access to fix portability issues across different architectures. CC: John Griffin CC: Fiona Trahe CC: Deepak Kumar Jain Signed-off-by: Santosh Shukla Signed-off-by: Jerin Jacob --- drivers/crypto/qat/qat_adf/adf_transport_access_macros.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/crypto/qat/qat_adf/adf_transport_access_macros.h b/drivers/crypto/qat/qat_adf/adf_transport_access_macros.h index 47f1c91..d218f85 100644 --- a/drivers/crypto/qat/qat_adf/adf_transport_access_macros.h +++ b/drivers/crypto/qat/qat_adf/adf_transport_access_macros.h @@ -47,14 +47,15 @@ #ifndef ADF_TRANSPORT_ACCESS_MACROS_H #define ADF_TRANSPORT_ACCESS_MACROS_H +#include + /* CSR write macro */ -#define ADF_CSR_WR(csrAddr, csrOffset, val) \ - (void)((*((volatile uint32_t *)(((uint8_t *)csrAddr) + csrOffset)) \ - = (val))) +#define ADF_CSR_WR(csrAddr, csrOffset, val) \ + rte_write32(val, (((uint8_t *)csrAddr) + csrOffset)) /* CSR read macro */ -#define ADF_CSR_RD(csrAddr, csrOffset) \ - (*((volatile uint32_t *)(((uint8_t *)csrAddr) + csrOffset))) +#define ADF_CSR_RD(csrAddr, csrOffset) \ + rte_read32((((uint8_t *)csrAddr) + csrOffset)) #define ADF_BANK_INT_SRC_SEL_MASK_0 0x4444444CUL #define ADF_BANK_INT_SRC_SEL_MASK_X 0x44444444UL -- 2.5.5