aboutsummaryrefslogtreecommitdiffstats
path: root/arch/i386/kernel/io_apic.c
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2006-12-06 20:14:19 -0500
committerAndi Kleen <andi@basil.nowhere.org>2006-12-06 20:14:19 -0500
commitd7fb02712818643bab79a6b3cb8270a747d0227b (patch)
tree7922e7f425d9206ae1dd3cc7b1b90a6663a20597 /arch/i386/kernel/io_apic.c
parentf475ff352c5e05d473c462b97c3a13a5b803af5a (diff)
[PATCH] x86-64: remove remaining pc98 code
Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Andi Kleen <ak@suse.de>
Diffstat (limited to 'arch/i386/kernel/io_apic.c')
-rw-r--r--arch/i386/kernel/io_apic.c23
1 files changed, 2 insertions, 21 deletions
diff --git a/arch/i386/kernel/io_apic.c b/arch/i386/kernel/io_apic.c
index 56f571c9fc0d..7f015a71ab55 100644
--- a/arch/i386/kernel/io_apic.c
+++ b/arch/i386/kernel/io_apic.c
@@ -842,8 +842,7 @@ static int __init find_isa_irq_pin(int irq, int type)
842 842
843 if ((mp_bus_id_to_type[lbus] == MP_BUS_ISA || 843 if ((mp_bus_id_to_type[lbus] == MP_BUS_ISA ||
844 mp_bus_id_to_type[lbus] == MP_BUS_EISA || 844 mp_bus_id_to_type[lbus] == MP_BUS_EISA ||
845 mp_bus_id_to_type[lbus] == MP_BUS_MCA || 845 mp_bus_id_to_type[lbus] == MP_BUS_MCA
846 mp_bus_id_to_type[lbus] == MP_BUS_NEC98
847 ) && 846 ) &&
848 (mp_irqs[i].mpc_irqtype == type) && 847 (mp_irqs[i].mpc_irqtype == type) &&
849 (mp_irqs[i].mpc_srcbusirq == irq)) 848 (mp_irqs[i].mpc_srcbusirq == irq))
@@ -862,8 +861,7 @@ static int __init find_isa_irq_apic(int irq, int type)
862 861
863 if ((mp_bus_id_to_type[lbus] == MP_BUS_ISA || 862 if ((mp_bus_id_to_type[lbus] == MP_BUS_ISA ||
864 mp_bus_id_to_type[lbus] == MP_BUS_EISA || 863 mp_bus_id_to_type[lbus] == MP_BUS_EISA ||
865 mp_bus_id_to_type[lbus] == MP_BUS_MCA || 864 mp_bus_id_to_type[lbus] == MP_BUS_MCA
866 mp_bus_id_to_type[lbus] == MP_BUS_NEC98
867 ) && 865 ) &&
868 (mp_irqs[i].mpc_irqtype == type) && 866 (mp_irqs[i].mpc_irqtype == type) &&
869 (mp_irqs[i].mpc_srcbusirq == irq)) 867 (mp_irqs[i].mpc_srcbusirq == irq))
@@ -993,12 +991,6 @@ static int EISA_ELCR(unsigned int irq)
993#define default_MCA_trigger(idx) (1) 991#define default_MCA_trigger(idx) (1)
994#define default_MCA_polarity(idx) (0) 992#define default_MCA_polarity(idx) (0)
995 993
996/* NEC98 interrupts are always polarity zero edge triggered,
997 * when listed as conforming in the MP table. */
998
999#define default_NEC98_trigger(idx) (0)
1000#define default_NEC98_polarity(idx) (0)
1001
1002static int __init MPBIOS_polarity(int idx) 994static int __init MPBIOS_polarity(int idx)
1003{ 995{
1004 int bus = mp_irqs[idx].mpc_srcbus; 996 int bus = mp_irqs[idx].mpc_srcbus;
@@ -1033,11 +1025,6 @@ static int __init MPBIOS_polarity(int idx)
1033 polarity = default_MCA_polarity(idx); 1025 polarity = default_MCA_polarity(idx);
1034 break; 1026 break;
1035 } 1027 }
1036 case MP_BUS_NEC98: /* NEC 98 pin */
1037 {
1038 polarity = default_NEC98_polarity(idx);
1039 break;
1040 }
1041 default: 1028 default:
1042 { 1029 {
1043 printk(KERN_WARNING "broken BIOS!!\n"); 1030 printk(KERN_WARNING "broken BIOS!!\n");
@@ -1107,11 +1094,6 @@ static int MPBIOS_trigger(int idx)
1107 trigger = default_MCA_trigger(idx); 1094 trigger = default_MCA_trigger(idx);
1108 break; 1095 break;
1109 } 1096 }
1110 case MP_BUS_NEC98: /* NEC 98 pin */
1111 {
1112 trigger = default_NEC98_trigger(idx);
1113 break;
1114 }
1115 default: 1097 default:
1116 { 1098 {
1117 printk(KERN_WARNING "broken BIOS!!\n"); 1099 printk(KERN_WARNING "broken BIOS!!\n");
@@ -1173,7 +1155,6 @@ static int pin_2_irq(int idx, int apic, int pin)
1173 case MP_BUS_ISA: /* ISA pin */ 1155 case MP_BUS_ISA: /* ISA pin */
1174 case MP_BUS_EISA: 1156 case MP_BUS_EISA:
1175 case MP_BUS_MCA: 1157 case MP_BUS_MCA:
1176 case MP_BUS_NEC98:
1177 { 1158 {
1178 irq = mp_irqs[idx].mpc_srcbusirq; 1159 irq = mp_irqs[idx].mpc_srcbusirq;
1179 break; 1160 break;