From patchwork Fri Aug 25 10:49:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 110984 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp808727qge; Fri, 25 Aug 2017 03:50:24 -0700 (PDT) X-Received: by 10.28.96.66 with SMTP id u63mr1146813wmb.150.1503658223979; Fri, 25 Aug 2017 03:50:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503658223; cv=none; d=google.com; s=arc-20160816; b=kzoMn40/iLV0NIPBZ8TBu2zMwIRR0j8G0kE/bMMoI7+8d4NTmIlCWfg5w4M4VXxwU2 NWxd+6wUEtDSpRJFIPgfCD1nfGLknOSzeThGi8HMEw8e4QN8fsUGKETC9xZR3lLAkdzD PDIy745qLAtDFXxwM/Q4KOtEAYz0jsQX+O38aSyGGNECl3NqsbY4Ynz4yrPIQo+xLiPF 4zAIng6HqoeLII4nsuzTocjZr2UrNijk/NXCg/z9lwAqL/pQZneR28ggPKSpVtO/FA1Q rDwVy6MCArk8rdZkd/0EUmLacTA+LVM2Z7u50js93ocR3liSDzMaYWhMNGXh+qPYuMrg gR7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:arc-authentication-results; bh=noD6eNXNuagC1bU4rlXGO+A+36ovy0vt1t93ZwDOtBA=; b=gUlj/1xfOKQ6UimsnIzpJ8wmOY0oYB88WpO2NxzKHuO8uxr+ZohgLMe6+dJCQ5wW5t YrloY6AaamL4HAq/lutUKI3yf8gWOSl8N/tKhCrUhI9TYugn1C2uGaI7nAE3pPNQjamz mGfIWer1xE91fm1XLr857ErRPXtxOvJikPtflyrhOC9qam6pv80NwAaal5JkdeJqb8ZX 8YB0ERgrRxmhwwwhBCzT5lYvItxIiGSDj0J/tI71peM60wA3jdsjFoylsVo3CMFnKJJs oggi+0O5ZBnTdPZjrUovoPFS4SjPQDz3yd3pSyvX5zkpWZWZzyRRUMn7z3ojBK/8VgZU DEWg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 2001:4b98:dc0:41:216:3eff:fe72:dd13 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org ([2001:4b98:dc0:41:216:3eff:fe72:dd13]) by mx.google.com with ESMTP id q25si3343576wra.229.2017.08.25.03.50.23; Fri, 25 Aug 2017 03:50:23 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 2001:4b98:dc0:41:216:3eff:fe72:dd13 as permitted sender) client-ip=2001:4b98:dc0:41:216:3eff:fe72:dd13; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 2001:4b98:dc0:41:216:3eff:fe72:dd13 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 859688CF2; Fri, 25 Aug 2017 12:50:10 +0200 (CEST) Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0082.outbound.protection.outlook.com [104.47.41.82]) by dpdk.org (Postfix) with ESMTP id 54A3D7D96 for ; Fri, 25 Aug 2017 12:50:07 +0200 (CEST) Received: from DM5PR03CA0048.namprd03.prod.outlook.com (10.174.189.165) by BLUPR03MB552.namprd03.prod.outlook.com (10.141.77.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1385.9; Fri, 25 Aug 2017 10:50:05 +0000 Received: from BY2FFO11OLC001.protection.gbl (2a01:111:f400:7c0c::106) by DM5PR03CA0048.outlook.office365.com (2603:10b6:4:3b::37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1385.9 via Frontend Transport; Fri, 25 Aug 2017 10:50:05 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11OLC001.mail.protection.outlook.com (10.1.15.185) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1341.15 via Frontend Transport; Fri, 25 Aug 2017 10:50:05 +0000 Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.134.28]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v7PAnw66032070; Fri, 25 Aug 2017 03:50:03 -0700 From: Hemant Agrawal To: CC: , Date: Fri, 25 Aug 2017 16:19:18 +0530 Message-ID: <1503658183-4078-3-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1503658183-4078-1-git-send-email-hemant.agrawal@nxp.com> References: <1503658183-4078-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131481318052479084; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39380400002)(39860400002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(6916009)(36756003)(104016004)(2950100002)(8676002)(81156014)(6666003)(626005)(81166006)(86362001)(97736004)(356003)(50226002)(2906002)(85426001)(68736007)(8936002)(498600001)(189998001)(305945005)(48376002)(4326008)(76176999)(2351001)(8656003)(5003940100001)(54906002)(110136004)(50466002)(47776003)(50986999)(53936002)(106466001)(105606002)(77096006)(33646002)(5660300001); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR03MB552; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC001; 1:PEXv+8z8zPGzNlUeXWe/35sUOQ2tjk2dQXgL9P8JApAHHN89vrzGoZiTvkmRkrRHDOUrMrmhAdn+14dG8CmHtEIEC7ZJNH9yKNLa+nQ5r72hOEaHRUBD3YqfSwthkIkv MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: da31cc62-8dcc-4d5d-406c-08d4eba70b95 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(2017052603199)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:BLUPR03MB552; X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB552; 3:5RkD/LxaxxB8Yr5B+WQ7NC4F+XsVt4sR+e8/3ORHXEeMlG7VJVJ0mBDxodq2AbdyA9sBJy8mUTEUVtHWaEa6zqIThRyFL8fdmlpN7BCMZjFk0lXO1Uaka2Q8xO4p9XyCsH0C2lJ8GEY5fACPH7+nyEhXlb8EMFhQ3p9xfmP2KcNKY7VOi9YGoNtVruVxVzKyujLY0rug/b8Tt29pgYoJtE2RQ2aPT/UuO+pq5OCapcI6JlyCd92lEMXBGV3j6FIU4LnGukdeLBaIGHPZwcH4N0ww4ObcHZfletXqD7X0Eb/O4FZbyl/nLdWl4yEX0WTSXzaEIFvF1NlbTjhjDWl8Txhx9OEAxz9elXFm8+iLsog=; 25:p5ZBGxEZeh4hjwDMPncrAAAphcXqZp6ujlhPOnZ44ifPFaS8QT2kvsvpK8C5UPcwpLVI2sSc3BC5ENqXg0DXNJ5H3uAzzg7/Fw/oIBSCEjfjvtOXULa6k2461JPgrteWhb6iHEVAGkFzR/ewYbEbZn+yqLQ9uNZneem7BLlyG6NwvvUrjABa2wPLt1DTHq3s22RnNTCuhg5npXTzjDUBNNxYQMoKO2BgP439ie1XuJ4My+5sNXR5wg+F49COzcQLcSWvTHUGPJm7JaH1iFSlKMguy5QC6kEZtK7q8vzJR9JWbxKqYMmUgoo2frK0OgIG7J7I3g6l2Pa1h2HDaHqu7w== X-MS-TrafficTypeDiagnostic: BLUPR03MB552: X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB552; 31:5JgmteJ61Zq2xLn6KhDWSahMYWgq75GTbhqutUx+Raxw3MK+Gmnm1m1/ZHkRj7PhLz9Ju/XtozMLNYI2RDT8dloyNS8T0lBzjUaRBEP8tyA9L1zZSIYInXbozHZTdN6trehvDmGAYIIXuftj4LTm+qs+E34ow0+N+VqIoj0Y9AlJeyBtmfsXeh4rK+LkS6gd5+MD/lvDEWwHfkU+YIUR6TSGtzegBauptM2E+XJq9DY=; 4:yaevnucVLDa4KlTqRent6zUMFGF+pFUOCDd43LORV31c2HeCSc3QpZ4r+HmbLc3gWGRSd59RO6pO9Zng7QA5a0zwEdOfkLg0PZARZHkMNpReFRfBdPnUdLyIZVFQG+C4W2qewWjtRAsj4PCZdPjuJlhAR1jVtmulJtBp5GVKZ5sRVCnS2vfALxYUduGLowW6UR/qsFoaDtwxEcQ5aBLNGZvRBHbkWKMDCzDyeGOiDowL3B/Do7Cr2aq7hs+APb0nLmDDWn96H3Nl+gzTMFruloMOu4w2j0CWpV6SHYCvYx4neEFXldZw5BpFvgPwz7V1X1GFcWHUpRZUUYQJnB/orw== X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(275809806118684); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(5005006)(13018025)(13016025)(8121501046)(93006095)(93001095)(10201501046)(3002001)(100000703101)(100105400095)(6055026)(6096035)(20161123556025)(201703131430075)(201703131448075)(201703131433075)(201703161259150)(201703151042153)(20161123561025)(20161123559100)(20161123563025)(20161123565025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BLUPR03MB552; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BLUPR03MB552; X-Forefront-PRVS: 041032FF37 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR03MB552; 23:/FDNceK8knEFCj4C8meSY3C2MU666Vh+PGrlBpeRG0?= AS91l8gp/lNJNNvfMxFmKAxADJBxC6Pq9jr4y9IsxtxW+Um7Au72BOSYAncT3eB7+ZqE42HomzLrHs7dkGbJK4HCSdDOXYohJ+tETLxLz5kvJOadiTwFLDXeYuha8iTcd97inz3CjcdMorw/K7/WObyCaXUcRD37dvub6Ht4QCXLkwukPOx2UHGy5P87ps9cjFqRgcmJj9pCvr+8b+m+wk4mLUkMx1s/HwL6OVA63xkDmOlz2B7NJnnixAV1E07Ii19ree8t5g7qfz2zQrCIrT3j8zLR/PlBoPCtysRTmKGutBsmAKAY87dmSW4WCuSnAlOGpuTmfKD5rtHzGeLLFX/GqXH8C1fYX8IcE5qVDSKYLu2fi0LhkX1Pb0AxXhVfDa1alkSVzPDec7a7+zEsxlfAnqdKs9a2Cofu4ImmWw4BJ0o2QgPZcKry9T9JUw9z0xjT3IHjIe4gUp3ZpmXCktT15cKqCGknoo4QM15t5CtdV+4HzSQ8V51yc1bMt69+8J4mBjEfHyzXx9R51+BwUU1gOLpSDTiaXSJOJ6WEn6tGiw4RVjOSQPhJ7z99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:RqE96ln5PxiSsnVoxEZoYgn2OQhSXqimVuC6eIUPOWXGJArF8Lm4nbJYqsgYMkehAg1B1ih/3rHUVbpyaAog/DpMi+Ihnl8eh1tVewNeG+g=; 7:AcSvmdoJ+lbkdVvDjPTU+g6LhZCv8RFQ9pLt4Bu2PX9k8urHVBG61LKNVpwjm4bCmSaRYZYZEBKVcFDa+v22ByzGs44GDWxaZVkiS3YrA7TO+XOtcLPtPGZKA7w+hYb8xgTs4UEjfs5aG2/7KZgGlK16/JNLn44tl5Bi13pE6wkNQrixAe6Y18z6XzqbRHLEWUGhLVmLSRaqaIpEMYflQNySx9q3Ek/wEZzY9e3/6EQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Aug 2017 10:50:05.0607 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR03MB552 Subject: [dpdk-dev] [PATCH 02/27] bus/fslmc: remove the export for qbman version function 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This func is not required to be used outside of the qbman driver. Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/qbman/include/fsl_qbman_base.h | 4 ---- drivers/bus/fslmc/qbman/include/fsl_qbman_portal.h | 2 -- drivers/bus/fslmc/qbman/qbman_portal.c | 7 ------- drivers/bus/fslmc/qbman/qbman_portal.h | 1 + drivers/bus/fslmc/qbman/qbman_private.h | 4 ++++ 5 files changed, 5 insertions(+), 13 deletions(-) -- 2.7.4 diff --git a/drivers/bus/fslmc/qbman/include/fsl_qbman_base.h b/drivers/bus/fslmc/qbman/include/fsl_qbman_base.h index ee4b772..1415960 100644 --- a/drivers/bus/fslmc/qbman/include/fsl_qbman_base.h +++ b/drivers/bus/fslmc/qbman/include/fsl_qbman_base.h @@ -38,10 +38,6 @@ typedef uint64_t dma_addr_t; * */ -#define QMAN_REV_4000 0x04000000 -#define QMAN_REV_4100 0x04010000 -#define QMAN_REV_4101 0x04010001 - /** * struct qbman_block_desc - qbman block descriptor structure * @ccsr_reg_bar: CCSR register map. diff --git a/drivers/bus/fslmc/qbman/include/fsl_qbman_portal.h b/drivers/bus/fslmc/qbman/include/fsl_qbman_portal.h index 9e9047e..23c3d13 100644 --- a/drivers/bus/fslmc/qbman/include/fsl_qbman_portal.h +++ b/drivers/bus/fslmc/qbman/include/fsl_qbman_portal.h @@ -1132,6 +1132,4 @@ int qbman_swp_send_multiple(struct qbman_swp *s, int qbman_check_command_complete(struct qbman_swp *s, const struct qbman_result *dq); - -int qbman_get_version(void); #endif /* !_FSL_QBMAN_PORTAL_H */ diff --git a/drivers/bus/fslmc/qbman/qbman_portal.c b/drivers/bus/fslmc/qbman/qbman_portal.c index f360760..97df703 100644 --- a/drivers/bus/fslmc/qbman/qbman_portal.c +++ b/drivers/bus/fslmc/qbman/qbman_portal.c @@ -105,8 +105,6 @@ struct qb_attr_code code_sdqcr_dqsrc = QB_CODE(0, 0, 16); #define MAX_QBMAN_PORTALS 35 static struct qbman_swp *portal_idx_map[MAX_QBMAN_PORTALS]; -uint32_t qman_version; - /*********************************/ /* Portal constructor/destructor */ /*********************************/ @@ -1579,8 +1577,3 @@ int qbman_swp_send_multiple(struct qbman_swp *s, return sent; } - -int qbman_get_version(void) -{ - return qman_version; -} diff --git a/drivers/bus/fslmc/qbman/qbman_portal.h b/drivers/bus/fslmc/qbman/qbman_portal.h index 7aa1d4f..8018048 100644 --- a/drivers/bus/fslmc/qbman/qbman_portal.h +++ b/drivers/bus/fslmc/qbman/qbman_portal.h @@ -29,6 +29,7 @@ #include "qbman_private.h" #include +uint32_t qman_version; /* All QBMan command and result structures use this "valid bit" encoding */ #define QB_VALID_BIT ((uint32_t)0x80) diff --git a/drivers/bus/fslmc/qbman/qbman_private.h b/drivers/bus/fslmc/qbman/qbman_private.h index 292ec6a..b98c330 100644 --- a/drivers/bus/fslmc/qbman/qbman_private.h +++ b/drivers/bus/fslmc/qbman/qbman_private.h @@ -171,4 +171,8 @@ static inline void hexdump(const void *ptr, size_t sz) __hexdump(start, end, p, sz, c); } +#define QMAN_REV_4000 0x04000000 +#define QMAN_REV_4100 0x04010000 +#define QMAN_REV_4101 0x04010001 + #include "qbman_sys.h"