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 | |
| 5 | #include <string> |
| 6 | #include <tuple> |
| 7 | #include <type_traits> |
| 8 | #include <sdbusplus/exception.hpp> |
| 9 | #include <phosphor-logging/log.hpp> |
| 10 | #include <phosphor-logging/elog.hpp> |
| 11 | |
| 12 | namespace sdbusplus |
| 13 | { |
| 14 | namespace xyz |
| 15 | { |
| 16 | namespace openbmc_project |
| 17 | { |
| 18 | namespace Power |
| 19 | { |
| 20 | namespace Fault |
| 21 | { |
| 22 | namespace Error |
| 23 | { |
Matt Spinler | facfa90 | 2017-08-14 13:43:36 -0500 | [diff] [blame] | 24 | struct PowerOnFailure; |
| 25 | } // namespace Error |
| 26 | } // namespace Fault |
| 27 | } // namespace Power |
| 28 | } // namespace openbmc_project |
| 29 | } // namespace xyz |
| 30 | } // namespace sdbusplus |
| 31 | |
| 32 | namespace sdbusplus |
| 33 | { |
| 34 | namespace xyz |
| 35 | { |
| 36 | namespace openbmc_project |
| 37 | { |
| 38 | namespace Power |
| 39 | { |
| 40 | namespace Fault |
| 41 | { |
| 42 | namespace Error |
| 43 | { |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame^] | 44 | struct PowerSequencerFault; |
| 45 | } // namespace Error |
| 46 | } // namespace Fault |
| 47 | } // namespace Power |
| 48 | } // namespace openbmc_project |
| 49 | } // namespace xyz |
| 50 | } // namespace sdbusplus |
| 51 | |
| 52 | namespace sdbusplus |
| 53 | { |
| 54 | namespace xyz |
| 55 | { |
| 56 | namespace openbmc_project |
| 57 | { |
| 58 | namespace Power |
| 59 | { |
| 60 | namespace Fault |
| 61 | { |
| 62 | namespace Error |
| 63 | { |
Matt Spinler | ac4b52f | 2017-08-21 14:50:58 -0500 | [diff] [blame] | 64 | struct PowerSequencerPGOODFault; |
| 65 | } // namespace Error |
| 66 | } // namespace Fault |
| 67 | } // namespace Power |
| 68 | } // namespace openbmc_project |
| 69 | } // namespace xyz |
| 70 | } // namespace sdbusplus |
| 71 | |
| 72 | namespace sdbusplus |
| 73 | { |
| 74 | namespace xyz |
| 75 | { |
| 76 | namespace openbmc_project |
| 77 | { |
| 78 | namespace Power |
| 79 | { |
| 80 | namespace Fault |
| 81 | { |
| 82 | namespace Error |
| 83 | { |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame^] | 84 | struct GPUPowerFault; |
Matt Spinler | ac4b52f | 2017-08-21 14:50:58 -0500 | [diff] [blame] | 85 | } // namespace Error |
| 86 | } // namespace Fault |
| 87 | } // namespace Power |
| 88 | } // namespace openbmc_project |
| 89 | } // namespace xyz |
| 90 | } // namespace sdbusplus |
| 91 | |
| 92 | namespace sdbusplus |
| 93 | { |
| 94 | namespace xyz |
| 95 | { |
| 96 | namespace openbmc_project |
| 97 | { |
| 98 | namespace Power |
| 99 | { |
| 100 | namespace Fault |
| 101 | { |
| 102 | namespace Error |
| 103 | { |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame^] | 104 | struct GPUOverTemp; |
| 105 | } // namespace Error |
| 106 | } // namespace Fault |
| 107 | } // namespace Power |
| 108 | } // namespace openbmc_project |
| 109 | } // namespace xyz |
| 110 | } // namespace sdbusplus |
| 111 | |
| 112 | namespace sdbusplus |
| 113 | { |
| 114 | namespace xyz |
| 115 | { |
| 116 | namespace openbmc_project |
| 117 | { |
| 118 | namespace Power |
| 119 | { |
| 120 | namespace Fault |
| 121 | { |
| 122 | namespace Error |
| 123 | { |
| 124 | struct PowerSequencerVoltageFault; |
Matt Spinler | ac4b52f | 2017-08-21 14:50:58 -0500 | [diff] [blame] | 125 | } // namespace Error |
| 126 | } // namespace Fault |
| 127 | } // namespace Power |
| 128 | } // namespace openbmc_project |
| 129 | } // namespace xyz |
| 130 | } // namespace sdbusplus |
| 131 | |
| 132 | namespace sdbusplus |
| 133 | { |
| 134 | namespace xyz |
| 135 | { |
| 136 | namespace openbmc_project |
| 137 | { |
| 138 | namespace Power |
| 139 | { |
| 140 | namespace Fault |
| 141 | { |
| 142 | namespace Error |
| 143 | { |
Matt Spinler | 84cd0a5 | 2017-08-04 08:53:30 -0500 | [diff] [blame] | 144 | struct Shutdown; |
| 145 | } // namespace Error |
| 146 | } // namespace Fault |
| 147 | } // namespace Power |
| 148 | } // namespace openbmc_project |
| 149 | } // namespace xyz |
| 150 | } // namespace sdbusplus |
| 151 | |
| 152 | |
| 153 | namespace phosphor |
| 154 | { |
| 155 | |
| 156 | namespace logging |
| 157 | { |
| 158 | |
| 159 | namespace xyz |
| 160 | { |
| 161 | namespace openbmc_project |
| 162 | { |
| 163 | namespace Power |
| 164 | { |
| 165 | namespace Fault |
| 166 | { |
| 167 | namespace _Shutdown |
| 168 | { |
| 169 | |
| 170 | |
| 171 | } // namespace _Shutdown |
| 172 | |
| 173 | struct Shutdown |
| 174 | { |
| 175 | static constexpr auto L = level::ERR; |
| 176 | using metadata_types = std::tuple<>; |
| 177 | |
| 178 | }; |
| 179 | |
| 180 | } // namespace Fault |
| 181 | } // namespace Power |
| 182 | } // namespace openbmc_project |
| 183 | } // namespace xyz |
| 184 | |
| 185 | |
| 186 | namespace details |
| 187 | { |
| 188 | |
| 189 | template <> |
| 190 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::Shutdown> |
| 191 | { |
| 192 | using type = xyz::openbmc_project::Power::Fault::Shutdown; |
| 193 | }; |
| 194 | |
| 195 | } |
| 196 | |
Matt Spinler | facfa90 | 2017-08-14 13:43:36 -0500 | [diff] [blame] | 197 | namespace xyz |
| 198 | { |
| 199 | namespace openbmc_project |
| 200 | { |
| 201 | namespace Power |
| 202 | { |
| 203 | namespace Fault |
| 204 | { |
| 205 | namespace _PowerOnFailure |
| 206 | { |
| 207 | |
| 208 | |
| 209 | } // namespace _PowerOnFailure |
| 210 | |
| 211 | struct PowerOnFailure |
| 212 | { |
| 213 | static constexpr auto L = level::ERR; |
| 214 | using metadata_types = std::tuple<>; |
| 215 | |
| 216 | }; |
| 217 | |
| 218 | } // namespace Fault |
| 219 | } // namespace Power |
| 220 | } // namespace openbmc_project |
| 221 | } // namespace xyz |
| 222 | |
| 223 | |
| 224 | namespace details |
| 225 | { |
| 226 | |
| 227 | template <> |
| 228 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerOnFailure> |
| 229 | { |
| 230 | using type = xyz::openbmc_project::Power::Fault::PowerOnFailure; |
| 231 | }; |
| 232 | |
| 233 | } |
| 234 | |
Matt Spinler | ac4b52f | 2017-08-21 14:50:58 -0500 | [diff] [blame] | 235 | namespace xyz |
| 236 | { |
| 237 | namespace openbmc_project |
| 238 | { |
| 239 | namespace Power |
| 240 | { |
| 241 | namespace Fault |
| 242 | { |
| 243 | namespace _PowerSequencerVoltageFault |
| 244 | { |
| 245 | |
| 246 | struct RAIL |
| 247 | { |
| 248 | static constexpr auto str = "RAIL=%d"; |
| 249 | static constexpr auto str_short = "RAIL"; |
| 250 | using type = std::tuple<std::decay_t<decltype(str)>,uint16_t>; |
| 251 | explicit constexpr RAIL(uint16_t a) : _entry(entry(str, a)) {}; |
| 252 | type _entry; |
| 253 | }; |
| 254 | struct RAIL_NAME |
| 255 | { |
| 256 | static constexpr auto str = "RAIL_NAME=%s"; |
| 257 | static constexpr auto str_short = "RAIL_NAME"; |
| 258 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 259 | explicit constexpr RAIL_NAME(const char* a) : _entry(entry(str, a)) {}; |
| 260 | type _entry; |
| 261 | }; |
| 262 | struct RAW_STATUS |
| 263 | { |
| 264 | static constexpr auto str = "RAW_STATUS=%s"; |
| 265 | static constexpr auto str_short = "RAW_STATUS"; |
| 266 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 267 | explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; |
| 268 | type _entry; |
| 269 | }; |
| 270 | |
| 271 | } // namespace _PowerSequencerVoltageFault |
| 272 | |
| 273 | struct PowerSequencerVoltageFault |
| 274 | { |
| 275 | static constexpr auto L = level::ERR; |
| 276 | using RAIL = _PowerSequencerVoltageFault::RAIL; |
| 277 | using RAIL_NAME = _PowerSequencerVoltageFault::RAIL_NAME; |
| 278 | using RAW_STATUS = _PowerSequencerVoltageFault::RAW_STATUS; |
| 279 | using metadata_types = std::tuple<RAIL, RAIL_NAME, RAW_STATUS>; |
| 280 | |
| 281 | }; |
| 282 | |
| 283 | } // namespace Fault |
| 284 | } // namespace Power |
| 285 | } // namespace openbmc_project |
| 286 | } // namespace xyz |
| 287 | |
| 288 | |
| 289 | namespace details |
| 290 | { |
| 291 | |
| 292 | template <> |
| 293 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSequencerVoltageFault> |
| 294 | { |
| 295 | using type = xyz::openbmc_project::Power::Fault::PowerSequencerVoltageFault; |
| 296 | }; |
| 297 | |
| 298 | } |
| 299 | |
| 300 | namespace xyz |
| 301 | { |
| 302 | namespace openbmc_project |
| 303 | { |
| 304 | namespace Power |
| 305 | { |
| 306 | namespace Fault |
| 307 | { |
| 308 | namespace _PowerSequencerPGOODFault |
| 309 | { |
| 310 | |
| 311 | struct INPUT_NUM |
| 312 | { |
| 313 | static constexpr auto str = "INPUT_NUM=%d"; |
| 314 | static constexpr auto str_short = "INPUT_NUM"; |
| 315 | using type = std::tuple<std::decay_t<decltype(str)>,uint16_t>; |
| 316 | explicit constexpr INPUT_NUM(uint16_t a) : _entry(entry(str, a)) {}; |
| 317 | type _entry; |
| 318 | }; |
| 319 | struct INPUT_NAME |
| 320 | { |
| 321 | static constexpr auto str = "INPUT_NAME=%s"; |
| 322 | static constexpr auto str_short = "INPUT_NAME"; |
| 323 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 324 | explicit constexpr INPUT_NAME(const char* a) : _entry(entry(str, a)) {}; |
| 325 | type _entry; |
| 326 | }; |
| 327 | struct RAW_STATUS |
| 328 | { |
| 329 | static constexpr auto str = "RAW_STATUS=%s"; |
| 330 | static constexpr auto str_short = "RAW_STATUS"; |
| 331 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 332 | explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; |
| 333 | type _entry; |
| 334 | }; |
| 335 | |
| 336 | } // namespace _PowerSequencerPGOODFault |
| 337 | |
| 338 | struct PowerSequencerPGOODFault |
| 339 | { |
| 340 | static constexpr auto L = level::ERR; |
| 341 | using INPUT_NUM = _PowerSequencerPGOODFault::INPUT_NUM; |
| 342 | using INPUT_NAME = _PowerSequencerPGOODFault::INPUT_NAME; |
| 343 | using RAW_STATUS = _PowerSequencerPGOODFault::RAW_STATUS; |
| 344 | using metadata_types = std::tuple<INPUT_NUM, INPUT_NAME, RAW_STATUS>; |
| 345 | |
| 346 | }; |
| 347 | |
| 348 | } // namespace Fault |
| 349 | } // namespace Power |
| 350 | } // namespace openbmc_project |
| 351 | } // namespace xyz |
| 352 | |
| 353 | |
| 354 | namespace details |
| 355 | { |
| 356 | |
| 357 | template <> |
| 358 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSequencerPGOODFault> |
| 359 | { |
| 360 | using type = xyz::openbmc_project::Power::Fault::PowerSequencerPGOODFault; |
| 361 | }; |
| 362 | |
| 363 | } |
| 364 | |
| 365 | namespace xyz |
| 366 | { |
| 367 | namespace openbmc_project |
| 368 | { |
| 369 | namespace Power |
| 370 | { |
| 371 | namespace Fault |
| 372 | { |
| 373 | namespace _PowerSequencerFault |
| 374 | { |
| 375 | |
| 376 | struct RAW_STATUS |
| 377 | { |
| 378 | static constexpr auto str = "RAW_STATUS=%s"; |
| 379 | static constexpr auto str_short = "RAW_STATUS"; |
| 380 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 381 | explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; |
| 382 | type _entry; |
| 383 | }; |
| 384 | |
| 385 | } // namespace _PowerSequencerFault |
| 386 | |
| 387 | struct PowerSequencerFault |
| 388 | { |
| 389 | static constexpr auto L = level::ERR; |
| 390 | using RAW_STATUS = _PowerSequencerFault::RAW_STATUS; |
| 391 | using metadata_types = std::tuple<RAW_STATUS>; |
| 392 | |
| 393 | }; |
| 394 | |
| 395 | } // namespace Fault |
| 396 | } // namespace Power |
| 397 | } // namespace openbmc_project |
| 398 | } // namespace xyz |
| 399 | |
| 400 | |
| 401 | namespace details |
| 402 | { |
| 403 | |
| 404 | template <> |
| 405 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSequencerFault> |
| 406 | { |
| 407 | using type = xyz::openbmc_project::Power::Fault::PowerSequencerFault; |
| 408 | }; |
| 409 | |
| 410 | } |
| 411 | |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame^] | 412 | namespace xyz |
| 413 | { |
| 414 | namespace openbmc_project |
| 415 | { |
| 416 | namespace Power |
| 417 | { |
| 418 | namespace Fault |
| 419 | { |
| 420 | namespace _GPUPowerFault |
| 421 | { |
| 422 | |
| 423 | struct RAW_STATUS |
| 424 | { |
| 425 | static constexpr auto str = "RAW_STATUS=%s"; |
| 426 | static constexpr auto str_short = "RAW_STATUS"; |
| 427 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 428 | explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; |
| 429 | type _entry; |
| 430 | }; |
| 431 | struct GPU |
| 432 | { |
| 433 | static constexpr auto str = "GPU=%s"; |
| 434 | static constexpr auto str_short = "GPU"; |
| 435 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 436 | explicit constexpr GPU(const char* a) : _entry(entry(str, a)) {}; |
| 437 | type _entry; |
| 438 | }; |
| 439 | |
| 440 | } // namespace _GPUPowerFault |
| 441 | |
| 442 | struct GPUPowerFault |
| 443 | { |
| 444 | static constexpr auto L = level::ERR; |
| 445 | using RAW_STATUS = _GPUPowerFault::RAW_STATUS; |
| 446 | using GPU = _GPUPowerFault::GPU; |
| 447 | using metadata_types = std::tuple<RAW_STATUS, GPU>; |
| 448 | |
| 449 | }; |
| 450 | |
| 451 | } // namespace Fault |
| 452 | } // namespace Power |
| 453 | } // namespace openbmc_project |
| 454 | } // namespace xyz |
| 455 | |
| 456 | |
| 457 | namespace details |
| 458 | { |
| 459 | |
| 460 | template <> |
| 461 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::GPUPowerFault> |
| 462 | { |
| 463 | using type = xyz::openbmc_project::Power::Fault::GPUPowerFault; |
| 464 | }; |
| 465 | |
| 466 | } |
| 467 | |
| 468 | namespace xyz |
| 469 | { |
| 470 | namespace openbmc_project |
| 471 | { |
| 472 | namespace Power |
| 473 | { |
| 474 | namespace Fault |
| 475 | { |
| 476 | namespace _GPUOverTemp |
| 477 | { |
| 478 | |
| 479 | struct RAW_STATUS |
| 480 | { |
| 481 | static constexpr auto str = "RAW_STATUS=%s"; |
| 482 | static constexpr auto str_short = "RAW_STATUS"; |
| 483 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 484 | explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; |
| 485 | type _entry; |
| 486 | }; |
| 487 | struct GPU |
| 488 | { |
| 489 | static constexpr auto str = "GPU=%s"; |
| 490 | static constexpr auto str_short = "GPU"; |
| 491 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 492 | explicit constexpr GPU(const char* a) : _entry(entry(str, a)) {}; |
| 493 | type _entry; |
| 494 | }; |
| 495 | |
| 496 | } // namespace _GPUOverTemp |
| 497 | |
| 498 | struct GPUOverTemp |
| 499 | { |
| 500 | static constexpr auto L = level::ERR; |
| 501 | using RAW_STATUS = _GPUOverTemp::RAW_STATUS; |
| 502 | using GPU = _GPUOverTemp::GPU; |
| 503 | using metadata_types = std::tuple<RAW_STATUS, GPU>; |
| 504 | |
| 505 | }; |
| 506 | |
| 507 | } // namespace Fault |
| 508 | } // namespace Power |
| 509 | } // namespace openbmc_project |
| 510 | } // namespace xyz |
| 511 | |
| 512 | |
| 513 | namespace details |
| 514 | { |
| 515 | |
| 516 | template <> |
| 517 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::GPUOverTemp> |
| 518 | { |
| 519 | using type = xyz::openbmc_project::Power::Fault::GPUOverTemp; |
| 520 | }; |
| 521 | |
| 522 | } |
| 523 | |
Matt Spinler | 84cd0a5 | 2017-08-04 08:53:30 -0500 | [diff] [blame] | 524 | |
| 525 | } // namespace logging |
| 526 | |
| 527 | } // namespace phosphor |