diff options
author | Raptor Engineering Development Team <support@raptorengineering.com> | 2018-01-24 21:59:42 -0600 |
---|---|---|
committer | Raptor Engineering Development Team <support@raptorengineering.com> | 2019-04-19 22:07:46 +0000 |
commit | a964223bba361d62e14621137b353daaf3dacdc8 (patch) | |
tree | c24cdeeed2c0f69bbfdd38da3cfad22fb9fdea00 /control/zone.hpp | |
parent | 26a78ab15690be7421bb000bc473cd0bdfd8ad15 (diff) | |
download | phosphor-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.hpp | 10 |
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 |