From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0078.outbound.protection.outlook.com [104.47.36.78]) by dpdk.org (Postfix) with ESMTP id 3F01A1B19F for ; Thu, 28 Sep 2017 13:23:12 +0200 (CEST) Received: from BLUPR0301CA0041.namprd03.prod.outlook.com (2a01:111:e400:5259::51) by DM2PR0301MB0735.namprd03.prod.outlook.com (2a01:111:e400:3c0d::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Thu, 28 Sep 2017 11:23:11 +0000 Received: from BN1AFFO11FD024.protection.gbl (2a01:111:f400:7c10::123) by BLUPR0301CA0041.outlook.office365.com (2a01:111:e400:5259::51) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.56.11 via Frontend Transport; Thu, 28 Sep 2017 11:23:11 +0000 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 BN1AFFO11FD024.mail.protection.outlook.com (10.58.52.84) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.56.11 via Frontend Transport; Thu, 28 Sep 2017 11:23:10 +0000 Received: from Tophie.ap.freescale.net ([10.232.14.39]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v8SBMpFi016035; Thu, 28 Sep 2017 04:23:08 -0700 From: Shreyansh Jain To: CC: , Date: Thu, 28 Sep 2017 17:03:12 +0530 Message-ID: <20170928113344.12248-9-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170928113344.12248-1-shreyansh.jain@nxp.com> References: <20170909112132.13936-1-shreyansh.jain@nxp.com> <20170928113344.12248-1-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131510713910292806; (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)(7966004)(346002)(376002)(39860400002)(39380400002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(36756003)(6916009)(2950100002)(54906003)(16586007)(356003)(97736004)(50466002)(1076002)(48376002)(189998001)(316002)(53936002)(498600001)(50226002)(81156014)(8676002)(76176999)(81166006)(86362001)(8656003)(104016004)(33646002)(6666003)(47776003)(8936002)(105606002)(68736007)(5660300001)(2906002)(50986999)(305945005)(77096006)(4326008)(106466001)(2351001)(5003940100001)(2004002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0301MB0735; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD024; 1:xznYzuxK44PQ4dCGuztymECDB9SyTw4ohu+hCVCMcCuGmuDHH0tImhbVZbL2V4dr4r2geKd+cYSuPDm6NiG6XlsQJAqYJR9DnT5aGVP34jGYq1PG+VSxqkihOb0EmVbL MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bf467159-503a-411e-f146-08d506634d3e X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017052603199)(201703131430075)(201703131517081); SRVR:DM2PR0301MB0735; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0735; 3:B/HMlppaErqusO5ZPRMzcR1LPQS8+O0dKQLF+H7ijnSqiAfWEYWrjfv1xx3e8LnYPfHhn+ngiKqLtQXCpUv+3OyBd4piVJikW4pzTNHk1q+yl1zsVLhRdckGbwjWaJsAtLct0WRIKmQzGABuOblJB8uhJ2y6/AqqcnhjL5XwgNXmYuo8A1NjL5D86Kej5h34I8DbR3nXNWJk/hW39w+o71+mJUpFfPGasy0Uk8UQ6HfayYFz/7Uiv2QA1ArakIMeGxxNUVhsm+Fciuto1kFAeuRVGZQ3fuWYBF2wBVA7vUXaKa99+3CJ04dcnmwpNx147bS3JdAFLR8WxFWzAOgAXi4TmSr/C6sPBRFuIW3Xri0=; 25:9OxA0eX5WXrv374NtuL/YvLJMBmsR8qwnoROAfpTCyFAhCvh2lsTuUGfUtFDaEylY9Vp0RV/vMNtVDzNvjs3HZvqRUDn3RZkWWKiMORUW9ONNRGx9AH32ds2Nk4fUMYKjozYF1X/M6NCAJvNtif3/Y8y9z/dH5pNJkY5zchKXAIjG7Yo19yOBXwL67pFQ+g8o96jlm4FDEpf+1aB48ZqInj1lRgalOqShj7iNfDfZTNZPm8F4AkgEEVoryJb3in4NddzJt6RRMx1ccKFZymCkkA6Lnzsrai8Ur78oczoNOmPIiM7pdD3YOpVV3YA1ObHAAuUzqRLq5Meln50k7Rlqg== X-MS-TrafficTypeDiagnostic: DM2PR0301MB0735: X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0735; 31:0/zTzt33yJIlKgA3VzxJcLc4WqRA8Rx9lhD37Fc0AD0UBiebDZb5+5IF9jAd5s/Id5J0fAlGVuNv7TR5e1/uIv48VQ6b918OKIbN9wTuZlPdkdJegpyMB9t8dxHYFf9ZIst6JtBRIu+97f3S3AfujlYFUWGbTak7XPHCexnwcu5p3+Rz8A6HqENi9Sr3+MTYENFXB0+kXV3ut4+Pl6T/92MTu/+uP5yliVeOR9s0YXQ=; 4:G78O5cc1qwLx/b5HUcYyqc/BL4p60a2m27qAeeEtJ0f5eQOK4cvr8Xnz2PBIQlG1hidGAjQvNJYzSWqNtzOjX9mBXxgpRklzCj8Ob27NxkdapHqBdI2w7dA6KrJPmjmy4EPRd3QyTdQSlLe7z0MsonU9+vSGyT3FRdw05DBCdnM3UKOm+1Pp5NKJOIAoYQSXOAi/p5A6XVWeeGw+8TspyhnM5oarUL+vQNKDdJC0GvCz2zJjxe6sgMKtFupOt48ztbxC7jOhYvqU9rcSO2QxxLh7An+9SaMbpGRnkp5FAKA= X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(2401047)(5005006)(8121501046)(10201501046)(3002001)(93006095)(93001095)(100000703101)(100105400095)(6055026)(6096035)(20161123559100)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(201703161259150)(20161123561025)(20161123563025)(20161123556025)(20161123565025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM2PR0301MB0735; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM2PR0301MB0735; X-Forefront-PRVS: 0444EB1997 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR0301MB0735; 23:M3TKxSLAtSGRf3MKS4krV29sCW/nE3PNfnlQHUw?= =?us-ascii?Q?CuVK8j/2o5COu34SlY6wR65TNy0rSVXRq8U2uCes3tCkM18K88cLHPcJrQEb?= =?us-ascii?Q?f/sXVUBy4v6bHu9a8eDh/whfR30g+NO0fy8w05MyqO4DazPJke5iy2E44X6i?= =?us-ascii?Q?LiESP7Z/O3wF80f9mjenEF/dPiS6XNFXuSQyvD8r1VxgSbulgAcW8HmCz+tG?= =?us-ascii?Q?wQ+vHEXp1uz7Srkd5Sm+cuKWg5dU1B3Nnc2wC3Yvt5ilm+BDuxelWncgvxWC?= =?us-ascii?Q?CqfGfArPUvIxOFWfKbuPZoZxit/g4Bl4TG5RKUFOAVC1IcbCn76hUvN3/774?= =?us-ascii?Q?gtcKT2AxKExziB3hZlBLVpO4iVxFy/z6y5TXYFvpPuUtf+khgnm5y0dbgWJH?= =?us-ascii?Q?bL0SwIZtNhClzStUEZXrPLXfNXzd1JDfmuXXmhqXvTCULzGwrIazwy1dLEuW?= =?us-ascii?Q?zwc360buKPiRUZctMcnPhn7kZmB9Zv21+afGFiZZWVVCDXIlAYf0cgB0J9Va?= =?us-ascii?Q?5cMZN1X7XUo4GqnMy0V9MCjNErARiS8/4P8bmp8CL43tbZwG/5PL2p94quhr?= =?us-ascii?Q?bcfghi0wX2pgY6OTwm+yMBEE38Hr+wUQMre+5ORdAWbFMcMM0M3mRxb9Jwwj?= =?us-ascii?Q?4cENLhlnYJPJXLw1h3ayyauPH4yhgMy92rY2+LgiS9RKXSEkThlzZ9WRA4DQ?= =?us-ascii?Q?isUP4cr+5y/p5S11ToHAbe2W790RubbWgqJIwEAfpkh4ZQKT7aT9HxWH0D3d?= =?us-ascii?Q?sFTTSpP4TxbcG+juYWJyUKSGf6sB4BPn8u96VP+8EuNXavSrwEgf6vFc6GjS?= =?us-ascii?Q?xAzwjup7p3WB1EdgCMqtt3WVrEAgWwWWL3an7BOwr0Use2zjA3BBRehS3iC2?= =?us-ascii?Q?5hgIc3tWNhPYUEVLjjl+Lbee1rXReZ9rUgXcmgOzvylGnZdIuhRz1LLIrkLr?= =?us-ascii?Q?p77rZYfx0P/fpDfAXhZMN9IxGXP2qO4Zn93JaXhZWkuT4HDyqPFg7TOvRban?= =?us-ascii?Q?c+PgD5xMgZMZAEx8Kx/3kKo8KYowTCx6QzM7+sGylsvc1p9q63p0TgOQLyKh?= =?us-ascii?Q?i3c1vUo/iPb4/syqPApgafqsNFomDD16OguM4CHgCd/8sSt5opJOV0RTKF0o?= =?us-ascii?Q?PYWKkKr+gTjgLGSJhsILSnfRl1mwmL1PwQssUNkkfq+WITKG+SyGBQ1WRbXQ?= =?us-ascii?Q?xOvg0F4meDxm18/SHTZ6uyZCwQg3f5OVYI6rl?= X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0735; 6:ud4YEPf6I+FTYL8vqYrODDMLV7dAI+5+Hoqr+aGgvYQqUU307NotMX2D7dGyCxC0fqabXjynjvTIenUbA2MVjoz0IOy9nfDnnbhdnOpUUljBSYfSZzKxp6OLrYedGL5XQohcRJ8RFsysC7E/Xyff2fOndYSnvODn3q784239gJbFYPXQIqkxa5+NL1PqtYfK2AAA0rnujW8VuG6PtXTPHSfJL0Rlis3GXOaV17X47P2t+i4JEuvAO1C52pZanzLmH1gR3MWzrW2k34YOK7tX9GFTcd4xEX1IJKdHSmAJkruTQ8vcjEudZh/YBkY5vIXDHdwvLjkGwoBKVGxlHuouhg==; 5:iCBK6Ir9c06ymZxJ3CEVczMd9s9CNVUNDDVRyRROmE/hOykoCTDXzIYUzuOf5tHL0Cx7PD2PEt2iiksLzWuKI4suqQj1Vat8F+GaSCDc1ZpawN/EvU4YDKLWTfM/7UxYB2y8l3sUSsZEezPR/VH61w==; 24:tW4OUTjdPhwWNhHmq+CJ4ojuGPtlhMvh2UF9H8wDYzXtwBfvneXe1RafGYr7/PmmdFGZZ3k4SQ6YwJuZMwKXmdvOKThF7W1cBED+9f73jwk=; 7:HgWE/TF1VVekZJ5wYn7GGmr9+pHiZ+cqx3BRpnDl0Trrh/VgjocFnFhGoBIVLc9hsjIynBeIzHfctO4eaVlJTavGO/lG7jtamsGUysGPdRFfpLdfYs67XWVsEJuklBC4O7KNVpNTuY5xxBEiU7Yxj2jpMdf6oIzh4h0ABzZXgYiPfEvmtJyONfciOVPQoOALM9pZPUkskTysargTXE366hUWYfZlYtfiX5bGhbUgI6k= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Sep 2017 11:23:10.8576 (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: DM2PR0301MB0735 Subject: [dpdk-dev] [PATCH v5 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: Thu, 28 Sep 2017 11:23:13 -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 | 61 +++++++++++++++ 3 files changed, 199 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 f06521c..5b76a4b 100644 --- a/drivers/bus/dpaa/Makefile +++ b/drivers/bus/dpaa/Makefile @@ -62,7 +62,8 @@ 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 # Link Pthread LDLIBS += -lpthread 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..bee9fe5 --- /dev/null +++ b/drivers/bus/dpaa/base/qbman/dpaa_sys.h @@ -0,0 +1,61 @@ +/*- + * 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 + +#define DPAA_ASSERT(x) RTE_ASSERT(x) + +/* 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.9.3