From patchwork Tue Feb 7 14:15:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Tudor X-Patchwork-Id: 9560243 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0B5366047A for ; Tue, 7 Feb 2017 14:17:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ED85828426 for ; Tue, 7 Feb 2017 14:17:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E1A1928429; Tue, 7 Feb 2017 14:17:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00 autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CE9FA28426 for ; Tue, 7 Feb 2017 14:17:23 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cb6a8-00045H-TE; Tue, 07 Feb 2017 14:17:20 +0000 Received: from mail-bl2nam02on0075.outbound.protection.outlook.com ([104.47.38.75] helo=NAM02-BL2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cb6Yo-0002XI-Ru for linux-arm-kernel@lists.infradead.org; Tue, 07 Feb 2017 14:16:06 +0000 Received: from BN3PR03CA0093.namprd03.prod.outlook.com (10.174.66.11) by MWHPR03MB2958.namprd03.prod.outlook.com (10.175.136.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16; Tue, 7 Feb 2017 14:15:36 +0000 Received: from BL2FFO11FD040.protection.gbl (2a01:111:f400:7c09::124) by BN3PR03CA0093.outlook.office365.com (2603:10b6:400:4::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16 via Frontend Transport; Tue, 7 Feb 2017 14:15:36 +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; nxp.com; dkim=none (message not signed) header.d=none; 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 BL2FFO11FD040.mail.protection.outlook.com (10.173.161.136) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.888.7 via Frontend Transport; Tue, 7 Feb 2017 14:15:35 +0000 Received: from rhuath.am.freescale.net (rhuath.am.freescale.net [10.81.117.102]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v17EFXHd023812; Tue, 7 Feb 2017 07:15:35 -0700 From: To: Subject: [PATCH 08/10] staging: fsl-mc: dpbp: drop unused APIs Date: Tue, 7 Feb 2017 08:15:28 -0600 Message-ID: <20170207141530.12979-9-laurentiu.tudor@nxp.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170207141530.12979-1-laurentiu.tudor@nxp.com> References: <20170207141530.12979-1-laurentiu.tudor@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131309505358776319; (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)(7916002)(39450400003)(39860400002)(39840400002)(39380400002)(39850400002)(39400400002)(39410400002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(45074003)(48376002)(68736007)(97736004)(189998001)(47776003)(110136004)(85426001)(86362001)(356003)(7416002)(2351001)(5003940100001)(50466002)(38730400002)(4326007)(2876002)(2950100002)(53936002)(50986999)(76176999)(77096006)(36756003)(6666003)(106466001)(626004)(305945005)(105606002)(81156014)(8936002)(8656002)(81166006)(8676002)(86152003)(54906002)(6916009)(1076002)(104016004)(2906002)(50226002)(5660300001)(92566002)(33646002); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR03MB2958; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD040; 1:IacDRwP3l5cRMNcg1332bYQXtmDX8tOc0RAaZv0C8zhn9RJ4gFopXchn2Vllh3r1DoVTYUeR3ABntyN0W6huCmdBNI41G66QgP32CrDgYhFIRYhG5eFkPUZ26jiqUyTdpFkwJAVB/c82OCIDu5+wf0gvAdg1gp9JJyUpCWwxheCzbvNepIH8vmfK4by8VE+4JvDB5gSb7jTL7Gk/wtrrSLTnjfwjoUVQOoifRCboD8xBYBFkPqewrzBIj80CbTWzYxOG3tg15zmLGanXzythrQihtWiAx8PUoRp5khi8OAfXlbIpuVAdgEAz7yNufMUYwX/XDQ+AhVcBYFDXo7FaDJAB5jCuSj+RfPt7tL7uA23if6YmDgnN3brgxuAa64K+JiXIIf/PuWpbVFjyq0pw+j/UY1+lKdBO6+POH3PiHy7HD1UHQPCsoSqfc69vMqMSMzDj+7hpZai1w1PN759rMOSclyxQIIwbiRJtykGy0I+925vIxRumagv+c/3SDO16WF2OKxsomjsbO9nGO4zQ8+qfAluzh0/c+mjUlOY81gt4xe3GgJYbpNpRiYRlDCqFwk6QQ6Zcc1X7XR8ReeQbi4rknqomcqASpy+RsheoWoPYsSkljoqJeXdys8CfYVM7wQyEfN6juiuE7dKIm4fny2F8vRVjpGrOHdJcewo3CEhAM4lSrpVB4fPQ87RDn33sIA1LNl8/MZ41RAqfrOc5tIywINLG8FCrQLhZiSMkj1hDbbfgrXCfmcimc1MQ0PCzMailN0bJddfkZPiVVBI4Yg== MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 11850f6b-2b09-4e11-5b8d-08d44f63c8ec X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:MWHPR03MB2958; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2958; 3:EGoLhLB+obgW5zS6fOXHbNCLrXcToghKvyMFlusMMgqPFpV08364cSr/Wjto4n2oOqdosk/Tmj+mdPMtmMMkKH5c6UvGJQLBEtJ3vFBTVb7oGga1Fdot8gnf8ZFc7VSVoI19xy50oyO3T2tziA7RWXv/OqK/bcC/vMZQutylJppNUkFwLkv7xvdGy5H4iwKX1GZGAlgNezXSZBYEwTgPkO9KRIk0/a8frVZXHTDjmZBqej6EPZrwfCZ23h8Ry1hgH1TlOu/yycx9eQFIYrI/59E44y9m2ZZJ8rhqOUcygCunuC0lf1mjpyEiX93K0BT4+3PEEFjZkB2QklgOFfrIVllGQTGbW9XTpaKhkW3Ra169Lg1LOw0uvZbVcEqSMo4x; 25:50cnNbgeymOaZe8WZ9P6ODL1KD/ycrtTv+av5728PaGGruz7IKck1ZYhIhmqaA/pa1J1Q+jRMnKOcyqtrcdb2oDyO1W15VBGtQX6W2wjowEJjYfOnubHW9XnshcHdv8H2++eA6R63aXmmJ6pJ/1JgQ7F5g2Cw1qIYdd03IN12/ZTXWhPRlgAWJezO1Yf+L1XgpK8b3xVVKHSZuvrwRTK7Fdw1HzdF4qV/TZOCvVJQADBX+ba0qyGFy/ZUcrapU6GPpLkBCvia3ysf8QsTEPmEZvnmCnMjmQ+Kl0HsMWtjnMfLMB8fRtgXa8Nb03WTiILfXu32E7vrtc0JHKGSUWz3uaPSKm6eTQXKsOwRXzLcAb1nczJocGud8dTcGN1YNLhxYpaaYHiBO9GKvwLkDTnilTh3XQAPhcJRaSXAFGpAtL4UtJGJOWrmgz4ccb4pbjR8EYUuxqldKlt8QOFRqWzcQ== X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2958; 31:xK8hW/HfV+hDJ470a+t0K414KY9zZlZ7lzebZ+ZcVnAb9kfaoaWiXndqnRMc8UcsQc4h+kXEAOKwtQbL0ZMb3lKyG+lF1z435zvuj2WIxfypmrb1TmuzDr5/Ks+cJEuue26ZmjSia9D9MCZ5DOKo9enMrOtpQzKM6W1F0gGcdiPC0o5cbNy5u/1MlM+TLoOtclPUlV3HWddTs5RuVxnyMj7HacodpcDMk2GCcJ/9VWbtUT1/md4bV/qVl1xquUOruuSmBcNST8J3YZzIhf/r9GlaS0e8Z+REg3mzh1BS+9E= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(275809806118684); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095060)(601004)(2401047)(13023025)(13024025)(20170203043)(13018025)(13017025)(2017020603029)(13015025)(8121501046)(5005006)(10201501046)(3002001)(6055026)(6096035)(20161123561025)(20161123559025)(20161123556025)(20161123563025)(20161123565025); SRVR:MWHPR03MB2958; BCL:0; PCL:0; RULEID:(400006); SRVR:MWHPR03MB2958; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2958; 4:xHBHt44Yxrl9D7nUSbZZ0vOaxtJmlhMwFfOpOEzdOix9Hc3gdrfH1TH1SI56UEppINKTLn4LTDMtPSa/b/kAVoCF2p/1qma84rTvh6R+FaGXvybfQt8/j/GlHyddr9Tb//fY3hWm9dLRqbkhyfr2ewq+h5RYAwEMrZeD36bVdyhH22qKQ8xqq7mBxRuotU8xEKD1+Y4U+DB0HwxcVfGT1U///S0Payxy7QmyJ4G7Tl2/PH/jzh4KM8ecRscov6KKKBvHaS6PODzdvG6u78hNQWwSfTtgXxMMMjTSAXAzJgtJRIdF/NHOE0wa9a0UDH6BFUiA2axAXOizyTlL0RcILnv04h1Al6g6C/esL9XcMpBFtemcnxq0TFGOlNv7cJrG/tBkD+VW3ymwDiJwprnNtiLMFQ3LWE40AJ/IIqMWyxPIdKH2TvywQg1xFWjek62kWfTBmD+TfyD+j/fRKgtZyd/31Q6zOCOm1l1wBoNOBn+v1sd97hMmvw1g3hoF590FdExYK/eHzOGTRLF2NLdJ0fs31qaeVvPpAl0svzBHvxrIapn5YkDK/vkSts4idTe0ElTb+l0ZC54PGSid7g4FILQXh6gi97dkk2DNmc4XsoWYa1NX0I0MMfrkgE8Qdvgm6D/pp64nKBaBGTec2pROOnfYK962nXvm1qB56N8PnevITS8XR1fqand0hx4uCDlKt2kdhhrktpuu0O2uZqd5AZ0tf+7GqahSp5AF/WxCpZ/rIJjSJ8t9RpLOEAt2TefTbBfrSnFyx9FHCRRSeIBoXLLlQ8/831XQAgwJ1ngkaz6wvT7mUevOu9hRdYKgBWN0qXRAYfZukYACvngXL2EolA== X-Forefront-PRVS: 0211965D06 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR03MB2958; 23:yrMVWSg30PwGxCFJ20Ods5Nc3oJP9+vFT694ndfK/?= =?us-ascii?Q?yJbydi5mtELGATeS7dgrLW/n2UQuEToYtwsez3C653M1Yv/Ohjo8tt8lTrdi?= =?us-ascii?Q?y9jfca69LcL0vaDPg4aGemhqWf9AkJAFaOTCbK9TQlSiVrqufo51XtM3JhL6?= =?us-ascii?Q?yin5IZ2EYf2CzG+JZGkGq7txKTi4d0eFANY/waheXryI0UXMA7RN+inSdUXY?= =?us-ascii?Q?FXkuMQqzrRKF1l1Kl0R0P6sn3Z6PkbGhqAUGGOkXc59GWbJI/upUenAbovnx?= =?us-ascii?Q?n1V1oo2s/2ktQ4TN6mdHROy8gzENvLKIQPDhweCgqfRc+S+9tuDnPDugKl6M?= =?us-ascii?Q?7UeC81M5FYtgVetzxi2s5PPlmPwmrJhSoaUO83cmoc39z2nJZGMGPFkIV4/p?= =?us-ascii?Q?MEAfif4AfGUxIB1V47Tq2TABoflUvhFS3K13wWH2upEOUFzj8tvGGmIcXG0v?= =?us-ascii?Q?hveg2cenTwled+W7IwljmJWTVba2ZNwhOCJnE+hv2UJOVhlNkxNm/LAYi/Yk?= =?us-ascii?Q?CHQx+gOJfsEosd1vl3GVfTAs5bLAF/XWtWIpciyeOePnRnpJMjilXbiwFfG7?= =?us-ascii?Q?LR9pZ+RCOnbG7PLfMdNW12aD50r2CTRGEZJzhKKHQ2r52h0C6wKDZlYpQbqi?= =?us-ascii?Q?X+0BOLOu18MU73WWFerBj4PYp+8AOruHhsqmUiNxN5v+n7sOzthB4TWgDDFI?= =?us-ascii?Q?vxBCpFdFCbRiW55V972ILa6acQshMvFCjpyT1bQLaVJNvlTtFRWCQdD6aZEF?= =?us-ascii?Q?2DM/pyrhopE7ZGCUaKRfhWisT9jR+eZPQxLspLWw1f6rif3D/V/egfEYjcuh?= =?us-ascii?Q?QCYrnnzQuSadpbsQm+3cML+J9hoxFPGKlNBWttm9OO8dS1WaDWQL2TUVcjFF?= =?us-ascii?Q?Pr5LCwuyiiOgstfHu4ZdU96BfD+5i9vscQ35KPmwPcK91TZu5eWM9jnVUE1Z?= =?us-ascii?Q?E3/hyTV94hiaumRfQZKJSe3qJqS1fp+q+Iq9Jz8TrhAPJY2HoiO13Rco7hWA?= =?us-ascii?Q?Gwop1HsPSLCEUvmNz2iYZgQrLvumPhTvcmeT97DZBk4vCYxJ8gSfOCWOjh5T?= =?us-ascii?Q?e3MeJ7NdRO4YGWdhadlcLMuNU7h2DJYA6hkmaKQvtJpFYUqbyLKiY4PyYtPi?= =?us-ascii?Q?8vhV69ugw3AvxtPOrSY+vFwo91nE0tdxnSRrCxB7hjRFuBmZaZNsFpUBEwZU?= =?us-ascii?Q?8LT8/lMmolgudnVLocnA35X3Ru0Tjmlo6DVcze7eZxbG81BYE9A3MO7V5ruv?= =?us-ascii?Q?MYtANa+mDY/TSoDmPCb/WV33xDfvCq6DPB5/ZJ5cyk04L98thOk6uvNuwLlg?= =?us-ascii?Q?8VoTUdpzZu1bS+KqrjzP/1Ovoxh8E3zNyAUhCFPKJg31w+uiJidl6oR1BqZQ?= =?us-ascii?Q?0XMdzwCK+JaPcWzEjOVylBtnAwaUQDjLvaqy6IPtd95GgBhQ1FwzaAMjW1Wy?= =?us-ascii?Q?cZlsndIJQ=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2958; 6:pMzctP5VM3aQzLEpOne1edMY3G9jVfqegKKQRAzBM/E3ZZLIubmZmvMvD+Rwh+AZOIaGlqfuhqzRoMo+ypH1vfFbuxnv7hKuNg5rxhfFSJSvcH3ypFuu9JQR8uAcTf9GfYVphz6fpgkIEbE18D7FVtUEo2qGx3uud5hj+zOzKInR0odhJ0ILvotc5gQV5BWE2OG5zHr1pVYscAKEW5S5ljEAJFOAWFH+0KQsTgjku+KxWk4Uh8NftD0+zaGX5isf37YDTmmA2kPDYXqm6nZpaih05IktCbghYebHhcWiEdvV4iUrO26+pik5MyTtAgmduCIgCz8rURY0Us6TeKjyKqnY0k6kI0UEomEVAUz5a5QwLiHh42okyapz/whjyGW0ZLFx52s+QLvb9rKhG3DemuHlWoYj3JhnU41iD14tvHQ=; 5:bhhRY5fXnpcWmnD0SSyh9/TUQPK6aWb1B5WtDU9ozJukt19sC6OJapsKtgNS/fPnafF4VMviNICT3bqkO2Syefweqb+cPJcUyi03MSJy+jJYb0clWbOdwkXNE9htsbp1Y55mo2nDy7oBxt4HEwpZIfJ0EBoYGn+ecbh70ha5X3dzO77MWsn8BH16A0UPz0/l; 24:sIlWaoGsPiODD8UBQViYM9e+nf826V2tAfAootS8dhgDOduutoBBQWYhwZrf6Z8zxSfwMspUzqayX4gdj9uyUVMhpnyN76gqZ8hUnkXw6fQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2958; 7:pHUL4xxzz54f7KQOgSj4mSjeuRuW9NVbMa+vC+bfD2M8N6dwoqWvW/ZaIUtVV+thL4PkVSXWXt/Ufibg7h2dS3taJ5shm0uhOrxFg+3/DiL7DhGLFkmIUCm/zJYv9Fu4t9B8lH2R/MWgwWUXQAOH/C0tRiZ2a1Na4aw23bjZ+emSL5tRtLgGBDO3kAWyU6C5yl9dkb8bZb/onmZZZzBEaLFBZhVMRAcVnUuEiitjZBcgq6xExfTMCskc13bmtS6njb2Y4XOK1XLBgvcwQHD1zJcX93GZF86AbYnQOX8DgMEu+/FtVKimb4NUXTopfnFq076DVSBtClI6/1bOYcfa2F3FOuLv0I0cUofNiliC4UuuRNa/FuKESIHwlVxswmJyCzbWvBPGluXHq86Z/qRS5z3pyMtR/KgX5WStItvsXOFTBmLcUaLba7eHKRXful2xuCcznfuPY+vXnyVKPsxZLxbAqUjIik2xbiFEz6rQA7EbGmub4hERWK2QUA2TDDc8kw5UfOKIQwGsYy6l37r44w== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Feb 2017 14:15:35.5656 (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: MWHPR03MB2958 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170207_061559_302476_2D4EC907 X-CRM114-Status: GOOD ( 13.48 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devel@driverdev.osuosl.org, arnd@arndb.de, ruxandra.radulescu@nxp.com, roy.pledge@nxp.com, linux-kernel@vger.kernel.org, agraf@suse.de, catalin.horghidan@nxp.com, linux-arm-kernel@lists.infradead.org, ioana.ciornei@nxp.com, leoyang.li@nxp.com, bharat.bhushan@nxp.com, stuart.yoder@nxp.com, Laurentiu Tudor Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Laurentiu Tudor Leave only APIs that will be used in upcomming drivers. The patch is mostly mechanical, with a couple exceptions: - getters/setters were not removed even if only one of them is being used - versioning API was also left in place They will be added back on an as-needed basis. Signed-off-by: Laurentiu Tudor --- drivers/staging/fsl-mc/bus/dpbp-cmd.h | 116 --------- drivers/staging/fsl-mc/bus/dpbp.c | 449 ---------------------------------- drivers/staging/fsl-mc/include/dpbp.h | 129 ---------- 3 files changed, 694 deletions(-) diff --git a/drivers/staging/fsl-mc/bus/dpbp-cmd.h b/drivers/staging/fsl-mc/bus/dpbp-cmd.h index 7d86539..8aa6545 100644 --- a/drivers/staging/fsl-mc/bus/dpbp-cmd.h +++ b/drivers/staging/fsl-mc/bus/dpbp-cmd.h @@ -45,8 +45,6 @@ /* Command IDs */ #define DPBP_CMDID_CLOSE DPBP_CMD(0x800) #define DPBP_CMDID_OPEN DPBP_CMD(0x804) -#define DPBP_CMDID_CREATE DPBP_CMD(0x904) -#define DPBP_CMDID_DESTROY DPBP_CMD(0x984) #define DPBP_CMDID_GET_API_VERSION DPBP_CMD(0xa04) #define DPBP_CMDID_ENABLE DPBP_CMD(0x002) @@ -55,18 +53,6 @@ #define DPBP_CMDID_RESET DPBP_CMD(0x005) #define DPBP_CMDID_IS_ENABLED DPBP_CMD(0x006) -#define DPBP_CMDID_SET_IRQ DPBP_CMD(0x010) -#define DPBP_CMDID_GET_IRQ DPBP_CMD(0x011) -#define DPBP_CMDID_SET_IRQ_ENABLE DPBP_CMD(0x012) -#define DPBP_CMDID_GET_IRQ_ENABLE DPBP_CMD(0x013) -#define DPBP_CMDID_SET_IRQ_MASK DPBP_CMD(0x014) -#define DPBP_CMDID_GET_IRQ_MASK DPBP_CMD(0x015) -#define DPBP_CMDID_GET_IRQ_STATUS DPBP_CMD(0x016) -#define DPBP_CMDID_CLEAR_IRQ_STATUS DPBP_CMD(0x017) - -#define DPBP_CMDID_SET_NOTIFICATIONS DPBP_CMD(0x01b0) -#define DPBP_CMDID_GET_NOTIFICATIONS DPBP_CMD(0x01b1) - struct dpbp_cmd_open { __le32 dpbp_id; }; @@ -81,76 +67,6 @@ struct dpbp_rsp_is_enabled { u8 enabled; }; -struct dpbp_cmd_set_irq { - /* cmd word 0 */ - u8 irq_index; - u8 pad[3]; - __le32 irq_val; - /* cmd word 1 */ - __le64 irq_addr; - /* cmd word 2 */ - __le32 irq_num; -}; - -struct dpbp_cmd_get_irq { - __le32 pad; - u8 irq_index; -}; - -struct dpbp_rsp_get_irq { - /* response word 0 */ - __le32 irq_val; - __le32 pad; - /* response word 1 */ - __le64 irq_addr; - /* response word 2 */ - __le32 irq_num; - __le32 type; -}; - -struct dpbp_cmd_set_irq_enable { - u8 enable; - u8 pad[3]; - u8 irq_index; -}; - -struct dpbp_cmd_get_irq_enable { - __le32 pad; - u8 irq_index; -}; - -struct dpbp_rsp_get_irq_enable { - u8 enabled; -}; - -struct dpbp_cmd_set_irq_mask { - __le32 mask; - u8 irq_index; -}; - -struct dpbp_cmd_get_irq_mask { - __le32 pad; - u8 irq_index; -}; - -struct dpbp_rsp_get_irq_mask { - __le32 mask; -}; - -struct dpbp_cmd_get_irq_status { - __le32 status; - u8 irq_index; -}; - -struct dpbp_rsp_get_irq_status { - __le32 status; -}; - -struct dpbp_cmd_clear_irq_status { - __le32 status; - u8 irq_index; -}; - struct dpbp_rsp_get_attributes { /* response word 0 */ __le16 pad; @@ -161,36 +77,4 @@ struct dpbp_rsp_get_attributes { __le16 version_minor; }; -struct dpbp_cmd_set_notifications { - /* cmd word 0 */ - __le32 depletion_entry; - __le32 depletion_exit; - /* cmd word 1 */ - __le32 surplus_entry; - __le32 surplus_exit; - /* cmd word 2 */ - __le16 options; - __le16 pad[3]; - /* cmd word 3 */ - __le64 message_ctx; - /* cmd word 4 */ - __le64 message_iova; -}; - -struct dpbp_rsp_get_notifications { - /* response word 0 */ - __le32 depletion_entry; - __le32 depletion_exit; - /* response word 1 */ - __le32 surplus_entry; - __le32 surplus_exit; - /* response word 2 */ - __le16 options; - __le16 pad[3]; - /* response word 3 */ - __le64 message_ctx; - /* response word 4 */ - __le64 message_iova; -}; - #endif /* _FSL_DPBP_CMD_H */ diff --git a/drivers/staging/fsl-mc/bus/dpbp.c b/drivers/staging/fsl-mc/bus/dpbp.c index cf4782f..1fa7257 100644 --- a/drivers/staging/fsl-mc/bus/dpbp.c +++ b/drivers/staging/fsl-mc/bus/dpbp.c @@ -106,77 +106,6 @@ int dpbp_close(struct fsl_mc_io *mc_io, EXPORT_SYMBOL(dpbp_close); /** - * dpbp_create() - Create the DPBP 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; use in subsequent API calls - * - * Create the DPBP object, allocate required resources and - * perform required initialization. - * - * This function accepts an authentication token of a parent - * container that this object should be assigned to and returns - * an object id. This object_id will be used in all subsequent calls to - * this specific object. - * - * Return: '0' on Success; Error code otherwise. - */ -int dpbp_create(struct fsl_mc_io *mc_io, - u16 dprc_token, - u32 cmd_flags, - const struct dpbp_cfg *cfg, - u32 *obj_id) -{ - struct mc_command cmd = { 0 }; - int err; - - (void)(cfg); /* unused */ - - /* prepare command */ - cmd.header = mc_encode_cmd_header(DPBP_CMDID_CREATE, - cmd_flags, dprc_token); - - /* send command to mc*/ - err = mc_send_command(mc_io, &cmd); - if (err) - return err; - - /* retrieve response parameters */ - *obj_id = mc_cmd_read_object_id(&cmd); - - return 0; -} - -/** - * dpbp_destroy() - Destroy the DPBP 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_' - * @obj_id: ID of DPBP object - * - * Return: '0' on Success; error code otherwise. - */ -int dpbp_destroy(struct fsl_mc_io *mc_io, - u16 dprc_token, - u32 cmd_flags, - u32 obj_id) -{ - struct dpbp_cmd_destroy *cmd_params; - struct mc_command cmd = { 0 }; - - /* prepare command */ - cmd.header = mc_encode_cmd_header(DPBP_CMDID_DESTROY, - cmd_flags, dprc_token); - cmd_params = (struct dpbp_cmd_destroy *)cmd.params; - cmd_params->object_id = cpu_to_le32(obj_id); - - /* send command to mc*/ - return mc_send_command(mc_io, &cmd); -} - -/** * dpbp_enable() - Enable the DPBP. * @mc_io: Pointer to MC portal's I/O object * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' @@ -278,310 +207,6 @@ int dpbp_reset(struct fsl_mc_io *mc_io, } /** - * dpbp_set_irq() - Set IRQ information for the DPBP to trigger an interrupt. - * @mc_io: Pointer to MC portal's I/O object - * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' - * @token: Token of DPBP object - * @irq_index: Identifies the interrupt index to configure - * @irq_cfg: IRQ configuration - * - * Return: '0' on Success; Error code otherwise. - */ -int dpbp_set_irq(struct fsl_mc_io *mc_io, - u32 cmd_flags, - u16 token, - u8 irq_index, - struct dpbp_irq_cfg *irq_cfg) -{ - struct mc_command cmd = { 0 }; - struct dpbp_cmd_set_irq *cmd_params; - - /* prepare command */ - cmd.header = mc_encode_cmd_header(DPBP_CMDID_SET_IRQ, - cmd_flags, token); - cmd_params = (struct dpbp_cmd_set_irq *)cmd.params; - cmd_params->irq_index = irq_index; - cmd_params->irq_val = cpu_to_le32(irq_cfg->val); - cmd_params->irq_addr = cpu_to_le64(irq_cfg->addr); - cmd_params->irq_num = cpu_to_le32(irq_cfg->irq_num); - - /* send command to mc*/ - return mc_send_command(mc_io, &cmd); -} - -/** - * dpbp_get_irq() - Get IRQ information from the DPBP. - * @mc_io: Pointer to MC portal's I/O object - * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' - * @token: Token of DPBP object - * @irq_index: The interrupt index to configure - * @type: Interrupt type: 0 represents message interrupt - * type (both irq_addr and irq_val are valid) - * @irq_cfg: IRQ attributes - * - * Return: '0' on Success; Error code otherwise. - */ -int dpbp_get_irq(struct fsl_mc_io *mc_io, - u32 cmd_flags, - u16 token, - u8 irq_index, - int *type, - struct dpbp_irq_cfg *irq_cfg) -{ - struct mc_command cmd = { 0 }; - struct dpbp_cmd_get_irq *cmd_params; - struct dpbp_rsp_get_irq *rsp_params; - int err; - - /* prepare command */ - cmd.header = mc_encode_cmd_header(DPBP_CMDID_GET_IRQ, - cmd_flags, token); - cmd_params = (struct dpbp_cmd_get_irq *)cmd.params; - cmd_params->irq_index = irq_index; - - /* send command to mc*/ - err = mc_send_command(mc_io, &cmd); - if (err) - return err; - - /* retrieve response parameters */ - rsp_params = (struct dpbp_rsp_get_irq *)cmd.params; - irq_cfg->val = le32_to_cpu(rsp_params->irq_val); - irq_cfg->addr = le64_to_cpu(rsp_params->irq_addr); - irq_cfg->irq_num = le32_to_cpu(rsp_params->irq_num); - *type = le32_to_cpu(rsp_params->type); - - return 0; -} - -/** - * dpbp_set_irq_enable() - Set overall interrupt 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 DPBP object - * @irq_index: The interrupt index to configure - * @en: Interrupt state - enable = 1, disable = 0 - * - * Allows GPP software to control when interrupts are generated. - * Each interrupt can have up to 32 causes. The enable/disable control's the - * overall interrupt state. if the interrupt is disabled no causes will cause - * an interrupt. - * - * Return: '0' on Success; Error code otherwise. - */ -int dpbp_set_irq_enable(struct fsl_mc_io *mc_io, - u32 cmd_flags, - u16 token, - u8 irq_index, - u8 en) -{ - struct mc_command cmd = { 0 }; - struct dpbp_cmd_set_irq_enable *cmd_params; - - /* prepare command */ - cmd.header = mc_encode_cmd_header(DPBP_CMDID_SET_IRQ_ENABLE, - cmd_flags, token); - cmd_params = (struct dpbp_cmd_set_irq_enable *)cmd.params; - cmd_params->enable = en & DPBP_ENABLE; - cmd_params->irq_index = irq_index; - - /* send command to mc*/ - return mc_send_command(mc_io, &cmd); -} - -/** - * dpbp_get_irq_enable() - Get overall interrupt 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 DPBP object - * @irq_index: The interrupt index to configure - * @en: Returned interrupt state - enable = 1, disable = 0 - * - * Return: '0' on Success; Error code otherwise. - */ -int dpbp_get_irq_enable(struct fsl_mc_io *mc_io, - u32 cmd_flags, - u16 token, - u8 irq_index, - u8 *en) -{ - struct mc_command cmd = { 0 }; - struct dpbp_cmd_get_irq_enable *cmd_params; - struct dpbp_rsp_get_irq_enable *rsp_params; - int err; - - /* prepare command */ - cmd.header = mc_encode_cmd_header(DPBP_CMDID_GET_IRQ_ENABLE, - cmd_flags, token); - cmd_params = (struct dpbp_cmd_get_irq_enable *)cmd.params; - cmd_params->irq_index = irq_index; - - /* send command to mc*/ - err = mc_send_command(mc_io, &cmd); - if (err) - return err; - - /* retrieve response parameters */ - rsp_params = (struct dpbp_rsp_get_irq_enable *)cmd.params; - *en = rsp_params->enabled & DPBP_ENABLE; - return 0; -} - -/** - * dpbp_set_irq_mask() - Set interrupt mask. - * @mc_io: Pointer to MC portal's I/O object - * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' - * @token: Token of DPBP object - * @irq_index: The interrupt index to configure - * @mask: Event mask to trigger interrupt; - * each bit: - * 0 = ignore event - * 1 = consider event for asserting IRQ - * - * Every interrupt can have up to 32 causes and the interrupt model supports - * masking/unmasking each cause independently - * - * Return: '0' on Success; Error code otherwise. - */ -int dpbp_set_irq_mask(struct fsl_mc_io *mc_io, - u32 cmd_flags, - u16 token, - u8 irq_index, - u32 mask) -{ - struct mc_command cmd = { 0 }; - struct dpbp_cmd_set_irq_mask *cmd_params; - - /* prepare command */ - cmd.header = mc_encode_cmd_header(DPBP_CMDID_SET_IRQ_MASK, - cmd_flags, token); - cmd_params = (struct dpbp_cmd_set_irq_mask *)cmd.params; - cmd_params->mask = cpu_to_le32(mask); - cmd_params->irq_index = irq_index; - - /* send command to mc*/ - return mc_send_command(mc_io, &cmd); -} - -/** - * dpbp_get_irq_mask() - Get interrupt mask. - * @mc_io: Pointer to MC portal's I/O object - * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' - * @token: Token of DPBP object - * @irq_index: The interrupt index to configure - * @mask: Returned event mask to trigger interrupt - * - * Every interrupt can have up to 32 causes and the interrupt model supports - * masking/unmasking each cause independently - * - * Return: '0' on Success; Error code otherwise. - */ -int dpbp_get_irq_mask(struct fsl_mc_io *mc_io, - u32 cmd_flags, - u16 token, - u8 irq_index, - u32 *mask) -{ - struct mc_command cmd = { 0 }; - struct dpbp_cmd_get_irq_mask *cmd_params; - struct dpbp_rsp_get_irq_mask *rsp_params; - int err; - - /* prepare command */ - cmd.header = mc_encode_cmd_header(DPBP_CMDID_GET_IRQ_MASK, - cmd_flags, token); - cmd_params = (struct dpbp_cmd_get_irq_mask *)cmd.params; - cmd_params->irq_index = irq_index; - - /* send command to mc*/ - err = mc_send_command(mc_io, &cmd); - if (err) - return err; - - /* retrieve response parameters */ - rsp_params = (struct dpbp_rsp_get_irq_mask *)cmd.params; - *mask = le32_to_cpu(rsp_params->mask); - - return 0; -} - -/** - * dpbp_get_irq_status() - Get the current status of any pending interrupts. - * - * @mc_io: Pointer to MC portal's I/O object - * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' - * @token: Token of DPBP object - * @irq_index: The interrupt index to configure - * @status: Returned interrupts status - one bit per cause: - * 0 = no interrupt pending - * 1 = interrupt pending - * - * Return: '0' on Success; Error code otherwise. - */ -int dpbp_get_irq_status(struct fsl_mc_io *mc_io, - u32 cmd_flags, - u16 token, - u8 irq_index, - u32 *status) -{ - struct mc_command cmd = { 0 }; - struct dpbp_cmd_get_irq_status *cmd_params; - struct dpbp_rsp_get_irq_status *rsp_params; - int err; - - /* prepare command */ - cmd.header = mc_encode_cmd_header(DPBP_CMDID_GET_IRQ_STATUS, - cmd_flags, token); - cmd_params = (struct dpbp_cmd_get_irq_status *)cmd.params; - cmd_params->status = cpu_to_le32(*status); - cmd_params->irq_index = irq_index; - - /* send command to mc*/ - err = mc_send_command(mc_io, &cmd); - if (err) - return err; - - /* retrieve response parameters */ - rsp_params = (struct dpbp_rsp_get_irq_status *)cmd.params; - *status = le32_to_cpu(rsp_params->status); - - return 0; -} - -/** - * dpbp_clear_irq_status() - Clear a pending interrupt's status - * - * @mc_io: Pointer to MC portal's I/O object - * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' - * @token: Token of DPBP object - * @irq_index: The interrupt index to configure - * @status: Bits to clear (W1C) - one bit per cause: - * 0 = don't change - * 1 = clear status bit - * - * Return: '0' on Success; Error code otherwise. - */ -int dpbp_clear_irq_status(struct fsl_mc_io *mc_io, - u32 cmd_flags, - u16 token, - u8 irq_index, - u32 status) -{ - struct mc_command cmd = { 0 }; - struct dpbp_cmd_clear_irq_status *cmd_params; - - /* prepare command */ - cmd.header = mc_encode_cmd_header(DPBP_CMDID_CLEAR_IRQ_STATUS, - cmd_flags, token); - cmd_params = (struct dpbp_cmd_clear_irq_status *)cmd.params; - cmd_params->status = cpu_to_le32(status); - cmd_params->irq_index = irq_index; - - /* send command to mc*/ - return mc_send_command(mc_io, &cmd); -} - -/** * dpbp_get_attributes - Retrieve DPBP attributes. * * @mc_io: Pointer to MC portal's I/O object @@ -619,80 +244,6 @@ int dpbp_get_attributes(struct fsl_mc_io *mc_io, EXPORT_SYMBOL(dpbp_get_attributes); /** - * dpbp_set_notifications() - Set notifications towards software - * @mc_io: Pointer to MC portal's I/O object - * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' - * @token: Token of DPBP object - * @cfg: notifications configuration - * - * Return: '0' on Success; Error code otherwise. - */ -int dpbp_set_notifications(struct fsl_mc_io *mc_io, - u32 cmd_flags, - u16 token, - struct dpbp_notification_cfg *cfg) -{ - struct mc_command cmd = { 0 }; - struct dpbp_cmd_set_notifications *cmd_params; - - /* prepare command */ - cmd.header = mc_encode_cmd_header(DPBP_CMDID_SET_NOTIFICATIONS, - cmd_flags, token); - cmd_params = (struct dpbp_cmd_set_notifications *)cmd.params; - cmd_params->depletion_entry = cpu_to_le32(cfg->depletion_entry); - cmd_params->depletion_exit = cpu_to_le32(cfg->depletion_exit); - cmd_params->surplus_entry = cpu_to_le32(cfg->surplus_entry); - cmd_params->surplus_exit = cpu_to_le32(cfg->surplus_exit); - cmd_params->options = cpu_to_le16(cfg->options); - cmd_params->message_ctx = cpu_to_le64(cfg->message_ctx); - cmd_params->message_iova = cpu_to_le64(cfg->message_iova); - - /* send command to mc*/ - return mc_send_command(mc_io, &cmd); -} - -/** - * dpbp_get_notifications() - Get the notifications configuration - * @mc_io: Pointer to MC portal's I/O object - * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' - * @token: Token of DPBP object - * @cfg: notifications configuration - * - * Return: '0' on Success; Error code otherwise. - */ -int dpbp_get_notifications(struct fsl_mc_io *mc_io, - u32 cmd_flags, - u16 token, - struct dpbp_notification_cfg *cfg) -{ - struct mc_command cmd = { 0 }; - struct dpbp_rsp_get_notifications *rsp_params; - int err; - - /* prepare command */ - cmd.header = mc_encode_cmd_header(DPBP_CMDID_GET_NOTIFICATIONS, - cmd_flags, - token); - - /* send command to mc*/ - err = mc_send_command(mc_io, &cmd); - if (err) - return err; - - /* retrieve response parameters */ - rsp_params = (struct dpbp_rsp_get_notifications *)cmd.params; - cfg->depletion_entry = le32_to_cpu(rsp_params->depletion_entry); - cfg->depletion_exit = le32_to_cpu(rsp_params->depletion_exit); - cfg->surplus_entry = le32_to_cpu(rsp_params->surplus_entry); - cfg->surplus_exit = le32_to_cpu(rsp_params->surplus_exit); - cfg->options = le16_to_cpu(rsp_params->options); - cfg->message_ctx = le64_to_cpu(rsp_params->message_ctx); - cfg->message_iova = le64_to_cpu(rsp_params->message_iova); - - return 0; -} - -/** * dpbp_get_api_version - Get Data Path Buffer Pool API version * @mc_io: Pointer to Mc portal's I/O object * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' diff --git a/drivers/staging/fsl-mc/include/dpbp.h b/drivers/staging/fsl-mc/include/dpbp.h index bf34b1e..e9e04cc 100644 --- a/drivers/staging/fsl-mc/include/dpbp.h +++ b/drivers/staging/fsl-mc/include/dpbp.h @@ -49,25 +49,6 @@ int dpbp_close(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token); -/** - * struct dpbp_cfg - Structure representing DPBP configuration - * @options: place holder - */ -struct dpbp_cfg { - u32 options; -}; - -int dpbp_create(struct fsl_mc_io *mc_io, - u16 dprc_token, - u32 cmd_flags, - const struct dpbp_cfg *cfg, - u32 *obj_id); - -int dpbp_destroy(struct fsl_mc_io *mc_io, - u16 dprc_token, - u32 cmd_flags, - u32 obj_id); - int dpbp_enable(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token); @@ -86,67 +67,6 @@ int dpbp_reset(struct fsl_mc_io *mc_io, u16 token); /** - * struct dpbp_irq_cfg - IRQ configuration - * @addr: Address that must be written to signal a message-based interrupt - * @val: Value to write into irq_addr address - * @irq_num: A user defined number associated with this IRQ - */ -struct dpbp_irq_cfg { - u64 addr; - u32 val; - int irq_num; -}; - -int dpbp_set_irq(struct fsl_mc_io *mc_io, - u32 cmd_flags, - u16 token, - u8 irq_index, - struct dpbp_irq_cfg *irq_cfg); - -int dpbp_get_irq(struct fsl_mc_io *mc_io, - u32 cmd_flags, - u16 token, - u8 irq_index, - int *type, - struct dpbp_irq_cfg *irq_cfg); - -int dpbp_set_irq_enable(struct fsl_mc_io *mc_io, - u32 cmd_flags, - u16 token, - u8 irq_index, - u8 en); - -int dpbp_get_irq_enable(struct fsl_mc_io *mc_io, - u32 cmd_flags, - u16 token, - u8 irq_index, - u8 *en); - -int dpbp_set_irq_mask(struct fsl_mc_io *mc_io, - u32 cmd_flags, - u16 token, - u8 irq_index, - u32 mask); - -int dpbp_get_irq_mask(struct fsl_mc_io *mc_io, - u32 cmd_flags, - u16 token, - u8 irq_index, - u32 *mask); - -int dpbp_get_irq_status(struct fsl_mc_io *mc_io, - u32 cmd_flags, - u16 token, - u8 irq_index, - u32 *status); - -int dpbp_clear_irq_status(struct fsl_mc_io *mc_io, - u32 cmd_flags, - u16 token, - u8 irq_index, - u32 status); - -/** * struct dpbp_attr - Structure representing DPBP attributes * @id: DPBP object ID * @bpid: Hardware buffer pool ID; should be used as an argument in @@ -162,58 +82,9 @@ int dpbp_get_attributes(struct fsl_mc_io *mc_io, u16 token, struct dpbp_attr *attr); -/** - * DPBP notifications options - */ - -/** - * BPSCN write will attempt to allocate into a cache (coherent write) - */ -#define DPBP_NOTIF_OPT_COHERENT_WRITE 0x00000001 - -/** - * struct dpbp_notification_cfg - Structure representing DPBP notifications - * towards software - * @depletion_entry: below this threshold the pool is "depleted"; - * set it to '0' to disable it - * @depletion_exit: greater than or equal to this threshold the pool exit its - * "depleted" state - * @surplus_entry: above this threshold the pool is in "surplus" state; - * set it to '0' to disable it - * @surplus_exit: less than or equal to this threshold the pool exit its - * "surplus" state - * @message_iova: MUST be given if either 'depletion_entry' or 'surplus_entry' - * is not '0' (enable); I/O virtual address (must be in DMA-able memory), - * must be 16B aligned. - * @message_ctx: The context that will be part of the BPSCN message and will - * be written to 'message_iova' - * @options: Mask of available options; use 'DPBP_NOTIF_OPT_' values - */ -struct dpbp_notification_cfg { - u32 depletion_entry; - u32 depletion_exit; - u32 surplus_entry; - u32 surplus_exit; - u64 message_iova; - u64 message_ctx; - u16 options; -}; - -int dpbp_set_notifications(struct fsl_mc_io *mc_io, - u32 cmd_flags, - u16 token, - struct dpbp_notification_cfg *cfg); - -int dpbp_get_notifications(struct fsl_mc_io *mc_io, - u32 cmd_flags, - u16 token, - struct dpbp_notification_cfg *cfg); - int dpbp_get_api_version(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 *major_ver, u16 *minor_ver); -/** @} */ - #endif /* __FSL_DPBP_H */