added rsdt parse functionality
this function prints out the RSDT entries present in the system
This commit is contained in:
parent
0cc86fc37d
commit
2146b49bb3
6 changed files with 76 additions and 9 deletions
|
|
@ -11,14 +11,9 @@ struct rsdp {
|
|||
char oemid[6];
|
||||
uint8_t revision;
|
||||
uint32_t rsdt_addr;
|
||||
|
||||
uint32_t length;
|
||||
uint64_t xsdt_addr; /* the REAL address */
|
||||
uint8_t checksum_ext;
|
||||
char reserved[3];
|
||||
} PACKED;
|
||||
|
||||
struct acpi_header {
|
||||
struct acpi_sdt_header {
|
||||
char signature[4];
|
||||
uint32_t length;
|
||||
uint8_t revision;
|
||||
|
|
@ -30,6 +25,11 @@ struct acpi_header {
|
|||
uint32_t creator_revision;
|
||||
} PACKED;
|
||||
|
||||
struct rsdt {
|
||||
struct acpi_sdt_header h;
|
||||
uint32_t sdt[];
|
||||
};
|
||||
|
||||
void acpi_init();
|
||||
|
||||
#endif /* __ASM__ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue