stos/amd64: irqchip: Save LAPIC descriptors

Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
Chloe M.
2026-06-27 05:01:29 +00:00
parent 55e12ce62d
commit 6f09c21c90
2 changed files with 68 additions and 2 deletions
+12
View File
@@ -9,11 +9,23 @@
#ifndef _MACHINE_IRQCHIP_H_
#define _MACHINE_IRQCHIP_H_ 1
#include <drivers/acpi/tables.h>
#include <drivers/acpi/acpi.h>
#include <stdef.h>
/* Max IRQ chips values */
#define LAPIC_MAX 64
/*
* Enumerate and save all platform IRQ chips
*/
VOID MdIrqChipInit(VOID);
/*
* Obtain a Local APIC descriptor by index
*
* @Index: Index of LAPIC descriptor to obtain
*/
ACPI_LOCAL_APIC *MdLapicByIndex(USIZE Index);
#endif /* !_MACHINE_IRQCHIP_H_ */