1 // SPDX-License-Identifier: Apache-2.0 2 // SPDX-FileCopyrightText: Copyright OpenBMC Authors 3 #pragma once 4 /**************************************************************** 5 * READ THIS WARNING FIRST 6 * This is an auto-generated header which contains definitions 7 * for Redfish DMTF defined messages. 8 * DO NOT modify this registry outside of running the 9 * parse_registries.py script. The definitions contained within 10 * this file are owned by DMTF. Any modifications to these files 11 * should be first pushed to the relevant registry in the DMTF 12 * github organization. 13 ***************************************************************/ 14 #include "registries.hpp" 15 16 #include <array> 17 18 // clang-format off 19 20 namespace redfish::registries::platform 21 { 22 const Header header = { 23 "Copyright 2023 DMTF. All rights reserved.", 24 "#MessageRegistry.v1_6_2.MessageRegistry", 25 1, 26 0, 27 1, 28 "Compute Platform Message Registry", 29 "en", 30 "This registry defines messages for compute platforms, covering topics related to processor, memory, and I/O device connectivity.", 31 "Platform", 32 "DMTF", 33 }; 34 constexpr const char* url = 35 "https://redfish.dmtf.org/registries/Platform.1.0.1.json"; 36 37 constexpr std::array registry = 38 { 39 MessageEntry{ 40 "OperatingSystemCrash", 41 { 42 "Indicates the operating system was halted due to a catastrophic error.", 43 "An operating system crash occurred.", 44 "Critical", 45 0, 46 {}, 47 "Check additional diagnostic data if available.", 48 }}, 49 MessageEntry{ 50 "PlatformError", 51 { 52 "Indicates that a platform error occurred.", 53 "A platform error occurred.", 54 "Warning", 55 0, 56 {}, 57 "Check additional diagnostic data if available.", 58 }}, 59 MessageEntry{ 60 "PlatformErrorAtLocation", 61 { 62 "Indicates that a platform error occurred and device or other location information is available.", 63 "A platform error occurred at location '%1'.", 64 "Warning", 65 1, 66 { 67 "string", 68 }, 69 "Check additional diagnostic data if available.", 70 }}, 71 MessageEntry{ 72 "UnhandledExceptionDetectedAfterReset", 73 { 74 "Indicates that an unhandled exception caused the platform to reset.", 75 "An unhandled exception caused a platform reset.", 76 "Critical", 77 0, 78 {}, 79 "Check additional diagnostic data if available.", 80 }}, 81 82 }; 83 84 enum class Index 85 { 86 operatingSystemCrash = 0, 87 platformError = 1, 88 platformErrorAtLocation = 2, 89 unhandledExceptionDetectedAfterReset = 3, 90 }; 91 } // namespace redfish::registries::platform 92