PatchworkOS
Loading...
Searching...
No Matches
tables.h File Reference
#include <kernel/acpi/acpi.h>

Go to the source code of this file.

Data Structures

struct  fadt_gas_t
 FADT generic Address. More...
 
struct  fadt_t
 Fixed ACPI Description Table. More...
 
struct  interrupt_controller_header_t
 
struct  processor_local_apic_t
 Processor Local APIC. More...
 
struct  ioapic_t
 IO APIC. More...
 
struct  madt_t
 Multiple APIC Description Table. More...
 
struct  dsdt_t
 Differentiated System Description Table. More...
 
struct  ssdt_t
 Secondary System Description Table. More...
 
struct  acpi_sdt_handler_t
 ACPI System Description Table handler. More...
 
struct  acpi_cached_table_t
 Cached ACPI table. More...
 

Macros

#define FADT_GET()   ((fadt_t*)acpi_tables_lookup("FACP", 0))
 Type safe way to get the FADT table.
 
#define MADT_FLAG_PCAT_COMPAT   ((madt_flags_t)(1 << 0))
 
#define INTERRUPT_CONTROLLER_PROCESSOR_LOCAL_APIC   ((interrupt_controller_type_t)0)
 
#define INTERRUPT_CONTROLLER_IO_APIC   ((interrupt_controller_type_t)1)
 
#define PROCESSOR_LOCAL_APIC_ENABLED   (1 << 0)
 
#define PROCESSOR_LOCAL_APIC_ONLINE_CAPABLE   (1 << 1)
 
#define MADT_FOR_EACH(madt, ic)
 Iterate over all MADT interrupt controllers.
 
#define MADT_SIGNATURE   "APIC"
 MADT table signature.
 
#define DSDT_SIGNATURE   "DSDT"
 DSDT table signature.
 
#define SSDT_SIGNATURE   "SSDT"
 SSDT table signature.
 
#define ACPI_SDT_HANDLER_REGISTER(sig, initHandler)
 Macro to register an ACPI SDT handler.
 

Typedefs

typedef uint32_t madt_flags_t
 Multiple APIC Description Table flags.
 
typedef uint8_t interrupt_controller_type_t
 MADT Interrupt Controller Types.
 
typedef uint32_t processor_local_apic_flags_t
 MADT Processor Local APIC flags.
 

Enumerations

enum  fadt_boot_arch_flags_t { FADT_BOOT_ARCH_PS2_EXISTS = (1 << 1) }
 Enum for the fadt_t::bootArchFlags field. More...
 

Functions

void acpi_tables_init (rsdp_t *rsdp)
 Initialize ACPI tables and call their init handlers.
 
void acpi_tables_expose (void)
 Expose ACPI tables to sysfs.
 
sdt_header_tacpi_tables_lookup (const char *signature, uint64_t n)
 Lookup the n'th table matching the signature.