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