StuBS
acpi.h File Reference

Structs and methods related to the Advanced Configuration and Power Interface (ACPI). More...

#include "types.h"
Include dependency graph for acpi.h:

Classes

union  ACPI::MADS::LAPIC_Address_Override.__unnamed0__

Structs

struct  ACPI::RSDP
 Root System Description Pointer (RSDP). More...
struct  ACPI::SDTH
 System Description Table Header (SDTH). More...
struct  ACPI::RSDT
 Root System Description Table (RSDT). More...
struct  ACPI::XSDT
 Extended System Description Table (XSDT). More...
struct  ACPI::SubHeader
 Helper structure. More...
struct  ACPI::MADT
 Multiple APIC Description Table (MADT). More...
struct  ACPI::Address
 ACPI address format. More...
struct  ACPI::MADS::LAPIC
 Processor Local APIC (LAPIC) Structure. More...
struct  ACPI::MADS::IOAPIC
 I/O APIC Structure. More...
struct  ACPI::MADS::Interrupt_Source_Override
 Interrupt Source Override Structure. More...
struct  ACPI::MADS::LAPIC_Address_Override
 Local APIC Address Override Structure. More...
struct  ACPI::MADS::LAPIC_Address_Override.__unnamed0__.__unnamed0__

Namespaces

namespace  ACPI
 Abstracts the ACPI standard that provides interfaces for hardware detection, device configuration, and energy management.

Enumerations

enum class  AddressSpace : uint8_t {
  MEMORY = 0x0 ,
  IO = 0x1
}
enum  Type {
  Type_LAPIC = 0 ,
  Type_IOAPIC = 1 ,
  Type_Interrupt_Source_Override = 2 ,
  Type_LAPIC_Address_Override = 5
}

Functions

bool ACPI::init ()
 Initialize the ACPI description table.
unsigned ACPI::count ()
 Number of entries in the description table.
SDTHACPI::get (unsigned num)
 Get entry of description table by index.
SDTHACPI::get (char a, char b, char c, char d)
 Get entry of description table by four character identifier.
int ACPI::revision ()
 Retrieve the revision from the Root System Description Pointer (RSDP).

Detailed Description

Structs and methods related to the Advanced Configuration and Power Interface (ACPI).