From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0047.outbound.protection.outlook.com [104.47.34.47]) by dpdk.org (Postfix) with ESMTP id 449E1F964 for ; Wed, 18 Jan 2017 02:23:11 +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=fdNYG3NfC23UIhacRcW25lqrgzn3sKwLNUI1MaZOOy4VOb3JEiIjsEwryt2WjXsSBzCoACxwuXM5OhTJgHWpzaYbiMq9osnvSBRyR38Ba5a+/FxYHUyc+IaxDVTCKHKy/ueN8Yx24bNNw71nv8+6yrxBrop7378GSLQtrnYll2o= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@cavium.com; Received: from jerin.caveonetworks.com (111.93.218.67) by BY1PR0701MB1721.namprd07.prod.outlook.com (10.162.111.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.845.12; Wed, 18 Jan 2017 01:23:06 +0000 From: Jerin Jacob To: CC: , , , , , , John Griffin , Fiona Trahe , Deepak Kumar Jain , Jerin Jacob Date: Wed, 18 Jan 2017 06:51:28 +0530 Message-ID: <1484702502-25451-16-git-send-email-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1484702502-25451-1-git-send-email-jerin.jacob@caviumnetworks.com> References: <1484637244-7548-1-git-send-email-jerin.jacob@caviumnetworks.com> <1484702502-25451-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: MA1PR01CA0115.INDPRD01.PROD.OUTLOOK.COM (10.174.56.159) To BY1PR0701MB1721.namprd07.prod.outlook.com (10.162.111.140) X-MS-Office365-Filtering-Correlation-Id: 99f9744f-381f-489f-47ab-08d43f409063 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BY1PR0701MB1721; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1721; 3:2irg0vkXOJKhHJyJg1uVrQuZfL1qKVFcz1LJdp8xya4EH9F05CoS3z2gtATl+doVjRZgSorSqWegdh2lotN4PN7JKf4w0gQsHVIMNOGlp5E521Z2El7wRmLueduFhXoAoUb3/TcdC//Or9HWDcyXiSOpFIqUV3FWMgnODPtmH4kUS3J+1B6HFKvAsiig+MZEkY2SbMaDcQGdVlMWDrobJ1zXSEfG5VOuAL0hDU7VdPgy/jpOKJgo0wGd/Thx0bezf2N5f0Eya/WfJQhZ5c6GVA== X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1721; 25:EeEHqmQ1xEl2w7SJEeArxO8zwcIBdStJQfqxnNP5nGQ9E2ANNazEOBw8xHlDvBYcLfiNN/trYMGMW4qSYilYA/Q0arVKYYpID2ayliUl11V9TQQG3zzKGFih05c7VFwk27Z161goBQRMoIl1LIQIVqIBhqsBxBaWzf1/uzgoDtyxS/3a2NRH3GbsTDX9L8CszEqw3J1QHynHy+4FGNuOgBa8eBI/UVFe/EV4w2BbHyYvtiSOuGi9Rn1Ka2VtUuXLId9qI6lfen/tGBEjgRTZjnFq3lGdDdU0zrw2IasbOe9xCkScaEVbIju3bOQ3q7ouTG9C8rPLXRa9hJrgtFN8kxNCT3JJ0b44LnspREY9bu9OZyCu1BqdHfMRl045lBOtW19oAS0V6Qkr8eaH+CmUwGbPK5tbV1ZboNnmTxpdIj1xSb98R7DUBtm99e5I4kQ94gEcxbi2xFW7NXatzIfup//yOaqetXuOjQdsXRBfmQaydG/kbhO5/21r7PJCEhAt9kVInt/rbIYefeGwMGF/0xE5qiF0OZjoxdyCrDcgm9+Yf0THCOzi3rYRxEUJK7owB+xC8vMa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38N0Jpy6p4wTSHOhUp/m3yDWlYUT5w5ZbbkZhxZnGmWlepqT6IOBNadSSMVM3EP6MmZGM6r0JaQTxGSttYR+N/hTIALgA= 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)(20161123560025)(20161123564025)(20161123555025)(20161123562025)(6072148); SRVR:BY1PR0701MB1721; BCL:0; PCL:0; RULEID:; SRVR:BY1PR0701MB1721; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1721; 4:ESykYrIjDpY/4TL49z8Ti7qLKCR5DebZ8EsXOCuWpb1RbWMb/8gxV17wGN+BfSL+ZzTz05csbq0e4tLGexNo2b0lmx3jm/JjW4V1BIZhnQIS4Useqki3tk/jOgIVEeOifZk1ERDNdIKV0LYgXXTm2mNNbQsvr7nUeAN8maVncc+55w0nLaPgF4ln+x8T4ndL7Qr6+ektN//VMJ5PB1yfifjSHSSnmWuzS1P5w4qrP2EHtmQO+nj0wTtuvXXklJ+jwYa1a6kJ4xLOyV3sOL8odg7wN8V0T/gn/18cBQ9h19nOPG5SFpXQEY64FmIxbNqBKPcecwdt1zUFh7zv2f8fzkLcVkgX+WQ0CeyfUTxefC9XZj8Wtl+8fUglvnOY9vbUP3YaTvtA0Z5CuW+5Edx/Q25gR1bgNE8A75cdGOBYjPoPTBSJ1CS3aMsZ6np6PRU/5FYqHKc0fUCNAMPxnRgdguJByY+nzMOox5oJbYWAnWpGajU37hYPKiGcSDjDf4nefkvsrZnIfSKcDNYvmAf0EVmagh98fNYQ9LEVEfF7VJqgZbFjHrGKM2B1Y6AyJKBpxYljaTNPRxSajKxvchKuQAu2KcXzI1soURu3S0gaYuXTszfzpQSxWpOPLAQ+08GqXRiYocsA8znlDoJ21l6zyA== X-Forefront-PRVS: 01917B1794 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(7916002)(39450400003)(199003)(189002)(4326007)(6506006)(50986999)(97736004)(47776003)(107886002)(25786008)(189998001)(54906002)(66066001)(92566002)(101416001)(38730400001)(81156014)(81166006)(6486002)(2906002)(42186005)(53936002)(50226002)(8676002)(2351001)(68736007)(305945005)(53416004)(3846002)(50466002)(6666003)(105586002)(33646002)(6116002)(4001430100002)(5660300001)(6512007)(48376002)(69596002)(76176999)(42882006)(5003940100001)(5009440100003)(36756003)(7736002)(110136003)(6916009)(106356001)(2950100002)(7099028); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR0701MB1721; H:jerin.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; BY1PR0701MB1721; 23:Js2CjI8ShPzmPCDwz4R93oQuonC1AcRww+oUQwd?= =?us-ascii?Q?W7nDaZ8vTQCPY48E4+2DowfNod0GaeBzG4oMWc5dE+UNXbJd9lQwo39STX1F?= =?us-ascii?Q?xVFP6oky1m9RO6Ha+pYMeFhbjr7P7wpxU25efdwLplFRlQaLqzCCxln9LL+Q?= =?us-ascii?Q?6GIHsbV99xSLy4Kqbp02zqdLX8SdQMsJy252/0iDGOSzCbvQuuP8MwmxE8Zg?= =?us-ascii?Q?WDZyhRPit8RuVt/7xqRT29mSxMGT5CMVC185VDEYWJcV72vKoI7uA8p1FDxK?= =?us-ascii?Q?/hYIu19DTXkB+1nyuSne3gkBESEtXPAn6g+0/qBNmsZrGoyVSEj9SaBZrCl5?= =?us-ascii?Q?VBXOEGsyaBFLBRoKZYT9lCTFmSI0nOh67o0Q9hsymLpbU6dfoQziehr974E7?= =?us-ascii?Q?A2r1pg4c0vaPPN0ac7rTfL5PxiAjlzWCa9szbkWwloM74T6DyH2d6Ip96IYr?= =?us-ascii?Q?eukvehy5n0cdwMFsHNsdPgVGEAQTs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IZsF5CS/NZWhN+AHy0mVTzmHL1n3c4z/EpvRc9sT0PxHbgqXLYfJxNhLDdS6RLO1HevREZYl0ePAOd8btmbgEXTnD6xzqGkpCoKWGi3J0r9KnoWLYKQuBvP9WV2ELuWMAOk1SUewqPqiXj70pJCwXEnJBcy20x2lDTg== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jan 2017 01:23:06.3405 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0701MB1721 Subject: [dpdk-dev] [PATCH v5 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: Wed, 18 Jan 2017 01:23:11 -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