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