PatchworkOS
Loading...
Searching...
No Matches
acpi.h File Reference
#include <kernel/fs/sysfs.h>
#include <boot/boot_info.h>
#include <kernel/defs.h>
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  sdt_header_t
 System Description Table Header. More...
 
struct  rsdp_t
 Root System Description Pointer. More...
 
struct  xsdt_t
 Extended System Description Table. More...
 

Macros

#define RSDP_CURRENT_REVISION   2
 The expected value of the revision field in the RSDP structure.
 
#define SDT_SIGNATURE_LENGTH   4
 The length of the signature field in the SDT header structure.
 
#define SDT_OEM_ID_LENGTH   6
 The length of the OEM ID field in the SDT header structure.
 
#define SDT_OEM_TABLE_ID_LENGTH   8
 The length of the OEM Table ID field in the SDT header structure.
 
#define RSDP_SIGNATURE_LENGTH   8
 Length of the signature field in the RSDP structure.
 
#define RSDP_V1_LENGTH   20
 Length of the RSDP structure for ACPI version 1.0.
 

Functions

bool acpi_is_checksum_valid (void *table, uint64_t length)
 Check if the sum of all bytes in a table is 0.
 
dentry_tacpi_get_sysfs_root (void)
 Retrieve the sysfs root directory for ACPI.
 
void acpi_reclaim_memory (const boot_memory_map_t *map)
 Reclaim ACPI memory regions.