diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2011-02-26 08:01:19 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-17 02:19:14 +0100 |
commit | 1d05995b0880b23353741d5b2b826f7c2fd6a296 (patch) | |
tree | 47fa622ab354f0fb88a7cb626797de186068d329 /arch/sparc/kernel/irq.h | |
parent | sparc32: introduce sparc_irq_config (diff) | |
download | linux-1d05995b0880b23353741d5b2b826f7c2fd6a296.tar.xz linux-1d05995b0880b23353741d5b2b826f7c2fd6a296.zip |
sparc32: introduce build_device_irq
build_device_irq() is used to encapsulate the plaform
specific details when we build an irq.
For now the default is a simple 1:1 but sun4d differs.
This patch refactors functionality - but does not change
the existing functionality.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/irq.h')
-rw-r--r-- | arch/sparc/kernel/irq.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/sparc/kernel/irq.h b/arch/sparc/kernel/irq.h index 4b4e54f32b26..0b4d5b902165 100644 --- a/arch/sparc/kernel/irq.h +++ b/arch/sparc/kernel/irq.h @@ -1,3 +1,5 @@ +#include <linux/platform_device.h> + #include <asm/btfixup.h> /* @@ -7,6 +9,8 @@ */ struct sparc_irq_config { void (*init_timers)(irq_handler_t); + unsigned int (*build_device_irq)(struct platform_device *op, + unsigned int real_irq); }; extern struct sparc_irq_config sparc_irq_config; |