2 * arch/arm/plat-spear/include/plat/shirq.h
4 * SPEAr platform shared irq layer header file
6 * Copyright (C) 2009 ST Microelectronics
7 * Viresh Kumar<viresh.kumar@st.com>
9 * This file is licensed under the terms of the GNU General Public
10 * License version 2. This program is licensed "as is" without any
11 * warranty of any kind, whether express or implied.
14 #ifndef __PLAT_SHIRQ_H
15 #define __PLAT_SHIRQ_H
17 #include <linux/irq.h>
18 #include <linux/types.h>
21 * struct shirq_dev_config: shared irq device configuration
23 * virq: virtual irq number of device
24 * enb_mask: enable mask of device
25 * status_mask: status mask of device
26 * clear_mask: clear mask of device
28 struct shirq_dev_config
{
36 * struct shirq_regs: shared irq register configuration
38 * base: base address of shared irq register
39 * enb_reg: enable register offset
40 * reset_to_enb: val 1 indicates, we need to clear bit for enabling interrupt
41 * status_reg: status register offset
42 * status_reg_mask: status register valid mask
43 * clear_reg: clear register offset
44 * reset_to_clear: val 1 indicates, we need to clear bit for clearing interrupt
57 * struct spear_shirq: shared irq structure
59 * irq: hardware irq number
60 * dev_config: array of device config structures which are using "irq" line
61 * dev_count: size of dev_config array
62 * regs: register configuration for shared irq block
66 struct shirq_dev_config
*dev_config
;
68 struct shirq_regs regs
;
71 int spear_shirq_register(struct spear_shirq
*shirq
);
73 #endif /* __PLAT_SHIRQ_H */