aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/i8259.h
diff options
context:
space:
mode:
authorJacob Pan <jacob.jun.pan@intel.com>2009-11-09 14:24:14 -0500
committerH. Peter Anvin <hpa@zytor.com>2010-02-19 19:25:17 -0500
commitef3548668c02cc8c3922f4423f32b53e662811c6 (patch)
treec9f2b35d0614185bcecd31c94a564ca7e03ca53f /arch/x86/include/asm/i8259.h
parent35f720c5930f689647d51ad77e2a8d6f0abf66c8 (diff)
x86, pic: Introduce legacy_pic abstraction
This patch makes i8259A like legacy programmable interrupt controller code into a driver so that legacy pic functions can be selected at runtime based on platform information, such as HW subarchitecure ID. Default structure of legacy_pic maintains the current code path for x86pc. Signed-off-by: Jacob Pan <jacob.jun.pan@intel.com> LKML-Reference: <43F901BD926A4E43B106BF17856F07559FB80D03@orsmsx508.amr.corp.intel.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/include/asm/i8259.h')
-rw-r--r--arch/x86/include/asm/i8259.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/x86/include/asm/i8259.h b/arch/x86/include/asm/i8259.h
index 58d7091eeb1f..e8a3e05c2882 100644
--- a/arch/x86/include/asm/i8259.h
+++ b/arch/x86/include/asm/i8259.h
@@ -57,6 +57,19 @@ static inline void outb_pic(unsigned char value, unsigned int port)
57 57
58extern struct irq_chip i8259A_chip; 58extern struct irq_chip i8259A_chip;
59 59
60struct legacy_pic {
61 int nr_legacy_irqs;
62 struct irq_chip *chip;
63 void (*mask_all)(void);
64 void (*restore_mask)(void);
65 void (*init)(int auto_eoi);
66 int (*irq_pending)(unsigned int irq);
67 void (*make_irq)(unsigned int irq);
68};
69
70extern struct legacy_pic *legacy_pic;
71extern struct legacy_pic null_legacy_pic;
72
60extern void mask_8259A(void); 73extern void mask_8259A(void);
61extern void unmask_8259A(void); 74extern void unmask_8259A(void);
62 75