blob: 134a5450961d6d6541df84b71374d74b72949090 [file] [log] [blame]
Kamalkumar Patel56da5742024-05-23 04:53:07 -05001#pragma once
2
3#include <sdbusplus/bus.hpp>
4#include <sdbusplus/server.hpp>
5#include <sdbusplus/server/object.hpp>
6#include <xyz/openbmc_project/Inventory/Item/CpuCore/server.hpp>
7
8#include <string>
9
10namespace pldm
11{
12namespace dbus
13{
14using CoreIntf = sdbusplus::server::object_t<
15 sdbusplus::xyz::openbmc_project::Inventory::Item::server::CpuCore>;
16
17class CPUCore : public CoreIntf
18{
19 public:
20 CPUCore() = delete;
21 ~CPUCore() = default;
22 CPUCore(const CPUCore&) = delete;
23 CPUCore& operator=(const CPUCore&) = delete;
Andrew Jeffery7a78ced2024-07-25 22:48:34 +093024 CPUCore(CPUCore&&) = delete;
25 CPUCore& operator=(CPUCore&&) = delete;
Kamalkumar Patel56da5742024-05-23 04:53:07 -050026
27 CPUCore(sdbusplus::bus_t& bus, const std::string& objPath) :
28 CoreIntf(bus, objPath.c_str())
29 {}
30
31 /** Get value of Microcode */
32 uint32_t microcode() const override;
33
34 /** Set value of Microcode */
35 uint32_t microcode(uint32_t value) override;
36};
37
38} // namespace dbus
39} // namespace pldm