From patchwork Fri Sep 8 08:44:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 112024 Delivered-To: patch@linaro.org Received: by 10.37.128.210 with SMTP id c18csp1242566ybm; Fri, 8 Sep 2017 01:46:17 -0700 (PDT) X-Google-Smtp-Source: ADKCNb4r+sN1qMUlByFaT9aK2mtpf/lpUzd8x4Brf/pmhHDc54rP47NpIZOni/VjjFI7se6631+O X-Received: by 10.28.214.212 with SMTP id n203mr1006894wmg.10.1504860377605; Fri, 08 Sep 2017 01:46:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504860377; cv=none; d=google.com; s=arc-20160816; b=PIFHFzYbiHeAWWgu3AgNPk2cJT+rceQ6JQh65aR5EhYdwGjdxKwRM3qz1HreMJHD4m 4E9UyhHL6HZuF0LjRp2uqqHnPE1F8tqNlZlz9B70qw5JGGT8aDvv785u+8RjgtCrngLy hwWNuWFXi3KjY2MixgOWYNX3gREcMtY6veTMYC3hubLfHRuGmlqhDUw6IxT2lH8Dn63K /efbpH5sUt+Tul97tvj93lfUxqqvOEYXHWGQAhSjRMWEVRMhm8n2No4p2f1YlGdHSe6w ZBH+/L1bJvNbO+YFjzGWlsDEhBnXvz/HbhNPG/DrwOdAU2gIEwfgAPc1MGvC27TnEXjC zkcA== 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=P4ZPNXG8sV2Xewvs9+wJIJr7DzH0T0kNnmmW3ngibo/sAFnJHbb2r1bclONWPsWuAk dxNW4mCtlAGJqAUyLwKyZBUtEi7fA4+F7LLhMX7K6tDiG+zuxv7WxMTcqCDctnwqQPPr QZuNoFLie49PZOkFcyJ6wrCmG5+751MY9eOMNhMcONGdPYVnDKUCyD7+OfAeLQ9UH7AT CLa9uK8kwFv+4wpeNcW+xM0RcYJmkYtHg/ck/mXo8cRafOJwYxrBp5ZeUz6R03hfNAgB mdRM/K9muo4RFKFSpmqGS94agbdGqYvfOrDo5fxqu144DHo6EkmXALcusBaAzfzZgMKb lDuA== 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 s8si1081679wre.120.2017.09.08.01.46.17; Fri, 08 Sep 2017 01:46:17 -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 ECF477CBC; Fri, 8 Sep 2017 10:45:59 +0200 (CEST) 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 91DE4199BC for ; Fri, 8 Sep 2017 10:45:57 +0200 (CEST) Received: from BN3PR03CA0094.namprd03.prod.outlook.com (10.174.66.12) by BN6PR03MB3316.namprd03.prod.outlook.com (10.174.233.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.35.12; Fri, 8 Sep 2017 08:45:55 +0000 Received: from BL2FFO11FD014.protection.gbl (2a01:111:f400:7c09::166) by BN3PR03CA0094.outlook.office365.com (2603:10b6:400:4::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.35.12 via Frontend Transport; Fri, 8 Sep 2017 08:45:55 +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 BL2FFO11FD014.mail.protection.outlook.com (10.173.160.222) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1385.11 via Frontend Transport; Fri, 8 Sep 2017 08:45:54 +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 v888jmoY023063; Fri, 8 Sep 2017 01:45:53 -0700 From: Hemant Agrawal To: CC: , Date: Fri, 8 Sep 2017 14:14:59 +0530 Message-ID: <1504860327-18451-3-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1504860327-18451-1-git-send-email-hemant.agrawal@nxp.com> References: <1503658183-4078-1-git-send-email-hemant.agrawal@nxp.com> <1504860327-18451-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131493339551147251; (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)(39860400002)(39380400002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(2906002)(106466001)(8656003)(68736007)(4326008)(105606002)(2351001)(36756003)(305945005)(54906002)(50226002)(86362001)(77096006)(5003940100001)(85426001)(8936002)(5660300001)(97736004)(50986999)(2950100002)(76176999)(8676002)(48376002)(53936002)(498600001)(6916009)(81166006)(81156014)(189998001)(47776003)(50466002)(104016004)(110136004)(33646002)(356003); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR03MB3316; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD014; 1:LZMP15zmWrjIAif9Qjodm4HfQF0fNH/tVVNUOZtK93/nlrHD8F+Wlr8hRDtT1BPfruv3N39J1be9sJ3Jm3cBLHGgEpgj4rz/eA2SWlPsJkZzOdWGYpdK8tfnYWgqhK64 MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 38702609-8b6e-44e5-a4f3-08d4f69604bd 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:BN6PR03MB3316; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB3316; 3:KBPy/TMY/gM/KYNlOtJJyafdLpLUTMYQKG+yvAb0BRxf0sXfw8Q+3lsU2fnTGzeThiSeyujpEdv2/ZKC008it8UsLgxakAdympwUIQMi7BYJJNco5mbq+K76IlgNOphkpKfV8aJAyCP19wtDq8oIFAsjK7K8WyNVui6UlB9coqbLyGmh+O4wf/Ms0iYwFRnVD922N7TDG+FT+gSjth7yHmMqnfgrZT6Gb9j0Ac7SnQ2P8jy4QvymZdpWcbky6ZzHxk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8NUNSkSas8B4teHQ3iUIuebLhlWxnhsD7NDl4TKyA== 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)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(10201501046)(3002001)(93006095)(93001095)(6055026)(6096035)(20161123559100)(20161123561025)(20161123563025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123565025)(20161123556025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN6PR03MB3316; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN6PR03MB3316; X-Forefront-PRVS: 04244E0DC5 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR03MB3316; 23:I0Pcemhsdwtj5OnKE7dyh/ZbCz/EJ2fcn2b/fLgCK?= 3BZdNRPXIVpBns7yHMWPbmDn30EmCvqIjUQ7AcFUgJqL9UB7uYdDvFvAIF+a4Q70TpXdvsYG7cvk8vIR8SCvU6rUcxIruST7C2sa/Bwcys4lfoutTKXYdPtgIU9jjjozUDESmSB8luLm2lsGA8jjQSK0pVJgjFg+wM+BLzbUghN5JZPTbcG5RMFmGraB1024ARyY6SBFojvkibT4vlgptPyFaBKmFcNUIYC0O+AZqR2ZQJgQeiHvZ69gd16eTVw2MlJtuBL2Q+hffj8vbBdddywFWZETYSNitpSdkz03t3fckHFiL75Ri9SqLOxVIH26tRKuh4cCDPyItWxte7Z6wqUTrbZYaEb5RLf14aRg1wxZQ257dQtXa7pXrusxeYONSt6WWxjbEp8Yr2vFZVlkm5OI3dk8MNb8mPDV13O5qNJUIR/FGykIwcpugfphTLJ34jTwfPCd4gv9akJktcaEgFoMr63xyB5WSK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MkOBgG2JlksPhf05yWb0GMRWFxRCbCTwF9I8pzuCg4lR9w==; 24:pYmXVTd7Oy2CBniEkwtSXRhm3iCFfSg90IVmj5Sp4YN+lE5wEb1/a8fVpe1iiIK0kIzw7uSDQLUjkV6M+AB75gn0ZVEJYKVmEg20lD7rPc4=; 7:cnHI9a1vWfdJIfXzKNXezMS/o9s4TfXRXEfRfAPS0SikBxRL5aVhHDad7X016OBWT0Fo+60+S6ypfzmN5QnlYnaZW4wFZ7S3T52Tszns7YCe2iX3SRuogE0aUPA/bkzS5Fkcs6RJdMn9BcMgQ3KBFh7LsmWlmT1nZGO/rvLe5YyqZPTaJiEKFwsF/fMGIuIeJNb+HiENP92QN5WTwu4jcZct88BzftnzbzbPnIkWgAM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Sep 2017 08:45:54.9587 (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: BN6PR03MB3316 Subject: [dpdk-dev] [PATCH v2 02/30] 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"