1 // This file was autogenerated. Do not edit! 2 // See elog-gen.py for more details 3 #pragma once 4 5 #include <phosphor-logging/elog.hpp> 6 #include <phosphor-logging/log.hpp> 7 #include <sdbusplus/exception.hpp> 8 9 #include <string> 10 #include <tuple> 11 #include <type_traits> 12 13 namespace sdbusplus::error::org::open_power::witherspoon::fault 14 { 15 struct GPUOverTemp; 16 } // namespace sdbusplus::error::org::open_power::witherspoon::fault 17 namespace sdbusplus::error::org::open_power::witherspoon::fault 18 { 19 struct GPUPowerFault; 20 } // namespace sdbusplus::error::org::open_power::witherspoon::fault 21 namespace sdbusplus::error::org::open_power::witherspoon::fault 22 { 23 struct MemoryPowerFault; 24 } // namespace sdbusplus::error::org::open_power::witherspoon::fault 25 namespace sdbusplus::error::org::open_power::witherspoon::fault 26 { 27 struct PowerOnFailure; 28 } // namespace sdbusplus::error::org::open_power::witherspoon::fault 29 namespace sdbusplus::error::org::open_power::witherspoon::fault 30 { 31 struct PowerSequencerFault; 32 } // namespace sdbusplus::error::org::open_power::witherspoon::fault 33 namespace sdbusplus::error::org::open_power::witherspoon::fault 34 { 35 struct PowerSequencerPGOODFault; 36 } // namespace sdbusplus::error::org::open_power::witherspoon::fault 37 namespace sdbusplus::error::org::open_power::witherspoon::fault 38 { 39 struct PowerSequencerVoltageFault; 40 } // namespace sdbusplus::error::org::open_power::witherspoon::fault 41 namespace sdbusplus::error::org::open_power::witherspoon::fault 42 { 43 struct PowerSupplyFanFault; 44 } // namespace sdbusplus::error::org::open_power::witherspoon::fault 45 namespace sdbusplus::error::org::open_power::witherspoon::fault 46 { 47 struct PowerSupplyInputFault; 48 } // namespace sdbusplus::error::org::open_power::witherspoon::fault 49 namespace sdbusplus::error::org::open_power::witherspoon::fault 50 { 51 struct PowerSupplyOutputOvercurrent; 52 } // namespace sdbusplus::error::org::open_power::witherspoon::fault 53 namespace sdbusplus::error::org::open_power::witherspoon::fault 54 { 55 struct PowerSupplyOutputOvervoltage; 56 } // namespace sdbusplus::error::org::open_power::witherspoon::fault 57 namespace sdbusplus::error::org::open_power::witherspoon::fault 58 { 59 struct PowerSupplyShouldBeOn; 60 } // namespace sdbusplus::error::org::open_power::witherspoon::fault 61 namespace sdbusplus::error::org::open_power::witherspoon::fault 62 { 63 struct PowerSupplyTemperatureFault; 64 } // namespace sdbusplus::error::org::open_power::witherspoon::fault 65 namespace sdbusplus::error::org::open_power::witherspoon::fault 66 { 67 struct Shutdown; 68 } // namespace sdbusplus::error::org::open_power::witherspoon::fault 69 namespace sdbusplus::error::xyz::openbmc_project::common::callout 70 { 71 struct Device; 72 } // namespace sdbusplus::error::xyz::openbmc_project::common::callout 73 namespace sdbusplus::error::xyz::openbmc_project::common::callout 74 { 75 struct GPIO; 76 } // namespace sdbusplus::error::xyz::openbmc_project::common::callout 77 namespace sdbusplus::error::xyz::openbmc_project::common::callout 78 { 79 struct IIC; 80 } // namespace sdbusplus::error::xyz::openbmc_project::common::callout 81 namespace sdbusplus::error::xyz::openbmc_project::common::callout 82 { 83 struct IPMISensor; 84 } // namespace sdbusplus::error::xyz::openbmc_project::common::callout 85 namespace sdbusplus::error::xyz::openbmc_project::common::callout 86 { 87 struct Inventory; 88 } // namespace sdbusplus::error::xyz::openbmc_project::common::callout 89 90 namespace phosphor::logging 91 { 92 93 namespace org::open_power::witherspoon::fault 94 { 95 96 struct Shutdown 97 { 98 static constexpr auto L = level::ERR; 99 using metadata_types = std::tuple<>; 100 }; 101 102 } // namespace org::open_power::witherspoon::fault 103 104 #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE 105 namespace org::open_power::Witherspoon::Fault 106 { 107 using Shutdown = 108 phosphor::logging::org::open_power::witherspoon::fault::Shutdown; 109 } 110 #endif 111 112 namespace details 113 { 114 115 template <> 116 struct map_exception_type< 117 sdbusplus::error::org::open_power::witherspoon::fault::Shutdown> 118 { 119 using type = 120 phosphor::logging::org::open_power::witherspoon::fault::Shutdown; 121 }; 122 123 } // namespace details 124 namespace org::open_power::witherspoon::fault 125 { 126 127 struct PowerOnFailure 128 { 129 static constexpr auto L = level::ERR; 130 using metadata_types = std::tuple<>; 131 }; 132 133 } // namespace org::open_power::witherspoon::fault 134 135 #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE 136 namespace org::open_power::Witherspoon::Fault 137 { 138 using PowerOnFailure = 139 phosphor::logging::org::open_power::witherspoon::fault::PowerOnFailure; 140 } 141 #endif 142 143 namespace details 144 { 145 146 template <> 147 struct map_exception_type< 148 sdbusplus::error::org::open_power::witherspoon::fault::PowerOnFailure> 149 { 150 using type = 151 phosphor::logging::org::open_power::witherspoon::fault::PowerOnFailure; 152 }; 153 154 } // namespace details 155 namespace org::open_power::witherspoon::fault 156 { 157 namespace _PowerSequencerVoltageFault 158 { 159 struct RAIL 160 { 161 /* 162 * We can't use -fsanitize=undefined if we declare a 163 * 'static constexpr auto str' member, so don't. Instead, open-code the 164 * mako template lookups. 165 */ 166 static constexpr auto str_short = "RAIL"; 167 using type = std::tuple<std::decay_t<decltype("RAIL=%d")>, uint16_t>; 168 explicit constexpr RAIL(uint16_t a) : _entry(entry("RAIL=%d", a)) {}; 169 type _entry; 170 }; 171 struct RAIL_NAME 172 { 173 /* 174 * We can't use -fsanitize=undefined if we declare a 175 * 'static constexpr auto str' member, so don't. Instead, open-code the 176 * mako template lookups. 177 */ 178 static constexpr auto str_short = "RAIL_NAME"; 179 using type = 180 std::tuple<std::decay_t<decltype("RAIL_NAME=%s")>, const char*>; 181 explicit constexpr RAIL_NAME(const char* a) : 182 _entry(entry("RAIL_NAME=%s", a)) {}; 183 type _entry; 184 }; 185 struct RAW_STATUS 186 { 187 /* 188 * We can't use -fsanitize=undefined if we declare a 189 * 'static constexpr auto str' member, so don't. Instead, open-code the 190 * mako template lookups. 191 */ 192 static constexpr auto str_short = "RAW_STATUS"; 193 using type = 194 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>; 195 explicit constexpr RAW_STATUS(const char* a) : 196 _entry(entry("RAW_STATUS=%s", a)) {}; 197 type _entry; 198 }; 199 } // namespace _PowerSequencerVoltageFault 200 201 struct PowerSequencerVoltageFault 202 { 203 static constexpr auto L = level::ERR; 204 using RAIL = _PowerSequencerVoltageFault::RAIL; 205 using RAIL_NAME = _PowerSequencerVoltageFault::RAIL_NAME; 206 using RAW_STATUS = _PowerSequencerVoltageFault::RAW_STATUS; 207 using metadata_types = std::tuple<RAIL, RAIL_NAME, RAW_STATUS>; 208 }; 209 210 } // namespace org::open_power::witherspoon::fault 211 212 #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE 213 namespace org::open_power::Witherspoon::Fault 214 { 215 using PowerSequencerVoltageFault = phosphor::logging::org::open_power:: 216 witherspoon::fault::PowerSequencerVoltageFault; 217 } 218 #endif 219 220 namespace details 221 { 222 223 template <> 224 struct map_exception_type<sdbusplus::error::org::open_power::witherspoon:: 225 fault::PowerSequencerVoltageFault> 226 { 227 using type = phosphor::logging::org::open_power::witherspoon::fault:: 228 PowerSequencerVoltageFault; 229 }; 230 231 } // namespace details 232 namespace org::open_power::witherspoon::fault 233 { 234 namespace _PowerSequencerPGOODFault 235 { 236 struct INPUT_NUM 237 { 238 /* 239 * We can't use -fsanitize=undefined if we declare a 240 * 'static constexpr auto str' member, so don't. Instead, open-code the 241 * mako template lookups. 242 */ 243 static constexpr auto str_short = "INPUT_NUM"; 244 using type = std::tuple<std::decay_t<decltype("INPUT_NUM=%d")>, uint16_t>; 245 explicit constexpr INPUT_NUM(uint16_t a) : 246 _entry(entry("INPUT_NUM=%d", a)) {}; 247 type _entry; 248 }; 249 struct INPUT_NAME 250 { 251 /* 252 * We can't use -fsanitize=undefined if we declare a 253 * 'static constexpr auto str' member, so don't. Instead, open-code the 254 * mako template lookups. 255 */ 256 static constexpr auto str_short = "INPUT_NAME"; 257 using type = 258 std::tuple<std::decay_t<decltype("INPUT_NAME=%s")>, const char*>; 259 explicit constexpr INPUT_NAME(const char* a) : 260 _entry(entry("INPUT_NAME=%s", a)) {}; 261 type _entry; 262 }; 263 struct RAW_STATUS 264 { 265 /* 266 * We can't use -fsanitize=undefined if we declare a 267 * 'static constexpr auto str' member, so don't. Instead, open-code the 268 * mako template lookups. 269 */ 270 static constexpr auto str_short = "RAW_STATUS"; 271 using type = 272 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>; 273 explicit constexpr RAW_STATUS(const char* a) : 274 _entry(entry("RAW_STATUS=%s", a)) {}; 275 type _entry; 276 }; 277 } // namespace _PowerSequencerPGOODFault 278 279 struct PowerSequencerPGOODFault 280 { 281 static constexpr auto L = level::ERR; 282 using INPUT_NUM = _PowerSequencerPGOODFault::INPUT_NUM; 283 using INPUT_NAME = _PowerSequencerPGOODFault::INPUT_NAME; 284 using RAW_STATUS = _PowerSequencerPGOODFault::RAW_STATUS; 285 using metadata_types = std::tuple<INPUT_NUM, INPUT_NAME, RAW_STATUS>; 286 }; 287 288 } // namespace org::open_power::witherspoon::fault 289 290 #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE 291 namespace org::open_power::Witherspoon::Fault 292 { 293 using PowerSequencerPGOODFault = phosphor::logging::org::open_power:: 294 witherspoon::fault::PowerSequencerPGOODFault; 295 } 296 #endif 297 298 namespace details 299 { 300 301 template <> 302 struct map_exception_type<sdbusplus::error::org::open_power::witherspoon:: 303 fault::PowerSequencerPGOODFault> 304 { 305 using type = phosphor::logging::org::open_power::witherspoon::fault:: 306 PowerSequencerPGOODFault; 307 }; 308 309 } // namespace details 310 namespace org::open_power::witherspoon::fault 311 { 312 namespace _PowerSequencerFault 313 { 314 struct RAW_STATUS 315 { 316 /* 317 * We can't use -fsanitize=undefined if we declare a 318 * 'static constexpr auto str' member, so don't. Instead, open-code the 319 * mako template lookups. 320 */ 321 static constexpr auto str_short = "RAW_STATUS"; 322 using type = 323 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>; 324 explicit constexpr RAW_STATUS(const char* a) : 325 _entry(entry("RAW_STATUS=%s", a)) {}; 326 type _entry; 327 }; 328 } // namespace _PowerSequencerFault 329 330 struct PowerSequencerFault 331 { 332 static constexpr auto L = level::ERR; 333 using RAW_STATUS = _PowerSequencerFault::RAW_STATUS; 334 using metadata_types = std::tuple<RAW_STATUS>; 335 }; 336 337 } // namespace org::open_power::witherspoon::fault 338 339 #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE 340 namespace org::open_power::Witherspoon::Fault 341 { 342 using PowerSequencerFault = 343 phosphor::logging::org::open_power::witherspoon::fault::PowerSequencerFault; 344 } 345 #endif 346 347 namespace details 348 { 349 350 template <> 351 struct map_exception_type< 352 sdbusplus::error::org::open_power::witherspoon::fault::PowerSequencerFault> 353 { 354 using type = phosphor::logging::org::open_power::witherspoon::fault:: 355 PowerSequencerFault; 356 }; 357 358 } // namespace details 359 namespace xyz::openbmc_project::common::callout 360 { 361 namespace _Device 362 { 363 struct CALLOUT_ERRNO 364 { 365 /* 366 * We can't use -fsanitize=undefined if we declare a 367 * 'static constexpr auto str' member, so don't. Instead, open-code the 368 * mako template lookups. 369 */ 370 static constexpr auto str_short = "CALLOUT_ERRNO"; 371 using type = 372 std::tuple<std::decay_t<decltype("CALLOUT_ERRNO=%d")>, int32_t>; 373 explicit constexpr CALLOUT_ERRNO(int32_t a) : 374 _entry(entry("CALLOUT_ERRNO=%d", a)) {}; 375 type _entry; 376 }; 377 struct CALLOUT_DEVICE_PATH 378 { 379 /* 380 * We can't use -fsanitize=undefined if we declare a 381 * 'static constexpr auto str' member, so don't. Instead, open-code the 382 * mako template lookups. 383 */ 384 static constexpr auto str_short = "CALLOUT_DEVICE_PATH"; 385 using type = std::tuple<std::decay_t<decltype("CALLOUT_DEVICE_PATH=%s")>, 386 const char*>; 387 explicit constexpr CALLOUT_DEVICE_PATH(const char* a) : 388 _entry(entry("CALLOUT_DEVICE_PATH=%s", a)) {}; 389 type _entry; 390 }; 391 } // namespace _Device 392 393 struct Device 394 { 395 static constexpr auto L = level::ERR; 396 using CALLOUT_ERRNO = _Device::CALLOUT_ERRNO; 397 using CALLOUT_DEVICE_PATH = _Device::CALLOUT_DEVICE_PATH; 398 using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; 399 }; 400 401 } // namespace xyz::openbmc_project::common::callout 402 403 #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE 404 namespace xyz::openbmc_project::Common::Callout 405 { 406 using Device = phosphor::logging::xyz::openbmc_project::common::callout::Device; 407 } 408 #endif 409 410 namespace details 411 { 412 413 template <> 414 struct map_exception_type< 415 sdbusplus::error::xyz::openbmc_project::common::callout::Device> 416 { 417 using type = 418 phosphor::logging::xyz::openbmc_project::common::callout::Device; 419 }; 420 421 } // namespace details 422 namespace xyz::openbmc_project::common::callout 423 { 424 namespace _GPIO 425 { 426 struct CALLOUT_GPIO_NUM 427 { 428 /* 429 * We can't use -fsanitize=undefined if we declare a 430 * 'static constexpr auto str' member, so don't. Instead, open-code the 431 * mako template lookups. 432 */ 433 static constexpr auto str_short = "CALLOUT_GPIO_NUM"; 434 using type = 435 std::tuple<std::decay_t<decltype("CALLOUT_GPIO_NUM=%u")>, uint32_t>; 436 explicit constexpr CALLOUT_GPIO_NUM(uint32_t a) : 437 _entry(entry("CALLOUT_GPIO_NUM=%u", a)) {}; 438 type _entry; 439 }; 440 } // namespace _GPIO 441 442 struct GPIO 443 { 444 static constexpr auto L = level::ERR; 445 using CALLOUT_GPIO_NUM = _GPIO::CALLOUT_GPIO_NUM; 446 using CALLOUT_ERRNO = phosphor::logging::xyz::openbmc_project::common:: 447 callout::Device::CALLOUT_ERRNO; 448 using CALLOUT_DEVICE_PATH = phosphor::logging::xyz::openbmc_project:: 449 common::callout::Device::CALLOUT_DEVICE_PATH; 450 using metadata_types = 451 std::tuple<CALLOUT_GPIO_NUM, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; 452 }; 453 454 } // namespace xyz::openbmc_project::common::callout 455 456 #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE 457 namespace xyz::openbmc_project::Common::Callout 458 { 459 using GPIO = phosphor::logging::xyz::openbmc_project::common::callout::GPIO; 460 } 461 #endif 462 463 namespace details 464 { 465 466 template <> 467 struct map_exception_type< 468 sdbusplus::error::xyz::openbmc_project::common::callout::GPIO> 469 { 470 using type = phosphor::logging::xyz::openbmc_project::common::callout::GPIO; 471 }; 472 473 } // namespace details 474 namespace xyz::openbmc_project::common::callout 475 { 476 namespace _IIC 477 { 478 struct CALLOUT_IIC_BUS 479 { 480 /* 481 * We can't use -fsanitize=undefined if we declare a 482 * 'static constexpr auto str' member, so don't. Instead, open-code the 483 * mako template lookups. 484 */ 485 static constexpr auto str_short = "CALLOUT_IIC_BUS"; 486 using type = 487 std::tuple<std::decay_t<decltype("CALLOUT_IIC_BUS=%s")>, const char*>; 488 explicit constexpr CALLOUT_IIC_BUS(const char* a) : 489 _entry(entry("CALLOUT_IIC_BUS=%s", a)) {}; 490 type _entry; 491 }; 492 struct CALLOUT_IIC_ADDR 493 { 494 /* 495 * We can't use -fsanitize=undefined if we declare a 496 * 'static constexpr auto str' member, so don't. Instead, open-code the 497 * mako template lookups. 498 */ 499 static constexpr auto str_short = "CALLOUT_IIC_ADDR"; 500 using type = 501 std::tuple<std::decay_t<decltype("CALLOUT_IIC_ADDR=0x%hx")>, uint16_t>; 502 explicit constexpr CALLOUT_IIC_ADDR(uint16_t a) : 503 _entry(entry("CALLOUT_IIC_ADDR=0x%hx", a)) {}; 504 type _entry; 505 }; 506 } // namespace _IIC 507 508 struct IIC 509 { 510 static constexpr auto L = level::ERR; 511 using CALLOUT_IIC_BUS = _IIC::CALLOUT_IIC_BUS; 512 using CALLOUT_IIC_ADDR = _IIC::CALLOUT_IIC_ADDR; 513 using CALLOUT_ERRNO = phosphor::logging::xyz::openbmc_project::common:: 514 callout::Device::CALLOUT_ERRNO; 515 using CALLOUT_DEVICE_PATH = phosphor::logging::xyz::openbmc_project:: 516 common::callout::Device::CALLOUT_DEVICE_PATH; 517 using metadata_types = std::tuple<CALLOUT_IIC_BUS, CALLOUT_IIC_ADDR, 518 CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; 519 }; 520 521 } // namespace xyz::openbmc_project::common::callout 522 523 #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE 524 namespace xyz::openbmc_project::Common::Callout 525 { 526 using IIC = phosphor::logging::xyz::openbmc_project::common::callout::IIC; 527 } 528 #endif 529 530 namespace details 531 { 532 533 template <> 534 struct map_exception_type< 535 sdbusplus::error::xyz::openbmc_project::common::callout::IIC> 536 { 537 using type = phosphor::logging::xyz::openbmc_project::common::callout::IIC; 538 }; 539 540 } // namespace details 541 namespace xyz::openbmc_project::common::callout 542 { 543 namespace _Inventory 544 { 545 struct CALLOUT_INVENTORY_PATH 546 { 547 /* 548 * We can't use -fsanitize=undefined if we declare a 549 * 'static constexpr auto str' member, so don't. Instead, open-code the 550 * mako template lookups. 551 */ 552 static constexpr auto str_short = "CALLOUT_INVENTORY_PATH"; 553 using type = std::tuple<std::decay_t<decltype("CALLOUT_INVENTORY_PATH=%s")>, 554 const char*>; 555 explicit constexpr CALLOUT_INVENTORY_PATH(const char* a) : 556 _entry(entry("CALLOUT_INVENTORY_PATH=%s", a)) {}; 557 type _entry; 558 }; 559 } // namespace _Inventory 560 561 struct Inventory 562 { 563 static constexpr auto L = level::ERR; 564 using CALLOUT_INVENTORY_PATH = _Inventory::CALLOUT_INVENTORY_PATH; 565 using metadata_types = std::tuple<CALLOUT_INVENTORY_PATH>; 566 }; 567 568 } // namespace xyz::openbmc_project::common::callout 569 570 #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE 571 namespace xyz::openbmc_project::Common::Callout 572 { 573 using Inventory = 574 phosphor::logging::xyz::openbmc_project::common::callout::Inventory; 575 } 576 #endif 577 578 namespace details 579 { 580 581 template <> 582 struct map_exception_type< 583 sdbusplus::error::xyz::openbmc_project::common::callout::Inventory> 584 { 585 using type = 586 phosphor::logging::xyz::openbmc_project::common::callout::Inventory; 587 }; 588 589 } // namespace details 590 namespace xyz::openbmc_project::common::callout 591 { 592 namespace _IPMISensor 593 { 594 struct CALLOUT_IPMI_SENSOR_NUM 595 { 596 /* 597 * We can't use -fsanitize=undefined if we declare a 598 * 'static constexpr auto str' member, so don't. Instead, open-code the 599 * mako template lookups. 600 */ 601 static constexpr auto str_short = "CALLOUT_IPMI_SENSOR_NUM"; 602 using type = 603 std::tuple<std::decay_t<decltype("CALLOUT_IPMI_SENSOR_NUM=%u")>, 604 uint32_t>; 605 explicit constexpr CALLOUT_IPMI_SENSOR_NUM(uint32_t a) : 606 _entry(entry("CALLOUT_IPMI_SENSOR_NUM=%u", a)) {}; 607 type _entry; 608 }; 609 } // namespace _IPMISensor 610 611 struct IPMISensor 612 { 613 static constexpr auto L = level::ERR; 614 using CALLOUT_IPMI_SENSOR_NUM = _IPMISensor::CALLOUT_IPMI_SENSOR_NUM; 615 using metadata_types = std::tuple<CALLOUT_IPMI_SENSOR_NUM>; 616 }; 617 618 } // namespace xyz::openbmc_project::common::callout 619 620 #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE 621 namespace xyz::openbmc_project::Common::Callout 622 { 623 using IPMISensor = 624 phosphor::logging::xyz::openbmc_project::common::callout::IPMISensor; 625 } 626 #endif 627 628 namespace details 629 { 630 631 template <> 632 struct map_exception_type< 633 sdbusplus::error::xyz::openbmc_project::common::callout::IPMISensor> 634 { 635 using type = 636 phosphor::logging::xyz::openbmc_project::common::callout::IPMISensor; 637 }; 638 639 } // namespace details 640 namespace org::open_power::witherspoon::fault 641 { 642 namespace _PowerSupplyInputFault 643 { 644 struct RAW_STATUS 645 { 646 /* 647 * We can't use -fsanitize=undefined if we declare a 648 * 'static constexpr auto str' member, so don't. Instead, open-code the 649 * mako template lookups. 650 */ 651 static constexpr auto str_short = "RAW_STATUS"; 652 using type = 653 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>; 654 explicit constexpr RAW_STATUS(const char* a) : 655 _entry(entry("RAW_STATUS=%s", a)) {}; 656 type _entry; 657 }; 658 } // namespace _PowerSupplyInputFault 659 660 struct PowerSupplyInputFault 661 { 662 static constexpr auto L = level::ERR; 663 using RAW_STATUS = _PowerSupplyInputFault::RAW_STATUS; 664 using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project:: 665 common::callout::Inventory::CALLOUT_INVENTORY_PATH; 666 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; 667 }; 668 669 } // namespace org::open_power::witherspoon::fault 670 671 #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE 672 namespace org::open_power::Witherspoon::Fault 673 { 674 using PowerSupplyInputFault = phosphor::logging::org::open_power::witherspoon:: 675 fault::PowerSupplyInputFault; 676 } 677 #endif 678 679 namespace details 680 { 681 682 template <> 683 struct map_exception_type<sdbusplus::error::org::open_power::witherspoon:: 684 fault::PowerSupplyInputFault> 685 { 686 using type = phosphor::logging::org::open_power::witherspoon::fault:: 687 PowerSupplyInputFault; 688 }; 689 690 } // namespace details 691 namespace org::open_power::witherspoon::fault 692 { 693 namespace _PowerSupplyShouldBeOn 694 { 695 struct RAW_STATUS 696 { 697 /* 698 * We can't use -fsanitize=undefined if we declare a 699 * 'static constexpr auto str' member, so don't. Instead, open-code the 700 * mako template lookups. 701 */ 702 static constexpr auto str_short = "RAW_STATUS"; 703 using type = 704 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>; 705 explicit constexpr RAW_STATUS(const char* a) : 706 _entry(entry("RAW_STATUS=%s", a)) {}; 707 type _entry; 708 }; 709 } // namespace _PowerSupplyShouldBeOn 710 711 struct PowerSupplyShouldBeOn 712 { 713 static constexpr auto L = level::ERR; 714 using RAW_STATUS = _PowerSupplyShouldBeOn::RAW_STATUS; 715 using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project:: 716 common::callout::Inventory::CALLOUT_INVENTORY_PATH; 717 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; 718 }; 719 720 } // namespace org::open_power::witherspoon::fault 721 722 #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE 723 namespace org::open_power::Witherspoon::Fault 724 { 725 using PowerSupplyShouldBeOn = phosphor::logging::org::open_power::witherspoon:: 726 fault::PowerSupplyShouldBeOn; 727 } 728 #endif 729 730 namespace details 731 { 732 733 template <> 734 struct map_exception_type<sdbusplus::error::org::open_power::witherspoon:: 735 fault::PowerSupplyShouldBeOn> 736 { 737 using type = phosphor::logging::org::open_power::witherspoon::fault:: 738 PowerSupplyShouldBeOn; 739 }; 740 741 } // namespace details 742 namespace org::open_power::witherspoon::fault 743 { 744 namespace _PowerSupplyOutputOvercurrent 745 { 746 struct RAW_STATUS 747 { 748 /* 749 * We can't use -fsanitize=undefined if we declare a 750 * 'static constexpr auto str' member, so don't. Instead, open-code the 751 * mako template lookups. 752 */ 753 static constexpr auto str_short = "RAW_STATUS"; 754 using type = 755 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>; 756 explicit constexpr RAW_STATUS(const char* a) : 757 _entry(entry("RAW_STATUS=%s", a)) {}; 758 type _entry; 759 }; 760 } // namespace _PowerSupplyOutputOvercurrent 761 762 struct PowerSupplyOutputOvercurrent 763 { 764 static constexpr auto L = level::ERR; 765 using RAW_STATUS = _PowerSupplyOutputOvercurrent::RAW_STATUS; 766 using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project:: 767 common::callout::Inventory::CALLOUT_INVENTORY_PATH; 768 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; 769 }; 770 771 } // namespace org::open_power::witherspoon::fault 772 773 #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE 774 namespace org::open_power::Witherspoon::Fault 775 { 776 using PowerSupplyOutputOvercurrent = phosphor::logging::org::open_power:: 777 witherspoon::fault::PowerSupplyOutputOvercurrent; 778 } 779 #endif 780 781 namespace details 782 { 783 784 template <> 785 struct map_exception_type<sdbusplus::error::org::open_power::witherspoon:: 786 fault::PowerSupplyOutputOvercurrent> 787 { 788 using type = phosphor::logging::org::open_power::witherspoon::fault:: 789 PowerSupplyOutputOvercurrent; 790 }; 791 792 } // namespace details 793 namespace org::open_power::witherspoon::fault 794 { 795 namespace _PowerSupplyOutputOvervoltage 796 { 797 struct RAW_STATUS 798 { 799 /* 800 * We can't use -fsanitize=undefined if we declare a 801 * 'static constexpr auto str' member, so don't. Instead, open-code the 802 * mako template lookups. 803 */ 804 static constexpr auto str_short = "RAW_STATUS"; 805 using type = 806 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>; 807 explicit constexpr RAW_STATUS(const char* a) : 808 _entry(entry("RAW_STATUS=%s", a)) {}; 809 type _entry; 810 }; 811 } // namespace _PowerSupplyOutputOvervoltage 812 813 struct PowerSupplyOutputOvervoltage 814 { 815 static constexpr auto L = level::ERR; 816 using RAW_STATUS = _PowerSupplyOutputOvervoltage::RAW_STATUS; 817 using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project:: 818 common::callout::Inventory::CALLOUT_INVENTORY_PATH; 819 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; 820 }; 821 822 } // namespace org::open_power::witherspoon::fault 823 824 #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE 825 namespace org::open_power::Witherspoon::Fault 826 { 827 using PowerSupplyOutputOvervoltage = phosphor::logging::org::open_power:: 828 witherspoon::fault::PowerSupplyOutputOvervoltage; 829 } 830 #endif 831 832 namespace details 833 { 834 835 template <> 836 struct map_exception_type<sdbusplus::error::org::open_power::witherspoon:: 837 fault::PowerSupplyOutputOvervoltage> 838 { 839 using type = phosphor::logging::org::open_power::witherspoon::fault:: 840 PowerSupplyOutputOvervoltage; 841 }; 842 843 } // namespace details 844 namespace org::open_power::witherspoon::fault 845 { 846 namespace _PowerSupplyFanFault 847 { 848 struct RAW_STATUS 849 { 850 /* 851 * We can't use -fsanitize=undefined if we declare a 852 * 'static constexpr auto str' member, so don't. Instead, open-code the 853 * mako template lookups. 854 */ 855 static constexpr auto str_short = "RAW_STATUS"; 856 using type = 857 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>; 858 explicit constexpr RAW_STATUS(const char* a) : 859 _entry(entry("RAW_STATUS=%s", a)) {}; 860 type _entry; 861 }; 862 } // namespace _PowerSupplyFanFault 863 864 struct PowerSupplyFanFault 865 { 866 static constexpr auto L = level::ERR; 867 using RAW_STATUS = _PowerSupplyFanFault::RAW_STATUS; 868 using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project:: 869 common::callout::Inventory::CALLOUT_INVENTORY_PATH; 870 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; 871 }; 872 873 } // namespace org::open_power::witherspoon::fault 874 875 #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE 876 namespace org::open_power::Witherspoon::Fault 877 { 878 using PowerSupplyFanFault = 879 phosphor::logging::org::open_power::witherspoon::fault::PowerSupplyFanFault; 880 } 881 #endif 882 883 namespace details 884 { 885 886 template <> 887 struct map_exception_type< 888 sdbusplus::error::org::open_power::witherspoon::fault::PowerSupplyFanFault> 889 { 890 using type = phosphor::logging::org::open_power::witherspoon::fault:: 891 PowerSupplyFanFault; 892 }; 893 894 } // namespace details 895 namespace org::open_power::witherspoon::fault 896 { 897 namespace _PowerSupplyTemperatureFault 898 { 899 struct RAW_STATUS 900 { 901 /* 902 * We can't use -fsanitize=undefined if we declare a 903 * 'static constexpr auto str' member, so don't. Instead, open-code the 904 * mako template lookups. 905 */ 906 static constexpr auto str_short = "RAW_STATUS"; 907 using type = 908 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>; 909 explicit constexpr RAW_STATUS(const char* a) : 910 _entry(entry("RAW_STATUS=%s", a)) {}; 911 type _entry; 912 }; 913 } // namespace _PowerSupplyTemperatureFault 914 915 struct PowerSupplyTemperatureFault 916 { 917 static constexpr auto L = level::ERR; 918 using RAW_STATUS = _PowerSupplyTemperatureFault::RAW_STATUS; 919 using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project:: 920 common::callout::Inventory::CALLOUT_INVENTORY_PATH; 921 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; 922 }; 923 924 } // namespace org::open_power::witherspoon::fault 925 926 #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE 927 namespace org::open_power::Witherspoon::Fault 928 { 929 using PowerSupplyTemperatureFault = phosphor::logging::org::open_power:: 930 witherspoon::fault::PowerSupplyTemperatureFault; 931 } 932 #endif 933 934 namespace details 935 { 936 937 template <> 938 struct map_exception_type<sdbusplus::error::org::open_power::witherspoon:: 939 fault::PowerSupplyTemperatureFault> 940 { 941 using type = phosphor::logging::org::open_power::witherspoon::fault:: 942 PowerSupplyTemperatureFault; 943 }; 944 945 } // namespace details 946 namespace org::open_power::witherspoon::fault 947 { 948 namespace _GPUPowerFault 949 { 950 struct RAW_STATUS 951 { 952 /* 953 * We can't use -fsanitize=undefined if we declare a 954 * 'static constexpr auto str' member, so don't. Instead, open-code the 955 * mako template lookups. 956 */ 957 static constexpr auto str_short = "RAW_STATUS"; 958 using type = 959 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>; 960 explicit constexpr RAW_STATUS(const char* a) : 961 _entry(entry("RAW_STATUS=%s", a)) {}; 962 type _entry; 963 }; 964 } // namespace _GPUPowerFault 965 966 struct GPUPowerFault 967 { 968 static constexpr auto L = level::ERR; 969 using RAW_STATUS = _GPUPowerFault::RAW_STATUS; 970 using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project:: 971 common::callout::Inventory::CALLOUT_INVENTORY_PATH; 972 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; 973 }; 974 975 } // namespace org::open_power::witherspoon::fault 976 977 #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE 978 namespace org::open_power::Witherspoon::Fault 979 { 980 using GPUPowerFault = 981 phosphor::logging::org::open_power::witherspoon::fault::GPUPowerFault; 982 } 983 #endif 984 985 namespace details 986 { 987 988 template <> 989 struct map_exception_type< 990 sdbusplus::error::org::open_power::witherspoon::fault::GPUPowerFault> 991 { 992 using type = 993 phosphor::logging::org::open_power::witherspoon::fault::GPUPowerFault; 994 }; 995 996 } // namespace details 997 namespace org::open_power::witherspoon::fault 998 { 999 namespace _GPUOverTemp 1000 { 1001 struct RAW_STATUS 1002 { 1003 /* 1004 * We can't use -fsanitize=undefined if we declare a 1005 * 'static constexpr auto str' member, so don't. Instead, open-code the 1006 * mako template lookups. 1007 */ 1008 static constexpr auto str_short = "RAW_STATUS"; 1009 using type = 1010 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>; 1011 explicit constexpr RAW_STATUS(const char* a) : 1012 _entry(entry("RAW_STATUS=%s", a)) {}; 1013 type _entry; 1014 }; 1015 } // namespace _GPUOverTemp 1016 1017 struct GPUOverTemp 1018 { 1019 static constexpr auto L = level::ERR; 1020 using RAW_STATUS = _GPUOverTemp::RAW_STATUS; 1021 using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project:: 1022 common::callout::Inventory::CALLOUT_INVENTORY_PATH; 1023 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; 1024 }; 1025 1026 } // namespace org::open_power::witherspoon::fault 1027 1028 #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE 1029 namespace org::open_power::Witherspoon::Fault 1030 { 1031 using GPUOverTemp = 1032 phosphor::logging::org::open_power::witherspoon::fault::GPUOverTemp; 1033 } 1034 #endif 1035 1036 namespace details 1037 { 1038 1039 template <> 1040 struct map_exception_type< 1041 sdbusplus::error::org::open_power::witherspoon::fault::GPUOverTemp> 1042 { 1043 using type = 1044 phosphor::logging::org::open_power::witherspoon::fault::GPUOverTemp; 1045 }; 1046 1047 } // namespace details 1048 namespace org::open_power::witherspoon::fault 1049 { 1050 namespace _MemoryPowerFault 1051 { 1052 struct RAW_STATUS 1053 { 1054 /* 1055 * We can't use -fsanitize=undefined if we declare a 1056 * 'static constexpr auto str' member, so don't. Instead, open-code the 1057 * mako template lookups. 1058 */ 1059 static constexpr auto str_short = "RAW_STATUS"; 1060 using type = 1061 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>; 1062 explicit constexpr RAW_STATUS(const char* a) : 1063 _entry(entry("RAW_STATUS=%s", a)) {}; 1064 type _entry; 1065 }; 1066 } // namespace _MemoryPowerFault 1067 1068 struct MemoryPowerFault 1069 { 1070 static constexpr auto L = level::ERR; 1071 using RAW_STATUS = _MemoryPowerFault::RAW_STATUS; 1072 using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project:: 1073 common::callout::Inventory::CALLOUT_INVENTORY_PATH; 1074 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; 1075 }; 1076 1077 } // namespace org::open_power::witherspoon::fault 1078 1079 #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE 1080 namespace org::open_power::Witherspoon::Fault 1081 { 1082 using MemoryPowerFault = 1083 phosphor::logging::org::open_power::witherspoon::fault::MemoryPowerFault; 1084 } 1085 #endif 1086 1087 namespace details 1088 { 1089 1090 template <> 1091 struct map_exception_type< 1092 sdbusplus::error::org::open_power::witherspoon::fault::MemoryPowerFault> 1093 { 1094 using type = phosphor::logging::org::open_power::witherspoon::fault:: 1095 MemoryPowerFault; 1096 }; 1097 1098 } // namespace details 1099 } // namespace phosphor::logging 1100