blob: 892ce203c13a18c7910790e978a364e002f6b471 [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 Wyman253dc9b2017-08-12 13:45:52 -0500204 struct PowerSupplyInputFault;
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{
Matt Spinler7b14db22017-09-19 10:57:54 -0500224 struct GPUPowerFault;
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500225} // 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{
Brandon Wymanab05c072017-08-30 18:26:41 -0500244 struct PowerSupplyOutputOvervoltage;
245} // 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 Wymanb165c252017-08-25 18:59:54 -0500264 struct PowerSupplyOutputOvercurrent;
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{
Matt Spinler7b14db22017-09-19 10:57:54 -0500284 struct GPUOverTemp;
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{
Brandon Wyman442035f2017-08-08 15:58:45 -0500298namespace Common
299{
300namespace Callout
301{
302namespace 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
312namespace sdbusplus
313{
314namespace xyz
315{
316namespace openbmc_project
317{
Matt Spinler7b14db22017-09-19 10:57:54 -0500318namespace Power
319{
320namespace Fault
321{
322namespace Error
323{
324 struct PowerSequencerVoltageFault;
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500325} // namespace Error
326} // namespace Fault
327} // namespace Power
328} // namespace openbmc_project
329} // namespace xyz
330} // namespace sdbusplus
331
332namespace sdbusplus
333{
334namespace xyz
335{
336namespace openbmc_project
337{
338namespace Power
339{
340namespace Fault
341{
342namespace Error
343{
Matt Spinler84cd0a52017-08-04 08:53:30 -0500344 struct Shutdown;
345} // namespace Error
346} // namespace Fault
347} // namespace Power
348} // namespace openbmc_project
349} // namespace xyz
350} // namespace sdbusplus
351
352
353namespace phosphor
354{
355
356namespace logging
357{
358
359namespace xyz
360{
361namespace openbmc_project
362{
Brandon Wyman442035f2017-08-08 15:58:45 -0500363namespace Common
364{
365namespace Callout
366{
367namespace _Device
368{
369
370struct 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};
378struct 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
389struct 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
404namespace details
405{
406
407template <>
408struct 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
415namespace xyz
416{
417namespace openbmc_project
418{
419namespace Common
420{
421namespace Callout
422{
423namespace _GPIO
424{
425
426struct 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
437struct 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
453namespace details
454{
455
456template <>
457struct 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
464namespace xyz
465{
466namespace openbmc_project
467{
468namespace Common
469{
470namespace Callout
471{
472namespace _IIC
473{
474
475struct 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};
483struct 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
494struct 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
511namespace details
512{
513
514template <>
515struct 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
522namespace xyz
523{
524namespace openbmc_project
525{
526namespace Common
527{
528namespace Callout
529{
530namespace _Inventory
531{
532
533struct 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
544struct 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
558namespace details
559{
560
561template <>
562struct 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
569namespace xyz
570{
571namespace openbmc_project
572{
573namespace Common
574{
575namespace Callout
576{
577namespace _IPMISensor
578{
579
580struct 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
591struct 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
605namespace details
606{
607
608template <>
609struct 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
616namespace xyz
617{
618namespace openbmc_project
619{
620namespace Power
621{
622namespace Fault
623{
624namespace _PowerSupplyUnderVoltageFault
625{
626
Brandon Wyman10295542017-08-09 18:20:44 -0500627struct 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};
Brandon Wyman442035f2017-08-08 15:58:45 -0500635
636} // namespace _PowerSupplyUnderVoltageFault
637
638struct PowerSupplyUnderVoltageFault
639{
640 static constexpr auto L = level::ERR;
Brandon Wyman10295542017-08-09 18:20:44 -0500641 using RAW_STATUS = _PowerSupplyUnderVoltageFault::RAW_STATUS;
642 using metadata_types = std::tuple<RAW_STATUS>;
Brandon Wyman442035f2017-08-08 15:58:45 -0500643
644};
645
646} // namespace Fault
647} // namespace Power
648} // namespace openbmc_project
649} // namespace xyz
650
651
652namespace details
653{
654
655template <>
656struct 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
663namespace xyz
664{
665namespace openbmc_project
666{
Matt Spinler84cd0a52017-08-04 08:53:30 -0500667namespace Power
668{
669namespace Fault
670{
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500671namespace _PowerSupplyInputFault
672{
673
674struct 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
685struct 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
699namespace details
700{
701
702template <>
703struct 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
710namespace xyz
711{
712namespace openbmc_project
713{
714namespace Power
715{
716namespace Fault
717{
Brandon Wyman764c7972017-08-22 17:05:36 -0500718namespace _PowerSupplyShouldBeOn
719{
720
721struct 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
732struct 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
747namespace details
748{
749
750template <>
751struct 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
758namespace xyz
759{
760namespace openbmc_project
761{
762namespace Power
763{
764namespace Fault
765{
Brandon Wymanb165c252017-08-25 18:59:54 -0500766namespace _PowerSupplyOutputOvercurrent
767{
768
769struct 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
780struct 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
795namespace details
796{
797
798template <>
799struct 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
806namespace xyz
807{
808namespace openbmc_project
809{
810namespace Power
811{
812namespace Fault
813{
Brandon Wymanab05c072017-08-30 18:26:41 -0500814namespace _PowerSupplyOutputOvervoltage
815{
816
817struct 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
828struct 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
843namespace details
844{
845
846template <>
847struct 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
854namespace xyz
855{
856namespace openbmc_project
857{
858namespace Power
859{
860namespace Fault
861{
Matt Spinler84cd0a52017-08-04 08:53:30 -0500862namespace _Shutdown
863{
864
865
866} // namespace _Shutdown
867
868struct 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
881namespace details
882{
883
884template <>
885struct 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
Matt Spinlerfacfa902017-08-14 13:43:36 -0500892namespace xyz
893{
894namespace openbmc_project
895{
896namespace Power
897{
898namespace Fault
899{
900namespace _PowerOnFailure
901{
902
903
904} // namespace _PowerOnFailure
905
906struct 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
919namespace details
920{
921
922template <>
923struct 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
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500930namespace xyz
931{
932namespace openbmc_project
933{
934namespace Power
935{
936namespace Fault
937{
938namespace _PowerSequencerVoltageFault
939{
940
941struct 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};
949struct 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};
957struct 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
968struct 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
984namespace details
985{
986
987template <>
988struct 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
995namespace xyz
996{
997namespace openbmc_project
998{
999namespace Power
1000{
1001namespace Fault
1002{
1003namespace _PowerSequencerPGOODFault
1004{
1005
1006struct 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};
1014struct 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};
1022struct 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
1033struct 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
1049namespace details
1050{
1051
1052template <>
1053struct 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
1060namespace xyz
1061{
1062namespace openbmc_project
1063{
1064namespace Power
1065{
1066namespace Fault
1067{
1068namespace _PowerSequencerFault
1069{
1070
1071struct 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
1082struct 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
1096namespace details
1097{
1098
1099template <>
1100struct 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
Matt Spinler7b14db22017-09-19 10:57:54 -05001107namespace xyz
1108{
1109namespace openbmc_project
1110{
1111namespace Power
1112{
1113namespace Fault
1114{
1115namespace _GPUPowerFault
1116{
1117
1118struct 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};
1126struct 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
1137struct 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
1152namespace details
1153{
1154
1155template <>
1156struct 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
1163namespace xyz
1164{
1165namespace openbmc_project
1166{
1167namespace Power
1168{
1169namespace Fault
1170{
1171namespace _GPUOverTemp
1172{
1173
1174struct 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};
1182struct 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
1193struct 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
1208namespace details
1209{
1210
1211template <>
1212struct 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
Matt Spinler84cd0a52017-08-04 08:53:30 -05001219
1220} // namespace logging
1221
1222} // namespace phosphor