mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-30 13:38:40 +00:00
19c4f5f7f7
The here introduced irq_domain abstraction represents a generic irq controller. It is a subset of powerpc's irq_host which is going to be renamed to irq_domain and then become generic. This implementation will be removed once it is generic. The xlate callback is resposible to parse irq informations like irq type and number and returns the hardware irq number which is reported by the hardware as active. Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Tested-by: Dirk Brandewie <dirk.brandewie@gmail.com> Acked-by: Grant Likely <grant.likely@secretlab.ca> Cc: sodaville@linutronix.de Cc: devicetree-discuss@lists.ozlabs.org LKML-Reference: <1298405266-1624-5-git-send-email-bigeasy@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
13 lines
257 B
C
13 lines
257 B
C
#ifndef __IRQ_CONTROLLER__
|
|
#define __IRQ_CONTROLLER__
|
|
|
|
struct irq_domain {
|
|
int (*xlate)(struct irq_domain *h, const u32 *intspec, u32 intsize,
|
|
u32 *out_hwirq, u32 *out_type);
|
|
void *priv;
|
|
struct device_node *controller;
|
|
struct list_head l;
|
|
};
|
|
|
|
#endif
|