1 // SPDX-License-Identifier: Apache-2.0 2 // SPDX-FileCopyrightText: Copyright OpenBMC Authors 3 #pragma once 4 #include <nlohmann/json.hpp> 5 6 namespace memory_region 7 { 8 // clang-format off 9 10 enum class RegionType{ 11 Invalid, 12 Static, 13 Dynamic, 14 }; 15 16 NLOHMANN_JSON_SERIALIZE_ENUM(RegionType, { 17 {RegionType::Invalid, "Invalid"}, 18 {RegionType::Static, "Static"}, 19 {RegionType::Dynamic, "Dynamic"}, 20 }); 21 22 } 23 // clang-format on 24