coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <types.h>
#include <console/console.h>
#include <acpi/acpi.h>
#include <acpi/acpigen.h>
#include <arch/cpu.h>
#include <cpu/intel/fsb.h>
#include <cpu/intel/speedstep.h>
#include <device/device.h>
Go to the source code of this file.
Functions | |
static int | determine_total_number_of_cores (void) |
static void | gen_pstate_entries (const sst_table_t *const pstates, const int cpuID, const int cores_per_package, const uint8_t coordination) |
void | generate_cpu_entries (const struct device *device) |
Generate ACPI entries for Speedstep for each cpu. More... | |
|
static |
Definition at line 12 of file acpi.c.
References all_devices, device::bus, count, bus::dev, DEVICE_PATH_APIC, DEVICE_PATH_CPU_CLUSTER, device::enabled, device::next, device::path, and device_path::type.
Referenced by generate_cpu_entries().
|
static |
Definition at line 28 of file acpi.c.
References acpigen_pop_len(), acpigen_write_empty_PCT(), acpigen_write_name(), acpigen_write_package(), acpigen_write_PPC(), acpigen_write_PSD_package(), acpigen_write_PSS_package(), BIOS_DEBUG, BIOS_ERR, get_ia32_fsb_x3(), sst_state_t::is_slfm, sst_state_t::is_turbo, sst_table_t::num_states, sst_state_t::power, printk, SPEEDSTEP_DOUBLE_RATIO, SPEEDSTEP_ENCODE_STATE, and sst_table_t::states.
Referenced by generate_cpu_entries().
Generate ACPI entries for Speedstep for each cpu.
Definition at line 82 of file acpi.c.
References acpigen_pop_len(), acpigen_write_CST_package(), acpigen_write_name_integer(), acpigen_write_processor(), acpigen_write_processor_cnot(), acpigen_write_processor_package(), acpigen_write_scope(), BIOS_DEBUG, cpuid_eax(), cpuid_ebx(), determine_total_number_of_cores(), gen_pstate_entries(), get_cst_entries(), HW_ALL, PMB0_BASE, printk, speedstep_gen_pstates(), and SW_ANY.