blob: 4b4801bcd9f54c87e2fa89753ec25177701f3bb9 [file] [log] [blame]
Matthew Barthd87f89f2020-07-30 10:41:32 -05001/**
2 * Copyright © 2020 IBM Corporation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16#pragma once
17
Matthew Barth23ac24c2020-08-04 13:55:43 -050018#include "types.hpp"
19
20#include <sdbusplus/bus.hpp>
21
Matthew Barthd87f89f2020-07-30 10:41:32 -050022namespace phosphor::fan::control
Matthew Barth167d2dd2020-08-04 12:19:16 -050023{
24
25constexpr auto confAppName = "control";
26
Matthew Barth23ac24c2020-08-04 13:55:43 -050027/**
28 * @brief Get the configuration definitions for zone groups
29 *
30 * @param[in] bus - The dbus bus object
31 *
32 * @return List of zone group objects
33 * Generated list of zone groups including their control configurations
34 */
35const std::vector<ZoneGroup> getZoneGroups(sdbusplus::bus::bus& bus);
36
Matthew Barth2dc5aba2020-08-04 14:23:34 -050037/**
38 * @brief Get the delay(in seconds) to allow the fans to ramp up to the defined
39 * power on speed
40 *
41 * @param[in] bus - The dbus bus object
42 *
43 * @return Time to delay in seconds
44 * Amount of time to delay in seconds after a power on
45 */
46const unsigned int getPowerOnDelay(sdbusplus::bus::bus& bus);
47
Matthew Barth167d2dd2020-08-04 12:19:16 -050048} // namespace phosphor::fan::control