summaryrefslogtreecommitdiffstats
path: root/control/zone.hpp
diff options
context:
space:
mode:
authorRaptor Engineering Development Team <support@raptorengineering.com>2018-01-24 21:59:42 -0600
committerRaptor Engineering Development Team <support@raptorengineering.com>2019-04-19 22:07:46 +0000
commita964223bba361d62e14621137b353daaf3dacdc8 (patch)
treec24cdeeed2c0f69bbfdd38da3cfad22fb9fdea00 /control/zone.hpp
parent26a78ab15690be7421bb000bc473cd0bdfd8ad15 (diff)
downloadphosphor-fan-presence-a964223bba361d62e14621137b353daaf3dacdc8.tar.gz
phosphor-fan-presence-a964223bba361d62e14621137b353daaf3dacdc8.zip
Add fan shutdown option to stop rotors after chassis powerdown
Diffstat (limited to 'control/zone.hpp')
-rw-r--r--control/zone.hpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/control/zone.hpp b/control/zone.hpp
index 6da3091..ec0d9bb 100644
--- a/control/zone.hpp
+++ b/control/zone.hpp
@@ -24,11 +24,13 @@ using ThermalObject = sdbusplus::server::object::object<
* The mode fan control will run in:
* - init - only do the initialization steps
* - control - run normal control algorithms
+ * - init - shutdown fans, stopping all rotors
*/
enum class Mode
{
init,
- control
+ control,
+ shutdown
};
/**
@@ -77,6 +79,12 @@ class Zone : public ThermalObject
void setFullSpeed();
/**
+ * Disables the zone and stops all zone fans regardless of
+ * zone's active state
+ */
+ void disableRotors();
+
+ /**
* @brief Sets the automatic fan control allowed active state
*
* @param[in] group - A group that affects the active state
OpenPOWER on IntegriCloud