1 /*
2  * Copyright (c) 2016, Xilinx Inc. and Contributors. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 /*
8  * @file	linux/irq.h
9  * @brief	Linux libmetal irq definitions.
10  */
11 
12 #ifndef __METAL_IRQ__H__
13 #error "Include metal/irq.h instead of metal/linux/irq.h"
14 #endif
15 
16 #ifndef __METAL_LINUX_IRQ__H__
17 #ifdef METAL_INTERNAL
18 
19 #include <metal/device.h>
20 
21 /**
22  * @brief	metal_linux_register_dev
23  *
24  * Metal Linux internal function to register metal device to a IRQ
25  * which is generated from the device.
26  *
27  * @param[in]	dev pointer to metal device
28  * @param[in]	irq interrupt id
29  */
30 void metal_linux_irq_register_dev(struct metal_device *dev, int irq);
31 
32 #endif /* METAL_INTERNAL */
33 #define __METAL_LINUX_IRQ__H__
34 
35 #endif /* __METAL_LINUX_IRQ__H__ */
36