ACPICA: MADT: Add RISC-V external interrupt controllers
authorSunil V L <sunilvl@ventanamicro.com>
Sat, 15 Apr 2023 13:49:16 +0000 (19:19 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 10 Jul 2023 16:49:16 +0000 (18:49 +0200)
commitf3b19adef6c63c2b0778fe5918f786248a9ff897
treea6c9288ec85bf852044b916934dfe15d02b4f7b3
parent3a21ffdbc825e0919db9da0e27ee5ff2cc8a863e
ACPICA: MADT: Add RISC-V external interrupt controllers

ACPICA commit 8c048cee4ea7b9ded8db3e1b3b9c14e21e084a2c

This adds 3 different external interrupt controller
definitions in MADT for RISC-V.

 1) RISC-V PLIC is a platform interrupt controller for
    handling wired interrupt in a RISC-V systems.

 2) RISC-V IMSIC is MSI interrupt controller to
    support MSI interrupts.

 3) RISC-V APLIC has dual functionality. First it can
    act like PLIC and direct all wired interrupts to
    the CPU which doesn't have MSI controller. Second,
    when the CPU has MSI controller (IMSIC), it will
    act as a converter from wired interrupts to MSI.

Update the existing RINTC structure also to support
these external interrupt controllers.

This codefirst ECR is approved by UEFI forum and will
be part of next ACPI spec version.

Link: https://github.com/acpica/acpica/commit/8c048cee
Signed-off-by: Haibo, Xu <haibo1.xu@intel.com>
Co-developed-by: Haibo, Xu <haibo1.xu@intel.com>
Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
include/acpi/actbl2.h