f-stack/dpdk/drivers/bus/dpaa/base/qbman/dpaa_sys.h

30 lines
779 B
C
Raw Normal View History

2019-06-25 11:12:58 +00:00
/* SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0)
*
* Copyright 2008-2016 Freescale Semiconductor Inc.
2019-06-25 11:12:58 +00:00
* Copyright 2017 NXP
*
*/
#ifndef __DPAA_SYS_H
#define __DPAA_SYS_H
2020-06-18 16:55:50 +00:00
#include <compat.h>
#include <dpaa_of.h>
/* 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 */