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 <arch/ioapic.h>
#include <arch/smp/mpspec.h>
#include <device/mmio.h>
#include <console/console.h>
#include <cpu/intel/turbo.h>
#include <cpu/x86/msr.h>
#include <cpu/x86/smm.h>
#include <device/pci.h>
#include <drivers/intel/gma/opregion.h>
#include <soc/acpi.h>
#include <soc/device_nvs.h>
#include <soc/gfx.h>
#include <soc/iomap.h>
#include <soc/irq.h>
#include <soc/msr.h>
#include <soc/nvs.h>
#include <soc/pattrs.h>
#include <soc/pci_devs.h>
#include <soc/pm.h>
#include <string.h>
#include <types.h>
#include <wrdd.h>
#include "chip.h"
Go to the source code of this file.
Macros | |
#define | MWAIT_RES(state, sub_state) |
Functions | |
size_t | size_of_dnvs (void) |
void | soc_fill_gnvs (struct global_nvs *gnvs) |
int | acpi_sci_irq (void) |
static void | generate_t_state_entries (int core, int cores_per_package) |
static int | calculate_power (int tdp, int p1_ratio, int ratio) |
static void | generate_p_state_entries (int core, int cores_per_package) |
void | generate_cpu_entries (const struct device *device) |
Generate ACPI entries for Speedstep for each cpu. More... | |
static unsigned long | acpi_madt_irq_overrides (unsigned long current) |
unsigned long | acpi_fill_madt (unsigned long current) |
unsigned long | southcluster_write_acpi_tables (const struct device *device, unsigned long current, struct acpi_rsdp *rsdp) |
__weak void | acpi_create_serialio_ssdt (acpi_header_t *ssdt) |
Variables | |
static const acpi_cstate_t | cstate_map [] |
static acpi_tstate_t | soc_tss_table [] |
#define MWAIT_RES | ( | state, | |
sub_state | |||
) |
__weak void acpi_create_serialio_ssdt | ( | acpi_header_t * | ssdt | ) |
Definition at line 371 of file acpi.c.
Referenced by southbridge_write_acpi_tables(), and southcluster_write_acpi_tables().
Definition at line 329 of file acpi.c.
References acpi_create_madt_ioapic(), acpi_create_madt_lapics(), acpi_madt_irq_overrides(), and IO_APIC_ADDR.
Definition at line 308 of file acpi.c.
References acpi_create_madt_irqoverride(), acpi_sci_irq(), MP_IRQ_POLARITY_HIGH, MP_IRQ_POLARITY_LOW, and MP_IRQ_TRIGGER_LEVEL.
int acpi_sci_irq | ( | void | ) |
Definition at line 84 of file acpi.c.
References ACTL, BIOS_DEBUG, ILB_BASE_ADDRESS, printk, read32(), SCIS_IRQ10, SCIS_IRQ11, SCIS_IRQ20, SCIS_IRQ21, SCIS_IRQ22, SCIS_IRQ23, SCIS_IRQ9, and SCIS_MASK.
|
static |
Definition at line 143 of file acpi.c.
Referenced by generate_p_state_entries().
Generate ACPI entries for Speedstep for each cpu.
Definition at line 279 of file acpi.c.
References acpigen_pop_len(), acpigen_write_CST_package(), acpigen_write_processor(), acpigen_write_processor_cnot(), acpigen_write_processor_package(), ARRAY_SIZE, cstate_map, generate_p_state_entries(), generate_t_state_entries(), pattrs::num_cpus, and pattrs_get().
|
static |
Definition at line 164 of file acpi.c.
References acpigen_pop_len(), acpigen_write_empty_PCT(), acpigen_write_name(), acpigen_write_package(), acpigen_write_PPC_NVS(), acpigen_write_PSD_package(), acpigen_write_PSS_package(), pattrs::bclk_khz, calculate_power(), get_turbo_state(), HW_ALL, IACORE_LFM, IACORE_MAX, pattrs::iacore_ratios, IACORE_TURBO, pattrs::iacore_vids, msr_struct::lo, MSR_PKG_POWER_LIMIT, MSR_PKG_POWER_SKU_UNIT, pattrs::num_cpus, pattrs_get(), power, rdmsr(), SW_ALL, TURBO_ENABLED, and vid.
Referenced by generate_cpu_entries().
|
static |
Definition at line 128 of file acpi.c.
References acpigen_write_empty_PTC(), acpigen_write_TPC(), acpigen_write_TSD_package(), acpigen_write_TSS_package(), ARRAY_SIZE, soc_tss_table, and SW_ALL.
Referenced by generate_cpu_entries().
void soc_fill_gnvs | ( | struct global_nvs * | gnvs | ) |
Definition at line 71 of file acpi.c.
References global_nvs::cid1, config, CONFIG, config_of_soc, global_nvs::dpte, gnvs, wifi_regulatory_domain(), and WRDD_DEFAULT_REGULATORY_DOMAIN.
unsigned long southcluster_write_acpi_tables | ( | const struct device * | device, |
unsigned long | current, | ||
struct acpi_rsdp * | rsdp | ||
) |
Definition at line 342 of file acpi.c.
References acpi_add_table(), acpi_align_current(), acpi_create_serialio_ssdt(), acpi_write_hpet(), BIOS_DEBUG, CONFIG, acpi_table_header::length, memset(), NULL, and printk.
|
static |
Definition at line 41 of file acpi.c.
Referenced by generate_cpu_entries().
|
static |
Definition at line 117 of file acpi.c.
Referenced by generate_t_state_entries().