mainboard/aopen: Use C89 comments style & remove commented code
Change-Id: I0014fc030888d71f7951c97bccc7cef0e1c45186 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/16922 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
committed by
Martin Roth
parent
626f8c8440
commit
46829869c8
@@ -32,37 +32,37 @@ unsigned long acpi_fill_madt(unsigned long current)
|
||||
device_t dev = 0;
|
||||
struct resource* res = NULL;
|
||||
|
||||
// SJM: Hard-code CPU LAPIC entries for now
|
||||
/* SJM: Hard-code CPU LAPIC entries for now */
|
||||
current += acpi_create_madt_lapic((acpi_madt_lapic_t *)current, 0, 0);
|
||||
current += acpi_create_madt_lapic((acpi_madt_lapic_t *)current, 1, 6);
|
||||
current += acpi_create_madt_lapic((acpi_madt_lapic_t *)current, 2, 1);
|
||||
current += acpi_create_madt_lapic((acpi_madt_lapic_t *)current, 3, 7);
|
||||
|
||||
// Southbridge IOAPIC
|
||||
/* Southbridge IOAPIC */
|
||||
current += acpi_create_madt_ioapic((acpi_madt_ioapic_t *)current, IOAPIC_ICH4, 0xfec00000, irq_start);
|
||||
irq_start += INTEL_IOAPIC_NUM_INTERRUPTS;
|
||||
|
||||
// P64H2 Bus B IOAPIC
|
||||
/* P64H2 Bus B IOAPIC */
|
||||
dev = dev_find_slot(PCI_BUS_E7501_HI_B, PCI_DEVFN(28, 0));
|
||||
if (!dev)
|
||||
BUG(); // Config.lb error?
|
||||
BUG(); /* Config.lb error? */
|
||||
res = find_resource(dev, PCI_BASE_ADDRESS_0);
|
||||
current += acpi_create_madt_ioapic((acpi_madt_ioapic_t *)current, IOAPIC_P64H2_BUS_B, res->base, irq_start);
|
||||
irq_start += INTEL_IOAPIC_NUM_INTERRUPTS;
|
||||
|
||||
// P64H2 Bus A IOAPIC
|
||||
/* P64H2 Bus A IOAPIC */
|
||||
dev = dev_find_slot(PCI_BUS_E7501_HI_B, PCI_DEVFN(30, 0));
|
||||
if (!dev)
|
||||
BUG(); // Config.lb error?
|
||||
BUG(); /* Config.lb error? */
|
||||
res = find_resource(dev, PCI_BASE_ADDRESS_0);
|
||||
current += acpi_create_madt_ioapic((acpi_madt_ioapic_t *)current, IOAPIC_P64H2_BUS_A, res->base, irq_start);
|
||||
irq_start += INTEL_IOAPIC_NUM_INTERRUPTS;
|
||||
|
||||
|
||||
// Map ISA IRQ 0 to IRQ 2
|
||||
/* Map ISA IRQ 0 to IRQ 2 */
|
||||
current += acpi_create_madt_irqoverride((acpi_madt_irqoverride_t *)current, 1, 0, 2, 0);
|
||||
|
||||
// IRQ9 differs from ISA standard - ours is active high, level-triggered
|
||||
/* IRQ9 differs from ISA standard - ours is active high, level-triggered */
|
||||
current += acpi_create_madt_irqoverride((acpi_madt_irqoverride_t *)current, 0, 9, 9, 0xD);
|
||||
|
||||
return current;
|
||||
|
Reference in New Issue
Block a user