1 // This file was autogenerated. Do not edit! 2 // See elog-gen.py for more details 3 #pragma once 4 5 #include <string> 6 #include <tuple> 7 #include <type_traits> 8 #include <sdbusplus/exception.hpp> 9 #include <phosphor-logging/log.hpp> 10 #include <phosphor-logging/elog.hpp> 11 12 namespace sdbusplus 13 { 14 namespace xyz 15 { 16 namespace openbmc_project 17 { 18 namespace Power 19 { 20 namespace Fault 21 { 22 namespace Error 23 { 24 struct PowerOnFailure; 25 } // namespace Error 26 } // namespace Fault 27 } // namespace Power 28 } // namespace openbmc_project 29 } // namespace xyz 30 } // namespace sdbusplus 31 32 namespace sdbusplus 33 { 34 namespace xyz 35 { 36 namespace openbmc_project 37 { 38 namespace Power 39 { 40 namespace Fault 41 { 42 namespace Error 43 { 44 struct PowerSequencerFault; 45 } // namespace Error 46 } // namespace Fault 47 } // namespace Power 48 } // namespace openbmc_project 49 } // namespace xyz 50 } // namespace sdbusplus 51 52 namespace sdbusplus 53 { 54 namespace xyz 55 { 56 namespace openbmc_project 57 { 58 namespace Common 59 { 60 namespace Callout 61 { 62 namespace Error 63 { 64 struct GPIO; 65 } // namespace Error 66 } // namespace Callout 67 } // namespace Common 68 } // namespace openbmc_project 69 } // namespace xyz 70 } // namespace sdbusplus 71 72 namespace sdbusplus 73 { 74 namespace xyz 75 { 76 namespace openbmc_project 77 { 78 namespace Common 79 { 80 namespace Callout 81 { 82 namespace Error 83 { 84 struct Inventory; 85 } // namespace Error 86 } // namespace Callout 87 } // namespace Common 88 } // namespace openbmc_project 89 } // namespace xyz 90 } // namespace sdbusplus 91 92 namespace sdbusplus 93 { 94 namespace xyz 95 { 96 namespace openbmc_project 97 { 98 namespace 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 xyz 115 { 116 namespace openbmc_project 117 { 118 namespace Power 119 { 120 namespace Fault 121 { 122 namespace Error 123 { 124 struct PowerSequencerPGOODFault; 125 } // namespace Error 126 } // namespace Fault 127 } // namespace Power 128 } // namespace openbmc_project 129 } // namespace xyz 130 } // namespace sdbusplus 131 132 namespace sdbusplus 133 { 134 namespace xyz 135 { 136 namespace openbmc_project 137 { 138 namespace Power 139 { 140 namespace Fault 141 { 142 namespace Error 143 { 144 struct PowerSupplyShouldBeOn; 145 } // namespace Error 146 } // namespace Fault 147 } // namespace Power 148 } // namespace openbmc_project 149 } // namespace xyz 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 Device; 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 Power 179 { 180 namespace Fault 181 { 182 namespace Error 183 { 184 struct PowerSupplyUnderVoltageFault; 185 } // namespace Error 186 } // namespace Fault 187 } // namespace Power 188 } // namespace openbmc_project 189 } // namespace xyz 190 } // namespace sdbusplus 191 192 namespace sdbusplus 193 { 194 namespace xyz 195 { 196 namespace openbmc_project 197 { 198 namespace Power 199 { 200 namespace Fault 201 { 202 namespace Error 203 { 204 struct PowerSupplyFanFault; 205 } // namespace Error 206 } // namespace Fault 207 } // namespace Power 208 } // namespace openbmc_project 209 } // namespace xyz 210 } // namespace sdbusplus 211 212 namespace sdbusplus 213 { 214 namespace xyz 215 { 216 namespace openbmc_project 217 { 218 namespace Power 219 { 220 namespace Fault 221 { 222 namespace Error 223 { 224 struct PowerSupplyInputFault; 225 } // namespace Error 226 } // namespace Fault 227 } // namespace Power 228 } // namespace openbmc_project 229 } // namespace xyz 230 } // namespace sdbusplus 231 232 namespace sdbusplus 233 { 234 namespace xyz 235 { 236 namespace openbmc_project 237 { 238 namespace Power 239 { 240 namespace Fault 241 { 242 namespace Error 243 { 244 struct GPUPowerFault; 245 } // namespace Error 246 } // namespace Fault 247 } // namespace Power 248 } // namespace openbmc_project 249 } // namespace xyz 250 } // namespace sdbusplus 251 252 namespace sdbusplus 253 { 254 namespace xyz 255 { 256 namespace openbmc_project 257 { 258 namespace Power 259 { 260 namespace Fault 261 { 262 namespace Error 263 { 264 struct PowerSupplyOutputOvervoltage; 265 } // namespace Error 266 } // namespace Fault 267 } // namespace Power 268 } // namespace openbmc_project 269 } // namespace xyz 270 } // namespace sdbusplus 271 272 namespace sdbusplus 273 { 274 namespace xyz 275 { 276 namespace openbmc_project 277 { 278 namespace Power 279 { 280 namespace Fault 281 { 282 namespace Error 283 { 284 struct PowerSupplyOutputOvercurrent; 285 } // namespace Error 286 } // namespace Fault 287 } // namespace Power 288 } // namespace openbmc_project 289 } // namespace xyz 290 } // namespace sdbusplus 291 292 namespace sdbusplus 293 { 294 namespace xyz 295 { 296 namespace openbmc_project 297 { 298 namespace Power 299 { 300 namespace Fault 301 { 302 namespace Error 303 { 304 struct GPUOverTemp; 305 } // namespace Error 306 } // namespace Fault 307 } // namespace Power 308 } // namespace openbmc_project 309 } // namespace xyz 310 } // namespace sdbusplus 311 312 namespace sdbusplus 313 { 314 namespace xyz 315 { 316 namespace openbmc_project 317 { 318 namespace Common 319 { 320 namespace Callout 321 { 322 namespace Error 323 { 324 struct IPMISensor; 325 } // namespace Error 326 } // namespace Callout 327 } // namespace Common 328 } // namespace openbmc_project 329 } // namespace xyz 330 } // namespace sdbusplus 331 332 namespace sdbusplus 333 { 334 namespace xyz 335 { 336 namespace openbmc_project 337 { 338 namespace Power 339 { 340 namespace Fault 341 { 342 namespace Error 343 { 344 struct PowerSequencerVoltageFault; 345 } // namespace Error 346 } // namespace Fault 347 } // namespace Power 348 } // namespace openbmc_project 349 } // namespace xyz 350 } // namespace sdbusplus 351 352 namespace sdbusplus 353 { 354 namespace xyz 355 { 356 namespace openbmc_project 357 { 358 namespace Power 359 { 360 namespace Fault 361 { 362 namespace Error 363 { 364 struct Shutdown; 365 } // namespace Error 366 } // namespace Fault 367 } // namespace Power 368 } // namespace openbmc_project 369 } // namespace xyz 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 xyz 637 { 638 namespace openbmc_project 639 { 640 namespace Power 641 { 642 namespace Fault 643 { 644 namespace _PowerSupplyUnderVoltageFault 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 _PowerSupplyUnderVoltageFault 657 658 struct PowerSupplyUnderVoltageFault 659 { 660 static constexpr auto L = level::ERR; 661 using RAW_STATUS = _PowerSupplyUnderVoltageFault::RAW_STATUS; 662 using metadata_types = std::tuple<RAW_STATUS>; 663 664 }; 665 666 } // namespace Fault 667 } // namespace Power 668 } // namespace openbmc_project 669 } // namespace xyz 670 671 672 namespace details 673 { 674 675 template <> 676 struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSupplyUnderVoltageFault> 677 { 678 using type = xyz::openbmc_project::Power::Fault::PowerSupplyUnderVoltageFault; 679 }; 680 681 } 682 683 namespace xyz 684 { 685 namespace openbmc_project 686 { 687 namespace Power 688 { 689 namespace Fault 690 { 691 namespace _PowerSupplyInputFault 692 { 693 694 struct RAW_STATUS 695 { 696 static constexpr auto str = "RAW_STATUS=%s"; 697 static constexpr auto str_short = "RAW_STATUS"; 698 using type = std::tuple<std::decay_t<decltype(str)>,const char*>; 699 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; 700 type _entry; 701 }; 702 703 } // namespace _PowerSupplyInputFault 704 705 struct PowerSupplyInputFault 706 { 707 static constexpr auto L = level::ERR; 708 using RAW_STATUS = _PowerSupplyInputFault::RAW_STATUS; 709 using metadata_types = std::tuple<RAW_STATUS>; 710 711 }; 712 713 } // namespace Fault 714 } // namespace Power 715 } // namespace openbmc_project 716 } // namespace xyz 717 718 719 namespace details 720 { 721 722 template <> 723 struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSupplyInputFault> 724 { 725 using type = xyz::openbmc_project::Power::Fault::PowerSupplyInputFault; 726 }; 727 728 } 729 730 namespace xyz 731 { 732 namespace openbmc_project 733 { 734 namespace Power 735 { 736 namespace Fault 737 { 738 namespace _PowerSupplyShouldBeOn 739 { 740 741 struct RAW_STATUS 742 { 743 static constexpr auto str = "RAW_STATUS=%s"; 744 static constexpr auto str_short = "RAW_STATUS"; 745 using type = std::tuple<std::decay_t<decltype(str)>,const char*>; 746 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; 747 type _entry; 748 }; 749 750 } // namespace _PowerSupplyShouldBeOn 751 752 struct PowerSupplyShouldBeOn 753 { 754 static constexpr auto L = level::ERR; 755 using RAW_STATUS = _PowerSupplyShouldBeOn::RAW_STATUS; 756 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::Inventory::CALLOUT_INVENTORY_PATH; 757 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; 758 759 }; 760 761 } // namespace Fault 762 } // namespace Power 763 } // namespace openbmc_project 764 } // namespace xyz 765 766 767 namespace details 768 { 769 770 template <> 771 struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSupplyShouldBeOn> 772 { 773 using type = xyz::openbmc_project::Power::Fault::PowerSupplyShouldBeOn; 774 }; 775 776 } 777 778 namespace xyz 779 { 780 namespace openbmc_project 781 { 782 namespace Power 783 { 784 namespace Fault 785 { 786 namespace _PowerSupplyOutputOvercurrent 787 { 788 789 struct RAW_STATUS 790 { 791 static constexpr auto str = "RAW_STATUS=%s"; 792 static constexpr auto str_short = "RAW_STATUS"; 793 using type = std::tuple<std::decay_t<decltype(str)>,const char*>; 794 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; 795 type _entry; 796 }; 797 798 } // namespace _PowerSupplyOutputOvercurrent 799 800 struct PowerSupplyOutputOvercurrent 801 { 802 static constexpr auto L = level::ERR; 803 using RAW_STATUS = _PowerSupplyOutputOvercurrent::RAW_STATUS; 804 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::Inventory::CALLOUT_INVENTORY_PATH; 805 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; 806 807 }; 808 809 } // namespace Fault 810 } // namespace Power 811 } // namespace openbmc_project 812 } // namespace xyz 813 814 815 namespace details 816 { 817 818 template <> 819 struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSupplyOutputOvercurrent> 820 { 821 using type = xyz::openbmc_project::Power::Fault::PowerSupplyOutputOvercurrent; 822 }; 823 824 } 825 826 namespace xyz 827 { 828 namespace openbmc_project 829 { 830 namespace Power 831 { 832 namespace Fault 833 { 834 namespace _PowerSupplyOutputOvervoltage 835 { 836 837 struct RAW_STATUS 838 { 839 static constexpr auto str = "RAW_STATUS=%s"; 840 static constexpr auto str_short = "RAW_STATUS"; 841 using type = std::tuple<std::decay_t<decltype(str)>,const char*>; 842 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; 843 type _entry; 844 }; 845 846 } // namespace _PowerSupplyOutputOvervoltage 847 848 struct PowerSupplyOutputOvervoltage 849 { 850 static constexpr auto L = level::ERR; 851 using RAW_STATUS = _PowerSupplyOutputOvervoltage::RAW_STATUS; 852 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::Inventory::CALLOUT_INVENTORY_PATH; 853 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; 854 855 }; 856 857 } // namespace Fault 858 } // namespace Power 859 } // namespace openbmc_project 860 } // namespace xyz 861 862 863 namespace details 864 { 865 866 template <> 867 struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSupplyOutputOvervoltage> 868 { 869 using type = xyz::openbmc_project::Power::Fault::PowerSupplyOutputOvervoltage; 870 }; 871 872 } 873 874 namespace xyz 875 { 876 namespace openbmc_project 877 { 878 namespace Power 879 { 880 namespace Fault 881 { 882 namespace _PowerSupplyFanFault 883 { 884 885 struct RAW_STATUS 886 { 887 static constexpr auto str = "RAW_STATUS=%s"; 888 static constexpr auto str_short = "RAW_STATUS"; 889 using type = std::tuple<std::decay_t<decltype(str)>,const char*>; 890 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; 891 type _entry; 892 }; 893 894 } // namespace _PowerSupplyFanFault 895 896 struct PowerSupplyFanFault 897 { 898 static constexpr auto L = level::ERR; 899 using RAW_STATUS = _PowerSupplyFanFault::RAW_STATUS; 900 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::Inventory::CALLOUT_INVENTORY_PATH; 901 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; 902 903 }; 904 905 } // namespace Fault 906 } // namespace Power 907 } // namespace openbmc_project 908 } // namespace xyz 909 910 911 namespace details 912 { 913 914 template <> 915 struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSupplyFanFault> 916 { 917 using type = xyz::openbmc_project::Power::Fault::PowerSupplyFanFault; 918 }; 919 920 } 921 922 namespace xyz 923 { 924 namespace openbmc_project 925 { 926 namespace Power 927 { 928 namespace Fault 929 { 930 namespace _Shutdown 931 { 932 933 934 } // namespace _Shutdown 935 936 struct Shutdown 937 { 938 static constexpr auto L = level::ERR; 939 using metadata_types = std::tuple<>; 940 941 }; 942 943 } // namespace Fault 944 } // namespace Power 945 } // namespace openbmc_project 946 } // namespace xyz 947 948 949 namespace details 950 { 951 952 template <> 953 struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::Shutdown> 954 { 955 using type = xyz::openbmc_project::Power::Fault::Shutdown; 956 }; 957 958 } 959 960 namespace xyz 961 { 962 namespace openbmc_project 963 { 964 namespace Power 965 { 966 namespace Fault 967 { 968 namespace _PowerOnFailure 969 { 970 971 972 } // namespace _PowerOnFailure 973 974 struct PowerOnFailure 975 { 976 static constexpr auto L = level::ERR; 977 using metadata_types = std::tuple<>; 978 979 }; 980 981 } // namespace Fault 982 } // namespace Power 983 } // namespace openbmc_project 984 } // namespace xyz 985 986 987 namespace details 988 { 989 990 template <> 991 struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerOnFailure> 992 { 993 using type = xyz::openbmc_project::Power::Fault::PowerOnFailure; 994 }; 995 996 } 997 998 namespace xyz 999 { 1000 namespace openbmc_project 1001 { 1002 namespace Power 1003 { 1004 namespace Fault 1005 { 1006 namespace _PowerSequencerVoltageFault 1007 { 1008 1009 struct RAIL 1010 { 1011 static constexpr auto str = "RAIL=%d"; 1012 static constexpr auto str_short = "RAIL"; 1013 using type = std::tuple<std::decay_t<decltype(str)>,uint16_t>; 1014 explicit constexpr RAIL(uint16_t a) : _entry(entry(str, a)) {}; 1015 type _entry; 1016 }; 1017 struct RAIL_NAME 1018 { 1019 static constexpr auto str = "RAIL_NAME=%s"; 1020 static constexpr auto str_short = "RAIL_NAME"; 1021 using type = std::tuple<std::decay_t<decltype(str)>,const char*>; 1022 explicit constexpr RAIL_NAME(const char* a) : _entry(entry(str, a)) {}; 1023 type _entry; 1024 }; 1025 struct RAW_STATUS 1026 { 1027 static constexpr auto str = "RAW_STATUS=%s"; 1028 static constexpr auto str_short = "RAW_STATUS"; 1029 using type = std::tuple<std::decay_t<decltype(str)>,const char*>; 1030 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; 1031 type _entry; 1032 }; 1033 1034 } // namespace _PowerSequencerVoltageFault 1035 1036 struct PowerSequencerVoltageFault 1037 { 1038 static constexpr auto L = level::ERR; 1039 using RAIL = _PowerSequencerVoltageFault::RAIL; 1040 using RAIL_NAME = _PowerSequencerVoltageFault::RAIL_NAME; 1041 using RAW_STATUS = _PowerSequencerVoltageFault::RAW_STATUS; 1042 using metadata_types = std::tuple<RAIL, RAIL_NAME, RAW_STATUS>; 1043 1044 }; 1045 1046 } // namespace Fault 1047 } // namespace Power 1048 } // namespace openbmc_project 1049 } // namespace xyz 1050 1051 1052 namespace details 1053 { 1054 1055 template <> 1056 struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSequencerVoltageFault> 1057 { 1058 using type = xyz::openbmc_project::Power::Fault::PowerSequencerVoltageFault; 1059 }; 1060 1061 } 1062 1063 namespace xyz 1064 { 1065 namespace openbmc_project 1066 { 1067 namespace Power 1068 { 1069 namespace Fault 1070 { 1071 namespace _PowerSequencerPGOODFault 1072 { 1073 1074 struct INPUT_NUM 1075 { 1076 static constexpr auto str = "INPUT_NUM=%d"; 1077 static constexpr auto str_short = "INPUT_NUM"; 1078 using type = std::tuple<std::decay_t<decltype(str)>,uint16_t>; 1079 explicit constexpr INPUT_NUM(uint16_t a) : _entry(entry(str, a)) {}; 1080 type _entry; 1081 }; 1082 struct INPUT_NAME 1083 { 1084 static constexpr auto str = "INPUT_NAME=%s"; 1085 static constexpr auto str_short = "INPUT_NAME"; 1086 using type = std::tuple<std::decay_t<decltype(str)>,const char*>; 1087 explicit constexpr INPUT_NAME(const char* a) : _entry(entry(str, a)) {}; 1088 type _entry; 1089 }; 1090 struct RAW_STATUS 1091 { 1092 static constexpr auto str = "RAW_STATUS=%s"; 1093 static constexpr auto str_short = "RAW_STATUS"; 1094 using type = std::tuple<std::decay_t<decltype(str)>,const char*>; 1095 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; 1096 type _entry; 1097 }; 1098 1099 } // namespace _PowerSequencerPGOODFault 1100 1101 struct PowerSequencerPGOODFault 1102 { 1103 static constexpr auto L = level::ERR; 1104 using INPUT_NUM = _PowerSequencerPGOODFault::INPUT_NUM; 1105 using INPUT_NAME = _PowerSequencerPGOODFault::INPUT_NAME; 1106 using RAW_STATUS = _PowerSequencerPGOODFault::RAW_STATUS; 1107 using metadata_types = std::tuple<INPUT_NUM, INPUT_NAME, RAW_STATUS>; 1108 1109 }; 1110 1111 } // namespace Fault 1112 } // namespace Power 1113 } // namespace openbmc_project 1114 } // namespace xyz 1115 1116 1117 namespace details 1118 { 1119 1120 template <> 1121 struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSequencerPGOODFault> 1122 { 1123 using type = xyz::openbmc_project::Power::Fault::PowerSequencerPGOODFault; 1124 }; 1125 1126 } 1127 1128 namespace xyz 1129 { 1130 namespace openbmc_project 1131 { 1132 namespace Power 1133 { 1134 namespace Fault 1135 { 1136 namespace _PowerSequencerFault 1137 { 1138 1139 struct RAW_STATUS 1140 { 1141 static constexpr auto str = "RAW_STATUS=%s"; 1142 static constexpr auto str_short = "RAW_STATUS"; 1143 using type = std::tuple<std::decay_t<decltype(str)>,const char*>; 1144 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; 1145 type _entry; 1146 }; 1147 1148 } // namespace _PowerSequencerFault 1149 1150 struct PowerSequencerFault 1151 { 1152 static constexpr auto L = level::ERR; 1153 using RAW_STATUS = _PowerSequencerFault::RAW_STATUS; 1154 using metadata_types = std::tuple<RAW_STATUS>; 1155 1156 }; 1157 1158 } // namespace Fault 1159 } // namespace Power 1160 } // namespace openbmc_project 1161 } // namespace xyz 1162 1163 1164 namespace details 1165 { 1166 1167 template <> 1168 struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSequencerFault> 1169 { 1170 using type = xyz::openbmc_project::Power::Fault::PowerSequencerFault; 1171 }; 1172 1173 } 1174 1175 namespace xyz 1176 { 1177 namespace openbmc_project 1178 { 1179 namespace Power 1180 { 1181 namespace Fault 1182 { 1183 namespace _GPUPowerFault 1184 { 1185 1186 struct RAW_STATUS 1187 { 1188 static constexpr auto str = "RAW_STATUS=%s"; 1189 static constexpr auto str_short = "RAW_STATUS"; 1190 using type = std::tuple<std::decay_t<decltype(str)>,const char*>; 1191 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; 1192 type _entry; 1193 }; 1194 struct GPU 1195 { 1196 static constexpr auto str = "GPU=%s"; 1197 static constexpr auto str_short = "GPU"; 1198 using type = std::tuple<std::decay_t<decltype(str)>,const char*>; 1199 explicit constexpr GPU(const char* a) : _entry(entry(str, a)) {}; 1200 type _entry; 1201 }; 1202 1203 } // namespace _GPUPowerFault 1204 1205 struct GPUPowerFault 1206 { 1207 static constexpr auto L = level::ERR; 1208 using RAW_STATUS = _GPUPowerFault::RAW_STATUS; 1209 using GPU = _GPUPowerFault::GPU; 1210 using metadata_types = std::tuple<RAW_STATUS, GPU>; 1211 1212 }; 1213 1214 } // namespace Fault 1215 } // namespace Power 1216 } // namespace openbmc_project 1217 } // namespace xyz 1218 1219 1220 namespace details 1221 { 1222 1223 template <> 1224 struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::GPUPowerFault> 1225 { 1226 using type = xyz::openbmc_project::Power::Fault::GPUPowerFault; 1227 }; 1228 1229 } 1230 1231 namespace xyz 1232 { 1233 namespace openbmc_project 1234 { 1235 namespace Power 1236 { 1237 namespace Fault 1238 { 1239 namespace _GPUOverTemp 1240 { 1241 1242 struct RAW_STATUS 1243 { 1244 static constexpr auto str = "RAW_STATUS=%s"; 1245 static constexpr auto str_short = "RAW_STATUS"; 1246 using type = std::tuple<std::decay_t<decltype(str)>,const char*>; 1247 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; 1248 type _entry; 1249 }; 1250 struct GPU 1251 { 1252 static constexpr auto str = "GPU=%s"; 1253 static constexpr auto str_short = "GPU"; 1254 using type = std::tuple<std::decay_t<decltype(str)>,const char*>; 1255 explicit constexpr GPU(const char* a) : _entry(entry(str, a)) {}; 1256 type _entry; 1257 }; 1258 1259 } // namespace _GPUOverTemp 1260 1261 struct GPUOverTemp 1262 { 1263 static constexpr auto L = level::ERR; 1264 using RAW_STATUS = _GPUOverTemp::RAW_STATUS; 1265 using GPU = _GPUOverTemp::GPU; 1266 using metadata_types = std::tuple<RAW_STATUS, GPU>; 1267 1268 }; 1269 1270 } // namespace Fault 1271 } // namespace Power 1272 } // namespace openbmc_project 1273 } // namespace xyz 1274 1275 1276 namespace details 1277 { 1278 1279 template <> 1280 struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::GPUOverTemp> 1281 { 1282 using type = xyz::openbmc_project::Power::Fault::GPUOverTemp; 1283 }; 1284 1285 } 1286 1287 1288 } // namespace logging 1289 1290 } // namespace phosphor 1291