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

struct  ACPI::MADS::LAPIC_Address_Override.__unnamed12__.__unnamed14__
 

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. More...
 
unsigned ACPI::count ()
 Number of entries in the description table.
 
SDTH * ACPI::get (unsigned num)
 Get entry of description table by index. More...
 
SDTH * ACPI::get (char a, char b, char c, char d)
 Get entry of description table by four character identifier. More...
 
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).