Get mptable OEM/product ID from kconfig variables.
[coreboot.git] / src / mainboard / asus / a8n_e / mptable.c
index e3d707fe735a01a6cf574c10501420c59f38d080..05f74da0909434ac1582e3c049adf988acb569f3 100644 (file)
 #include <stdint.h>
 #include <cpu/amd/amdk8_sysconf.h>
 
-extern unsigned char bus_isa;
 extern unsigned char bus_ck804[6];
 extern unsigned apicid_ck804;
-extern unsigned bus_type[256];
 
 static void *smp_write_config_table(void *v)
 {
        struct mp_config_table *mc;
        unsigned sbdn;
-       int bus_num;
+       int bus_isa;
 
        mc = (void *)(((char *)v) + SMP_FLOATING_TABLE_LEN);
 
-       mptable_init(mc, "A8N-E       ", LAPIC_ADDR);
+       mptable_init(mc, LAPIC_ADDR);
 
        smp_write_processors(mc);
 
        get_bus_conf();
        sbdn = sysconf.sbdn;
 
-       /* Bus: Bus ID  Type */
-       /* Define numbers for PCI and ISA bus. */
-       for (bus_num = 0; bus_num < 256; bus_num++) {
-               if (bus_type[bus_num])
-                       smp_write_bus(mc, bus_num, "PCI   ");
-       }
-       smp_write_bus(mc, bus_isa, "ISA   ");
+       mptable_write_buses(mc, NULL, &bus_isa);
 
        /* I/O APICs:   APIC ID Version State           Address */
        {