coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
chip.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef _DRIVERS_INTEL_DPTF_CHIP_H_
4 #define _DRIVERS_INTEL_DPTF_CHIP_H_
5 
6 #include <acpi/acpigen_dptf.h>
7 #include <timer.h>
8 
9 #define DPTF_PASSIVE(src, tgt, tmp, prd) \
10  {.source = DPTF_##src, .target = DPTF_##tgt, .temp = (tmp), .period = (prd)}
11 #define DPTF_CRITICAL(src, tmp, typ) \
12  {.source = DPTF_##src, .temp = (tmp), .type = DPTF_CRITICAL_##typ}
13 #define TEMP_PCT(t, p) {.temp = (t), .fan_pct = (p)}
14 
15 /* Total number of OEM variables */
16 #define DPTF_OEM_VARIABLE_COUNT 6
17 
19  struct {
24 
25  struct {
30 
31  /* Note that all values in this struct are optional */
32  struct {
33  struct {
34  /* True means _FSL is percentages, False means _FSL is Control values */
36  /*
37  * Recommended minimum step size in percentage points to adjust fan
38  * speed when utilizing fine-grained control (1-9)
39  */
41  /*
42  * True means the platform will issue a Notify (0x80) to the fan device
43  * if a a low fan speed is detected
44  */
46  } fan;
47  struct {
48  /*
49  * The amount of hysteresis implemented in circuitry or in the platform
50  * EC's firmware implementation (using the GTSH object)
51  */
53  /* Name applied to TSR (using the _STR object) */
54  const char *desc;
57 
58  /* OEM variables */
59  struct {
62 
63  /* Rest of platform Power */
65 };
66 
67 #endif /* _DRIVERS_INTEL_DPTF_CHIP_H_ */
@ DPTF_MAX_CRITICAL_POLICIES
Definition: acpigen_dptf.h:40
@ DPTF_MAX_TSR
Definition: acpigen_dptf.h:50
@ DPTF_MAX_CHARGER_PERF_STATES
Definition: acpigen_dptf.h:43
@ DPTF_MAX_FAN_PERF_STATES
Definition: acpigen_dptf.h:44
@ DPTF_MAX_PASSIVE_POLICIES
Definition: acpigen_dptf.h:39
@ DPTF_MAX_ACTIVE_POLICIES
Definition: acpigen_dptf.h:38
#define DPTF_OEM_VARIABLE_COUNT
Definition: chip.h:16
unsigned int uint32_t
Definition: stdint.h:14
unsigned char uint8_t
Definition: stdint.h:8
struct dptf_power_limits power_limits
Definition: chip.h:28
struct drivers_intel_dptf_config::@62 oem_data
uint32_t oem_variables[DPTF_OEM_VARIABLE_COUNT]
Definition: chip.h:60
struct drivers_intel_dptf_config::@59 policies
struct drivers_intel_dptf_config::@61::@63 fan
struct dptf_passive_policy passive[DPTF_MAX_PASSIVE_POLICIES]
Definition: chip.h:22
struct dptf_critical_policy critical[DPTF_MAX_CRITICAL_POLICIES]
Definition: chip.h:21
struct dptf_fan_perf fan_perf[DPTF_MAX_FAN_PERF_STATES]
Definition: chip.h:27
struct dptf_active_policy active[DPTF_MAX_ACTIVE_POLICIES]
Definition: chip.h:20
struct dptf_charger_perf charger_perf[DPTF_MAX_CHARGER_PERF_STATES]
Definition: chip.h:26
const char * desc
Definition: chip.h:54
struct drivers_intel_dptf_config::@60 controls
struct drivers_intel_dptf_config::@61 options
struct drivers_intel_dptf_config::@61::@64 tsr[DPTF_MAX_TSR]