blob: 3f3e073d2788ada47a9af8cd859beb61fbf7599d [file] [log] [blame]
Matt Spinler84cd0a52017-08-04 08:53:30 -05001// 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
12namespace sdbusplus
13{
14namespace xyz
15{
16namespace openbmc_project
17{
18namespace Power
19{
20namespace Fault
21{
22namespace Error
23{
Matt Spinlerfacfa902017-08-14 13:43:36 -050024 struct PowerOnFailure;
25} // namespace Error
26} // namespace Fault
27} // namespace Power
28} // namespace openbmc_project
29} // namespace xyz
30} // namespace sdbusplus
31
32namespace sdbusplus
33{
34namespace xyz
35{
36namespace openbmc_project
37{
38namespace Power
39{
40namespace Fault
41{
42namespace Error
43{
Matt Spinler7b14db22017-09-19 10:57:54 -050044 struct PowerSequencerFault;
45} // namespace Error
46} // namespace Fault
47} // namespace Power
48} // namespace openbmc_project
49} // namespace xyz
50} // namespace sdbusplus
51
52namespace sdbusplus
53{
54namespace xyz
55{
56namespace openbmc_project
57{
Brandon Wyman442035f2017-08-08 15:58:45 -050058namespace Common
59{
60namespace Callout
61{
62namespace 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
72namespace sdbusplus
73{
74namespace xyz
75{
76namespace openbmc_project
77{
78namespace Common
79{
80namespace Callout
81{
82namespace 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
92namespace sdbusplus
93{
94namespace xyz
95{
96namespace openbmc_project
97{
98namespace Common
99{
100namespace Callout
101{
102namespace 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
112namespace sdbusplus
113{
114namespace xyz
115{
116namespace openbmc_project
117{
Matt Spinler7b14db22017-09-19 10:57:54 -0500118namespace Power
119{
120namespace Fault
121{
122namespace Error
123{
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500124 struct PowerSequencerPGOODFault;
125} // namespace Error
126} // namespace Fault
127} // namespace Power
128} // namespace openbmc_project
129} // namespace xyz
130} // namespace sdbusplus
131
132namespace sdbusplus
133{
134namespace xyz
135{
136namespace openbmc_project
137{
Brandon Wyman764c7972017-08-22 17:05:36 -0500138namespace Power
139{
140namespace Fault
141{
142namespace 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
152namespace sdbusplus
153{
154namespace xyz
155{
156namespace openbmc_project
157{
Brandon Wyman442035f2017-08-08 15:58:45 -0500158namespace Common
159{
160namespace Callout
161{
162namespace 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
172namespace sdbusplus
173{
174namespace xyz
175{
176namespace openbmc_project
177{
178namespace Power
179{
180namespace Fault
181{
182namespace 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
192namespace sdbusplus
193{
194namespace xyz
195{
196namespace openbmc_project
197{
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500198namespace Power
199{
200namespace Fault
201{
202namespace Error
203{
Brandon Wyman12661f12017-08-31 15:28:21 -0500204 struct PowerSupplyFanFault;
205} // namespace Error
206} // namespace Fault
207} // namespace Power
208} // namespace openbmc_project
209} // namespace xyz
210} // namespace sdbusplus
211
212namespace sdbusplus
213{
214namespace xyz
215{
216namespace openbmc_project
217{
218namespace Power
219{
220namespace Fault
221{
222namespace Error
223{
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500224 struct PowerSupplyInputFault;
225} // namespace Error
226} // namespace Fault
227} // namespace Power
228} // namespace openbmc_project
229} // namespace xyz
230} // namespace sdbusplus
231
232namespace sdbusplus
233{
234namespace xyz
235{
236namespace openbmc_project
237{
238namespace Power
239{
240namespace Fault
241{
242namespace Error
243{
Matt Spinler7b14db22017-09-19 10:57:54 -0500244 struct GPUPowerFault;
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500245} // namespace Error
246} // namespace Fault
247} // namespace Power
248} // namespace openbmc_project
249} // namespace xyz
250} // namespace sdbusplus
251
252namespace sdbusplus
253{
254namespace xyz
255{
256namespace openbmc_project
257{
258namespace Power
259{
260namespace Fault
261{
262namespace Error
263{
Brandon Wymanab05c072017-08-30 18:26:41 -0500264 struct PowerSupplyOutputOvervoltage;
265} // namespace Error
266} // namespace Fault
267} // namespace Power
268} // namespace openbmc_project
269} // namespace xyz
270} // namespace sdbusplus
271
272namespace sdbusplus
273{
274namespace xyz
275{
276namespace openbmc_project
277{
278namespace Power
279{
280namespace Fault
281{
282namespace Error
283{
Brandon Wymanb165c252017-08-25 18:59:54 -0500284 struct PowerSupplyOutputOvercurrent;
285} // namespace Error
286} // namespace Fault
287} // namespace Power
288} // namespace openbmc_project
289} // namespace xyz
290} // namespace sdbusplus
291
292namespace sdbusplus
293{
294namespace xyz
295{
296namespace openbmc_project
297{
298namespace Power
299{
300namespace Fault
301{
302namespace Error
303{
Matt Spinler7b14db22017-09-19 10:57:54 -0500304 struct GPUOverTemp;
305} // namespace Error
306} // namespace Fault
307} // namespace Power
308} // namespace openbmc_project
309} // namespace xyz
310} // namespace sdbusplus
311
312namespace sdbusplus
313{
314namespace xyz
315{
316namespace openbmc_project
317{
Brandon Wyman442035f2017-08-08 15:58:45 -0500318namespace Common
319{
320namespace Callout
321{
322namespace 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
332namespace sdbusplus
333{
334namespace xyz
335{
336namespace openbmc_project
337{
Matt Spinler7b14db22017-09-19 10:57:54 -0500338namespace Power
339{
340namespace Fault
341{
342namespace Error
343{
344 struct PowerSequencerVoltageFault;
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500345} // namespace Error
346} // namespace Fault
347} // namespace Power
348} // namespace openbmc_project
349} // namespace xyz
350} // namespace sdbusplus
351
352namespace sdbusplus
353{
354namespace xyz
355{
356namespace openbmc_project
357{
358namespace Power
359{
360namespace Fault
361{
362namespace Error
363{
Matt Spinler84cd0a52017-08-04 08:53:30 -0500364 struct Shutdown;
365} // namespace Error
366} // namespace Fault
367} // namespace Power
368} // namespace openbmc_project
369} // namespace xyz
370} // namespace sdbusplus
371
372
373namespace phosphor
374{
375
376namespace logging
377{
378
379namespace xyz
380{
381namespace openbmc_project
382{
Brandon Wyman442035f2017-08-08 15:58:45 -0500383namespace Common
384{
385namespace Callout
386{
387namespace _Device
388{
389
390struct 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};
398struct 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
409struct 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
424namespace details
425{
426
427template <>
428struct 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
435namespace xyz
436{
437namespace openbmc_project
438{
439namespace Common
440{
441namespace Callout
442{
443namespace _GPIO
444{
445
446struct 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
457struct 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
473namespace details
474{
475
476template <>
477struct 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
484namespace xyz
485{
486namespace openbmc_project
487{
488namespace Common
489{
490namespace Callout
491{
492namespace _IIC
493{
494
495struct 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};
503struct 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
514struct 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
531namespace details
532{
533
534template <>
535struct 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
542namespace xyz
543{
544namespace openbmc_project
545{
546namespace Common
547{
548namespace Callout
549{
550namespace _Inventory
551{
552
553struct 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
564struct 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
578namespace details
579{
580
581template <>
582struct 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
589namespace xyz
590{
591namespace openbmc_project
592{
593namespace Common
594{
595namespace Callout
596{
597namespace _IPMISensor
598{
599
600struct 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
611struct 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
625namespace details
626{
627
628template <>
629struct 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
636namespace xyz
637{
638namespace openbmc_project
639{
640namespace Power
641{
642namespace Fault
643{
644namespace _PowerSupplyUnderVoltageFault
645{
646
Brandon Wyman10295542017-08-09 18:20:44 -0500647struct 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};
Brandon Wyman442035f2017-08-08 15:58:45 -0500655
656} // namespace _PowerSupplyUnderVoltageFault
657
658struct PowerSupplyUnderVoltageFault
659{
660 static constexpr auto L = level::ERR;
Brandon Wyman10295542017-08-09 18:20:44 -0500661 using RAW_STATUS = _PowerSupplyUnderVoltageFault::RAW_STATUS;
662 using metadata_types = std::tuple<RAW_STATUS>;
Brandon Wyman442035f2017-08-08 15:58:45 -0500663
664};
665
666} // namespace Fault
667} // namespace Power
668} // namespace openbmc_project
669} // namespace xyz
670
671
672namespace details
673{
674
675template <>
676struct 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
683namespace xyz
684{
685namespace openbmc_project
686{
Matt Spinler84cd0a52017-08-04 08:53:30 -0500687namespace Power
688{
689namespace Fault
690{
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500691namespace _PowerSupplyInputFault
692{
693
694struct 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
705struct 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
719namespace details
720{
721
722template <>
723struct 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
730namespace xyz
731{
732namespace openbmc_project
733{
734namespace Power
735{
736namespace Fault
737{
Brandon Wyman764c7972017-08-22 17:05:36 -0500738namespace _PowerSupplyShouldBeOn
739{
740
741struct 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
752struct 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
767namespace details
768{
769
770template <>
771struct 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
778namespace xyz
779{
780namespace openbmc_project
781{
782namespace Power
783{
784namespace Fault
785{
Brandon Wymanb165c252017-08-25 18:59:54 -0500786namespace _PowerSupplyOutputOvercurrent
787{
788
789struct 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
800struct 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
815namespace details
816{
817
818template <>
819struct 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
826namespace xyz
827{
828namespace openbmc_project
829{
830namespace Power
831{
832namespace Fault
833{
Brandon Wymanab05c072017-08-30 18:26:41 -0500834namespace _PowerSupplyOutputOvervoltage
835{
836
837struct 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
848struct 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
863namespace details
864{
865
866template <>
867struct 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
874namespace xyz
875{
876namespace openbmc_project
877{
878namespace Power
879{
880namespace Fault
881{
Brandon Wyman12661f12017-08-31 15:28:21 -0500882namespace _PowerSupplyFanFault
883{
884
885struct 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
896struct 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
911namespace details
912{
913
914template <>
915struct 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
922namespace xyz
923{
924namespace openbmc_project
925{
926namespace Power
927{
928namespace Fault
929{
Matt Spinler84cd0a52017-08-04 08:53:30 -0500930namespace _Shutdown
931{
932
933
934} // namespace _Shutdown
935
936struct 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
949namespace details
950{
951
952template <>
953struct 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
Matt Spinlerfacfa902017-08-14 13:43:36 -0500960namespace xyz
961{
962namespace openbmc_project
963{
964namespace Power
965{
966namespace Fault
967{
968namespace _PowerOnFailure
969{
970
971
972} // namespace _PowerOnFailure
973
974struct 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
987namespace details
988{
989
990template <>
991struct 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
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500998namespace xyz
999{
1000namespace openbmc_project
1001{
1002namespace Power
1003{
1004namespace Fault
1005{
1006namespace _PowerSequencerVoltageFault
1007{
1008
1009struct 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};
1017struct 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};
1025struct 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
1036struct 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
1052namespace details
1053{
1054
1055template <>
1056struct 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
1063namespace xyz
1064{
1065namespace openbmc_project
1066{
1067namespace Power
1068{
1069namespace Fault
1070{
1071namespace _PowerSequencerPGOODFault
1072{
1073
1074struct 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};
1082struct 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};
1090struct 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
1101struct 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
1117namespace details
1118{
1119
1120template <>
1121struct 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
1128namespace xyz
1129{
1130namespace openbmc_project
1131{
1132namespace Power
1133{
1134namespace Fault
1135{
1136namespace _PowerSequencerFault
1137{
1138
1139struct 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
1150struct 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
1164namespace details
1165{
1166
1167template <>
1168struct 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
Matt Spinler7b14db22017-09-19 10:57:54 -05001175namespace xyz
1176{
1177namespace openbmc_project
1178{
1179namespace Power
1180{
1181namespace Fault
1182{
1183namespace _GPUPowerFault
1184{
1185
1186struct 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};
1194struct 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
1205struct 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
1220namespace details
1221{
1222
1223template <>
1224struct 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
1231namespace xyz
1232{
1233namespace openbmc_project
1234{
1235namespace Power
1236{
1237namespace Fault
1238{
1239namespace _GPUOverTemp
1240{
1241
1242struct 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};
1250struct 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
1261struct 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
1276namespace details
1277{
1278
1279template <>
1280struct 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
Matt Spinler84cd0a52017-08-04 08:53:30 -05001287
1288} // namespace logging
1289
1290} // namespace phosphor