![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <acpi/acpi.h>
#include <acpi/acpi_gnvs.h>
#include <acpi/acpi_pm.h>
#include <acpi/acpigen.h>
#include <arch/cpu.h>
#include <arch/ioapic.h>
#include <arch/smp/mpspec.h>
#include <console/console.h>
#include <cpu/intel/common/common.h>
#include <intelblocks/acpi.h>
#include <intelblocks/acpi_wake_source.h>
#include <intelblocks/cpulib.h>
#include <intelblocks/pmclib.h>
#include <soc/cpu.h>
#include <soc/msr.h>
#include <soc/pm.h>
#include <soc/ramstage.h>
#include <soc/systemagent.h>
#include <string.h>
#include <types.h>
#include "chip.h"
Go to the source code of this file.
Macros | |
#define | MWAIT_RES(state, sub_state) |
Enumerations | |
enum | { C_STATE_C0 , C_STATE_C1 , C_STATE_C1E , C_STATE_C3 , C_STATE_C6_SHORT_LAT , C_STATE_C6_LONG_LAT , C_STATE_C7_SHORT_LAT , C_STATE_C7_LONG_LAT , C_STATE_C7S_SHORT_LAT , C_STATE_C7S_LONG_LAT , C_STATE_C8 , C_STATE_C9 , C_STATE_C10 , NUM_C_STATES } |
Functions | |
const acpi_cstate_t * | soc_get_cstate_map (size_t *entries) |
void | soc_power_states_generation (int core_id, int cores_per_package) |
uint32_t | soc_read_sci_irq_select (void) |
void | soc_fill_gnvs (struct global_nvs *gnvs) |
static unsigned long | soc_fill_dmar (unsigned long current) |
unsigned long | sa_write_acpi_tables (const struct device *const dev, unsigned long current, struct acpi_rsdp *const rsdp) |
int | soc_madt_sci_irq_polarity (int sci) |
void | acpi_fill_soc_wake (uint32_t *pm1_en, uint32_t *gpe0_en, const struct chipset_power_state *ps) |
Variables | |
static acpi_cstate_t | cstate_map [NUM_C_STATES] |
static int | cstate_set_s0ix [] |
static int | cstate_set_non_s0ix [] |
#define MWAIT_RES | ( | state, | |
sub_state | |||
) |
anonymous enum |
void acpi_fill_soc_wake | ( | uint32_t * | pm1_en, |
uint32_t * | gpe0_en, | ||
const struct chipset_power_state * | ps | ||
) |
Definition at line 264 of file acpi.c.
References ACPI_S3, config, config_of_soc, deep_s3_enabled(), DSX_EN_LAN_WAKE_PIN, DSX_EN_WAKE_PIN, GPE_STD, LAN_WAK_EN, PCIEXPWAK_STS, and chipset_power_state::prev_sleep_state.
unsigned long sa_write_acpi_tables | ( | const struct device *const | dev, |
unsigned long | current, | ||
struct acpi_rsdp *const | rsdp | ||
) |
Definition at line 237 of file acpi.c.
References acpi_add_table(), acpi_align_current(), acpi_create_dmar(), BIOS_DEBUG, DMAR_INTR_REMAP, acpi_dmar::header, acpi_table_header::length, printk, soc_fill_dmar(), and soc_vtd_enabled().
Definition at line 185 of file acpi.c.
References acpi_create_dmar_drhd(), acpi_create_dmar_ds_ioapic(), acpi_create_dmar_ds_msi_hpet(), acpi_create_dmar_ds_pci(), acpi_create_dmar_rmrr(), acpi_dmar_drhd_fixup(), acpi_dmar_rmrr_fixup(), DRHD_INCLUDE_PCI_ALL, GFXVTBAR, is_devfn_enabled(), MCHBAR32, SA_DEVFN_IGD, sa_get_gsm_base(), sa_get_tolud_base(), V_P2SB_HBDF_BUS, V_P2SB_HBDF_DEV, V_P2SB_HBDF_FUN, V_P2SB_IBDF_BUS, V_P2SB_IBDF_DEV, V_P2SB_IBDF_FUN, and VTVC0BAR.
Referenced by sa_write_acpi_tables().
void soc_fill_gnvs | ( | struct global_nvs * | gnvs | ) |
Definition at line 170 of file acpi.c.
References config, config_of_soc, global_nvs::dpte, gnvs, sa_fill_gnvs(), global_nvs::u2we, and global_nvs::u3we.
const acpi_cstate_t* soc_get_cstate_map | ( | size_t * | entries | ) |
Definition at line 130 of file acpi.c.
References ARRAY_SIZE, config, config_of_soc, cstate_map, cstate_set_non_s0ix, cstate_set_s0ix, acpi_cstate::ctype, MAX, and memcpy().
int soc_madt_sci_irq_polarity | ( | int | sci | ) |
Definition at line 256 of file acpi.c.
References MP_IRQ_POLARITY_HIGH, and MP_IRQ_POLARITY_LOW.
void soc_power_states_generation | ( | int | core_id, |
int | cores_per_package | ||
) |
Definition at line 156 of file acpi.c.
References config, config_of_soc, and generate_p_state_entries().
Definition at line 165 of file acpi.c.
References IRQ_REG, read32p(), and soc_read_pmc_base().
|
static |
Definition at line 54 of file acpi.c.
Referenced by soc_get_cstate_map().
|
static |
|
static |
Definition at line 118 of file acpi.c.
Referenced by soc_get_cstate_map().