aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m68k/include/asm/irq.h
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2011-04-13 16:31:28 -0400
committerGeert Uytterhoeven <geert@linux-m68k.org>2011-11-08 16:35:47 -0500
commitc288bf2533e57174b90b07860c4391bcd1ea269c (patch)
tree91fa6ef91d6653f491f41ff97c4da5e28dfd62fe /arch/m68k/include/asm/irq.h
parent3ec7215e5d1a714ef65069a1d0999a31e4930bb7 (diff)
m68k/irq: Rename irq_controller to irq_chip
Make it more similar to the genirq version: - Remove lock (unused as we don't do SMP anyway), - Prepend methods with irq_, - Make irq_startup() return unsigned int. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/m68k/include/asm/irq.h')
-rw-r--r--arch/m68k/include/asm/irq.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/arch/m68k/include/asm/irq.h b/arch/m68k/include/asm/irq.h
index 69ed0d74d532..d8c6f68b7a78 100644
--- a/arch/m68k/include/asm/irq.h
+++ b/arch/m68k/include/asm/irq.h
@@ -93,16 +93,15 @@ struct irq_handler {
93 const char *devname; 93 const char *devname;
94}; 94};
95 95
96struct irq_controller { 96struct irq_chip {
97 const char *name; 97 const char *name;
98 spinlock_t lock; 98 unsigned int (*irq_startup)(unsigned int irq);
99 int (*startup)(unsigned int irq); 99 void (*irq_shutdown)(unsigned int irq);
100 void (*shutdown)(unsigned int irq); 100 void (*irq_enable)(unsigned int irq);
101 void (*enable)(unsigned int irq); 101 void (*irq_disable)(unsigned int irq);
102 void (*disable)(unsigned int irq);
103}; 102};
104 103
105extern int m68k_irq_startup(unsigned int); 104extern unsigned int m68k_irq_startup(unsigned int);
106extern void m68k_irq_shutdown(unsigned int); 105extern void m68k_irq_shutdown(unsigned int);
107 106
108/* 107/*
@@ -113,7 +112,7 @@ extern irq_node_t *new_irq_node(void);
113extern void m68k_setup_auto_interrupt(void (*handler)(unsigned int, struct pt_regs *)); 112extern void m68k_setup_auto_interrupt(void (*handler)(unsigned int, struct pt_regs *));
114extern void m68k_setup_user_interrupt(unsigned int vec, unsigned int cnt, 113extern void m68k_setup_user_interrupt(unsigned int vec, unsigned int cnt,
115 void (*handler)(unsigned int, struct pt_regs *)); 114 void (*handler)(unsigned int, struct pt_regs *));
116extern void m68k_setup_irq_controller(struct irq_controller *, unsigned int, unsigned int); 115extern void m68k_setup_irq_chip(struct irq_chip *, unsigned int, unsigned int);
117 116
118asmlinkage void m68k_handle_int(unsigned int); 117asmlinkage void m68k_handle_int(unsigned int);
119asmlinkage void __m68k_handle_int(unsigned int, struct pt_regs *); 118asmlinkage void __m68k_handle_int(unsigned int, struct pt_regs *);