acpi.c File Reference

#include <console/console.h>
#include <string.h>
#include <arch/acpi.h>
#include <device/pci.h>

Include dependency graph for acpi.c:

Go to the source code of this file.

Defines

#define LOCAL_APIC_ADDR   0xfee00000ULL
#define HPET_ADDR   0xfed00000ULL

Functions

u8 acpi_checksum (u8 *table, u32 length)
void acpi_add_table (acpi_rsdt_t *rsdt, void *table)
int acpi_create_mcfg_mmconfig (acpi_mcfg_mmconfig_t *mmconfig, u32 base, u16 seg_nr, u8 start, u8 end)
int acpi_create_madt_lapic (acpi_madt_lapic_t *lapic, u8 cpu, u8 apic)
int acpi_create_madt_ioapic (acpi_madt_ioapic_t *ioapic, u8 id, u32 addr, u32 gsi_base)
int acpi_create_madt_irqoverride (acpi_madt_irqoverride_t *irqoverride, u8 bus, u8 source, u32 gsirq, u16 flags)
int acpi_create_madt_lapic_nmi (acpi_madt_lapic_nmi_t *lapic_nmi, u8 cpu, u16 flags, u8 lint)
void acpi_create_madt (acpi_madt_t *madt)
void acpi_create_mcfg (acpi_mcfg_t *mcfg)
int acpi_create_srat_lapic (acpi_srat_lapic_t *lapic, u8 node, u8 apic)
int acpi_create_srat_mem (acpi_srat_mem_t *mem, u8 node, u32 basek, u32 sizek, u32 flags)
void acpi_create_srat (acpi_srat_t *srat)
void acpi_create_slit (acpi_slit_t *slit)
void acpi_create_hpet (acpi_hpet_t *hpet)
void acpi_create_facs (acpi_facs_t *facs)
void acpi_write_rsdt (acpi_rsdt_t *rsdt)
void acpi_write_rsdp (acpi_rsdp_t *rsdp, acpi_rsdt_t *rsdt)


Define Documentation

#define HPET_ADDR   0xfed00000ULL

#define LOCAL_APIC_ADDR   0xfee00000ULL

Referenced by acpi_create_madt().


Function Documentation

void acpi_add_table ( acpi_rsdt_t *  rsdt,
void *  table 
)

Definition at line 43 of file acpi.c.

References acpi_checksum(), ARRAY_SIZE, printk_debug, printk_warning, u32, and u8.

Referenced by acpi_add_ssdt_pstates(), and write_acpi_tables().

Here is the call graph for this function:

Here is the caller graph for this function:

u8 acpi_checksum ( u8 *  table,
u32  length 
)

void acpi_create_facs ( acpi_facs_t *  facs  ) 

Definition at line 296 of file acpi.c.

References memcpy(), and memset().

Referenced by write_acpi_tables().

Here is the call graph for this function:

Here is the caller graph for this function:

void acpi_create_hpet ( acpi_hpet_t *  hpet  ) 

Definition at line 265 of file acpi.c.

References acpi_checksum(), addr, HPET_ADDR, memcpy(), and memset().

Referenced by write_acpi_tables().

Here is the call graph for this function:

Here is the caller graph for this function:

void acpi_create_madt ( acpi_madt_t *  madt  ) 

Definition at line 129 of file acpi.c.

References acpi_checksum(), acpi_fill_madt(), LOCAL_APIC_ADDR, memcpy(), and memset().

Referenced by write_acpi_tables().

Here is the call graph for this function:

Here is the caller graph for this function:

int acpi_create_madt_ioapic ( acpi_madt_ioapic_t *  ioapic,
u8  id,
u32  addr,
u32  gsi_base 
)

Definition at line 90 of file acpi.c.

Referenced by acpi_fill_madt().

Here is the caller graph for this function:

int acpi_create_madt_irqoverride ( acpi_madt_irqoverride_t *  irqoverride,
u8  bus,
u8  source,
u32  gsirq,
u16  flags 
)

Definition at line 103 of file acpi.c.

Referenced by acpi_fill_madt().

Here is the caller graph for this function:

int acpi_create_madt_lapic ( acpi_madt_lapic_t *  lapic,
u8  cpu,
u8  apic 
)

Definition at line 78 of file acpi.c.

Referenced by acpi_create_madt_lapics(), and acpi_fill_madt().

Here is the caller graph for this function:

int acpi_create_madt_lapic_nmi ( acpi_madt_lapic_nmi_t *  lapic_nmi,
u8  cpu,
u16  flags,
u8  lint 
)

Definition at line 116 of file acpi.c.

Referenced by acpi_create_madt_lapic_nmis().

Here is the caller graph for this function:

void acpi_create_mcfg ( acpi_mcfg_t *  mcfg  ) 

Definition at line 158 of file acpi.c.

References acpi_checksum(), acpi_fill_mcfg(), memcpy(), and memset().

Referenced by write_acpi_tables().

Here is the call graph for this function:

Here is the caller graph for this function:

int acpi_create_mcfg_mmconfig ( acpi_mcfg_mmconfig_t *  mmconfig,
u32  base,
u16  seg_nr,
u8  start,
u8  end 
)

Definition at line 68 of file acpi.c.

Referenced by acpi_fill_mcfg().

Here is the caller graph for this function:

void acpi_create_slit ( acpi_slit_t *  slit  ) 

Definition at line 240 of file acpi.c.

References acpi_checksum(), memcpy(), and memset().

Referenced by write_acpi_tables().

Here is the call graph for this function:

Here is the caller graph for this function:

void acpi_create_srat ( acpi_srat_t *  srat  ) 

Definition at line 213 of file acpi.c.

References acpi_checksum(), acpi_fill_srat(), memcpy(), and memset().

Referenced by write_acpi_tables().

Here is the call graph for this function:

Here is the caller graph for this function:

int acpi_create_srat_lapic ( acpi_srat_lapic_t *  lapic,
u8  node,
u8  apic 
)

Definition at line 183 of file acpi.c.

Referenced by acpi_create_srat_lapics().

Here is the caller graph for this function:

int acpi_create_srat_mem ( acpi_srat_mem_t *  mem,
u8  node,
u32  basek,
u32  sizek,
u32  flags 
)

Definition at line 195 of file acpi.c.

Referenced by acpi_fill_srat(), and set_srat_mem().

Here is the caller graph for this function:

void acpi_write_rsdp ( acpi_rsdp_t *  rsdp,
acpi_rsdt_t *  rsdt 
)

Definition at line 333 of file acpi.c.

References acpi_checksum(), memcpy(), and u32.

Referenced by write_acpi_tables().

Here is the call graph for this function:

Here is the caller graph for this function:

void acpi_write_rsdt ( acpi_rsdt_t *  rsdt  ) 

Definition at line 311 of file acpi.c.

References acpi_checksum(), and memcpy().

Referenced by write_acpi_tables().

Here is the call graph for this function:

Here is the caller graph for this function:


Generated on Mon Dec 29 10:54:22 2008 for coreboot by  doxygen 1.5.5