2022-09-05 14:13:51 +00:00
|
|
|
#pragma once
|
2022-09-06 09:46:26 +00:00
|
|
|
#include "acpi/SDT.h"
|
2022-09-05 14:13:51 +00:00
|
|
|
|
|
|
|
namespace ACPI
|
|
|
|
{
|
|
|
|
struct XSDT
|
|
|
|
{
|
|
|
|
SDTHeader header;
|
2022-09-25 19:43:28 +00:00
|
|
|
uint64_t other_sdt[1];
|
2022-09-05 14:13:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct RSDT
|
|
|
|
{
|
|
|
|
SDTHeader header;
|
2022-09-25 19:43:28 +00:00
|
|
|
uint32_t other_sdt[1];
|
2022-09-05 14:13:51 +00:00
|
|
|
};
|
|
|
|
|
2022-09-25 19:43:28 +00:00
|
|
|
SDTHeader* get_rsdt_or_xsdt();
|
2022-09-05 14:13:51 +00:00
|
|
|
|
2022-09-25 19:43:28 +00:00
|
|
|
bool validate_rsdt_or_xsdt(SDTHeader* root_sdt);
|
2022-09-07 17:41:08 +00:00
|
|
|
|
2022-09-25 19:43:28 +00:00
|
|
|
bool is_xsdt();
|
2022-09-07 17:41:08 +00:00
|
|
|
|
2022-09-25 19:43:28 +00:00
|
|
|
void* find_table(SDTHeader* root_sdt, const char* signature);
|
2022-09-05 14:13:51 +00:00
|
|
|
}
|