2023-03-11 09:36:55 +00:00
|
|
|
// This file is part of noxos and licensed under the MIT open source license
|
|
|
|
|
|
|
|
#ifndef NOX_ACPI_H
|
|
|
|
#define NOX_ACPI_H
|
|
|
|
|
|
|
|
#include "boot/boot_info.h"
|
2023-03-21 23:03:06 +00:00
|
|
|
#include "utils/string.h"
|
2023-03-11 09:36:55 +00:00
|
|
|
|
2023-03-21 23:03:06 +00:00
|
|
|
typedef struct {
|
|
|
|
char signature [4];
|
|
|
|
uint32_t length;
|
|
|
|
uint8_t revision;
|
|
|
|
uint8_t checksum;
|
|
|
|
char oem_id [6];
|
|
|
|
char oem_table_id [8];
|
|
|
|
uint32_t oem_revision;
|
|
|
|
uint32_t creator_id;
|
|
|
|
uint32_t creator_revision;
|
|
|
|
} __attribute__((packed)) acpi_sdt_header_T;
|
|
|
|
|
|
|
|
void acpi_init (boot_info_T* boot_info);
|
|
|
|
acpi_sdt_header_T* acpi_find_table (acpi_sdt_header_T* xsdt, string_t table_id);
|
2023-03-11 09:36:55 +00:00
|
|
|
|
|
|
|
#endif //NOX_ACPI_H
|