Turnstone Operating System
Loading...
Searching...
No Matches
acpi.h File Reference

acpi interface More...

#include <types.h>
#include <list.h>

Classes

struct  acpi_sdt_header_t
 
struct  acpi_xrsdt_t
 
struct  acpi_table_mcfg_t
 
struct  acpi_table_mcfg_t::pci_segment_group_config_t
 
struct  acpi_rsdp_descriptor_t
 
struct  acpi_xrsdp_descriptor_t
 
struct  acpi_generic_address_structure_t
 
struct  acpi_table_fadt_t
 
struct  acpi_pm1_control_register_t
 
union  acpi_table_madt_entry_t
 
struct  acpi_table_madt_entry_t::info_t
 
struct  acpi_table_madt_entry_t::local_apic_address_t
 
struct  acpi_table_madt_entry_t::processor_local_apic_t
 
struct  acpi_table_madt_entry_t::ioapic_t
 
struct  acpi_table_madt_entry_t::interrupt_source_override_t
 
struct  acpi_table_madt_entry_t::nmi_t
 
struct  acpi_table_madt_entry_t::local_apic_address_override_t
 
struct  acpi_contex_t
 

Macros

#define ___ACPI_H   0
 
#define ACPI_RSDP_SIGNATURE   "RSD PTR "
 
#define acpi_get_table(d, s)   acpi_get_next_table(d, s, NULL)
 
#define acpi_get_apic_table_entries(sdt_hdr)   acpi_get_apic_table_entries_with_heap(NULL, sdt_hdr)
 

Typedefs

typedef struct acpi_sdt_header_t acpi_sdt_header_t
 
typedef struct acpi_xrsdt_t acpi_xrsdt_t
 
typedef struct acpi_table_mcfg_t acpi_table_mcfg_t
 
typedef struct acpi_rsdp_descriptor_t acpi_rsdp_descriptor_t
 
typedef struct acpi_xrsdp_descriptor_t acpi_xrsdp_descriptor_t
 
typedef struct acpi_generic_address_structure_t acpi_generic_address_structure_t
 
typedef struct acpi_table_fadt_t acpi_table_fadt_t
 
typedef struct acpi_pm1_control_register_t acpi_pm1_control_register_t
 
typedef enum acpi_madt_entry_type_t acpi_madt_entry_type_t
 
typedef union acpi_table_madt_entry_t acpi_table_madt_entry_t
 
typedef struct acpi_contex_t acpi_contex_t
 

Enumerations

enum  acpi_madt_entry_type_t {
  ACPI_MADT_ENTRY_TYPE_LOCAL_APIC_ADDRESS =0xFF , ACPI_MADT_ENTRY_TYPE_PROCESSOR_LOCAL_APIC =0 , ACPI_MADT_ENTRY_TYPE_IOAPIC =1 , ACPI_MADT_ENTRY_TYPE_INTERRUPT_SOURCE_OVERRIDE =2 ,
  ACPI_MADT_ENTRY_TYPE_NMI =4 , ACPI_MADT_ENTRY_TYPE_LOCAL_APIC_ADDRESS_OVERRIDE =5
}
 

Functions

acpi_xrsdp_descriptor_tacpi_find_xrsdp (void)
 
uint8_t acpi_validate_checksum (acpi_sdt_header_t *sdt_header)
 
acpi_sdt_header_tacpi_get_next_table (acpi_xrsdp_descriptor_t *xrsdp_desc, const char_t *signature, list_t *old_tables)
 
list_tacpi_get_apic_table_entries_with_heap (memory_heap_t *heap, acpi_sdt_header_t *sdt_header)
 
int8_t acpi_setup (acpi_xrsdp_descriptor_t *desc)
 
int8_t acpi_reset (void)
 
int8_t acpi_poweroff (void)
 
int8_t acpi_setup_events (void)
 

Variables

acpi_contex_tACPI_CONTEXT
 

Detailed Description

acpi interface

This work is licensed under TURNSTONE OS Public License. Please read and understand latest version of Licence.

Macro Definition Documentation

◆ ___ACPI_H

#define ___ACPI_H   0

prevent duplicate header error macro

◆ ACPI_RSDP_SIGNATURE

#define ACPI_RSDP_SIGNATURE   "RSD PTR "

acpi rsdp signature at memory. spaces are important