From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0066.outbound.protection.outlook.com [104.47.33.66]) by dpdk.org (Postfix) with ESMTP id 083A85F24 for ; Fri, 5 Oct 2018 15:00:25 +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=VOUMhiHBmG+Tsz4xTTjvLIk91CJ/alXsZasU7MS6O5QibSyjIe4tDSXOQvGJcfKQf7uzcGuMoBsjCfQw3RDcoKhwPbS/n/wZhrLisHp6o9NNMts3o6gFZRvJP/450XetDLYmVX6btzC3JP0Dy4IOuzIeKBLnFkjsx+dO85PsZpI= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Anoob.Joseph@cavium.com; Received: from ajoseph83.caveonetworks.com.com (115.113.156.2) by SN6PR07MB4910.namprd07.prod.outlook.com (2603:10b6:805:39::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1207.21; Fri, 5 Oct 2018 13:00:19 +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: Fri, 5 Oct 2018 18:28:54 +0530 Message-Id: <1538744363-30340-4-git-send-email-anoob.joseph@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1538744363-30340-1-git-send-email-anoob.joseph@caviumnetworks.com> References: <1536033560-21541-1-git-send-email-ajoseph@caviumnetworks.com> <1538744363-30340-1-git-send-email-anoob.joseph@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [115.113.156.2] X-ClientProxiedBy: MA1PR0101CA0036.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:22::22) To SN6PR07MB4910.namprd07.prod.outlook.com (2603:10b6:805:39::16) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 319204b6-b935-45b4-488b-08d62ac2833a X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:SN6PR07MB4910; X-Microsoft-Exchange-Diagnostics: 1; SN6PR07MB4910; 3:vC+MUzuveumQCwcIM2UKgQyP171aBv/WT8wnG99WNVLj09rj8gekk/dmdvVKgeED8oU512ldRODOmwzrHLmRTrhytvYbC/0l1fDNbhNzIuvKOUSSKK5k8vrIF2hkangxnZaGbeXxBbByd3SFg6o4UecS0xNT80VvaY60PCLy6qn+MxTuu0+Y4NRopFPWns348rvNcuSbJZSBcbvIgey4v0yDizD1N07bxP+44IN2cMmrbuKiNrR5L/KHHbpkD5Ww; 25:3Mzt4zEJhvIZ2LrmRq1A97o5PUYYtvl5cOjSk3dGqmaHymwqPhjoUOZJE8nst+KEIkDA57DC5OzKGzGeCsEWsvySk6t5dqbJxOrHpiueSNqM9U6fxcgA40jbClZgPhCiqur9nPoqAXpkzjVq3LIWbq5X862qu3edQHIHwZv98gVHyFFLcUoTMk1JzJtI3aJcaUNG42cFtfea+ZukH3S/BjFMJw87Wh4FLEfZakp+cF3x3Y1oK/v39pOg5ivwBA2DIbBwHXHZkuX+LlIyyWYcKJOYqSXBvu1lBBUNR1KbCCokJVnGt9QyBZOsxzkvce22JvW1V+dJ+o6hmFjiBncpLQ==; 31:HG5Jq/oNJgASZspGJ3IbPlKSjTECQDivSmVcvcIUf1D8tROnyw2putDRuoumPjYXfm4OAL+TSTw6LstmhhobNbIk1H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u/IXysQ2xz8JOnGtDeIGADOKjD1AyJBvs6aQ== 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)(3002001)(3231355)(944501410)(52105095)(10201501046)(93006095)(149066)(150057)(6041310)(20161123564045)(20161123558120)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051); SRVR:SN6PR07MB4910; BCL:0; PCL:0; RULEID:; SRVR:SN6PR07MB4910; X-Forefront-PRVS: 0816F1D86E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(39860400002)(346002)(136003)(396003)(366004)(199004)(189003)(51416003)(76176011)(11346002)(50226002)(25786009)(8936002)(48376002)(305945005)(186003)(16526019)(110136005)(6486002)(3846002)(446003)(52116002)(6116002)(81156014)(8676002)(97736004)(5660300001)(50466002)(4326008)(956004)(42882007)(2616005)(68736007)(478600001)(54906003)(7736002)(81166006)(6666003)(16586007)(107886003)(26005)(55236004)(66066001)(386003)(47776003)(6512007)(72206003)(44832011)(476003)(316002)(14444005)(36756003)(105586002)(106356001)(486006)(6506007)(2906002)(53936002); DIR:OUT; SFP:1101; SCL:1; SRVR:SN6PR07MB4910; 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; SN6PR07MB4910; 23:VjleSsm45ehZCL8BbszyjV9tQJEc21hajrYc5m9fa?= =?us-ascii?Q?05EzLQzI0yZhFbburAVnEWBlh0mTJUrx1USN5JtmLvS/tVwbcHGVcYbc2obl?= =?us-ascii?Q?fY7KAqwiS80aVX81Lu4BVcu+fI31FNaqP0ruvPlvQwLGjioBwuCIJovNdjgp?=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GsE5r3ai1VlahYfbqjlrmMU4Lw3SpvVR5pyMRdh1FhCYRnGiri/scBwprBfJJwqnMHLaSn+OXgl5iaEUFT3qkBLYAdgqCrVcyUh0cAz+VBfV+/o0y47HRFhOK0r5QiW3kalz7ZwCle20x9RXf2aeB1xZaYzuGGYfK65w==; 5:WTAENPc1X4RV8Jn0jLGURIrhHctrCweh1xhjmH1WY6sevjzI+UtmK+rHg2OhoiyDDOqwfqVxxYoziGLH5rIAoOZUx8XP2MefR8mVYFOL48c5Y2SCoFr9cgSHvAXDxikq1zSQnoS9bNiG5DgB05xjGpSMR+AE+R7sHG4cWpJmc1Y=; 7:R8s/jNdaD9bvT1RWKfshRYa0G7L/DmX0SrjePM8TSaSiE20s28znWp3YK4nsUQ86Ca8ytz9ZZv8CvbEUOibJWbVDyvfdC7nOJIS59uin3agsGACbiIL76VHlbZjpl8KZUY+FkoJ0P2KLLtWrpBZZ8ee+P93U1PeAwiHb9KoEB9sDHRalRFDvYyI0QKVrDehEEl5pxJsQicO8VIOyQhKRxPb1c0Anys17lSCV7UfjN5+xE2HGWapz+3ylwoPKNM7L SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Oct 2018 13:00:19.1900 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 319204b6-b935-45b4-488b-08d62ac2833a X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR07MB4910 Subject: [dpdk-dev] [PATCH v3 03/32] 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: Fri, 05 Oct 2018 13:00:25 -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