diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2007-05-02 02:33:41 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-05-07 06:31:13 -0400 |
commit | 3669e930481d6dd510718279cd4bacb15ca3ae91 (patch) | |
tree | e7b733835e934e0ad045d89dd7d9f3e6d23e762f /include/asm-powerpc | |
parent | 71bf08b6c083df4ee97874d895f911529f4150dd (diff) |
[POWERPC] MPIC sys_device & suspend/resume
This adds mpic to the system devices and implements suspend
and resume for them. This is necessary to get interrupts for
modules back to where they were before a suspend to disk.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc')
-rw-r--r-- | include/asm-powerpc/mpic.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/asm-powerpc/mpic.h b/include/asm-powerpc/mpic.h index e4d5fc5362a0..22c85c4f5b29 100644 --- a/include/asm-powerpc/mpic.h +++ b/include/asm-powerpc/mpic.h | |||
@@ -3,6 +3,7 @@ | |||
3 | #ifdef __KERNEL__ | 3 | #ifdef __KERNEL__ |
4 | 4 | ||
5 | #include <linux/irq.h> | 5 | #include <linux/irq.h> |
6 | #include <linux/sysdev.h> | ||
6 | #include <asm/dcr.h> | 7 | #include <asm/dcr.h> |
7 | 8 | ||
8 | /* | 9 | /* |
@@ -228,6 +229,14 @@ struct mpic_reg_bank { | |||
228 | #endif /* CONFIG_PPC_DCR */ | 229 | #endif /* CONFIG_PPC_DCR */ |
229 | }; | 230 | }; |
230 | 231 | ||
232 | struct mpic_irq_save { | ||
233 | u32 vecprio, | ||
234 | dest; | ||
235 | #ifdef CONFIG_MPIC_U3_HT_IRQS | ||
236 | u32 fixup_data; | ||
237 | #endif | ||
238 | }; | ||
239 | |||
231 | /* The instance data of a given MPIC */ | 240 | /* The instance data of a given MPIC */ |
232 | struct mpic | 241 | struct mpic |
233 | { | 242 | { |
@@ -294,6 +303,12 @@ struct mpic | |||
294 | 303 | ||
295 | /* link */ | 304 | /* link */ |
296 | struct mpic *next; | 305 | struct mpic *next; |
306 | |||
307 | struct sys_device sysdev; | ||
308 | |||
309 | #ifdef CONFIG_PM | ||
310 | struct mpic_irq_save *save_data; | ||
311 | #endif | ||
297 | }; | 312 | }; |
298 | 313 | ||
299 | /* | 314 | /* |