summaryrefslogtreecommitdiff
path: root/arch/powerpc/platforms/embedded6xx/flipper-pic.h
diff options
context:
space:
mode:
authorAlbert Herranz <albert_herranz@yahoo.es>2009-12-12 09:31:41 +0300
committerGrant Likely <grant.likely@secretlab.ca>2009-12-13 08:24:28 +0300
commit028ee972f032b636b5776b779c0f085ba9cfd30f (patch)
treed3c511ede732936ced7addff4e1b2a191f152916 /arch/powerpc/platforms/embedded6xx/flipper-pic.h
parenta166df08248cf78631507bb444ab72ba31cbef1e (diff)
downloadlinux-028ee972f032b636b5776b779c0f085ba9cfd30f.tar.xz
powerpc: gamecube/wii: flipper interrupt controller support
Add support for the interrupt controller included in the "Flipper" chipset of the Nintendo GameCube video game console. The same interrupt controller is also present in the "Hollywood" chipset of the Nintendo Wii. Signed-off-by: Albert Herranz <albert_herranz@yahoo.es> Acked-by: Segher Boessenkool <segher@kernel.crashing.org> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'arch/powerpc/platforms/embedded6xx/flipper-pic.h')
-rw-r--r--arch/powerpc/platforms/embedded6xx/flipper-pic.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/embedded6xx/flipper-pic.h b/arch/powerpc/platforms/embedded6xx/flipper-pic.h
new file mode 100644
index 000000000000..e339186b5663
--- /dev/null
+++ b/arch/powerpc/platforms/embedded6xx/flipper-pic.h
@@ -0,0 +1,25 @@
+/*
+ * arch/powerpc/platforms/embedded6xx/flipper-pic.h
+ *
+ * Nintendo GameCube/Wii "Flipper" interrupt controller support.
+ * Copyright (C) 2004-2009 The GameCube Linux Team
+ * Copyright (C) 2007,2008,2009 Albert Herranz
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ */
+
+#ifndef __FLIPPER_PIC_H
+#define __FLIPPER_PIC_H
+
+unsigned int flipper_pic_get_irq(void);
+void __init flipper_pic_probe(void);
+
+void flipper_quiesce(void);
+void flipper_platform_reset(void);
+int flipper_is_reset_button_pressed(void);
+
+#endif