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/device.h>
#include <device/mmio.h>
#include <arch/smp/mpspec.h>
#include <console/console.h>
#include <device/pci_ops.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) |
static unsigned long | soc_fill_dmar (unsigned long current) |
unsigned long | sa_write_acpi_tables (const struct device *dev, unsigned long current, struct acpi_rsdp *rsdp) |
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 |
unsigned long sa_write_acpi_tables | ( | const struct device * | dev, |
unsigned long | current, | ||
struct acpi_rsdp * | rsdp | ||
) |
Definition at line 225 of file acpi.c.
References acpi_add_table(), acpi_align_current(), acpi_create_dmar(), BIOS_DEBUG, CAPID0_A, DMA_CTRL_PLATFORM_OPT_IN_FLAG, DMAR_INTR_REMAP, acpi_dmar::header, acpi_table_header::length, MCHBAR32, pci_read_config32(), printk, soc_fill_dmar(), VTBAR_ENABLED, VTD_DISABLE, and VTVC0BAR.
Definition at line 171 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, IPUVTBAR, is_devfn_enabled(), MCHBAR32, MCHBAR64, SA_DEVFN_IGD, SA_DEVFN_IPU, sa_get_gsm_base(), sa_get_tolud_base(), V_P2SB_CFG_HBDF_BUS, V_P2SB_CFG_HBDF_DEV, V_P2SB_CFG_HBDF_FUNC, V_P2SB_CFG_IBDF_BUS, V_P2SB_CFG_IBDF_DEV, V_P2SB_CFG_IBDF_FUNC, VTBAR_ENABLED, VTBAR_MASK, and VTVC0BAR.
Referenced by sa_write_acpi_tables().
void soc_fill_fadt | ( | acpi_fadt_t * | fadt | ) |
Definition at line 147 of file acpi.c.
References acpi_gen_regaddr::access_size, ACPI_ACCESS_SIZE_UNDEFINED, 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 247 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 112 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 262 of file acpi.c.
References MP_IRQ_POLARITY_HIGH.
void soc_power_states_generation | ( | int | core_id, |
int | cores_per_package | ||
) |
Definition at line 138 of file acpi.c.
References config, config_of_soc, and generate_p_state_entries().
Definition at line 166 of file acpi.c.
References IRQ_REG, read32p(), and soc_read_pmc_base().
|
static |
Definition at line 41 of file acpi.c.
Referenced by soc_get_cstate_map().
|
static |
|
static |
Definition at line 106 of file acpi.c.
Referenced by soc_get_cstate_map().