mptable: Get rid of fixup_virtual_wire
[coreboot.git] / src / mainboard / msi / ms7135 / mptable.c
index 74e811340e02a2205c7478c29fdd3e2f8250d66a..3b191410a6c344cbb95690f6b917a1df3211378b 100644 (file)
@@ -43,7 +43,7 @@ static void *smp_write_config_table(void *v)
 
        mc = (void *)(((char *)v) + SMP_FLOATING_TABLE_LEN);
 
-       mptable_init(mc, "MS-7135     ", LAPIC_ADDR);
+       mptable_init(mc, LAPIC_ADDR);
 
        smp_write_processors(mc);
        mptable_write_buses(mc, NULL, &bus_isa);
@@ -52,7 +52,7 @@ static void *smp_write_config_table(void *v)
        {
                device_t dev;
                struct resource *res;
-               uint32_t dword;
+               u32 dword;
 
                dev = dev_find_slot(bus_ck804[0], PCI_DEVFN(sbdn + 0x1, 0));
                if (dev) {
@@ -144,12 +144,7 @@ static void *smp_write_config_table(void *v)
        PCI_INT(3, 0, 3, 17);
 
 /*Local Ints:  Type    Polarity    Trigger     Bus ID   IRQ    APIC ID PIN#*/
-       smp_write_lintsrc(mc, mp_ExtINT,
-                        MP_IRQ_TRIGGER_DEFAULT | MP_IRQ_POLARITY_DEFAULT,
-                        bus_ck804[0], 0x0, MP_APIC_ALL, 0x0);
-       smp_write_lintsrc(mc, mp_NMI,
-                        MP_IRQ_TRIGGER_DEFAULT | MP_IRQ_POLARITY_DEFAULT,
-                        bus_ck804[0], 0x0, MP_APIC_ALL, 0x1);
+       mptable_lintsrc(mc, bus_ck804[0]);
 
        /* There is no extension information... */
 
@@ -165,6 +160,6 @@ static void *smp_write_config_table(void *v)
 unsigned long write_smp_table(unsigned long addr)
 {
        void *v;
-       v = smp_write_floating_table(addr);
+       v = smp_write_floating_table(addr, 0);
        return (unsigned long)smp_write_config_table(v);
 }