public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [2.6 patch] arch/i386/kernel/: remove remaining pc98 code
@ 2006-11-22  4:17 Adrian Bunk
  2006-11-27 12:52 ` Ingo Molnar
  0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2006-11-22  4:17 UTC (permalink / raw)
  To: linux-kernel; +Cc: mingo

This patch removes the remaining code of the removed pc98 support.

Signed-off-by: Adrian Bunk <bunk@stusta.de>

---

 arch/i386/kernel/io_apic.c    |   23 ++---------------------
 arch/i386/kernel/mpparse.c    |    2 --
 include/asm-i386/mpspec_def.h |    2 --
 3 files changed, 2 insertions(+), 25 deletions(-)

--- linux-2.6.19-rc5-mm2/include/asm-i386/mpspec_def.h.old	2006-11-22 01:56:41.000000000 +0100
+++ linux-2.6.19-rc5-mm2/include/asm-i386/mpspec_def.h	2006-11-22 01:58:48.000000000 +0100
@@ -97,7 +97,6 @@ struct mpc_config_bus
 #define BUSTYPE_TC	"TC"
 #define BUSTYPE_VME	"VME"
 #define BUSTYPE_XPRESS	"XPRESS"
-#define BUSTYPE_NEC98	"NEC98"
 
 struct mpc_config_ioapic
 {
@@ -182,7 +181,6 @@ enum mp_bustype {
 	MP_BUS_EISA,
 	MP_BUS_PCI,
 	MP_BUS_MCA,
-	MP_BUS_NEC98
 };
 #endif
 
--- linux-2.6.19-rc5-mm2/arch/i386/kernel/mpparse.c.old	2006-11-22 01:57:01.000000000 +0100
+++ linux-2.6.19-rc5-mm2/arch/i386/kernel/mpparse.c	2006-11-22 01:57:17.000000000 +0100
@@ -249,8 +249,6 @@ static void __init MP_bus_info (struct m
 		mp_current_pci_id++;
 	} else if (strncmp(str, BUSTYPE_MCA, sizeof(BUSTYPE_MCA)-1) == 0) {
 		mp_bus_id_to_type[m->mpc_busid] = MP_BUS_MCA;
-	} else if (strncmp(str, BUSTYPE_NEC98, sizeof(BUSTYPE_NEC98)-1) == 0) {
-		mp_bus_id_to_type[m->mpc_busid] = MP_BUS_NEC98;
 	} else {
 		printk(KERN_WARNING "Unknown bustype %s - ignoring\n", str);
 	}
--- linux-2.6.19-rc5-mm2/arch/i386/kernel/io_apic.c.old	2006-11-22 01:57:26.000000000 +0100
+++ linux-2.6.19-rc5-mm2/arch/i386/kernel/io_apic.c	2006-11-22 01:58:21.000000000 +0100
@@ -843,8 +843,7 @@ static int __init find_isa_irq_pin(int i
 
 		if ((mp_bus_id_to_type[lbus] == MP_BUS_ISA ||
 		     mp_bus_id_to_type[lbus] == MP_BUS_EISA ||
-		     mp_bus_id_to_type[lbus] == MP_BUS_MCA ||
-		     mp_bus_id_to_type[lbus] == MP_BUS_NEC98
+		     mp_bus_id_to_type[lbus] == MP_BUS_MCA
 		    ) &&
 		    (mp_irqs[i].mpc_irqtype == type) &&
 		    (mp_irqs[i].mpc_srcbusirq == irq))
@@ -863,8 +862,7 @@ static int __init find_isa_irq_apic(int 
 
 		if ((mp_bus_id_to_type[lbus] == MP_BUS_ISA ||
 		     mp_bus_id_to_type[lbus] == MP_BUS_EISA ||
-		     mp_bus_id_to_type[lbus] == MP_BUS_MCA ||
-		     mp_bus_id_to_type[lbus] == MP_BUS_NEC98
+		     mp_bus_id_to_type[lbus] == MP_BUS_MCA
 		    ) &&
 		    (mp_irqs[i].mpc_irqtype == type) &&
 		    (mp_irqs[i].mpc_srcbusirq == irq))
@@ -994,12 +992,6 @@ static int EISA_ELCR(unsigned int irq)
 #define default_MCA_trigger(idx)	(1)
 #define default_MCA_polarity(idx)	(0)
 
-/* NEC98 interrupts are always polarity zero edge triggered,
- * when listed as conforming in the MP table. */
-
-#define default_NEC98_trigger(idx)     (0)
-#define default_NEC98_polarity(idx)    (0)
-
 static int __init MPBIOS_polarity(int idx)
 {
 	int bus = mp_irqs[idx].mpc_srcbus;
@@ -1034,11 +1026,6 @@ static int __init MPBIOS_polarity(int id
 					polarity = default_MCA_polarity(idx);
 					break;
 				}
-				case MP_BUS_NEC98: /* NEC 98 pin */
-				{
-					polarity = default_NEC98_polarity(idx);
-					break;
-				}
 				default:
 				{
 					printk(KERN_WARNING "broken BIOS!!\n");
@@ -1108,11 +1095,6 @@ static int MPBIOS_trigger(int idx)
 					trigger = default_MCA_trigger(idx);
 					break;
 				}
-				case MP_BUS_NEC98: /* NEC 98 pin */
-				{
-					trigger = default_NEC98_trigger(idx);
-					break;
-				}
 				default:
 				{
 					printk(KERN_WARNING "broken BIOS!!\n");
@@ -1174,7 +1156,6 @@ static int pin_2_irq(int idx, int apic, 
 		case MP_BUS_ISA: /* ISA pin */
 		case MP_BUS_EISA:
 		case MP_BUS_MCA:
-		case MP_BUS_NEC98:
 		{
 			irq = mp_irqs[idx].mpc_srcbusirq;
 			break;


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [2.6 patch] arch/i386/kernel/: remove remaining pc98 code
  2006-11-22  4:17 [2.6 patch] arch/i386/kernel/: remove remaining pc98 code Adrian Bunk
@ 2006-11-27 12:52 ` Ingo Molnar
  0 siblings, 0 replies; 2+ messages in thread
From: Ingo Molnar @ 2006-11-27 12:52 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: linux-kernel

On Wed, 2006-11-22 at 05:17 +0100, Adrian Bunk wrote:
> This patch removes the remaining code of the removed pc98 support.
> 
> Signed-off-by: Adrian Bunk <bunk@stusta.de> 

looks good to me,

Acked-by: Ingo Molnar <mingo@redhat.com>

	Ingo


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-11-27 12:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-22  4:17 [2.6 patch] arch/i386/kernel/: remove remaining pc98 code Adrian Bunk
2006-11-27 12:52 ` Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox