From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0067.outbound.protection.outlook.com [104.47.42.67]) by dpdk.org (Postfix) with ESMTP id E43DC58CE for ; Thu, 29 Jun 2017 12:28:51 +0200 (CEST) Received: from BN6PR03CA0019.namprd03.prod.outlook.com (10.168.230.157) by DM5PR03MB3163.namprd03.prod.outlook.com (10.174.190.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1220.11; Thu, 29 Jun 2017 10:28:49 +0000 Received: from BN1AFFO11FD040.protection.gbl (2a01:111:f400:7c10::179) by BN6PR03CA0019.outlook.office365.com (2603:10b6:404:23::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1220.11 via Frontend Transport; Thu, 29 Jun 2017 10:28:49 +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 BN1AFFO11FD040.mail.protection.outlook.com (10.58.52.251) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1199.9 via Frontend Transport; Thu, 29 Jun 2017 10:28:48 +0000 Received: from b27504-OptiPlex-790.ap.freescale.net (b27504-OptiPlex-790.ap.freescale.net [10.232.132.60]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v5TASSbH002766; Thu, 29 Jun 2017 03:28:45 -0700 From: Nipun Gupta To: CC: , , , , , , Nipun Gupta Date: Thu, 29 Jun 2017 15:57:49 +0530 Message-ID: <1498732085-18449-6-git-send-email-nipun.gupta@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1498732085-18449-1-git-send-email-nipun.gupta@nxp.com> References: <1495735361-4840-1-git-send-email-nipun.gupta@nxp.com> <1498732085-18449-1-git-send-email-nipun.gupta@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131432057287723453; (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)(39410400002)(39450400003)(39400400002)(39860400002)(39850400002)(39380400002)(39840400002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(9170700003)(105606002)(8656002)(5660300001)(110136004)(38730400002)(47776003)(36756003)(50466002)(48376002)(97736004)(86362001)(305945005)(4326008)(85426001)(189998001)(104016004)(2950100002)(54906002)(6916009)(2906002)(33646002)(106466001)(2351001)(498600001)(8936002)(8676002)(81166006)(5003940100001)(53936002)(50986999)(76176999)(50226002)(77096006)(356003)(2004002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR03MB3163; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; A:1; MX:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1AFFO11FD040; 1:sUg0KQCKCC9kJynwhvciqmEyCFGX4Ymcw7eG1piV3?= =?us-ascii?Q?INlybHglYKJZSDBPcP0fcsXWY1Z1Y1lPEVZDV8cjtxMRBdtLl4rseI31aKUQ?= =?us-ascii?Q?oT22r9REZewckH4moDrm45x0U/7MqjcJ+G0fa31QX38KGXIzYpnTpLM7P2X8?= =?us-ascii?Q?9ehjO/ZSZgva8laK7SC+5kvm6dwFSMvut8yNicS7iKl/2O8hFRnC/cn1XxYG?= =?us-ascii?Q?JOrPZWw47KfBHeOM6gIPVd064HdB1OF/tjqKsW1BRC6i87X59R3BxpggcOQ6?= =?us-ascii?Q?U3GWbJYmBjpYC8S3eGV9YBubp7+YFFCYEJuk8VnmG3u3+t/p4Pr24HPT6V+t?= =?us-ascii?Q?wOOKiPNe6/obaONKBkgam7QJtwABX0pL745zhO09X8vjTspuSs8gGLJFajxG?= =?us-ascii?Q?rru+czczJNlmHk67vx29I7EC42nfXOwoAzDsvLno+miMgbg0IHFXRky6Hgsb?= =?us-ascii?Q?08lV6s5GLoVIePc8tEYVmTm4GiqV2fleiLvUkgwiUxBmkn3QUQFudofczex/?= =?us-ascii?Q?2/vQfVXfz5RFLzBf7fgg3Zxb97UyDYDiwLZ9fTpNwO31WD1VntTPIVyuXnLJ?= =?us-ascii?Q?VRJRqhToCPDWpdbqsARPo+bk34SnSFDqyRKTbe5mzxivHJvCLJdYLjMIBj82?= =?us-ascii?Q?rehQn7IGX0VqDmqvYU+3IYqrTBt9gwE5SDZt8vcJw7b/rRm8yI1JV8j7eS1r?= =?us-ascii?Q?0PhEccGODAdidP1Tg/uptgmeThEqCbK5AoLoq/8RMHF9tLMG8nMIibhfLi/8?= =?us-ascii?Q?6ySK4n4fgcBaQk/Lx4yAhuSsRCwAdv4Qf/EdtUJisBlj5QOj0/nGwkHbNvl+?= =?us-ascii?Q?ZVSYFIylv09PmNw5QlVD5TkDiaavXMr8HmghqvZFfnfnX9CtK6qjzWHz8Fv2?= =?us-ascii?Q?WgOKDfmsso3KTmoem7ht76tA7Sc8Iwroz2JKwclPin88WLETNDtx5RdcYE8U?= =?us-ascii?Q?p/46WWtVC+9982Lh0NVzXH1FCn9V9TY0Uo63FgHt5wTt8M14Ce9zM349MGgt?= =?us-ascii?Q?ahFHxCb8q735sUqH/+JK5yHHwkfJ+a7wzQ1roIgAAwIj3jjr9XIrry9bCw7e?= =?us-ascii?Q?BaxjZMyCGoWzCfeypQZ2FVyn9u2cWrx+eYoG1vEL+qWE2EgCQ=3D=3D?= MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8a51acbd-ad9d-4ac0-bebd-08d4bed9a11f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:DM5PR03MB3163; X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB3163; 3:hWXsFsuDsgwOL12EN6kju+kNonHtzrdHrCWjd0Tl87o/XCfpKk95D0pDs5If3R5eTlJsgIMQtjFecoAyB9UovC5ufjn08rqfYS7crnvJnT9/FLvR9NMwidvjYLajaubDV6jmEIroxFjdDkxnebNpeCZCf5CjtQ2Gg3ut1s8z+XgejyA9ivtx7sEFm4KHU1njGVVH5XAwlEXNI+xGIbSDzbD1w1vWIwnZNdxOIpQEdGzCfWD0RJtEHF4mNtHAIM3C5OzSfkdsp6CoEShKSM6hTJaXu+Gux7Fbj+sB3eYW1Z1c8jVgFD6auM2Hm8QxaI8LdT8ZETQohwSAt0SBpPzemCA0tT+HE/z7pau4SPtx+JFhdea221t+Dsv4CcSRR/xARkb8tPdANqOlLIbcy3OJ0t0zcCiye04T7tRSuWNt9OKCsNN8pOKvOtzKHKztBpPUI4M+yD7d7mjINduZ3GYM3efcJ0aZ17taQRT6V3y9Pm/yWYiaq+0S8gUX1K2dGHdxzaQsejNoitsTG+PoAunmAYMZ2G3jcgLTh+r8T5wLntGZb15865u1bJnbuzYGGVZskYda4VzyM0EPdVnB/V5wKIv9vcMx7VwlmJD93kKvd1x8Gnqgr+hBehx+k0a8cg8ibG0D9/o7B1rn8nW7Teuz8cR6ZbDSPL9aSynxf0LgjdzW1GCO4+mZiQx8ShGePTBZDju6bTbv87g+uaqI2Wqa6VjvANE0csCwOM65pNuat1J0gCoH0YqHNFkiR2hqBol4Ux/Im8BVl9Q31YHt12aCYILahmxkt6m35MsyQR9JjG1VUQrIFE34yunwlTGNVPMMBSCOd/Hd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7w7zbr6oPb8OoWk1MxKskiR3NO0deXQNWru/2TwtCImBPaYpVDmOqjRFT6uEqss4k7ZcQreHzXwRgArcQX4ioTq0N3358ZQ6abnEciLxToc2U9PqxdkLIxYXucSz43qWBrFWwZYxP29JQKWXSVuHUi+kkaumHu/HSAo6DswkSGPb1xlkmcRzdComKBfnJ9lyoSzlyPCS+6WGN6nvjTMRSBH0hLVs9dVAIC0lcQaOCFFNXrqx2fFYgEMd3m/qCw5l0M6JPR93wcFFOLZ3butomm7JmdEW5ioLpL//tN+HTOXWcwCAdg4TqYhoquGHd1/SFR0YOu0znRwVcn4Hh10YFCny7LhR68KbbFfmwlOudRbzMMNBgkB4CWdJDhD0i7ThrF7+B0iVbyd/B27ksDR2TPeeTIYWIxLy3egIhJ0zqNq5op4xyJnebxI2sOud9uXsCNrpRQ7uL1LVylop9Sq+Zwuu2QLuuMV3zNiptgrgPLlBDTDe78/95PkuOKq/IrI6w+VODMWISsSvyQaAGeMRWIOTfxwWpH/dZf2BmOBUTqjOaPVn2jUW+vfMfdTksj5HK1K3ynt0AVkrt2dZDA4yo38fCd89CbHjQh8jltA7TgUfhRKDgrzzJbC/dKG0vRuslS/TXa3UQVCDV3+f40vXWFhHLMSgXCG/kIrexwQxcn9ArLx+I+ZjxcxFmYWtfMYTxuDVuNZA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(133145235818549)(236129657087228)(185117386973197)(48057245064654)(148574349560750)(275809806118684)(158140799945019)(247924648384137); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(5005006)(13016025)(8121501046)(13018025)(3002001)(10201501046)(100000703101)(100105400095)(93006095)(93001095)(6055026)(6096035)(20161123565025)(20161123563025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123561025)(20161123556025)(20161123559100)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM5PR03MB3163; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM5PR03MB3163; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR03MB3163; 4:dCP/WhVGgdgtRRQYR27TWRb3NnTswpo04Utw9quZeW?= =?us-ascii?Q?c10ULfsD/Yl+U2l47bk1BOqtwVh3yK2Nt21Q9ax85MmawGnTUgO8dXQ6GntS?= =?us-ascii?Q?fgABVycjlwGwPOkbFIefQU8w61UBLVLiW3hxn7fXGdBucb8R4Hpc2uF/A1wq?= =?us-ascii?Q?wzyYjBl6BilLsRuTOe6J3PfO9V2w1q+teSUjnQc2QEuEz4KpKBT1VXvnsfGc?= =?us-ascii?Q?Q7G74VAgEQXw0RZEY0YSyIGvKctC3WooE1yj/WxPnC3Xo9C8ATsEQF3PwzsM?= =?us-ascii?Q?w2P2jpxbF0DdjQrJnktZf21LioEBFPAhC6gWSVFk2L9pazWY5Gr2kcMhaJNe?= =?us-ascii?Q?ub56pExmr0k5wsYrS5E7tvC8hz5FcOxB0dgXtmcjV8DCjGOadjQU+G5nrsSn?= =?us-ascii?Q?Ct3XXC1Uzd/LsIeJBrfop8wEj/6gMfMt8Jc/cVPZhnvnmsF8OYvxxK+sljeq?= =?us-ascii?Q?kgnOX/R2o3mLyMcTlOafFXM1M/hN/V/u/fLqdBeIVgL+IQ5Zt/LpNAc9DrRo?= =?us-ascii?Q?/FyKU6JU2q1KRTg5IpcM2kKO5hLD7XdQlgwRRjv/YA+JzfWWSVehxR0do1HT?= =?us-ascii?Q?OXNB37E7Ye8OFHDI5DYwuup+fF8M4Cdv19i2+4+Uf6I+kOcZ0elG0TarCO4S?= =?us-ascii?Q?gukNr+Iz7YSqfTLpW/vLap8rP5KA/71Rvx/+UayUtKVsrE7xV1Sx7Tjzf/rI?= =?us-ascii?Q?c0z8vRI2SczK6LcogX9rntuyNFNyLIFTmFv9yfzhzVnE0tKK4gXx4msikr0n?= =?us-ascii?Q?kVFagDhtkK+jLl5+gqJyOwuu3v/94OQFgC7S+mLxHT+uuRH4TSmscaZ6TRBb?= =?us-ascii?Q?fe2IyVfywzU83xBBscruUpyBGH2D7XQ2PDuXhAIZPRZdy8ASza2FoLgC4Y6O?= =?us-ascii?Q?dePJZTA9cf+9VExEpFy6Fc1o3vEaCadU34UrCV3qMffzP4lfocCiGWAraQ3N?= =?us-ascii?Q?VYgYr2VARMYtEV5qieW1e+qa/khX2hPTtQRN7QsiREHh3GOhkKw2potAPKJU?= =?us-ascii?Q?Z7faGR4ljjdRFcXp3Ocw/oHFqGiG5c5iLB6ukhZxV8JV+facgA5teJnF5gnw?= =?us-ascii?Q?oTlIxmK60m0SfkxbhxPQFS3giDiaOg83C32Z3C8PrtPh6tEpfgzcXcj/Upr6?= =?us-ascii?Q?MCfUUO3E6nDyFjK/DyfQXXUCmOuCh5xeMfPruhiatiN6kVCxS40cfF/w+84w?= =?us-ascii?Q?nmvbJvIBQFr3suRqX0Bc0QmJ7W6+wIz5CLXccReJARSXScBd3DGSL7nePKte?= =?us-ascii?Q?pw795MCFlqenS0e27nW8Y38swOLaMNx6B3ThJegwrblYj+pn7UnSXpSKxuMT?= =?us-ascii?Q?5Cuy1mAPsZuraaSidJgDNYOWyqiDrba1Z1lXVzWbso9xJYwnd87+FVc2b8og?= =?us-ascii?Q?vWuUZbmtq7r7dAMap/nXbS0Z/bD5OWZfcL9U2tvkhvi3rEmrwfOBsdQr9/Vy?= =?us-ascii?Q?BcaicmTsJ0Q7akBu+sfSus7/R5mC7eK5A9VYxN2ClegJ/H4f9VFS4pmYjxfc?= =?us-ascii?Q?q9dLtx/ttLdmNdgl2NPnCRGeGGLEqOxGU=3D?= X-Forefront-PRVS: 0353563E2B X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR03MB3163; 23:+7TqfNSfcQsxS6ZBnPwgltSwr2I1WeHBMx8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3CYmwS5oXI6SuXIbwchLkGmaojH9ElidfL9tzUIkUwr2YIT?= =?us-ascii?Q?bufIWb2MXD0YGPeISqGF1/OzWkJURvhn6i4Dw65ULwuG2uHsXoaj2bVdZIvP?= =?us-ascii?Q?ToaVN7EUZQlJlqcEQCLoHWQ/sbl1EFfTCekYVGdg8P/iyK9+60BJNshfWXx/?= =?us-ascii?Q?Md2O6oyQHJxWKjsmxUmJlHdGSRcUntj6+sZ6wqyadG60VnWmfANBt6uSG/sA?= =?us-ascii?Q?FS1+Ov4Qdhmx3FmZPRkz4lPpUyQPoxoRnqc3g0lRfSj2XRWfyG6smHYsCi25?= =?us-ascii?Q?3HDjQB8Rdi54N+5Jbp0CmzLjqv0iQaA9D16VfXjVA8auX568+tIY/iHha5RT?= =?us-ascii?Q?IDn4HC8829tRRQeQGna4wO6tLPYQqElWO5ze0Ob?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR03MB3163; 6:/3NGh9Jn5De6WDoAwkjOXvKiFbGm3NyhMo2SE7r6e2?= =?us-ascii?Q?J6+aoxg8VW+oBkUuHBVQL/fpPjEgqLjzt+hiEbejBmP0lwDsoxTA+AVJogGc?= =?us-ascii?Q?TmNnPurBSvf3vt2jXvTBTmvBmEzdcjAlCvejHB5bAa+OIRenaKNy8MppM5Oa?= =?us-ascii?Q?b9NZolbHuUzzKTyPLTjge5psqCZk+bOJTTbqnoT2pIy3cyzK3fsHerbD7I6p?= =?us-ascii?Q?DUql7s+rcFa8D6UnQ3mSofAV8oya456JTZx7wLWu/vOhcDhh93YefmEYTt5P?= =?us-ascii?Q?9mDCijCO2yMx/9yuhvMmKGonfdvmnGGftBFkZrSxZYNTandCwrUVDl7sWxog?= =?us-ascii?Q?NKu2SMyoaRhZ9ivisL7bkpwyEn94LQX9x1jGLI9SPCAVmSFHAtaN8KxJ7EYU?= =?us-ascii?Q?WAok9q1NFVBbQzd/gN+h2liYR0lFPGi5/LqL50KhXqvyP4eqg4l07eu0I2U2?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OLyrVK85/OEd+ZYT/wG2+/hty2+f0yCtjuxZWnS+RUzPbNcMgDPP9SbpRitGvwUbcxVH9mF9PdfHmGrzzo= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jun 2017 10:28:48.4759 (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: DM5PR03MB3163 Subject: [dpdk-dev] [PATCH 05/21 v4] bus/fslmc: adding basic dpcon support 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: Thu, 29 Jun 2017 10:28:53 -0000 Signed-off-by: Nipun Gupta --- drivers/bus/fslmc/Makefile | 3 +- drivers/bus/fslmc/fslmc_vfio.h | 1 + drivers/bus/fslmc/mc/dpcon.c | 230 +++++++++++++++++++++++++++ drivers/bus/fslmc/mc/fsl_dpcon.h | 238 ++++++++++++++++++++++++++++ drivers/bus/fslmc/mc/fsl_dpcon_cmd.h | 175 ++++++++++++++++++++ drivers/bus/fslmc/rte_bus_fslmc_version.map | 2 + 6 files changed, 648 insertions(+), 1 deletion(-) create mode 100644 drivers/bus/fslmc/mc/dpcon.c create mode 100644 drivers/bus/fslmc/mc/fsl_dpcon.h create mode 100644 drivers/bus/fslmc/mc/fsl_dpcon_cmd.h diff --git a/drivers/bus/fslmc/Makefile b/drivers/bus/fslmc/Makefile index 7d9f4b6..38d884e 100644 --- a/drivers/bus/fslmc/Makefile +++ b/drivers/bus/fslmc/Makefile @@ -66,7 +66,8 @@ SRCS-$(CONFIG_RTE_LIBRTE_FSLMC_BUS) += \ mc/dpmng.c \ mc/dpbp.c \ mc/dpio.c \ - mc/mc_sys.c + mc/mc_sys.c \ + mc/dpcon.c \ SRCS-$(CONFIG_RTE_LIBRTE_FSLMC_BUS) += portal/dpaa2_hw_dpio.c SRCS-$(CONFIG_RTE_LIBRTE_FSLMC_BUS) += portal/dpaa2_hw_dpbp.c diff --git a/drivers/bus/fslmc/fslmc_vfio.h b/drivers/bus/fslmc/fslmc_vfio.h index ffed62e..eddce31 100644 --- a/drivers/bus/fslmc/fslmc_vfio.h +++ b/drivers/bus/fslmc/fslmc_vfio.h @@ -39,6 +39,7 @@ #define DPAA2_VENDOR_ID 0x1957 #define DPAA2_MC_DPNI_DEVID 7 #define DPAA2_MC_DPSECI_DEVID 3 +#define DPAA2_MC_DPCON_DEVID 5 #define DPAA2_MC_DPIO_DEVID 9 #define DPAA2_MC_DPBP_DEVID 10 diff --git a/drivers/bus/fslmc/mc/dpcon.c b/drivers/bus/fslmc/mc/dpcon.c new file mode 100644 index 0000000..b078dff --- /dev/null +++ b/drivers/bus/fslmc/mc/dpcon.c @@ -0,0 +1,230 @@ +/* Copyright 2013-2016 Freescale Semiconductor Inc. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of the above-listed copyright holders nor the + * names of any contributors may be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * + * ALTERNATIVELY, this software may be distributed under the terms of the + * GNU General Public License ("GPL") as published by the Free Software + * Foundation, either version 2 of that License or (at your option) any + * later version. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ +#include +#include +#include +#include + +int dpcon_open(struct fsl_mc_io *mc_io, + uint32_t cmd_flags, + int dpcon_id, + uint16_t *token) +{ + struct mc_command cmd = { 0 }; + int err; + + /* prepare command */ + cmd.header = mc_encode_cmd_header(DPCON_CMDID_OPEN, + cmd_flags, + 0); + DPCON_CMD_OPEN(cmd, dpcon_id); + + /* send command to mc*/ + err = mc_send_command(mc_io, &cmd); + if (err) + return err; + + /* retrieve response parameters */ + *token = MC_CMD_HDR_READ_TOKEN(cmd.header); + + return 0; +} + +int dpcon_close(struct fsl_mc_io *mc_io, + uint32_t cmd_flags, + uint16_t token) +{ + struct mc_command cmd = { 0 }; + + /* prepare command */ + cmd.header = mc_encode_cmd_header(DPCON_CMDID_CLOSE, + cmd_flags, + token); + + /* send command to mc*/ + return mc_send_command(mc_io, &cmd); +} + +int dpcon_create(struct fsl_mc_io *mc_io, + uint16_t dprc_token, + uint32_t cmd_flags, + const struct dpcon_cfg *cfg, + uint32_t *obj_id) +{ + struct mc_command cmd = { 0 }; + int err; + + /* prepare command */ + cmd.header = mc_encode_cmd_header(DPCON_CMDID_CREATE, + cmd_flags, + dprc_token); + DPCON_CMD_CREATE(cmd, cfg); + + /* send command to mc*/ + err = mc_send_command(mc_io, &cmd); + if (err) + return err; + + /* retrieve response parameters */ + CMD_CREATE_RSP_GET_OBJ_ID_PARAM0(cmd, *obj_id); + + return 0; +} + +int dpcon_destroy(struct fsl_mc_io *mc_io, + uint16_t dprc_token, + uint32_t cmd_flags, + uint32_t object_id) +{ + struct mc_command cmd = { 0 }; + + /* prepare command */ + cmd.header = mc_encode_cmd_header(DPCON_CMDID_DESTROY, + cmd_flags, + dprc_token); + /* set object id to destroy */ + CMD_DESTROY_SET_OBJ_ID_PARAM0(cmd, object_id); + /* send command to mc*/ + return mc_send_command(mc_io, &cmd); +} + +int dpcon_enable(struct fsl_mc_io *mc_io, + uint32_t cmd_flags, + uint16_t token) +{ + struct mc_command cmd = { 0 }; + + /* prepare command */ + cmd.header = mc_encode_cmd_header(DPCON_CMDID_ENABLE, + cmd_flags, + token); + + /* send command to mc*/ + return mc_send_command(mc_io, &cmd); +} + +int dpcon_disable(struct fsl_mc_io *mc_io, + uint32_t cmd_flags, + uint16_t token) +{ + struct mc_command cmd = { 0 }; + + /* prepare command */ + cmd.header = mc_encode_cmd_header(DPCON_CMDID_DISABLE, + cmd_flags, + token); + + /* send command to mc*/ + return mc_send_command(mc_io, &cmd); +} + +int dpcon_is_enabled(struct fsl_mc_io *mc_io, + uint32_t cmd_flags, + uint16_t token, + int *en) +{ + struct mc_command cmd = { 0 }; + int err; + /* prepare command */ + cmd.header = mc_encode_cmd_header(DPCON_CMDID_IS_ENABLED, + cmd_flags, + token); + + /* send command to mc*/ + err = mc_send_command(mc_io, &cmd); + if (err) + return err; + + /* retrieve response parameters */ + DPCON_RSP_IS_ENABLED(cmd, *en); + + return 0; +} + +int dpcon_reset(struct fsl_mc_io *mc_io, + uint32_t cmd_flags, + uint16_t token) +{ + struct mc_command cmd = { 0 }; + + /* prepare command */ + cmd.header = mc_encode_cmd_header(DPCON_CMDID_RESET, + cmd_flags, token); + + /* send command to mc*/ + return mc_send_command(mc_io, &cmd); +} + +int dpcon_get_attributes(struct fsl_mc_io *mc_io, + uint32_t cmd_flags, + uint16_t token, + struct dpcon_attr *attr) +{ + struct mc_command cmd = { 0 }; + int err; + + /* prepare command */ + cmd.header = mc_encode_cmd_header(DPCON_CMDID_GET_ATTR, + cmd_flags, + token); + + /* send command to mc*/ + err = mc_send_command(mc_io, &cmd); + if (err) + return err; + + /* retrieve response parameters */ + DPCON_RSP_GET_ATTR(cmd, attr); + + return 0; +} + +int dpcon_get_api_version(struct fsl_mc_io *mc_io, + uint32_t cmd_flags, + uint16_t *major_ver, + uint16_t *minor_ver) +{ + struct mc_command cmd = { 0 }; + int err; + + cmd.header = mc_encode_cmd_header(DPCON_CMDID_GET_API_VERSION, + cmd_flags, + 0); + + err = mc_send_command(mc_io, &cmd); + if (err) + return err; + + DPCON_RSP_GET_API_VERSION(cmd, *major_ver, *minor_ver); + + return 0; +} diff --git a/drivers/bus/fslmc/mc/fsl_dpcon.h b/drivers/bus/fslmc/mc/fsl_dpcon.h new file mode 100644 index 0000000..0ed9db5 --- /dev/null +++ b/drivers/bus/fslmc/mc/fsl_dpcon.h @@ -0,0 +1,238 @@ +/*- + * This file is provided under a dual BSD/GPLv2 license. When using or + * redistributing this file, you may do so under either license. + * + * BSD LICENSE + * + * Copyright 2013-2016 Freescale Semiconductor Inc. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of the above-listed copyright holders nor the + * names of any contributors may be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * GPL LICENSE SUMMARY + * + * ALTERNATIVELY, this software may be distributed under the terms of the + * GNU General Public License ("GPL") as published by the Free Software + * Foundation, either version 2 of that License or (at your option) any + * later version. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ +#ifndef __FSL_DPCON_H +#define __FSL_DPCON_H + +/* Data Path Concentrator API + * Contains initialization APIs and runtime control APIs for DPCON + */ + +struct fsl_mc_io; + +/** General DPCON macros */ + +/** + * Use it to disable notifications; see dpcon_set_notification() + */ +#define DPCON_INVALID_DPIO_ID (int)(-1) + +/** + * dpcon_open() - Open a control session for the specified object + * @mc_io: Pointer to MC portal's I/O object + * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' + * @dpcon_id: DPCON unique ID + * @token: Returned token; use in subsequent API calls + * + * This function can be used to open a control session for an + * already created object; an object may have been declared in + * the DPL or by calling the dpcon_create() function. + * This function returns a unique authentication token, + * associated with the specific object ID and the specific MC + * portal; this token must be used in all subsequent commands for + * this specific object. + * + * Return: '0' on Success; Error code otherwise. + */ +int dpcon_open(struct fsl_mc_io *mc_io, + uint32_t cmd_flags, + int dpcon_id, + uint16_t *token); + +/** + * dpcon_close() - Close the control session of the object + * @mc_io: Pointer to MC portal's I/O object + * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' + * @token: Token of DPCON object + * + * After this function is called, no further operations are + * allowed on the object without opening a new control session. + * + * Return: '0' on Success; Error code otherwise. + */ +int dpcon_close(struct fsl_mc_io *mc_io, + uint32_t cmd_flags, + uint16_t token); + +/** + * struct dpcon_cfg - Structure representing DPCON configuration + * @num_priorities: Number of priorities for the DPCON channel (1-8) + */ +struct dpcon_cfg { + uint8_t num_priorities; +}; + +/** + * dpcon_create() - Create the DPCON object. + * @mc_io: Pointer to MC portal's I/O object + * @dprc_token: Parent container token; '0' for default container + * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' + * @cfg: Configuration structure + * @obj_id: returned object id + * + * Create the DPCON object, allocate required resources and + * perform required initialization. + * + * The object can be created either by declaring it in the + * DPL file, or by calling this function. + * + * The function accepts an authentication token of a parent + * container that this object should be assigned to. The token + * can be '0' so the object will be assigned to the default container. + * The newly created object can be opened with the returned + * object id and using the container's associated tokens and MC portals. + * + * Return: '0' on Success; Error code otherwise. + */ +int dpcon_create(struct fsl_mc_io *mc_io, + uint16_t dprc_token, + uint32_t cmd_flags, + const struct dpcon_cfg *cfg, + uint32_t *obj_id); + +/** + * dpcon_destroy() - Destroy the DPCON object and release all its resources. + * @mc_io: Pointer to MC portal's I/O object + * @dprc_token: Parent container token; '0' for default container + * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' + * @object_id: The object id; it must be a valid id within the container that + * created this object; + * + * The function accepts the authentication token of the parent container that + * created the object (not the one that currently owns the object). The object + * is searched within parent using the provided 'object_id'. + * All tokens to the object must be closed before calling destroy. + * + * Return: '0' on Success; error code otherwise. + */ +int dpcon_destroy(struct fsl_mc_io *mc_io, + uint16_t dprc_token, + uint32_t cmd_flags, + uint32_t object_id); + +/** + * dpcon_enable() - Enable the DPCON + * @mc_io: Pointer to MC portal's I/O object + * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' + * @token: Token of DPCON object + * + * Return: '0' on Success; Error code otherwise + */ +int dpcon_enable(struct fsl_mc_io *mc_io, + uint32_t cmd_flags, + uint16_t token); + +/** + * dpcon_disable() - Disable the DPCON + * @mc_io: Pointer to MC portal's I/O object + * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' + * @token: Token of DPCON object + * + * Return: '0' on Success; Error code otherwise + */ +int dpcon_disable(struct fsl_mc_io *mc_io, + uint32_t cmd_flags, + uint16_t token); + +/** + * dpcon_is_enabled() - Check if the DPCON is enabled. + * @mc_io: Pointer to MC portal's I/O object + * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' + * @token: Token of DPCON object + * @en: Returns '1' if object is enabled; '0' otherwise + * + * Return: '0' on Success; Error code otherwise. + */ +int dpcon_is_enabled(struct fsl_mc_io *mc_io, + uint32_t cmd_flags, + uint16_t token, + int *en); + +/** + * dpcon_reset() - Reset the DPCON, returns the object to initial state. + * @mc_io: Pointer to MC portal's I/O object + * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' + * @token: Token of DPCON object + * + * Return: '0' on Success; Error code otherwise. + */ +int dpcon_reset(struct fsl_mc_io *mc_io, + uint32_t cmd_flags, + uint16_t token); + +/** + * struct dpcon_attr - Structure representing DPCON attributes + * @id: DPCON object ID + * @qbman_ch_id: Channel ID to be used by dequeue operation + * @num_priorities: Number of priorities for the DPCON channel (1-8) + */ +struct dpcon_attr { + int id; + uint16_t qbman_ch_id; + uint8_t num_priorities; +}; + +/** + * dpcon_get_attributes() - Retrieve DPCON attributes. + * @mc_io: Pointer to MC portal's I/O object + * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' + * @token: Token of DPCON object + * @attr: Object's attributes + * + * Return: '0' on Success; Error code otherwise. + */ +int dpcon_get_attributes(struct fsl_mc_io *mc_io, + uint32_t cmd_flags, + uint16_t token, + struct dpcon_attr *attr); + +/** + * dpcon_get_api_version() - Get Data Path Concentrator API version + * @mc_io: Pointer to MC portal's I/O object + * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' + * @major_ver: Major version of data path concentrator API + * @minor_ver: Minor version of data path concentrator API + * + * Return: '0' on Success; Error code otherwise. + */ +int dpcon_get_api_version(struct fsl_mc_io *mc_io, + uint32_t cmd_flags, + uint16_t *major_ver, + uint16_t *minor_ver); + +#endif /* __FSL_DPCON_H */ diff --git a/drivers/bus/fslmc/mc/fsl_dpcon_cmd.h b/drivers/bus/fslmc/mc/fsl_dpcon_cmd.h new file mode 100644 index 0000000..f7f7690 --- /dev/null +++ b/drivers/bus/fslmc/mc/fsl_dpcon_cmd.h @@ -0,0 +1,175 @@ +/*- + * This file is provided under a dual BSD/GPLv2 license. When using or + * redistributing this file, you may do so under either license. + * + * BSD LICENSE + * + * Copyright 2013-2016 Freescale Semiconductor Inc. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of the above-listed copyright holders nor the + * names of any contributors may be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * GPL LICENSE SUMMARY + * + * ALTERNATIVELY, this software may be distributed under the terms of the + * GNU General Public License ("GPL") as published by the Free Software + * Foundation, either version 2 of that License or (at your option) any + * later version. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ +#ifndef _FSL_DPCON_CMD_H +#define _FSL_DPCON_CMD_H + +/* DPCON Version */ +#define DPCON_VER_MAJOR 3 +#define DPCON_VER_MINOR 2 + +/* Command IDs */ +#define DPCON_CMDID_CLOSE ((0x800 << 4) | (0x1)) +#define DPCON_CMDID_OPEN ((0x808 << 4) | (0x1)) +#define DPCON_CMDID_CREATE ((0x908 << 4) | (0x1)) +#define DPCON_CMDID_DESTROY ((0x988 << 4) | (0x1)) +#define DPCON_CMDID_GET_API_VERSION ((0xa08 << 4) | (0x1)) + +#define DPCON_CMDID_ENABLE ((0x002 << 4) | (0x1)) +#define DPCON_CMDID_DISABLE ((0x003 << 4) | (0x1)) +#define DPCON_CMDID_GET_ATTR ((0x004 << 4) | (0x1)) +#define DPCON_CMDID_RESET ((0x005 << 4) | (0x1)) +#define DPCON_CMDID_IS_ENABLED ((0x006 << 4) | (0x1)) + +#define DPCON_CMDID_SET_IRQ ((0x010 << 4) | (0x1)) +#define DPCON_CMDID_GET_IRQ ((0x011 << 4) | (0x1)) +#define DPCON_CMDID_SET_IRQ_ENABLE ((0x012 << 4) | (0x1)) +#define DPCON_CMDID_GET_IRQ_ENABLE ((0x013 << 4) | (0x1)) +#define DPCON_CMDID_SET_IRQ_MASK ((0x014 << 4) | (0x1)) +#define DPCON_CMDID_GET_IRQ_MASK ((0x015 << 4) | (0x1)) +#define DPCON_CMDID_GET_IRQ_STATUS ((0x016 << 4) | (0x1)) +#define DPCON_CMDID_CLEAR_IRQ_STATUS ((0x017 << 4) | (0x1)) + +#define DPCON_CMDID_SET_NOTIFICATION ((0x100 << 4) | (0x1)) + +/* cmd, param, offset, width, type, arg_name */ +#define DPCON_CMD_OPEN(cmd, dpcon_id) \ + MC_CMD_OP(cmd, 0, 0, 32, int, dpcon_id) + +/* cmd, param, offset, width, type, arg_name */ +#define DPCON_CMD_CREATE(cmd, cfg) \ + MC_CMD_OP(cmd, 0, 0, 8, uint8_t, cfg->num_priorities) + +/* cmd, param, offset, width, type, arg_name */ +#define DPCON_RSP_IS_ENABLED(cmd, en) \ + MC_RSP_OP(cmd, 0, 0, 1, int, en) + +/* cmd, param, offset, width, type, arg_name */ +#define DPCON_CMD_SET_IRQ(cmd, irq_index, irq_cfg) \ +do { \ + MC_CMD_OP(cmd, 0, 0, 8, uint8_t, irq_index);\ + MC_CMD_OP(cmd, 0, 32, 32, uint32_t, irq_cfg->val);\ + MC_CMD_OP(cmd, 1, 0, 64, uint64_t, irq_cfg->addr);\ + MC_CMD_OP(cmd, 2, 0, 32, int, irq_cfg->irq_num); \ +} while (0) + +/* cmd, param, offset, width, type, arg_name */ +#define DPCON_CMD_GET_IRQ(cmd, irq_index) \ + MC_CMD_OP(cmd, 0, 32, 8, uint8_t, irq_index) + +/* cmd, param, offset, width, type, arg_name */ +#define DPCON_RSP_GET_IRQ(cmd, type, irq_cfg) \ +do { \ + MC_RSP_OP(cmd, 0, 0, 32, uint32_t, irq_cfg->val);\ + MC_RSP_OP(cmd, 1, 0, 64, uint64_t, irq_cfg->addr);\ + MC_RSP_OP(cmd, 2, 0, 32, int, irq_cfg->irq_num); \ + MC_RSP_OP(cmd, 2, 32, 32, int, type);\ +} while (0) + +/* cmd, param, offset, width, type, arg_name */ +#define DPCON_CMD_SET_IRQ_ENABLE(cmd, irq_index, en) \ +do { \ + MC_CMD_OP(cmd, 0, 0, 8, uint8_t, en); \ + MC_CMD_OP(cmd, 0, 32, 8, uint8_t, irq_index);\ +} while (0) + +/* cmd, param, offset, width, type, arg_name */ +#define DPCON_CMD_GET_IRQ_ENABLE(cmd, irq_index) \ + MC_CMD_OP(cmd, 0, 32, 8, uint8_t, irq_index) + +/* cmd, param, offset, width, type, arg_name */ +#define DPCON_RSP_GET_IRQ_ENABLE(cmd, en) \ + MC_RSP_OP(cmd, 0, 0, 8, uint8_t, en) + +/* cmd, param, offset, width, type, arg_name */ +#define DPCON_CMD_SET_IRQ_MASK(cmd, irq_index, mask) \ +do { \ + MC_CMD_OP(cmd, 0, 0, 32, uint32_t, mask); \ + MC_CMD_OP(cmd, 0, 32, 8, uint8_t, irq_index);\ +} while (0) + +/* cmd, param, offset, width, type, arg_name */ +#define DPCON_CMD_GET_IRQ_MASK(cmd, irq_index) \ + MC_CMD_OP(cmd, 0, 32, 8, uint8_t, irq_index) + +/* cmd, param, offset, width, type, arg_name */ +#define DPCON_RSP_GET_IRQ_MASK(cmd, mask) \ + MC_RSP_OP(cmd, 0, 0, 32, uint32_t, mask) + +/* cmd, param, offset, width, type, arg_name */ +#define DPCON_CMD_GET_IRQ_STATUS(cmd, irq_index, status) \ +do { \ + MC_CMD_OP(cmd, 0, 0, 32, uint32_t, status);\ + MC_CMD_OP(cmd, 0, 32, 8, uint8_t, irq_index);\ +} while (0) + +/* cmd, param, offset, width, type, arg_name */ +#define DPCON_RSP_GET_IRQ_STATUS(cmd, status) \ + MC_RSP_OP(cmd, 0, 0, 32, uint32_t, status) + +/* cmd, param, offset, width, type, arg_name */ +#define DPCON_CMD_CLEAR_IRQ_STATUS(cmd, irq_index, status) \ +do { \ + MC_CMD_OP(cmd, 0, 0, 32, uint32_t, status); \ + MC_CMD_OP(cmd, 0, 32, 8, uint8_t, irq_index);\ +} while (0) + +/* cmd, param, offset, width, type, arg_name */ +#define DPCON_RSP_GET_ATTR(cmd, attr) \ +do { \ + MC_RSP_OP(cmd, 0, 0, 32, int, attr->id);\ + MC_RSP_OP(cmd, 0, 32, 16, uint16_t, attr->qbman_ch_id);\ + MC_RSP_OP(cmd, 0, 48, 8, uint8_t, attr->num_priorities);\ +} while (0) + +/* cmd, param, offset, width, type, arg_name */ +#define DPCON_CMD_SET_NOTIFICATION(cmd, cfg) \ +do { \ + MC_CMD_OP(cmd, 0, 0, 32, int, cfg->dpio_id);\ + MC_CMD_OP(cmd, 0, 32, 8, uint8_t, cfg->priority);\ + MC_CMD_OP(cmd, 1, 0, 64, uint64_t, cfg->user_ctx);\ +} while (0) + +/* cmd, param, offset, width, type, arg_name */ +#define DPCON_RSP_GET_API_VERSION(cmd, major, minor) \ +do { \ + MC_RSP_OP(cmd, 0, 0, 16, uint16_t, major);\ + MC_RSP_OP(cmd, 0, 16, 16, uint16_t, minor);\ +} while (0) + +#endif /* _FSL_DPCON_CMD_H */ diff --git a/drivers/bus/fslmc/rte_bus_fslmc_version.map b/drivers/bus/fslmc/rte_bus_fslmc_version.map index 90db78c..783c3e5 100644 --- a/drivers/bus/fslmc/rte_bus_fslmc_version.map +++ b/drivers/bus/fslmc/rte_bus_fslmc_version.map @@ -53,6 +53,8 @@ DPDK_17.05 { DPDK_17.08 { global: + dpcon_open; + dpcon_get_attributes; mc_get_soc_version; mc_get_version; qbman_result_SCN_state_in_mem; -- 1.9.1