Voxia OS v0.0.1
Hobby Project Operating System Targeting x86-64
Loading...
Searching...
No Matches
acpi.h File Reference
#include <type.h>

Go to the source code of this file.

Data Structures

struct  RSDP_t
 
struct  SDT
 
struct  RSDT
 
struct  MADT
 
struct  ACPI_APIC_ENTRY
 
struct  ACPI_IO_APIC
 
struct  cpu_core
 

Enumerations

enum  ACPI_TABLE_TYPE {
  ACPI_PROCESSOR_LAPIC = 0 , ACPI_IO_APIC = 1 , ACPI_IO_INT_OVERRIDE = 2 , ACPI_NMI = 3 ,
  ACPI_LOCAL_APIC_NMI = 4 , ACPI_LOCAL_APIC_OVERRIDE = 5 , ACPI_LOCAL_X2_APIC = 9
}
 
enum  cpu_core_status_t { Off = 0 , Active }
 

Functions

struct RSDP_t __attribute__ ((packed))
 
struct __attribute__ ((__packed__))
 
struct cpu_corevxGetCpuInfo (uint8_t apicid)
 
uintptr_t acpi_map_phys_page (uintptr_t phys_addr, size_t len)
 
void acpi_phys_page_unmap (uintptr_t addr)
 
uint8_t vxGetNumberOfCores ()
 

Variables

typedef __attribute__
 
char Signature [8]
 
uint8_t Checksum
 
char OEMID [6]
 
uint8_t Revision
 
uint32_t RsdtAddress
 
uint32_t Length
 
char OEMTableID [8]
 
uint32_t OEMRevision
 
uint32_t CreatorID
 
uint32_t CreatorRevision
 
struct SDT h
 
uint32_t PointerToOtherSDT []
 
 madt_record_table_entry_t
 
struct SDT header
 
uint32_t localApicAddress
 
uint32_t flags
 
madt_record_table_entry_t table []
 
uint8_t type
 
uint8_t length
 
uint8_t ioApicId
 
uint8_t reserved
 
uint32_t ioApicAddress
 
uint32_t globalSystemInterruptBase
 

Enumeration Type Documentation

◆ ACPI_TABLE_TYPE

Enumerator
ACPI_PROCESSOR_LAPIC 
ACPI_IO_APIC 
ACPI_IO_INT_OVERRIDE 
ACPI_NMI 
ACPI_LOCAL_APIC_NMI 
ACPI_LOCAL_APIC_OVERRIDE 
ACPI_LOCAL_X2_APIC 

Definition at line 48 of file acpi.h.

◆ cpu_core_status_t

Enumerator
Off 
Active 

Definition at line 66 of file acpi.h.

Function Documentation

◆ __attribute__() [1/2]

struct __attribute__ ( (__packed__) )

Definition at line 1 of file acpi.h.

◆ __attribute__() [2/2]

struct RSDP_t __attribute__ ( (packed) )

Definition at line 1 of file tcp.h.

◆ acpi_map_phys_page()

◆ acpi_phys_page_unmap()

void acpi_phys_page_unmap ( uintptr_t addr)

◆ vxGetCpuInfo()

struct cpu_core * vxGetCpuInfo ( uint8_t apicid)

Definition at line 21 of file acpi.c.

References cpu_core::apicid, core, and cpu_list.

Referenced by __attribute__(), INIT(), INIT(), and vxAddWorkqueueTask().

◆ vxGetNumberOfCores()

uint8_t vxGetNumberOfCores ( )

Definition at line 45 of file acpi.c.

References core, count, and cpu_list.

Referenced by INIT(), and INIT().

Variable Documentation

◆ __attribute__

enum ACPI_TABLE_TYPE __attribute__

◆ Checksum

uint8_t Checksum

Definition at line 1 of file acpi.h.

◆ CreatorID

uint32_t CreatorID

Definition at line 7 of file acpi.h.

◆ CreatorRevision

uint32_t CreatorRevision

Definition at line 8 of file acpi.h.

◆ flags

uint32_t flags

Definition at line 2 of file acpi.h.

◆ globalSystemInterruptBase

uint32_t globalSystemInterruptBase

Definition at line 4 of file acpi.h.

◆ h

◆ header

struct SDT header

Definition at line 0 of file acpi.h.

Referenced by __attribute__(), pci_check_bus(), and vxVoxmoInstall().

◆ ioApicAddress

uint32_t ioApicAddress

Definition at line 3 of file acpi.h.

◆ ioApicId

uint8_t ioApicId

Definition at line 1 of file acpi.h.

◆ Length

uint32_t Length

Definition at line 1 of file acpi.h.

◆ length

uint8_t length

Definition at line 1 of file acpi.h.

◆ localApicAddress

uint32_t localApicAddress

Definition at line 1 of file acpi.h.

◆ madt_record_table_entry_t

madt_record_table_entry_t

Definition at line 34 of file acpi.h.

Referenced by parsing_madt().

◆ OEMID

char OEMID

Definition at line 2 of file acpi.h.

◆ OEMRevision

uint32_t OEMRevision

Definition at line 6 of file acpi.h.

◆ OEMTableID

char OEMTableID[8]

Definition at line 5 of file acpi.h.

◆ PointerToOtherSDT

uint32_t PointerToOtherSDT[]

Definition at line 1 of file acpi.h.

◆ reserved

uint32_t reserved

Definition at line 2 of file acpi.h.

◆ Revision

uint8_t Revision

Definition at line 3 of file acpi.h.

◆ RsdtAddress

uint32_t RsdtAddress

Definition at line 4 of file acpi.h.

◆ Signature

char Signature

Definition at line 0 of file acpi.h.

◆ table

◆ type

uint8_t type

Definition at line 0 of file acpi.h.