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