blob: 3a5852947e20e922d39411e783dfc7f2666fd3c9 [file] [log] [blame]
#pragma once
#include <sdbusplus/bus.hpp>
#include <sdbusplus/server.hpp>
#include <sdbusplus/server/object.hpp>
#include <xyz/openbmc_project/Inventory/Item/CpuCore/server.hpp>
#include <string>
namespace pldm
{
namespace dbus
{
using CoreIntf = sdbusplus::server::object_t<
sdbusplus::xyz::openbmc_project::Inventory::Item::server::CpuCore>;
class CPUCore : public CoreIntf
{
public:
CPUCore() = delete;
~CPUCore() = default;
CPUCore(const CPUCore&) = delete;
CPUCore& operator=(const CPUCore&) = delete;
CPUCore(CPUCore&&) = default;
CPUCore& operator=(CPUCore&&) = default;
CPUCore(sdbusplus::bus_t& bus, const std::string& objPath) :
CoreIntf(bus, objPath.c_str())
{}
/** Get value of Microcode */
uint32_t microcode() const override;
/** Set value of Microcode */
uint32_t microcode(uint32_t value) override;
};
} // namespace dbus
} // namespace pldm