aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sh_intc.h
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2010-03-19 03:48:01 -0400
committerPaul Mundt <lethal@linux-sh.org>2010-03-19 03:48:01 -0400
commitdec710b77c2cf04bf512acada3c14a16f11708d9 (patch)
treee2e25d5afa00df0eccb7c2881b29167ad4ff3b63 /include/linux/sh_intc.h
parent01e9651a21bc0e6731da733593e4aaf4cf46b5e5 (diff)
sh: INTC ioremap support
Extend the INTC code with ioremap() support V2. Support INTC controllers that are not accessible through a 1:1 virt:phys window. Needed by SH-Mobile ARM INTCS. The INTC code behaves as usual if the io window resource is omitted. The slow phys->virt lookup only happens during setup. The fast path code operates on virtual addresses. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include/linux/sh_intc.h')
-rw-r--r--include/linux/sh_intc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/sh_intc.h b/include/linux/sh_intc.h
index df3777035936..01d8168c5a1b 100644
--- a/include/linux/sh_intc.h
+++ b/include/linux/sh_intc.h
@@ -1,6 +1,8 @@
1#ifndef __SH_INTC_H 1#ifndef __SH_INTC_H
2#define __SH_INTC_H 2#define __SH_INTC_H
3 3
4#include <linux/ioport.h>
5
4typedef unsigned char intc_enum; 6typedef unsigned char intc_enum;
5 7
6struct intc_vect { 8struct intc_vect {
@@ -71,6 +73,8 @@ struct intc_hw_desc {
71 73
72struct intc_desc { 74struct intc_desc {
73 char *name; 75 char *name;
76 struct resource *resource;
77 unsigned int num_resources;
74 intc_enum force_enable; 78 intc_enum force_enable;
75 intc_enum force_disable; 79 intc_enum force_disable;
76 struct intc_hw_desc hw; 80 struct intc_hw_desc hw;