From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0079.outbound.protection.outlook.com [104.47.37.79]) by dpdk.org (Postfix) with ESMTP id CB7A87CC8 for ; Tue, 4 Jul 2017 16:35:44 +0200 (CEST) Received: from CY4PR03CA0104.namprd03.prod.outlook.com (2603:10b6:910:4d::45) by DM2PR0301MB0607.namprd03.prod.outlook.com (2a01:111:e400:3c08::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1220.11; Tue, 4 Jul 2017 14:35:43 +0000 Received: from BY2FFO11FD021.protection.gbl (2a01:111:f400:7c0c::169) by CY4PR03CA0104.outlook.office365.com (2603:10b6:910:4d::45) 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; Tue, 4 Jul 2017 14:35:42 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) 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.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BY2FFO11FD021.mail.protection.outlook.com (10.1.15.210) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1199.9 via Frontend Transport; Tue, 4 Jul 2017 14:35:42 +0000 Received: from Tophie.ap.freescale.net ([10.232.14.39]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id v64EZM6q016426; Tue, 4 Jul 2017 07:35:40 -0700 From: Shreyansh Jain To: CC: , Date: Tue, 4 Jul 2017 20:13:59 +0530 Message-ID: <1499179471-19145-9-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1499179471-19145-1-git-send-email-shreyansh.jain@nxp.com> References: <1497591668-3320-1-git-send-email-shreyansh.jain@nxp.com> <1499179471-19145-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131436525426679368; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39450400003)(39860400002)(39840400002)(39380400002)(39400400002)(39850400002)(39410400002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(9170700003)(47776003)(2906002)(68736007)(81166006)(8676002)(189998001)(8936002)(2351001)(33646002)(5003940100001)(356003)(50466002)(48376002)(305945005)(53936002)(76176999)(50986999)(86362001)(110136004)(38730400002)(5660300001)(36756003)(105606002)(77096006)(498600001)(6666003)(50226002)(6916009)(626005)(54906002)(69596002)(8656002)(85426001)(104016004)(106466001)(4326008)(2950100002)(2004002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0301MB0607; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; A:1; MX:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2FFO11FD021; 1:qAm9Vc78tKJhVAJUVojHwFh219o2By4CYY01XLqWWk?= =?us-ascii?Q?MYlwG0Fi9OVQojT4LXMfxRAIbk0zjKN9jVVI1iban+GKCgrYnF+h18jC3Zhm?= =?us-ascii?Q?tU+p2j1TXd0MQGPLf0rKNGYHcKaJSRLt1DEvErcALmBjZabD/YaVdMi1LyiG?= =?us-ascii?Q?OQsSjOmCeu51TmCp1dWLSGkEsFqcpdcROpLIIaWFJDUnaWCAEKlwJTtEexwd?= =?us-ascii?Q?NlBvCKEUUxP43RfwAztcxbe/gUm+nvCXAggch+YVLU1nrmG+nOhxohmhulfW?= =?us-ascii?Q?59IW/i8oW4Rp1lJQ/gKXuLheiG6bA4QmpWUs4JOSDcdJvkMjxN/GrUth98Yv?= =?us-ascii?Q?atfBqMjQIyLpb8M3NC+B49esYTiistQPtC4W9SNnQSn6ltDQ46P/r5IcaQ/I?= =?us-ascii?Q?D3dNH1puCNF2Y/8hLM0ydfOCb9rxcrZPVTewQQ4AzvpMePCNSrAZqkCaxRS9?= =?us-ascii?Q?ByETpdtCg7Jrqale/2seTxjiboE5LVu6ddep852QllcZxywYV1+xoEQMTNrW?= =?us-ascii?Q?+IOnIGKOT0MWJvzvF5/EP1bsR71BNIwj4YhrmE6FEXlm+UTNyP4SOl1u5mhF?= =?us-ascii?Q?L52d5lPdk1lF45FjDBnxPxrensWiMxsKgc6UKc1f59mnavY4bgP8IPNWGntL?= =?us-ascii?Q?h2avsnTeYR85jYVQd/ct4E54z0WBRfRjIDW+Sj66hU/M8sOaFy1IkkIQJkBo?= =?us-ascii?Q?0wXgKN7nTZ+TsdO6cgxPp/BCI/C2msPahDSzQ8mao64f2M2kmsR5z2TBi38j?= =?us-ascii?Q?lIFjQ9KGlYivvoSZ63+e4x8C/S12eGO7g0AM87RNXGUrntQnys/jRbVqTDOR?= =?us-ascii?Q?2vNMP0qaIG/Lwd/pJt+XUGOmSITFRT0x4x5Q2ibEA7qqpO5sWH0nujPungsN?= =?us-ascii?Q?aBcxRJACPIQtDNzFxyV4Jevy6IICR0sEUDCANZsVuj6pqBJQp2nUEGlfsoc/?= =?us-ascii?Q?+UETpfTTqyfJ16AViU4k/OlVAtTH9AtfJgqLZgGmGHBjeXUaP5yjcdztbbQY?= =?us-ascii?Q?ddSyEQJvR1uFYA/VoWEWX+OKMZPrKQaFPaTZ1mRhZaSB7Jm2ZZCqTe2ue5w3?= =?us-ascii?Q?hg7V3q0E1H8PBP8jhcO4IigsBf7lzgaDyc+TcGjZLVcwjS0g=3D=3D?= MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6175c7c2-dae5-4280-3ce8-08d4c2e9f306 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(2017052603031)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:DM2PR0301MB0607; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0607; 3:kKfpEcplKCvL8mzoMFZ6N3m897AEqbf0GTP7HaZ0TZgAhkL9r3iEMrGJwqLIiZIg96AbBQQpNGzXiJcrZiHY3dOD5IZoZpJ7JSGtVUsSfJU55oSAzxxcm5vuDs9vm0Xaw0OVlHAGjN71Zj8hCpSnEmdWk5hnIeFNb1ZnH4nP9ZXPqB5kqRmH3VKFI0j3ZfSbDq9fSbXtTkZ5tBLNF/7OhI/59q/3bS3q/SIsZw9idnnQnrgVLmuZr5EYFeRvCVKjyKpFhFMu1YTsii4kMj33ICn3dhj2IbkNB1g7MZP5nTZ7O9M8Axst/aLV0eGl33uabeKSSwnS0LzLSLiXVsqws3TZ18wYKxowjilH4XNM4yNCmZXjJOUpqnFXRwdqC408mVfJmyX+96y5NMyJw9fgklpQkIZKXGsQKHPovuDL+qY+hSHLsDhYkKXR0BdM61vxZqGLxPEGN0YT5X03WvxRA8crDV7S1bFMWwrkEsukKp7rqwSCfxMXiQneB0a8/+xai3AXfOKtd7KW3byP0TzcpXc7bz+/3J2KQBkOcqLarZYU6mvvhUsNsyUJ0fEhIKzO0kgDkbv6fOXyyIxeuh8BXCBHguCKnITOr0jm8iwL7RlNzebsMgmcj4vJ+r8CnI6amdabtCiXuztIaxTNjqc+L8cleiNPQEdJGKvQdtihQRAixuU/0JRMbLWGl99MtZfPOnKqg2oTcvD8cPBYsUOnagm21sEcbjYqFmqeJ2jm8+JYMw1iLvsrFF02Ml0ysL8F60+COQPTekSvg6KxrTA5ASomWGK+nUHJwyqjiShSyzmrlaWHg8X2f2itxiHxHrv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a+V/VOBI= X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0607; 31:lpznkCLiE3ciDHzrfPxr7lfb6qHtFC0jLTjhwfBz26ZFxqpQYkQn6wRoKSu+IMkSYrEFQHRhjrJjB/OC/lEbtrXb+sY5b6s1fR50pBH8uJWdKZFWLgS/fR11SvPoYSjVgilfr+p/p9k15sHxchp4GO1Im3eMkbR9b1WJtIUnXa9HvtAxYVB2snw7B+ppwX21On9uQndyuGKHHWQHTCvMklIGGb49R+bWNJ9EZlpJKz6FSskIM9ZZToEjkdQ7fV2TntfEFLTjHnrCF1lQN4Dx3qN/JskrmYCtiBJRmcWvChqJ0HCadMOBi1ft/vmAWXcdAuG4UCnn5CGa1JsVLwJ4PNl/VffLDp5WXKKTivnioMv2WKt6fzk5TMiF91HrY5RgrduVqV7JcSEu8odpz2z857HSa03FHyA+4Ujk6HVnwkjbnxWJ6hzCcaJZvE1WjpKtwboRqv+ajTkHxDd+aT78uGcf0+3Q2/WigFZk0+oEyRCix7A9jcdh+AJuZnFG75LSSd5O9mmVmtaHgOaTJbpW9a/mcz9+L9xeY8Kh9kDutnxCaI7aGxeDKQm0Bt61VUAbrEI4pI0T3rCv3mOun86znEGivsFWs9hxiIQYeRAE7PL8gjLaKxRIbZ9c9HS2Scmh/MHyLx6ZO8y5S/eaLueSA/xQfTqzGknsk1X8tQmRjKn02ZV10eCLO+7UlSOdUBmA X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236129657087228)(185117386973197)(48057245064654)(148574349560750)(158140799945019); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(13018025)(8121501046)(13016025)(5005006)(93006095)(93001095)(100000703101)(100105400095)(10201501046)(3002001)(6055026)(6096035)(201703131430075)(201703131433075)(201703131448075)(201703161259150)(201703151042153)(20161123563025)(20161123565025)(20161123556025)(20161123559100)(20161123561025)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM2PR0301MB0607; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM2PR0301MB0607; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR0301MB0607; 4:BBuOHEZQmlzEViUiL0SadM0cUWj5NbyHIatH0QO9?= =?us-ascii?Q?T2+ICYm+l8rE3rl/BI7iJbBcIgWHVosN3iWjeFYRsCpuw26kf1epeyaM+RSi?= =?us-ascii?Q?mOAcBCPtTA9uDwZwyyktIv9spCklHdWVU5ZbGCThWKnDkf8OeN9ZiG0wq8n4?= =?us-ascii?Q?BVNl5L0BK/HmX5QhRZQT+BdeQy3p6etn76Cahli4hsUEClaB3ayeVlTsa/2T?= =?us-ascii?Q?hbMBIZ13Gu86zCbIEpxf2x0Yafqo3pV11Ji7EfPUjW751EV0zoLZjaDDLTTD?= =?us-ascii?Q?fP21ToqCE3nDkWJ3GUytHps0RGJXCrwbrEnSRofvZ1ZJCaqP5fcZwecHbhMi?= =?us-ascii?Q?u6n3OVyZlTWFqhCJJbhwICKzpLE1ruOB5ubEUAnItGjvFYOEYtNTMFBa+HBu?= =?us-ascii?Q?ZPzufKsNO2ojVJwM7jXBpNRnb/OZWx03JOdECfys1ers5/1kmtRpGqnG0aaV?= =?us-ascii?Q?oSUC79NQS4LuXYEU0jR6KJFOHgl6AGtnGrntXbnDtyIcICSFIC5VVgxVD3+E?= =?us-ascii?Q?MARiKLSOAFAlNd3kPVdb5M5pMXIQ5dXCTcUMwYPfDlkNsAtLw7Tyh4c1dYrB?= =?us-ascii?Q?plBQQnktrESLpLa6QVc4bP+ad/epmEXGBfionuFewNVChirwvlGhVJnJfXc9?= =?us-ascii?Q?mEixqTiLnfMs+CDzvDtpSCvNsqQUOXPzSxvlSiDeyfcyDXK3gUXWvuBoFasR?= =?us-ascii?Q?XLWEvHT8fGoLI67feoWhmhoY/Pf77OFOHoTFpNEtA9bhmQkR27bnf8rD0SJO?= =?us-ascii?Q?ToHbRIFj3R6FViS8J8PGuEkX8hKWvEo91qBY/ot8XRnqmkI5GctPSsbQk2Qv?= =?us-ascii?Q?U5NiHlfzt5f7bz8rV564HlFKi3IxFurnblCCAz2dR8pukS3pqKJftM+CygWE?= =?us-ascii?Q?RYGTa0fWmQTn8Kx5LE9fLYJKWp7vJw0cRhl6A2hxrhIZl3IB6p/gMi7rAXyl?= =?us-ascii?Q?GTk4MkPl4TUHQ9q/bQyfcCg0coJUrZ75o6A9dqMhA6ubub6F5hndhlh0NMfs?= =?us-ascii?Q?5NGrRLQ2M1XB+fCWBe0Z9hS09Ht/u7zIUBScRSiABs6GQuHWRw+OlbKPKKAE?= =?us-ascii?Q?71S60g61HV0Euj4MkfwB0h0IMj9tYcoxa3rvGVH3AvmoyErqNnEnJofWdfl8?= =?us-ascii?Q?g5TNLQf3cwAt1k64rK0SMv/Tmn0/5POvZ2elYhJP4nSBgx5QB/4SkQG0ygs6?= =?us-ascii?Q?f55ssJqjKd4j3mPaKyB9WOaXlU8EcHhT25L3NhsgbiuHak7MbiK4gjtMhG7R?= =?us-ascii?Q?bOTSMsmvKZTrtZamVa7bUBlMY+cdWKEQ3hBaMKsCybDHY6kyk9aGkF8UbvL4?= =?us-ascii?Q?i5sCMEUhfxtIyGoyG+PEHJOoXlwsQnfnzJoSC+fCsgXHtSQIN8eU/cVUMr5A?= =?us-ascii?Q?yXYm7j6C7F9JgtoRW3rIYAOasbNCUhPNJntTLkuv7cQKZKVC?= X-Forefront-PRVS: 0358535363 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR0301MB0607; 23:tMvO7swX2v6ZRKgIcf0PVn/8N0AfLI+bGOGOG02?= =?us-ascii?Q?cpdKmzfPEk0SoWjZ/QXNf85fktohw0nHJjdld9v4du3yGsmQy3HBjwNxM+tR?= =?us-ascii?Q?nlhfK1mg6qphxDnk5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2oPioqdWsRlu6ymxrcnqNJp4uvEBSkEgGLUaRrZf5004ZUgeogvQadZfSvra2mdyOB/+seMPDY5t69sjc7vL5bo00= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2017 14:35:42.5275 (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.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0301MB0607 Subject: [dpdk-dev] [PATCH v2 08/40] bus/dpaa: add layer for interrupt emulation using pthread 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: Tue, 04 Jul 2017 14:35:45 -0000 An interrupt manager is implemented by emulating over pthreads. Handlers are registered by QBMAN layer for being notified about any interrupt request from DPAA blocks in userspace. Signed-off-by: Roy Pledge Signed-off-by: Hemant Agrawal Signed-off-by: Shreyansh Jain --- drivers/bus/dpaa/Makefile | 3 +- drivers/bus/dpaa/base/qbman/dpaa_sys.c | 136 +++++++++++++++++++++++++++++++++ drivers/bus/dpaa/base/qbman/dpaa_sys.h | 65 ++++++++++++++++ 3 files changed, 203 insertions(+), 1 deletion(-) create mode 100644 drivers/bus/dpaa/base/qbman/dpaa_sys.c create mode 100644 drivers/bus/dpaa/base/qbman/dpaa_sys.h diff --git a/drivers/bus/dpaa/Makefile b/drivers/bus/dpaa/Makefile index 22218e2..193ffc1 100644 --- a/drivers/bus/dpaa/Makefile +++ b/drivers/bus/dpaa/Makefile @@ -70,6 +70,7 @@ SRCS-$(CONFIG_RTE_LIBRTE_DPAA_BUS) += \ base/fman/fman_hw.c \ base/fman/of.c \ base/fman/netcfg_layer.c \ - base/qbman/process.c + base/qbman/process.c \ + base/qbman/dpaa_sys.c include $(RTE_SDK)/mk/rte.lib.mk diff --git a/drivers/bus/dpaa/base/qbman/dpaa_sys.c b/drivers/bus/dpaa/base/qbman/dpaa_sys.c new file mode 100644 index 0000000..0017da5 --- /dev/null +++ b/drivers/bus/dpaa/base/qbman/dpaa_sys.c @@ -0,0 +1,136 @@ +/*- + * 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. + * Copyright 2017 NXP. + * + * 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. + */ + +#include +#include "dpaa_sys.h" + +struct process_interrupt { + int irq; + irqreturn_t (*isr)(int irq, void *arg); + unsigned long flags; + const char *name; + void *arg; + struct list_head node; +}; + +static COMPAT_LIST_HEAD(process_irq_list); +static pthread_mutex_t process_irq_lock = PTHREAD_MUTEX_INITIALIZER; + +static void process_interrupt_install(struct process_interrupt *irq) +{ + int ret; + /* Add the irq to the end of the list */ + ret = pthread_mutex_lock(&process_irq_lock); + assert(!ret); + list_add_tail(&irq->node, &process_irq_list); + ret = pthread_mutex_unlock(&process_irq_lock); + assert(!ret); +} + +static void process_interrupt_remove(struct process_interrupt *irq) +{ + int ret; + + ret = pthread_mutex_lock(&process_irq_lock); + assert(!ret); + list_del(&irq->node); + ret = pthread_mutex_unlock(&process_irq_lock); + assert(!ret); +} + +static struct process_interrupt *process_interrupt_find(int irq_num) +{ + int ret; + struct process_interrupt *i = NULL; + + ret = pthread_mutex_lock(&process_irq_lock); + assert(!ret); + list_for_each_entry(i, &process_irq_list, node) { + if (i->irq == irq_num) + goto done; + } +done: + ret = pthread_mutex_unlock(&process_irq_lock); + assert(!ret); + return i; +} + +/* This is the interface from the platform-agnostic driver code to (de)register + * interrupt handlers. We simply create/destroy corresponding structs. + */ +int qbman_request_irq(int irq, irqreturn_t (*isr)(int irq, void *arg), + unsigned long flags, const char *name, + void *arg __maybe_unused) +{ + struct process_interrupt *irq_node = + kmalloc(sizeof(*irq_node), GFP_KERNEL); + + if (!irq_node) + return -ENOMEM; + irq_node->irq = irq; + irq_node->isr = isr; + irq_node->flags = flags; + irq_node->name = name; + irq_node->arg = arg; + process_interrupt_install(irq_node); + return 0; +} + +int qbman_free_irq(int irq, __maybe_unused void *arg) +{ + struct process_interrupt *irq_node = process_interrupt_find(irq); + + if (!irq_node) + return -EINVAL; + process_interrupt_remove(irq_node); + kfree(irq_node); + return 0; +} + +/* This is the interface from the platform-specific driver code to obtain + * interrupt handlers that have been registered. + */ +void qbman_invoke_irq(int irq) +{ + struct process_interrupt *irq_node = process_interrupt_find(irq); + + if (irq_node) + irq_node->isr(irq, irq_node->arg); +} diff --git a/drivers/bus/dpaa/base/qbman/dpaa_sys.h b/drivers/bus/dpaa/base/qbman/dpaa_sys.h new file mode 100644 index 0000000..c53035a --- /dev/null +++ b/drivers/bus/dpaa/base/qbman/dpaa_sys.h @@ -0,0 +1,65 @@ +/*- + * 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 2008-2016 Freescale Semiconductor Inc. + * Copyright 2017 NXP. + * + * 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 __DPAA_SYS_H +#define __DPAA_SYS_H + +#include + +/* For 2-element tables related to cache-inhibited and cache-enabled mappings */ +#define DPAA_PORTAL_CE 0 +#define DPAA_PORTAL_CI 1 + +#ifdef RTE_LIBRTE_DPAA_CHECKING +#define DPAA_ASSERT(x) ASSERT(x) +#else +#define DPAA_ASSERT(x) do { } while (0) +#endif + +/* This is the interface from the platform-agnostic driver code to (de)register + * interrupt handlers. We simply create/destroy corresponding structs. + */ +int qbman_request_irq(int irq, irqreturn_t (*isr)(int irq, void *arg), + unsigned long flags, const char *name, void *arg); +int qbman_free_irq(int irq, void *arg); + +void qbman_invoke_irq(int irq); + +#endif /* __DPAA_SYS_H */ -- 2.7.4