From patchwork Tue Feb 7 15:43:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Tudor X-Patchwork-Id: 9560509 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 A260560434 for ; Tue, 7 Feb 2017 15:59:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 90FE821F61 for ; Tue, 7 Feb 2017 15:59:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 841E127BA5; Tue, 7 Feb 2017 15:59:58 +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 7457C21F61 for ; Tue, 7 Feb 2017 15:59:57 +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 1cb8BR-0006Sv-1l; Tue, 07 Feb 2017 15:59:57 +0000 Received: from mail-dm3nam03on0049.outbound.protection.outlook.com ([104.47.41.49] helo=NAM03-DM3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cb7wU-0005CU-VN for linux-arm-kernel@lists.infradead.org; Tue, 07 Feb 2017 15:44:36 +0000 Received: from CY1PR03CA0016.namprd03.prod.outlook.com (10.174.128.26) by MWHPR03MB2960.namprd03.prod.outlook.com (10.175.136.141) 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 15:44:09 +0000 Received: from BY2FFO11OLC004.protection.gbl (2a01:111:f400:7c0c::124) by CY1PR03CA0016.outlook.office365.com (2603:10b6:600::26) 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 15:44:08 +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 BY2FFO11OLC004.mail.protection.outlook.com (10.1.15.184) 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 15:44:08 +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 v17Fi5WK029897; Tue, 7 Feb 2017 08:44:07 -0700 From: To: Subject: [PATCH v3 08/10] staging: fsl-mc: dpbp: drop unused APIs Date: Tue, 7 Feb 2017 09:43:51 -0600 Message-ID: <20170207154353.20691-9-laurentiu.tudor@nxp.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170207154353.20691-1-laurentiu.tudor@nxp.com> References: <20170207154353.20691-1-laurentiu.tudor@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131309558487256198; (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)(7916002)(336005)(39410400002)(39400400002)(39860400002)(39380400002)(39450400003)(39850400002)(39840400002)(2980300002)(1110001)(1109001)(339900001)(189002)(45074003)(199003)(50226002)(8936002)(77096006)(106466001)(54906002)(86152003)(105606002)(626004)(104016004)(1076002)(2351001)(8656002)(86362001)(2906002)(38730400002)(110136004)(2876002)(8676002)(81156014)(81166006)(48376002)(50466002)(5003940100001)(97736004)(53936002)(47776003)(189998001)(7416002)(4326007)(305945005)(36756003)(85426001)(356003)(92566002)(68736007)(33646002)(76176999)(50986999)(5660300001)(2950100002)(6916009)(6666003); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR03MB2960; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC004; 1:pA47ygKKobQGQZNc3USognC1KrSEYynDfGpfcR333wOZ+kl2JGzQUQ8/+ShKIQtEqV0ZIejOrtqPY9WyJoWBwVKPOaXaibXadXKvnUarbxAAU/LdgAB6HMyE+9lY/b1+Xj/C2SPUV7F3IjSTnfXzCoyX9YmUCjpY22j1xrVBDyHuOIDzKsR/4+ugpgbp0xNh6VtOqpnpDy0kBNUapJ5RNigqs4Tn6726X6XUDdrpis93OENNeFzunBrMfUkmVHNT57X/RiCmOWAC9ExMO5cXVlp6L5iq8CTMMg8yUz8j/VlJksi47IuI8W6nnMMCj88o14Atku9YS43aVjVMPKCog8EFJ4nX5V8fMPid6RmP2IhtUBjM1JR2d/B0JuK6yoZAMB1HhYRWoygeE/EjUKB7lFsGFBSsTtDqTOcQ7wCbTIvke5Wb2FrIzDISUkcQuVUCz5XiFneOoDBVuxbZ6Pq/TqqiRLazhKabFbD+XKyvoHbmS08unpPKuzYzAxADgdzC+hgSdvkfHmQuZsxo2Hc+2z5UIZu/SJ7Sl9qMQiF+l2T7CLIKqHOpy+gl39TAIQfrxBJiOri6FvqK8OivqfbuF/uKNCBSerRtKwIEjVnWcwlPRnozCET2qsp/ZTxP5LrnHG+WXQ9waETGDkmbDT+f63etAaUKwSTfnxia4+hbv0GDqB5Bz7s6f3EHQwZW2OTtzxJz02nlaSLiGUWMoMH82NfT1tKgzIdgtWJoIYgEaH8tkL0l9/CD2rn9msjOGuXGfDmZjcq4Pj2KG9cv0md2OQ== MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 24baba09-9eb2-4201-0196-08d44f7027a3 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:MWHPR03MB2960; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2960; 3:8DEK8IosyFxvLhSjJlCIP/PpvwoidwVm983IS4iCOlwtfEh0HJsD8It+iJWPxj+1gRjD1xNlWCDjyPYbvA49cZeSFthtxQMUvKeUjxavX8yUkgrQ4b8ZPDwu7WJwBf3IPZBNTuhRkbBq8Dgbt8s17N5sbp8iwA0Hs1Btf4sWxiks0cGZ1rARfUd+pG48t8QG0pUwuT7kukSOrGhyu4dp7+c+hcaxI4jsjXpFLRBoMZ8S4F1WedUZ7vMBipwmF2T18gjARhf2CEHWt0a6ZCDok4g2KB8jA8OZSmE1/FSUWQyXy6uLkhmlQABLzOQn3p08nYXpwzldyAMBrN57MiUreYfXZZlqCiwgQrHPgpcIwreWhjKRJFo+tKKimxxSBDow; 25:eAdAzmDcCtrICLUGkHjK8taXCkQ6jsE8YvIeiuWE+0z5KyLIiaWrMqLDntkA22x2KAbwnF7u2HExXfWJhHpjvckapfOt+Jje5UlRfE2AK6kSYikMSaeoIq1KpsxOmr4qyJeQ3vAC8r9ybIxUSowPER93BqYEmx80RrqNkvgBYmTgm4m76zcR1ndsw4Co+79RQF/PM6cd2ElT5DSphCkki25TPyuZxhTHWgKcV4OPOjPDcPVjyX4VLuT2ECjzGdQNaqmEBZMCnTM3yOwSVjAQdiHs0GtGmmWjSeXBpj+8mEm0X73zETQMNGaAUW8ng1PrTD0RRVccGgMpMS6EGaa5YOIb0qx4m431Vr/RS0GebX7sMpxPoKy6iAjTqkl5Btr1dB0GXtRCSOUhNFTR1hC1wuiGhVNSTo6dw7OPsHRDN48wk3cjZJx/Psui4nBZl+h4lMUVcKYFD90NnzcVB4bsbA== X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2960; 31:PTfuR0uIQFXgNSVOOXGNxa11mTrDKAtELQW3vzjfo/hFH0OdqCxqqQzEtCXS7JzwvdrH9eWyBFJnBR8PMCzVbi7Ue3LX/s8YaGmgPqUQmiSKSX8brlDN3fJQLXXdhBe8tMu8HbXwSEArgZ0tV/5ZU+8HbBK2/dYbGfz84HrwYsRyq7tBnFAHRwIf1WliSyG02Ba/b9alkIAlbQw/4ABcqdSbs+MoPLc6UENN6vZTtacE4OmWvXjnD9kXqVjdoxV/CmtGUTgv192zseyrWYYzvg== 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)(3002001)(10201501046)(6055026)(6096035)(20161123561025)(20161123559025)(20161123563025)(20161123565025)(20161123556025); SRVR:MWHPR03MB2960; BCL:0; PCL:0; RULEID:(400006); SRVR:MWHPR03MB2960; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2960; 4:CGhCniFbRctkV1/nUsNFxLUtBkjP/DKwVzAyGCZwmYTRc1CgCTs4SWx+gC6Ee5ouBmhd0P042Qwkv1cxNeU5vu/4uSYv5ayFvnEqTDfjbMValOmCjIqX24rxntlFPKDdqkW1ktG1dFICIdQU4tavx+LIvIP4xR65ohPmT3mDZsYAyc2xUQNVK0UsSuvDMC7N383vfQ/GiRnXTDwQPFBLgAtz/aHh0a3jsteXaFueLxg//ACLlmux65Dg5vP1++2cuBx9/S7WqQOTv3tYnovPz3FBoxynZnA0KXQW17B5QnDrAhKVscSf0QQLuQZEIhZJ7JytbOltna/4FAB2AtAlGNHXiMOQieFK6w49XiW9eplYQ92C0zqsq+r1THCw1oRqKbPA9xCqf97GL/KtiJKNQLUMd43oG4mpUmJoCZbju5ai90BAXGyG3rmNelatpeOhszRqZkt2ynfVgHeAg2jUqCnWR14g76P4p30iKuJh2o8O7MI/PtWPHjtAcIvhNRdekv+xjrPtCF6tryKlvViBBOtiFlbaEqwkcbbDxqWDHOk0EdZRwpKZ/TUp6if2tGm3Y0nPS9heYewwpohDUy3ycbf9KV5gX/6+U4sfwxiVUdGYwa2U9tb5258GXn7BJjMyM4Ijk3r0Gban1LcMBaKu9Cl2bXlNCbv+tt8CClkkBn6Ez0tXCPx64oOklTJ278TLPUb2hIwximNrhnIMPLUxXRVBBJP1gLev+UeQvU1K9xTzbG+VKfmx6mqC+pegP+qgFI0B9C0mt0U8S8lkB9BuLq74bi3hgeHIJMrb098FT+Hz7zAnsLwAPK4ktH1AUdkTT9CUjwBN/wKvjOqg6pzIcQ== X-Forefront-PRVS: 0211965D06 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR03MB2960; 23:CopYkdMvD5BkEAStqHzB1fRTrSICEubNxSv8AFEQw?= =?us-ascii?Q?SZP5XPD0l72ThC8Rbho34W/yKy8qZbWb9OrhTK61Nt0O/wfgeeaYV6YXQL7h?= =?us-ascii?Q?2iYAcR9k748SYflMAcJOztHKiaEAsyKtY5tb0fbSkAi24GDXnfem03v4LznA?= =?us-ascii?Q?Rl7ueE0ZpLaXCMCqMa9nezl0ycmRwSvfQHS97GE5V8342k6Pa7D8u5YlLn46?= =?us-ascii?Q?aCdNlL/L00c9pGNseGU2Kom5lHrVU7ePs+WBtZgsJaOPq1QcyvufC2utdAXi?= =?us-ascii?Q?J3T6oipF5WGHWcx0wr+HNUilGNpBvc1nbUzFkS5cC33E42PhLbx9i0sWB2jj?= =?us-ascii?Q?ov1crBH+ZEHfpkDKlZty1vkoYN+t+GUlPyedYt9GRj08VbEzFNgJwWrhNay8?= =?us-ascii?Q?KUdjv9LJIZH6QtlgJLfQVsRcvParVXkOKM7KH8eEmx7tWUrGDuz71QaHHY2r?= =?us-ascii?Q?ouKD+uFhNK5rSpFO4cfzzEOgQpezISDGKWeUrjiISSHq6nmGZY5gq8viHzPB?= =?us-ascii?Q?Ukmi0aw1gG3aAlzM1pjohumgS7+0n/reXr7AI2sll8xOslaDLGNORQt3rBX3?= =?us-ascii?Q?rURmhM9TJknEiHnoHXcT3B/9pM/Of1AJwigMCuaos0/uDWhJ2+ZThgeIdy9f?= =?us-ascii?Q?NQ1u2D2O1HxRIc4ZNhNvEL1zQyxScseQK4uYUMnlNMvGSTVr9OEExqnePUwW?= =?us-ascii?Q?jgK42jOU+y77NIv1T56HWfJWiKVD/yzniIX7zW63fbUdTmeV3BFbQjVg8zK9?= =?us-ascii?Q?/f8JxwE2cqzWyEgj0T2IOtEcHl7ow1BYJXhwr63CZjUXkgWHlbXp7t4/H3mA?= =?us-ascii?Q?WSUdUUN/1DtmFNjDhLsup3DdT8glaarun8PuitF4nP4un9q7NVpLSn5SqOf2?= =?us-ascii?Q?QfXozbp2pkf0q0BfnaMBl8co+Grfb1L09FVdeS+140QfbYucRqfjiRHWpF/L?= =?us-ascii?Q?4wXOlBwCFJypM4KKkYsHF0KZeD3d1XO/VA+4GTOxwO2ZMJpx5oJWmlteRQ/7?= =?us-ascii?Q?KQHz6gzssPQRFthMEOzJoyMS4MyM/w8ov0KK5QeFTfvE/xA/AuR+//NKB1ZR?= =?us-ascii?Q?hCUFguH8hM/TtpHrZBocjlMHZ8AH8kfO3AK2/3y7KSAgVPn5QuHl693NdaxE?= =?us-ascii?Q?9FVKQ52euZF+72xeVZn5X7WmrS3++zQQvpQpOXtzb0hHkMtQCkew5ff+qlAo?= =?us-ascii?Q?OsvEWQIZm5QuXBbE5lcL6E4a9dKbQmaf7a0rAVq0PskSoyxuZLKpvaiGYaIj?= =?us-ascii?Q?mZKPM3G4YMNgJ5nwhLf1Z6GjEKSQQqGWvduQEhMsdLBRnAaAytYoAXMqmHq6?= =?us-ascii?Q?LmZnsu9E72ggEzDtCqtONOPCo3UGYGolURcv6h9+zMDy4VHxaRDZE3gBYQYu?= =?us-ascii?Q?MH8x0aKfx5FbwxoK+bWntRA8iIzscPNAqk5kB4ALhoGDPdryDfa08F/Y6bFX?= =?us-ascii?Q?l2TTSb1jg=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2960; 6:haHTTsKftL9dPvoxPIK3C3/sjKjbuFvONyMQpZO5hvt/UKDL2Vg0wflwZ8lSgU85f5S91on1Kx6IlRctz08dp4DFDZeaYQG72TMulNaygxzZ7fCWs5VVVIDrZurAQRk8dwfqgt3R4SXaH9s2hMjM50zzbMXtMA1MerqC2H73LOAUiUGJpcw1xZyg1GC6GTmPqCL+5SXqwhwlsAiu8RLyPBgsaiSDBT7IozvpNbnAw/viAby+BGSARHAYtHzdjRY3ieHtYsgRU1qbMocidWSnHylutkIsgU5ZMo4gBohLEPMCXCdjTiJ/I4aTs0i4HbNFkapR9NMj7NjUJW/goyfj8YQ4z0yI6A3j27i/UzIzc4B2KwK9bRnWrrXQzZ6u0nfcZqop/SaomD0Mc5ix5alLNobj2uTYEBizPfvMHsBf3II=; 5:wZX453EW0CNkqxq+Uq6j2pMUxKtRmRiBg8bG29ZwHZHKEMMRdWGMF5+13+dgB7S82155H7bzBxCKm3E5Fp7skJYmvA1I9nZyg6WO4M7Dj04LMKkDRdMIZOraau2k0BB0rRaGcrChS4D27aYJkdDHwo3+Hi2GLlzcGMuI4qk2I5wZwhwU5cNknzaDIlt0WNQh; 24:AUY4YXszlkTLElV8cwTB7qmvr+Sti5vuBVl0MdkAo9ME1LPq9Wpk06VcmfvgaayMd7dt2nHKkrFPtzE80Okp1ia5FYhMIP5SJ7KG9OuVk7A= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2960; 7:3SnCm7FjSSqk/4JMdgJl5NaUhmolLrE5eUCC+4hhXC0ilAnXxlT6dQKePuD/m6IDR78yMOxquzOFbpl8CJhfzB8wV/JCaEQg/k/l/PHV3kiJ/XwOU83GPXDeSHs4cdUedPwBtzxCEvCHOcJKy7K8W1Z8+ddU8FYKDPpjhxORXtJQXmTQ+rpdCBwGq1HtW62qLs2zAaqSUiMjmvaxgsRDrriQmi8HJh2Nl3hvFhCyl8u9QmYXwkVT+I7WtoTxqCpJ3xVWohVSVHo4Z4NrQVl09rPGidedepeYKXm3rUMv1FoflK/TKzHeKl7XWdAN6UjuCtVM8v0nL3joiy9vcdlN9XeYdWAhCf/RDXvUaMse23OFcRUMd0gpw5bOm1Lrm4NbxodBDSdMGWHnadWBiw1WD1bEXLQ0s2sB6zCRTIT9axtu/ZTnsqbcw7yXQtL5L30hHCCgS0DOn5gJgXIk5nmHggq0p72UhXISncRH61v5WWOjtdmWpkhFP8vbQzRnqW4ttKS3BfPjEdL7qAp5DvAQbg== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Feb 2017 15:44:08.3980 (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: MWHPR03MB2960 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170207_074431_220369_BD9C3F7E X-CRM114-Status: GOOD ( 13.47 ) 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 --- v3: - no changes 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 */