blob: b248f8d4caa6198ea945a653929ac4fca22156a4 [file] [log] [blame]
Kevin Tung994a77f2024-12-23 17:48:56 +08001#pragma once
2
3#include "common/include/software_manager.hpp"
4
5namespace ManagerInf = phosphor::software::manager;
6
7const std::string configTypeEEPROMDevice = "EERPOMDevice";
8
9class EEPROMDeviceSoftwareManager : public ManagerInf::SoftwareManager
10{
11 public:
12 EEPROMDeviceSoftwareManager(sdbusplus::async::context& ctx) :
13 SoftwareManager(ctx, configTypeEEPROMDevice)
14 {}
15
16 void start();
17
18 sdbusplus::async::task<bool> initDevice(const std::string& service,
19 const std::string& path,
20 SoftwareConfig& config) final;
21
22 private:
23 sdbusplus::async::task<bool> getDeviceProperties(
24 const std::string& service, const std::string& path,
25 const std::string& intf, uint16_t& bus, uint8_t& address,
26 std::string& chipModel);
27};