1 /* SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0) 2 * 3 * Copyright 2008-2016 Freescale Semiconductor Inc. 4 * Copyright 2017 NXP 5 * 6 */ 7 8 #ifndef __DPAA_SYS_H 9 #define __DPAA_SYS_H 10 11 #include <compat.h> 12 #include <dpaa_of.h> 13 14 /* For 2-element tables related to cache-inhibited and cache-enabled mappings */ 15 #define DPAA_PORTAL_CE 0 16 #define DPAA_PORTAL_CI 1 17 18 #define DPAA_ASSERT(x) RTE_ASSERT(x) 19 20 /* This is the interface from the platform-agnostic driver code to (de)register 21 * interrupt handlers. We simply create/destroy corresponding structs. 22 */ 23 int qbman_request_irq(int irq, irqreturn_t (*isr)(int irq, void *arg), 24 unsigned long flags, const char *name, void *arg); 25 int qbman_free_irq(int irq, void *arg); 26 27 void qbman_invoke_irq(int irq); 28 29 #endif /* __DPAA_SYS_H */ 30