Angel Pons | 3b7983a | 2021-01-28 12:14:12 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | #include <acpi/acpi.h> |
| 4 | #include <arch/ioapic.h> |
| 5 | #include <arch/smp/mpspec.h> |
| 6 | |
| 7 | unsigned long acpi_fill_madt(unsigned long current) |
| 8 | { |
Angel Pons | 3b7983a | 2021-01-28 12:14:12 +0100 | [diff] [blame] | 9 | /* IOAPIC */ |
Kyösti Mälkki | c045735 | 2021-06-08 06:12:25 +0300 | [diff] [blame] | 10 | current += acpi_create_madt_ioapic_from_hw((acpi_madt_ioapic_t *)current, IO_APIC_ADDR); |
Angel Pons | 3b7983a | 2021-01-28 12:14:12 +0100 | [diff] [blame] | 11 | |
Angel Pons | 3b7983a | 2021-01-28 12:14:12 +0100 | [diff] [blame] | 12 | /* INT_SRC_OVR */ |
| 13 | current += acpi_create_madt_irqoverride((acpi_madt_irqoverride_t *) |
| 14 | current, 0, 0, 2, MP_IRQ_POLARITY_HIGH | MP_IRQ_TRIGGER_EDGE); |
| 15 | current += acpi_create_madt_irqoverride((acpi_madt_irqoverride_t *) |
| 16 | current, 0, 9, 9, MP_IRQ_POLARITY_HIGH | MP_IRQ_TRIGGER_LEVEL); |
| 17 | |
| 18 | return current; |
| 19 | } |