![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <acpi/acpi.h>
#include <acpi/acpigen.h>
#include <arch/ioapic.h>
#include <device/mmio.h>
#include <arch/smp/mpspec.h>
#include <console/console.h>
#include <cpu/x86/smm.h>
#include <types.h>
#include <cpu/x86/msr.h>
#include <cpu/intel/turbo.h>
#include <soc/acpi.h>
#include <soc/iomap.h>
#include <soc/irq.h>
#include <soc/msr.h>
#include <soc/pattrs.h>
#include <soc/pm.h>
Go to the source code of this file.
Macros | |
#define | MWAIT_RES(state, sub_state) |
Functions | |
int | acpi_sci_irq (void) |
unsigned long | acpi_fill_madt (unsigned long current) |
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... | |
unsigned long | acpi_madt_irq_overrides (unsigned long current) |
Variables | |
static const acpi_cstate_t | cstate_map [] |
static acpi_tstate_t | soc_tss_table [] |
#define MWAIT_RES | ( | state, | |
sub_state | |||
) |
Definition at line 89 of file acpi.c.
References acpi_create_madt_ioapic(), acpi_create_madt_lapics(), acpi_madt_irq_overrides(), and IO_APIC_ADDR.
Definition at line 294 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.
Referenced by acpi_fill_madt().
int acpi_sci_irq | ( | void | ) |
Definition at line 56 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.
Referenced by acpi_fill_fadt(), and acpi_madt_irq_overrides().
|
static |
Definition at line 129 of file acpi.c.
Referenced by generate_p_state_entries().
Generate ACPI entries for Speedstep for each cpu.
Definition at line 265 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 150 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 114 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().
|
static |
Definition at line 31 of file acpi.c.
Referenced by generate_cpu_entries().
|
static |
Definition at line 103 of file acpi.c.
Referenced by generate_t_state_entries().