aboutsummaryrefslogtreecommitdiff
path: root/src/include/acpi
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/acpi')
-rw-r--r--src/include/acpi/acpigen_dptf.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/include/acpi/acpigen_dptf.h b/src/include/acpi/acpigen_dptf.h
index a082b62fd9..214578a4c1 100644
--- a/src/include/acpi/acpigen_dptf.h
+++ b/src/include/acpi/acpigen_dptf.h
@@ -27,6 +27,7 @@ enum {
/* A device can only define _AC0 .. _AC9 i.e. between 0 and 10 Active Cooling Methods */
DPTF_MAX_ACX = 10,
DPTF_MAX_ACTIVE_POLICIES = (DPTF_PARTICIPANT_COUNT-1),
+ DPTF_MAX_PASSIVE_POLICIES = (DPTF_PARTICIPANT_COUNT-1),
};
/* Active Policy */
@@ -44,6 +45,20 @@ struct dptf_active_policy {
} thresholds[DPTF_MAX_ACX];
};
+/* Passive Policy */
+struct dptf_passive_policy {
+ /* The device that can be throttled */
+ enum dptf_participant source;
+ /* The device that controls the throttling */
+ enum dptf_participant target;
+ /* How often to check the temperature for required throttling (ms) */
+ uint16_t period;
+ /* The trip point for turning on throttling (degrees C) */
+ uint8_t temp;
+ /* Relative priority between Policies */
+ uint8_t priority;
+};
+
/*
* This function provides tables of temperature and corresponding fan or percent. When the
* temperature thresholds are met (_AC0 - _AC9), the fan is driven to corresponding percentage
@@ -51,6 +66,14 @@ struct dptf_active_policy {
*/
void dptf_write_active_policies(const struct dptf_active_policy *policies, int max_count);
+/*
+ * This function uses the definition of the passive policies to write out _PSV Methods on all
+ * participants that define it. It also writes out the Thermal Relationship Table
+ * (\_SB.DPTF._TRT), which describes various passive (i.e., throttling) policies that can be
+ * applies when temperature sensors reach the _PSV threshold.
+ */
+void dptf_write_passive_policies(const struct dptf_passive_policy *policies, int max_count);
+
/* Helper method to open the scope for a given participant. */
void dptf_write_scope(enum dptf_participant participant);