blob: 5f03400b49f3c347e303245f1f8e65d0bc4da93a [file] [log] [blame]
Patrick Venture5c7cc542018-06-11 14:29:38 -07001#pragma once
2
Patrick Venture7a98c192020-08-12 08:35:16 -07003#include "conf.hpp"
4#include "pid/zone_interface.hpp"
Patrick Ventureda4a5dd2018-08-31 09:42:48 -07005#include "sensors/manager.hpp"
6
Patrick Venture5c7cc542018-06-11 14:29:38 -07007#include <sdbusplus/bus.hpp>
Patrick Venturea83a3ec2020-08-04 09:52:05 -07008
9#include <memory>
Patrick Venture5c7cc542018-06-11 14:29:38 -070010#include <unordered_map>
11
Patrick Venturea0764872020-08-08 07:48:43 -070012namespace pid_control
13{
14
Johnathan Mantey5301aae2020-09-28 11:06:58 -070015std::unordered_map<int64_t, std::shared_ptr<ZoneInterface>>
Patrick Venture7e3f8ab2020-08-03 11:10:43 -070016 buildZones(const std::map<int64_t, conf::PIDConf>& zonePids,
Patrick Venture1df9e872020-10-08 15:35:01 -070017 std::map<int64_t, conf::ZoneConfig>& zoneConfigs,
Patrick Venturef3252312018-10-30 08:42:53 -070018 SensorManager& mgr, sdbusplus::bus::bus& modeControlBus);
Patrick Venturea0764872020-08-08 07:48:43 -070019
20}