blob: 147baf0ffc0df23a8e591a16decd63f3199aabd7 [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
Kevin Tungdd3551f2025-05-06 18:41:29 +08007const std::string configTypeEEPROMDevice = "EEPROMDevice";
Kevin Tung994a77f2024-12-23 17:48:56 +08008
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};