New upstream version 18.02
[deb_dpdk.git] / drivers / bus / dpaa / base / qbman / dpaa_sys.h
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 <of.h>
12
13 /* For 2-element tables related to cache-inhibited and cache-enabled mappings */
14 #define DPAA_PORTAL_CE 0
15 #define DPAA_PORTAL_CI 1
16
17 #define DPAA_ASSERT(x) RTE_ASSERT(x)
18
19 /* This is the interface from the platform-agnostic driver code to (de)register
20  * interrupt handlers. We simply create/destroy corresponding structs.
21  */
22 int qbman_request_irq(int irq, irqreturn_t (*isr)(int irq, void *arg),
23                       unsigned long flags, const char *name, void *arg);
24 int qbman_free_irq(int irq, void *arg);
25
26 void qbman_invoke_irq(int irq);
27
28 #endif /* __DPAA_SYS_H */