blob: 7309c89e9cae5675ee75df64c4fe9289055c0af7 [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 Wyman442035f2017-08-08 15:58:45 -0500138namespace Common
139{
140namespace Callout
141{
142namespace Error
143{
144 struct Device;
145} // namespace Error
146} // namespace Callout
147} // namespace Common
148} // namespace openbmc_project
149} // namespace xyz
150} // namespace sdbusplus
151
152namespace sdbusplus
153{
154namespace xyz
155{
156namespace openbmc_project
157{
158namespace Power
159{
160namespace Fault
161{
162namespace Error
163{
164 struct PowerSupplyUnderVoltageFault;
165} // namespace Error
166} // namespace Fault
167} // namespace Power
168} // namespace openbmc_project
169} // namespace xyz
170} // namespace sdbusplus
171
172namespace sdbusplus
173{
174namespace xyz
175{
176namespace openbmc_project
177{
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500178namespace Power
179{
180namespace Fault
181{
182namespace Error
183{
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500184 struct PowerSupplyInputFault;
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{
198namespace Power
199{
200namespace Fault
201{
202namespace Error
203{
Matt Spinler7b14db22017-09-19 10:57:54 -0500204 struct GPUPowerFault;
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500205} // 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 GPUOverTemp;
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{
Brandon Wyman442035f2017-08-08 15:58:45 -0500238namespace Common
239{
240namespace Callout
241{
242namespace Error
243{
244 struct IPMISensor;
245} // namespace Error
246} // namespace Callout
247} // namespace Common
248} // namespace openbmc_project
249} // namespace xyz
250} // namespace sdbusplus
251
252namespace sdbusplus
253{
254namespace xyz
255{
256namespace openbmc_project
257{
Matt Spinler7b14db22017-09-19 10:57:54 -0500258namespace Power
259{
260namespace Fault
261{
262namespace Error
263{
264 struct PowerSequencerVoltageFault;
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500265} // 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 Spinler84cd0a52017-08-04 08:53:30 -0500284 struct Shutdown;
285} // namespace Error
286} // namespace Fault
287} // namespace Power
288} // namespace openbmc_project
289} // namespace xyz
290} // namespace sdbusplus
291
292
293namespace phosphor
294{
295
296namespace logging
297{
298
299namespace xyz
300{
301namespace openbmc_project
302{
Brandon Wyman442035f2017-08-08 15:58:45 -0500303namespace Common
304{
305namespace Callout
306{
307namespace _Device
308{
309
310struct CALLOUT_ERRNO
311{
312 static constexpr auto str = "CALLOUT_ERRNO=%d";
313 static constexpr auto str_short = "CALLOUT_ERRNO";
314 using type = std::tuple<std::decay_t<decltype(str)>,int32_t>;
315 explicit constexpr CALLOUT_ERRNO(int32_t a) : _entry(entry(str, a)) {};
316 type _entry;
317};
318struct CALLOUT_DEVICE_PATH
319{
320 static constexpr auto str = "CALLOUT_DEVICE_PATH=%s";
321 static constexpr auto str_short = "CALLOUT_DEVICE_PATH";
322 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
323 explicit constexpr CALLOUT_DEVICE_PATH(const char* a) : _entry(entry(str, a)) {};
324 type _entry;
325};
326
327} // namespace _Device
328
329struct Device
330{
331 static constexpr auto L = level::ERR;
332 using CALLOUT_ERRNO = _Device::CALLOUT_ERRNO;
333 using CALLOUT_DEVICE_PATH = _Device::CALLOUT_DEVICE_PATH;
334 using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
335
336};
337
338} // namespace Callout
339} // namespace Common
340} // namespace openbmc_project
341} // namespace xyz
342
343
344namespace details
345{
346
347template <>
348struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::Device>
349{
350 using type = xyz::openbmc_project::Common::Callout::Device;
351};
352
353}
354
355namespace xyz
356{
357namespace openbmc_project
358{
359namespace Common
360{
361namespace Callout
362{
363namespace _GPIO
364{
365
366struct CALLOUT_GPIO_NUM
367{
368 static constexpr auto str = "CALLOUT_GPIO_NUM=%u";
369 static constexpr auto str_short = "CALLOUT_GPIO_NUM";
370 using type = std::tuple<std::decay_t<decltype(str)>,uint32_t>;
371 explicit constexpr CALLOUT_GPIO_NUM(uint32_t a) : _entry(entry(str, a)) {};
372 type _entry;
373};
374
375} // namespace _GPIO
376
377struct GPIO
378{
379 static constexpr auto L = level::ERR;
380 using CALLOUT_GPIO_NUM = _GPIO::CALLOUT_GPIO_NUM;
381 using CALLOUT_ERRNO = xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
382 using CALLOUT_DEVICE_PATH = xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
383 using metadata_types = std::tuple<CALLOUT_GPIO_NUM, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
384
385};
386
387} // namespace Callout
388} // namespace Common
389} // namespace openbmc_project
390} // namespace xyz
391
392
393namespace details
394{
395
396template <>
397struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::GPIO>
398{
399 using type = xyz::openbmc_project::Common::Callout::GPIO;
400};
401
402}
403
404namespace xyz
405{
406namespace openbmc_project
407{
408namespace Common
409{
410namespace Callout
411{
412namespace _IIC
413{
414
415struct CALLOUT_IIC_BUS
416{
417 static constexpr auto str = "CALLOUT_IIC_BUS=%s";
418 static constexpr auto str_short = "CALLOUT_IIC_BUS";
419 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
420 explicit constexpr CALLOUT_IIC_BUS(const char* a) : _entry(entry(str, a)) {};
421 type _entry;
422};
423struct CALLOUT_IIC_ADDR
424{
425 static constexpr auto str = "CALLOUT_IIC_ADDR=0x%hx";
426 static constexpr auto str_short = "CALLOUT_IIC_ADDR";
427 using type = std::tuple<std::decay_t<decltype(str)>,uint16_t>;
428 explicit constexpr CALLOUT_IIC_ADDR(uint16_t a) : _entry(entry(str, a)) {};
429 type _entry;
430};
431
432} // namespace _IIC
433
434struct IIC
435{
436 static constexpr auto L = level::ERR;
437 using CALLOUT_IIC_BUS = _IIC::CALLOUT_IIC_BUS;
438 using CALLOUT_IIC_ADDR = _IIC::CALLOUT_IIC_ADDR;
439 using CALLOUT_ERRNO = xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
440 using CALLOUT_DEVICE_PATH = xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
441 using metadata_types = std::tuple<CALLOUT_IIC_BUS, CALLOUT_IIC_ADDR, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
442
443};
444
445} // namespace Callout
446} // namespace Common
447} // namespace openbmc_project
448} // namespace xyz
449
450
451namespace details
452{
453
454template <>
455struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::IIC>
456{
457 using type = xyz::openbmc_project::Common::Callout::IIC;
458};
459
460}
461
462namespace xyz
463{
464namespace openbmc_project
465{
466namespace Common
467{
468namespace Callout
469{
470namespace _Inventory
471{
472
473struct CALLOUT_INVENTORY_PATH
474{
475 static constexpr auto str = "CALLOUT_INVENTORY_PATH=%s";
476 static constexpr auto str_short = "CALLOUT_INVENTORY_PATH";
477 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
478 explicit constexpr CALLOUT_INVENTORY_PATH(const char* a) : _entry(entry(str, a)) {};
479 type _entry;
480};
481
482} // namespace _Inventory
483
484struct Inventory
485{
486 static constexpr auto L = level::ERR;
487 using CALLOUT_INVENTORY_PATH = _Inventory::CALLOUT_INVENTORY_PATH;
488 using metadata_types = std::tuple<CALLOUT_INVENTORY_PATH>;
489
490};
491
492} // namespace Callout
493} // namespace Common
494} // namespace openbmc_project
495} // namespace xyz
496
497
498namespace details
499{
500
501template <>
502struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::Inventory>
503{
504 using type = xyz::openbmc_project::Common::Callout::Inventory;
505};
506
507}
508
509namespace xyz
510{
511namespace openbmc_project
512{
513namespace Common
514{
515namespace Callout
516{
517namespace _IPMISensor
518{
519
520struct CALLOUT_IPMI_SENSOR_NUM
521{
522 static constexpr auto str = "CALLOUT_IPMI_SENSOR_NUM=%u";
523 static constexpr auto str_short = "CALLOUT_IPMI_SENSOR_NUM";
524 using type = std::tuple<std::decay_t<decltype(str)>,uint32_t>;
525 explicit constexpr CALLOUT_IPMI_SENSOR_NUM(uint32_t a) : _entry(entry(str, a)) {};
526 type _entry;
527};
528
529} // namespace _IPMISensor
530
531struct IPMISensor
532{
533 static constexpr auto L = level::ERR;
534 using CALLOUT_IPMI_SENSOR_NUM = _IPMISensor::CALLOUT_IPMI_SENSOR_NUM;
535 using metadata_types = std::tuple<CALLOUT_IPMI_SENSOR_NUM>;
536
537};
538
539} // namespace Callout
540} // namespace Common
541} // namespace openbmc_project
542} // namespace xyz
543
544
545namespace details
546{
547
548template <>
549struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::IPMISensor>
550{
551 using type = xyz::openbmc_project::Common::Callout::IPMISensor;
552};
553
554}
555
556namespace xyz
557{
558namespace openbmc_project
559{
560namespace Power
561{
562namespace Fault
563{
564namespace _PowerSupplyUnderVoltageFault
565{
566
Brandon Wyman10295542017-08-09 18:20:44 -0500567struct RAW_STATUS
568{
569 static constexpr auto str = "RAW_STATUS=%s";
570 static constexpr auto str_short = "RAW_STATUS";
571 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
572 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
573 type _entry;
574};
Brandon Wyman442035f2017-08-08 15:58:45 -0500575
576} // namespace _PowerSupplyUnderVoltageFault
577
578struct PowerSupplyUnderVoltageFault
579{
580 static constexpr auto L = level::ERR;
Brandon Wyman10295542017-08-09 18:20:44 -0500581 using RAW_STATUS = _PowerSupplyUnderVoltageFault::RAW_STATUS;
582 using metadata_types = std::tuple<RAW_STATUS>;
Brandon Wyman442035f2017-08-08 15:58:45 -0500583
584};
585
586} // namespace Fault
587} // namespace Power
588} // namespace openbmc_project
589} // namespace xyz
590
591
592namespace details
593{
594
595template <>
596struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSupplyUnderVoltageFault>
597{
598 using type = xyz::openbmc_project::Power::Fault::PowerSupplyUnderVoltageFault;
599};
600
601}
602
603namespace xyz
604{
605namespace openbmc_project
606{
Matt Spinler84cd0a52017-08-04 08:53:30 -0500607namespace Power
608{
609namespace Fault
610{
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500611namespace _PowerSupplyInputFault
612{
613
614struct RAW_STATUS
615{
616 static constexpr auto str = "RAW_STATUS=%s";
617 static constexpr auto str_short = "RAW_STATUS";
618 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
619 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
620 type _entry;
621};
622
623} // namespace _PowerSupplyInputFault
624
625struct PowerSupplyInputFault
626{
627 static constexpr auto L = level::ERR;
628 using RAW_STATUS = _PowerSupplyInputFault::RAW_STATUS;
629 using metadata_types = std::tuple<RAW_STATUS>;
630
631};
632
633} // namespace Fault
634} // namespace Power
635} // namespace openbmc_project
636} // namespace xyz
637
638
639namespace details
640{
641
642template <>
643struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSupplyInputFault>
644{
645 using type = xyz::openbmc_project::Power::Fault::PowerSupplyInputFault;
646};
647
648}
649
650namespace xyz
651{
652namespace openbmc_project
653{
654namespace Power
655{
656namespace Fault
657{
Matt Spinler84cd0a52017-08-04 08:53:30 -0500658namespace _Shutdown
659{
660
661
662} // namespace _Shutdown
663
664struct Shutdown
665{
666 static constexpr auto L = level::ERR;
667 using metadata_types = std::tuple<>;
668
669};
670
671} // namespace Fault
672} // namespace Power
673} // namespace openbmc_project
674} // namespace xyz
675
676
677namespace details
678{
679
680template <>
681struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::Shutdown>
682{
683 using type = xyz::openbmc_project::Power::Fault::Shutdown;
684};
685
686}
687
Matt Spinlerfacfa902017-08-14 13:43:36 -0500688namespace xyz
689{
690namespace openbmc_project
691{
692namespace Power
693{
694namespace Fault
695{
696namespace _PowerOnFailure
697{
698
699
700} // namespace _PowerOnFailure
701
702struct PowerOnFailure
703{
704 static constexpr auto L = level::ERR;
705 using metadata_types = std::tuple<>;
706
707};
708
709} // namespace Fault
710} // namespace Power
711} // namespace openbmc_project
712} // namespace xyz
713
714
715namespace details
716{
717
718template <>
719struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerOnFailure>
720{
721 using type = xyz::openbmc_project::Power::Fault::PowerOnFailure;
722};
723
724}
725
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500726namespace xyz
727{
728namespace openbmc_project
729{
730namespace Power
731{
732namespace Fault
733{
734namespace _PowerSequencerVoltageFault
735{
736
737struct RAIL
738{
739 static constexpr auto str = "RAIL=%d";
740 static constexpr auto str_short = "RAIL";
741 using type = std::tuple<std::decay_t<decltype(str)>,uint16_t>;
742 explicit constexpr RAIL(uint16_t a) : _entry(entry(str, a)) {};
743 type _entry;
744};
745struct RAIL_NAME
746{
747 static constexpr auto str = "RAIL_NAME=%s";
748 static constexpr auto str_short = "RAIL_NAME";
749 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
750 explicit constexpr RAIL_NAME(const char* a) : _entry(entry(str, a)) {};
751 type _entry;
752};
753struct RAW_STATUS
754{
755 static constexpr auto str = "RAW_STATUS=%s";
756 static constexpr auto str_short = "RAW_STATUS";
757 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
758 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
759 type _entry;
760};
761
762} // namespace _PowerSequencerVoltageFault
763
764struct PowerSequencerVoltageFault
765{
766 static constexpr auto L = level::ERR;
767 using RAIL = _PowerSequencerVoltageFault::RAIL;
768 using RAIL_NAME = _PowerSequencerVoltageFault::RAIL_NAME;
769 using RAW_STATUS = _PowerSequencerVoltageFault::RAW_STATUS;
770 using metadata_types = std::tuple<RAIL, RAIL_NAME, RAW_STATUS>;
771
772};
773
774} // namespace Fault
775} // namespace Power
776} // namespace openbmc_project
777} // namespace xyz
778
779
780namespace details
781{
782
783template <>
784struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSequencerVoltageFault>
785{
786 using type = xyz::openbmc_project::Power::Fault::PowerSequencerVoltageFault;
787};
788
789}
790
791namespace xyz
792{
793namespace openbmc_project
794{
795namespace Power
796{
797namespace Fault
798{
799namespace _PowerSequencerPGOODFault
800{
801
802struct INPUT_NUM
803{
804 static constexpr auto str = "INPUT_NUM=%d";
805 static constexpr auto str_short = "INPUT_NUM";
806 using type = std::tuple<std::decay_t<decltype(str)>,uint16_t>;
807 explicit constexpr INPUT_NUM(uint16_t a) : _entry(entry(str, a)) {};
808 type _entry;
809};
810struct INPUT_NAME
811{
812 static constexpr auto str = "INPUT_NAME=%s";
813 static constexpr auto str_short = "INPUT_NAME";
814 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
815 explicit constexpr INPUT_NAME(const char* a) : _entry(entry(str, a)) {};
816 type _entry;
817};
818struct RAW_STATUS
819{
820 static constexpr auto str = "RAW_STATUS=%s";
821 static constexpr auto str_short = "RAW_STATUS";
822 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
823 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
824 type _entry;
825};
826
827} // namespace _PowerSequencerPGOODFault
828
829struct PowerSequencerPGOODFault
830{
831 static constexpr auto L = level::ERR;
832 using INPUT_NUM = _PowerSequencerPGOODFault::INPUT_NUM;
833 using INPUT_NAME = _PowerSequencerPGOODFault::INPUT_NAME;
834 using RAW_STATUS = _PowerSequencerPGOODFault::RAW_STATUS;
835 using metadata_types = std::tuple<INPUT_NUM, INPUT_NAME, RAW_STATUS>;
836
837};
838
839} // namespace Fault
840} // namespace Power
841} // namespace openbmc_project
842} // namespace xyz
843
844
845namespace details
846{
847
848template <>
849struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSequencerPGOODFault>
850{
851 using type = xyz::openbmc_project::Power::Fault::PowerSequencerPGOODFault;
852};
853
854}
855
856namespace xyz
857{
858namespace openbmc_project
859{
860namespace Power
861{
862namespace Fault
863{
864namespace _PowerSequencerFault
865{
866
867struct RAW_STATUS
868{
869 static constexpr auto str = "RAW_STATUS=%s";
870 static constexpr auto str_short = "RAW_STATUS";
871 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
872 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
873 type _entry;
874};
875
876} // namespace _PowerSequencerFault
877
878struct PowerSequencerFault
879{
880 static constexpr auto L = level::ERR;
881 using RAW_STATUS = _PowerSequencerFault::RAW_STATUS;
882 using metadata_types = std::tuple<RAW_STATUS>;
883
884};
885
886} // namespace Fault
887} // namespace Power
888} // namespace openbmc_project
889} // namespace xyz
890
891
892namespace details
893{
894
895template <>
896struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSequencerFault>
897{
898 using type = xyz::openbmc_project::Power::Fault::PowerSequencerFault;
899};
900
901}
902
Matt Spinler7b14db22017-09-19 10:57:54 -0500903namespace xyz
904{
905namespace openbmc_project
906{
907namespace Power
908{
909namespace Fault
910{
911namespace _GPUPowerFault
912{
913
914struct RAW_STATUS
915{
916 static constexpr auto str = "RAW_STATUS=%s";
917 static constexpr auto str_short = "RAW_STATUS";
918 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
919 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
920 type _entry;
921};
922struct GPU
923{
924 static constexpr auto str = "GPU=%s";
925 static constexpr auto str_short = "GPU";
926 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
927 explicit constexpr GPU(const char* a) : _entry(entry(str, a)) {};
928 type _entry;
929};
930
931} // namespace _GPUPowerFault
932
933struct GPUPowerFault
934{
935 static constexpr auto L = level::ERR;
936 using RAW_STATUS = _GPUPowerFault::RAW_STATUS;
937 using GPU = _GPUPowerFault::GPU;
938 using metadata_types = std::tuple<RAW_STATUS, GPU>;
939
940};
941
942} // namespace Fault
943} // namespace Power
944} // namespace openbmc_project
945} // namespace xyz
946
947
948namespace details
949{
950
951template <>
952struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::GPUPowerFault>
953{
954 using type = xyz::openbmc_project::Power::Fault::GPUPowerFault;
955};
956
957}
958
959namespace xyz
960{
961namespace openbmc_project
962{
963namespace Power
964{
965namespace Fault
966{
967namespace _GPUOverTemp
968{
969
970struct RAW_STATUS
971{
972 static constexpr auto str = "RAW_STATUS=%s";
973 static constexpr auto str_short = "RAW_STATUS";
974 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
975 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
976 type _entry;
977};
978struct GPU
979{
980 static constexpr auto str = "GPU=%s";
981 static constexpr auto str_short = "GPU";
982 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
983 explicit constexpr GPU(const char* a) : _entry(entry(str, a)) {};
984 type _entry;
985};
986
987} // namespace _GPUOverTemp
988
989struct GPUOverTemp
990{
991 static constexpr auto L = level::ERR;
992 using RAW_STATUS = _GPUOverTemp::RAW_STATUS;
993 using GPU = _GPUOverTemp::GPU;
994 using metadata_types = std::tuple<RAW_STATUS, GPU>;
995
996};
997
998} // namespace Fault
999} // namespace Power
1000} // namespace openbmc_project
1001} // namespace xyz
1002
1003
1004namespace details
1005{
1006
1007template <>
1008struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::GPUOverTemp>
1009{
1010 using type = xyz::openbmc_project::Power::Fault::GPUOverTemp;
1011};
1012
1013}
1014
Matt Spinler84cd0a52017-08-04 08:53:30 -05001015
1016} // namespace logging
1017
1018} // namespace phosphor