acpi: add and use defines for LAPIC feature flags

Both the processor local APIC structure and the processor local x2APIC
structure use the same flag bit definitions. ACPI spec 6.4 was used as a
reference.

Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: I8101c2ea874c8b12b130dbe9a0a7e0f0d94adffa
Reviewed-on: https://review.coreboot.org/c/coreboot/+/82641
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
This commit is contained in:
Felix Held 2024-05-24 14:16:20 +02:00 committed by Nico Huber
commit 4244527d8c
2 changed files with 6 additions and 2 deletions

View file

@ -726,6 +726,10 @@ typedef struct acpi_madt_lapic {
#define ACPI_MADT_MAX_LAPIC_ID 0xfe
/* MADT Local APIC Feature Flags */
#define ACPI_MADT_LAPIC_ENABLED (1 << 0)
#define ACPI_MADT_LAPIC_ONLINE_CAPABLE (1 << 1)
/* MADT: Local APIC NMI Structure */
typedef struct acpi_madt_lapic_nmi {
u8 type; /* Type (4) */