diff options
Diffstat (limited to 'kernel/acpi.h')
| -rw-r--r-- | kernel/acpi.h | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/kernel/acpi.h b/kernel/acpi.h index ce8d710..e94766c 100644 --- a/kernel/acpi.h +++ b/kernel/acpi.h @@ -1,3 +1,6 @@ +#ifndef FOOLOS_ACPI_H +#define FOOLOS_ACPI_H + /** * @file * @@ -10,5 +13,25 @@ * https://wiki.osdev.org/MADT#Entry_Type_1_:_I.2FO_APIC */ -#include "smp.h" -bool acpi_find(smp_processors *procdata); +#include <stdint.h> + +typedef struct +{ + + uint8_t boot; //which processor in array is bsp + // (boot strap processor) + + uint8_t processors; // total number of usable processors + + uint32_t local_apic_address;// same for every processor + uint32_t io_apic_address; + + uint32_t local_apic_id[SMP_MAX_PROC]; // unique id for every processor + + uint32_t flags; + +}acpi_information; + +bool acpi_fill(acpi_information *procdata); + +#endif |
