diff options
| author | Adrian Bunk <bunk@stusta.de> | 2006-12-06 20:14:19 -0500 |
|---|---|---|
| committer | Andi Kleen <andi@basil.nowhere.org> | 2006-12-06 20:14:19 -0500 |
| commit | d7fb02712818643bab79a6b3cb8270a747d0227b (patch) | |
| tree | 7922e7f425d9206ae1dd3cc7b1b90a6663a20597 | |
| parent | f475ff352c5e05d473c462b97c3a13a5b803af5a (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>
| -rw-r--r-- | arch/i386/kernel/io_apic.c | 23 | ||||
| -rw-r--r-- | arch/i386/kernel/mpparse.c | 2 | ||||
| -rw-r--r-- | include/asm-i386/mpspec_def.h | 2 |
3 files changed, 2 insertions, 25 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 | |||
| 1002 | static int __init MPBIOS_polarity(int idx) | 994 | static 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; |
diff --git a/arch/i386/kernel/mpparse.c b/arch/i386/kernel/mpparse.c index 442aaf8c77eb..2ce67228dff8 100644 --- a/arch/i386/kernel/mpparse.c +++ b/arch/i386/kernel/mpparse.c | |||
| @@ -249,8 +249,6 @@ static void __init MP_bus_info (struct mpc_config_bus *m) | |||
| 249 | mp_current_pci_id++; | 249 | mp_current_pci_id++; |
| 250 | } else if (strncmp(str, BUSTYPE_MCA, sizeof(BUSTYPE_MCA)-1) == 0) { | 250 | } else if (strncmp(str, BUSTYPE_MCA, sizeof(BUSTYPE_MCA)-1) == 0) { |
| 251 | mp_bus_id_to_type[m->mpc_busid] = MP_BUS_MCA; | 251 | mp_bus_id_to_type[m->mpc_busid] = MP_BUS_MCA; |
| 252 | } else if (strncmp(str, BUSTYPE_NEC98, sizeof(BUSTYPE_NEC98)-1) == 0) { | ||
| 253 | mp_bus_id_to_type[m->mpc_busid] = MP_BUS_NEC98; | ||
| 254 | } else { | 252 | } else { |
| 255 | printk(KERN_WARNING "Unknown bustype %s - ignoring\n", str); | 253 | printk(KERN_WARNING "Unknown bustype %s - ignoring\n", str); |
| 256 | } | 254 | } |
diff --git a/include/asm-i386/mpspec_def.h b/include/asm-i386/mpspec_def.h index 76feedf85a8a..13bafb16e7af 100644 --- a/include/asm-i386/mpspec_def.h +++ b/include/asm-i386/mpspec_def.h | |||
| @@ -97,7 +97,6 @@ struct mpc_config_bus | |||
| 97 | #define BUSTYPE_TC "TC" | 97 | #define BUSTYPE_TC "TC" |
| 98 | #define BUSTYPE_VME "VME" | 98 | #define BUSTYPE_VME "VME" |
| 99 | #define BUSTYPE_XPRESS "XPRESS" | 99 | #define BUSTYPE_XPRESS "XPRESS" |
| 100 | #define BUSTYPE_NEC98 "NEC98" | ||
| 101 | 100 | ||
| 102 | struct mpc_config_ioapic | 101 | struct mpc_config_ioapic |
| 103 | { | 102 | { |
| @@ -182,7 +181,6 @@ enum mp_bustype { | |||
| 182 | MP_BUS_EISA, | 181 | MP_BUS_EISA, |
| 183 | MP_BUS_PCI, | 182 | MP_BUS_PCI, |
| 184 | MP_BUS_MCA, | 183 | MP_BUS_MCA, |
| 185 | MP_BUS_NEC98 | ||
| 186 | }; | 184 | }; |
| 187 | #endif | 185 | #endif |
| 188 | 186 | ||
