coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
ec_dptf_helpers.c File Reference
Include dependency graph for ec_dptf_helpers.c:

Go to the source code of this file.

Enumerations

enum  { TRIP_POINTS_CHANGED_EVENT = 0x81 , THERMAL_EVENT = 0x90 }
 
enum  { EC_FAN_DUTY_AUTO = 0xFF }
 

Functions

static void write_charger_PPPC (const struct device *ec)
 
static void write_charger_SPPC (const struct device *ec)
 
static void write_fan_fst (const struct device *ec)
 
static void write_fan_fsl (const struct device *ec)
 
static void write_is_policy_enabled (bool enabled)
 
static void write_dptf_OSC (const struct device *ec)
 
static void write_dppm_methods (const struct device *ec)
 
static void write_charger_methods (const struct device *ec)
 
static void write_fan_methods (const struct device *ec)
 
static void write_thermal_methods (const struct device *ec, enum dptf_participant participant, int tsr_index)
 
void ec_fill_dptf_helpers (const struct device *ec)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
TRIP_POINTS_CHANGED_EVENT 
THERMAL_EVENT 

Definition at line 15 of file ec_dptf_helpers.c.

◆ anonymous enum

anonymous enum
Enumerator
EC_FAN_DUTY_AUTO 

Definition at line 21 of file ec_dptf_helpers.c.

Function Documentation

◆ ec_fill_dptf_helpers()

void ec_fill_dptf_helpers ( const struct device ec)

Definition at line 349 of file ec_dptf_helpers.c.

References DPTF_TEMP_SENSOR_0, DPTF_TEMP_SENSOR_4, write_charger_methods(), write_dppm_methods(), write_fan_methods(), and write_thermal_methods().

Referenced by google_chromeec_fill_ssdt_generator().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ write_charger_methods()

static void write_charger_methods ( const struct device ec)
static

Definition at line 289 of file ec_dptf_helpers.c.

References acpigen_pop_len(), DPTF_CHARGER, dptf_write_scope(), write_charger_PPPC(), and write_charger_SPPC().

Referenced by ec_fill_dptf_helpers().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ write_charger_PPPC()

static void write_charger_PPPC ( const struct device ec)
static

◆ write_charger_SPPC()

static void write_charger_SPPC ( const struct device ec)
static

Definition at line 62 of file ec_dptf_helpers.c.

References acpi_device_path_join(), acpigen_emit_byte(), acpigen_emit_namestring(), acpigen_pop_len(), acpigen_write_integer(), acpigen_write_method_serialized(), acpigen_write_to_integer(), ARG0_OP, DEREF_OP, INDEX_OP, LOCAL0_OP, STORE_OP, and ZERO_OP.

Referenced by write_charger_methods().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ write_dppm_methods()

static void write_dppm_methods ( const struct device ec)
static

◆ write_dptf_OSC()

static void write_dptf_OSC ( const struct device ec)
static

◆ write_fan_fsl()

static void write_fan_fsl ( const struct device ec)
static

Definition at line 117 of file ec_dptf_helpers.c.

References acpi_device_path_join(), acpigen_emit_byte(), acpigen_emit_namestring(), acpigen_pop_len(), acpigen_write_method_serialized(), acpigen_write_store(), and ARG0_OP.

Referenced by write_fan_methods().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ write_fan_fst()

static void write_fan_fst ( const struct device ec)
static

◆ write_fan_methods()

static void write_fan_methods ( const struct device ec)
static

Definition at line 297 of file ec_dptf_helpers.c.

References acpigen_pop_len(), DPTF_FAN, dptf_write_scope(), write_fan_fsl(), and write_fan_fst().

Referenced by ec_fill_dptf_helpers().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ write_is_policy_enabled()

static void write_is_policy_enabled ( bool  enabled)
static

◆ write_thermal_methods()

static void write_thermal_methods ( const struct device ec,
enum dptf_participant  participant,
int  tsr_index 
)
static

Definition at line 305 of file ec_dptf_helpers.c.

References acpi_device_path_join(), acpigen_emit_byte(), acpigen_emit_namestring(), acpigen_pop_len(), acpigen_write_integer(), acpigen_write_method_serialized(), acpigen_write_name_integer(), ARG0_OP, dptf_write_scope(), and RETURN_OP.

Referenced by ec_fill_dptf_helpers().

Here is the call graph for this function:
Here is the caller graph for this function: