1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright OpenBMC Authors
#pragma once
#include <nlohmann/json.hpp>
namespace pcie_slots
{
// clang-format off
enum class SlotTypes{
Invalid,
FullLength,
HalfLength,
LowProfile,
Mini,
M2,
OEM,
OCP3Small,
OCP3Large,
U2,
};
NLOHMANN_JSON_SERIALIZE_ENUM(SlotTypes, {
{SlotTypes::Invalid, "Invalid"},
{SlotTypes::FullLength, "FullLength"},
{SlotTypes::HalfLength, "HalfLength"},
{SlotTypes::LowProfile, "LowProfile"},
{SlotTypes::Mini, "Mini"},
{SlotTypes::M2, "M2"},
{SlotTypes::OEM, "OEM"},
{SlotTypes::OCP3Small, "OCP3Small"},
{SlotTypes::OCP3Large, "OCP3Large"},
{SlotTypes::U2, "U2"},
});
// clang-format on
} // namespace pcie_slots
|