From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0082.outbound.protection.outlook.com [104.47.32.82]) by dpdk.org (Postfix) with ESMTP id 940CA1BE0 for ; Tue, 4 Sep 2018 06:03:05 +0200 (CEST) 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:X-MS-Exchange-SenderADCheck; bh=pDSkdkTCmd9/ulDGZkK/OGAeorJwfOMoQZ97evFGdFk=; b=TMZc9VKqtor8uYGMlf8z2bXqj2+EgJy79JW20IwLhve57GEpEqQ20YAge97C6Ocl1Q7FWdYG3pGaNK3mX1U+/vvEH8p2vn3g7bsRIBy+N5QHGxFxMVviKZiffFFjIp9CwLdIG569xoeHEbeQ5f+M3xOyVhkEmR0kWVaLldhhAEQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Anoob.Joseph@cavium.com; Received: from ajoseph83.caveonetworks.com.com (115.113.156.2) by BYAPR07MB4902.namprd07.prod.outlook.com (2603:10b6:a02:ef::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1101.15; Tue, 4 Sep 2018 04:01:58 +0000 From: Anoob Joseph To: Akhil Goyal , Pablo de Lara , Thomas Monjalon Cc: Ankur Dwivedi , Jerin Jacob , Narayana Prasad , dev@dpdk.org, Anoob Joseph , Murthy NSSR , Nithin Dabilpuram , Ragothaman Jayaraman , Srisivasubramanian S , Tejasree Kondoj Date: Tue, 4 Sep 2018 09:28:51 +0530 Message-Id: <1536033560-21541-5-git-send-email-ajoseph@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1536033560-21541-1-git-send-email-ajoseph@caviumnetworks.com> References: <1528476325-15585-1-git-send-email-anoob.joseph@caviumnetworks.com> <1536033560-21541-1-git-send-email-ajoseph@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [115.113.156.2] X-ClientProxiedBy: BMXPR01CA0023.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:d::33) To BYAPR07MB4902.namprd07.prod.outlook.com (2603:10b6:a02:ef::25) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1f87a1be-483f-40eb-1ded-08d6121b2b9a X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:BYAPR07MB4902; X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB4902; 3:KlKWQAqaVAUkzZnLjtjThPU95uRqdxXLc4g7sOJKOgocrypV7LeSRnAzaN2tPNbT50sLhgOnSAIFGWw5ZNtlUUZWdkStwQlF9SmTmX+yl0jCrTb4oglbFJ7BjhgvKMm8AGnOpXhcf4ROZ67JrvzlAF5eTpUkpTJIjPGRGIO0iYV0odxyQcpQDGAUM1w7i2nBr2N8cEYTo3Q9SCF82fpt40HNvwpbe5wK4m2B6uVYq3Xl6EQDvibfJtW3en2i0uIv; 25:wbwC6Pi5Y2kxfCOJlvRrqyEXlftaId9/4BeMF0Ru4OR07Pirz4LdG8DWcU4MucasB4JWWrnT1PqSpCmEcu2RotMYRsD/1BopXVKt61UiBDRmv9rjwGl2trcntbDq7ArxBji/RJJaA4jMT91p3YZ6lxj0CWy06j+dCW1Q7BaEWrtb3UvRhrHwsc/ni5DZ5piY0BGFiIH1E6Yd65fnjb3e22OX/FATgeS5BJx5B2XBgO7JlMhHim+vWCS6UpBmPoPE05VMV0papuh0+FProrl7pG/YQYsGImF9NE87pwW9XJ8Bor+XVSxggoz98li3GhzOJonWtqpzMsLx3HC/CFGokg==; 31:XkKxySLYV7OYHijsUfy5bfPZZScEgWjK/SpyxzqMpJWQKu7oOBV81mmARUaOzJB5Pkbbf4vh6HsI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ij7xKhiODTKL2Ku4R5PeMji8Z7W+V8vKOLSV/ULkfAPqfPlS4Z04VVAEGw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(93006095)(3231311)(944501410)(52105095)(3002001)(149027)(150027)(6041310)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(201708071742011)(7699016); SRVR:BYAPR07MB4902; BCL:0; PCL:0; RULEID:; SRVR:BYAPR07MB4902; X-Forefront-PRVS: 0785459C39 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(396003)(136003)(346002)(376002)(39860400002)(199004)(189003)(26005)(51416003)(52116002)(76176011)(81166006)(305945005)(81156014)(7736002)(105586002)(316002)(6506007)(106356001)(6512007)(8936002)(446003)(54906003)(25786009)(6666003)(68736007)(50226002)(110136005)(53936002)(16586007)(42882007)(386003)(5660300001)(2906002)(72206003)(50466002)(6486002)(36756003)(6116002)(107886003)(2616005)(14444005)(186003)(3846002)(478600001)(66066001)(476003)(8676002)(47776003)(486006)(956004)(48376002)(11346002)(4326008)(97736004)(16526019); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR07MB4902; H:ajoseph83.caveonetworks.com.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BYAPR07MB4902; 23:m5WVY1kXHbu1gtEyVvuGH1MnCPsGTf7cQaCjnyShh?= =?us-ascii?Q?Yb9AX0aUozvfr3ImXxZWn2h2fr8oLMi/oyuOh5/05J/P8XB+mRcBHeonP9Ba?= =?us-ascii?Q?JbGrEP+l5Q7+0es03H5StsLvSqg9DK/3th2M7Nl1H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iOCqYonQv4vvp4IBZyFgHTStDgWS+qkM/J95ShwsqGj3O0kH0x5KUXUrqYKWVb/Ezzb5hMq5gFmP2uxYwRa8dsPX/gHJdudz3GNdEvd+9G1RQ1/cTFsS8PWv6jfUA==; 5:Vw1A9hDWhAMxA6Qe4INZoEWWdqm4y6AXyZ6BkxqUqvCynaqIlxMsWhJSCWTIWTB710oYzpNrWV+dTBsFhpAkb3N2kl+xCO1GHXXofOAiU6XR9yzW1huPBWLfuVw7OhNRNtnzGAtAcQWn/7FT2pVdckXkxIGIfppIstv6DY9xNl4=; 7:q2Jr8aK0Hp8VHwJzKlAa0lWXmlbXvBo6BwZu74b4/g1FhLBZe2egVk1TaG5dTT9fHE8oArBANQrlidNAWQfBakJADhuqDnoM+YS5ocO5Eg5uwoW5VhFOMVdg7jTijnR/u2ucQXb/CYklsrcgq+8K6rkqYywD7WVIXL5fiotQ/b+Jxb6Y6Q8XuZCFt9NU8rT/UaDO2lCsC49hs4d+VjO27kXa7vtIUJrTKUaohNfZ6deC8U8xnm/ch9/dI8CSOM5S SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Sep 2018 04:01:58.5691 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1f87a1be-483f-40eb-1ded-08d6121b2b9a X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR07MB4902 Subject: [dpdk-dev] [PATCH v2 04/33] crypto/octeontx: add register addresses 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, 04 Sep 2018 04:03:06 -0000 From: Ankur Dwivedi Signed-off-by: Ankur Dwivedi Signed-off-by: Anoob Joseph Signed-off-by: Murthy NSSR Signed-off-by: Nithin Dabilpuram Signed-off-by: Ragothaman Jayaraman Signed-off-by: Srisivasubramanian S Signed-off-by: Tejasree Kondoj --- drivers/crypto/octeontx/otx_cryptodev_hw_access.h | 47 +++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 drivers/crypto/octeontx/otx_cryptodev_hw_access.h diff --git a/drivers/crypto/octeontx/otx_cryptodev_hw_access.h b/drivers/crypto/octeontx/otx_cryptodev_hw_access.h new file mode 100644 index 0000000..288ee41 --- /dev/null +++ b/drivers/crypto/octeontx/otx_cryptodev_hw_access.h @@ -0,0 +1,47 @@ +/* SPDX-License-Identifier: BSD-3-Clause + * Copyright(c) 2018 Cavium, Inc + */ + +#ifndef _OTX_CRYPTODEV_HW_ACCESS_H_ +#define _OTX_CRYPTODEV_HW_ACCESS_H_ + +/* + * CPT Registers map for 81xx + */ + +/* VF registers */ +#define CPTX_VQX_CTL(a, b) (0x0000100ll + 0x1000000000ll * \ + ((a) & 0x0) + 0x100000ll * (b)) +#define CPTX_VQX_SADDR(a, b) (0x0000200ll + 0x1000000000ll * \ + ((a) & 0x0) + 0x100000ll * (b)) +#define CPTX_VQX_DONE_WAIT(a, b) (0x0000400ll + 0x1000000000ll * \ + ((a) & 0x0) + 0x100000ll * (b)) +#define CPTX_VQX_INPROG(a, b) (0x0000410ll + 0x1000000000ll * \ + ((a) & 0x0) + 0x100000ll * (b)) +#define CPTX_VQX_DONE(a, b) (0x0000420ll + 0x1000000000ll * \ + ((a) & 0x1) + 0x100000ll * (b)) +#define CPTX_VQX_DONE_ACK(a, b) (0x0000440ll + 0x1000000000ll * \ + ((a) & 0x1) + 0x100000ll * (b)) +#define CPTX_VQX_DONE_INT_W1S(a, b) (0x0000460ll + 0x1000000000ll * \ + ((a) & 0x1) + 0x100000ll * (b)) +#define CPTX_VQX_DONE_INT_W1C(a, b) (0x0000468ll + 0x1000000000ll * \ + ((a) & 0x1) + 0x100000ll * (b)) +#define CPTX_VQX_DONE_ENA_W1S(a, b) (0x0000470ll + 0x1000000000ll * \ + ((a) & 0x1) + 0x100000ll * (b)) +#define CPTX_VQX_DONE_ENA_W1C(a, b) (0x0000478ll + 0x1000000000ll * \ + ((a) & 0x1) + 0x100000ll * (b)) +#define CPTX_VQX_MISC_INT(a, b) (0x0000500ll + 0x1000000000ll * \ + ((a) & 0x1) + 0x100000ll * (b)) +#define CPTX_VQX_MISC_INT_W1S(a, b) (0x0000508ll + 0x1000000000ll * \ + ((a) & 0x1) + 0x100000ll * (b)) +#define CPTX_VQX_MISC_ENA_W1S(a, b) (0x0000510ll + 0x1000000000ll * \ + ((a) & 0x1) + 0x100000ll * (b)) +#define CPTX_VQX_MISC_ENA_W1C(a, b) (0x0000518ll + 0x1000000000ll * \ + ((a) & 0x1) + 0x100000ll * (b)) +#define CPTX_VQX_DOORBELL(a, b) (0x0000600ll + 0x1000000000ll * \ + ((a) & 0x1) + 0x100000ll * (b)) +#define CPTX_VFX_PF_MBOXX(a, b, c) (0x0001000ll + 0x1000000000ll * \ + ((a) & 0x1) + 0x100000ll * (b) + \ + 8ll * ((c) & 0x1)) + +#endif /* _OTX_CRYPTODEV_HW_ACCESS_H_ */ -- 2.7.4