coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <acpi/acpigen.h>
#include <acpi/acpigen_pci.h>
#include <console/console.h>
#include <device/device.h>
#include <intelblocks/pmc_ipc.h>
#include <soc/pci_devs.h>
#include "chip.h"
#include "dptf.h"
Go to the source code of this file.
Macros | |
#define | DEFAULT_CHARGER_STR "Battery Charger" |
#define | DEFAULT_TPCH_STR "Intel PCH FIVR Participant" |
#define | DEFAULT_POWER_STR "Power Participant" |
#define | DEFAULT_BATTERY_STR "Battery Participant" |
#define | PMC_IPC_COMMAND_FIVR_SIZE 0x8 |
Enumerations | |
enum | dptf_generic_participant_type { DPTF_GENERIC_PARTICIPANT_TYPE_TSR = 0x3 , DPTF_GENERIC_PARTICIPANT_TYPE_TPCH = 0x5 , DPTF_GENERIC_PARTICIPANT_TYPE_CHARGER = 0xB , DPTF_GENERIC_PARTICIPANT_TYPE_BATTERY = 0xC , DPTF_GENERIC_PARTICIPANT_TYPE_POWER = 0x11 } |
Variables | |
static struct device_operations | dptf_ops |
struct chip_operations | drivers_intel_dptf_ops |
|
static |
Definition at line 541 of file dptf.c.
References dptf_ops, and device::ops.
Definition at line 522 of file dptf.c.
References BIOS_INFO, device::chip_ops, config, config_of(), dev_path(), DPTF_DEVICE_PATH, chip_operations::name, printk, write_controls(), write_device_definitions(), write_options(), and write_policies().
|
static |
Definition at line 82 of file dptf.c.
References acpigen_pop_len(), acpigen_write_device(), acpigen_write_name(), acpigen_write_name_integer(), acpigen_write_name_string(), acpigen_write_STA(), dptf_write_hid(), dptf_platform_info::generic_hid, name, and dptf_platform_info::use_eisa_hids.
Referenced by write_generic_devices().
Definition at line 73 of file dptf.c.
References acpigen_emit_eisaid(), and acpigen_write_string().
Referenced by dptf_write_generic_participant(), write_create_tbat(), write_create_tpch(), write_create_tpwr(), write_fan(), and write_open_dptf_device().
|
static |
Definition at line 207 of file dptf.c.
References acpi_device_path_join(), BIOS_ERR, NULL, PCH_DEVFN_PMC, pcidev_path_on_root(), and printk.
Referenced by write_tpch_read_method(), and write_tpch_write_method().
|
static |
Definition at line 65 of file dptf.c.
References ACPI_STATUS_DEVICE_ALL_OFF, ACPI_STATUS_DEVICE_ALL_ON, config, and is_participant_used().
Referenced by write_fan(), write_generic_devices(), and write_tcpu().
|
static |
Definition at line 32 of file dptf.c.
References config, DPTF_FAN, DPTF_MAX_ACTIVE_POLICIES, DPTF_MAX_CRITICAL_POLICIES, DPTF_MAX_PASSIVE_POLICIES, and DPTF_NONE.
Referenced by get_STA_value(), and write_options().
|
static |
Definition at line 489 of file dptf.c.
References config, DPTF_MAX_CHARGER_PERF_STATES, DPTF_MAX_FAN_PERF_STATES, dptf_write_charger_perf(), dptf_write_fan_perf(), and dptf_write_power_limits().
Referenced by dptf_fill_ssdt().
|
static |
Definition at line 403 of file dptf.c.
References ACPI_STATUS_DEVICE_ALL_ON, acpigen_write_device(), acpigen_write_device_end(), acpigen_write_name(), acpigen_write_name_integer(), acpigen_write_name_string(), acpigen_write_STA(), DEFAULT_BATTERY_STR, DPTF_GENERIC_PARTICIPANT_TYPE_BATTERY, dptf_write_hid(), NULL, dptf_platform_info::tbat_device_hid, and dptf_platform_info::use_eisa_hids.
Referenced by write_tbat_methods().
|
static |
Definition at line 305 of file dptf.c.
References ACPI_STATUS_DEVICE_ALL_ON, acpigen_write_device(), acpigen_write_name(), acpigen_write_name_integer(), acpigen_write_name_string(), acpigen_write_STA(), DEFAULT_TPCH_STR, DPTF_GENERIC_PARTICIPANT_TYPE_TPCH, dptf_write_hid(), dptf_platform_info::tpch_device_hid, and dptf_platform_info::use_eisa_hids.
Referenced by write_tpch_methods().
|
static |
Definition at line 375 of file dptf.c.
References ACPI_STATUS_DEVICE_ALL_ON, acpigen_emit_byte(), acpigen_pop_len(), acpigen_write_device(), acpigen_write_device_end(), acpigen_write_integer(), acpigen_write_method_serialized(), acpigen_write_name(), acpigen_write_name_integer(), acpigen_write_name_string(), acpigen_write_STA(), config, DEFAULT_POWER_STR, DPTF_GENERIC_PARTICIPANT_TYPE_POWER, dptf_write_hid(), NULL, RETURN_OP, dptf_platform_info::tpwr_device_hid, and dptf_platform_info::use_eisa_hids.
Referenced by write_tpwr_methods().
Definition at line 436 of file dptf.c.
References acpigen_pop_len(), BIOS_ERR, device::bus, config, CONFIG, config_of(), bus::dev, DEVICE_PATH_PCI, get_dptf_platform_info(), NULL, device::path, printk, device_path::type, write_fan(), write_generic_devices(), write_imok(), write_oem_variables(), write_open_dptf_device(), write_tbat_methods(), write_tcpu(), write_tpch_methods(), and write_tpwr_methods().
Referenced by dptf_fill_ssdt().
|
static |
Definition at line 119 of file dptf.c.
References acpigen_pop_len(), acpigen_write_device(), acpigen_write_name(), acpigen_write_name_integer(), acpigen_write_STA(), config, DPTF_FAN, dptf_write_hid(), dptf_platform_info::fan_hid, get_STA_value(), and dptf_platform_info::use_eisa_hids.
Referenced by write_device_definitions().
|
static |
Definition at line 187 of file dptf.c.
References ACPI_NAME_BUFFER_SIZE, config, DEFAULT_CHARGER_STR, DPTF_CHARGER, DPTF_GENERIC_PARTICIPANT_TYPE_CHARGER, DPTF_GENERIC_PARTICIPANT_TYPE_TSR, DPTF_MAX_TSR, DPTF_TEMP_SENSOR_0, dptf_write_generic_participant(), get_STA_value(), name, NULL, and snprintf().
Referenced by write_device_definitions().
Definition at line 131 of file dptf.c.
References acpigen_emit_byte(), acpigen_write_method(), acpigen_write_method_end(), ARG0_OP, and RETURN_OP.
Referenced by write_device_definitions().
|
static |
Definition at line 140 of file dptf.c.
References acpigen_emit_byte(), acpigen_emit_namestring(), acpigen_write_dword(), acpigen_write_method_end(), acpigen_write_method_serialized(), acpigen_write_name(), acpigen_write_package(), acpigen_write_package_end(), acpigen_write_store(), ARG0_OP, ARG1_OP, config, DEREF_OP, DPTF_OEM_VARIABLE_COUNT, INDEX_OP, RETURN_OP, and ZERO_OP.
Referenced by write_device_definitions().
|
static |
Definition at line 424 of file dptf.c.
References acpi_device_name(), ACPI_STATUS_DEVICE_ALL_ON, acpigen_write_device(), acpigen_write_name(), acpigen_write_name_integer(), acpigen_write_scope(), acpigen_write_STA(), dptf_platform_info::dptf_device_hid, dptf_write_hid(), and dptf_platform_info::use_eisa_hids.
Referenced by write_device_definitions().
|
static |
Definition at line 497 of file dptf.c.
References acpigen_pop_len(), config, DPTF_FAN, DPTF_TEMP_SENSOR_0, DPTF_TEMP_SENSOR_4, dptf_write_fan_options(), dptf_write_scope(), dptf_write_STR(), dptf_write_tsr_hysteresis(), and is_participant_used().
Referenced by dptf_fill_ssdt().
Definition at line 262 of file dptf.c.
References acpigen_write_method_end(), acpigen_write_method_serialized(), acpigen_write_name(), acpigen_write_package(), acpigen_write_package_end(), acpigen_write_return_namestr(), acpigen_write_zero(), and write_ppkg_package().
Referenced by write_tpch_methods().
|
static |
Definition at line 472 of file dptf.c.
References config, DPTF_MAX_ACTIVE_POLICIES, DPTF_MAX_CRITICAL_POLICIES, DPTF_MAX_PASSIVE_POLICIES, dptf_write_active_policies(), dptf_write_critical_policies(), dptf_write_enabled_policies(), and dptf_write_passive_policies().
Referenced by dptf_fill_ssdt().
Definition at line 240 of file dptf.c.
References acpigen_emit_byte(), acpigen_emit_namestring(), acpigen_write_integer(), acpigen_write_store(), ARG0_OP, DEREF_OP, INDEX_OP, and ZERO_OP.
Referenced by write_pkgc_method().
|
static |
Definition at line 417 of file dptf.c.
References write_create_tbat().
Referenced by write_device_definitions().
|
static |
Definition at line 106 of file dptf.c.
References acpigen_pop_len(), acpigen_write_ADR_pci_device(), acpigen_write_device(), acpigen_write_scope(), acpigen_write_STA(), config, DPTF_CPU, get_STA_value(), pci_dev, and TCPU_SCOPE.
Referenced by write_device_definitions().
|
static |
Definition at line 315 of file dptf.c.
References acpigen_write_device_end(), ARRAY_SIZE, dptf_platform_info::get_fivr_high_clock_method, dptf_platform_info::get_fivr_low_clock_method, dptf_platform_info::get_fivr_ssc_method, dptf_platform_info::get_fivr_switching_fault_status, dptf_platform_info::get_fivr_switching_freq_mhz, PMC_IPC_SUBCMD_EMI_CTRL0_LOGIC, PMC_IPC_SUBCMD_FFFC_FAULT_STATUS, PMC_IPC_SUBCMD_FFFC_RFI_STATUS, PMC_IPC_SUBCMD_RFI_CTRL0_LOGIC, PMC_IPC_SUBCMD_RFI_CTRL4_LOGIC, dptf_platform_info::set_fivr_high_clock_method, dptf_platform_info::set_fivr_low_clock_method, dptf_platform_info::tpch_method_names, type, write_create_tpch(), write_pkgc_method(), write_tpch_read_method(), and write_tpch_write_method().
Referenced by write_device_definitions().
|
static |
Definition at line 278 of file dptf.c.
References acpigen_emit_byte(), acpigen_emit_namestring(), acpigen_write_integer(), acpigen_write_method_end(), acpigen_write_method_serialized(), acpigen_write_store(), acpigen_write_zero(), get_pmc_ipcs_method(), LOCAL0_OP, LOCAL1_OP, PMC_IPC_CMD_CMD_ID_FIVR_READ, PMC_IPC_CMD_COMMAND_FIVR, PMC_IPC_COMMAND_FIVR_SIZE, and RETURN_OP.
Referenced by write_tpch_methods().
|
static |
Definition at line 218 of file dptf.c.
References acpigen_emit_byte(), acpigen_emit_namestring(), acpigen_write_integer(), acpigen_write_method_end(), acpigen_write_method_serialized(), acpigen_write_package(), acpigen_write_package_end(), acpigen_write_zero(), ARG0_OP, get_pmc_ipcs_method(), PMC_IPC_CMD_CMD_ID_FIVR_WRITE, PMC_IPC_CMD_COMMAND_FIVR, PMC_IPC_COMMAND_FIVR_SIZE, and RETURN_OP.
Referenced by write_tpch_methods().
|
static |
Definition at line 397 of file dptf.c.
References config, and write_create_tpwr().
Referenced by write_device_definitions().
|
static |
Definition at line 522 of file dptf.c.
Referenced by dptf_enable_dev().
struct chip_operations drivers_intel_dptf_ops |