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 ErrorCode0; 16 } // namespace sdbusplus::error::org::open_power::witherspoon::fault 17 namespace sdbusplus::error::org::open_power::witherspoon::fault 18 { 19 struct ErrorCode1; 20 } // namespace sdbusplus::error::org::open_power::witherspoon::fault 21 namespace sdbusplus::error::org::open_power::witherspoon::fault 22 { 23 struct ErrorCode10; 24 } // namespace sdbusplus::error::org::open_power::witherspoon::fault 25 namespace sdbusplus::error::org::open_power::witherspoon::fault 26 { 27 struct ErrorCode11; 28 } // namespace sdbusplus::error::org::open_power::witherspoon::fault 29 namespace sdbusplus::error::org::open_power::witherspoon::fault 30 { 31 struct ErrorCode12; 32 } // namespace sdbusplus::error::org::open_power::witherspoon::fault 33 namespace sdbusplus::error::org::open_power::witherspoon::fault 34 { 35 struct ErrorCode13; 36 } // namespace sdbusplus::error::org::open_power::witherspoon::fault 37 namespace sdbusplus::error::org::open_power::witherspoon::fault 38 { 39 struct ErrorCode14; 40 } // namespace sdbusplus::error::org::open_power::witherspoon::fault 41 namespace sdbusplus::error::org::open_power::witherspoon::fault 42 { 43 struct ErrorCode15; 44 } // namespace sdbusplus::error::org::open_power::witherspoon::fault 45 namespace sdbusplus::error::org::open_power::witherspoon::fault 46 { 47 struct ErrorCode16; 48 } // namespace sdbusplus::error::org::open_power::witherspoon::fault 49 namespace sdbusplus::error::org::open_power::witherspoon::fault 50 { 51 struct ErrorCode17; 52 } // namespace sdbusplus::error::org::open_power::witherspoon::fault 53 namespace sdbusplus::error::org::open_power::witherspoon::fault 54 { 55 struct ErrorCode18; 56 } // namespace sdbusplus::error::org::open_power::witherspoon::fault 57 namespace sdbusplus::error::org::open_power::witherspoon::fault 58 { 59 struct ErrorCode19; 60 } // namespace sdbusplus::error::org::open_power::witherspoon::fault 61 namespace sdbusplus::error::org::open_power::witherspoon::fault 62 { 63 struct ErrorCode2; 64 } // namespace sdbusplus::error::org::open_power::witherspoon::fault 65 namespace sdbusplus::error::org::open_power::witherspoon::fault 66 { 67 struct ErrorCode20; 68 } // namespace sdbusplus::error::org::open_power::witherspoon::fault 69 namespace sdbusplus::error::org::open_power::witherspoon::fault 70 { 71 struct ErrorCode21; 72 } // namespace sdbusplus::error::org::open_power::witherspoon::fault 73 namespace sdbusplus::error::org::open_power::witherspoon::fault 74 { 75 struct ErrorCode22; 76 } // namespace sdbusplus::error::org::open_power::witherspoon::fault 77 namespace sdbusplus::error::org::open_power::witherspoon::fault 78 { 79 struct ErrorCode23; 80 } // namespace sdbusplus::error::org::open_power::witherspoon::fault 81 namespace sdbusplus::error::org::open_power::witherspoon::fault 82 { 83 struct ErrorCode24; 84 } // namespace sdbusplus::error::org::open_power::witherspoon::fault 85 namespace sdbusplus::error::org::open_power::witherspoon::fault 86 { 87 struct ErrorCode25; 88 } // namespace sdbusplus::error::org::open_power::witherspoon::fault 89 namespace sdbusplus::error::org::open_power::witherspoon::fault 90 { 91 struct ErrorCode26; 92 } // namespace sdbusplus::error::org::open_power::witherspoon::fault 93 namespace sdbusplus::error::org::open_power::witherspoon::fault 94 { 95 struct ErrorCode27; 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 237 238 namespace phosphor::logging 239 { 240 241 namespace org::open_power::witherspoon::fault 242 { 243 244 struct Shutdown 245 { 246 static constexpr auto L = level::ERR; 247 using metadata_types = std::tuple<>; 248 }; 249 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 259 260 namespace details 261 { 262 263 template <> 264 struct map_exception_type< 265 sdbusplus::error::org::open_power::witherspoon::fault::Shutdown> 266 { 267 using type = 268 phosphor::logging::org::open_power::witherspoon::fault::Shutdown; 269 }; 270 271 } // namespace details 272 namespace org::open_power::witherspoon::fault 273 { 274 275 struct PowerOnFailure 276 { 277 static constexpr auto L = level::ERR; 278 using metadata_types = std::tuple<>; 279 }; 280 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 290 291 namespace details 292 { 293 294 template <> 295 struct map_exception_type< 296 sdbusplus::error::org::open_power::witherspoon::fault::PowerOnFailure> 297 { 298 using type = 299 phosphor::logging::org::open_power::witherspoon::fault::PowerOnFailure; 300 }; 301 302 } // namespace details 303 namespace org::open_power::witherspoon::fault 304 { 305 306 struct ErrorCode0 307 { 308 static constexpr auto L = level::ERR; 309 using metadata_types = std::tuple<>; 310 }; 311 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 321 322 namespace details 323 { 324 325 template <> 326 struct map_exception_type< 327 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode0> 328 { 329 using type = 330 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode0; 331 }; 332 333 } // namespace details 334 namespace org::open_power::witherspoon::fault 335 { 336 337 struct ErrorCode1 338 { 339 static constexpr auto L = level::ERR; 340 using metadata_types = std::tuple<>; 341 }; 342 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 352 353 namespace details 354 { 355 356 template <> 357 struct map_exception_type< 358 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode1> 359 { 360 using type = 361 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode1; 362 }; 363 364 } // namespace details 365 namespace org::open_power::witherspoon::fault 366 { 367 368 struct ErrorCode2 369 { 370 static constexpr auto L = level::ERR; 371 using metadata_types = std::tuple<>; 372 }; 373 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 383 384 namespace details 385 { 386 387 template <> 388 struct map_exception_type< 389 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode2> 390 { 391 using type = 392 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode2; 393 }; 394 395 } // namespace details 396 namespace org::open_power::witherspoon::fault 397 { 398 399 struct ErrorCode3 400 { 401 static constexpr auto L = level::ERR; 402 using metadata_types = std::tuple<>; 403 }; 404 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 414 415 namespace details 416 { 417 418 template <> 419 struct map_exception_type< 420 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode3> 421 { 422 using type = 423 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode3; 424 }; 425 426 } // namespace details 427 namespace org::open_power::witherspoon::fault 428 { 429 430 struct ErrorCode4 431 { 432 static constexpr auto L = level::ERR; 433 using metadata_types = std::tuple<>; 434 }; 435 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 445 446 namespace details 447 { 448 449 template <> 450 struct map_exception_type< 451 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode4> 452 { 453 using type = 454 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode4; 455 }; 456 457 } // namespace details 458 namespace org::open_power::witherspoon::fault 459 { 460 461 struct ErrorCode5 462 { 463 static constexpr auto L = level::ERR; 464 using metadata_types = std::tuple<>; 465 }; 466 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 476 477 namespace details 478 { 479 480 template <> 481 struct map_exception_type< 482 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode5> 483 { 484 using type = 485 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode5; 486 }; 487 488 } // namespace details 489 namespace org::open_power::witherspoon::fault 490 { 491 492 struct ErrorCode6 493 { 494 static constexpr auto L = level::ERR; 495 using metadata_types = std::tuple<>; 496 }; 497 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 507 508 namespace details 509 { 510 511 template <> 512 struct map_exception_type< 513 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode6> 514 { 515 using type = 516 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode6; 517 }; 518 519 } // namespace details 520 namespace org::open_power::witherspoon::fault 521 { 522 523 struct ErrorCode7 524 { 525 static constexpr auto L = level::ERR; 526 using metadata_types = std::tuple<>; 527 }; 528 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 538 539 namespace details 540 { 541 542 template <> 543 struct map_exception_type< 544 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode7> 545 { 546 using type = 547 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode7; 548 }; 549 550 } // namespace details 551 namespace org::open_power::witherspoon::fault 552 { 553 554 struct ErrorCode8 555 { 556 static constexpr auto L = level::ERR; 557 using metadata_types = std::tuple<>; 558 }; 559 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 569 570 namespace details 571 { 572 573 template <> 574 struct map_exception_type< 575 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode8> 576 { 577 using type = 578 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode8; 579 }; 580 581 } // namespace details 582 namespace org::open_power::witherspoon::fault 583 { 584 585 struct ErrorCode9 586 { 587 static constexpr auto L = level::ERR; 588 using metadata_types = std::tuple<>; 589 }; 590 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 600 601 namespace details 602 { 603 604 template <> 605 struct map_exception_type< 606 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode9> 607 { 608 using type = 609 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode9; 610 }; 611 612 } // namespace details 613 namespace org::open_power::witherspoon::fault 614 { 615 616 struct ErrorCode10 617 { 618 static constexpr auto L = level::ERR; 619 using metadata_types = std::tuple<>; 620 }; 621 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 631 632 namespace details 633 { 634 635 template <> 636 struct map_exception_type< 637 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode10> 638 { 639 using type = 640 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode10; 641 }; 642 643 } // namespace details 644 namespace org::open_power::witherspoon::fault 645 { 646 647 struct ErrorCode11 648 { 649 static constexpr auto L = level::ERR; 650 using metadata_types = std::tuple<>; 651 }; 652 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 662 663 namespace details 664 { 665 666 template <> 667 struct map_exception_type< 668 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode11> 669 { 670 using type = 671 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode11; 672 }; 673 674 } // namespace details 675 namespace org::open_power::witherspoon::fault 676 { 677 678 struct ErrorCode12 679 { 680 static constexpr auto L = level::ERR; 681 using metadata_types = std::tuple<>; 682 }; 683 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 693 694 namespace details 695 { 696 697 template <> 698 struct map_exception_type< 699 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode12> 700 { 701 using type = 702 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode12; 703 }; 704 705 } // namespace details 706 namespace org::open_power::witherspoon::fault 707 { 708 709 struct ErrorCode13 710 { 711 static constexpr auto L = level::ERR; 712 using metadata_types = std::tuple<>; 713 }; 714 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 724 725 namespace details 726 { 727 728 template <> 729 struct map_exception_type< 730 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode13> 731 { 732 using type = 733 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode13; 734 }; 735 736 } // namespace details 737 namespace org::open_power::witherspoon::fault 738 { 739 740 struct ErrorCode14 741 { 742 static constexpr auto L = level::ERR; 743 using metadata_types = std::tuple<>; 744 }; 745 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 755 756 namespace details 757 { 758 759 template <> 760 struct map_exception_type< 761 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode14> 762 { 763 using type = 764 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode14; 765 }; 766 767 } // namespace details 768 namespace org::open_power::witherspoon::fault 769 { 770 771 struct ErrorCode15 772 { 773 static constexpr auto L = level::ERR; 774 using metadata_types = std::tuple<>; 775 }; 776 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 786 787 namespace details 788 { 789 790 template <> 791 struct map_exception_type< 792 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode15> 793 { 794 using type = 795 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode15; 796 }; 797 798 } // namespace details 799 namespace org::open_power::witherspoon::fault 800 { 801 802 struct ErrorCode16 803 { 804 static constexpr auto L = level::ERR; 805 using metadata_types = std::tuple<>; 806 }; 807 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 817 818 namespace details 819 { 820 821 template <> 822 struct map_exception_type< 823 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode16> 824 { 825 using type = 826 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode16; 827 }; 828 829 } // namespace details 830 namespace org::open_power::witherspoon::fault 831 { 832 833 struct ErrorCode17 834 { 835 static constexpr auto L = level::ERR; 836 using metadata_types = std::tuple<>; 837 }; 838 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 848 849 namespace details 850 { 851 852 template <> 853 struct map_exception_type< 854 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode17> 855 { 856 using type = 857 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode17; 858 }; 859 860 } // namespace details 861 namespace org::open_power::witherspoon::fault 862 { 863 864 struct ErrorCode18 865 { 866 static constexpr auto L = level::ERR; 867 using metadata_types = std::tuple<>; 868 }; 869 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 879 880 namespace details 881 { 882 883 template <> 884 struct map_exception_type< 885 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode18> 886 { 887 using type = 888 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode18; 889 }; 890 891 } // namespace details 892 namespace org::open_power::witherspoon::fault 893 { 894 895 struct ErrorCode19 896 { 897 static constexpr auto L = level::ERR; 898 using metadata_types = std::tuple<>; 899 }; 900 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 910 911 namespace details 912 { 913 914 template <> 915 struct map_exception_type< 916 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode19> 917 { 918 using type = 919 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode19; 920 }; 921 922 } // namespace details 923 namespace org::open_power::witherspoon::fault 924 { 925 926 struct ErrorCode20 927 { 928 static constexpr auto L = level::ERR; 929 using metadata_types = std::tuple<>; 930 }; 931 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 941 942 namespace details 943 { 944 945 template <> 946 struct map_exception_type< 947 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode20> 948 { 949 using type = 950 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode20; 951 }; 952 953 } // namespace details 954 namespace org::open_power::witherspoon::fault 955 { 956 957 struct ErrorCode21 958 { 959 static constexpr auto L = level::ERR; 960 using metadata_types = std::tuple<>; 961 }; 962 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 972 973 namespace details 974 { 975 976 template <> 977 struct map_exception_type< 978 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode21> 979 { 980 using type = 981 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode21; 982 }; 983 984 } // namespace details 985 namespace org::open_power::witherspoon::fault 986 { 987 988 struct ErrorCode22 989 { 990 static constexpr auto L = level::ERR; 991 using metadata_types = std::tuple<>; 992 }; 993 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 1003 1004 namespace details 1005 { 1006 1007 template <> 1008 struct map_exception_type< 1009 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode22> 1010 { 1011 using type = 1012 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode22; 1013 }; 1014 1015 } // namespace details 1016 namespace org::open_power::witherspoon::fault 1017 { 1018 1019 struct ErrorCode23 1020 { 1021 static constexpr auto L = level::ERR; 1022 using metadata_types = std::tuple<>; 1023 }; 1024 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 1034 1035 namespace details 1036 { 1037 1038 template <> 1039 struct map_exception_type< 1040 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode23> 1041 { 1042 using type = 1043 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode23; 1044 }; 1045 1046 } // namespace details 1047 namespace org::open_power::witherspoon::fault 1048 { 1049 1050 struct ErrorCode24 1051 { 1052 static constexpr auto L = level::ERR; 1053 using metadata_types = std::tuple<>; 1054 }; 1055 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 1065 1066 namespace details 1067 { 1068 1069 template <> 1070 struct map_exception_type< 1071 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode24> 1072 { 1073 using type = 1074 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode24; 1075 }; 1076 1077 } // namespace details 1078 namespace org::open_power::witherspoon::fault 1079 { 1080 1081 struct ErrorCode25 1082 { 1083 static constexpr auto L = level::ERR; 1084 using metadata_types = std::tuple<>; 1085 }; 1086 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 1096 1097 namespace details 1098 { 1099 1100 template <> 1101 struct map_exception_type< 1102 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode25> 1103 { 1104 using type = 1105 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode25; 1106 }; 1107 1108 } // namespace details 1109 namespace org::open_power::witherspoon::fault 1110 { 1111 1112 struct ErrorCode26 1113 { 1114 static constexpr auto L = level::ERR; 1115 using metadata_types = std::tuple<>; 1116 }; 1117 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 1127 1128 namespace details 1129 { 1130 1131 template <> 1132 struct map_exception_type< 1133 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode26> 1134 { 1135 using type = 1136 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode26; 1137 }; 1138 1139 } // namespace details 1140 namespace org::open_power::witherspoon::fault 1141 { 1142 1143 struct ErrorCode27 1144 { 1145 static constexpr auto L = level::ERR; 1146 using metadata_types = std::tuple<>; 1147 }; 1148 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 1158 1159 namespace details 1160 { 1161 1162 template <> 1163 struct map_exception_type< 1164 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode27> 1165 { 1166 using type = 1167 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode27; 1168 }; 1169 1170 } // namespace details 1171 namespace org::open_power::witherspoon::fault 1172 { 1173 1174 struct ErrorCode28 1175 { 1176 static constexpr auto L = level::ERR; 1177 using metadata_types = std::tuple<>; 1178 }; 1179 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 1189 1190 namespace details 1191 { 1192 1193 template <> 1194 struct map_exception_type< 1195 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode28> 1196 { 1197 using type = 1198 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode28; 1199 }; 1200 1201 } // namespace details 1202 namespace org::open_power::witherspoon::fault 1203 { 1204 1205 struct ErrorCode29 1206 { 1207 static constexpr auto L = level::ERR; 1208 using metadata_types = std::tuple<>; 1209 }; 1210 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 1220 1221 namespace details 1222 { 1223 1224 template <> 1225 struct map_exception_type< 1226 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode29> 1227 { 1228 using type = 1229 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode29; 1230 }; 1231 1232 } // namespace details 1233 namespace org::open_power::witherspoon::fault 1234 { 1235 1236 struct ErrorCode30 1237 { 1238 static constexpr auto L = level::ERR; 1239 using metadata_types = std::tuple<>; 1240 }; 1241 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 1251 1252 namespace details 1253 { 1254 1255 template <> 1256 struct map_exception_type< 1257 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode30> 1258 { 1259 using type = 1260 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode30; 1261 }; 1262 1263 } // namespace details 1264 namespace org::open_power::witherspoon::fault 1265 { 1266 1267 struct ErrorCode31 1268 { 1269 static constexpr auto L = level::ERR; 1270 using metadata_types = std::tuple<>; 1271 }; 1272 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 1282 1283 namespace details 1284 { 1285 1286 template <> 1287 struct map_exception_type< 1288 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode31> 1289 { 1290 using type = 1291 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode31; 1292 }; 1293 1294 } // namespace details 1295 namespace org::open_power::witherspoon::fault 1296 { 1297 1298 struct ErrorCode32 1299 { 1300 static constexpr auto L = level::ERR; 1301 using metadata_types = std::tuple<>; 1302 }; 1303 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 1313 1314 namespace details 1315 { 1316 1317 template <> 1318 struct map_exception_type< 1319 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode32> 1320 { 1321 using type = 1322 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode32; 1323 }; 1324 1325 } // namespace details 1326 namespace org::open_power::witherspoon::fault 1327 { 1328 1329 struct ErrorCode33 1330 { 1331 static constexpr auto L = level::ERR; 1332 using metadata_types = std::tuple<>; 1333 }; 1334 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 1344 1345 namespace details 1346 { 1347 1348 template <> 1349 struct map_exception_type< 1350 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode33> 1351 { 1352 using type = 1353 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode33; 1354 }; 1355 1356 } // namespace details 1357 namespace org::open_power::witherspoon::fault 1358 { 1359 1360 struct ErrorCode34 1361 { 1362 static constexpr auto L = level::ERR; 1363 using metadata_types = std::tuple<>; 1364 }; 1365 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 1375 1376 namespace details 1377 { 1378 1379 template <> 1380 struct map_exception_type< 1381 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode34> 1382 { 1383 using type = 1384 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode34; 1385 }; 1386 1387 } // namespace details 1388 namespace org::open_power::witherspoon::fault 1389 { 1390 1391 struct ErrorCode35 1392 { 1393 static constexpr auto L = level::ERR; 1394 using metadata_types = std::tuple<>; 1395 }; 1396 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 1406 1407 namespace details 1408 { 1409 1410 template <> 1411 struct map_exception_type< 1412 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode35> 1413 { 1414 using type = 1415 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode35; 1416 }; 1417 1418 } // namespace details 1419 namespace org::open_power::witherspoon::fault 1420 { 1421 1422 struct ErrorCode36 1423 { 1424 static constexpr auto L = level::ERR; 1425 using metadata_types = std::tuple<>; 1426 }; 1427 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 1437 1438 namespace details 1439 { 1440 1441 template <> 1442 struct map_exception_type< 1443 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode36> 1444 { 1445 using type = 1446 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode36; 1447 }; 1448 1449 } // namespace details 1450 namespace org::open_power::witherspoon::fault 1451 { 1452 namespace _PowerSequencerVoltageFault 1453 { 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 }; 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 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 1514 1515 namespace details 1516 { 1517 1518 template <> 1519 struct map_exception_type<sdbusplus::error::org::open_power::witherspoon:: 1520 fault::PowerSequencerVoltageFault> 1521 { 1522 using type = phosphor::logging::org::open_power::witherspoon::fault:: 1523 PowerSequencerVoltageFault; 1524 }; 1525 1526 } // namespace details 1527 namespace org::open_power::witherspoon::fault 1528 { 1529 namespace _PowerSequencerPGOODFault 1530 { 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 }; 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 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 1592 1593 namespace details 1594 { 1595 1596 template <> 1597 struct map_exception_type<sdbusplus::error::org::open_power::witherspoon:: 1598 fault::PowerSequencerPGOODFault> 1599 { 1600 using type = phosphor::logging::org::open_power::witherspoon::fault:: 1601 PowerSequencerPGOODFault; 1602 }; 1603 1604 } // namespace details 1605 namespace org::open_power::witherspoon::fault 1606 { 1607 namespace _PowerSequencerFault 1608 { 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 }; 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 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 1641 1642 namespace details 1643 { 1644 1645 template <> 1646 struct map_exception_type< 1647 sdbusplus::error::org::open_power::witherspoon::fault::PowerSequencerFault> 1648 { 1649 using type = phosphor::logging::org::open_power::witherspoon::fault:: 1650 PowerSequencerFault; 1651 }; 1652 1653 } // namespace details 1654 namespace xyz::openbmc_project::common::callout 1655 { 1656 namespace _Device 1657 { 1658 struct CALLOUT_ERRNO 1659 { 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 */ 1665 static constexpr auto str_short = "CALLOUT_ERRNO"; 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)){}; 1670 type _entry; 1671 }; 1672 struct CALLOUT_DEVICE_PATH 1673 { 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 */ 1679 static constexpr auto str_short = "CALLOUT_DEVICE_PATH"; 1680 using type = std::tuple<std::decay_t<decltype("CALLOUT_DEVICE_PATH=%s")>, 1681 const char*>; 1682 explicit constexpr CALLOUT_DEVICE_PATH(const char* a) : 1683 _entry(entry("CALLOUT_DEVICE_PATH=%s", a)){}; 1684 type _entry; 1685 }; 1686 } // namespace _Device 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>; 1694 }; 1695 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 1704 1705 namespace details 1706 { 1707 1708 template <> 1709 struct map_exception_type< 1710 sdbusplus::error::xyz::openbmc_project::common::callout::Device> 1711 { 1712 using type = 1713 phosphor::logging::xyz::openbmc_project::common::callout::Device; 1714 }; 1715 1716 } // namespace details 1717 namespace xyz::openbmc_project::common::callout 1718 { 1719 namespace _GPIO 1720 { 1721 struct CALLOUT_GPIO_NUM 1722 { 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 */ 1728 static constexpr auto str_short = "CALLOUT_GPIO_NUM"; 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)){}; 1733 type _entry; 1734 }; 1735 } // namespace _GPIO 1736 1737 struct GPIO 1738 { 1739 static constexpr auto L = level::ERR; 1740 using CALLOUT_GPIO_NUM = _GPIO::CALLOUT_GPIO_NUM; 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; 1745 using metadata_types = 1746 std::tuple<CALLOUT_GPIO_NUM, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; 1747 }; 1748 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 1757 1758 namespace details 1759 { 1760 1761 template <> 1762 struct map_exception_type< 1763 sdbusplus::error::xyz::openbmc_project::common::callout::GPIO> 1764 { 1765 using type = phosphor::logging::xyz::openbmc_project::common::callout::GPIO; 1766 }; 1767 1768 } // namespace details 1769 namespace xyz::openbmc_project::common::callout 1770 { 1771 namespace _IIC 1772 { 1773 struct CALLOUT_IIC_BUS 1774 { 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 */ 1780 static constexpr auto str_short = "CALLOUT_IIC_BUS"; 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)){}; 1785 type _entry; 1786 }; 1787 struct CALLOUT_IIC_ADDR 1788 { 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 */ 1794 static constexpr auto str_short = "CALLOUT_IIC_ADDR"; 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)){}; 1799 type _entry; 1800 }; 1801 } // namespace _IIC 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; 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; 1812 using metadata_types = std::tuple<CALLOUT_IIC_BUS, CALLOUT_IIC_ADDR, 1813 CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; 1814 }; 1815 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 1824 1825 namespace details 1826 { 1827 1828 template <> 1829 struct map_exception_type< 1830 sdbusplus::error::xyz::openbmc_project::common::callout::IIC> 1831 { 1832 using type = phosphor::logging::xyz::openbmc_project::common::callout::IIC; 1833 }; 1834 1835 } // namespace details 1836 namespace xyz::openbmc_project::common::callout 1837 { 1838 namespace _Inventory 1839 { 1840 struct CALLOUT_INVENTORY_PATH 1841 { 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 */ 1847 static constexpr auto str_short = "CALLOUT_INVENTORY_PATH"; 1848 using type = std::tuple<std::decay_t<decltype("CALLOUT_INVENTORY_PATH=%s")>, 1849 const char*>; 1850 explicit constexpr CALLOUT_INVENTORY_PATH(const char* a) : 1851 _entry(entry("CALLOUT_INVENTORY_PATH=%s", a)){}; 1852 type _entry; 1853 }; 1854 } // namespace _Inventory 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>; 1861 }; 1862 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 1872 1873 namespace details 1874 { 1875 1876 template <> 1877 struct map_exception_type< 1878 sdbusplus::error::xyz::openbmc_project::common::callout::Inventory> 1879 { 1880 using type = 1881 phosphor::logging::xyz::openbmc_project::common::callout::Inventory; 1882 }; 1883 1884 } // namespace details 1885 namespace xyz::openbmc_project::common::callout 1886 { 1887 namespace _IPMISensor 1888 { 1889 struct CALLOUT_IPMI_SENSOR_NUM 1890 { 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 */ 1896 static constexpr auto str_short = "CALLOUT_IPMI_SENSOR_NUM"; 1897 using type = 1898 std::tuple<std::decay_t<decltype("CALLOUT_IPMI_SENSOR_NUM=%u")>, 1899 uint32_t>; 1900 explicit constexpr CALLOUT_IPMI_SENSOR_NUM(uint32_t a) : 1901 _entry(entry("CALLOUT_IPMI_SENSOR_NUM=%u", a)){}; 1902 type _entry; 1903 }; 1904 } // namespace _IPMISensor 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>; 1911 }; 1912 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 1922 1923 namespace details 1924 { 1925 1926 template <> 1927 struct map_exception_type< 1928 sdbusplus::error::xyz::openbmc_project::common::callout::IPMISensor> 1929 { 1930 using type = 1931 phosphor::logging::xyz::openbmc_project::common::callout::IPMISensor; 1932 }; 1933 1934 } // namespace details 1935 namespace org::open_power::witherspoon::fault 1936 { 1937 namespace _PowerSupplyInputFault 1938 { 1939 struct RAW_STATUS 1940 { 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 */ 1946 static constexpr auto str_short = "RAW_STATUS"; 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)){}; 1951 type _entry; 1952 }; 1953 } // namespace _PowerSupplyInputFault 1954 1955 struct PowerSupplyInputFault 1956 { 1957 static constexpr auto L = level::ERR; 1958 using RAW_STATUS = _PowerSupplyInputFault::RAW_STATUS; 1959 using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project:: 1960 common::callout::Inventory::CALLOUT_INVENTORY_PATH; 1961 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; 1962 }; 1963 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 1973 1974 namespace details 1975 { 1976 1977 template <> 1978 struct map_exception_type<sdbusplus::error::org::open_power::witherspoon:: 1979 fault::PowerSupplyInputFault> 1980 { 1981 using type = phosphor::logging::org::open_power::witherspoon::fault:: 1982 PowerSupplyInputFault; 1983 }; 1984 1985 } // namespace details 1986 namespace org::open_power::witherspoon::fault 1987 { 1988 namespace _PowerSupplyShouldBeOn 1989 { 1990 struct RAW_STATUS 1991 { 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 */ 1997 static constexpr auto str_short = "RAW_STATUS"; 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)){}; 2002 type _entry; 2003 }; 2004 } // namespace _PowerSupplyShouldBeOn 2005 2006 struct PowerSupplyShouldBeOn 2007 { 2008 static constexpr auto L = level::ERR; 2009 using RAW_STATUS = _PowerSupplyShouldBeOn::RAW_STATUS; 2010 using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project:: 2011 common::callout::Inventory::CALLOUT_INVENTORY_PATH; 2012 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; 2013 }; 2014 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 2024 2025 namespace details 2026 { 2027 2028 template <> 2029 struct map_exception_type<sdbusplus::error::org::open_power::witherspoon:: 2030 fault::PowerSupplyShouldBeOn> 2031 { 2032 using type = phosphor::logging::org::open_power::witherspoon::fault:: 2033 PowerSupplyShouldBeOn; 2034 }; 2035 2036 } // namespace details 2037 namespace org::open_power::witherspoon::fault 2038 { 2039 namespace _PowerSupplyOutputOvercurrent 2040 { 2041 struct RAW_STATUS 2042 { 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 */ 2048 static constexpr auto str_short = "RAW_STATUS"; 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)){}; 2053 type _entry; 2054 }; 2055 } // namespace _PowerSupplyOutputOvercurrent 2056 2057 struct PowerSupplyOutputOvercurrent 2058 { 2059 static constexpr auto L = level::ERR; 2060 using RAW_STATUS = _PowerSupplyOutputOvercurrent::RAW_STATUS; 2061 using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project:: 2062 common::callout::Inventory::CALLOUT_INVENTORY_PATH; 2063 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; 2064 }; 2065 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 2075 2076 namespace details 2077 { 2078 2079 template <> 2080 struct map_exception_type<sdbusplus::error::org::open_power::witherspoon:: 2081 fault::PowerSupplyOutputOvercurrent> 2082 { 2083 using type = phosphor::logging::org::open_power::witherspoon::fault:: 2084 PowerSupplyOutputOvercurrent; 2085 }; 2086 2087 } // namespace details 2088 namespace org::open_power::witherspoon::fault 2089 { 2090 namespace _PowerSupplyOutputOvervoltage 2091 { 2092 struct RAW_STATUS 2093 { 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 */ 2099 static constexpr auto str_short = "RAW_STATUS"; 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)){}; 2104 type _entry; 2105 }; 2106 } // namespace _PowerSupplyOutputOvervoltage 2107 2108 struct PowerSupplyOutputOvervoltage 2109 { 2110 static constexpr auto L = level::ERR; 2111 using RAW_STATUS = _PowerSupplyOutputOvervoltage::RAW_STATUS; 2112 using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project:: 2113 common::callout::Inventory::CALLOUT_INVENTORY_PATH; 2114 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; 2115 }; 2116 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 2126 2127 namespace details 2128 { 2129 2130 template <> 2131 struct map_exception_type<sdbusplus::error::org::open_power::witherspoon:: 2132 fault::PowerSupplyOutputOvervoltage> 2133 { 2134 using type = phosphor::logging::org::open_power::witherspoon::fault:: 2135 PowerSupplyOutputOvervoltage; 2136 }; 2137 2138 } // namespace details 2139 namespace org::open_power::witherspoon::fault 2140 { 2141 namespace _PowerSupplyFanFault 2142 { 2143 struct RAW_STATUS 2144 { 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 */ 2150 static constexpr auto str_short = "RAW_STATUS"; 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)){}; 2155 type _entry; 2156 }; 2157 } // namespace _PowerSupplyFanFault 2158 2159 struct PowerSupplyFanFault 2160 { 2161 static constexpr auto L = level::ERR; 2162 using RAW_STATUS = _PowerSupplyFanFault::RAW_STATUS; 2163 using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project:: 2164 common::callout::Inventory::CALLOUT_INVENTORY_PATH; 2165 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; 2166 }; 2167 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 2177 2178 namespace details 2179 { 2180 2181 template <> 2182 struct map_exception_type< 2183 sdbusplus::error::org::open_power::witherspoon::fault::PowerSupplyFanFault> 2184 { 2185 using type = phosphor::logging::org::open_power::witherspoon::fault:: 2186 PowerSupplyFanFault; 2187 }; 2188 2189 } // namespace details 2190 namespace org::open_power::witherspoon::fault 2191 { 2192 namespace _PowerSupplyTemperatureFault 2193 { 2194 struct RAW_STATUS 2195 { 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 */ 2201 static constexpr auto str_short = "RAW_STATUS"; 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)){}; 2206 type _entry; 2207 }; 2208 } // namespace _PowerSupplyTemperatureFault 2209 2210 struct PowerSupplyTemperatureFault 2211 { 2212 static constexpr auto L = level::ERR; 2213 using RAW_STATUS = _PowerSupplyTemperatureFault::RAW_STATUS; 2214 using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project:: 2215 common::callout::Inventory::CALLOUT_INVENTORY_PATH; 2216 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; 2217 }; 2218 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 2228 2229 namespace details 2230 { 2231 2232 template <> 2233 struct map_exception_type<sdbusplus::error::org::open_power::witherspoon:: 2234 fault::PowerSupplyTemperatureFault> 2235 { 2236 using type = phosphor::logging::org::open_power::witherspoon::fault:: 2237 PowerSupplyTemperatureFault; 2238 }; 2239 2240 } // namespace details 2241 namespace org::open_power::witherspoon::fault 2242 { 2243 namespace _GPUPowerFault 2244 { 2245 struct RAW_STATUS 2246 { 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 */ 2252 static constexpr auto str_short = "RAW_STATUS"; 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)){}; 2257 type _entry; 2258 }; 2259 } // namespace _GPUPowerFault 2260 2261 struct GPUPowerFault 2262 { 2263 static constexpr auto L = level::ERR; 2264 using RAW_STATUS = _GPUPowerFault::RAW_STATUS; 2265 using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project:: 2266 common::callout::Inventory::CALLOUT_INVENTORY_PATH; 2267 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; 2268 }; 2269 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 2279 2280 namespace details 2281 { 2282 2283 template <> 2284 struct map_exception_type< 2285 sdbusplus::error::org::open_power::witherspoon::fault::GPUPowerFault> 2286 { 2287 using type = 2288 phosphor::logging::org::open_power::witherspoon::fault::GPUPowerFault; 2289 }; 2290 2291 } // namespace details 2292 namespace org::open_power::witherspoon::fault 2293 { 2294 namespace _GPUOverTemp 2295 { 2296 struct RAW_STATUS 2297 { 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 */ 2303 static constexpr auto str_short = "RAW_STATUS"; 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)){}; 2308 type _entry; 2309 }; 2310 } // namespace _GPUOverTemp 2311 2312 struct GPUOverTemp 2313 { 2314 static constexpr auto L = level::ERR; 2315 using RAW_STATUS = _GPUOverTemp::RAW_STATUS; 2316 using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project:: 2317 common::callout::Inventory::CALLOUT_INVENTORY_PATH; 2318 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; 2319 }; 2320 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 2330 2331 namespace details 2332 { 2333 2334 template <> 2335 struct map_exception_type< 2336 sdbusplus::error::org::open_power::witherspoon::fault::GPUOverTemp> 2337 { 2338 using type = 2339 phosphor::logging::org::open_power::witherspoon::fault::GPUOverTemp; 2340 }; 2341 2342 } // namespace details 2343 namespace org::open_power::witherspoon::fault 2344 { 2345 namespace _MemoryPowerFault 2346 { 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 }; 2361 } // namespace _MemoryPowerFault 2362 2363 struct MemoryPowerFault 2364 { 2365 static constexpr auto L = level::ERR; 2366 using RAW_STATUS = _MemoryPowerFault::RAW_STATUS; 2367 using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project:: 2368 common::callout::Inventory::CALLOUT_INVENTORY_PATH; 2369 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; 2370 }; 2371 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 2381 2382 namespace details 2383 { 2384 2385 template <> 2386 struct map_exception_type< 2387 sdbusplus::error::org::open_power::witherspoon::fault::MemoryPowerFault> 2388 { 2389 using type = phosphor::logging::org::open_power::witherspoon::fault:: 2390 MemoryPowerFault; 2391 }; 2392 2393 } // namespace details 2394 } // namespace phosphor::logging 2395