blob: 0ee3420b7b0fbea4d50a34a5dcda6951ee07a517 [file] [log] [blame]
Patrick Venture5c7cc542018-06-11 14:29:38 -07001#pragma once
2
Patrick Ventureda4a5dd2018-08-31 09:42:48 -07003#include "pid/zone.hpp"
4#include "sensors/manager.hpp"
5
Patrick Venture5c7cc542018-06-11 14:29:38 -07006#include <sdbusplus/bus.hpp>
Patrick Venturea83a3ec2020-08-04 09:52:05 -07007
8#include <memory>
Patrick Venture5c7cc542018-06-11 14:29:38 -07009#include <unordered_map>
10
Patrick Venturea0764872020-08-08 07:48:43 -070011namespace pid_control
12{
13
Patrick Ventureda4a5dd2018-08-31 09:42:48 -070014std::unordered_map<int64_t, std::unique_ptr<PIDZone>>
Patrick Venture7e3f8ab2020-08-03 11:10:43 -070015 buildZones(const std::map<int64_t, conf::PIDConf>& zonePids,
James Feistf81f2882019-02-26 11:26:36 -080016 std::map<int64_t, struct conf::ZoneConfig>& zoneConfigs,
Patrick Venturef3252312018-10-30 08:42:53 -070017 SensorManager& mgr, sdbusplus::bus::bus& modeControlBus);
Patrick Venturea0764872020-08-08 07:48:43 -070018
19}