blob: f51e90f6393bba31c7070480b0f4968949dce761 [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
Matt Spinlerf0f02b92018-10-25 16:12:43 -05005#include <phosphor-logging/elog.hpp>
6#include <phosphor-logging/log.hpp>
7#include <sdbusplus/exception.hpp>
Brandon Wymand1bc4ce2019-12-13 14:20:34 -06008
Matt Spinler84cd0a52017-08-04 08:53:30 -05009#include <string>
10#include <tuple>
11#include <type_traits>
Matt Spinler84cd0a52017-08-04 08:53:30 -050012
13namespace sdbusplus
14{
Brandon Wymane0eb45c2017-10-06 12:58:42 -050015namespace org
Matt Spinler84cd0a52017-08-04 08:53:30 -050016{
Brandon Wymane0eb45c2017-10-06 12:58:42 -050017namespace open_power
Matt Spinler84cd0a52017-08-04 08:53:30 -050018{
Brandon Wymane0eb45c2017-10-06 12:58:42 -050019namespace Witherspoon
Matt Spinler84cd0a52017-08-04 08:53:30 -050020{
21namespace Fault
22{
23namespace Error
24{
Brandon Wyman03c19db2019-05-10 17:46:41 -050025struct MemoryPowerFault;
26} // namespace Error
27} // namespace Fault
28} // namespace Witherspoon
29} // namespace open_power
30} // namespace org
31} // namespace sdbusplus
32
33namespace sdbusplus
34{
Brandon Wymane0eb45c2017-10-06 12:58:42 -050035namespace org
Brandon Wyman442035f2017-08-08 15:58:45 -050036{
Brandon Wymane0eb45c2017-10-06 12:58:42 -050037namespace open_power
Brandon Wyman442035f2017-08-08 15:58:45 -050038{
Brandon Wymane0eb45c2017-10-06 12:58:42 -050039namespace Witherspoon
Matt Spinler7b14db22017-09-19 10:57:54 -050040{
41namespace Fault
42{
43namespace Error
44{
Matt Spinlerf0f02b92018-10-25 16:12:43 -050045struct GPUPowerFault;
Matt Spinlerac4b52f2017-08-21 14:50:58 -050046} // namespace Error
47} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -050048} // namespace Witherspoon
49} // namespace open_power
50} // namespace org
Matt Spinlerac4b52f2017-08-21 14:50:58 -050051} // namespace sdbusplus
52
53namespace sdbusplus
54{
Brandon Wymane0eb45c2017-10-06 12:58:42 -050055namespace org
Matt Spinlerac4b52f2017-08-21 14:50:58 -050056{
Brandon Wymane0eb45c2017-10-06 12:58:42 -050057namespace open_power
Matt Spinlerac4b52f2017-08-21 14:50:58 -050058{
Brandon Wymane0eb45c2017-10-06 12:58:42 -050059namespace Witherspoon
Brandon Wyman764c7972017-08-22 17:05:36 -050060{
61namespace Fault
62{
63namespace Error
64{
Andy YF Wang40247cc2019-09-06 18:30:56 +080065struct PowerSequencerPGOODFault;
Brandon Wymane0eb45c2017-10-06 12:58:42 -050066} // namespace Error
67} // namespace Fault
68} // namespace Witherspoon
69} // namespace open_power
70} // namespace org
71} // namespace sdbusplus
72
73namespace sdbusplus
74{
75namespace org
76{
77namespace open_power
78{
79namespace Witherspoon
80{
81namespace Fault
82{
83namespace Error
84{
Matt Spinlerf0f02b92018-10-25 16:12:43 -050085struct PowerSequencerVoltageFault;
Brandon Wymane0eb45c2017-10-06 12:58:42 -050086} // namespace Error
87} // namespace Fault
88} // namespace Witherspoon
89} // namespace open_power
90} // namespace org
91} // namespace sdbusplus
92
93namespace sdbusplus
94{
Andy YF Wang40247cc2019-09-06 18:30:56 +080095namespace org
96{
97namespace open_power
98{
99namespace Witherspoon
100{
101namespace Fault
102{
103namespace Error
104{
105struct GPUOverTemp;
106} // namespace Error
107} // namespace Fault
108} // namespace Witherspoon
109} // namespace open_power
110} // namespace org
111} // namespace sdbusplus
112
113namespace sdbusplus
114{
Matt Spinler7b14db22017-09-19 10:57:54 -0500115namespace xyz
116{
117namespace openbmc_project
118{
Brandon Wyman442035f2017-08-08 15:58:45 -0500119namespace Common
120{
121namespace Callout
122{
123namespace Error
124{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500125struct IPMISensor;
Brandon Wyman442035f2017-08-08 15:58:45 -0500126} // namespace Error
127} // namespace Callout
128} // namespace Common
129} // namespace openbmc_project
130} // namespace xyz
131} // namespace sdbusplus
132
133namespace sdbusplus
134{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500135namespace org
Brandon Wyman442035f2017-08-08 15:58:45 -0500136{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500137namespace open_power
Brandon Wyman442035f2017-08-08 15:58:45 -0500138{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500139namespace Witherspoon
Matt Spinler7b14db22017-09-19 10:57:54 -0500140{
141namespace Fault
142{
143namespace Error
144{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800145struct PowerOnFailure;
146} // namespace Error
147} // namespace Fault
148} // namespace Witherspoon
149} // namespace open_power
150} // namespace org
151} // namespace sdbusplus
152
153namespace sdbusplus
154{
155namespace org
156{
157namespace open_power
158{
159namespace Witherspoon
160{
161namespace Fault
162{
163namespace Error
164{
165struct Shutdown;
166} // namespace Error
167} // namespace Fault
168} // namespace Witherspoon
169} // namespace open_power
170} // namespace org
171} // namespace sdbusplus
172
173namespace sdbusplus
174{
175namespace org
176{
177namespace open_power
178{
179namespace Witherspoon
180{
181namespace Fault
182{
183namespace Error
184{
185struct PowerSupplyInputFault;
186} // namespace Error
187} // namespace Fault
188} // namespace Witherspoon
189} // namespace open_power
190} // namespace org
191} // namespace sdbusplus
192
193namespace sdbusplus
194{
195namespace xyz
196{
197namespace openbmc_project
198{
199namespace Common
200{
201namespace Callout
202{
203namespace Error
204{
205struct Device;
206} // namespace Error
207} // namespace Callout
208} // namespace Common
209} // namespace openbmc_project
210} // namespace xyz
211} // namespace sdbusplus
212
213namespace sdbusplus
214{
215namespace org
216{
217namespace open_power
218{
219namespace Witherspoon
220{
221namespace Fault
222{
223namespace Error
224{
225struct ErrorCode15;
226} // namespace Error
227} // namespace Fault
228} // namespace Witherspoon
229} // namespace open_power
230} // namespace org
231} // namespace sdbusplus
232
233namespace sdbusplus
234{
235namespace org
236{
237namespace open_power
238{
239namespace Witherspoon
240{
241namespace Fault
242{
243namespace Error
244{
245struct ErrorCode14;
246} // namespace Error
247} // namespace Fault
248} // namespace Witherspoon
249} // namespace open_power
250} // namespace org
251} // namespace sdbusplus
252
253namespace sdbusplus
254{
255namespace org
256{
257namespace open_power
258{
259namespace Witherspoon
260{
261namespace Fault
262{
263namespace Error
264{
265struct ErrorCode17;
266} // namespace Error
267} // namespace Fault
268} // namespace Witherspoon
269} // namespace open_power
270} // namespace org
271} // namespace sdbusplus
272
273namespace sdbusplus
274{
275namespace org
276{
277namespace open_power
278{
279namespace Witherspoon
280{
281namespace Fault
282{
283namespace Error
284{
285struct ErrorCode16;
286} // namespace Error
287} // namespace Fault
288} // namespace Witherspoon
289} // namespace open_power
290} // namespace org
291} // namespace sdbusplus
292
293namespace sdbusplus
294{
295namespace org
296{
297namespace open_power
298{
299namespace Witherspoon
300{
301namespace Fault
302{
303namespace Error
304{
305struct ErrorCode11;
306} // namespace Error
307} // namespace Fault
308} // namespace Witherspoon
309} // namespace open_power
310} // namespace org
311} // namespace sdbusplus
312
313namespace sdbusplus
314{
315namespace org
316{
317namespace open_power
318{
319namespace Witherspoon
320{
321namespace Fault
322{
323namespace Error
324{
325struct ErrorCode10;
326} // namespace Error
327} // namespace Fault
328} // namespace Witherspoon
329} // namespace open_power
330} // namespace org
331} // namespace sdbusplus
332
333namespace sdbusplus
334{
335namespace org
336{
337namespace open_power
338{
339namespace Witherspoon
340{
341namespace Fault
342{
343namespace Error
344{
345struct ErrorCode13;
346} // namespace Error
347} // namespace Fault
348} // namespace Witherspoon
349} // namespace open_power
350} // namespace org
351} // namespace sdbusplus
352
353namespace sdbusplus
354{
355namespace org
356{
357namespace open_power
358{
359namespace Witherspoon
360{
361namespace Fault
362{
363namespace Error
364{
365struct ErrorCode12;
366} // namespace Error
367} // namespace Fault
368} // namespace Witherspoon
369} // namespace open_power
370} // namespace org
371} // namespace sdbusplus
372
373namespace sdbusplus
374{
375namespace org
376{
377namespace open_power
378{
379namespace Witherspoon
380{
381namespace Fault
382{
383namespace Error
384{
385struct ErrorCode36;
386} // namespace Error
387} // namespace Fault
388} // namespace Witherspoon
389} // namespace open_power
390} // namespace org
391} // namespace sdbusplus
392
393namespace sdbusplus
394{
395namespace org
396{
397namespace open_power
398{
399namespace Witherspoon
400{
401namespace Fault
402{
403namespace Error
404{
405struct ErrorCode35;
406} // namespace Error
407} // namespace Fault
408} // namespace Witherspoon
409} // namespace open_power
410} // namespace org
411} // namespace sdbusplus
412
413namespace sdbusplus
414{
415namespace org
416{
417namespace open_power
418{
419namespace Witherspoon
420{
421namespace Fault
422{
423namespace Error
424{
425struct ErrorCode34;
426} // namespace Error
427} // namespace Fault
428} // namespace Witherspoon
429} // namespace open_power
430} // namespace org
431} // namespace sdbusplus
432
433namespace sdbusplus
434{
435namespace org
436{
437namespace open_power
438{
439namespace Witherspoon
440{
441namespace Fault
442{
443namespace Error
444{
445struct ErrorCode19;
446} // namespace Error
447} // namespace Fault
448} // namespace Witherspoon
449} // namespace open_power
450} // namespace org
451} // namespace sdbusplus
452
453namespace sdbusplus
454{
455namespace org
456{
457namespace open_power
458{
459namespace Witherspoon
460{
461namespace Fault
462{
463namespace Error
464{
465struct ErrorCode18;
466} // namespace Error
467} // namespace Fault
468} // namespace Witherspoon
469} // namespace open_power
470} // namespace org
471} // namespace sdbusplus
472
473namespace sdbusplus
474{
475namespace org
476{
477namespace open_power
478{
479namespace Witherspoon
480{
481namespace Fault
482{
483namespace Error
484{
485struct ErrorCode31;
486} // namespace Error
487} // namespace Fault
488} // namespace Witherspoon
489} // namespace open_power
490} // namespace org
491} // namespace sdbusplus
492
493namespace sdbusplus
494{
495namespace org
496{
497namespace open_power
498{
499namespace Witherspoon
500{
501namespace Fault
502{
503namespace Error
504{
505struct ErrorCode30;
506} // namespace Error
507} // namespace Fault
508} // namespace Witherspoon
509} // namespace open_power
510} // namespace org
511} // namespace sdbusplus
512
513namespace sdbusplus
514{
515namespace xyz
516{
517namespace openbmc_project
518{
519namespace Common
520{
521namespace Callout
522{
523namespace Error
524{
525struct GPIO;
526} // namespace Error
527} // namespace Callout
528} // namespace Common
529} // namespace openbmc_project
530} // namespace xyz
531} // namespace sdbusplus
532
533namespace sdbusplus
534{
535namespace xyz
536{
537namespace openbmc_project
538{
539namespace Common
540{
541namespace Callout
542{
543namespace Error
544{
545struct IIC;
546} // namespace Error
547} // namespace Callout
548} // namespace Common
549} // namespace openbmc_project
550} // namespace xyz
551} // namespace sdbusplus
552
553namespace sdbusplus
554{
555namespace org
556{
557namespace open_power
558{
559namespace Witherspoon
560{
561namespace Fault
562{
563namespace Error
564{
565struct ErrorCode32;
566} // namespace Error
567} // namespace Fault
568} // namespace Witherspoon
569} // namespace open_power
570} // namespace org
571} // namespace sdbusplus
572
573namespace sdbusplus
574{
575namespace org
576{
577namespace open_power
578{
579namespace Witherspoon
580{
581namespace Fault
582{
583namespace Error
584{
585struct PowerSupplyOutputOvercurrent;
586} // namespace Error
587} // namespace Fault
588} // namespace Witherspoon
589} // namespace open_power
590} // namespace org
591} // namespace sdbusplus
592
593namespace sdbusplus
594{
595namespace org
596{
597namespace open_power
598{
599namespace Witherspoon
600{
601namespace Fault
602{
603namespace Error
604{
605struct ErrorCode33;
606} // namespace Error
607} // namespace Fault
608} // namespace Witherspoon
609} // namespace open_power
610} // namespace org
611} // namespace sdbusplus
612
613namespace sdbusplus
614{
615namespace org
616{
617namespace open_power
618{
619namespace Witherspoon
620{
621namespace Fault
622{
623namespace Error
624{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500625struct PowerSupplyTemperatureFault;
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500626} // namespace Error
627} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500628} // namespace Witherspoon
629} // namespace open_power
630} // namespace org
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500631} // namespace sdbusplus
632
633namespace sdbusplus
634{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500635namespace org
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500636{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500637namespace open_power
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500638{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500639namespace Witherspoon
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500640{
641namespace Fault
642{
643namespace Error
644{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800645struct PowerSequencerFault;
646} // namespace Error
647} // namespace Fault
648} // namespace Witherspoon
649} // namespace open_power
650} // namespace org
651} // namespace sdbusplus
652
653namespace sdbusplus
654{
655namespace org
656{
657namespace open_power
658{
659namespace Witherspoon
660{
661namespace Fault
662{
663namespace Error
664{
665struct PowerSupplyFanFault;
666} // namespace Error
667} // namespace Fault
668} // namespace Witherspoon
669} // namespace open_power
670} // namespace org
671} // namespace sdbusplus
672
673namespace sdbusplus
674{
675namespace org
676{
677namespace open_power
678{
679namespace Witherspoon
680{
681namespace Fault
682{
683namespace Error
684{
685struct PowerSupplyOutputOvervoltage;
686} // namespace Error
687} // namespace Fault
688} // namespace Witherspoon
689} // namespace open_power
690} // namespace org
691} // namespace sdbusplus
692
693namespace sdbusplus
694{
695namespace org
696{
697namespace open_power
698{
699namespace Witherspoon
700{
701namespace Fault
702{
703namespace Error
704{
705struct ErrorCode9;
706} // namespace Error
707} // namespace Fault
708} // namespace Witherspoon
709} // namespace open_power
710} // namespace org
711} // namespace sdbusplus
712
713namespace sdbusplus
714{
715namespace org
716{
717namespace open_power
718{
719namespace Witherspoon
720{
721namespace Fault
722{
723namespace Error
724{
725struct ErrorCode8;
726} // namespace Error
727} // namespace Fault
728} // namespace Witherspoon
729} // namespace open_power
730} // namespace org
731} // namespace sdbusplus
732
733namespace sdbusplus
734{
735namespace xyz
736{
737namespace openbmc_project
738{
739namespace Common
740{
741namespace Callout
742{
743namespace Error
744{
745struct Inventory;
746} // namespace Error
747} // namespace Callout
748} // namespace Common
749} // namespace openbmc_project
750} // namespace xyz
751} // namespace sdbusplus
752
753namespace sdbusplus
754{
755namespace org
756{
757namespace open_power
758{
759namespace Witherspoon
760{
761namespace Fault
762{
763namespace Error
764{
765struct ErrorCode5;
766} // namespace Error
767} // namespace Fault
768} // namespace Witherspoon
769} // namespace open_power
770} // namespace org
771} // namespace sdbusplus
772
773namespace sdbusplus
774{
775namespace org
776{
777namespace open_power
778{
779namespace Witherspoon
780{
781namespace Fault
782{
783namespace Error
784{
785struct ErrorCode4;
786} // namespace Error
787} // namespace Fault
788} // namespace Witherspoon
789} // namespace open_power
790} // namespace org
791} // namespace sdbusplus
792
793namespace sdbusplus
794{
795namespace org
796{
797namespace open_power
798{
799namespace Witherspoon
800{
801namespace Fault
802{
803namespace Error
804{
805struct ErrorCode7;
806} // namespace Error
807} // namespace Fault
808} // namespace Witherspoon
809} // namespace open_power
810} // namespace org
811} // namespace sdbusplus
812
813namespace sdbusplus
814{
815namespace org
816{
817namespace open_power
818{
819namespace Witherspoon
820{
821namespace Fault
822{
823namespace Error
824{
825struct ErrorCode6;
826} // namespace Error
827} // namespace Fault
828} // namespace Witherspoon
829} // namespace open_power
830} // namespace org
831} // namespace sdbusplus
832
833namespace sdbusplus
834{
835namespace org
836{
837namespace open_power
838{
839namespace Witherspoon
840{
841namespace Fault
842{
843namespace Error
844{
845struct ErrorCode1;
846} // namespace Error
847} // namespace Fault
848} // namespace Witherspoon
849} // namespace open_power
850} // namespace org
851} // namespace sdbusplus
852
853namespace sdbusplus
854{
855namespace org
856{
857namespace open_power
858{
859namespace Witherspoon
860{
861namespace Fault
862{
863namespace Error
864{
865struct ErrorCode0;
866} // namespace Error
867} // namespace Fault
868} // namespace Witherspoon
869} // namespace open_power
870} // namespace org
871} // namespace sdbusplus
872
873namespace sdbusplus
874{
875namespace org
876{
877namespace open_power
878{
879namespace Witherspoon
880{
881namespace Fault
882{
883namespace Error
884{
885struct ErrorCode3;
886} // namespace Error
887} // namespace Fault
888} // namespace Witherspoon
889} // namespace open_power
890} // namespace org
891} // namespace sdbusplus
892
893namespace sdbusplus
894{
895namespace org
896{
897namespace open_power
898{
899namespace Witherspoon
900{
901namespace Fault
902{
903namespace Error
904{
905struct ErrorCode2;
906} // namespace Error
907} // namespace Fault
908} // namespace Witherspoon
909} // namespace open_power
910} // namespace org
911} // namespace sdbusplus
912
913namespace sdbusplus
914{
915namespace org
916{
917namespace open_power
918{
919namespace Witherspoon
920{
921namespace Fault
922{
923namespace Error
924{
925struct ErrorCode28;
926} // namespace Error
927} // namespace Fault
928} // namespace Witherspoon
929} // namespace open_power
930} // namespace org
931} // namespace sdbusplus
932
933namespace sdbusplus
934{
935namespace org
936{
937namespace open_power
938{
939namespace Witherspoon
940{
941namespace Fault
942{
943namespace Error
944{
945struct ErrorCode29;
946} // namespace Error
947} // namespace Fault
948} // namespace Witherspoon
949} // namespace open_power
950} // namespace org
951} // namespace sdbusplus
952
953namespace sdbusplus
954{
955namespace org
956{
957namespace open_power
958{
959namespace Witherspoon
960{
961namespace Fault
962{
963namespace Error
964{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500965struct PowerSupplyShouldBeOn;
Matt Spinler84cd0a52017-08-04 08:53:30 -0500966} // namespace Error
967} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500968} // namespace Witherspoon
969} // namespace open_power
970} // namespace org
971} // namespace sdbusplus
972
973namespace sdbusplus
974{
975namespace org
976{
977namespace open_power
978{
979namespace Witherspoon
980{
981namespace Fault
982{
983namespace Error
984{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800985struct ErrorCode20;
986} // namespace Error
987} // namespace Fault
988} // namespace Witherspoon
989} // namespace open_power
990} // namespace org
991} // namespace sdbusplus
992
993namespace sdbusplus
994{
995namespace org
996{
997namespace open_power
998{
999namespace Witherspoon
1000{
1001namespace Fault
1002{
1003namespace Error
1004{
1005struct ErrorCode21;
1006} // namespace Error
1007} // namespace Fault
1008} // namespace Witherspoon
1009} // namespace open_power
1010} // namespace org
1011} // namespace sdbusplus
1012
1013namespace sdbusplus
1014{
1015namespace org
1016{
1017namespace open_power
1018{
1019namespace Witherspoon
1020{
1021namespace Fault
1022{
1023namespace Error
1024{
1025struct ErrorCode22;
1026} // namespace Error
1027} // namespace Fault
1028} // namespace Witherspoon
1029} // namespace open_power
1030} // namespace org
1031} // namespace sdbusplus
1032
1033namespace sdbusplus
1034{
1035namespace org
1036{
1037namespace open_power
1038{
1039namespace Witherspoon
1040{
1041namespace Fault
1042{
1043namespace Error
1044{
1045struct ErrorCode23;
1046} // namespace Error
1047} // namespace Fault
1048} // namespace Witherspoon
1049} // namespace open_power
1050} // namespace org
1051} // namespace sdbusplus
1052
1053namespace sdbusplus
1054{
1055namespace org
1056{
1057namespace open_power
1058{
1059namespace Witherspoon
1060{
1061namespace Fault
1062{
1063namespace Error
1064{
1065struct ErrorCode24;
1066} // namespace Error
1067} // namespace Fault
1068} // namespace Witherspoon
1069} // namespace open_power
1070} // namespace org
1071} // namespace sdbusplus
1072
1073namespace sdbusplus
1074{
1075namespace org
1076{
1077namespace open_power
1078{
1079namespace Witherspoon
1080{
1081namespace Fault
1082{
1083namespace Error
1084{
1085struct ErrorCode25;
1086} // namespace Error
1087} // namespace Fault
1088} // namespace Witherspoon
1089} // namespace open_power
1090} // namespace org
1091} // namespace sdbusplus
1092
1093namespace sdbusplus
1094{
1095namespace org
1096{
1097namespace open_power
1098{
1099namespace Witherspoon
1100{
1101namespace Fault
1102{
1103namespace Error
1104{
1105struct ErrorCode26;
1106} // namespace Error
1107} // namespace Fault
1108} // namespace Witherspoon
1109} // namespace open_power
1110} // namespace org
1111} // namespace sdbusplus
1112
1113namespace sdbusplus
1114{
1115namespace org
1116{
1117namespace open_power
1118{
1119namespace Witherspoon
1120{
1121namespace Fault
1122{
1123namespace Error
1124{
1125struct ErrorCode27;
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001126} // namespace Error
1127} // namespace Fault
1128} // namespace Witherspoon
1129} // namespace open_power
1130} // namespace org
Matt Spinler84cd0a52017-08-04 08:53:30 -05001131} // namespace sdbusplus
1132
Matt Spinler84cd0a52017-08-04 08:53:30 -05001133namespace phosphor
1134{
1135
1136namespace logging
1137{
1138
Andy YF Wang40247cc2019-09-06 18:30:56 +08001139namespace org
1140{
1141namespace open_power
1142{
1143namespace Witherspoon
1144{
1145namespace Fault
1146{
1147namespace _Shutdown
1148{
1149
1150} // namespace _Shutdown
1151
1152struct Shutdown
1153{
1154 static constexpr auto L = level::ERR;
1155 using metadata_types = std::tuple<>;
1156};
1157
1158} // namespace Fault
1159} // namespace Witherspoon
1160} // namespace open_power
1161} // namespace org
1162
1163namespace details
1164{
1165
1166template <>
1167struct map_exception_type<
1168 sdbusplus::org::open_power::Witherspoon::Fault::Error::Shutdown>
1169{
1170 using type = org::open_power::Witherspoon::Fault::Shutdown;
1171};
1172
1173} // namespace details
1174
1175namespace org
1176{
1177namespace open_power
1178{
1179namespace Witherspoon
1180{
1181namespace Fault
1182{
1183namespace _PowerOnFailure
1184{
1185
1186} // namespace _PowerOnFailure
1187
1188struct PowerOnFailure
1189{
1190 static constexpr auto L = level::ERR;
1191 using metadata_types = std::tuple<>;
1192};
1193
1194} // namespace Fault
1195} // namespace Witherspoon
1196} // namespace open_power
1197} // namespace org
1198
1199namespace details
1200{
1201
1202template <>
1203struct map_exception_type<
1204 sdbusplus::org::open_power::Witherspoon::Fault::Error::PowerOnFailure>
1205{
1206 using type = org::open_power::Witherspoon::Fault::PowerOnFailure;
1207};
1208
1209} // namespace details
1210
1211namespace org
1212{
1213namespace open_power
1214{
1215namespace Witherspoon
1216{
1217namespace Fault
1218{
1219namespace _ErrorCode0
1220{
1221
1222} // namespace _ErrorCode0
1223
1224struct ErrorCode0
1225{
1226 static constexpr auto L = level::ERR;
1227 using metadata_types = std::tuple<>;
1228};
1229
1230} // namespace Fault
1231} // namespace Witherspoon
1232} // namespace open_power
1233} // namespace org
1234
1235namespace details
1236{
1237
1238template <>
1239struct map_exception_type<
1240 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode0>
1241{
1242 using type = org::open_power::Witherspoon::Fault::ErrorCode0;
1243};
1244
1245} // namespace details
1246
1247namespace org
1248{
1249namespace open_power
1250{
1251namespace Witherspoon
1252{
1253namespace Fault
1254{
1255namespace _ErrorCode1
1256{
1257
1258} // namespace _ErrorCode1
1259
1260struct ErrorCode1
1261{
1262 static constexpr auto L = level::ERR;
1263 using metadata_types = std::tuple<>;
1264};
1265
1266} // namespace Fault
1267} // namespace Witherspoon
1268} // namespace open_power
1269} // namespace org
1270
1271namespace details
1272{
1273
1274template <>
1275struct map_exception_type<
1276 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode1>
1277{
1278 using type = org::open_power::Witherspoon::Fault::ErrorCode1;
1279};
1280
1281} // namespace details
1282
1283namespace org
1284{
1285namespace open_power
1286{
1287namespace Witherspoon
1288{
1289namespace Fault
1290{
1291namespace _ErrorCode2
1292{
1293
1294} // namespace _ErrorCode2
1295
1296struct ErrorCode2
1297{
1298 static constexpr auto L = level::ERR;
1299 using metadata_types = std::tuple<>;
1300};
1301
1302} // namespace Fault
1303} // namespace Witherspoon
1304} // namespace open_power
1305} // namespace org
1306
1307namespace details
1308{
1309
1310template <>
1311struct map_exception_type<
1312 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode2>
1313{
1314 using type = org::open_power::Witherspoon::Fault::ErrorCode2;
1315};
1316
1317} // namespace details
1318
1319namespace org
1320{
1321namespace open_power
1322{
1323namespace Witherspoon
1324{
1325namespace Fault
1326{
1327namespace _ErrorCode3
1328{
1329
1330} // namespace _ErrorCode3
1331
1332struct ErrorCode3
1333{
1334 static constexpr auto L = level::ERR;
1335 using metadata_types = std::tuple<>;
1336};
1337
1338} // namespace Fault
1339} // namespace Witherspoon
1340} // namespace open_power
1341} // namespace org
1342
1343namespace details
1344{
1345
1346template <>
1347struct map_exception_type<
1348 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode3>
1349{
1350 using type = org::open_power::Witherspoon::Fault::ErrorCode3;
1351};
1352
1353} // namespace details
1354
1355namespace org
1356{
1357namespace open_power
1358{
1359namespace Witherspoon
1360{
1361namespace Fault
1362{
1363namespace _ErrorCode4
1364{
1365
1366} // namespace _ErrorCode4
1367
1368struct ErrorCode4
1369{
1370 static constexpr auto L = level::ERR;
1371 using metadata_types = std::tuple<>;
1372};
1373
1374} // namespace Fault
1375} // namespace Witherspoon
1376} // namespace open_power
1377} // namespace org
1378
1379namespace details
1380{
1381
1382template <>
1383struct map_exception_type<
1384 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode4>
1385{
1386 using type = org::open_power::Witherspoon::Fault::ErrorCode4;
1387};
1388
1389} // namespace details
1390
1391namespace org
1392{
1393namespace open_power
1394{
1395namespace Witherspoon
1396{
1397namespace Fault
1398{
1399namespace _ErrorCode5
1400{
1401
1402} // namespace _ErrorCode5
1403
1404struct ErrorCode5
1405{
1406 static constexpr auto L = level::ERR;
1407 using metadata_types = std::tuple<>;
1408};
1409
1410} // namespace Fault
1411} // namespace Witherspoon
1412} // namespace open_power
1413} // namespace org
1414
1415namespace details
1416{
1417
1418template <>
1419struct map_exception_type<
1420 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode5>
1421{
1422 using type = org::open_power::Witherspoon::Fault::ErrorCode5;
1423};
1424
1425} // namespace details
1426
1427namespace org
1428{
1429namespace open_power
1430{
1431namespace Witherspoon
1432{
1433namespace Fault
1434{
1435namespace _ErrorCode6
1436{
1437
1438} // namespace _ErrorCode6
1439
1440struct ErrorCode6
1441{
1442 static constexpr auto L = level::ERR;
1443 using metadata_types = std::tuple<>;
1444};
1445
1446} // namespace Fault
1447} // namespace Witherspoon
1448} // namespace open_power
1449} // namespace org
1450
1451namespace details
1452{
1453
1454template <>
1455struct map_exception_type<
1456 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode6>
1457{
1458 using type = org::open_power::Witherspoon::Fault::ErrorCode6;
1459};
1460
1461} // namespace details
1462
1463namespace org
1464{
1465namespace open_power
1466{
1467namespace Witherspoon
1468{
1469namespace Fault
1470{
1471namespace _ErrorCode7
1472{
1473
1474} // namespace _ErrorCode7
1475
1476struct ErrorCode7
1477{
1478 static constexpr auto L = level::ERR;
1479 using metadata_types = std::tuple<>;
1480};
1481
1482} // namespace Fault
1483} // namespace Witherspoon
1484} // namespace open_power
1485} // namespace org
1486
1487namespace details
1488{
1489
1490template <>
1491struct map_exception_type<
1492 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode7>
1493{
1494 using type = org::open_power::Witherspoon::Fault::ErrorCode7;
1495};
1496
1497} // namespace details
1498
1499namespace org
1500{
1501namespace open_power
1502{
1503namespace Witherspoon
1504{
1505namespace Fault
1506{
1507namespace _ErrorCode8
1508{
1509
1510} // namespace _ErrorCode8
1511
1512struct ErrorCode8
1513{
1514 static constexpr auto L = level::ERR;
1515 using metadata_types = std::tuple<>;
1516};
1517
1518} // namespace Fault
1519} // namespace Witherspoon
1520} // namespace open_power
1521} // namespace org
1522
1523namespace details
1524{
1525
1526template <>
1527struct map_exception_type<
1528 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode8>
1529{
1530 using type = org::open_power::Witherspoon::Fault::ErrorCode8;
1531};
1532
1533} // namespace details
1534
1535namespace org
1536{
1537namespace open_power
1538{
1539namespace Witherspoon
1540{
1541namespace Fault
1542{
1543namespace _ErrorCode9
1544{
1545
1546} // namespace _ErrorCode9
1547
1548struct ErrorCode9
1549{
1550 static constexpr auto L = level::ERR;
1551 using metadata_types = std::tuple<>;
1552};
1553
1554} // namespace Fault
1555} // namespace Witherspoon
1556} // namespace open_power
1557} // namespace org
1558
1559namespace details
1560{
1561
1562template <>
1563struct map_exception_type<
1564 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode9>
1565{
1566 using type = org::open_power::Witherspoon::Fault::ErrorCode9;
1567};
1568
1569} // namespace details
1570
1571namespace org
1572{
1573namespace open_power
1574{
1575namespace Witherspoon
1576{
1577namespace Fault
1578{
1579namespace _ErrorCode10
1580{
1581
1582} // namespace _ErrorCode10
1583
1584struct ErrorCode10
1585{
1586 static constexpr auto L = level::ERR;
1587 using metadata_types = std::tuple<>;
1588};
1589
1590} // namespace Fault
1591} // namespace Witherspoon
1592} // namespace open_power
1593} // namespace org
1594
1595namespace details
1596{
1597
1598template <>
1599struct map_exception_type<
1600 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode10>
1601{
1602 using type = org::open_power::Witherspoon::Fault::ErrorCode10;
1603};
1604
1605} // namespace details
1606
1607namespace org
1608{
1609namespace open_power
1610{
1611namespace Witherspoon
1612{
1613namespace Fault
1614{
1615namespace _ErrorCode11
1616{
1617
1618} // namespace _ErrorCode11
1619
1620struct ErrorCode11
1621{
1622 static constexpr auto L = level::ERR;
1623 using metadata_types = std::tuple<>;
1624};
1625
1626} // namespace Fault
1627} // namespace Witherspoon
1628} // namespace open_power
1629} // namespace org
1630
1631namespace details
1632{
1633
1634template <>
1635struct map_exception_type<
1636 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode11>
1637{
1638 using type = org::open_power::Witherspoon::Fault::ErrorCode11;
1639};
1640
1641} // namespace details
1642
1643namespace org
1644{
1645namespace open_power
1646{
1647namespace Witherspoon
1648{
1649namespace Fault
1650{
1651namespace _ErrorCode12
1652{
1653
1654} // namespace _ErrorCode12
1655
1656struct ErrorCode12
1657{
1658 static constexpr auto L = level::ERR;
1659 using metadata_types = std::tuple<>;
1660};
1661
1662} // namespace Fault
1663} // namespace Witherspoon
1664} // namespace open_power
1665} // namespace org
1666
1667namespace details
1668{
1669
1670template <>
1671struct map_exception_type<
1672 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode12>
1673{
1674 using type = org::open_power::Witherspoon::Fault::ErrorCode12;
1675};
1676
1677} // namespace details
1678
1679namespace org
1680{
1681namespace open_power
1682{
1683namespace Witherspoon
1684{
1685namespace Fault
1686{
1687namespace _ErrorCode13
1688{
1689
1690} // namespace _ErrorCode13
1691
1692struct ErrorCode13
1693{
1694 static constexpr auto L = level::ERR;
1695 using metadata_types = std::tuple<>;
1696};
1697
1698} // namespace Fault
1699} // namespace Witherspoon
1700} // namespace open_power
1701} // namespace org
1702
1703namespace details
1704{
1705
1706template <>
1707struct map_exception_type<
1708 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode13>
1709{
1710 using type = org::open_power::Witherspoon::Fault::ErrorCode13;
1711};
1712
1713} // namespace details
1714
1715namespace org
1716{
1717namespace open_power
1718{
1719namespace Witherspoon
1720{
1721namespace Fault
1722{
1723namespace _ErrorCode14
1724{
1725
1726} // namespace _ErrorCode14
1727
1728struct ErrorCode14
1729{
1730 static constexpr auto L = level::ERR;
1731 using metadata_types = std::tuple<>;
1732};
1733
1734} // namespace Fault
1735} // namespace Witherspoon
1736} // namespace open_power
1737} // namespace org
1738
1739namespace details
1740{
1741
1742template <>
1743struct map_exception_type<
1744 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode14>
1745{
1746 using type = org::open_power::Witherspoon::Fault::ErrorCode14;
1747};
1748
1749} // namespace details
1750
1751namespace org
1752{
1753namespace open_power
1754{
1755namespace Witherspoon
1756{
1757namespace Fault
1758{
1759namespace _ErrorCode15
1760{
1761
1762} // namespace _ErrorCode15
1763
1764struct ErrorCode15
1765{
1766 static constexpr auto L = level::ERR;
1767 using metadata_types = std::tuple<>;
1768};
1769
1770} // namespace Fault
1771} // namespace Witherspoon
1772} // namespace open_power
1773} // namespace org
1774
1775namespace details
1776{
1777
1778template <>
1779struct map_exception_type<
1780 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode15>
1781{
1782 using type = org::open_power::Witherspoon::Fault::ErrorCode15;
1783};
1784
1785} // namespace details
1786
1787namespace org
1788{
1789namespace open_power
1790{
1791namespace Witherspoon
1792{
1793namespace Fault
1794{
1795namespace _ErrorCode16
1796{
1797
1798} // namespace _ErrorCode16
1799
1800struct ErrorCode16
1801{
1802 static constexpr auto L = level::ERR;
1803 using metadata_types = std::tuple<>;
1804};
1805
1806} // namespace Fault
1807} // namespace Witherspoon
1808} // namespace open_power
1809} // namespace org
1810
1811namespace details
1812{
1813
1814template <>
1815struct map_exception_type<
1816 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode16>
1817{
1818 using type = org::open_power::Witherspoon::Fault::ErrorCode16;
1819};
1820
1821} // namespace details
1822
1823namespace org
1824{
1825namespace open_power
1826{
1827namespace Witherspoon
1828{
1829namespace Fault
1830{
1831namespace _ErrorCode17
1832{
1833
1834} // namespace _ErrorCode17
1835
1836struct ErrorCode17
1837{
1838 static constexpr auto L = level::ERR;
1839 using metadata_types = std::tuple<>;
1840};
1841
1842} // namespace Fault
1843} // namespace Witherspoon
1844} // namespace open_power
1845} // namespace org
1846
1847namespace details
1848{
1849
1850template <>
1851struct map_exception_type<
1852 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode17>
1853{
1854 using type = org::open_power::Witherspoon::Fault::ErrorCode17;
1855};
1856
1857} // namespace details
1858
1859namespace org
1860{
1861namespace open_power
1862{
1863namespace Witherspoon
1864{
1865namespace Fault
1866{
1867namespace _ErrorCode18
1868{
1869
1870} // namespace _ErrorCode18
1871
1872struct ErrorCode18
1873{
1874 static constexpr auto L = level::ERR;
1875 using metadata_types = std::tuple<>;
1876};
1877
1878} // namespace Fault
1879} // namespace Witherspoon
1880} // namespace open_power
1881} // namespace org
1882
1883namespace details
1884{
1885
1886template <>
1887struct map_exception_type<
1888 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode18>
1889{
1890 using type = org::open_power::Witherspoon::Fault::ErrorCode18;
1891};
1892
1893} // namespace details
1894
1895namespace org
1896{
1897namespace open_power
1898{
1899namespace Witherspoon
1900{
1901namespace Fault
1902{
1903namespace _ErrorCode19
1904{
1905
1906} // namespace _ErrorCode19
1907
1908struct ErrorCode19
1909{
1910 static constexpr auto L = level::ERR;
1911 using metadata_types = std::tuple<>;
1912};
1913
1914} // namespace Fault
1915} // namespace Witherspoon
1916} // namespace open_power
1917} // namespace org
1918
1919namespace details
1920{
1921
1922template <>
1923struct map_exception_type<
1924 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode19>
1925{
1926 using type = org::open_power::Witherspoon::Fault::ErrorCode19;
1927};
1928
1929} // namespace details
1930
1931namespace org
1932{
1933namespace open_power
1934{
1935namespace Witherspoon
1936{
1937namespace Fault
1938{
1939namespace _ErrorCode20
1940{
1941
1942} // namespace _ErrorCode20
1943
1944struct ErrorCode20
1945{
1946 static constexpr auto L = level::ERR;
1947 using metadata_types = std::tuple<>;
1948};
1949
1950} // namespace Fault
1951} // namespace Witherspoon
1952} // namespace open_power
1953} // namespace org
1954
1955namespace details
1956{
1957
1958template <>
1959struct map_exception_type<
1960 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode20>
1961{
1962 using type = org::open_power::Witherspoon::Fault::ErrorCode20;
1963};
1964
1965} // namespace details
1966
1967namespace org
1968{
1969namespace open_power
1970{
1971namespace Witherspoon
1972{
1973namespace Fault
1974{
1975namespace _ErrorCode21
1976{
1977
1978} // namespace _ErrorCode21
1979
1980struct ErrorCode21
1981{
1982 static constexpr auto L = level::ERR;
1983 using metadata_types = std::tuple<>;
1984};
1985
1986} // namespace Fault
1987} // namespace Witherspoon
1988} // namespace open_power
1989} // namespace org
1990
1991namespace details
1992{
1993
1994template <>
1995struct map_exception_type<
1996 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode21>
1997{
1998 using type = org::open_power::Witherspoon::Fault::ErrorCode21;
1999};
2000
2001} // namespace details
2002
2003namespace org
2004{
2005namespace open_power
2006{
2007namespace Witherspoon
2008{
2009namespace Fault
2010{
2011namespace _ErrorCode22
2012{
2013
2014} // namespace _ErrorCode22
2015
2016struct ErrorCode22
2017{
2018 static constexpr auto L = level::ERR;
2019 using metadata_types = std::tuple<>;
2020};
2021
2022} // namespace Fault
2023} // namespace Witherspoon
2024} // namespace open_power
2025} // namespace org
2026
2027namespace details
2028{
2029
2030template <>
2031struct map_exception_type<
2032 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode22>
2033{
2034 using type = org::open_power::Witherspoon::Fault::ErrorCode22;
2035};
2036
2037} // namespace details
2038
2039namespace org
2040{
2041namespace open_power
2042{
2043namespace Witherspoon
2044{
2045namespace Fault
2046{
2047namespace _ErrorCode23
2048{
2049
2050} // namespace _ErrorCode23
2051
2052struct ErrorCode23
2053{
2054 static constexpr auto L = level::ERR;
2055 using metadata_types = std::tuple<>;
2056};
2057
2058} // namespace Fault
2059} // namespace Witherspoon
2060} // namespace open_power
2061} // namespace org
2062
2063namespace details
2064{
2065
2066template <>
2067struct map_exception_type<
2068 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode23>
2069{
2070 using type = org::open_power::Witherspoon::Fault::ErrorCode23;
2071};
2072
2073} // namespace details
2074
2075namespace org
2076{
2077namespace open_power
2078{
2079namespace Witherspoon
2080{
2081namespace Fault
2082{
2083namespace _ErrorCode24
2084{
2085
2086} // namespace _ErrorCode24
2087
2088struct ErrorCode24
2089{
2090 static constexpr auto L = level::ERR;
2091 using metadata_types = std::tuple<>;
2092};
2093
2094} // namespace Fault
2095} // namespace Witherspoon
2096} // namespace open_power
2097} // namespace org
2098
2099namespace details
2100{
2101
2102template <>
2103struct map_exception_type<
2104 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode24>
2105{
2106 using type = org::open_power::Witherspoon::Fault::ErrorCode24;
2107};
2108
2109} // namespace details
2110
2111namespace org
2112{
2113namespace open_power
2114{
2115namespace Witherspoon
2116{
2117namespace Fault
2118{
2119namespace _ErrorCode25
2120{
2121
2122} // namespace _ErrorCode25
2123
2124struct ErrorCode25
2125{
2126 static constexpr auto L = level::ERR;
2127 using metadata_types = std::tuple<>;
2128};
2129
2130} // namespace Fault
2131} // namespace Witherspoon
2132} // namespace open_power
2133} // namespace org
2134
2135namespace details
2136{
2137
2138template <>
2139struct map_exception_type<
2140 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode25>
2141{
2142 using type = org::open_power::Witherspoon::Fault::ErrorCode25;
2143};
2144
2145} // namespace details
2146
2147namespace org
2148{
2149namespace open_power
2150{
2151namespace Witherspoon
2152{
2153namespace Fault
2154{
2155namespace _ErrorCode26
2156{
2157
2158} // namespace _ErrorCode26
2159
2160struct ErrorCode26
2161{
2162 static constexpr auto L = level::ERR;
2163 using metadata_types = std::tuple<>;
2164};
2165
2166} // namespace Fault
2167} // namespace Witherspoon
2168} // namespace open_power
2169} // namespace org
2170
2171namespace details
2172{
2173
2174template <>
2175struct map_exception_type<
2176 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode26>
2177{
2178 using type = org::open_power::Witherspoon::Fault::ErrorCode26;
2179};
2180
2181} // namespace details
2182
2183namespace org
2184{
2185namespace open_power
2186{
2187namespace Witherspoon
2188{
2189namespace Fault
2190{
2191namespace _ErrorCode27
2192{
2193
2194} // namespace _ErrorCode27
2195
2196struct ErrorCode27
2197{
2198 static constexpr auto L = level::ERR;
2199 using metadata_types = std::tuple<>;
2200};
2201
2202} // namespace Fault
2203} // namespace Witherspoon
2204} // namespace open_power
2205} // namespace org
2206
2207namespace details
2208{
2209
2210template <>
2211struct map_exception_type<
2212 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode27>
2213{
2214 using type = org::open_power::Witherspoon::Fault::ErrorCode27;
2215};
2216
2217} // namespace details
2218
2219namespace org
2220{
2221namespace open_power
2222{
2223namespace Witherspoon
2224{
2225namespace Fault
2226{
2227namespace _ErrorCode28
2228{
2229
2230} // namespace _ErrorCode28
2231
2232struct ErrorCode28
2233{
2234 static constexpr auto L = level::ERR;
2235 using metadata_types = std::tuple<>;
2236};
2237
2238} // namespace Fault
2239} // namespace Witherspoon
2240} // namespace open_power
2241} // namespace org
2242
2243namespace details
2244{
2245
2246template <>
2247struct map_exception_type<
2248 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode28>
2249{
2250 using type = org::open_power::Witherspoon::Fault::ErrorCode28;
2251};
2252
2253} // namespace details
2254
2255namespace org
2256{
2257namespace open_power
2258{
2259namespace Witherspoon
2260{
2261namespace Fault
2262{
2263namespace _ErrorCode29
2264{
2265
2266} // namespace _ErrorCode29
2267
2268struct ErrorCode29
2269{
2270 static constexpr auto L = level::ERR;
2271 using metadata_types = std::tuple<>;
2272};
2273
2274} // namespace Fault
2275} // namespace Witherspoon
2276} // namespace open_power
2277} // namespace org
2278
2279namespace details
2280{
2281
2282template <>
2283struct map_exception_type<
2284 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode29>
2285{
2286 using type = org::open_power::Witherspoon::Fault::ErrorCode29;
2287};
2288
2289} // namespace details
2290
2291namespace org
2292{
2293namespace open_power
2294{
2295namespace Witherspoon
2296{
2297namespace Fault
2298{
2299namespace _ErrorCode30
2300{
2301
2302} // namespace _ErrorCode30
2303
2304struct ErrorCode30
2305{
2306 static constexpr auto L = level::ERR;
2307 using metadata_types = std::tuple<>;
2308};
2309
2310} // namespace Fault
2311} // namespace Witherspoon
2312} // namespace open_power
2313} // namespace org
2314
2315namespace details
2316{
2317
2318template <>
2319struct map_exception_type<
2320 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode30>
2321{
2322 using type = org::open_power::Witherspoon::Fault::ErrorCode30;
2323};
2324
2325} // namespace details
2326
2327namespace org
2328{
2329namespace open_power
2330{
2331namespace Witherspoon
2332{
2333namespace Fault
2334{
2335namespace _ErrorCode31
2336{
2337
2338} // namespace _ErrorCode31
2339
2340struct ErrorCode31
2341{
2342 static constexpr auto L = level::ERR;
2343 using metadata_types = std::tuple<>;
2344};
2345
2346} // namespace Fault
2347} // namespace Witherspoon
2348} // namespace open_power
2349} // namespace org
2350
2351namespace details
2352{
2353
2354template <>
2355struct map_exception_type<
2356 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode31>
2357{
2358 using type = org::open_power::Witherspoon::Fault::ErrorCode31;
2359};
2360
2361} // namespace details
2362
2363namespace org
2364{
2365namespace open_power
2366{
2367namespace Witherspoon
2368{
2369namespace Fault
2370{
2371namespace _ErrorCode32
2372{
2373
2374} // namespace _ErrorCode32
2375
2376struct ErrorCode32
2377{
2378 static constexpr auto L = level::ERR;
2379 using metadata_types = std::tuple<>;
2380};
2381
2382} // namespace Fault
2383} // namespace Witherspoon
2384} // namespace open_power
2385} // namespace org
2386
2387namespace details
2388{
2389
2390template <>
2391struct map_exception_type<
2392 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode32>
2393{
2394 using type = org::open_power::Witherspoon::Fault::ErrorCode32;
2395};
2396
2397} // namespace details
2398
2399namespace org
2400{
2401namespace open_power
2402{
2403namespace Witherspoon
2404{
2405namespace Fault
2406{
2407namespace _ErrorCode33
2408{
2409
2410} // namespace _ErrorCode33
2411
2412struct ErrorCode33
2413{
2414 static constexpr auto L = level::ERR;
2415 using metadata_types = std::tuple<>;
2416};
2417
2418} // namespace Fault
2419} // namespace Witherspoon
2420} // namespace open_power
2421} // namespace org
2422
2423namespace details
2424{
2425
2426template <>
2427struct map_exception_type<
2428 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode33>
2429{
2430 using type = org::open_power::Witherspoon::Fault::ErrorCode33;
2431};
2432
2433} // namespace details
2434
2435namespace org
2436{
2437namespace open_power
2438{
2439namespace Witherspoon
2440{
2441namespace Fault
2442{
2443namespace _ErrorCode34
2444{
2445
2446} // namespace _ErrorCode34
2447
2448struct ErrorCode34
2449{
2450 static constexpr auto L = level::ERR;
2451 using metadata_types = std::tuple<>;
2452};
2453
2454} // namespace Fault
2455} // namespace Witherspoon
2456} // namespace open_power
2457} // namespace org
2458
2459namespace details
2460{
2461
2462template <>
2463struct map_exception_type<
2464 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode34>
2465{
2466 using type = org::open_power::Witherspoon::Fault::ErrorCode34;
2467};
2468
2469} // namespace details
2470
2471namespace org
2472{
2473namespace open_power
2474{
2475namespace Witherspoon
2476{
2477namespace Fault
2478{
2479namespace _ErrorCode35
2480{
2481
2482} // namespace _ErrorCode35
2483
2484struct ErrorCode35
2485{
2486 static constexpr auto L = level::ERR;
2487 using metadata_types = std::tuple<>;
2488};
2489
2490} // namespace Fault
2491} // namespace Witherspoon
2492} // namespace open_power
2493} // namespace org
2494
2495namespace details
2496{
2497
2498template <>
2499struct map_exception_type<
2500 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode35>
2501{
2502 using type = org::open_power::Witherspoon::Fault::ErrorCode35;
2503};
2504
2505} // namespace details
2506
2507namespace org
2508{
2509namespace open_power
2510{
2511namespace Witherspoon
2512{
2513namespace Fault
2514{
2515namespace _ErrorCode36
2516{
2517
2518} // namespace _ErrorCode36
2519
2520struct ErrorCode36
2521{
2522 static constexpr auto L = level::ERR;
2523 using metadata_types = std::tuple<>;
2524};
2525
2526} // namespace Fault
2527} // namespace Witherspoon
2528} // namespace open_power
2529} // namespace org
2530
2531namespace details
2532{
2533
2534template <>
2535struct map_exception_type<
2536 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode36>
2537{
2538 using type = org::open_power::Witherspoon::Fault::ErrorCode36;
2539};
2540
2541} // namespace details
2542
2543namespace org
2544{
2545namespace open_power
2546{
2547namespace Witherspoon
2548{
2549namespace Fault
2550{
2551namespace _PowerSequencerVoltageFault
2552{
2553
2554struct RAIL
2555{
2556 /*
2557 * We can't use -fsanitize=undefined if we declare a
2558 * 'static constexpr auto str' member, so don't. Instead, open-code the
2559 * mako template lookups.
2560 */
2561 static constexpr auto str_short = "RAIL";
2562 using type = std::tuple<std::decay_t<decltype("RAIL=%d")>, uint16_t>;
2563 explicit constexpr RAIL(uint16_t a) : _entry(entry("RAIL=%d", a)){};
2564 type _entry;
2565};
2566struct RAIL_NAME
2567{
2568 /*
2569 * We can't use -fsanitize=undefined if we declare a
2570 * 'static constexpr auto str' member, so don't. Instead, open-code the
2571 * mako template lookups.
2572 */
2573 static constexpr auto str_short = "RAIL_NAME";
2574 using type =
2575 std::tuple<std::decay_t<decltype("RAIL_NAME=%s")>, const char*>;
2576 explicit constexpr RAIL_NAME(const char* a) :
2577 _entry(entry("RAIL_NAME=%s", a)){};
2578 type _entry;
2579};
2580struct RAW_STATUS
2581{
2582 /*
2583 * We can't use -fsanitize=undefined if we declare a
2584 * 'static constexpr auto str' member, so don't. Instead, open-code the
2585 * mako template lookups.
2586 */
2587 static constexpr auto str_short = "RAW_STATUS";
2588 using type =
2589 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
2590 explicit constexpr RAW_STATUS(const char* a) :
2591 _entry(entry("RAW_STATUS=%s", a)){};
2592 type _entry;
2593};
2594
2595} // namespace _PowerSequencerVoltageFault
2596
2597struct PowerSequencerVoltageFault
2598{
2599 static constexpr auto L = level::ERR;
2600 using RAIL = _PowerSequencerVoltageFault::RAIL;
2601 using RAIL_NAME = _PowerSequencerVoltageFault::RAIL_NAME;
2602 using RAW_STATUS = _PowerSequencerVoltageFault::RAW_STATUS;
2603 using metadata_types = std::tuple<RAIL, RAIL_NAME, RAW_STATUS>;
2604};
2605
2606} // namespace Fault
2607} // namespace Witherspoon
2608} // namespace open_power
2609} // namespace org
2610
2611namespace details
2612{
2613
2614template <>
2615struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::
2616 Error::PowerSequencerVoltageFault>
2617{
2618 using type =
2619 org::open_power::Witherspoon::Fault::PowerSequencerVoltageFault;
2620};
2621
2622} // namespace details
2623
2624namespace org
2625{
2626namespace open_power
2627{
2628namespace Witherspoon
2629{
2630namespace Fault
2631{
2632namespace _PowerSequencerPGOODFault
2633{
2634
2635struct INPUT_NUM
2636{
2637 /*
2638 * We can't use -fsanitize=undefined if we declare a
2639 * 'static constexpr auto str' member, so don't. Instead, open-code the
2640 * mako template lookups.
2641 */
2642 static constexpr auto str_short = "INPUT_NUM";
2643 using type = std::tuple<std::decay_t<decltype("INPUT_NUM=%d")>, uint16_t>;
2644 explicit constexpr INPUT_NUM(uint16_t a) :
2645 _entry(entry("INPUT_NUM=%d", a)){};
2646 type _entry;
2647};
2648struct INPUT_NAME
2649{
2650 /*
2651 * We can't use -fsanitize=undefined if we declare a
2652 * 'static constexpr auto str' member, so don't. Instead, open-code the
2653 * mako template lookups.
2654 */
2655 static constexpr auto str_short = "INPUT_NAME";
2656 using type =
2657 std::tuple<std::decay_t<decltype("INPUT_NAME=%s")>, const char*>;
2658 explicit constexpr INPUT_NAME(const char* a) :
2659 _entry(entry("INPUT_NAME=%s", a)){};
2660 type _entry;
2661};
2662struct RAW_STATUS
2663{
2664 /*
2665 * We can't use -fsanitize=undefined if we declare a
2666 * 'static constexpr auto str' member, so don't. Instead, open-code the
2667 * mako template lookups.
2668 */
2669 static constexpr auto str_short = "RAW_STATUS";
2670 using type =
2671 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
2672 explicit constexpr RAW_STATUS(const char* a) :
2673 _entry(entry("RAW_STATUS=%s", a)){};
2674 type _entry;
2675};
2676
2677} // namespace _PowerSequencerPGOODFault
2678
2679struct PowerSequencerPGOODFault
2680{
2681 static constexpr auto L = level::ERR;
2682 using INPUT_NUM = _PowerSequencerPGOODFault::INPUT_NUM;
2683 using INPUT_NAME = _PowerSequencerPGOODFault::INPUT_NAME;
2684 using RAW_STATUS = _PowerSequencerPGOODFault::RAW_STATUS;
2685 using metadata_types = std::tuple<INPUT_NUM, INPUT_NAME, RAW_STATUS>;
2686};
2687
2688} // namespace Fault
2689} // namespace Witherspoon
2690} // namespace open_power
2691} // namespace org
2692
2693namespace details
2694{
2695
2696template <>
2697struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::
2698 Error::PowerSequencerPGOODFault>
2699{
2700 using type = org::open_power::Witherspoon::Fault::PowerSequencerPGOODFault;
2701};
2702
2703} // namespace details
2704
2705namespace org
2706{
2707namespace open_power
2708{
2709namespace Witherspoon
2710{
2711namespace Fault
2712{
2713namespace _PowerSequencerFault
2714{
2715
2716struct RAW_STATUS
2717{
2718 /*
2719 * We can't use -fsanitize=undefined if we declare a
2720 * 'static constexpr auto str' member, so don't. Instead, open-code the
2721 * mako template lookups.
2722 */
2723 static constexpr auto str_short = "RAW_STATUS";
2724 using type =
2725 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
2726 explicit constexpr RAW_STATUS(const char* a) :
2727 _entry(entry("RAW_STATUS=%s", a)){};
2728 type _entry;
2729};
2730
2731} // namespace _PowerSequencerFault
2732
2733struct PowerSequencerFault
2734{
2735 static constexpr auto L = level::ERR;
2736 using RAW_STATUS = _PowerSequencerFault::RAW_STATUS;
2737 using metadata_types = std::tuple<RAW_STATUS>;
2738};
2739
2740} // namespace Fault
2741} // namespace Witherspoon
2742} // namespace open_power
2743} // namespace org
2744
2745namespace details
2746{
2747
2748template <>
2749struct map_exception_type<
2750 sdbusplus::org::open_power::Witherspoon::Fault::Error::PowerSequencerFault>
2751{
2752 using type = org::open_power::Witherspoon::Fault::PowerSequencerFault;
2753};
2754
2755} // namespace details
2756
Matt Spinler84cd0a52017-08-04 08:53:30 -05002757namespace xyz
2758{
2759namespace openbmc_project
2760{
Brandon Wyman442035f2017-08-08 15:58:45 -05002761namespace Common
2762{
2763namespace Callout
2764{
2765namespace _Device
2766{
2767
2768struct CALLOUT_ERRNO
2769{
Brandon Wyman03c19db2019-05-10 17:46:41 -05002770 /*
2771 * We can't use -fsanitize=undefined if we declare a
2772 * 'static constexpr auto str' member, so don't. Instead, open-code the
2773 * mako template lookups.
2774 */
Brandon Wyman442035f2017-08-08 15:58:45 -05002775 static constexpr auto str_short = "CALLOUT_ERRNO";
Brandon Wyman03c19db2019-05-10 17:46:41 -05002776 using type =
2777 std::tuple<std::decay_t<decltype("CALLOUT_ERRNO=%d")>, int32_t>;
2778 explicit constexpr CALLOUT_ERRNO(int32_t a) :
2779 _entry(entry("CALLOUT_ERRNO=%d", a)){};
Brandon Wyman442035f2017-08-08 15:58:45 -05002780 type _entry;
2781};
2782struct CALLOUT_DEVICE_PATH
2783{
Brandon Wyman03c19db2019-05-10 17:46:41 -05002784 /*
2785 * We can't use -fsanitize=undefined if we declare a
2786 * 'static constexpr auto str' member, so don't. Instead, open-code the
2787 * mako template lookups.
2788 */
Brandon Wyman442035f2017-08-08 15:58:45 -05002789 static constexpr auto str_short = "CALLOUT_DEVICE_PATH";
Brandon Wyman03c19db2019-05-10 17:46:41 -05002790 using type = std::tuple<std::decay_t<decltype("CALLOUT_DEVICE_PATH=%s")>,
2791 const char*>;
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002792 explicit constexpr CALLOUT_DEVICE_PATH(const char* a) :
Brandon Wyman03c19db2019-05-10 17:46:41 -05002793 _entry(entry("CALLOUT_DEVICE_PATH=%s", a)){};
Brandon Wyman442035f2017-08-08 15:58:45 -05002794 type _entry;
2795};
2796
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002797} // namespace _Device
Brandon Wyman442035f2017-08-08 15:58:45 -05002798
2799struct Device
2800{
2801 static constexpr auto L = level::ERR;
2802 using CALLOUT_ERRNO = _Device::CALLOUT_ERRNO;
2803 using CALLOUT_DEVICE_PATH = _Device::CALLOUT_DEVICE_PATH;
2804 using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
Brandon Wyman442035f2017-08-08 15:58:45 -05002805};
2806
2807} // namespace Callout
2808} // namespace Common
2809} // namespace openbmc_project
2810} // namespace xyz
2811
Brandon Wyman442035f2017-08-08 15:58:45 -05002812namespace details
2813{
2814
2815template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002816struct map_exception_type<
2817 sdbusplus::xyz::openbmc_project::Common::Callout::Error::Device>
Brandon Wyman442035f2017-08-08 15:58:45 -05002818{
2819 using type = xyz::openbmc_project::Common::Callout::Device;
2820};
2821
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002822} // namespace details
Brandon Wyman442035f2017-08-08 15:58:45 -05002823
2824namespace xyz
2825{
2826namespace openbmc_project
2827{
2828namespace Common
2829{
2830namespace Callout
2831{
2832namespace _GPIO
2833{
2834
2835struct CALLOUT_GPIO_NUM
2836{
Brandon Wyman03c19db2019-05-10 17:46:41 -05002837 /*
2838 * We can't use -fsanitize=undefined if we declare a
2839 * 'static constexpr auto str' member, so don't. Instead, open-code the
2840 * mako template lookups.
2841 */
Brandon Wyman442035f2017-08-08 15:58:45 -05002842 static constexpr auto str_short = "CALLOUT_GPIO_NUM";
Brandon Wyman03c19db2019-05-10 17:46:41 -05002843 using type =
2844 std::tuple<std::decay_t<decltype("CALLOUT_GPIO_NUM=%u")>, uint32_t>;
2845 explicit constexpr CALLOUT_GPIO_NUM(uint32_t a) :
2846 _entry(entry("CALLOUT_GPIO_NUM=%u", a)){};
Brandon Wyman442035f2017-08-08 15:58:45 -05002847 type _entry;
2848};
2849
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002850} // namespace _GPIO
Brandon Wyman442035f2017-08-08 15:58:45 -05002851
2852struct GPIO
2853{
2854 static constexpr auto L = level::ERR;
2855 using CALLOUT_GPIO_NUM = _GPIO::CALLOUT_GPIO_NUM;
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002856 using CALLOUT_ERRNO =
2857 xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
2858 using CALLOUT_DEVICE_PATH =
2859 xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
2860 using metadata_types =
2861 std::tuple<CALLOUT_GPIO_NUM, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
Brandon Wyman442035f2017-08-08 15:58:45 -05002862};
2863
2864} // namespace Callout
2865} // namespace Common
2866} // namespace openbmc_project
2867} // namespace xyz
2868
Brandon Wyman442035f2017-08-08 15:58:45 -05002869namespace details
2870{
2871
2872template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002873struct map_exception_type<
2874 sdbusplus::xyz::openbmc_project::Common::Callout::Error::GPIO>
Brandon Wyman442035f2017-08-08 15:58:45 -05002875{
2876 using type = xyz::openbmc_project::Common::Callout::GPIO;
2877};
2878
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002879} // namespace details
Brandon Wyman442035f2017-08-08 15:58:45 -05002880
2881namespace xyz
2882{
2883namespace openbmc_project
2884{
2885namespace Common
2886{
2887namespace Callout
2888{
2889namespace _IIC
2890{
2891
2892struct CALLOUT_IIC_BUS
2893{
Brandon Wyman03c19db2019-05-10 17:46:41 -05002894 /*
2895 * We can't use -fsanitize=undefined if we declare a
2896 * 'static constexpr auto str' member, so don't. Instead, open-code the
2897 * mako template lookups.
2898 */
Brandon Wyman442035f2017-08-08 15:58:45 -05002899 static constexpr auto str_short = "CALLOUT_IIC_BUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -05002900 using type =
2901 std::tuple<std::decay_t<decltype("CALLOUT_IIC_BUS=%s")>, const char*>;
2902 explicit constexpr CALLOUT_IIC_BUS(const char* a) :
2903 _entry(entry("CALLOUT_IIC_BUS=%s", a)){};
Brandon Wyman442035f2017-08-08 15:58:45 -05002904 type _entry;
2905};
2906struct CALLOUT_IIC_ADDR
2907{
Brandon Wyman03c19db2019-05-10 17:46:41 -05002908 /*
2909 * We can't use -fsanitize=undefined if we declare a
2910 * 'static constexpr auto str' member, so don't. Instead, open-code the
2911 * mako template lookups.
2912 */
Brandon Wyman442035f2017-08-08 15:58:45 -05002913 static constexpr auto str_short = "CALLOUT_IIC_ADDR";
Brandon Wyman03c19db2019-05-10 17:46:41 -05002914 using type =
2915 std::tuple<std::decay_t<decltype("CALLOUT_IIC_ADDR=0x%hx")>, uint16_t>;
2916 explicit constexpr CALLOUT_IIC_ADDR(uint16_t a) :
2917 _entry(entry("CALLOUT_IIC_ADDR=0x%hx", a)){};
Brandon Wyman442035f2017-08-08 15:58:45 -05002918 type _entry;
2919};
2920
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002921} // namespace _IIC
Brandon Wyman442035f2017-08-08 15:58:45 -05002922
2923struct IIC
2924{
2925 static constexpr auto L = level::ERR;
2926 using CALLOUT_IIC_BUS = _IIC::CALLOUT_IIC_BUS;
2927 using CALLOUT_IIC_ADDR = _IIC::CALLOUT_IIC_ADDR;
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002928 using CALLOUT_ERRNO =
2929 xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
2930 using CALLOUT_DEVICE_PATH =
2931 xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
2932 using metadata_types = std::tuple<CALLOUT_IIC_BUS, CALLOUT_IIC_ADDR,
2933 CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
Brandon Wyman442035f2017-08-08 15:58:45 -05002934};
2935
2936} // namespace Callout
2937} // namespace Common
2938} // namespace openbmc_project
2939} // namespace xyz
2940
Brandon Wyman442035f2017-08-08 15:58:45 -05002941namespace details
2942{
2943
2944template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002945struct map_exception_type<
2946 sdbusplus::xyz::openbmc_project::Common::Callout::Error::IIC>
Brandon Wyman442035f2017-08-08 15:58:45 -05002947{
2948 using type = xyz::openbmc_project::Common::Callout::IIC;
2949};
2950
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002951} // namespace details
Brandon Wyman442035f2017-08-08 15:58:45 -05002952
2953namespace xyz
2954{
2955namespace openbmc_project
2956{
2957namespace Common
2958{
2959namespace Callout
2960{
2961namespace _Inventory
2962{
2963
2964struct CALLOUT_INVENTORY_PATH
2965{
Brandon Wyman03c19db2019-05-10 17:46:41 -05002966 /*
2967 * We can't use -fsanitize=undefined if we declare a
2968 * 'static constexpr auto str' member, so don't. Instead, open-code the
2969 * mako template lookups.
2970 */
Brandon Wyman442035f2017-08-08 15:58:45 -05002971 static constexpr auto str_short = "CALLOUT_INVENTORY_PATH";
Brandon Wyman03c19db2019-05-10 17:46:41 -05002972 using type = std::tuple<std::decay_t<decltype("CALLOUT_INVENTORY_PATH=%s")>,
2973 const char*>;
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002974 explicit constexpr CALLOUT_INVENTORY_PATH(const char* a) :
Brandon Wyman03c19db2019-05-10 17:46:41 -05002975 _entry(entry("CALLOUT_INVENTORY_PATH=%s", a)){};
Brandon Wyman442035f2017-08-08 15:58:45 -05002976 type _entry;
2977};
2978
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002979} // namespace _Inventory
Brandon Wyman442035f2017-08-08 15:58:45 -05002980
2981struct Inventory
2982{
2983 static constexpr auto L = level::ERR;
2984 using CALLOUT_INVENTORY_PATH = _Inventory::CALLOUT_INVENTORY_PATH;
2985 using metadata_types = std::tuple<CALLOUT_INVENTORY_PATH>;
Brandon Wyman442035f2017-08-08 15:58:45 -05002986};
2987
2988} // namespace Callout
2989} // namespace Common
2990} // namespace openbmc_project
2991} // namespace xyz
2992
Brandon Wyman442035f2017-08-08 15:58:45 -05002993namespace details
2994{
2995
2996template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002997struct map_exception_type<
2998 sdbusplus::xyz::openbmc_project::Common::Callout::Error::Inventory>
Brandon Wyman442035f2017-08-08 15:58:45 -05002999{
3000 using type = xyz::openbmc_project::Common::Callout::Inventory;
3001};
3002
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003003} // namespace details
Brandon Wyman442035f2017-08-08 15:58:45 -05003004
3005namespace xyz
3006{
3007namespace openbmc_project
3008{
3009namespace Common
3010{
3011namespace Callout
3012{
3013namespace _IPMISensor
3014{
3015
3016struct CALLOUT_IPMI_SENSOR_NUM
3017{
Brandon Wyman03c19db2019-05-10 17:46:41 -05003018 /*
3019 * We can't use -fsanitize=undefined if we declare a
3020 * 'static constexpr auto str' member, so don't. Instead, open-code the
3021 * mako template lookups.
3022 */
Brandon Wyman442035f2017-08-08 15:58:45 -05003023 static constexpr auto str_short = "CALLOUT_IPMI_SENSOR_NUM";
Brandon Wyman03c19db2019-05-10 17:46:41 -05003024 using type =
3025 std::tuple<std::decay_t<decltype("CALLOUT_IPMI_SENSOR_NUM=%u")>,
3026 uint32_t>;
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003027 explicit constexpr CALLOUT_IPMI_SENSOR_NUM(uint32_t a) :
Brandon Wyman03c19db2019-05-10 17:46:41 -05003028 _entry(entry("CALLOUT_IPMI_SENSOR_NUM=%u", a)){};
Brandon Wyman442035f2017-08-08 15:58:45 -05003029 type _entry;
3030};
3031
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003032} // namespace _IPMISensor
Brandon Wyman442035f2017-08-08 15:58:45 -05003033
3034struct IPMISensor
3035{
3036 static constexpr auto L = level::ERR;
3037 using CALLOUT_IPMI_SENSOR_NUM = _IPMISensor::CALLOUT_IPMI_SENSOR_NUM;
3038 using metadata_types = std::tuple<CALLOUT_IPMI_SENSOR_NUM>;
Brandon Wyman442035f2017-08-08 15:58:45 -05003039};
3040
3041} // namespace Callout
3042} // namespace Common
3043} // namespace openbmc_project
3044} // namespace xyz
3045
Brandon Wyman442035f2017-08-08 15:58:45 -05003046namespace details
3047{
3048
3049template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003050struct map_exception_type<
3051 sdbusplus::xyz::openbmc_project::Common::Callout::Error::IPMISensor>
Brandon Wyman442035f2017-08-08 15:58:45 -05003052{
3053 using type = xyz::openbmc_project::Common::Callout::IPMISensor;
3054};
3055
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003056} // namespace details
Brandon Wyman442035f2017-08-08 15:58:45 -05003057
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003058namespace org
Brandon Wyman442035f2017-08-08 15:58:45 -05003059{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003060namespace open_power
Brandon Wyman442035f2017-08-08 15:58:45 -05003061{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003062namespace Witherspoon
Brandon Wyman442035f2017-08-08 15:58:45 -05003063{
3064namespace Fault
3065{
Brandon Wyman253dc9b2017-08-12 13:45:52 -05003066namespace _PowerSupplyInputFault
3067{
3068
3069struct RAW_STATUS
3070{
Brandon Wyman03c19db2019-05-10 17:46:41 -05003071 /*
3072 * We can't use -fsanitize=undefined if we declare a
3073 * 'static constexpr auto str' member, so don't. Instead, open-code the
3074 * mako template lookups.
3075 */
Brandon Wyman253dc9b2017-08-12 13:45:52 -05003076 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -05003077 using type =
3078 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
3079 explicit constexpr RAW_STATUS(const char* a) :
3080 _entry(entry("RAW_STATUS=%s", a)){};
Brandon Wyman253dc9b2017-08-12 13:45:52 -05003081 type _entry;
3082};
3083
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003084} // namespace _PowerSupplyInputFault
Brandon Wyman253dc9b2017-08-12 13:45:52 -05003085
3086struct PowerSupplyInputFault
3087{
3088 static constexpr auto L = level::ERR;
3089 using RAW_STATUS = _PowerSupplyInputFault::RAW_STATUS;
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003090 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
3091 Inventory::CALLOUT_INVENTORY_PATH;
Brandon Wymanea358c92017-10-27 17:34:07 -05003092 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Brandon Wyman253dc9b2017-08-12 13:45:52 -05003093};
3094
3095} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003096} // namespace Witherspoon
3097} // namespace open_power
3098} // namespace org
Brandon Wyman253dc9b2017-08-12 13:45:52 -05003099
Brandon Wyman253dc9b2017-08-12 13:45:52 -05003100namespace details
3101{
3102
3103template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003104struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::
3105 Error::PowerSupplyInputFault>
Brandon Wyman253dc9b2017-08-12 13:45:52 -05003106{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003107 using type = org::open_power::Witherspoon::Fault::PowerSupplyInputFault;
Brandon Wyman253dc9b2017-08-12 13:45:52 -05003108};
3109
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003110} // namespace details
Brandon Wyman253dc9b2017-08-12 13:45:52 -05003111
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003112namespace org
Brandon Wyman253dc9b2017-08-12 13:45:52 -05003113{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003114namespace open_power
Brandon Wyman253dc9b2017-08-12 13:45:52 -05003115{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003116namespace Witherspoon
Brandon Wyman253dc9b2017-08-12 13:45:52 -05003117{
3118namespace Fault
3119{
Brandon Wyman764c7972017-08-22 17:05:36 -05003120namespace _PowerSupplyShouldBeOn
3121{
3122
3123struct RAW_STATUS
3124{
Brandon Wyman03c19db2019-05-10 17:46:41 -05003125 /*
3126 * We can't use -fsanitize=undefined if we declare a
3127 * 'static constexpr auto str' member, so don't. Instead, open-code the
3128 * mako template lookups.
3129 */
Brandon Wyman764c7972017-08-22 17:05:36 -05003130 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -05003131 using type =
3132 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
3133 explicit constexpr RAW_STATUS(const char* a) :
3134 _entry(entry("RAW_STATUS=%s", a)){};
Brandon Wyman764c7972017-08-22 17:05:36 -05003135 type _entry;
3136};
3137
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003138} // namespace _PowerSupplyShouldBeOn
Brandon Wyman764c7972017-08-22 17:05:36 -05003139
3140struct PowerSupplyShouldBeOn
3141{
3142 static constexpr auto L = level::ERR;
3143 using RAW_STATUS = _PowerSupplyShouldBeOn::RAW_STATUS;
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003144 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
3145 Inventory::CALLOUT_INVENTORY_PATH;
Brandon Wyman764c7972017-08-22 17:05:36 -05003146 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Brandon Wyman764c7972017-08-22 17:05:36 -05003147};
3148
3149} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003150} // namespace Witherspoon
3151} // namespace open_power
3152} // namespace org
Brandon Wyman764c7972017-08-22 17:05:36 -05003153
Brandon Wyman764c7972017-08-22 17:05:36 -05003154namespace details
3155{
3156
3157template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003158struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::
3159 Error::PowerSupplyShouldBeOn>
Brandon Wyman764c7972017-08-22 17:05:36 -05003160{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003161 using type = org::open_power::Witherspoon::Fault::PowerSupplyShouldBeOn;
Brandon Wyman764c7972017-08-22 17:05:36 -05003162};
3163
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003164} // namespace details
Brandon Wyman764c7972017-08-22 17:05:36 -05003165
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003166namespace org
Brandon Wyman764c7972017-08-22 17:05:36 -05003167{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003168namespace open_power
Brandon Wyman764c7972017-08-22 17:05:36 -05003169{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003170namespace Witherspoon
Brandon Wyman764c7972017-08-22 17:05:36 -05003171{
3172namespace Fault
3173{
Brandon Wymanb165c252017-08-25 18:59:54 -05003174namespace _PowerSupplyOutputOvercurrent
3175{
3176
3177struct RAW_STATUS
3178{
Brandon Wyman03c19db2019-05-10 17:46:41 -05003179 /*
3180 * We can't use -fsanitize=undefined if we declare a
3181 * 'static constexpr auto str' member, so don't. Instead, open-code the
3182 * mako template lookups.
3183 */
Brandon Wymanb165c252017-08-25 18:59:54 -05003184 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -05003185 using type =
3186 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
3187 explicit constexpr RAW_STATUS(const char* a) :
3188 _entry(entry("RAW_STATUS=%s", a)){};
Brandon Wymanb165c252017-08-25 18:59:54 -05003189 type _entry;
3190};
3191
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003192} // namespace _PowerSupplyOutputOvercurrent
Brandon Wymanb165c252017-08-25 18:59:54 -05003193
3194struct PowerSupplyOutputOvercurrent
3195{
3196 static constexpr auto L = level::ERR;
3197 using RAW_STATUS = _PowerSupplyOutputOvercurrent::RAW_STATUS;
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003198 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
3199 Inventory::CALLOUT_INVENTORY_PATH;
Brandon Wymanb165c252017-08-25 18:59:54 -05003200 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Brandon Wymanb165c252017-08-25 18:59:54 -05003201};
3202
3203} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003204} // namespace Witherspoon
3205} // namespace open_power
3206} // namespace org
Brandon Wymanb165c252017-08-25 18:59:54 -05003207
Brandon Wymanb165c252017-08-25 18:59:54 -05003208namespace details
3209{
3210
3211template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003212struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::
3213 Error::PowerSupplyOutputOvercurrent>
Brandon Wymanb165c252017-08-25 18:59:54 -05003214{
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003215 using type =
3216 org::open_power::Witherspoon::Fault::PowerSupplyOutputOvercurrent;
Brandon Wymanb165c252017-08-25 18:59:54 -05003217};
3218
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003219} // namespace details
Brandon Wymanb165c252017-08-25 18:59:54 -05003220
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003221namespace org
Brandon Wymanb165c252017-08-25 18:59:54 -05003222{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003223namespace open_power
Brandon Wymanb165c252017-08-25 18:59:54 -05003224{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003225namespace Witherspoon
Brandon Wymanb165c252017-08-25 18:59:54 -05003226{
3227namespace Fault
3228{
Brandon Wymanab05c072017-08-30 18:26:41 -05003229namespace _PowerSupplyOutputOvervoltage
3230{
3231
3232struct RAW_STATUS
3233{
Brandon Wyman03c19db2019-05-10 17:46:41 -05003234 /*
3235 * We can't use -fsanitize=undefined if we declare a
3236 * 'static constexpr auto str' member, so don't. Instead, open-code the
3237 * mako template lookups.
3238 */
Brandon Wymanab05c072017-08-30 18:26:41 -05003239 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -05003240 using type =
3241 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
3242 explicit constexpr RAW_STATUS(const char* a) :
3243 _entry(entry("RAW_STATUS=%s", a)){};
Brandon Wymanab05c072017-08-30 18:26:41 -05003244 type _entry;
3245};
3246
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003247} // namespace _PowerSupplyOutputOvervoltage
Brandon Wymanab05c072017-08-30 18:26:41 -05003248
3249struct PowerSupplyOutputOvervoltage
3250{
3251 static constexpr auto L = level::ERR;
3252 using RAW_STATUS = _PowerSupplyOutputOvervoltage::RAW_STATUS;
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003253 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
3254 Inventory::CALLOUT_INVENTORY_PATH;
Brandon Wymanab05c072017-08-30 18:26:41 -05003255 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Brandon Wymanab05c072017-08-30 18:26:41 -05003256};
3257
3258} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003259} // namespace Witherspoon
3260} // namespace open_power
3261} // namespace org
Brandon Wymanab05c072017-08-30 18:26:41 -05003262
Brandon Wymanab05c072017-08-30 18:26:41 -05003263namespace details
3264{
3265
3266template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003267struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::
3268 Error::PowerSupplyOutputOvervoltage>
Brandon Wymanab05c072017-08-30 18:26:41 -05003269{
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003270 using type =
3271 org::open_power::Witherspoon::Fault::PowerSupplyOutputOvervoltage;
Brandon Wymanab05c072017-08-30 18:26:41 -05003272};
3273
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003274} // namespace details
Brandon Wymanab05c072017-08-30 18:26:41 -05003275
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003276namespace org
Brandon Wymanab05c072017-08-30 18:26:41 -05003277{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003278namespace open_power
Brandon Wymanab05c072017-08-30 18:26:41 -05003279{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003280namespace Witherspoon
Brandon Wymanab05c072017-08-30 18:26:41 -05003281{
3282namespace Fault
3283{
Brandon Wyman12661f12017-08-31 15:28:21 -05003284namespace _PowerSupplyFanFault
3285{
3286
3287struct RAW_STATUS
3288{
Brandon Wyman03c19db2019-05-10 17:46:41 -05003289 /*
3290 * We can't use -fsanitize=undefined if we declare a
3291 * 'static constexpr auto str' member, so don't. Instead, open-code the
3292 * mako template lookups.
3293 */
Brandon Wyman12661f12017-08-31 15:28:21 -05003294 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -05003295 using type =
3296 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
3297 explicit constexpr RAW_STATUS(const char* a) :
3298 _entry(entry("RAW_STATUS=%s", a)){};
Brandon Wyman12661f12017-08-31 15:28:21 -05003299 type _entry;
3300};
3301
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003302} // namespace _PowerSupplyFanFault
Brandon Wyman12661f12017-08-31 15:28:21 -05003303
3304struct PowerSupplyFanFault
3305{
3306 static constexpr auto L = level::ERR;
3307 using RAW_STATUS = _PowerSupplyFanFault::RAW_STATUS;
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003308 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
3309 Inventory::CALLOUT_INVENTORY_PATH;
Brandon Wyman12661f12017-08-31 15:28:21 -05003310 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Brandon Wyman12661f12017-08-31 15:28:21 -05003311};
3312
3313} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003314} // namespace Witherspoon
3315} // namespace open_power
3316} // namespace org
Brandon Wyman12661f12017-08-31 15:28:21 -05003317
Brandon Wyman12661f12017-08-31 15:28:21 -05003318namespace details
3319{
3320
3321template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003322struct map_exception_type<
3323 sdbusplus::org::open_power::Witherspoon::Fault::Error::PowerSupplyFanFault>
Brandon Wyman12661f12017-08-31 15:28:21 -05003324{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003325 using type = org::open_power::Witherspoon::Fault::PowerSupplyFanFault;
Brandon Wyman12661f12017-08-31 15:28:21 -05003326};
3327
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003328} // namespace details
Brandon Wyman12661f12017-08-31 15:28:21 -05003329
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003330namespace org
Brandon Wyman12661f12017-08-31 15:28:21 -05003331{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003332namespace open_power
Brandon Wyman12661f12017-08-31 15:28:21 -05003333{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003334namespace Witherspoon
Brandon Wyman12661f12017-08-31 15:28:21 -05003335{
3336namespace Fault
3337{
Brandon Wyman875b3632017-09-13 18:46:03 -05003338namespace _PowerSupplyTemperatureFault
3339{
3340
3341struct RAW_STATUS
3342{
Brandon Wyman03c19db2019-05-10 17:46:41 -05003343 /*
3344 * We can't use -fsanitize=undefined if we declare a
3345 * 'static constexpr auto str' member, so don't. Instead, open-code the
3346 * mako template lookups.
3347 */
Brandon Wyman875b3632017-09-13 18:46:03 -05003348 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -05003349 using type =
3350 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
3351 explicit constexpr RAW_STATUS(const char* a) :
3352 _entry(entry("RAW_STATUS=%s", a)){};
Brandon Wyman875b3632017-09-13 18:46:03 -05003353 type _entry;
3354};
3355
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003356} // namespace _PowerSupplyTemperatureFault
Brandon Wyman875b3632017-09-13 18:46:03 -05003357
3358struct PowerSupplyTemperatureFault
3359{
3360 static constexpr auto L = level::ERR;
3361 using RAW_STATUS = _PowerSupplyTemperatureFault::RAW_STATUS;
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003362 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
3363 Inventory::CALLOUT_INVENTORY_PATH;
Brandon Wyman875b3632017-09-13 18:46:03 -05003364 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Brandon Wyman875b3632017-09-13 18:46:03 -05003365};
3366
3367} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003368} // namespace Witherspoon
3369} // namespace open_power
3370} // namespace org
Brandon Wyman875b3632017-09-13 18:46:03 -05003371
Brandon Wyman875b3632017-09-13 18:46:03 -05003372namespace details
3373{
3374
3375template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003376struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::
3377 Error::PowerSupplyTemperatureFault>
Brandon Wyman875b3632017-09-13 18:46:03 -05003378{
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003379 using type =
3380 org::open_power::Witherspoon::Fault::PowerSupplyTemperatureFault;
Brandon Wyman875b3632017-09-13 18:46:03 -05003381};
3382
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003383} // namespace details
Brandon Wyman875b3632017-09-13 18:46:03 -05003384
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003385namespace org
Brandon Wyman875b3632017-09-13 18:46:03 -05003386{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003387namespace open_power
Brandon Wyman875b3632017-09-13 18:46:03 -05003388{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003389namespace Witherspoon
Brandon Wyman875b3632017-09-13 18:46:03 -05003390{
3391namespace Fault
3392{
Matt Spinler7b14db22017-09-19 10:57:54 -05003393namespace _GPUPowerFault
3394{
3395
3396struct RAW_STATUS
3397{
Brandon Wyman03c19db2019-05-10 17:46:41 -05003398 /*
3399 * We can't use -fsanitize=undefined if we declare a
3400 * 'static constexpr auto str' member, so don't. Instead, open-code the
3401 * mako template lookups.
3402 */
Matt Spinler7b14db22017-09-19 10:57:54 -05003403 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -05003404 using type =
3405 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
3406 explicit constexpr RAW_STATUS(const char* a) :
3407 _entry(entry("RAW_STATUS=%s", a)){};
Matt Spinler7b14db22017-09-19 10:57:54 -05003408 type _entry;
3409};
Matt Spinler7b14db22017-09-19 10:57:54 -05003410
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003411} // namespace _GPUPowerFault
Matt Spinler7b14db22017-09-19 10:57:54 -05003412
3413struct GPUPowerFault
3414{
3415 static constexpr auto L = level::ERR;
3416 using RAW_STATUS = _GPUPowerFault::RAW_STATUS;
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003417 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
3418 Inventory::CALLOUT_INVENTORY_PATH;
Matt Spinler0e45ced2018-02-12 14:36:07 -06003419 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Matt Spinler7b14db22017-09-19 10:57:54 -05003420};
3421
3422} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003423} // namespace Witherspoon
3424} // namespace open_power
3425} // namespace org
Matt Spinler7b14db22017-09-19 10:57:54 -05003426
Matt Spinler7b14db22017-09-19 10:57:54 -05003427namespace details
3428{
3429
3430template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003431struct map_exception_type<
3432 sdbusplus::org::open_power::Witherspoon::Fault::Error::GPUPowerFault>
Matt Spinler7b14db22017-09-19 10:57:54 -05003433{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003434 using type = org::open_power::Witherspoon::Fault::GPUPowerFault;
Matt Spinler7b14db22017-09-19 10:57:54 -05003435};
3436
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003437} // namespace details
Matt Spinler7b14db22017-09-19 10:57:54 -05003438
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003439namespace org
Matt Spinler7b14db22017-09-19 10:57:54 -05003440{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003441namespace open_power
Matt Spinler7b14db22017-09-19 10:57:54 -05003442{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003443namespace Witherspoon
Matt Spinler7b14db22017-09-19 10:57:54 -05003444{
3445namespace Fault
3446{
3447namespace _GPUOverTemp
3448{
3449
3450struct RAW_STATUS
3451{
Brandon Wyman03c19db2019-05-10 17:46:41 -05003452 /*
3453 * We can't use -fsanitize=undefined if we declare a
3454 * 'static constexpr auto str' member, so don't. Instead, open-code the
3455 * mako template lookups.
3456 */
Matt Spinler7b14db22017-09-19 10:57:54 -05003457 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -05003458 using type =
3459 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
3460 explicit constexpr RAW_STATUS(const char* a) :
3461 _entry(entry("RAW_STATUS=%s", a)){};
Matt Spinler7b14db22017-09-19 10:57:54 -05003462 type _entry;
3463};
Matt Spinler7b14db22017-09-19 10:57:54 -05003464
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003465} // namespace _GPUOverTemp
Matt Spinler7b14db22017-09-19 10:57:54 -05003466
3467struct GPUOverTemp
3468{
3469 static constexpr auto L = level::ERR;
3470 using RAW_STATUS = _GPUOverTemp::RAW_STATUS;
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003471 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
3472 Inventory::CALLOUT_INVENTORY_PATH;
Matt Spinler0e45ced2018-02-12 14:36:07 -06003473 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Matt Spinler7b14db22017-09-19 10:57:54 -05003474};
3475
3476} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003477} // namespace Witherspoon
3478} // namespace open_power
3479} // namespace org
Matt Spinler7b14db22017-09-19 10:57:54 -05003480
Matt Spinler7b14db22017-09-19 10:57:54 -05003481namespace details
3482{
3483
3484template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003485struct map_exception_type<
3486 sdbusplus::org::open_power::Witherspoon::Fault::Error::GPUOverTemp>
Matt Spinler7b14db22017-09-19 10:57:54 -05003487{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003488 using type = org::open_power::Witherspoon::Fault::GPUOverTemp;
Matt Spinler7b14db22017-09-19 10:57:54 -05003489};
3490
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003491} // namespace details
Matt Spinler84cd0a52017-08-04 08:53:30 -05003492
Brandon Wyman03c19db2019-05-10 17:46:41 -05003493namespace org
3494{
3495namespace open_power
3496{
3497namespace Witherspoon
3498{
3499namespace Fault
3500{
3501namespace _MemoryPowerFault
3502{
3503
3504struct RAW_STATUS
3505{
3506 /*
3507 * We can't use -fsanitize=undefined if we declare a
3508 * 'static constexpr auto str' member, so don't. Instead, open-code the
3509 * mako template lookups.
3510 */
3511 static constexpr auto str_short = "RAW_STATUS";
3512 using type =
3513 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
3514 explicit constexpr RAW_STATUS(const char* a) :
3515 _entry(entry("RAW_STATUS=%s", a)){};
3516 type _entry;
3517};
3518
3519} // namespace _MemoryPowerFault
3520
3521struct MemoryPowerFault
3522{
3523 static constexpr auto L = level::ERR;
3524 using RAW_STATUS = _MemoryPowerFault::RAW_STATUS;
3525 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
3526 Inventory::CALLOUT_INVENTORY_PATH;
3527 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
3528};
3529
3530} // namespace Fault
3531} // namespace Witherspoon
3532} // namespace open_power
3533} // namespace org
3534
3535namespace details
3536{
3537
3538template <>
3539struct map_exception_type<
3540 sdbusplus::org::open_power::Witherspoon::Fault::Error::MemoryPowerFault>
3541{
3542 using type = org::open_power::Witherspoon::Fault::MemoryPowerFault;
3543};
3544
3545} // namespace details
3546
Matt Spinler84cd0a52017-08-04 08:53:30 -05003547} // namespace logging
3548
3549} // namespace phosphor