Luna/kernel/include/acpi/RSDT.h

25 lines
429 B
C++

#pragma once
#include "acpi/SDT.h"
namespace ACPI
{
struct XSDT
{
SDTHeader header;
uint64_t PointerToOtherSDT[1];
};
struct RSDT
{
SDTHeader header;
uint32_t PointerToOtherSDT[1];
};
SDTHeader* GetRSDTOrXSDT();
bool ValidateRSDTOrXSDT(SDTHeader* rootSDT);
bool IsXSDT(SDTHeader* rootSDT);
void* FindTable(SDTHeader* rootSDT, const char* signature);
}