From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0045.outbound.protection.outlook.com [104.47.33.45]) by dpdk.org (Postfix) with ESMTP id 5D9A6F943 for ; Tue, 27 Dec 2016 10:51:45 +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=fo7oflLX7jP+/F9dcmPC4xbmUVjWIOUtKaRDil8/ZQ9nr70kyB/gZJJAsjjqBTe3jkO5aW7mWU9mGv1wcp4jN830YrnEMGysuuth/4yZsBdGjogujIq+QeBJ3On/cEln2C5H5ZSoQnFPegoRwWUbG1ImsNKqIM798wxlvX5S43Y= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@cavium.com; Received: from localhost.localdomain.localdomain (202.83.56.97) by BLUPR0701MB1713.namprd07.prod.outlook.com (10.163.85.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.803.11; Tue, 27 Dec 2016 09:51:40 +0000 From: Jerin Jacob To: CC: , , , , , , John Griffin , Fiona Trahe , Deepak Kumar Jain , Jerin Jacob Date: Tue, 27 Dec 2016 15:19:21 +0530 Message-ID: <1482832175-27199-16-git-send-email-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1482832175-27199-1-git-send-email-jerin.jacob@caviumnetworks.com> References: <1481680558-4003-1-git-send-email-jerin.jacob@caviumnetworks.com> <1482832175-27199-1-git-send-email-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [202.83.56.97] X-ClientProxiedBy: PN1PR01CA0001.INDPRD01.PROD.OUTLOOK.COM (10.164.137.8) To BLUPR0701MB1713.namprd07.prod.outlook.com (10.163.85.14) X-MS-Office365-Filtering-Correlation-Id: b2e024eb-f5b6-43f7-6bce-08d42e3df769 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BLUPR0701MB1713; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1713; 3:S1rCE4nsEhZeyZUXJb+OTCyBb/LfE0Syx67CSgFTr5CfwKlxecILblQQem5NWu028otmth3wBBkUuYOeyV9dVkfyFGf/w6mX1rXbGP+FOFeY7URnvUZHa7foeLGbRkZy5vRMzZfr6sW7chvBDbJdHVOBi2OTXwMl/aJm3XAXqTfftGfdc+IMOoI7YlsDRNd10ZysLpmMNe5eBlWUqh04uxmQwF5VNaE6XqDlI6rhF6drdbTf0A7GDT3bS3qLh00DoqVK9b1DT+SlQ9joecs+4w==; 25:7LGLnT4IFZFjPztiPArSjClkCZu/h2aPfr2QHnY3E8Dl4wjY5vi56AeFW+aSZoDlf4sZOIx/qVWVa0wGithSSdDFROXtAxqKjoMikUzM1zSLs6NxXBz39UTxMWEnqS6XbCNSp0q5nR8I++iaxR+Pwu7swjrFkx1fxk5jych3Jww4qPNrpsV4g27+bcQOsyOXUZnAqZSET0NgxrfcnDt3NuvpAxGh/tJDPwIgZZCQ6shq8M1Xx7DeKAofZPKFSnWnlZ1pbhBjt9khfiy0yua+PT/mKeqbtlFeFEG9RjyFF/XuJMICD0NWgfofL0obgLd+lE1LHK0l0syRqfutiwZnQSmu3aEdIbXSXy2RgOeGmqyjSSwnRP5mrl5p+Hvuez99ujqxEPbvmJ9mur2RWSRuyJpOdMFvmQ7Nd9aTEC2WdK8E3H+6HbD6ODvurOTZBSItCYC/XiaA8GsvPyfiPnlaWQ== X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1713; 31:O97BQUx3Wsla59QRcs6Tjv2R+g1kgNCWBBsG/uSYt0xxrrZEbNZYKpMDyFXJ5l/+fgTTC+VanCzyID5hlcazzvCpH+DTamFWMqM5Hq1Kawag4yq7XWQE5qYLku34trQJt/6zeNlsZbSqpmQNsUMc/LrfO7A+jSgRoNs2F3pTi/3lzXdTSKX43kmxtcjkgJhnQOolF/ms7OWmkKzxAU4U4gfx1InQ5GoL9wX2pgzAEW4hINTh06v5liGxtfUnYYmX; 20:ZEaODNmJS3YNuS0LaExBhbaYttXE8Db5E5OY6BbEvi5rmSEq4mfHMx5DAp0L4/hiSRtoMKpi21A1j6Yc96xSTchJPG7VMirySvkI99dVkICb8uXDWIm9fnz1FGp1R+3RwY88+Y+UbjIW8sjUdNIJz7+rj/U81QFISJ1Ey+w10wc/OyEVRpuXwCeW+c1T4vRlgUPM3Ft/ygvCS81uArBRU/WteVFriPtO5A2tqCchWms04CCcG59RwQfWfopSJlEjdMZz9FA8IoAyHmmgP9MFWZ4/ClzJPPoogtYZWuREpmKQtMucEmRGHs7FtgLjMKujLrDC4T2PBzMDXOsnEnnfOufF6IUc/fdRo9/9XwAIPK59Zc7IWKRJFaUlDdtCskjMh3t8fmZpQy7UoGK18l3zJOWIAOL3rYDbRJhBPovygAgK3pfN1MEA8U4hElpBUkfygDSjQP1LO/VJ/plIiAbWTFDBwcNbsAIbDrhA7vOJn1QecXLy9sJKLMAk2qMkPGStW/qvT6s9SU7MwFuNAoBHq9pdKHMLEx916wpQtKaCEOMochYBIHjzjVVlu52mbAe3hZ4VcblImG+AC09cSFY9CJIVUu70gYHraabCgtuEBsg= 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)(8121501046)(5005006)(10201501046)(3002001)(6041248)(20161123555025)(20161123560025)(20161123558021)(20161123564025)(20161123562025)(6072148); SRVR:BLUPR0701MB1713; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0701MB1713; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1713; 4:R7Zq/TvxOjlL+gD5XOVB2sSZhD1HbGCaZrpaJRvwMVrJH6H/JFxSNi7RHSUeDOia1YkJWUuG5XCmxEKWaL2l2S0saYS5zIMfxtqgXHoMSpAP6bAq4KiESiGc5QkCn6tW9h/slvJhHoV9Q3Rw7lUqycWuq+B39wkTyFq/hQcFASmEjXi/wGuaQrsrKHdO8B8sMoPVbh6P1Sc9wV75shhYVb2xCwyODtzm/GLlM6cL+BuUIzve0zoAPjnfVG87K6OpmN0zQyru8HAtFRKDpGWWdpg8B+5wKdi9RXAFmwCWGuadA4t5rGP7GHZuiAFBjHrH64eViS5boNiy95i8Qh5grVoJ2lGCQhfmnJBER9Q4NIJP9YWC3PW3Y0ixSy4oUoddgUWTexkcFQD214diwnOFA0HfV9NszP92oMocIIq1yCBM1NRFhZdP6WBbzs9g57ZRTaG6vveAlS6cOxEUn2Co7nO2uyF+y0OLRg5gcg8LiwuP83wcmiCQAbdzhUQlEgISeXW3p23dXHmBHsLRnIpZs8pC5+q6VJMeDHjcMbly95L9El16WX1Dx+B2pdTnCpGwHMrGf0/FnqP81TSnd6wN5xr9UXcEzU0xb3F9937hFEaXm0kBUFvPTDk25+SYKmsy/p0qyOi+JWOyY5Kv5KndVsH7Kb5RJGUZkkaGHJOrjAo= X-Forefront-PRVS: 0169092318 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(7916002)(39450400003)(199003)(189002)(4001430100002)(3846002)(4326007)(6116002)(50986999)(76176999)(5003940100001)(6506006)(6512006)(6486002)(92566002)(2351001)(50466002)(110136003)(305945005)(8676002)(66066001)(2906002)(101416001)(81156014)(81166006)(42186005)(50226002)(68736007)(106356001)(36756003)(97736004)(33646002)(107886002)(48376002)(105586002)(38730400001)(7736002)(6916009)(5660300001)(42882006)(47776003)(25786008)(189998001)(2950100002)(6666003); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1713; H:localhost.localdomain.localdomain; 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; BLUPR0701MB1713; 23:+Hx8BCz8GayNbZzvStHqRHkN98DP+oeLzyn4KEZ?= =?us-ascii?Q?LEEBBUWipIUTzorBdTkOBFvOi8X4CBPYsiSX7nuQiE8w7GsFg20OIWmVBoS6?= =?us-ascii?Q?ln6Dh4G39pkTjOliVPXsToVcwC+7bK2zHWjONwFqfDwtZBQg79UQsQgizC2j?= =?us-ascii?Q?tqv/swJ3nZaU4cAOHkndYZkyU/1R26xxQf0H7L/wvkphpNhEE8sepEDumSRk?= =?us-ascii?Q?nvBlPyrLWtyjf75Lf+ykiPEQCJtat2jEbh6XERWV7fvHSikNIT1gMRguBWcL?= =?us-ascii?Q?6o5u0ik++Z9tSC+MaH+3DTlv1v4qJwBOnQInc6b9QWtGbTYLaTDvInAEtd9+?= =?us-ascii?Q?ktK4j/T4n0ts3KoqcicCnc5Csj1i36+SB/UJo3Kq9kzlg6uPHSf9GTiiuI5C?= =?us-ascii?Q?4eW/ukKz+fMOnco5R+IVxKb5LRm3vBe7rQXct5a6RbXvVYIq6L7vqvE3rUwJ?= =?us-ascii?Q?K150+Lxd3QSeSkpaxIZ0QxYYQhaQ4/qnZofsr16AG/U5OEGpweBo/Vvv0XcE?= =?us-ascii?Q?4lG/uYuHSzDyaff+ALH8xBfhEf0EJKfZw+thL+OayCvBU/Om5yoSgt/+Tw32?= =?us-ascii?Q?7+NvBrkknE2yosAm6CQbAidJx1tsYbDndvC5nQthgysQ8avp6JQZ9QggZFBR?= =?us-ascii?Q?LPKZ7qn8gC9S9IYVP/UpDD+1cUKXg0Np+b4uLhyMLc9hF13ERH0Nj+9NzaJX?= =?us-ascii?Q?qlU+DBG+KBgbAolye61WNIrDLPY5X/dg2shFnMMYYaq1h+4rfHkKSG5jsaRF?= =?us-ascii?Q?wMvVRyfL8Js5UI+gX0IqFtaON4Ny0iM2zzxK+1+GXHxs+TodVV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3n5DWutv0ExE5hVdN4lB4Pmg9Zg==; 24:oADyecKtJF3CA0YIwSZoxDZ7xArMWsa38qD5cls6QE12hdF9tnIQQY9zjEEsCMB0HqwARGXDQRt3D36o8J30+2y+rQqPzTkhlaQpdzn8hlg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1713; 7:gi/MSWaNOfRDv093T64tEeJ9O4V/va0xpN/Zf0hR02Yy1TEC5/Wa6OqscqPpNDlk/fv0Ia54K40hQWDZCc+LLY0Mzk6Wgn+V2YI/VGh2Qw0RefprCZKTrCOy/WiXfx7MzTfntCZFIO/hJ126K9yQk81hq2/+Ar44Rt7LKWwBttRwD/g0gZWmMCdUuYmZ3yBURzpCrA/EfpJSR1XOcbH9ORzB3h7ijbwRuPXJJBKNoLAdcc1wErDhAgqUJUdOg28HWfsMHv4NN7onQmZ+BTYkEu8gdTafy6svNFvtT8dQTuLj0h3lLsTpWglJaRYQHHYTwzsE6LRQakuFqgsDVyzBAOpyJiZJYplMoRmO1C0fbeU8IDxRq4gjbvNvGZFo+3WEbAeD4DTiEkK16Yb81xOxlnwShtbvitE5PQAZhDzm2nFhQsNfazp6sLXBgxlSzgNLZN7g3t3fTaUANj6xL0OWsw== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Dec 2016 09:51:40.9164 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1713 Subject: [dpdk-dev] [PATCH v2 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, 27 Dec 2016 09:51: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