x86, pic: Introduce legacy_pic abstraction
authorJacob Pan <jacob.jun.pan@intel.com>
Mon, 9 Nov 2009 19:24:14 +0000 (11:24 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Sat, 20 Feb 2010 00:25:17 +0000 (16:25 -0800)
commitef3548668c02cc8c3922f4423f32b53e662811c6
treec9f2b35d0614185bcecd31c94a564ca7e03ca53f
parent35f720c5930f689647d51ad77e2a8d6f0abf66c8
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>
arch/x86/include/asm/i8259.h
arch/x86/kernel/i8259.c