xref: /openbmc/phosphor-power/elog-errors.hpp (revision ab05c079)
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 PowerSupplyInputFault;
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 GPUPowerFault;
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 PowerSupplyOutputOvervoltage;
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 PowerSupplyOutputOvercurrent;
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 GPUOverTemp;
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 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 xyz
315 {
316 namespace openbmc_project
317 {
318 namespace Power
319 {
320 namespace Fault
321 {
322 namespace Error
323 {
324     struct PowerSequencerVoltageFault;
325 } // namespace Error
326 } // namespace Fault
327 } // namespace Power
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 Shutdown;
345 } // namespace Error
346 } // namespace Fault
347 } // namespace Power
348 } // namespace openbmc_project
349 } // namespace xyz
350 } // namespace sdbusplus
351 
352 
353 namespace phosphor
354 {
355 
356 namespace logging
357 {
358 
359 namespace xyz
360 {
361 namespace openbmc_project
362 {
363 namespace Common
364 {
365 namespace Callout
366 {
367 namespace _Device
368 {
369 
370 struct CALLOUT_ERRNO
371 {
372     static constexpr auto str = "CALLOUT_ERRNO=%d";
373     static constexpr auto str_short = "CALLOUT_ERRNO";
374     using type = std::tuple<std::decay_t<decltype(str)>,int32_t>;
375     explicit constexpr CALLOUT_ERRNO(int32_t a) : _entry(entry(str, a)) {};
376     type _entry;
377 };
378 struct CALLOUT_DEVICE_PATH
379 {
380     static constexpr auto str = "CALLOUT_DEVICE_PATH=%s";
381     static constexpr auto str_short = "CALLOUT_DEVICE_PATH";
382     using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
383     explicit constexpr CALLOUT_DEVICE_PATH(const char* a) : _entry(entry(str, a)) {};
384     type _entry;
385 };
386 
387 }  // namespace _Device
388 
389 struct Device
390 {
391     static constexpr auto L = level::ERR;
392     using CALLOUT_ERRNO = _Device::CALLOUT_ERRNO;
393     using CALLOUT_DEVICE_PATH = _Device::CALLOUT_DEVICE_PATH;
394     using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
395 
396 };
397 
398 } // namespace Callout
399 } // namespace Common
400 } // namespace openbmc_project
401 } // namespace xyz
402 
403 
404 namespace details
405 {
406 
407 template <>
408 struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::Device>
409 {
410     using type = xyz::openbmc_project::Common::Callout::Device;
411 };
412 
413 }
414 
415 namespace xyz
416 {
417 namespace openbmc_project
418 {
419 namespace Common
420 {
421 namespace Callout
422 {
423 namespace _GPIO
424 {
425 
426 struct CALLOUT_GPIO_NUM
427 {
428     static constexpr auto str = "CALLOUT_GPIO_NUM=%u";
429     static constexpr auto str_short = "CALLOUT_GPIO_NUM";
430     using type = std::tuple<std::decay_t<decltype(str)>,uint32_t>;
431     explicit constexpr CALLOUT_GPIO_NUM(uint32_t a) : _entry(entry(str, a)) {};
432     type _entry;
433 };
434 
435 }  // namespace _GPIO
436 
437 struct GPIO
438 {
439     static constexpr auto L = level::ERR;
440     using CALLOUT_GPIO_NUM = _GPIO::CALLOUT_GPIO_NUM;
441     using CALLOUT_ERRNO = xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
442     using CALLOUT_DEVICE_PATH = xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
443     using metadata_types = std::tuple<CALLOUT_GPIO_NUM, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
444 
445 };
446 
447 } // namespace Callout
448 } // namespace Common
449 } // namespace openbmc_project
450 } // namespace xyz
451 
452 
453 namespace details
454 {
455 
456 template <>
457 struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::GPIO>
458 {
459     using type = xyz::openbmc_project::Common::Callout::GPIO;
460 };
461 
462 }
463 
464 namespace xyz
465 {
466 namespace openbmc_project
467 {
468 namespace Common
469 {
470 namespace Callout
471 {
472 namespace _IIC
473 {
474 
475 struct CALLOUT_IIC_BUS
476 {
477     static constexpr auto str = "CALLOUT_IIC_BUS=%s";
478     static constexpr auto str_short = "CALLOUT_IIC_BUS";
479     using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
480     explicit constexpr CALLOUT_IIC_BUS(const char* a) : _entry(entry(str, a)) {};
481     type _entry;
482 };
483 struct CALLOUT_IIC_ADDR
484 {
485     static constexpr auto str = "CALLOUT_IIC_ADDR=0x%hx";
486     static constexpr auto str_short = "CALLOUT_IIC_ADDR";
487     using type = std::tuple<std::decay_t<decltype(str)>,uint16_t>;
488     explicit constexpr CALLOUT_IIC_ADDR(uint16_t a) : _entry(entry(str, a)) {};
489     type _entry;
490 };
491 
492 }  // namespace _IIC
493 
494 struct IIC
495 {
496     static constexpr auto L = level::ERR;
497     using CALLOUT_IIC_BUS = _IIC::CALLOUT_IIC_BUS;
498     using CALLOUT_IIC_ADDR = _IIC::CALLOUT_IIC_ADDR;
499     using CALLOUT_ERRNO = xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
500     using CALLOUT_DEVICE_PATH = xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
501     using metadata_types = std::tuple<CALLOUT_IIC_BUS, CALLOUT_IIC_ADDR, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
502 
503 };
504 
505 } // namespace Callout
506 } // namespace Common
507 } // namespace openbmc_project
508 } // namespace xyz
509 
510 
511 namespace details
512 {
513 
514 template <>
515 struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::IIC>
516 {
517     using type = xyz::openbmc_project::Common::Callout::IIC;
518 };
519 
520 }
521 
522 namespace xyz
523 {
524 namespace openbmc_project
525 {
526 namespace Common
527 {
528 namespace Callout
529 {
530 namespace _Inventory
531 {
532 
533 struct CALLOUT_INVENTORY_PATH
534 {
535     static constexpr auto str = "CALLOUT_INVENTORY_PATH=%s";
536     static constexpr auto str_short = "CALLOUT_INVENTORY_PATH";
537     using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
538     explicit constexpr CALLOUT_INVENTORY_PATH(const char* a) : _entry(entry(str, a)) {};
539     type _entry;
540 };
541 
542 }  // namespace _Inventory
543 
544 struct Inventory
545 {
546     static constexpr auto L = level::ERR;
547     using CALLOUT_INVENTORY_PATH = _Inventory::CALLOUT_INVENTORY_PATH;
548     using metadata_types = std::tuple<CALLOUT_INVENTORY_PATH>;
549 
550 };
551 
552 } // namespace Callout
553 } // namespace Common
554 } // namespace openbmc_project
555 } // namespace xyz
556 
557 
558 namespace details
559 {
560 
561 template <>
562 struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::Inventory>
563 {
564     using type = xyz::openbmc_project::Common::Callout::Inventory;
565 };
566 
567 }
568 
569 namespace xyz
570 {
571 namespace openbmc_project
572 {
573 namespace Common
574 {
575 namespace Callout
576 {
577 namespace _IPMISensor
578 {
579 
580 struct CALLOUT_IPMI_SENSOR_NUM
581 {
582     static constexpr auto str = "CALLOUT_IPMI_SENSOR_NUM=%u";
583     static constexpr auto str_short = "CALLOUT_IPMI_SENSOR_NUM";
584     using type = std::tuple<std::decay_t<decltype(str)>,uint32_t>;
585     explicit constexpr CALLOUT_IPMI_SENSOR_NUM(uint32_t a) : _entry(entry(str, a)) {};
586     type _entry;
587 };
588 
589 }  // namespace _IPMISensor
590 
591 struct IPMISensor
592 {
593     static constexpr auto L = level::ERR;
594     using CALLOUT_IPMI_SENSOR_NUM = _IPMISensor::CALLOUT_IPMI_SENSOR_NUM;
595     using metadata_types = std::tuple<CALLOUT_IPMI_SENSOR_NUM>;
596 
597 };
598 
599 } // namespace Callout
600 } // namespace Common
601 } // namespace openbmc_project
602 } // namespace xyz
603 
604 
605 namespace details
606 {
607 
608 template <>
609 struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::IPMISensor>
610 {
611     using type = xyz::openbmc_project::Common::Callout::IPMISensor;
612 };
613 
614 }
615 
616 namespace xyz
617 {
618 namespace openbmc_project
619 {
620 namespace Power
621 {
622 namespace Fault
623 {
624 namespace _PowerSupplyUnderVoltageFault
625 {
626 
627 struct RAW_STATUS
628 {
629     static constexpr auto str = "RAW_STATUS=%s";
630     static constexpr auto str_short = "RAW_STATUS";
631     using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
632     explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
633     type _entry;
634 };
635 
636 }  // namespace _PowerSupplyUnderVoltageFault
637 
638 struct PowerSupplyUnderVoltageFault
639 {
640     static constexpr auto L = level::ERR;
641     using RAW_STATUS = _PowerSupplyUnderVoltageFault::RAW_STATUS;
642     using metadata_types = std::tuple<RAW_STATUS>;
643 
644 };
645 
646 } // namespace Fault
647 } // namespace Power
648 } // namespace openbmc_project
649 } // namespace xyz
650 
651 
652 namespace details
653 {
654 
655 template <>
656 struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSupplyUnderVoltageFault>
657 {
658     using type = xyz::openbmc_project::Power::Fault::PowerSupplyUnderVoltageFault;
659 };
660 
661 }
662 
663 namespace xyz
664 {
665 namespace openbmc_project
666 {
667 namespace Power
668 {
669 namespace Fault
670 {
671 namespace _PowerSupplyInputFault
672 {
673 
674 struct RAW_STATUS
675 {
676     static constexpr auto str = "RAW_STATUS=%s";
677     static constexpr auto str_short = "RAW_STATUS";
678     using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
679     explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
680     type _entry;
681 };
682 
683 }  // namespace _PowerSupplyInputFault
684 
685 struct PowerSupplyInputFault
686 {
687     static constexpr auto L = level::ERR;
688     using RAW_STATUS = _PowerSupplyInputFault::RAW_STATUS;
689     using metadata_types = std::tuple<RAW_STATUS>;
690 
691 };
692 
693 } // namespace Fault
694 } // namespace Power
695 } // namespace openbmc_project
696 } // namespace xyz
697 
698 
699 namespace details
700 {
701 
702 template <>
703 struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSupplyInputFault>
704 {
705     using type = xyz::openbmc_project::Power::Fault::PowerSupplyInputFault;
706 };
707 
708 }
709 
710 namespace xyz
711 {
712 namespace openbmc_project
713 {
714 namespace Power
715 {
716 namespace Fault
717 {
718 namespace _PowerSupplyShouldBeOn
719 {
720 
721 struct RAW_STATUS
722 {
723     static constexpr auto str = "RAW_STATUS=%s";
724     static constexpr auto str_short = "RAW_STATUS";
725     using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
726     explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
727     type _entry;
728 };
729 
730 }  // namespace _PowerSupplyShouldBeOn
731 
732 struct PowerSupplyShouldBeOn
733 {
734     static constexpr auto L = level::ERR;
735     using RAW_STATUS = _PowerSupplyShouldBeOn::RAW_STATUS;
736     using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::Inventory::CALLOUT_INVENTORY_PATH;
737     using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
738 
739 };
740 
741 } // namespace Fault
742 } // namespace Power
743 } // namespace openbmc_project
744 } // namespace xyz
745 
746 
747 namespace details
748 {
749 
750 template <>
751 struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSupplyShouldBeOn>
752 {
753     using type = xyz::openbmc_project::Power::Fault::PowerSupplyShouldBeOn;
754 };
755 
756 }
757 
758 namespace xyz
759 {
760 namespace openbmc_project
761 {
762 namespace Power
763 {
764 namespace Fault
765 {
766 namespace _PowerSupplyOutputOvercurrent
767 {
768 
769 struct RAW_STATUS
770 {
771     static constexpr auto str = "RAW_STATUS=%s";
772     static constexpr auto str_short = "RAW_STATUS";
773     using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
774     explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
775     type _entry;
776 };
777 
778 }  // namespace _PowerSupplyOutputOvercurrent
779 
780 struct PowerSupplyOutputOvercurrent
781 {
782     static constexpr auto L = level::ERR;
783     using RAW_STATUS = _PowerSupplyOutputOvercurrent::RAW_STATUS;
784     using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::Inventory::CALLOUT_INVENTORY_PATH;
785     using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
786 
787 };
788 
789 } // namespace Fault
790 } // namespace Power
791 } // namespace openbmc_project
792 } // namespace xyz
793 
794 
795 namespace details
796 {
797 
798 template <>
799 struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSupplyOutputOvercurrent>
800 {
801     using type = xyz::openbmc_project::Power::Fault::PowerSupplyOutputOvercurrent;
802 };
803 
804 }
805 
806 namespace xyz
807 {
808 namespace openbmc_project
809 {
810 namespace Power
811 {
812 namespace Fault
813 {
814 namespace _PowerSupplyOutputOvervoltage
815 {
816 
817 struct RAW_STATUS
818 {
819     static constexpr auto str = "RAW_STATUS=%s";
820     static constexpr auto str_short = "RAW_STATUS";
821     using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
822     explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
823     type _entry;
824 };
825 
826 }  // namespace _PowerSupplyOutputOvervoltage
827 
828 struct PowerSupplyOutputOvervoltage
829 {
830     static constexpr auto L = level::ERR;
831     using RAW_STATUS = _PowerSupplyOutputOvervoltage::RAW_STATUS;
832     using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::Inventory::CALLOUT_INVENTORY_PATH;
833     using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
834 
835 };
836 
837 } // namespace Fault
838 } // namespace Power
839 } // namespace openbmc_project
840 } // namespace xyz
841 
842 
843 namespace details
844 {
845 
846 template <>
847 struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSupplyOutputOvervoltage>
848 {
849     using type = xyz::openbmc_project::Power::Fault::PowerSupplyOutputOvervoltage;
850 };
851 
852 }
853 
854 namespace xyz
855 {
856 namespace openbmc_project
857 {
858 namespace Power
859 {
860 namespace Fault
861 {
862 namespace _Shutdown
863 {
864 
865 
866 }  // namespace _Shutdown
867 
868 struct Shutdown
869 {
870     static constexpr auto L = level::ERR;
871     using metadata_types = std::tuple<>;
872 
873 };
874 
875 } // namespace Fault
876 } // namespace Power
877 } // namespace openbmc_project
878 } // namespace xyz
879 
880 
881 namespace details
882 {
883 
884 template <>
885 struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::Shutdown>
886 {
887     using type = xyz::openbmc_project::Power::Fault::Shutdown;
888 };
889 
890 }
891 
892 namespace xyz
893 {
894 namespace openbmc_project
895 {
896 namespace Power
897 {
898 namespace Fault
899 {
900 namespace _PowerOnFailure
901 {
902 
903 
904 }  // namespace _PowerOnFailure
905 
906 struct PowerOnFailure
907 {
908     static constexpr auto L = level::ERR;
909     using metadata_types = std::tuple<>;
910 
911 };
912 
913 } // namespace Fault
914 } // namespace Power
915 } // namespace openbmc_project
916 } // namespace xyz
917 
918 
919 namespace details
920 {
921 
922 template <>
923 struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerOnFailure>
924 {
925     using type = xyz::openbmc_project::Power::Fault::PowerOnFailure;
926 };
927 
928 }
929 
930 namespace xyz
931 {
932 namespace openbmc_project
933 {
934 namespace Power
935 {
936 namespace Fault
937 {
938 namespace _PowerSequencerVoltageFault
939 {
940 
941 struct RAIL
942 {
943     static constexpr auto str = "RAIL=%d";
944     static constexpr auto str_short = "RAIL";
945     using type = std::tuple<std::decay_t<decltype(str)>,uint16_t>;
946     explicit constexpr RAIL(uint16_t a) : _entry(entry(str, a)) {};
947     type _entry;
948 };
949 struct RAIL_NAME
950 {
951     static constexpr auto str = "RAIL_NAME=%s";
952     static constexpr auto str_short = "RAIL_NAME";
953     using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
954     explicit constexpr RAIL_NAME(const char* a) : _entry(entry(str, a)) {};
955     type _entry;
956 };
957 struct RAW_STATUS
958 {
959     static constexpr auto str = "RAW_STATUS=%s";
960     static constexpr auto str_short = "RAW_STATUS";
961     using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
962     explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
963     type _entry;
964 };
965 
966 }  // namespace _PowerSequencerVoltageFault
967 
968 struct PowerSequencerVoltageFault
969 {
970     static constexpr auto L = level::ERR;
971     using RAIL = _PowerSequencerVoltageFault::RAIL;
972     using RAIL_NAME = _PowerSequencerVoltageFault::RAIL_NAME;
973     using RAW_STATUS = _PowerSequencerVoltageFault::RAW_STATUS;
974     using metadata_types = std::tuple<RAIL, RAIL_NAME, RAW_STATUS>;
975 
976 };
977 
978 } // namespace Fault
979 } // namespace Power
980 } // namespace openbmc_project
981 } // namespace xyz
982 
983 
984 namespace details
985 {
986 
987 template <>
988 struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSequencerVoltageFault>
989 {
990     using type = xyz::openbmc_project::Power::Fault::PowerSequencerVoltageFault;
991 };
992 
993 }
994 
995 namespace xyz
996 {
997 namespace openbmc_project
998 {
999 namespace Power
1000 {
1001 namespace Fault
1002 {
1003 namespace _PowerSequencerPGOODFault
1004 {
1005 
1006 struct INPUT_NUM
1007 {
1008     static constexpr auto str = "INPUT_NUM=%d";
1009     static constexpr auto str_short = "INPUT_NUM";
1010     using type = std::tuple<std::decay_t<decltype(str)>,uint16_t>;
1011     explicit constexpr INPUT_NUM(uint16_t a) : _entry(entry(str, a)) {};
1012     type _entry;
1013 };
1014 struct INPUT_NAME
1015 {
1016     static constexpr auto str = "INPUT_NAME=%s";
1017     static constexpr auto str_short = "INPUT_NAME";
1018     using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
1019     explicit constexpr INPUT_NAME(const char* a) : _entry(entry(str, a)) {};
1020     type _entry;
1021 };
1022 struct RAW_STATUS
1023 {
1024     static constexpr auto str = "RAW_STATUS=%s";
1025     static constexpr auto str_short = "RAW_STATUS";
1026     using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
1027     explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
1028     type _entry;
1029 };
1030 
1031 }  // namespace _PowerSequencerPGOODFault
1032 
1033 struct PowerSequencerPGOODFault
1034 {
1035     static constexpr auto L = level::ERR;
1036     using INPUT_NUM = _PowerSequencerPGOODFault::INPUT_NUM;
1037     using INPUT_NAME = _PowerSequencerPGOODFault::INPUT_NAME;
1038     using RAW_STATUS = _PowerSequencerPGOODFault::RAW_STATUS;
1039     using metadata_types = std::tuple<INPUT_NUM, INPUT_NAME, RAW_STATUS>;
1040 
1041 };
1042 
1043 } // namespace Fault
1044 } // namespace Power
1045 } // namespace openbmc_project
1046 } // namespace xyz
1047 
1048 
1049 namespace details
1050 {
1051 
1052 template <>
1053 struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSequencerPGOODFault>
1054 {
1055     using type = xyz::openbmc_project::Power::Fault::PowerSequencerPGOODFault;
1056 };
1057 
1058 }
1059 
1060 namespace xyz
1061 {
1062 namespace openbmc_project
1063 {
1064 namespace Power
1065 {
1066 namespace Fault
1067 {
1068 namespace _PowerSequencerFault
1069 {
1070 
1071 struct RAW_STATUS
1072 {
1073     static constexpr auto str = "RAW_STATUS=%s";
1074     static constexpr auto str_short = "RAW_STATUS";
1075     using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
1076     explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
1077     type _entry;
1078 };
1079 
1080 }  // namespace _PowerSequencerFault
1081 
1082 struct PowerSequencerFault
1083 {
1084     static constexpr auto L = level::ERR;
1085     using RAW_STATUS = _PowerSequencerFault::RAW_STATUS;
1086     using metadata_types = std::tuple<RAW_STATUS>;
1087 
1088 };
1089 
1090 } // namespace Fault
1091 } // namespace Power
1092 } // namespace openbmc_project
1093 } // namespace xyz
1094 
1095 
1096 namespace details
1097 {
1098 
1099 template <>
1100 struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSequencerFault>
1101 {
1102     using type = xyz::openbmc_project::Power::Fault::PowerSequencerFault;
1103 };
1104 
1105 }
1106 
1107 namespace xyz
1108 {
1109 namespace openbmc_project
1110 {
1111 namespace Power
1112 {
1113 namespace Fault
1114 {
1115 namespace _GPUPowerFault
1116 {
1117 
1118 struct RAW_STATUS
1119 {
1120     static constexpr auto str = "RAW_STATUS=%s";
1121     static constexpr auto str_short = "RAW_STATUS";
1122     using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
1123     explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
1124     type _entry;
1125 };
1126 struct GPU
1127 {
1128     static constexpr auto str = "GPU=%s";
1129     static constexpr auto str_short = "GPU";
1130     using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
1131     explicit constexpr GPU(const char* a) : _entry(entry(str, a)) {};
1132     type _entry;
1133 };
1134 
1135 }  // namespace _GPUPowerFault
1136 
1137 struct GPUPowerFault
1138 {
1139     static constexpr auto L = level::ERR;
1140     using RAW_STATUS = _GPUPowerFault::RAW_STATUS;
1141     using GPU = _GPUPowerFault::GPU;
1142     using metadata_types = std::tuple<RAW_STATUS, GPU>;
1143 
1144 };
1145 
1146 } // namespace Fault
1147 } // namespace Power
1148 } // namespace openbmc_project
1149 } // namespace xyz
1150 
1151 
1152 namespace details
1153 {
1154 
1155 template <>
1156 struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::GPUPowerFault>
1157 {
1158     using type = xyz::openbmc_project::Power::Fault::GPUPowerFault;
1159 };
1160 
1161 }
1162 
1163 namespace xyz
1164 {
1165 namespace openbmc_project
1166 {
1167 namespace Power
1168 {
1169 namespace Fault
1170 {
1171 namespace _GPUOverTemp
1172 {
1173 
1174 struct RAW_STATUS
1175 {
1176     static constexpr auto str = "RAW_STATUS=%s";
1177     static constexpr auto str_short = "RAW_STATUS";
1178     using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
1179     explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
1180     type _entry;
1181 };
1182 struct GPU
1183 {
1184     static constexpr auto str = "GPU=%s";
1185     static constexpr auto str_short = "GPU";
1186     using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
1187     explicit constexpr GPU(const char* a) : _entry(entry(str, a)) {};
1188     type _entry;
1189 };
1190 
1191 }  // namespace _GPUOverTemp
1192 
1193 struct GPUOverTemp
1194 {
1195     static constexpr auto L = level::ERR;
1196     using RAW_STATUS = _GPUOverTemp::RAW_STATUS;
1197     using GPU = _GPUOverTemp::GPU;
1198     using metadata_types = std::tuple<RAW_STATUS, GPU>;
1199 
1200 };
1201 
1202 } // namespace Fault
1203 } // namespace Power
1204 } // namespace openbmc_project
1205 } // namespace xyz
1206 
1207 
1208 namespace details
1209 {
1210 
1211 template <>
1212 struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::GPUOverTemp>
1213 {
1214     using type = xyz::openbmc_project::Power::Fault::GPUOverTemp;
1215 };
1216 
1217 }
1218 
1219 
1220 } // namespace logging
1221 
1222 } // namespace phosphor
1223