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