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/acpigen.h>
#include <device/mmio.h>
#include <arch/smp/mpspec.h>
#include <intelblocks/cpulib.h>
#include <intelblocks/pmclib.h>
#include <intelblocks/acpi.h>
#include <soc/cpu.h>
#include <soc/iomap.h>
#include <soc/nvs.h>
#include <soc/pci_devs.h>
#include <soc/pm.h>
#include <soc/soc_chip.h>
#include <soc/systemagent.h>
Go to the source code of this file.
Enumerations | |
enum | { C_STATE_C0 , C_STATE_C1 , C_STATE_C1E , 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) |
void | soc_fill_fadt (acpi_fadt_t *fadt) |
uint32_t | soc_read_sci_irq_select (void) |
void | soc_fill_gnvs (struct global_nvs *gnvs) |
int | soc_madt_sci_irq_polarity (int sci) |
Variables | |
static const acpi_cstate_t | cstate_map [NUM_C_STATES] |
static int | cstate_set_non_s0ix [] |
static int | cstate_set_s0ix [] |
anonymous enum |
void soc_fill_fadt | ( | acpi_fadt_t * | fadt | ) |
Definition at line 144 of file acpi.c.
References acpi_gen_regaddr::access_size, ACPI_ACCESS_SIZE_DWORD_ACCESS, ACPI_ADDRESS_SPACE_IO, ACPI_BASE_ADDRESS, ACPI_FADT_LOW_PWR_IDLE_S0, acpi_gen_regaddr::addrh, acpi_gen_regaddr::addrl, acpi_gen_regaddr::bit_offset, acpi_gen_regaddr::bit_width, config, config_of_soc, acpi_fadt::flags, PM1_TMR, acpi_fadt::pm_tmr_blk, acpi_fadt::pm_tmr_len, pmbase, acpi_gen_regaddr::space_id, and acpi_fadt::x_pm_tmr_blk.
void soc_fill_gnvs | ( | struct global_nvs * | gnvs | ) |
Definition at line 167 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 109 of file acpi.c.
References ARRAY_SIZE, config, config_of_soc, cstate_map, cstate_set_non_s0ix, cstate_set_s0ix, acpi_cstate::ctype, and MAX.
int soc_madt_sci_irq_polarity | ( | int | sci | ) |
Definition at line 182 of file acpi.c.
References MP_IRQ_POLARITY_HIGH.
void soc_power_states_generation | ( | int | core_id, |
int | cores_per_package | ||
) |
Definition at line 135 of file acpi.c.
References config, config_of_soc, and generate_p_state_entries().
Definition at line 162 of file acpi.c.
References IRQ_REG, read32p(), and soc_read_pmc_base().
|
static |
Definition at line 38 of file acpi.c.
Referenced by soc_get_cstate_map().
|
static |
|
static |
Definition at line 103 of file acpi.c.
Referenced by soc_get_cstate_map().