aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/kernel/i8259.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/arch/mips/kernel/i8259.c b/arch/mips/kernel/i8259.c
index 60021647cac1..b6e5bb41b06b 100644
--- a/arch/mips/kernel/i8259.c
+++ b/arch/mips/kernel/i8259.c
@@ -30,8 +30,10 @@
30 30
31static int i8259A_auto_eoi = -1; 31static int i8259A_auto_eoi = -1;
32DEFINE_SPINLOCK(i8259A_lock); 32DEFINE_SPINLOCK(i8259A_lock);
33/* some platforms call this... */ 33static void disable_8259A_irq(unsigned int irq);
34void mask_and_ack_8259A(unsigned int); 34static void enable_8259A_irq(unsigned int irq);
35static void mask_and_ack_8259A(unsigned int irq);
36static void init_8259A(int auto_eoi);
35 37
36static struct irq_chip i8259A_chip = { 38static struct irq_chip i8259A_chip = {
37 .name = "XT-PIC", 39 .name = "XT-PIC",
@@ -56,7 +58,7 @@ static unsigned int cached_irq_mask = 0xffff;
56#define cached_master_mask (cached_irq_mask) 58#define cached_master_mask (cached_irq_mask)
57#define cached_slave_mask (cached_irq_mask >> 8) 59#define cached_slave_mask (cached_irq_mask >> 8)
58 60
59void disable_8259A_irq(unsigned int irq) 61static void disable_8259A_irq(unsigned int irq)
60{ 62{
61 unsigned int mask; 63 unsigned int mask;
62 unsigned long flags; 64 unsigned long flags;
@@ -72,7 +74,7 @@ void disable_8259A_irq(unsigned int irq)
72 spin_unlock_irqrestore(&i8259A_lock, flags); 74 spin_unlock_irqrestore(&i8259A_lock, flags);
73} 75}
74 76
75void enable_8259A_irq(unsigned int irq) 77static void enable_8259A_irq(unsigned int irq)
76{ 78{
77 unsigned int mask; 79 unsigned int mask;
78 unsigned long flags; 80 unsigned long flags;
@@ -142,7 +144,7 @@ static inline int i8259A_irq_real(unsigned int irq)
142 * first, _then_ send the EOI, and the order of EOI 144 * first, _then_ send the EOI, and the order of EOI
143 * to the two 8259s is important! 145 * to the two 8259s is important!
144 */ 146 */
145void mask_and_ack_8259A(unsigned int irq) 147static void mask_and_ack_8259A(unsigned int irq)
146{ 148{
147 unsigned int irqmask; 149 unsigned int irqmask;
148 unsigned long flags; 150 unsigned long flags;
@@ -256,7 +258,7 @@ static int __init i8259A_init_sysfs(void)
256 258
257device_initcall(i8259A_init_sysfs); 259device_initcall(i8259A_init_sysfs);
258 260
259void init_8259A(int auto_eoi) 261static void init_8259A(int auto_eoi)
260{ 262{
261 unsigned long flags; 263 unsigned long flags;
262 264