Matt Spinler | 84cd0a5 | 2017-08-04 08:53:30 -0500 | [diff] [blame] | 1 | // This file was autogenerated. Do not edit! |
| 2 | // See elog-gen.py for more details |
| 3 | #pragma once |
| 4 | |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 5 | #include <phosphor-logging/elog.hpp> |
| 6 | #include <phosphor-logging/log.hpp> |
| 7 | #include <sdbusplus/exception.hpp> |
Brandon Wyman | d1bc4ce | 2019-12-13 14:20:34 -0600 | [diff] [blame] | 8 | |
Matt Spinler | 84cd0a5 | 2017-08-04 08:53:30 -0500 | [diff] [blame] | 9 | #include <string> |
| 10 | #include <tuple> |
| 11 | #include <type_traits> |
Matt Spinler | 84cd0a5 | 2017-08-04 08:53:30 -0500 | [diff] [blame] | 12 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 13 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 14 | { |
| 15 | struct ErrorCode0; |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 16 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 17 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 18 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 19 | struct ErrorCode1; |
| 20 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 21 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 22 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 23 | struct ErrorCode10; |
| 24 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 25 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 26 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 27 | struct ErrorCode11; |
| 28 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 29 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 30 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 31 | struct ErrorCode12; |
| 32 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 33 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 34 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 35 | struct ErrorCode13; |
| 36 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 37 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 38 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 39 | struct ErrorCode14; |
| 40 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 41 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 42 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 43 | struct ErrorCode15; |
| 44 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 45 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 46 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 47 | struct ErrorCode16; |
| 48 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 49 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 50 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 51 | struct ErrorCode17; |
| 52 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 53 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 54 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 55 | struct ErrorCode18; |
| 56 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 57 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 58 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 59 | struct ErrorCode19; |
| 60 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 61 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 62 | { |
| 63 | struct ErrorCode2; |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 64 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 65 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 66 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 67 | struct ErrorCode20; |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 68 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 69 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 70 | { |
| 71 | struct ErrorCode21; |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 72 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 73 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 74 | { |
| 75 | struct ErrorCode22; |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 76 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 77 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 78 | { |
| 79 | struct ErrorCode23; |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 80 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 81 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 82 | { |
| 83 | struct ErrorCode24; |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 84 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 85 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 86 | { |
| 87 | struct ErrorCode25; |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 88 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 89 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 90 | { |
| 91 | struct ErrorCode26; |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 92 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 93 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 94 | { |
| 95 | struct ErrorCode27; |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 96 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 97 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 98 | { |
| 99 | struct ErrorCode28; |
| 100 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 101 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 102 | { |
| 103 | struct ErrorCode29; |
| 104 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 105 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 106 | { |
| 107 | struct ErrorCode3; |
| 108 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 109 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 110 | { |
| 111 | struct ErrorCode30; |
| 112 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 113 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 114 | { |
| 115 | struct ErrorCode31; |
| 116 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 117 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 118 | { |
| 119 | struct ErrorCode32; |
| 120 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 121 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 122 | { |
| 123 | struct ErrorCode33; |
| 124 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 125 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 126 | { |
| 127 | struct ErrorCode34; |
| 128 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 129 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 130 | { |
| 131 | struct ErrorCode35; |
| 132 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 133 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 134 | { |
| 135 | struct ErrorCode36; |
| 136 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 137 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 138 | { |
| 139 | struct ErrorCode4; |
| 140 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 141 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 142 | { |
| 143 | struct ErrorCode5; |
| 144 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 145 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 146 | { |
| 147 | struct ErrorCode6; |
| 148 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 149 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 150 | { |
| 151 | struct ErrorCode7; |
| 152 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 153 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 154 | { |
| 155 | struct ErrorCode8; |
| 156 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 157 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 158 | { |
| 159 | struct ErrorCode9; |
| 160 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 161 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 162 | { |
| 163 | struct GPUOverTemp; |
| 164 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 165 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 166 | { |
| 167 | struct GPUPowerFault; |
| 168 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 169 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 170 | { |
| 171 | struct MemoryPowerFault; |
| 172 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 173 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 174 | { |
| 175 | struct PowerOnFailure; |
| 176 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 177 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 178 | { |
| 179 | struct PowerSequencerFault; |
| 180 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 181 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 182 | { |
| 183 | struct PowerSequencerPGOODFault; |
| 184 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 185 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 186 | { |
| 187 | struct PowerSequencerVoltageFault; |
| 188 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 189 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 190 | { |
| 191 | struct PowerSupplyFanFault; |
| 192 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 193 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 194 | { |
| 195 | struct PowerSupplyInputFault; |
| 196 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 197 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 198 | { |
| 199 | struct PowerSupplyOutputOvercurrent; |
| 200 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 201 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 202 | { |
| 203 | struct PowerSupplyOutputOvervoltage; |
| 204 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 205 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 206 | { |
| 207 | struct PowerSupplyShouldBeOn; |
| 208 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 209 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 210 | { |
| 211 | struct PowerSupplyTemperatureFault; |
| 212 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 213 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 214 | { |
| 215 | struct Shutdown; |
| 216 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 217 | namespace sdbusplus::error::xyz::openbmc_project::common::callout |
| 218 | { |
| 219 | struct Device; |
| 220 | } // namespace sdbusplus::error::xyz::openbmc_project::common::callout |
| 221 | namespace sdbusplus::error::xyz::openbmc_project::common::callout |
| 222 | { |
| 223 | struct GPIO; |
| 224 | } // namespace sdbusplus::error::xyz::openbmc_project::common::callout |
| 225 | namespace sdbusplus::error::xyz::openbmc_project::common::callout |
| 226 | { |
| 227 | struct IIC; |
| 228 | } // namespace sdbusplus::error::xyz::openbmc_project::common::callout |
| 229 | namespace sdbusplus::error::xyz::openbmc_project::common::callout |
| 230 | { |
| 231 | struct IPMISensor; |
| 232 | } // namespace sdbusplus::error::xyz::openbmc_project::common::callout |
| 233 | namespace sdbusplus::error::xyz::openbmc_project::common::callout |
| 234 | { |
| 235 | struct Inventory; |
| 236 | } // namespace sdbusplus::error::xyz::openbmc_project::common::callout |
Matt Spinler | 84cd0a5 | 2017-08-04 08:53:30 -0500 | [diff] [blame] | 237 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 238 | namespace phosphor::logging |
Matt Spinler | 84cd0a5 | 2017-08-04 08:53:30 -0500 | [diff] [blame] | 239 | { |
| 240 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 241 | namespace org::open_power::witherspoon::fault |
Matt Spinler | 84cd0a5 | 2017-08-04 08:53:30 -0500 | [diff] [blame] | 242 | { |
| 243 | |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 244 | struct Shutdown |
| 245 | { |
| 246 | static constexpr auto L = level::ERR; |
| 247 | using metadata_types = std::tuple<>; |
| 248 | }; |
| 249 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 250 | } // namespace org::open_power::witherspoon::fault |
| 251 | |
| 252 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 253 | namespace org::open_power::Witherspoon::Fault |
| 254 | { |
| 255 | using Shutdown = |
| 256 | phosphor::logging::org::open_power::witherspoon::fault::Shutdown; |
| 257 | } |
| 258 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 259 | |
| 260 | namespace details |
| 261 | { |
| 262 | |
| 263 | template <> |
| 264 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 265 | sdbusplus::error::org::open_power::witherspoon::fault::Shutdown> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 266 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 267 | using type = |
| 268 | phosphor::logging::org::open_power::witherspoon::fault::Shutdown; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 269 | }; |
| 270 | |
| 271 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 272 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 273 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 274 | |
| 275 | struct PowerOnFailure |
| 276 | { |
| 277 | static constexpr auto L = level::ERR; |
| 278 | using metadata_types = std::tuple<>; |
| 279 | }; |
| 280 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 281 | } // namespace org::open_power::witherspoon::fault |
| 282 | |
| 283 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 284 | namespace org::open_power::Witherspoon::Fault |
| 285 | { |
| 286 | using PowerOnFailure = |
| 287 | phosphor::logging::org::open_power::witherspoon::fault::PowerOnFailure; |
| 288 | } |
| 289 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 290 | |
| 291 | namespace details |
| 292 | { |
| 293 | |
| 294 | template <> |
| 295 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 296 | sdbusplus::error::org::open_power::witherspoon::fault::PowerOnFailure> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 297 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 298 | using type = |
| 299 | phosphor::logging::org::open_power::witherspoon::fault::PowerOnFailure; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 300 | }; |
| 301 | |
| 302 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 303 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 304 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 305 | |
| 306 | struct ErrorCode0 |
| 307 | { |
| 308 | static constexpr auto L = level::ERR; |
| 309 | using metadata_types = std::tuple<>; |
| 310 | }; |
| 311 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 312 | } // namespace org::open_power::witherspoon::fault |
| 313 | |
| 314 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 315 | namespace org::open_power::Witherspoon::Fault |
| 316 | { |
| 317 | using ErrorCode0 = |
| 318 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode0; |
| 319 | } |
| 320 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 321 | |
| 322 | namespace details |
| 323 | { |
| 324 | |
| 325 | template <> |
| 326 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 327 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode0> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 328 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 329 | using type = |
| 330 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode0; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 331 | }; |
| 332 | |
| 333 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 334 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 335 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 336 | |
| 337 | struct ErrorCode1 |
| 338 | { |
| 339 | static constexpr auto L = level::ERR; |
| 340 | using metadata_types = std::tuple<>; |
| 341 | }; |
| 342 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 343 | } // namespace org::open_power::witherspoon::fault |
| 344 | |
| 345 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 346 | namespace org::open_power::Witherspoon::Fault |
| 347 | { |
| 348 | using ErrorCode1 = |
| 349 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode1; |
| 350 | } |
| 351 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 352 | |
| 353 | namespace details |
| 354 | { |
| 355 | |
| 356 | template <> |
| 357 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 358 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode1> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 359 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 360 | using type = |
| 361 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode1; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 362 | }; |
| 363 | |
| 364 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 365 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 366 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 367 | |
| 368 | struct ErrorCode2 |
| 369 | { |
| 370 | static constexpr auto L = level::ERR; |
| 371 | using metadata_types = std::tuple<>; |
| 372 | }; |
| 373 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 374 | } // namespace org::open_power::witherspoon::fault |
| 375 | |
| 376 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 377 | namespace org::open_power::Witherspoon::Fault |
| 378 | { |
| 379 | using ErrorCode2 = |
| 380 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode2; |
| 381 | } |
| 382 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 383 | |
| 384 | namespace details |
| 385 | { |
| 386 | |
| 387 | template <> |
| 388 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 389 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode2> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 390 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 391 | using type = |
| 392 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode2; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 393 | }; |
| 394 | |
| 395 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 396 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 397 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 398 | |
| 399 | struct ErrorCode3 |
| 400 | { |
| 401 | static constexpr auto L = level::ERR; |
| 402 | using metadata_types = std::tuple<>; |
| 403 | }; |
| 404 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 405 | } // namespace org::open_power::witherspoon::fault |
| 406 | |
| 407 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 408 | namespace org::open_power::Witherspoon::Fault |
| 409 | { |
| 410 | using ErrorCode3 = |
| 411 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode3; |
| 412 | } |
| 413 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 414 | |
| 415 | namespace details |
| 416 | { |
| 417 | |
| 418 | template <> |
| 419 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 420 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode3> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 421 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 422 | using type = |
| 423 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode3; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 424 | }; |
| 425 | |
| 426 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 427 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 428 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 429 | |
| 430 | struct ErrorCode4 |
| 431 | { |
| 432 | static constexpr auto L = level::ERR; |
| 433 | using metadata_types = std::tuple<>; |
| 434 | }; |
| 435 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 436 | } // namespace org::open_power::witherspoon::fault |
| 437 | |
| 438 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 439 | namespace org::open_power::Witherspoon::Fault |
| 440 | { |
| 441 | using ErrorCode4 = |
| 442 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode4; |
| 443 | } |
| 444 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 445 | |
| 446 | namespace details |
| 447 | { |
| 448 | |
| 449 | template <> |
| 450 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 451 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode4> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 452 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 453 | using type = |
| 454 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode4; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 455 | }; |
| 456 | |
| 457 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 458 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 459 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 460 | |
| 461 | struct ErrorCode5 |
| 462 | { |
| 463 | static constexpr auto L = level::ERR; |
| 464 | using metadata_types = std::tuple<>; |
| 465 | }; |
| 466 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 467 | } // namespace org::open_power::witherspoon::fault |
| 468 | |
| 469 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 470 | namespace org::open_power::Witherspoon::Fault |
| 471 | { |
| 472 | using ErrorCode5 = |
| 473 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode5; |
| 474 | } |
| 475 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 476 | |
| 477 | namespace details |
| 478 | { |
| 479 | |
| 480 | template <> |
| 481 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 482 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode5> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 483 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 484 | using type = |
| 485 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode5; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 486 | }; |
| 487 | |
| 488 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 489 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 490 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 491 | |
| 492 | struct ErrorCode6 |
| 493 | { |
| 494 | static constexpr auto L = level::ERR; |
| 495 | using metadata_types = std::tuple<>; |
| 496 | }; |
| 497 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 498 | } // namespace org::open_power::witherspoon::fault |
| 499 | |
| 500 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 501 | namespace org::open_power::Witherspoon::Fault |
| 502 | { |
| 503 | using ErrorCode6 = |
| 504 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode6; |
| 505 | } |
| 506 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 507 | |
| 508 | namespace details |
| 509 | { |
| 510 | |
| 511 | template <> |
| 512 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 513 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode6> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 514 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 515 | using type = |
| 516 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode6; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 517 | }; |
| 518 | |
| 519 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 520 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 521 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 522 | |
| 523 | struct ErrorCode7 |
| 524 | { |
| 525 | static constexpr auto L = level::ERR; |
| 526 | using metadata_types = std::tuple<>; |
| 527 | }; |
| 528 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 529 | } // namespace org::open_power::witherspoon::fault |
| 530 | |
| 531 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 532 | namespace org::open_power::Witherspoon::Fault |
| 533 | { |
| 534 | using ErrorCode7 = |
| 535 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode7; |
| 536 | } |
| 537 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 538 | |
| 539 | namespace details |
| 540 | { |
| 541 | |
| 542 | template <> |
| 543 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 544 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode7> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 545 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 546 | using type = |
| 547 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode7; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 548 | }; |
| 549 | |
| 550 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 551 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 552 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 553 | |
| 554 | struct ErrorCode8 |
| 555 | { |
| 556 | static constexpr auto L = level::ERR; |
| 557 | using metadata_types = std::tuple<>; |
| 558 | }; |
| 559 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 560 | } // namespace org::open_power::witherspoon::fault |
| 561 | |
| 562 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 563 | namespace org::open_power::Witherspoon::Fault |
| 564 | { |
| 565 | using ErrorCode8 = |
| 566 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode8; |
| 567 | } |
| 568 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 569 | |
| 570 | namespace details |
| 571 | { |
| 572 | |
| 573 | template <> |
| 574 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 575 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode8> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 576 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 577 | using type = |
| 578 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode8; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 579 | }; |
| 580 | |
| 581 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 582 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 583 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 584 | |
| 585 | struct ErrorCode9 |
| 586 | { |
| 587 | static constexpr auto L = level::ERR; |
| 588 | using metadata_types = std::tuple<>; |
| 589 | }; |
| 590 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 591 | } // namespace org::open_power::witherspoon::fault |
| 592 | |
| 593 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 594 | namespace org::open_power::Witherspoon::Fault |
| 595 | { |
| 596 | using ErrorCode9 = |
| 597 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode9; |
| 598 | } |
| 599 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 600 | |
| 601 | namespace details |
| 602 | { |
| 603 | |
| 604 | template <> |
| 605 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 606 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode9> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 607 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 608 | using type = |
| 609 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode9; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 610 | }; |
| 611 | |
| 612 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 613 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 614 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 615 | |
| 616 | struct ErrorCode10 |
| 617 | { |
| 618 | static constexpr auto L = level::ERR; |
| 619 | using metadata_types = std::tuple<>; |
| 620 | }; |
| 621 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 622 | } // namespace org::open_power::witherspoon::fault |
| 623 | |
| 624 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 625 | namespace org::open_power::Witherspoon::Fault |
| 626 | { |
| 627 | using ErrorCode10 = |
| 628 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode10; |
| 629 | } |
| 630 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 631 | |
| 632 | namespace details |
| 633 | { |
| 634 | |
| 635 | template <> |
| 636 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 637 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode10> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 638 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 639 | using type = |
| 640 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode10; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 641 | }; |
| 642 | |
| 643 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 644 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 645 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 646 | |
| 647 | struct ErrorCode11 |
| 648 | { |
| 649 | static constexpr auto L = level::ERR; |
| 650 | using metadata_types = std::tuple<>; |
| 651 | }; |
| 652 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 653 | } // namespace org::open_power::witherspoon::fault |
| 654 | |
| 655 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 656 | namespace org::open_power::Witherspoon::Fault |
| 657 | { |
| 658 | using ErrorCode11 = |
| 659 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode11; |
| 660 | } |
| 661 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 662 | |
| 663 | namespace details |
| 664 | { |
| 665 | |
| 666 | template <> |
| 667 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 668 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode11> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 669 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 670 | using type = |
| 671 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode11; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 672 | }; |
| 673 | |
| 674 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 675 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 676 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 677 | |
| 678 | struct ErrorCode12 |
| 679 | { |
| 680 | static constexpr auto L = level::ERR; |
| 681 | using metadata_types = std::tuple<>; |
| 682 | }; |
| 683 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 684 | } // namespace org::open_power::witherspoon::fault |
| 685 | |
| 686 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 687 | namespace org::open_power::Witherspoon::Fault |
| 688 | { |
| 689 | using ErrorCode12 = |
| 690 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode12; |
| 691 | } |
| 692 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 693 | |
| 694 | namespace details |
| 695 | { |
| 696 | |
| 697 | template <> |
| 698 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 699 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode12> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 700 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 701 | using type = |
| 702 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode12; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 703 | }; |
| 704 | |
| 705 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 706 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 707 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 708 | |
| 709 | struct ErrorCode13 |
| 710 | { |
| 711 | static constexpr auto L = level::ERR; |
| 712 | using metadata_types = std::tuple<>; |
| 713 | }; |
| 714 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 715 | } // namespace org::open_power::witherspoon::fault |
| 716 | |
| 717 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 718 | namespace org::open_power::Witherspoon::Fault |
| 719 | { |
| 720 | using ErrorCode13 = |
| 721 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode13; |
| 722 | } |
| 723 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 724 | |
| 725 | namespace details |
| 726 | { |
| 727 | |
| 728 | template <> |
| 729 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 730 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode13> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 731 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 732 | using type = |
| 733 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode13; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 734 | }; |
| 735 | |
| 736 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 737 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 738 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 739 | |
| 740 | struct ErrorCode14 |
| 741 | { |
| 742 | static constexpr auto L = level::ERR; |
| 743 | using metadata_types = std::tuple<>; |
| 744 | }; |
| 745 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 746 | } // namespace org::open_power::witherspoon::fault |
| 747 | |
| 748 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 749 | namespace org::open_power::Witherspoon::Fault |
| 750 | { |
| 751 | using ErrorCode14 = |
| 752 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode14; |
| 753 | } |
| 754 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 755 | |
| 756 | namespace details |
| 757 | { |
| 758 | |
| 759 | template <> |
| 760 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 761 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode14> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 762 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 763 | using type = |
| 764 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode14; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 765 | }; |
| 766 | |
| 767 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 768 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 769 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 770 | |
| 771 | struct ErrorCode15 |
| 772 | { |
| 773 | static constexpr auto L = level::ERR; |
| 774 | using metadata_types = std::tuple<>; |
| 775 | }; |
| 776 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 777 | } // namespace org::open_power::witherspoon::fault |
| 778 | |
| 779 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 780 | namespace org::open_power::Witherspoon::Fault |
| 781 | { |
| 782 | using ErrorCode15 = |
| 783 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode15; |
| 784 | } |
| 785 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 786 | |
| 787 | namespace details |
| 788 | { |
| 789 | |
| 790 | template <> |
| 791 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 792 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode15> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 793 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 794 | using type = |
| 795 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode15; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 796 | }; |
| 797 | |
| 798 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 799 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 800 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 801 | |
| 802 | struct ErrorCode16 |
| 803 | { |
| 804 | static constexpr auto L = level::ERR; |
| 805 | using metadata_types = std::tuple<>; |
| 806 | }; |
| 807 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 808 | } // namespace org::open_power::witherspoon::fault |
| 809 | |
| 810 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 811 | namespace org::open_power::Witherspoon::Fault |
| 812 | { |
| 813 | using ErrorCode16 = |
| 814 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode16; |
| 815 | } |
| 816 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 817 | |
| 818 | namespace details |
| 819 | { |
| 820 | |
| 821 | template <> |
| 822 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 823 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode16> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 824 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 825 | using type = |
| 826 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode16; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 827 | }; |
| 828 | |
| 829 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 830 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 831 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 832 | |
| 833 | struct ErrorCode17 |
| 834 | { |
| 835 | static constexpr auto L = level::ERR; |
| 836 | using metadata_types = std::tuple<>; |
| 837 | }; |
| 838 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 839 | } // namespace org::open_power::witherspoon::fault |
| 840 | |
| 841 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 842 | namespace org::open_power::Witherspoon::Fault |
| 843 | { |
| 844 | using ErrorCode17 = |
| 845 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode17; |
| 846 | } |
| 847 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 848 | |
| 849 | namespace details |
| 850 | { |
| 851 | |
| 852 | template <> |
| 853 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 854 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode17> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 855 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 856 | using type = |
| 857 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode17; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 858 | }; |
| 859 | |
| 860 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 861 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 862 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 863 | |
| 864 | struct ErrorCode18 |
| 865 | { |
| 866 | static constexpr auto L = level::ERR; |
| 867 | using metadata_types = std::tuple<>; |
| 868 | }; |
| 869 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 870 | } // namespace org::open_power::witherspoon::fault |
| 871 | |
| 872 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 873 | namespace org::open_power::Witherspoon::Fault |
| 874 | { |
| 875 | using ErrorCode18 = |
| 876 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode18; |
| 877 | } |
| 878 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 879 | |
| 880 | namespace details |
| 881 | { |
| 882 | |
| 883 | template <> |
| 884 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 885 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode18> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 886 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 887 | using type = |
| 888 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode18; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 889 | }; |
| 890 | |
| 891 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 892 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 893 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 894 | |
| 895 | struct ErrorCode19 |
| 896 | { |
| 897 | static constexpr auto L = level::ERR; |
| 898 | using metadata_types = std::tuple<>; |
| 899 | }; |
| 900 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 901 | } // namespace org::open_power::witherspoon::fault |
| 902 | |
| 903 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 904 | namespace org::open_power::Witherspoon::Fault |
| 905 | { |
| 906 | using ErrorCode19 = |
| 907 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode19; |
| 908 | } |
| 909 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 910 | |
| 911 | namespace details |
| 912 | { |
| 913 | |
| 914 | template <> |
| 915 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 916 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode19> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 917 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 918 | using type = |
| 919 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode19; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 920 | }; |
| 921 | |
| 922 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 923 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 924 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 925 | |
| 926 | struct ErrorCode20 |
| 927 | { |
| 928 | static constexpr auto L = level::ERR; |
| 929 | using metadata_types = std::tuple<>; |
| 930 | }; |
| 931 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 932 | } // namespace org::open_power::witherspoon::fault |
| 933 | |
| 934 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 935 | namespace org::open_power::Witherspoon::Fault |
| 936 | { |
| 937 | using ErrorCode20 = |
| 938 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode20; |
| 939 | } |
| 940 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 941 | |
| 942 | namespace details |
| 943 | { |
| 944 | |
| 945 | template <> |
| 946 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 947 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode20> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 948 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 949 | using type = |
| 950 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode20; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 951 | }; |
| 952 | |
| 953 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 954 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 955 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 956 | |
| 957 | struct ErrorCode21 |
| 958 | { |
| 959 | static constexpr auto L = level::ERR; |
| 960 | using metadata_types = std::tuple<>; |
| 961 | }; |
| 962 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 963 | } // namespace org::open_power::witherspoon::fault |
| 964 | |
| 965 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 966 | namespace org::open_power::Witherspoon::Fault |
| 967 | { |
| 968 | using ErrorCode21 = |
| 969 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode21; |
| 970 | } |
| 971 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 972 | |
| 973 | namespace details |
| 974 | { |
| 975 | |
| 976 | template <> |
| 977 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 978 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode21> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 979 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 980 | using type = |
| 981 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode21; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 982 | }; |
| 983 | |
| 984 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 985 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 986 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 987 | |
| 988 | struct ErrorCode22 |
| 989 | { |
| 990 | static constexpr auto L = level::ERR; |
| 991 | using metadata_types = std::tuple<>; |
| 992 | }; |
| 993 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 994 | } // namespace org::open_power::witherspoon::fault |
| 995 | |
| 996 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 997 | namespace org::open_power::Witherspoon::Fault |
| 998 | { |
| 999 | using ErrorCode22 = |
| 1000 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode22; |
| 1001 | } |
| 1002 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1003 | |
| 1004 | namespace details |
| 1005 | { |
| 1006 | |
| 1007 | template <> |
| 1008 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1009 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode22> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1010 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1011 | using type = |
| 1012 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode22; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1013 | }; |
| 1014 | |
| 1015 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1016 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1017 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1018 | |
| 1019 | struct ErrorCode23 |
| 1020 | { |
| 1021 | static constexpr auto L = level::ERR; |
| 1022 | using metadata_types = std::tuple<>; |
| 1023 | }; |
| 1024 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1025 | } // namespace org::open_power::witherspoon::fault |
| 1026 | |
| 1027 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 1028 | namespace org::open_power::Witherspoon::Fault |
| 1029 | { |
| 1030 | using ErrorCode23 = |
| 1031 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode23; |
| 1032 | } |
| 1033 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1034 | |
| 1035 | namespace details |
| 1036 | { |
| 1037 | |
| 1038 | template <> |
| 1039 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1040 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode23> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1041 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1042 | using type = |
| 1043 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode23; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1044 | }; |
| 1045 | |
| 1046 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1047 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1048 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1049 | |
| 1050 | struct ErrorCode24 |
| 1051 | { |
| 1052 | static constexpr auto L = level::ERR; |
| 1053 | using metadata_types = std::tuple<>; |
| 1054 | }; |
| 1055 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1056 | } // namespace org::open_power::witherspoon::fault |
| 1057 | |
| 1058 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 1059 | namespace org::open_power::Witherspoon::Fault |
| 1060 | { |
| 1061 | using ErrorCode24 = |
| 1062 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode24; |
| 1063 | } |
| 1064 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1065 | |
| 1066 | namespace details |
| 1067 | { |
| 1068 | |
| 1069 | template <> |
| 1070 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1071 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode24> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1072 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1073 | using type = |
| 1074 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode24; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1075 | }; |
| 1076 | |
| 1077 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1078 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1079 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1080 | |
| 1081 | struct ErrorCode25 |
| 1082 | { |
| 1083 | static constexpr auto L = level::ERR; |
| 1084 | using metadata_types = std::tuple<>; |
| 1085 | }; |
| 1086 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1087 | } // namespace org::open_power::witherspoon::fault |
| 1088 | |
| 1089 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 1090 | namespace org::open_power::Witherspoon::Fault |
| 1091 | { |
| 1092 | using ErrorCode25 = |
| 1093 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode25; |
| 1094 | } |
| 1095 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1096 | |
| 1097 | namespace details |
| 1098 | { |
| 1099 | |
| 1100 | template <> |
| 1101 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1102 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode25> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1103 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1104 | using type = |
| 1105 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode25; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1106 | }; |
| 1107 | |
| 1108 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1109 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1110 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1111 | |
| 1112 | struct ErrorCode26 |
| 1113 | { |
| 1114 | static constexpr auto L = level::ERR; |
| 1115 | using metadata_types = std::tuple<>; |
| 1116 | }; |
| 1117 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1118 | } // namespace org::open_power::witherspoon::fault |
| 1119 | |
| 1120 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 1121 | namespace org::open_power::Witherspoon::Fault |
| 1122 | { |
| 1123 | using ErrorCode26 = |
| 1124 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode26; |
| 1125 | } |
| 1126 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1127 | |
| 1128 | namespace details |
| 1129 | { |
| 1130 | |
| 1131 | template <> |
| 1132 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1133 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode26> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1134 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1135 | using type = |
| 1136 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode26; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1137 | }; |
| 1138 | |
| 1139 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1140 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1141 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1142 | |
| 1143 | struct ErrorCode27 |
| 1144 | { |
| 1145 | static constexpr auto L = level::ERR; |
| 1146 | using metadata_types = std::tuple<>; |
| 1147 | }; |
| 1148 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1149 | } // namespace org::open_power::witherspoon::fault |
| 1150 | |
| 1151 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 1152 | namespace org::open_power::Witherspoon::Fault |
| 1153 | { |
| 1154 | using ErrorCode27 = |
| 1155 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode27; |
| 1156 | } |
| 1157 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1158 | |
| 1159 | namespace details |
| 1160 | { |
| 1161 | |
| 1162 | template <> |
| 1163 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1164 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode27> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1165 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1166 | using type = |
| 1167 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode27; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1168 | }; |
| 1169 | |
| 1170 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1171 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1172 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1173 | |
| 1174 | struct ErrorCode28 |
| 1175 | { |
| 1176 | static constexpr auto L = level::ERR; |
| 1177 | using metadata_types = std::tuple<>; |
| 1178 | }; |
| 1179 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1180 | } // namespace org::open_power::witherspoon::fault |
| 1181 | |
| 1182 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 1183 | namespace org::open_power::Witherspoon::Fault |
| 1184 | { |
| 1185 | using ErrorCode28 = |
| 1186 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode28; |
| 1187 | } |
| 1188 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1189 | |
| 1190 | namespace details |
| 1191 | { |
| 1192 | |
| 1193 | template <> |
| 1194 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1195 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode28> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1196 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1197 | using type = |
| 1198 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode28; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1199 | }; |
| 1200 | |
| 1201 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1202 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1203 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1204 | |
| 1205 | struct ErrorCode29 |
| 1206 | { |
| 1207 | static constexpr auto L = level::ERR; |
| 1208 | using metadata_types = std::tuple<>; |
| 1209 | }; |
| 1210 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1211 | } // namespace org::open_power::witherspoon::fault |
| 1212 | |
| 1213 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 1214 | namespace org::open_power::Witherspoon::Fault |
| 1215 | { |
| 1216 | using ErrorCode29 = |
| 1217 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode29; |
| 1218 | } |
| 1219 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1220 | |
| 1221 | namespace details |
| 1222 | { |
| 1223 | |
| 1224 | template <> |
| 1225 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1226 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode29> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1227 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1228 | using type = |
| 1229 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode29; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1230 | }; |
| 1231 | |
| 1232 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1233 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1234 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1235 | |
| 1236 | struct ErrorCode30 |
| 1237 | { |
| 1238 | static constexpr auto L = level::ERR; |
| 1239 | using metadata_types = std::tuple<>; |
| 1240 | }; |
| 1241 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1242 | } // namespace org::open_power::witherspoon::fault |
| 1243 | |
| 1244 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 1245 | namespace org::open_power::Witherspoon::Fault |
| 1246 | { |
| 1247 | using ErrorCode30 = |
| 1248 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode30; |
| 1249 | } |
| 1250 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1251 | |
| 1252 | namespace details |
| 1253 | { |
| 1254 | |
| 1255 | template <> |
| 1256 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1257 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode30> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1258 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1259 | using type = |
| 1260 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode30; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1261 | }; |
| 1262 | |
| 1263 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1264 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1265 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1266 | |
| 1267 | struct ErrorCode31 |
| 1268 | { |
| 1269 | static constexpr auto L = level::ERR; |
| 1270 | using metadata_types = std::tuple<>; |
| 1271 | }; |
| 1272 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1273 | } // namespace org::open_power::witherspoon::fault |
| 1274 | |
| 1275 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 1276 | namespace org::open_power::Witherspoon::Fault |
| 1277 | { |
| 1278 | using ErrorCode31 = |
| 1279 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode31; |
| 1280 | } |
| 1281 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1282 | |
| 1283 | namespace details |
| 1284 | { |
| 1285 | |
| 1286 | template <> |
| 1287 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1288 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode31> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1289 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1290 | using type = |
| 1291 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode31; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1292 | }; |
| 1293 | |
| 1294 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1295 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1296 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1297 | |
| 1298 | struct ErrorCode32 |
| 1299 | { |
| 1300 | static constexpr auto L = level::ERR; |
| 1301 | using metadata_types = std::tuple<>; |
| 1302 | }; |
| 1303 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1304 | } // namespace org::open_power::witherspoon::fault |
| 1305 | |
| 1306 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 1307 | namespace org::open_power::Witherspoon::Fault |
| 1308 | { |
| 1309 | using ErrorCode32 = |
| 1310 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode32; |
| 1311 | } |
| 1312 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1313 | |
| 1314 | namespace details |
| 1315 | { |
| 1316 | |
| 1317 | template <> |
| 1318 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1319 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode32> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1320 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1321 | using type = |
| 1322 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode32; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1323 | }; |
| 1324 | |
| 1325 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1326 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1327 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1328 | |
| 1329 | struct ErrorCode33 |
| 1330 | { |
| 1331 | static constexpr auto L = level::ERR; |
| 1332 | using metadata_types = std::tuple<>; |
| 1333 | }; |
| 1334 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1335 | } // namespace org::open_power::witherspoon::fault |
| 1336 | |
| 1337 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 1338 | namespace org::open_power::Witherspoon::Fault |
| 1339 | { |
| 1340 | using ErrorCode33 = |
| 1341 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode33; |
| 1342 | } |
| 1343 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1344 | |
| 1345 | namespace details |
| 1346 | { |
| 1347 | |
| 1348 | template <> |
| 1349 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1350 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode33> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1351 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1352 | using type = |
| 1353 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode33; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1354 | }; |
| 1355 | |
| 1356 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1357 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1358 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1359 | |
| 1360 | struct ErrorCode34 |
| 1361 | { |
| 1362 | static constexpr auto L = level::ERR; |
| 1363 | using metadata_types = std::tuple<>; |
| 1364 | }; |
| 1365 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1366 | } // namespace org::open_power::witherspoon::fault |
| 1367 | |
| 1368 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 1369 | namespace org::open_power::Witherspoon::Fault |
| 1370 | { |
| 1371 | using ErrorCode34 = |
| 1372 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode34; |
| 1373 | } |
| 1374 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1375 | |
| 1376 | namespace details |
| 1377 | { |
| 1378 | |
| 1379 | template <> |
| 1380 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1381 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode34> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1382 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1383 | using type = |
| 1384 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode34; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1385 | }; |
| 1386 | |
| 1387 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1388 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1389 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1390 | |
| 1391 | struct ErrorCode35 |
| 1392 | { |
| 1393 | static constexpr auto L = level::ERR; |
| 1394 | using metadata_types = std::tuple<>; |
| 1395 | }; |
| 1396 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1397 | } // namespace org::open_power::witherspoon::fault |
| 1398 | |
| 1399 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 1400 | namespace org::open_power::Witherspoon::Fault |
| 1401 | { |
| 1402 | using ErrorCode35 = |
| 1403 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode35; |
| 1404 | } |
| 1405 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1406 | |
| 1407 | namespace details |
| 1408 | { |
| 1409 | |
| 1410 | template <> |
| 1411 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1412 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode35> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1413 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1414 | using type = |
| 1415 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode35; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1416 | }; |
| 1417 | |
| 1418 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1419 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1420 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1421 | |
| 1422 | struct ErrorCode36 |
| 1423 | { |
| 1424 | static constexpr auto L = level::ERR; |
| 1425 | using metadata_types = std::tuple<>; |
| 1426 | }; |
| 1427 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1428 | } // namespace org::open_power::witherspoon::fault |
| 1429 | |
| 1430 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 1431 | namespace org::open_power::Witherspoon::Fault |
| 1432 | { |
| 1433 | using ErrorCode36 = |
| 1434 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode36; |
| 1435 | } |
| 1436 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1437 | |
| 1438 | namespace details |
| 1439 | { |
| 1440 | |
| 1441 | template <> |
| 1442 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1443 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode36> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1444 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1445 | using type = |
| 1446 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode36; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1447 | }; |
| 1448 | |
| 1449 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1450 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1451 | { |
| 1452 | namespace _PowerSequencerVoltageFault |
| 1453 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1454 | struct RAIL |
| 1455 | { |
| 1456 | /* |
| 1457 | * We can't use -fsanitize=undefined if we declare a |
| 1458 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 1459 | * mako template lookups. |
| 1460 | */ |
| 1461 | static constexpr auto str_short = "RAIL"; |
| 1462 | using type = std::tuple<std::decay_t<decltype("RAIL=%d")>, uint16_t>; |
| 1463 | explicit constexpr RAIL(uint16_t a) : _entry(entry("RAIL=%d", a)){}; |
| 1464 | type _entry; |
| 1465 | }; |
| 1466 | struct RAIL_NAME |
| 1467 | { |
| 1468 | /* |
| 1469 | * We can't use -fsanitize=undefined if we declare a |
| 1470 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 1471 | * mako template lookups. |
| 1472 | */ |
| 1473 | static constexpr auto str_short = "RAIL_NAME"; |
| 1474 | using type = |
| 1475 | std::tuple<std::decay_t<decltype("RAIL_NAME=%s")>, const char*>; |
| 1476 | explicit constexpr RAIL_NAME(const char* a) : |
| 1477 | _entry(entry("RAIL_NAME=%s", a)){}; |
| 1478 | type _entry; |
| 1479 | }; |
| 1480 | struct RAW_STATUS |
| 1481 | { |
| 1482 | /* |
| 1483 | * We can't use -fsanitize=undefined if we declare a |
| 1484 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 1485 | * mako template lookups. |
| 1486 | */ |
| 1487 | static constexpr auto str_short = "RAW_STATUS"; |
| 1488 | using type = |
| 1489 | std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>; |
| 1490 | explicit constexpr RAW_STATUS(const char* a) : |
| 1491 | _entry(entry("RAW_STATUS=%s", a)){}; |
| 1492 | type _entry; |
| 1493 | }; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1494 | } // namespace _PowerSequencerVoltageFault |
| 1495 | |
| 1496 | struct PowerSequencerVoltageFault |
| 1497 | { |
| 1498 | static constexpr auto L = level::ERR; |
| 1499 | using RAIL = _PowerSequencerVoltageFault::RAIL; |
| 1500 | using RAIL_NAME = _PowerSequencerVoltageFault::RAIL_NAME; |
| 1501 | using RAW_STATUS = _PowerSequencerVoltageFault::RAW_STATUS; |
| 1502 | using metadata_types = std::tuple<RAIL, RAIL_NAME, RAW_STATUS>; |
| 1503 | }; |
| 1504 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1505 | } // namespace org::open_power::witherspoon::fault |
| 1506 | |
| 1507 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 1508 | namespace org::open_power::Witherspoon::Fault |
| 1509 | { |
| 1510 | using PowerSequencerVoltageFault = phosphor::logging::org::open_power:: |
| 1511 | witherspoon::fault::PowerSequencerVoltageFault; |
| 1512 | } |
| 1513 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1514 | |
| 1515 | namespace details |
| 1516 | { |
| 1517 | |
| 1518 | template <> |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1519 | struct map_exception_type<sdbusplus::error::org::open_power::witherspoon:: |
| 1520 | fault::PowerSequencerVoltageFault> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1521 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1522 | using type = phosphor::logging::org::open_power::witherspoon::fault:: |
| 1523 | PowerSequencerVoltageFault; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1524 | }; |
| 1525 | |
| 1526 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1527 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1528 | { |
| 1529 | namespace _PowerSequencerPGOODFault |
| 1530 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1531 | struct INPUT_NUM |
| 1532 | { |
| 1533 | /* |
| 1534 | * We can't use -fsanitize=undefined if we declare a |
| 1535 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 1536 | * mako template lookups. |
| 1537 | */ |
| 1538 | static constexpr auto str_short = "INPUT_NUM"; |
| 1539 | using type = std::tuple<std::decay_t<decltype("INPUT_NUM=%d")>, uint16_t>; |
| 1540 | explicit constexpr INPUT_NUM(uint16_t a) : |
| 1541 | _entry(entry("INPUT_NUM=%d", a)){}; |
| 1542 | type _entry; |
| 1543 | }; |
| 1544 | struct INPUT_NAME |
| 1545 | { |
| 1546 | /* |
| 1547 | * We can't use -fsanitize=undefined if we declare a |
| 1548 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 1549 | * mako template lookups. |
| 1550 | */ |
| 1551 | static constexpr auto str_short = "INPUT_NAME"; |
| 1552 | using type = |
| 1553 | std::tuple<std::decay_t<decltype("INPUT_NAME=%s")>, const char*>; |
| 1554 | explicit constexpr INPUT_NAME(const char* a) : |
| 1555 | _entry(entry("INPUT_NAME=%s", a)){}; |
| 1556 | type _entry; |
| 1557 | }; |
| 1558 | struct RAW_STATUS |
| 1559 | { |
| 1560 | /* |
| 1561 | * We can't use -fsanitize=undefined if we declare a |
| 1562 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 1563 | * mako template lookups. |
| 1564 | */ |
| 1565 | static constexpr auto str_short = "RAW_STATUS"; |
| 1566 | using type = |
| 1567 | std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>; |
| 1568 | explicit constexpr RAW_STATUS(const char* a) : |
| 1569 | _entry(entry("RAW_STATUS=%s", a)){}; |
| 1570 | type _entry; |
| 1571 | }; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1572 | } // namespace _PowerSequencerPGOODFault |
| 1573 | |
| 1574 | struct PowerSequencerPGOODFault |
| 1575 | { |
| 1576 | static constexpr auto L = level::ERR; |
| 1577 | using INPUT_NUM = _PowerSequencerPGOODFault::INPUT_NUM; |
| 1578 | using INPUT_NAME = _PowerSequencerPGOODFault::INPUT_NAME; |
| 1579 | using RAW_STATUS = _PowerSequencerPGOODFault::RAW_STATUS; |
| 1580 | using metadata_types = std::tuple<INPUT_NUM, INPUT_NAME, RAW_STATUS>; |
| 1581 | }; |
| 1582 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1583 | } // namespace org::open_power::witherspoon::fault |
| 1584 | |
| 1585 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 1586 | namespace org::open_power::Witherspoon::Fault |
| 1587 | { |
| 1588 | using PowerSequencerPGOODFault = phosphor::logging::org::open_power:: |
| 1589 | witherspoon::fault::PowerSequencerPGOODFault; |
| 1590 | } |
| 1591 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1592 | |
| 1593 | namespace details |
| 1594 | { |
| 1595 | |
| 1596 | template <> |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1597 | struct map_exception_type<sdbusplus::error::org::open_power::witherspoon:: |
| 1598 | fault::PowerSequencerPGOODFault> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1599 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1600 | using type = phosphor::logging::org::open_power::witherspoon::fault:: |
| 1601 | PowerSequencerPGOODFault; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1602 | }; |
| 1603 | |
| 1604 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1605 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1606 | { |
| 1607 | namespace _PowerSequencerFault |
| 1608 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1609 | struct RAW_STATUS |
| 1610 | { |
| 1611 | /* |
| 1612 | * We can't use -fsanitize=undefined if we declare a |
| 1613 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 1614 | * mako template lookups. |
| 1615 | */ |
| 1616 | static constexpr auto str_short = "RAW_STATUS"; |
| 1617 | using type = |
| 1618 | std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>; |
| 1619 | explicit constexpr RAW_STATUS(const char* a) : |
| 1620 | _entry(entry("RAW_STATUS=%s", a)){}; |
| 1621 | type _entry; |
| 1622 | }; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1623 | } // namespace _PowerSequencerFault |
| 1624 | |
| 1625 | struct PowerSequencerFault |
| 1626 | { |
| 1627 | static constexpr auto L = level::ERR; |
| 1628 | using RAW_STATUS = _PowerSequencerFault::RAW_STATUS; |
| 1629 | using metadata_types = std::tuple<RAW_STATUS>; |
| 1630 | }; |
| 1631 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1632 | } // namespace org::open_power::witherspoon::fault |
| 1633 | |
| 1634 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 1635 | namespace org::open_power::Witherspoon::Fault |
| 1636 | { |
| 1637 | using PowerSequencerFault = |
| 1638 | phosphor::logging::org::open_power::witherspoon::fault::PowerSequencerFault; |
| 1639 | } |
| 1640 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1641 | |
| 1642 | namespace details |
| 1643 | { |
| 1644 | |
| 1645 | template <> |
| 1646 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1647 | sdbusplus::error::org::open_power::witherspoon::fault::PowerSequencerFault> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1648 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1649 | using type = phosphor::logging::org::open_power::witherspoon::fault:: |
| 1650 | PowerSequencerFault; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1651 | }; |
| 1652 | |
| 1653 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1654 | namespace xyz::openbmc_project::common::callout |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1655 | { |
| 1656 | namespace _Device |
| 1657 | { |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1658 | struct CALLOUT_ERRNO |
| 1659 | { |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 1660 | /* |
| 1661 | * We can't use -fsanitize=undefined if we declare a |
| 1662 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 1663 | * mako template lookups. |
| 1664 | */ |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1665 | static constexpr auto str_short = "CALLOUT_ERRNO"; |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 1666 | using type = |
| 1667 | std::tuple<std::decay_t<decltype("CALLOUT_ERRNO=%d")>, int32_t>; |
| 1668 | explicit constexpr CALLOUT_ERRNO(int32_t a) : |
| 1669 | _entry(entry("CALLOUT_ERRNO=%d", a)){}; |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1670 | type _entry; |
| 1671 | }; |
| 1672 | struct CALLOUT_DEVICE_PATH |
| 1673 | { |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 1674 | /* |
| 1675 | * We can't use -fsanitize=undefined if we declare a |
| 1676 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 1677 | * mako template lookups. |
| 1678 | */ |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1679 | static constexpr auto str_short = "CALLOUT_DEVICE_PATH"; |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 1680 | using type = std::tuple<std::decay_t<decltype("CALLOUT_DEVICE_PATH=%s")>, |
| 1681 | const char*>; |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 1682 | explicit constexpr CALLOUT_DEVICE_PATH(const char* a) : |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 1683 | _entry(entry("CALLOUT_DEVICE_PATH=%s", a)){}; |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1684 | type _entry; |
| 1685 | }; |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 1686 | } // namespace _Device |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1687 | |
| 1688 | struct Device |
| 1689 | { |
| 1690 | static constexpr auto L = level::ERR; |
| 1691 | using CALLOUT_ERRNO = _Device::CALLOUT_ERRNO; |
| 1692 | using CALLOUT_DEVICE_PATH = _Device::CALLOUT_DEVICE_PATH; |
| 1693 | using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1694 | }; |
| 1695 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1696 | } // namespace xyz::openbmc_project::common::callout |
| 1697 | |
| 1698 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 1699 | namespace xyz::openbmc_project::Common::Callout |
| 1700 | { |
| 1701 | using Device = phosphor::logging::xyz::openbmc_project::common::callout::Device; |
| 1702 | } |
| 1703 | #endif |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1704 | |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1705 | namespace details |
| 1706 | { |
| 1707 | |
| 1708 | template <> |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 1709 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1710 | sdbusplus::error::xyz::openbmc_project::common::callout::Device> |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1711 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1712 | using type = |
| 1713 | phosphor::logging::xyz::openbmc_project::common::callout::Device; |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1714 | }; |
| 1715 | |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 1716 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1717 | namespace xyz::openbmc_project::common::callout |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1718 | { |
| 1719 | namespace _GPIO |
| 1720 | { |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1721 | struct CALLOUT_GPIO_NUM |
| 1722 | { |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 1723 | /* |
| 1724 | * We can't use -fsanitize=undefined if we declare a |
| 1725 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 1726 | * mako template lookups. |
| 1727 | */ |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1728 | static constexpr auto str_short = "CALLOUT_GPIO_NUM"; |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 1729 | using type = |
| 1730 | std::tuple<std::decay_t<decltype("CALLOUT_GPIO_NUM=%u")>, uint32_t>; |
| 1731 | explicit constexpr CALLOUT_GPIO_NUM(uint32_t a) : |
| 1732 | _entry(entry("CALLOUT_GPIO_NUM=%u", a)){}; |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1733 | type _entry; |
| 1734 | }; |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 1735 | } // namespace _GPIO |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1736 | |
| 1737 | struct GPIO |
| 1738 | { |
| 1739 | static constexpr auto L = level::ERR; |
| 1740 | using CALLOUT_GPIO_NUM = _GPIO::CALLOUT_GPIO_NUM; |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1741 | using CALLOUT_ERRNO = phosphor::logging::xyz::openbmc_project::common:: |
| 1742 | callout::Device::CALLOUT_ERRNO; |
| 1743 | using CALLOUT_DEVICE_PATH = phosphor::logging::xyz::openbmc_project:: |
| 1744 | common::callout::Device::CALLOUT_DEVICE_PATH; |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 1745 | using metadata_types = |
| 1746 | std::tuple<CALLOUT_GPIO_NUM, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1747 | }; |
| 1748 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1749 | } // namespace xyz::openbmc_project::common::callout |
| 1750 | |
| 1751 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 1752 | namespace xyz::openbmc_project::Common::Callout |
| 1753 | { |
| 1754 | using GPIO = phosphor::logging::xyz::openbmc_project::common::callout::GPIO; |
| 1755 | } |
| 1756 | #endif |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1757 | |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1758 | namespace details |
| 1759 | { |
| 1760 | |
| 1761 | template <> |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 1762 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1763 | sdbusplus::error::xyz::openbmc_project::common::callout::GPIO> |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1764 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1765 | using type = phosphor::logging::xyz::openbmc_project::common::callout::GPIO; |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1766 | }; |
| 1767 | |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 1768 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1769 | namespace xyz::openbmc_project::common::callout |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1770 | { |
| 1771 | namespace _IIC |
| 1772 | { |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1773 | struct CALLOUT_IIC_BUS |
| 1774 | { |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 1775 | /* |
| 1776 | * We can't use -fsanitize=undefined if we declare a |
| 1777 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 1778 | * mako template lookups. |
| 1779 | */ |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1780 | static constexpr auto str_short = "CALLOUT_IIC_BUS"; |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 1781 | using type = |
| 1782 | std::tuple<std::decay_t<decltype("CALLOUT_IIC_BUS=%s")>, const char*>; |
| 1783 | explicit constexpr CALLOUT_IIC_BUS(const char* a) : |
| 1784 | _entry(entry("CALLOUT_IIC_BUS=%s", a)){}; |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1785 | type _entry; |
| 1786 | }; |
| 1787 | struct CALLOUT_IIC_ADDR |
| 1788 | { |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 1789 | /* |
| 1790 | * We can't use -fsanitize=undefined if we declare a |
| 1791 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 1792 | * mako template lookups. |
| 1793 | */ |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1794 | static constexpr auto str_short = "CALLOUT_IIC_ADDR"; |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 1795 | using type = |
| 1796 | std::tuple<std::decay_t<decltype("CALLOUT_IIC_ADDR=0x%hx")>, uint16_t>; |
| 1797 | explicit constexpr CALLOUT_IIC_ADDR(uint16_t a) : |
| 1798 | _entry(entry("CALLOUT_IIC_ADDR=0x%hx", a)){}; |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1799 | type _entry; |
| 1800 | }; |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 1801 | } // namespace _IIC |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1802 | |
| 1803 | struct IIC |
| 1804 | { |
| 1805 | static constexpr auto L = level::ERR; |
| 1806 | using CALLOUT_IIC_BUS = _IIC::CALLOUT_IIC_BUS; |
| 1807 | using CALLOUT_IIC_ADDR = _IIC::CALLOUT_IIC_ADDR; |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1808 | using CALLOUT_ERRNO = phosphor::logging::xyz::openbmc_project::common:: |
| 1809 | callout::Device::CALLOUT_ERRNO; |
| 1810 | using CALLOUT_DEVICE_PATH = phosphor::logging::xyz::openbmc_project:: |
| 1811 | common::callout::Device::CALLOUT_DEVICE_PATH; |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 1812 | using metadata_types = std::tuple<CALLOUT_IIC_BUS, CALLOUT_IIC_ADDR, |
| 1813 | CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1814 | }; |
| 1815 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1816 | } // namespace xyz::openbmc_project::common::callout |
| 1817 | |
| 1818 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 1819 | namespace xyz::openbmc_project::Common::Callout |
| 1820 | { |
| 1821 | using IIC = phosphor::logging::xyz::openbmc_project::common::callout::IIC; |
| 1822 | } |
| 1823 | #endif |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1824 | |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1825 | namespace details |
| 1826 | { |
| 1827 | |
| 1828 | template <> |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 1829 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1830 | sdbusplus::error::xyz::openbmc_project::common::callout::IIC> |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1831 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1832 | using type = phosphor::logging::xyz::openbmc_project::common::callout::IIC; |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1833 | }; |
| 1834 | |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 1835 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1836 | namespace xyz::openbmc_project::common::callout |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1837 | { |
| 1838 | namespace _Inventory |
| 1839 | { |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1840 | struct CALLOUT_INVENTORY_PATH |
| 1841 | { |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 1842 | /* |
| 1843 | * We can't use -fsanitize=undefined if we declare a |
| 1844 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 1845 | * mako template lookups. |
| 1846 | */ |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1847 | static constexpr auto str_short = "CALLOUT_INVENTORY_PATH"; |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 1848 | using type = std::tuple<std::decay_t<decltype("CALLOUT_INVENTORY_PATH=%s")>, |
| 1849 | const char*>; |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 1850 | explicit constexpr CALLOUT_INVENTORY_PATH(const char* a) : |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 1851 | _entry(entry("CALLOUT_INVENTORY_PATH=%s", a)){}; |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1852 | type _entry; |
| 1853 | }; |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 1854 | } // namespace _Inventory |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1855 | |
| 1856 | struct Inventory |
| 1857 | { |
| 1858 | static constexpr auto L = level::ERR; |
| 1859 | using CALLOUT_INVENTORY_PATH = _Inventory::CALLOUT_INVENTORY_PATH; |
| 1860 | using metadata_types = std::tuple<CALLOUT_INVENTORY_PATH>; |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1861 | }; |
| 1862 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1863 | } // namespace xyz::openbmc_project::common::callout |
| 1864 | |
| 1865 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 1866 | namespace xyz::openbmc_project::Common::Callout |
| 1867 | { |
| 1868 | using Inventory = |
| 1869 | phosphor::logging::xyz::openbmc_project::common::callout::Inventory; |
| 1870 | } |
| 1871 | #endif |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1872 | |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1873 | namespace details |
| 1874 | { |
| 1875 | |
| 1876 | template <> |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 1877 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1878 | sdbusplus::error::xyz::openbmc_project::common::callout::Inventory> |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1879 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1880 | using type = |
| 1881 | phosphor::logging::xyz::openbmc_project::common::callout::Inventory; |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1882 | }; |
| 1883 | |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 1884 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1885 | namespace xyz::openbmc_project::common::callout |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1886 | { |
| 1887 | namespace _IPMISensor |
| 1888 | { |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1889 | struct CALLOUT_IPMI_SENSOR_NUM |
| 1890 | { |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 1891 | /* |
| 1892 | * We can't use -fsanitize=undefined if we declare a |
| 1893 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 1894 | * mako template lookups. |
| 1895 | */ |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1896 | static constexpr auto str_short = "CALLOUT_IPMI_SENSOR_NUM"; |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 1897 | using type = |
| 1898 | std::tuple<std::decay_t<decltype("CALLOUT_IPMI_SENSOR_NUM=%u")>, |
| 1899 | uint32_t>; |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 1900 | explicit constexpr CALLOUT_IPMI_SENSOR_NUM(uint32_t a) : |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 1901 | _entry(entry("CALLOUT_IPMI_SENSOR_NUM=%u", a)){}; |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1902 | type _entry; |
| 1903 | }; |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 1904 | } // namespace _IPMISensor |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1905 | |
| 1906 | struct IPMISensor |
| 1907 | { |
| 1908 | static constexpr auto L = level::ERR; |
| 1909 | using CALLOUT_IPMI_SENSOR_NUM = _IPMISensor::CALLOUT_IPMI_SENSOR_NUM; |
| 1910 | using metadata_types = std::tuple<CALLOUT_IPMI_SENSOR_NUM>; |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1911 | }; |
| 1912 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1913 | } // namespace xyz::openbmc_project::common::callout |
| 1914 | |
| 1915 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 1916 | namespace xyz::openbmc_project::Common::Callout |
| 1917 | { |
| 1918 | using IPMISensor = |
| 1919 | phosphor::logging::xyz::openbmc_project::common::callout::IPMISensor; |
| 1920 | } |
| 1921 | #endif |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1922 | |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1923 | namespace details |
| 1924 | { |
| 1925 | |
| 1926 | template <> |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 1927 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1928 | sdbusplus::error::xyz::openbmc_project::common::callout::IPMISensor> |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1929 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1930 | using type = |
| 1931 | phosphor::logging::xyz::openbmc_project::common::callout::IPMISensor; |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1932 | }; |
| 1933 | |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 1934 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1935 | namespace org::open_power::witherspoon::fault |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1936 | { |
Brandon Wyman | 253dc9b | 2017-08-12 13:45:52 -0500 | [diff] [blame] | 1937 | namespace _PowerSupplyInputFault |
| 1938 | { |
Brandon Wyman | 253dc9b | 2017-08-12 13:45:52 -0500 | [diff] [blame] | 1939 | struct RAW_STATUS |
| 1940 | { |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 1941 | /* |
| 1942 | * We can't use -fsanitize=undefined if we declare a |
| 1943 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 1944 | * mako template lookups. |
| 1945 | */ |
Brandon Wyman | 253dc9b | 2017-08-12 13:45:52 -0500 | [diff] [blame] | 1946 | static constexpr auto str_short = "RAW_STATUS"; |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 1947 | using type = |
| 1948 | std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>; |
| 1949 | explicit constexpr RAW_STATUS(const char* a) : |
| 1950 | _entry(entry("RAW_STATUS=%s", a)){}; |
Brandon Wyman | 253dc9b | 2017-08-12 13:45:52 -0500 | [diff] [blame] | 1951 | type _entry; |
| 1952 | }; |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 1953 | } // namespace _PowerSupplyInputFault |
Brandon Wyman | 253dc9b | 2017-08-12 13:45:52 -0500 | [diff] [blame] | 1954 | |
| 1955 | struct PowerSupplyInputFault |
| 1956 | { |
| 1957 | static constexpr auto L = level::ERR; |
| 1958 | using RAW_STATUS = _PowerSupplyInputFault::RAW_STATUS; |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1959 | using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project:: |
| 1960 | common::callout::Inventory::CALLOUT_INVENTORY_PATH; |
Brandon Wyman | ea358c9 | 2017-10-27 17:34:07 -0500 | [diff] [blame] | 1961 | using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; |
Brandon Wyman | 253dc9b | 2017-08-12 13:45:52 -0500 | [diff] [blame] | 1962 | }; |
| 1963 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1964 | } // namespace org::open_power::witherspoon::fault |
| 1965 | |
| 1966 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 1967 | namespace org::open_power::Witherspoon::Fault |
| 1968 | { |
| 1969 | using PowerSupplyInputFault = phosphor::logging::org::open_power::witherspoon:: |
| 1970 | fault::PowerSupplyInputFault; |
| 1971 | } |
| 1972 | #endif |
Brandon Wyman | 253dc9b | 2017-08-12 13:45:52 -0500 | [diff] [blame] | 1973 | |
Brandon Wyman | 253dc9b | 2017-08-12 13:45:52 -0500 | [diff] [blame] | 1974 | namespace details |
| 1975 | { |
| 1976 | |
| 1977 | template <> |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1978 | struct map_exception_type<sdbusplus::error::org::open_power::witherspoon:: |
| 1979 | fault::PowerSupplyInputFault> |
Brandon Wyman | 253dc9b | 2017-08-12 13:45:52 -0500 | [diff] [blame] | 1980 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1981 | using type = phosphor::logging::org::open_power::witherspoon::fault:: |
| 1982 | PowerSupplyInputFault; |
Brandon Wyman | 253dc9b | 2017-08-12 13:45:52 -0500 | [diff] [blame] | 1983 | }; |
| 1984 | |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 1985 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1986 | namespace org::open_power::witherspoon::fault |
Brandon Wyman | 253dc9b | 2017-08-12 13:45:52 -0500 | [diff] [blame] | 1987 | { |
Brandon Wyman | 764c797 | 2017-08-22 17:05:36 -0500 | [diff] [blame] | 1988 | namespace _PowerSupplyShouldBeOn |
| 1989 | { |
Brandon Wyman | 764c797 | 2017-08-22 17:05:36 -0500 | [diff] [blame] | 1990 | struct RAW_STATUS |
| 1991 | { |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 1992 | /* |
| 1993 | * We can't use -fsanitize=undefined if we declare a |
| 1994 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 1995 | * mako template lookups. |
| 1996 | */ |
Brandon Wyman | 764c797 | 2017-08-22 17:05:36 -0500 | [diff] [blame] | 1997 | static constexpr auto str_short = "RAW_STATUS"; |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 1998 | using type = |
| 1999 | std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>; |
| 2000 | explicit constexpr RAW_STATUS(const char* a) : |
| 2001 | _entry(entry("RAW_STATUS=%s", a)){}; |
Brandon Wyman | 764c797 | 2017-08-22 17:05:36 -0500 | [diff] [blame] | 2002 | type _entry; |
| 2003 | }; |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 2004 | } // namespace _PowerSupplyShouldBeOn |
Brandon Wyman | 764c797 | 2017-08-22 17:05:36 -0500 | [diff] [blame] | 2005 | |
| 2006 | struct PowerSupplyShouldBeOn |
| 2007 | { |
| 2008 | static constexpr auto L = level::ERR; |
| 2009 | using RAW_STATUS = _PowerSupplyShouldBeOn::RAW_STATUS; |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2010 | using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project:: |
| 2011 | common::callout::Inventory::CALLOUT_INVENTORY_PATH; |
Brandon Wyman | 764c797 | 2017-08-22 17:05:36 -0500 | [diff] [blame] | 2012 | using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; |
Brandon Wyman | 764c797 | 2017-08-22 17:05:36 -0500 | [diff] [blame] | 2013 | }; |
| 2014 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2015 | } // namespace org::open_power::witherspoon::fault |
| 2016 | |
| 2017 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 2018 | namespace org::open_power::Witherspoon::Fault |
| 2019 | { |
| 2020 | using PowerSupplyShouldBeOn = phosphor::logging::org::open_power::witherspoon:: |
| 2021 | fault::PowerSupplyShouldBeOn; |
| 2022 | } |
| 2023 | #endif |
Brandon Wyman | 764c797 | 2017-08-22 17:05:36 -0500 | [diff] [blame] | 2024 | |
Brandon Wyman | 764c797 | 2017-08-22 17:05:36 -0500 | [diff] [blame] | 2025 | namespace details |
| 2026 | { |
| 2027 | |
| 2028 | template <> |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2029 | struct map_exception_type<sdbusplus::error::org::open_power::witherspoon:: |
| 2030 | fault::PowerSupplyShouldBeOn> |
Brandon Wyman | 764c797 | 2017-08-22 17:05:36 -0500 | [diff] [blame] | 2031 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2032 | using type = phosphor::logging::org::open_power::witherspoon::fault:: |
| 2033 | PowerSupplyShouldBeOn; |
Brandon Wyman | 764c797 | 2017-08-22 17:05:36 -0500 | [diff] [blame] | 2034 | }; |
| 2035 | |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 2036 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2037 | namespace org::open_power::witherspoon::fault |
Brandon Wyman | 764c797 | 2017-08-22 17:05:36 -0500 | [diff] [blame] | 2038 | { |
Brandon Wyman | b165c25 | 2017-08-25 18:59:54 -0500 | [diff] [blame] | 2039 | namespace _PowerSupplyOutputOvercurrent |
| 2040 | { |
Brandon Wyman | b165c25 | 2017-08-25 18:59:54 -0500 | [diff] [blame] | 2041 | struct RAW_STATUS |
| 2042 | { |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 2043 | /* |
| 2044 | * We can't use -fsanitize=undefined if we declare a |
| 2045 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 2046 | * mako template lookups. |
| 2047 | */ |
Brandon Wyman | b165c25 | 2017-08-25 18:59:54 -0500 | [diff] [blame] | 2048 | static constexpr auto str_short = "RAW_STATUS"; |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 2049 | using type = |
| 2050 | std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>; |
| 2051 | explicit constexpr RAW_STATUS(const char* a) : |
| 2052 | _entry(entry("RAW_STATUS=%s", a)){}; |
Brandon Wyman | b165c25 | 2017-08-25 18:59:54 -0500 | [diff] [blame] | 2053 | type _entry; |
| 2054 | }; |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 2055 | } // namespace _PowerSupplyOutputOvercurrent |
Brandon Wyman | b165c25 | 2017-08-25 18:59:54 -0500 | [diff] [blame] | 2056 | |
| 2057 | struct PowerSupplyOutputOvercurrent |
| 2058 | { |
| 2059 | static constexpr auto L = level::ERR; |
| 2060 | using RAW_STATUS = _PowerSupplyOutputOvercurrent::RAW_STATUS; |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2061 | using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project:: |
| 2062 | common::callout::Inventory::CALLOUT_INVENTORY_PATH; |
Brandon Wyman | b165c25 | 2017-08-25 18:59:54 -0500 | [diff] [blame] | 2063 | using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; |
Brandon Wyman | b165c25 | 2017-08-25 18:59:54 -0500 | [diff] [blame] | 2064 | }; |
| 2065 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2066 | } // namespace org::open_power::witherspoon::fault |
| 2067 | |
| 2068 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 2069 | namespace org::open_power::Witherspoon::Fault |
| 2070 | { |
| 2071 | using PowerSupplyOutputOvercurrent = phosphor::logging::org::open_power:: |
| 2072 | witherspoon::fault::PowerSupplyOutputOvercurrent; |
| 2073 | } |
| 2074 | #endif |
Brandon Wyman | b165c25 | 2017-08-25 18:59:54 -0500 | [diff] [blame] | 2075 | |
Brandon Wyman | b165c25 | 2017-08-25 18:59:54 -0500 | [diff] [blame] | 2076 | namespace details |
| 2077 | { |
| 2078 | |
| 2079 | template <> |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2080 | struct map_exception_type<sdbusplus::error::org::open_power::witherspoon:: |
| 2081 | fault::PowerSupplyOutputOvercurrent> |
Brandon Wyman | b165c25 | 2017-08-25 18:59:54 -0500 | [diff] [blame] | 2082 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2083 | using type = phosphor::logging::org::open_power::witherspoon::fault:: |
| 2084 | PowerSupplyOutputOvercurrent; |
Brandon Wyman | b165c25 | 2017-08-25 18:59:54 -0500 | [diff] [blame] | 2085 | }; |
| 2086 | |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 2087 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2088 | namespace org::open_power::witherspoon::fault |
Brandon Wyman | b165c25 | 2017-08-25 18:59:54 -0500 | [diff] [blame] | 2089 | { |
Brandon Wyman | ab05c07 | 2017-08-30 18:26:41 -0500 | [diff] [blame] | 2090 | namespace _PowerSupplyOutputOvervoltage |
| 2091 | { |
Brandon Wyman | ab05c07 | 2017-08-30 18:26:41 -0500 | [diff] [blame] | 2092 | struct RAW_STATUS |
| 2093 | { |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 2094 | /* |
| 2095 | * We can't use -fsanitize=undefined if we declare a |
| 2096 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 2097 | * mako template lookups. |
| 2098 | */ |
Brandon Wyman | ab05c07 | 2017-08-30 18:26:41 -0500 | [diff] [blame] | 2099 | static constexpr auto str_short = "RAW_STATUS"; |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 2100 | using type = |
| 2101 | std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>; |
| 2102 | explicit constexpr RAW_STATUS(const char* a) : |
| 2103 | _entry(entry("RAW_STATUS=%s", a)){}; |
Brandon Wyman | ab05c07 | 2017-08-30 18:26:41 -0500 | [diff] [blame] | 2104 | type _entry; |
| 2105 | }; |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 2106 | } // namespace _PowerSupplyOutputOvervoltage |
Brandon Wyman | ab05c07 | 2017-08-30 18:26:41 -0500 | [diff] [blame] | 2107 | |
| 2108 | struct PowerSupplyOutputOvervoltage |
| 2109 | { |
| 2110 | static constexpr auto L = level::ERR; |
| 2111 | using RAW_STATUS = _PowerSupplyOutputOvervoltage::RAW_STATUS; |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2112 | using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project:: |
| 2113 | common::callout::Inventory::CALLOUT_INVENTORY_PATH; |
Brandon Wyman | ab05c07 | 2017-08-30 18:26:41 -0500 | [diff] [blame] | 2114 | using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; |
Brandon Wyman | ab05c07 | 2017-08-30 18:26:41 -0500 | [diff] [blame] | 2115 | }; |
| 2116 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2117 | } // namespace org::open_power::witherspoon::fault |
| 2118 | |
| 2119 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 2120 | namespace org::open_power::Witherspoon::Fault |
| 2121 | { |
| 2122 | using PowerSupplyOutputOvervoltage = phosphor::logging::org::open_power:: |
| 2123 | witherspoon::fault::PowerSupplyOutputOvervoltage; |
| 2124 | } |
| 2125 | #endif |
Brandon Wyman | ab05c07 | 2017-08-30 18:26:41 -0500 | [diff] [blame] | 2126 | |
Brandon Wyman | ab05c07 | 2017-08-30 18:26:41 -0500 | [diff] [blame] | 2127 | namespace details |
| 2128 | { |
| 2129 | |
| 2130 | template <> |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2131 | struct map_exception_type<sdbusplus::error::org::open_power::witherspoon:: |
| 2132 | fault::PowerSupplyOutputOvervoltage> |
Brandon Wyman | ab05c07 | 2017-08-30 18:26:41 -0500 | [diff] [blame] | 2133 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2134 | using type = phosphor::logging::org::open_power::witherspoon::fault:: |
| 2135 | PowerSupplyOutputOvervoltage; |
Brandon Wyman | ab05c07 | 2017-08-30 18:26:41 -0500 | [diff] [blame] | 2136 | }; |
| 2137 | |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 2138 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2139 | namespace org::open_power::witherspoon::fault |
Brandon Wyman | ab05c07 | 2017-08-30 18:26:41 -0500 | [diff] [blame] | 2140 | { |
Brandon Wyman | 12661f1 | 2017-08-31 15:28:21 -0500 | [diff] [blame] | 2141 | namespace _PowerSupplyFanFault |
| 2142 | { |
Brandon Wyman | 12661f1 | 2017-08-31 15:28:21 -0500 | [diff] [blame] | 2143 | struct RAW_STATUS |
| 2144 | { |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 2145 | /* |
| 2146 | * We can't use -fsanitize=undefined if we declare a |
| 2147 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 2148 | * mako template lookups. |
| 2149 | */ |
Brandon Wyman | 12661f1 | 2017-08-31 15:28:21 -0500 | [diff] [blame] | 2150 | static constexpr auto str_short = "RAW_STATUS"; |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 2151 | using type = |
| 2152 | std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>; |
| 2153 | explicit constexpr RAW_STATUS(const char* a) : |
| 2154 | _entry(entry("RAW_STATUS=%s", a)){}; |
Brandon Wyman | 12661f1 | 2017-08-31 15:28:21 -0500 | [diff] [blame] | 2155 | type _entry; |
| 2156 | }; |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 2157 | } // namespace _PowerSupplyFanFault |
Brandon Wyman | 12661f1 | 2017-08-31 15:28:21 -0500 | [diff] [blame] | 2158 | |
| 2159 | struct PowerSupplyFanFault |
| 2160 | { |
| 2161 | static constexpr auto L = level::ERR; |
| 2162 | using RAW_STATUS = _PowerSupplyFanFault::RAW_STATUS; |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2163 | using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project:: |
| 2164 | common::callout::Inventory::CALLOUT_INVENTORY_PATH; |
Brandon Wyman | 12661f1 | 2017-08-31 15:28:21 -0500 | [diff] [blame] | 2165 | using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; |
Brandon Wyman | 12661f1 | 2017-08-31 15:28:21 -0500 | [diff] [blame] | 2166 | }; |
| 2167 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2168 | } // namespace org::open_power::witherspoon::fault |
| 2169 | |
| 2170 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 2171 | namespace org::open_power::Witherspoon::Fault |
| 2172 | { |
| 2173 | using PowerSupplyFanFault = |
| 2174 | phosphor::logging::org::open_power::witherspoon::fault::PowerSupplyFanFault; |
| 2175 | } |
| 2176 | #endif |
Brandon Wyman | 12661f1 | 2017-08-31 15:28:21 -0500 | [diff] [blame] | 2177 | |
Brandon Wyman | 12661f1 | 2017-08-31 15:28:21 -0500 | [diff] [blame] | 2178 | namespace details |
| 2179 | { |
| 2180 | |
| 2181 | template <> |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 2182 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2183 | sdbusplus::error::org::open_power::witherspoon::fault::PowerSupplyFanFault> |
Brandon Wyman | 12661f1 | 2017-08-31 15:28:21 -0500 | [diff] [blame] | 2184 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2185 | using type = phosphor::logging::org::open_power::witherspoon::fault:: |
| 2186 | PowerSupplyFanFault; |
Brandon Wyman | 12661f1 | 2017-08-31 15:28:21 -0500 | [diff] [blame] | 2187 | }; |
| 2188 | |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 2189 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2190 | namespace org::open_power::witherspoon::fault |
Brandon Wyman | 12661f1 | 2017-08-31 15:28:21 -0500 | [diff] [blame] | 2191 | { |
Brandon Wyman | 875b363 | 2017-09-13 18:46:03 -0500 | [diff] [blame] | 2192 | namespace _PowerSupplyTemperatureFault |
| 2193 | { |
Brandon Wyman | 875b363 | 2017-09-13 18:46:03 -0500 | [diff] [blame] | 2194 | struct RAW_STATUS |
| 2195 | { |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 2196 | /* |
| 2197 | * We can't use -fsanitize=undefined if we declare a |
| 2198 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 2199 | * mako template lookups. |
| 2200 | */ |
Brandon Wyman | 875b363 | 2017-09-13 18:46:03 -0500 | [diff] [blame] | 2201 | static constexpr auto str_short = "RAW_STATUS"; |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 2202 | using type = |
| 2203 | std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>; |
| 2204 | explicit constexpr RAW_STATUS(const char* a) : |
| 2205 | _entry(entry("RAW_STATUS=%s", a)){}; |
Brandon Wyman | 875b363 | 2017-09-13 18:46:03 -0500 | [diff] [blame] | 2206 | type _entry; |
| 2207 | }; |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 2208 | } // namespace _PowerSupplyTemperatureFault |
Brandon Wyman | 875b363 | 2017-09-13 18:46:03 -0500 | [diff] [blame] | 2209 | |
| 2210 | struct PowerSupplyTemperatureFault |
| 2211 | { |
| 2212 | static constexpr auto L = level::ERR; |
| 2213 | using RAW_STATUS = _PowerSupplyTemperatureFault::RAW_STATUS; |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2214 | using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project:: |
| 2215 | common::callout::Inventory::CALLOUT_INVENTORY_PATH; |
Brandon Wyman | 875b363 | 2017-09-13 18:46:03 -0500 | [diff] [blame] | 2216 | using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; |
Brandon Wyman | 875b363 | 2017-09-13 18:46:03 -0500 | [diff] [blame] | 2217 | }; |
| 2218 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2219 | } // namespace org::open_power::witherspoon::fault |
| 2220 | |
| 2221 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 2222 | namespace org::open_power::Witherspoon::Fault |
| 2223 | { |
| 2224 | using PowerSupplyTemperatureFault = phosphor::logging::org::open_power:: |
| 2225 | witherspoon::fault::PowerSupplyTemperatureFault; |
| 2226 | } |
| 2227 | #endif |
Brandon Wyman | 875b363 | 2017-09-13 18:46:03 -0500 | [diff] [blame] | 2228 | |
Brandon Wyman | 875b363 | 2017-09-13 18:46:03 -0500 | [diff] [blame] | 2229 | namespace details |
| 2230 | { |
| 2231 | |
| 2232 | template <> |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2233 | struct map_exception_type<sdbusplus::error::org::open_power::witherspoon:: |
| 2234 | fault::PowerSupplyTemperatureFault> |
Brandon Wyman | 875b363 | 2017-09-13 18:46:03 -0500 | [diff] [blame] | 2235 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2236 | using type = phosphor::logging::org::open_power::witherspoon::fault:: |
| 2237 | PowerSupplyTemperatureFault; |
Brandon Wyman | 875b363 | 2017-09-13 18:46:03 -0500 | [diff] [blame] | 2238 | }; |
| 2239 | |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 2240 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2241 | namespace org::open_power::witherspoon::fault |
Brandon Wyman | 875b363 | 2017-09-13 18:46:03 -0500 | [diff] [blame] | 2242 | { |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 2243 | namespace _GPUPowerFault |
| 2244 | { |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 2245 | struct RAW_STATUS |
| 2246 | { |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 2247 | /* |
| 2248 | * We can't use -fsanitize=undefined if we declare a |
| 2249 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 2250 | * mako template lookups. |
| 2251 | */ |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 2252 | static constexpr auto str_short = "RAW_STATUS"; |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 2253 | using type = |
| 2254 | std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>; |
| 2255 | explicit constexpr RAW_STATUS(const char* a) : |
| 2256 | _entry(entry("RAW_STATUS=%s", a)){}; |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 2257 | type _entry; |
| 2258 | }; |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 2259 | } // namespace _GPUPowerFault |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 2260 | |
| 2261 | struct GPUPowerFault |
| 2262 | { |
| 2263 | static constexpr auto L = level::ERR; |
| 2264 | using RAW_STATUS = _GPUPowerFault::RAW_STATUS; |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2265 | using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project:: |
| 2266 | common::callout::Inventory::CALLOUT_INVENTORY_PATH; |
Matt Spinler | 0e45ced | 2018-02-12 14:36:07 -0600 | [diff] [blame] | 2267 | using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 2268 | }; |
| 2269 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2270 | } // namespace org::open_power::witherspoon::fault |
| 2271 | |
| 2272 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 2273 | namespace org::open_power::Witherspoon::Fault |
| 2274 | { |
| 2275 | using GPUPowerFault = |
| 2276 | phosphor::logging::org::open_power::witherspoon::fault::GPUPowerFault; |
| 2277 | } |
| 2278 | #endif |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 2279 | |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 2280 | namespace details |
| 2281 | { |
| 2282 | |
| 2283 | template <> |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 2284 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2285 | sdbusplus::error::org::open_power::witherspoon::fault::GPUPowerFault> |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 2286 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2287 | using type = |
| 2288 | phosphor::logging::org::open_power::witherspoon::fault::GPUPowerFault; |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 2289 | }; |
| 2290 | |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 2291 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2292 | namespace org::open_power::witherspoon::fault |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 2293 | { |
| 2294 | namespace _GPUOverTemp |
| 2295 | { |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 2296 | struct RAW_STATUS |
| 2297 | { |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 2298 | /* |
| 2299 | * We can't use -fsanitize=undefined if we declare a |
| 2300 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 2301 | * mako template lookups. |
| 2302 | */ |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 2303 | static constexpr auto str_short = "RAW_STATUS"; |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 2304 | using type = |
| 2305 | std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>; |
| 2306 | explicit constexpr RAW_STATUS(const char* a) : |
| 2307 | _entry(entry("RAW_STATUS=%s", a)){}; |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 2308 | type _entry; |
| 2309 | }; |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 2310 | } // namespace _GPUOverTemp |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 2311 | |
| 2312 | struct GPUOverTemp |
| 2313 | { |
| 2314 | static constexpr auto L = level::ERR; |
| 2315 | using RAW_STATUS = _GPUOverTemp::RAW_STATUS; |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2316 | using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project:: |
| 2317 | common::callout::Inventory::CALLOUT_INVENTORY_PATH; |
Matt Spinler | 0e45ced | 2018-02-12 14:36:07 -0600 | [diff] [blame] | 2318 | using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 2319 | }; |
| 2320 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2321 | } // namespace org::open_power::witherspoon::fault |
| 2322 | |
| 2323 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 2324 | namespace org::open_power::Witherspoon::Fault |
| 2325 | { |
| 2326 | using GPUOverTemp = |
| 2327 | phosphor::logging::org::open_power::witherspoon::fault::GPUOverTemp; |
| 2328 | } |
| 2329 | #endif |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 2330 | |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 2331 | namespace details |
| 2332 | { |
| 2333 | |
| 2334 | template <> |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 2335 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2336 | sdbusplus::error::org::open_power::witherspoon::fault::GPUOverTemp> |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 2337 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2338 | using type = |
| 2339 | phosphor::logging::org::open_power::witherspoon::fault::GPUOverTemp; |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 2340 | }; |
| 2341 | |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 2342 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2343 | namespace org::open_power::witherspoon::fault |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 2344 | { |
| 2345 | namespace _MemoryPowerFault |
| 2346 | { |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 2347 | struct RAW_STATUS |
| 2348 | { |
| 2349 | /* |
| 2350 | * We can't use -fsanitize=undefined if we declare a |
| 2351 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 2352 | * mako template lookups. |
| 2353 | */ |
| 2354 | static constexpr auto str_short = "RAW_STATUS"; |
| 2355 | using type = |
| 2356 | std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>; |
| 2357 | explicit constexpr RAW_STATUS(const char* a) : |
| 2358 | _entry(entry("RAW_STATUS=%s", a)){}; |
| 2359 | type _entry; |
| 2360 | }; |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 2361 | } // namespace _MemoryPowerFault |
| 2362 | |
| 2363 | struct MemoryPowerFault |
| 2364 | { |
| 2365 | static constexpr auto L = level::ERR; |
| 2366 | using RAW_STATUS = _MemoryPowerFault::RAW_STATUS; |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2367 | using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project:: |
| 2368 | common::callout::Inventory::CALLOUT_INVENTORY_PATH; |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 2369 | using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; |
| 2370 | }; |
| 2371 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2372 | } // namespace org::open_power::witherspoon::fault |
| 2373 | |
| 2374 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 2375 | namespace org::open_power::Witherspoon::Fault |
| 2376 | { |
| 2377 | using MemoryPowerFault = |
| 2378 | phosphor::logging::org::open_power::witherspoon::fault::MemoryPowerFault; |
| 2379 | } |
| 2380 | #endif |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 2381 | |
| 2382 | namespace details |
| 2383 | { |
| 2384 | |
| 2385 | template <> |
| 2386 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2387 | sdbusplus::error::org::open_power::witherspoon::fault::MemoryPowerFault> |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 2388 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2389 | using type = phosphor::logging::org::open_power::witherspoon::fault:: |
| 2390 | MemoryPowerFault; |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 2391 | }; |
| 2392 | |
| 2393 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2394 | } // namespace phosphor::logging |