diff options
author | Jianmin Lv <lvjianmin@loongson.cn> | 2023-03-28 09:10:59 +0800 |
---|---|---|
committer | Jianmin Lv <lvjianmin@loongson.cn> | 2023-03-28 09:53:12 +0800 |
commit | a1cb7b6af77ec30668634cdcaa0eb73b8f1dc3e2 (patch) | |
tree | e026c6249b22ee3ed1880696a5f17078a662b9e5 /source/compiler/dttable2.c | |
parent | 41b40f8412f9587cccac88f4520cb6ede512e5ae (diff) | |
download | acpica-a1cb7b6af77ec30668634cdcaa0eb73b8f1dc3e2.tar.gz |
iASL/MADT: Add dump and compile support for LoongArch APICs
The previous patch(MADT: Add LoongArch-specific APICs support), has
added LoongArch-specific APICs support, but lack of dumping and compiling
for LoongArch APICs in MADT when using iasl tool, so add code to
support it.
Signed-off-by: Jianmin Lv <lvjianmin@loongson.cn>
Diffstat (limited to 'source/compiler/dttable2.c')
-rw-r--r-- | source/compiler/dttable2.c | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/source/compiler/dttable2.c b/source/compiler/dttable2.c index 007b67476..a6882600f 100644 --- a/source/compiler/dttable2.c +++ b/source/compiler/dttable2.c @@ -371,11 +371,46 @@ DtCompileMadt ( InfoTable = AcpiDmTableInfoMadt16; break; + case ACPI_MADT_TYPE_CORE_PIC: + + InfoTable = AcpiDmTableInfoMadt17; + break; + + case ACPI_MADT_TYPE_LIO_PIC: + + InfoTable = AcpiDmTableInfoMadt18; + break; + + case ACPI_MADT_TYPE_HT_PIC: + + InfoTable = AcpiDmTableInfoMadt19; + break; + + case ACPI_MADT_TYPE_EIO_PIC: + + InfoTable = AcpiDmTableInfoMadt20; + break; + + case ACPI_MADT_TYPE_MSI_PIC: + + InfoTable = AcpiDmTableInfoMadt21; + break; + + case ACPI_MADT_TYPE_BIO_PIC: + + InfoTable = AcpiDmTableInfoMadt22; + break; + + case ACPI_MADT_TYPE_LPC_PIC: + + InfoTable = AcpiDmTableInfoMadt23; + break; + default: if (MadtHeader->Type >= ACPI_MADT_TYPE_OEM_RESERVED) { - InfoTable = AcpiDmTableInfoMadt17; + InfoTable = AcpiDmTableInfoMadt128; } else { |