summaryrefslogtreecommitdiff
path: root/redfish-core/include/utils/processor_utils.hpp
blob: 01e3297c7b0d98f1e7097c072aa0272400d2d7b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright OpenBMC Authors
#pragma once

#include <array>
#include <string_view>

namespace redfish
{

// Interfaces which imply a D-Bus object represents a Processor
constexpr std::array<std::string_view, 2> processorInterfaces = {
    "xyz.openbmc_project.Inventory.Item.Cpu",
    "xyz.openbmc_project.Inventory.Item.Accelerator"};

// Interfaces which imply a D-Bus object represents a Processor Core
constexpr std::array<std::string_view, 1> processorCoreInterfaces = {
    "xyz.openbmc_project.Inventory.Item.CpuCore"};

} // namespace redfish