blob: 5a6fad81f2ea1513a4a365cfcbcb7ededc053700 [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{
Matt Spinler7b14db22017-09-19 10:57:54 -0500184 struct GPUPowerFault;
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500185} // 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 GPUOverTemp;
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{
Brandon Wyman442035f2017-08-08 15:58:45 -0500218namespace Common
219{
220namespace Callout
221{
222namespace Error
223{
224 struct IPMISensor;
225} // namespace Error
226} // namespace Callout
227} // namespace Common
228} // namespace openbmc_project
229} // namespace xyz
230} // namespace sdbusplus
231
232namespace sdbusplus
233{
234namespace xyz
235{
236namespace openbmc_project
237{
Matt Spinler7b14db22017-09-19 10:57:54 -0500238namespace Power
239{
240namespace Fault
241{
242namespace Error
243{
244 struct PowerSequencerVoltageFault;
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500245} // namespace Error
246} // namespace Fault
247} // namespace Power
248} // namespace openbmc_project
249} // namespace xyz
250} // namespace sdbusplus
251
252namespace sdbusplus
253{
254namespace xyz
255{
256namespace openbmc_project
257{
258namespace Power
259{
260namespace Fault
261{
262namespace Error
263{
Matt Spinler84cd0a52017-08-04 08:53:30 -0500264 struct Shutdown;
265} // namespace Error
266} // namespace Fault
267} // namespace Power
268} // namespace openbmc_project
269} // namespace xyz
270} // namespace sdbusplus
271
272
273namespace phosphor
274{
275
276namespace logging
277{
278
279namespace xyz
280{
281namespace openbmc_project
282{
Brandon Wyman442035f2017-08-08 15:58:45 -0500283namespace Common
284{
285namespace Callout
286{
287namespace _Device
288{
289
290struct CALLOUT_ERRNO
291{
292 static constexpr auto str = "CALLOUT_ERRNO=%d";
293 static constexpr auto str_short = "CALLOUT_ERRNO";
294 using type = std::tuple<std::decay_t<decltype(str)>,int32_t>;
295 explicit constexpr CALLOUT_ERRNO(int32_t a) : _entry(entry(str, a)) {};
296 type _entry;
297};
298struct CALLOUT_DEVICE_PATH
299{
300 static constexpr auto str = "CALLOUT_DEVICE_PATH=%s";
301 static constexpr auto str_short = "CALLOUT_DEVICE_PATH";
302 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
303 explicit constexpr CALLOUT_DEVICE_PATH(const char* a) : _entry(entry(str, a)) {};
304 type _entry;
305};
306
307} // namespace _Device
308
309struct Device
310{
311 static constexpr auto L = level::ERR;
312 using CALLOUT_ERRNO = _Device::CALLOUT_ERRNO;
313 using CALLOUT_DEVICE_PATH = _Device::CALLOUT_DEVICE_PATH;
314 using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
315
316};
317
318} // namespace Callout
319} // namespace Common
320} // namespace openbmc_project
321} // namespace xyz
322
323
324namespace details
325{
326
327template <>
328struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::Device>
329{
330 using type = xyz::openbmc_project::Common::Callout::Device;
331};
332
333}
334
335namespace xyz
336{
337namespace openbmc_project
338{
339namespace Common
340{
341namespace Callout
342{
343namespace _GPIO
344{
345
346struct CALLOUT_GPIO_NUM
347{
348 static constexpr auto str = "CALLOUT_GPIO_NUM=%u";
349 static constexpr auto str_short = "CALLOUT_GPIO_NUM";
350 using type = std::tuple<std::decay_t<decltype(str)>,uint32_t>;
351 explicit constexpr CALLOUT_GPIO_NUM(uint32_t a) : _entry(entry(str, a)) {};
352 type _entry;
353};
354
355} // namespace _GPIO
356
357struct GPIO
358{
359 static constexpr auto L = level::ERR;
360 using CALLOUT_GPIO_NUM = _GPIO::CALLOUT_GPIO_NUM;
361 using CALLOUT_ERRNO = xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
362 using CALLOUT_DEVICE_PATH = xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
363 using metadata_types = std::tuple<CALLOUT_GPIO_NUM, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
364
365};
366
367} // namespace Callout
368} // namespace Common
369} // namespace openbmc_project
370} // namespace xyz
371
372
373namespace details
374{
375
376template <>
377struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::GPIO>
378{
379 using type = xyz::openbmc_project::Common::Callout::GPIO;
380};
381
382}
383
384namespace xyz
385{
386namespace openbmc_project
387{
388namespace Common
389{
390namespace Callout
391{
392namespace _IIC
393{
394
395struct CALLOUT_IIC_BUS
396{
397 static constexpr auto str = "CALLOUT_IIC_BUS=%s";
398 static constexpr auto str_short = "CALLOUT_IIC_BUS";
399 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
400 explicit constexpr CALLOUT_IIC_BUS(const char* a) : _entry(entry(str, a)) {};
401 type _entry;
402};
403struct CALLOUT_IIC_ADDR
404{
405 static constexpr auto str = "CALLOUT_IIC_ADDR=0x%hx";
406 static constexpr auto str_short = "CALLOUT_IIC_ADDR";
407 using type = std::tuple<std::decay_t<decltype(str)>,uint16_t>;
408 explicit constexpr CALLOUT_IIC_ADDR(uint16_t a) : _entry(entry(str, a)) {};
409 type _entry;
410};
411
412} // namespace _IIC
413
414struct IIC
415{
416 static constexpr auto L = level::ERR;
417 using CALLOUT_IIC_BUS = _IIC::CALLOUT_IIC_BUS;
418 using CALLOUT_IIC_ADDR = _IIC::CALLOUT_IIC_ADDR;
419 using CALLOUT_ERRNO = xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
420 using CALLOUT_DEVICE_PATH = xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
421 using metadata_types = std::tuple<CALLOUT_IIC_BUS, CALLOUT_IIC_ADDR, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
422
423};
424
425} // namespace Callout
426} // namespace Common
427} // namespace openbmc_project
428} // namespace xyz
429
430
431namespace details
432{
433
434template <>
435struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::IIC>
436{
437 using type = xyz::openbmc_project::Common::Callout::IIC;
438};
439
440}
441
442namespace xyz
443{
444namespace openbmc_project
445{
446namespace Common
447{
448namespace Callout
449{
450namespace _Inventory
451{
452
453struct CALLOUT_INVENTORY_PATH
454{
455 static constexpr auto str = "CALLOUT_INVENTORY_PATH=%s";
456 static constexpr auto str_short = "CALLOUT_INVENTORY_PATH";
457 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
458 explicit constexpr CALLOUT_INVENTORY_PATH(const char* a) : _entry(entry(str, a)) {};
459 type _entry;
460};
461
462} // namespace _Inventory
463
464struct Inventory
465{
466 static constexpr auto L = level::ERR;
467 using CALLOUT_INVENTORY_PATH = _Inventory::CALLOUT_INVENTORY_PATH;
468 using metadata_types = std::tuple<CALLOUT_INVENTORY_PATH>;
469
470};
471
472} // namespace Callout
473} // namespace Common
474} // namespace openbmc_project
475} // namespace xyz
476
477
478namespace details
479{
480
481template <>
482struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::Inventory>
483{
484 using type = xyz::openbmc_project::Common::Callout::Inventory;
485};
486
487}
488
489namespace xyz
490{
491namespace openbmc_project
492{
493namespace Common
494{
495namespace Callout
496{
497namespace _IPMISensor
498{
499
500struct CALLOUT_IPMI_SENSOR_NUM
501{
502 static constexpr auto str = "CALLOUT_IPMI_SENSOR_NUM=%u";
503 static constexpr auto str_short = "CALLOUT_IPMI_SENSOR_NUM";
504 using type = std::tuple<std::decay_t<decltype(str)>,uint32_t>;
505 explicit constexpr CALLOUT_IPMI_SENSOR_NUM(uint32_t a) : _entry(entry(str, a)) {};
506 type _entry;
507};
508
509} // namespace _IPMISensor
510
511struct IPMISensor
512{
513 static constexpr auto L = level::ERR;
514 using CALLOUT_IPMI_SENSOR_NUM = _IPMISensor::CALLOUT_IPMI_SENSOR_NUM;
515 using metadata_types = std::tuple<CALLOUT_IPMI_SENSOR_NUM>;
516
517};
518
519} // namespace Callout
520} // namespace Common
521} // namespace openbmc_project
522} // namespace xyz
523
524
525namespace details
526{
527
528template <>
529struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::IPMISensor>
530{
531 using type = xyz::openbmc_project::Common::Callout::IPMISensor;
532};
533
534}
535
536namespace xyz
537{
538namespace openbmc_project
539{
540namespace Power
541{
542namespace Fault
543{
544namespace _PowerSupplyUnderVoltageFault
545{
546
Brandon Wyman10295542017-08-09 18:20:44 -0500547struct RAW_STATUS
548{
549 static constexpr auto str = "RAW_STATUS=%s";
550 static constexpr auto str_short = "RAW_STATUS";
551 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
552 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
553 type _entry;
554};
Brandon Wyman442035f2017-08-08 15:58:45 -0500555
556} // namespace _PowerSupplyUnderVoltageFault
557
558struct PowerSupplyUnderVoltageFault
559{
560 static constexpr auto L = level::ERR;
Brandon Wyman10295542017-08-09 18:20:44 -0500561 using RAW_STATUS = _PowerSupplyUnderVoltageFault::RAW_STATUS;
562 using metadata_types = std::tuple<RAW_STATUS>;
Brandon Wyman442035f2017-08-08 15:58:45 -0500563
564};
565
566} // namespace Fault
567} // namespace Power
568} // namespace openbmc_project
569} // namespace xyz
570
571
572namespace details
573{
574
575template <>
576struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSupplyUnderVoltageFault>
577{
578 using type = xyz::openbmc_project::Power::Fault::PowerSupplyUnderVoltageFault;
579};
580
581}
582
583namespace xyz
584{
585namespace openbmc_project
586{
Matt Spinler84cd0a52017-08-04 08:53:30 -0500587namespace Power
588{
589namespace Fault
590{
591namespace _Shutdown
592{
593
594
595} // namespace _Shutdown
596
597struct Shutdown
598{
599 static constexpr auto L = level::ERR;
600 using metadata_types = std::tuple<>;
601
602};
603
604} // namespace Fault
605} // namespace Power
606} // namespace openbmc_project
607} // namespace xyz
608
609
610namespace details
611{
612
613template <>
614struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::Shutdown>
615{
616 using type = xyz::openbmc_project::Power::Fault::Shutdown;
617};
618
619}
620
Matt Spinlerfacfa902017-08-14 13:43:36 -0500621namespace xyz
622{
623namespace openbmc_project
624{
625namespace Power
626{
627namespace Fault
628{
629namespace _PowerOnFailure
630{
631
632
633} // namespace _PowerOnFailure
634
635struct PowerOnFailure
636{
637 static constexpr auto L = level::ERR;
638 using metadata_types = std::tuple<>;
639
640};
641
642} // namespace Fault
643} // namespace Power
644} // namespace openbmc_project
645} // namespace xyz
646
647
648namespace details
649{
650
651template <>
652struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerOnFailure>
653{
654 using type = xyz::openbmc_project::Power::Fault::PowerOnFailure;
655};
656
657}
658
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500659namespace xyz
660{
661namespace openbmc_project
662{
663namespace Power
664{
665namespace Fault
666{
667namespace _PowerSequencerVoltageFault
668{
669
670struct RAIL
671{
672 static constexpr auto str = "RAIL=%d";
673 static constexpr auto str_short = "RAIL";
674 using type = std::tuple<std::decay_t<decltype(str)>,uint16_t>;
675 explicit constexpr RAIL(uint16_t a) : _entry(entry(str, a)) {};
676 type _entry;
677};
678struct RAIL_NAME
679{
680 static constexpr auto str = "RAIL_NAME=%s";
681 static constexpr auto str_short = "RAIL_NAME";
682 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
683 explicit constexpr RAIL_NAME(const char* a) : _entry(entry(str, a)) {};
684 type _entry;
685};
686struct RAW_STATUS
687{
688 static constexpr auto str = "RAW_STATUS=%s";
689 static constexpr auto str_short = "RAW_STATUS";
690 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
691 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
692 type _entry;
693};
694
695} // namespace _PowerSequencerVoltageFault
696
697struct PowerSequencerVoltageFault
698{
699 static constexpr auto L = level::ERR;
700 using RAIL = _PowerSequencerVoltageFault::RAIL;
701 using RAIL_NAME = _PowerSequencerVoltageFault::RAIL_NAME;
702 using RAW_STATUS = _PowerSequencerVoltageFault::RAW_STATUS;
703 using metadata_types = std::tuple<RAIL, RAIL_NAME, RAW_STATUS>;
704
705};
706
707} // namespace Fault
708} // namespace Power
709} // namespace openbmc_project
710} // namespace xyz
711
712
713namespace details
714{
715
716template <>
717struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSequencerVoltageFault>
718{
719 using type = xyz::openbmc_project::Power::Fault::PowerSequencerVoltageFault;
720};
721
722}
723
724namespace xyz
725{
726namespace openbmc_project
727{
728namespace Power
729{
730namespace Fault
731{
732namespace _PowerSequencerPGOODFault
733{
734
735struct INPUT_NUM
736{
737 static constexpr auto str = "INPUT_NUM=%d";
738 static constexpr auto str_short = "INPUT_NUM";
739 using type = std::tuple<std::decay_t<decltype(str)>,uint16_t>;
740 explicit constexpr INPUT_NUM(uint16_t a) : _entry(entry(str, a)) {};
741 type _entry;
742};
743struct INPUT_NAME
744{
745 static constexpr auto str = "INPUT_NAME=%s";
746 static constexpr auto str_short = "INPUT_NAME";
747 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
748 explicit constexpr INPUT_NAME(const char* a) : _entry(entry(str, a)) {};
749 type _entry;
750};
751struct RAW_STATUS
752{
753 static constexpr auto str = "RAW_STATUS=%s";
754 static constexpr auto str_short = "RAW_STATUS";
755 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
756 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
757 type _entry;
758};
759
760} // namespace _PowerSequencerPGOODFault
761
762struct PowerSequencerPGOODFault
763{
764 static constexpr auto L = level::ERR;
765 using INPUT_NUM = _PowerSequencerPGOODFault::INPUT_NUM;
766 using INPUT_NAME = _PowerSequencerPGOODFault::INPUT_NAME;
767 using RAW_STATUS = _PowerSequencerPGOODFault::RAW_STATUS;
768 using metadata_types = std::tuple<INPUT_NUM, INPUT_NAME, RAW_STATUS>;
769
770};
771
772} // namespace Fault
773} // namespace Power
774} // namespace openbmc_project
775} // namespace xyz
776
777
778namespace details
779{
780
781template <>
782struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSequencerPGOODFault>
783{
784 using type = xyz::openbmc_project::Power::Fault::PowerSequencerPGOODFault;
785};
786
787}
788
789namespace xyz
790{
791namespace openbmc_project
792{
793namespace Power
794{
795namespace Fault
796{
797namespace _PowerSequencerFault
798{
799
800struct RAW_STATUS
801{
802 static constexpr auto str = "RAW_STATUS=%s";
803 static constexpr auto str_short = "RAW_STATUS";
804 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
805 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
806 type _entry;
807};
808
809} // namespace _PowerSequencerFault
810
811struct PowerSequencerFault
812{
813 static constexpr auto L = level::ERR;
814 using RAW_STATUS = _PowerSequencerFault::RAW_STATUS;
815 using metadata_types = std::tuple<RAW_STATUS>;
816
817};
818
819} // namespace Fault
820} // namespace Power
821} // namespace openbmc_project
822} // namespace xyz
823
824
825namespace details
826{
827
828template <>
829struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSequencerFault>
830{
831 using type = xyz::openbmc_project::Power::Fault::PowerSequencerFault;
832};
833
834}
835
Matt Spinler7b14db22017-09-19 10:57:54 -0500836namespace xyz
837{
838namespace openbmc_project
839{
840namespace Power
841{
842namespace Fault
843{
844namespace _GPUPowerFault
845{
846
847struct RAW_STATUS
848{
849 static constexpr auto str = "RAW_STATUS=%s";
850 static constexpr auto str_short = "RAW_STATUS";
851 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
852 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
853 type _entry;
854};
855struct GPU
856{
857 static constexpr auto str = "GPU=%s";
858 static constexpr auto str_short = "GPU";
859 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
860 explicit constexpr GPU(const char* a) : _entry(entry(str, a)) {};
861 type _entry;
862};
863
864} // namespace _GPUPowerFault
865
866struct GPUPowerFault
867{
868 static constexpr auto L = level::ERR;
869 using RAW_STATUS = _GPUPowerFault::RAW_STATUS;
870 using GPU = _GPUPowerFault::GPU;
871 using metadata_types = std::tuple<RAW_STATUS, GPU>;
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::GPUPowerFault>
886{
887 using type = xyz::openbmc_project::Power::Fault::GPUPowerFault;
888};
889
890}
891
892namespace xyz
893{
894namespace openbmc_project
895{
896namespace Power
897{
898namespace Fault
899{
900namespace _GPUOverTemp
901{
902
903struct RAW_STATUS
904{
905 static constexpr auto str = "RAW_STATUS=%s";
906 static constexpr auto str_short = "RAW_STATUS";
907 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
908 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
909 type _entry;
910};
911struct GPU
912{
913 static constexpr auto str = "GPU=%s";
914 static constexpr auto str_short = "GPU";
915 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
916 explicit constexpr GPU(const char* a) : _entry(entry(str, a)) {};
917 type _entry;
918};
919
920} // namespace _GPUOverTemp
921
922struct GPUOverTemp
923{
924 static constexpr auto L = level::ERR;
925 using RAW_STATUS = _GPUOverTemp::RAW_STATUS;
926 using GPU = _GPUOverTemp::GPU;
927 using metadata_types = std::tuple<RAW_STATUS, GPU>;
928
929};
930
931} // namespace Fault
932} // namespace Power
933} // namespace openbmc_project
934} // namespace xyz
935
936
937namespace details
938{
939
940template <>
941struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::GPUOverTemp>
942{
943 using type = xyz::openbmc_project::Power::Fault::GPUOverTemp;
944};
945
946}
947
Matt Spinler84cd0a52017-08-04 08:53:30 -0500948
949} // namespace logging
950
951} // namespace phosphor