From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0084.outbound.protection.outlook.com [104.47.42.84]) by dpdk.org (Postfix) with ESMTP id 939D0F964 for ; Thu, 12 Jan 2017 10:19:35 +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=eOwT4JjaZz9Kka9e+JjwpSkExrnzgkTwO+6UouLHTtl5y01+PiY5VNtsA40EdPdXUtNdOn4WLBxbvWYkTI5VZ8YIS7posFCawgo/W1jFvwjXL8B782suJIovCvVAIUjlYd67YGMbkGQwfFaNNj8+vSXWydy/ztyt7mCMINQfv5o= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@cavium.com; Received: from localhost.caveonetworks.com (111.93.218.67) by BLUPR0701MB1714.namprd07.prod.outlook.com (10.163.85.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.845.12; Thu, 12 Jan 2017 09:19:29 +0000 From: Jerin Jacob To: CC: , , , , , , John Griffin , Fiona Trahe , Deepak Kumar Jain , Jerin Jacob Date: Thu, 12 Jan 2017 14:47:12 +0530 Message-ID: <1484212646-10338-16-git-send-email-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1484212646-10338-1-git-send-email-jerin.jacob@caviumnetworks.com> References: <1482832175-27199-1-git-send-email-jerin.jacob@caviumnetworks.com> <1484212646-10338-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: BY2PR06CA0007.namprd06.prod.outlook.com (10.166.106.145) To BLUPR0701MB1714.namprd07.prod.outlook.com (10.163.85.140) X-MS-Office365-Filtering-Correlation-Id: 0cd6422d-98e9-433d-4909-08d43acc1f6d X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BLUPR0701MB1714; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 3:bbjjUJCLLjsLDvqFwcTGM7HHytnq407vMX2k2+dGGPl76E4ESWs4QJOEkAFCFbIZhy2p6dpUCD1E5x119wn3+08vwVWOFE84yY+n0ggJ2aSypvJWMULwZhOeO5j3ZVSt5cvM71GizizEGpzj22CNef8v0AFjRC1HSgsjlmMFoDmnQGJOfzQnJpFD4+iPNO0hsczeCWK4vqO0wTCwdC6CJKLHj6yd82Bvq76rJ0iqyf2Z4Eyvlxk2nSpUhCy2VrvZT89uveGdpgkz6vPmHFK8jA==; 25:yxOV9Tg8XwoZ+Vn7+JHkbt+bBY0ktHhaIy4K3nqYF2zVSZdpNE//1BUjRV5rUcrZHxVmKdMS4TPzABcqwmbdELd7zaf+eXrpx4rFzKRT33hMB+YegrXLM5n4Y49bvFzowloxrFSMS7hThwpSgYYFHpynihWLNs/ZT+1EY1zRe/8gY0eP64twNDN5N+sP9KUbWqZhYiKLttF2MjPH6kX5RY+GGBeW5riv+0cDgdfvk0+cuU4SYYNHI4KtGkc4H79kb4ttCVPZHwmcKJCmWsh1j6JiqtwFPZB4WlYZkeALBSSZzPImwAUDJeXeNQ0C0tYV/DkAJs8ldN8jU0csQcjQT6BmhI/IpbzMLQ5lTriEmkFlXahGMLU5bUsoqIFZjHSo/K1AFP9gC2R8LycjbwvH8tlJAlaB2EtsEYHxHSN8+65wMGQc4/mej3+stJYxFywAX2S0GoWRcoJd802uFGr2gw== X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 31:m+81SQzJSmgqrWv47E3pZAUCTTv6UBlQWocYXr7A6LsP2R+NHq57s3bEX2Zs1mm1qxo69NfPtJdXK9uP2cM3uhdLMbhaTpzO/nlWdJblNEAGEtORexoz+uLh6YHrp37juvb5KEfYN2quvbcxxJ0eqpPBnM8Z5lJNwzQv/D9yNh/OKwTyyd+bPmrW0wiycSvPFvelafC4/ECEzmln1APRHaNETfFaeotxu0jNc8Y952HWpfx1GDDMhH41QzEh94XZ; 20:t5uTZHACMW6NgFyzKrSTOAGR+OhbqUM0f9SHcfcgL1XTFZzFfL/EsZ7amby74LctvIOn0+xO7LPo1ng/iVY2nHgCYR79QxAGXWiwi4g+KNsArWlnd2pu4xDDXR4MOZT0Hp3VwYkjHrX3hyv0669vbyTMzUE4rNYXoI/tbllmxZxNZN1luQjHlOXBYfxTxKn4WiMVm4wMBLhqmRSyVbDjVU1Ab35cOJjF5vwdEMxabM/aMkgS/5BBdvY3F5iot/p5RUHcscepQsQ4qvjmnuewXscLSBTWDQdWmnx2uyezL9rRHSruEj5NpWEpdGC6piBr9XmY7RqiAtldwWdGrJU9h7jW49hv05xJSjajv48LuQEUYkSzDwYrn6iESzE5ld8aZvmoudWqyEcKSDZCMm+Fcreo6DL7VQ34XV/Q7CEiwpytb5y6n+4vFZ6SZG16w85HRZkx647P3kLzti5tiQUFeqhX90s50saSDUjr/+Cf9w65CTnXCvPtOH87ZU7TrtPE4bkavOpXtAFbOULJAjdq94LU/CAtUG+Od8wQMu05d/QZXKr+AbccjlVeHPOyMniWsaTkzPE7HCknMQnnZGJlzy0D/LqYDvoV3B+Z/NY68xU= 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)(10201501046)(3002001)(6041248)(20161123555025)(20161123562025)(20161123560025)(20161123564025)(6072148); SRVR:BLUPR0701MB1714; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0701MB1714; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 4:ZeFzCHGRx0evsacuXb9kYLlIL8nP0UrkkYXn8tlLeN42NJNqzWrfk+WlVf3Kus6kSPc/VfgjjXLsi8TlgFXFctNwu9vDTRZ8fWbII8t7yn9esKo30j444g0UbpBquDn+VyTphhg8q6GBtyi60wafUy/9JzTjHgk8QezNbDKP5ZgeLkK96RAq1hSkws9lKU8YIGreWqqcc8qxpeB1Z1eXmNjH2som+sp1W6CjHFpAjCeqobQdBAbT0+q6eOcCi/Awwll2XDBfh8ZJq4pizkTu7kI5256ewF1E8NWipx0ZqMnOGwmvoXNdxEi6IykmIUuic11A5Vy7O9vlaoPD27eSEcitloekcH2wRM0xvSRmP/c/oDVRyvfiVXzHTYubI90TyQ/npiMpmES3k0+qo/KOqiofuar29odPc3lSKpHdiebvT+MYJUjQrVKda++8hN27u71YtuWYBNn4O286hknAjLRuUAY7w8Y6/5JsTjPWCJlzGGVZR1cZy20JwrkATaS9RUa2jVg1d48MM07sKWo5VYPU9HUL1XI3KK66UcOvSJw6sRigBiQYNPJ0a3jqlj9bNjym7dfJCcjl6afug4hS5IV2ansAxeWIwB/72pRDepSbFN2aji6cd3z+s0eiIi1yL9vLpFbxLBzIQBHB0OPWKQ== X-Forefront-PRVS: 018577E36E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6069001)(7916002)(39450400003)(189002)(199003)(2950100002)(53416004)(76506005)(92566002)(105586002)(69596002)(2351001)(42186005)(68736007)(106356001)(42882006)(6916009)(305945005)(2906002)(7736002)(50466002)(48376002)(36756003)(5660300001)(110136003)(4326007)(97736004)(107886002)(189998001)(50226002)(6666003)(6506006)(38730400001)(101416001)(54906002)(33646002)(5009440100003)(4001430100002)(6486002)(66066001)(5003940100001)(6116002)(3846002)(47776003)(25786008)(81166006)(6512007)(81156014)(76176999)(50986999)(8676002)(7099028); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1714; H:localhost.caveonetworks.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A: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; BLUPR0701MB1714; 23:mVXoqASrmSG83cuNt/51oQg4S/QSw/TSsDyF4cI?= =?us-ascii?Q?l4aXSZeBH3Z1tahdPz3vLvjx4CoexuSsF3zwI97XmYaS4jwZGbxEpH/hRQdn?= =?us-ascii?Q?q3L9jW+MvYP7CFga6q8BnZu6P5EWY11HI9Vl9EqhSeGsvFV6GNv5/ui060Ld?= =?us-ascii?Q?h57LXlYTTZlmoGACIBloUxg4UN9Lr14PjHV5QRGgvarHZNJKxyoivGo94Lx0?= =?us-ascii?Q?bp+4vBWpVe8L8cA8XtdarNAzFRJCV+2P1avqJ3n/2qP/VZIdjFvuTwrKti+X?= =?us-ascii?Q?4wG9Thu2B6ygZMiXpdxq+E+d7EcPFVwoWGCtSeZFPk5EF2gdQWCXyjvF7cPx?= =?us-ascii?Q?6w1O6F8w9fnr5SnjxeJLkLhzzs5Y/GSpoBDHghRt9sUyGZgOkuWAVslg4wyK?= =?us-ascii?Q?+5KKWmYF40XmBjQZkG4FdRUwdV44Js35xPhivIBL7wLOZE/1hJMv8JV4b8VK?= =?us-ascii?Q?9iQyJcjzn2KXWZoMjIoVQBVGovlWlOoJuZt4rJUoRozjIctCXQwVfH8U708L?= =?us-ascii?Q?rZ2WimgA92aznMVcN8acN2R4qw3Prg0igCgwlsEJvAqkYUE6EtWp0s5TGdWm?= =?us-ascii?Q?ZJoimRAfFY/orko4PVO0poSPPYTxAKnwSyT9HQo1cu9nT/zCYcmj2RZYLJtP?= =?us-ascii?Q?Z10bRX7gX6UqpnNKoGpIHyezYcArbygr9slF+5xulnV/n9ct/JYEhDnDa554?= =?us-ascii?Q?apWl5wL5sF+L2QXrZWZrQ+dWeZOPth1OAGIfNJDLctHfGxzCPJoYq/X5h64e?= =?us-ascii?Q?Aa/Nq5n7NcnwbYuO96IxWeF6muS4ju0aYppRS8SoUYf58iorB0Kv25bAiYZu?= =?us-ascii?Q?QkMLM/f8HalKfzTcDuwRah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kPLFuiDZcjUdZHTMiQij+PSOludT3CyMwBHe6gfEOxK8VxhoSthwMLdx1ABTEhaJgEJvyYlKO7sN6NPorXvNIs3Yv/FeFymuojeAirxHXK+tPRfoTwDPKJ6NfHdz5MxyViaBgSgB40eNBmHNZlbg==; 24:hyefdEcgh6U/nEEl+EnSOUf3LVZzIyrRNKUzpsc2n+7oXKWZIBN3N/l+iIpwouuDB+iLhQJhn3lYfpxPmjrdm9VZu85C8fRfDd/IO8vFKOs= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 7:dKtRSKNg87fJ5esPxidr4v2ABvoelHpOqSTbMOk0iViOgGiOzSIRcIW0BjofZ+xxiNJf06IbuYfI0nAt3BkpcNdIQbTp6SZdE51gRQBFViApi/++S7F4PuppgjXp9jCcRG05uVbhm1Sz1HrXBDNRhV3jdSg0HZ8WRsZD8TglEINnwOPc0Qv2y9hBgtgvU3QlHmL1VzRBOh0pg3+TjfLmk0J+u/jCvyPv6CqRDoMqKCKmGfXuQ8J0cUMg+5HcukAkBRm6kZj23IgcPaNGBoSVcI6W3Im1tSSGAJSfDeJZOSI6ARYa3u2koqCZEW8GI7l85gQa6l9Y+hp9S84C86g+EzPGJUWm5yyGmg76KhGCZQ6DpUypRZeWdEl5JKx9nTZRfMn8RR/1gMkNlkHF5wPm4schVhC9wVmV7evdEhYzqyx8C+HkD+Axkay138xvj9FCr1Y3Ug3s+RKlrz+CESmAdg== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jan 2017 09:19:29.4111 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1714 Subject: [dpdk-dev] [PATCH v3 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: Thu, 12 Jan 2017 09:19:36 -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