blob: 4679713930886a1598614dc785e266b3cfab751b [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
Adriana Kobylak0c9a33d2021-09-13 18:05:09 +00001148{} // namespace _Shutdown
Andy YF Wang40247cc2019-09-06 18:30:56 +08001149
1150struct Shutdown
1151{
1152 static constexpr auto L = level::ERR;
1153 using metadata_types = std::tuple<>;
1154};
1155
1156} // namespace Fault
1157} // namespace Witherspoon
1158} // namespace open_power
1159} // namespace org
1160
1161namespace details
1162{
1163
1164template <>
1165struct map_exception_type<
1166 sdbusplus::org::open_power::Witherspoon::Fault::Error::Shutdown>
1167{
1168 using type = org::open_power::Witherspoon::Fault::Shutdown;
1169};
1170
1171} // namespace details
1172
1173namespace org
1174{
1175namespace open_power
1176{
1177namespace Witherspoon
1178{
1179namespace Fault
1180{
1181namespace _PowerOnFailure
Adriana Kobylak0c9a33d2021-09-13 18:05:09 +00001182{} // namespace _PowerOnFailure
Andy YF Wang40247cc2019-09-06 18:30:56 +08001183
1184struct PowerOnFailure
1185{
1186 static constexpr auto L = level::ERR;
1187 using metadata_types = std::tuple<>;
1188};
1189
1190} // namespace Fault
1191} // namespace Witherspoon
1192} // namespace open_power
1193} // namespace org
1194
1195namespace details
1196{
1197
1198template <>
1199struct map_exception_type<
1200 sdbusplus::org::open_power::Witherspoon::Fault::Error::PowerOnFailure>
1201{
1202 using type = org::open_power::Witherspoon::Fault::PowerOnFailure;
1203};
1204
1205} // namespace details
1206
1207namespace org
1208{
1209namespace open_power
1210{
1211namespace Witherspoon
1212{
1213namespace Fault
1214{
1215namespace _ErrorCode0
Adriana Kobylak0c9a33d2021-09-13 18:05:09 +00001216{} // namespace _ErrorCode0
Andy YF Wang40247cc2019-09-06 18:30:56 +08001217
1218struct ErrorCode0
1219{
1220 static constexpr auto L = level::ERR;
1221 using metadata_types = std::tuple<>;
1222};
1223
1224} // namespace Fault
1225} // namespace Witherspoon
1226} // namespace open_power
1227} // namespace org
1228
1229namespace details
1230{
1231
1232template <>
1233struct map_exception_type<
1234 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode0>
1235{
1236 using type = org::open_power::Witherspoon::Fault::ErrorCode0;
1237};
1238
1239} // namespace details
1240
1241namespace org
1242{
1243namespace open_power
1244{
1245namespace Witherspoon
1246{
1247namespace Fault
1248{
1249namespace _ErrorCode1
Adriana Kobylak0c9a33d2021-09-13 18:05:09 +00001250{} // namespace _ErrorCode1
Andy YF Wang40247cc2019-09-06 18:30:56 +08001251
1252struct ErrorCode1
1253{
1254 static constexpr auto L = level::ERR;
1255 using metadata_types = std::tuple<>;
1256};
1257
1258} // namespace Fault
1259} // namespace Witherspoon
1260} // namespace open_power
1261} // namespace org
1262
1263namespace details
1264{
1265
1266template <>
1267struct map_exception_type<
1268 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode1>
1269{
1270 using type = org::open_power::Witherspoon::Fault::ErrorCode1;
1271};
1272
1273} // namespace details
1274
1275namespace org
1276{
1277namespace open_power
1278{
1279namespace Witherspoon
1280{
1281namespace Fault
1282{
1283namespace _ErrorCode2
Adriana Kobylak0c9a33d2021-09-13 18:05:09 +00001284{} // namespace _ErrorCode2
Andy YF Wang40247cc2019-09-06 18:30:56 +08001285
1286struct ErrorCode2
1287{
1288 static constexpr auto L = level::ERR;
1289 using metadata_types = std::tuple<>;
1290};
1291
1292} // namespace Fault
1293} // namespace Witherspoon
1294} // namespace open_power
1295} // namespace org
1296
1297namespace details
1298{
1299
1300template <>
1301struct map_exception_type<
1302 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode2>
1303{
1304 using type = org::open_power::Witherspoon::Fault::ErrorCode2;
1305};
1306
1307} // namespace details
1308
1309namespace org
1310{
1311namespace open_power
1312{
1313namespace Witherspoon
1314{
1315namespace Fault
1316{
1317namespace _ErrorCode3
Adriana Kobylak0c9a33d2021-09-13 18:05:09 +00001318{} // namespace _ErrorCode3
Andy YF Wang40247cc2019-09-06 18:30:56 +08001319
1320struct ErrorCode3
1321{
1322 static constexpr auto L = level::ERR;
1323 using metadata_types = std::tuple<>;
1324};
1325
1326} // namespace Fault
1327} // namespace Witherspoon
1328} // namespace open_power
1329} // namespace org
1330
1331namespace details
1332{
1333
1334template <>
1335struct map_exception_type<
1336 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode3>
1337{
1338 using type = org::open_power::Witherspoon::Fault::ErrorCode3;
1339};
1340
1341} // namespace details
1342
1343namespace org
1344{
1345namespace open_power
1346{
1347namespace Witherspoon
1348{
1349namespace Fault
1350{
1351namespace _ErrorCode4
Adriana Kobylak0c9a33d2021-09-13 18:05:09 +00001352{} // namespace _ErrorCode4
Andy YF Wang40247cc2019-09-06 18:30:56 +08001353
1354struct ErrorCode4
1355{
1356 static constexpr auto L = level::ERR;
1357 using metadata_types = std::tuple<>;
1358};
1359
1360} // namespace Fault
1361} // namespace Witherspoon
1362} // namespace open_power
1363} // namespace org
1364
1365namespace details
1366{
1367
1368template <>
1369struct map_exception_type<
1370 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode4>
1371{
1372 using type = org::open_power::Witherspoon::Fault::ErrorCode4;
1373};
1374
1375} // namespace details
1376
1377namespace org
1378{
1379namespace open_power
1380{
1381namespace Witherspoon
1382{
1383namespace Fault
1384{
1385namespace _ErrorCode5
Adriana Kobylak0c9a33d2021-09-13 18:05:09 +00001386{} // namespace _ErrorCode5
Andy YF Wang40247cc2019-09-06 18:30:56 +08001387
1388struct ErrorCode5
1389{
1390 static constexpr auto L = level::ERR;
1391 using metadata_types = std::tuple<>;
1392};
1393
1394} // namespace Fault
1395} // namespace Witherspoon
1396} // namespace open_power
1397} // namespace org
1398
1399namespace details
1400{
1401
1402template <>
1403struct map_exception_type<
1404 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode5>
1405{
1406 using type = org::open_power::Witherspoon::Fault::ErrorCode5;
1407};
1408
1409} // namespace details
1410
1411namespace org
1412{
1413namespace open_power
1414{
1415namespace Witherspoon
1416{
1417namespace Fault
1418{
1419namespace _ErrorCode6
Adriana Kobylak0c9a33d2021-09-13 18:05:09 +00001420{} // namespace _ErrorCode6
Andy YF Wang40247cc2019-09-06 18:30:56 +08001421
1422struct ErrorCode6
1423{
1424 static constexpr auto L = level::ERR;
1425 using metadata_types = std::tuple<>;
1426};
1427
1428} // namespace Fault
1429} // namespace Witherspoon
1430} // namespace open_power
1431} // namespace org
1432
1433namespace details
1434{
1435
1436template <>
1437struct map_exception_type<
1438 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode6>
1439{
1440 using type = org::open_power::Witherspoon::Fault::ErrorCode6;
1441};
1442
1443} // namespace details
1444
1445namespace org
1446{
1447namespace open_power
1448{
1449namespace Witherspoon
1450{
1451namespace Fault
1452{
1453namespace _ErrorCode7
Adriana Kobylak0c9a33d2021-09-13 18:05:09 +00001454{} // namespace _ErrorCode7
Andy YF Wang40247cc2019-09-06 18:30:56 +08001455
1456struct ErrorCode7
1457{
1458 static constexpr auto L = level::ERR;
1459 using metadata_types = std::tuple<>;
1460};
1461
1462} // namespace Fault
1463} // namespace Witherspoon
1464} // namespace open_power
1465} // namespace org
1466
1467namespace details
1468{
1469
1470template <>
1471struct map_exception_type<
1472 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode7>
1473{
1474 using type = org::open_power::Witherspoon::Fault::ErrorCode7;
1475};
1476
1477} // namespace details
1478
1479namespace org
1480{
1481namespace open_power
1482{
1483namespace Witherspoon
1484{
1485namespace Fault
1486{
1487namespace _ErrorCode8
Adriana Kobylak0c9a33d2021-09-13 18:05:09 +00001488{} // namespace _ErrorCode8
Andy YF Wang40247cc2019-09-06 18:30:56 +08001489
1490struct ErrorCode8
1491{
1492 static constexpr auto L = level::ERR;
1493 using metadata_types = std::tuple<>;
1494};
1495
1496} // namespace Fault
1497} // namespace Witherspoon
1498} // namespace open_power
1499} // namespace org
1500
1501namespace details
1502{
1503
1504template <>
1505struct map_exception_type<
1506 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode8>
1507{
1508 using type = org::open_power::Witherspoon::Fault::ErrorCode8;
1509};
1510
1511} // namespace details
1512
1513namespace org
1514{
1515namespace open_power
1516{
1517namespace Witherspoon
1518{
1519namespace Fault
1520{
1521namespace _ErrorCode9
Adriana Kobylak0c9a33d2021-09-13 18:05:09 +00001522{} // namespace _ErrorCode9
Andy YF Wang40247cc2019-09-06 18:30:56 +08001523
1524struct ErrorCode9
1525{
1526 static constexpr auto L = level::ERR;
1527 using metadata_types = std::tuple<>;
1528};
1529
1530} // namespace Fault
1531} // namespace Witherspoon
1532} // namespace open_power
1533} // namespace org
1534
1535namespace details
1536{
1537
1538template <>
1539struct map_exception_type<
1540 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode9>
1541{
1542 using type = org::open_power::Witherspoon::Fault::ErrorCode9;
1543};
1544
1545} // namespace details
1546
1547namespace org
1548{
1549namespace open_power
1550{
1551namespace Witherspoon
1552{
1553namespace Fault
1554{
1555namespace _ErrorCode10
Adriana Kobylak0c9a33d2021-09-13 18:05:09 +00001556{} // namespace _ErrorCode10
Andy YF Wang40247cc2019-09-06 18:30:56 +08001557
1558struct ErrorCode10
1559{
1560 static constexpr auto L = level::ERR;
1561 using metadata_types = std::tuple<>;
1562};
1563
1564} // namespace Fault
1565} // namespace Witherspoon
1566} // namespace open_power
1567} // namespace org
1568
1569namespace details
1570{
1571
1572template <>
1573struct map_exception_type<
1574 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode10>
1575{
1576 using type = org::open_power::Witherspoon::Fault::ErrorCode10;
1577};
1578
1579} // namespace details
1580
1581namespace org
1582{
1583namespace open_power
1584{
1585namespace Witherspoon
1586{
1587namespace Fault
1588{
1589namespace _ErrorCode11
Adriana Kobylak0c9a33d2021-09-13 18:05:09 +00001590{} // namespace _ErrorCode11
Andy YF Wang40247cc2019-09-06 18:30:56 +08001591
1592struct ErrorCode11
1593{
1594 static constexpr auto L = level::ERR;
1595 using metadata_types = std::tuple<>;
1596};
1597
1598} // namespace Fault
1599} // namespace Witherspoon
1600} // namespace open_power
1601} // namespace org
1602
1603namespace details
1604{
1605
1606template <>
1607struct map_exception_type<
1608 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode11>
1609{
1610 using type = org::open_power::Witherspoon::Fault::ErrorCode11;
1611};
1612
1613} // namespace details
1614
1615namespace org
1616{
1617namespace open_power
1618{
1619namespace Witherspoon
1620{
1621namespace Fault
1622{
1623namespace _ErrorCode12
Adriana Kobylak0c9a33d2021-09-13 18:05:09 +00001624{} // namespace _ErrorCode12
Andy YF Wang40247cc2019-09-06 18:30:56 +08001625
1626struct ErrorCode12
1627{
1628 static constexpr auto L = level::ERR;
1629 using metadata_types = std::tuple<>;
1630};
1631
1632} // namespace Fault
1633} // namespace Witherspoon
1634} // namespace open_power
1635} // namespace org
1636
1637namespace details
1638{
1639
1640template <>
1641struct map_exception_type<
1642 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode12>
1643{
1644 using type = org::open_power::Witherspoon::Fault::ErrorCode12;
1645};
1646
1647} // namespace details
1648
1649namespace org
1650{
1651namespace open_power
1652{
1653namespace Witherspoon
1654{
1655namespace Fault
1656{
1657namespace _ErrorCode13
Adriana Kobylak0c9a33d2021-09-13 18:05:09 +00001658{} // namespace _ErrorCode13
Andy YF Wang40247cc2019-09-06 18:30:56 +08001659
1660struct ErrorCode13
1661{
1662 static constexpr auto L = level::ERR;
1663 using metadata_types = std::tuple<>;
1664};
1665
1666} // namespace Fault
1667} // namespace Witherspoon
1668} // namespace open_power
1669} // namespace org
1670
1671namespace details
1672{
1673
1674template <>
1675struct map_exception_type<
1676 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode13>
1677{
1678 using type = org::open_power::Witherspoon::Fault::ErrorCode13;
1679};
1680
1681} // namespace details
1682
1683namespace org
1684{
1685namespace open_power
1686{
1687namespace Witherspoon
1688{
1689namespace Fault
1690{
1691namespace _ErrorCode14
Adriana Kobylak0c9a33d2021-09-13 18:05:09 +00001692{} // namespace _ErrorCode14
Andy YF Wang40247cc2019-09-06 18:30:56 +08001693
1694struct ErrorCode14
1695{
1696 static constexpr auto L = level::ERR;
1697 using metadata_types = std::tuple<>;
1698};
1699
1700} // namespace Fault
1701} // namespace Witherspoon
1702} // namespace open_power
1703} // namespace org
1704
1705namespace details
1706{
1707
1708template <>
1709struct map_exception_type<
1710 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode14>
1711{
1712 using type = org::open_power::Witherspoon::Fault::ErrorCode14;
1713};
1714
1715} // namespace details
1716
1717namespace org
1718{
1719namespace open_power
1720{
1721namespace Witherspoon
1722{
1723namespace Fault
1724{
1725namespace _ErrorCode15
Adriana Kobylak0c9a33d2021-09-13 18:05:09 +00001726{} // namespace _ErrorCode15
Andy YF Wang40247cc2019-09-06 18:30:56 +08001727
1728struct ErrorCode15
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::ErrorCode15>
1745{
1746 using type = org::open_power::Witherspoon::Fault::ErrorCode15;
1747};
1748
1749} // namespace details
1750
1751namespace org
1752{
1753namespace open_power
1754{
1755namespace Witherspoon
1756{
1757namespace Fault
1758{
1759namespace _ErrorCode16
Adriana Kobylak0c9a33d2021-09-13 18:05:09 +00001760{} // namespace _ErrorCode16
Andy YF Wang40247cc2019-09-06 18:30:56 +08001761
1762struct ErrorCode16
1763{
1764 static constexpr auto L = level::ERR;
1765 using metadata_types = std::tuple<>;
1766};
1767
1768} // namespace Fault
1769} // namespace Witherspoon
1770} // namespace open_power
1771} // namespace org
1772
1773namespace details
1774{
1775
1776template <>
1777struct map_exception_type<
1778 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode16>
1779{
1780 using type = org::open_power::Witherspoon::Fault::ErrorCode16;
1781};
1782
1783} // namespace details
1784
1785namespace org
1786{
1787namespace open_power
1788{
1789namespace Witherspoon
1790{
1791namespace Fault
1792{
1793namespace _ErrorCode17
Adriana Kobylak0c9a33d2021-09-13 18:05:09 +00001794{} // namespace _ErrorCode17
Andy YF Wang40247cc2019-09-06 18:30:56 +08001795
1796struct ErrorCode17
1797{
1798 static constexpr auto L = level::ERR;
1799 using metadata_types = std::tuple<>;
1800};
1801
1802} // namespace Fault
1803} // namespace Witherspoon
1804} // namespace open_power
1805} // namespace org
1806
1807namespace details
1808{
1809
1810template <>
1811struct map_exception_type<
1812 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode17>
1813{
1814 using type = org::open_power::Witherspoon::Fault::ErrorCode17;
1815};
1816
1817} // namespace details
1818
1819namespace org
1820{
1821namespace open_power
1822{
1823namespace Witherspoon
1824{
1825namespace Fault
1826{
1827namespace _ErrorCode18
Adriana Kobylak0c9a33d2021-09-13 18:05:09 +00001828{} // namespace _ErrorCode18
Andy YF Wang40247cc2019-09-06 18:30:56 +08001829
1830struct ErrorCode18
1831{
1832 static constexpr auto L = level::ERR;
1833 using metadata_types = std::tuple<>;
1834};
1835
1836} // namespace Fault
1837} // namespace Witherspoon
1838} // namespace open_power
1839} // namespace org
1840
1841namespace details
1842{
1843
1844template <>
1845struct map_exception_type<
1846 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode18>
1847{
1848 using type = org::open_power::Witherspoon::Fault::ErrorCode18;
1849};
1850
1851} // namespace details
1852
1853namespace org
1854{
1855namespace open_power
1856{
1857namespace Witherspoon
1858{
1859namespace Fault
1860{
1861namespace _ErrorCode19
Adriana Kobylak0c9a33d2021-09-13 18:05:09 +00001862{} // namespace _ErrorCode19
Andy YF Wang40247cc2019-09-06 18:30:56 +08001863
1864struct ErrorCode19
1865{
1866 static constexpr auto L = level::ERR;
1867 using metadata_types = std::tuple<>;
1868};
1869
1870} // namespace Fault
1871} // namespace Witherspoon
1872} // namespace open_power
1873} // namespace org
1874
1875namespace details
1876{
1877
1878template <>
1879struct map_exception_type<
1880 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode19>
1881{
1882 using type = org::open_power::Witherspoon::Fault::ErrorCode19;
1883};
1884
1885} // namespace details
1886
1887namespace org
1888{
1889namespace open_power
1890{
1891namespace Witherspoon
1892{
1893namespace Fault
1894{
1895namespace _ErrorCode20
Adriana Kobylak0c9a33d2021-09-13 18:05:09 +00001896{} // namespace _ErrorCode20
Andy YF Wang40247cc2019-09-06 18:30:56 +08001897
1898struct ErrorCode20
1899{
1900 static constexpr auto L = level::ERR;
1901 using metadata_types = std::tuple<>;
1902};
1903
1904} // namespace Fault
1905} // namespace Witherspoon
1906} // namespace open_power
1907} // namespace org
1908
1909namespace details
1910{
1911
1912template <>
1913struct map_exception_type<
1914 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode20>
1915{
1916 using type = org::open_power::Witherspoon::Fault::ErrorCode20;
1917};
1918
1919} // namespace details
1920
1921namespace org
1922{
1923namespace open_power
1924{
1925namespace Witherspoon
1926{
1927namespace Fault
1928{
1929namespace _ErrorCode21
Adriana Kobylak0c9a33d2021-09-13 18:05:09 +00001930{} // namespace _ErrorCode21
Andy YF Wang40247cc2019-09-06 18:30:56 +08001931
1932struct ErrorCode21
1933{
1934 static constexpr auto L = level::ERR;
1935 using metadata_types = std::tuple<>;
1936};
1937
1938} // namespace Fault
1939} // namespace Witherspoon
1940} // namespace open_power
1941} // namespace org
1942
1943namespace details
1944{
1945
1946template <>
1947struct map_exception_type<
1948 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode21>
1949{
1950 using type = org::open_power::Witherspoon::Fault::ErrorCode21;
1951};
1952
1953} // namespace details
1954
1955namespace org
1956{
1957namespace open_power
1958{
1959namespace Witherspoon
1960{
1961namespace Fault
1962{
1963namespace _ErrorCode22
Adriana Kobylak0c9a33d2021-09-13 18:05:09 +00001964{} // namespace _ErrorCode22
Andy YF Wang40247cc2019-09-06 18:30:56 +08001965
1966struct ErrorCode22
1967{
1968 static constexpr auto L = level::ERR;
1969 using metadata_types = std::tuple<>;
1970};
1971
1972} // namespace Fault
1973} // namespace Witherspoon
1974} // namespace open_power
1975} // namespace org
1976
1977namespace details
1978{
1979
1980template <>
1981struct map_exception_type<
1982 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode22>
1983{
1984 using type = org::open_power::Witherspoon::Fault::ErrorCode22;
1985};
1986
1987} // namespace details
1988
1989namespace org
1990{
1991namespace open_power
1992{
1993namespace Witherspoon
1994{
1995namespace Fault
1996{
1997namespace _ErrorCode23
Adriana Kobylak0c9a33d2021-09-13 18:05:09 +00001998{} // namespace _ErrorCode23
Andy YF Wang40247cc2019-09-06 18:30:56 +08001999
2000struct ErrorCode23
2001{
2002 static constexpr auto L = level::ERR;
2003 using metadata_types = std::tuple<>;
2004};
2005
2006} // namespace Fault
2007} // namespace Witherspoon
2008} // namespace open_power
2009} // namespace org
2010
2011namespace details
2012{
2013
2014template <>
2015struct map_exception_type<
2016 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode23>
2017{
2018 using type = org::open_power::Witherspoon::Fault::ErrorCode23;
2019};
2020
2021} // namespace details
2022
2023namespace org
2024{
2025namespace open_power
2026{
2027namespace Witherspoon
2028{
2029namespace Fault
2030{
2031namespace _ErrorCode24
Adriana Kobylak0c9a33d2021-09-13 18:05:09 +00002032{} // namespace _ErrorCode24
Andy YF Wang40247cc2019-09-06 18:30:56 +08002033
2034struct ErrorCode24
2035{
2036 static constexpr auto L = level::ERR;
2037 using metadata_types = std::tuple<>;
2038};
2039
2040} // namespace Fault
2041} // namespace Witherspoon
2042} // namespace open_power
2043} // namespace org
2044
2045namespace details
2046{
2047
2048template <>
2049struct map_exception_type<
2050 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode24>
2051{
2052 using type = org::open_power::Witherspoon::Fault::ErrorCode24;
2053};
2054
2055} // namespace details
2056
2057namespace org
2058{
2059namespace open_power
2060{
2061namespace Witherspoon
2062{
2063namespace Fault
2064{
2065namespace _ErrorCode25
Adriana Kobylak0c9a33d2021-09-13 18:05:09 +00002066{} // namespace _ErrorCode25
Andy YF Wang40247cc2019-09-06 18:30:56 +08002067
2068struct ErrorCode25
2069{
2070 static constexpr auto L = level::ERR;
2071 using metadata_types = std::tuple<>;
2072};
2073
2074} // namespace Fault
2075} // namespace Witherspoon
2076} // namespace open_power
2077} // namespace org
2078
2079namespace details
2080{
2081
2082template <>
2083struct map_exception_type<
2084 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode25>
2085{
2086 using type = org::open_power::Witherspoon::Fault::ErrorCode25;
2087};
2088
2089} // namespace details
2090
2091namespace org
2092{
2093namespace open_power
2094{
2095namespace Witherspoon
2096{
2097namespace Fault
2098{
2099namespace _ErrorCode26
Adriana Kobylak0c9a33d2021-09-13 18:05:09 +00002100{} // namespace _ErrorCode26
Andy YF Wang40247cc2019-09-06 18:30:56 +08002101
2102struct ErrorCode26
2103{
2104 static constexpr auto L = level::ERR;
2105 using metadata_types = std::tuple<>;
2106};
2107
2108} // namespace Fault
2109} // namespace Witherspoon
2110} // namespace open_power
2111} // namespace org
2112
2113namespace details
2114{
2115
2116template <>
2117struct map_exception_type<
2118 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode26>
2119{
2120 using type = org::open_power::Witherspoon::Fault::ErrorCode26;
2121};
2122
2123} // namespace details
2124
2125namespace org
2126{
2127namespace open_power
2128{
2129namespace Witherspoon
2130{
2131namespace Fault
2132{
2133namespace _ErrorCode27
Adriana Kobylak0c9a33d2021-09-13 18:05:09 +00002134{} // namespace _ErrorCode27
Andy YF Wang40247cc2019-09-06 18:30:56 +08002135
2136struct ErrorCode27
2137{
2138 static constexpr auto L = level::ERR;
2139 using metadata_types = std::tuple<>;
2140};
2141
2142} // namespace Fault
2143} // namespace Witherspoon
2144} // namespace open_power
2145} // namespace org
2146
2147namespace details
2148{
2149
2150template <>
2151struct map_exception_type<
2152 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode27>
2153{
2154 using type = org::open_power::Witherspoon::Fault::ErrorCode27;
2155};
2156
2157} // namespace details
2158
2159namespace org
2160{
2161namespace open_power
2162{
2163namespace Witherspoon
2164{
2165namespace Fault
2166{
2167namespace _ErrorCode28
Adriana Kobylak0c9a33d2021-09-13 18:05:09 +00002168{} // namespace _ErrorCode28
Andy YF Wang40247cc2019-09-06 18:30:56 +08002169
2170struct ErrorCode28
2171{
2172 static constexpr auto L = level::ERR;
2173 using metadata_types = std::tuple<>;
2174};
2175
2176} // namespace Fault
2177} // namespace Witherspoon
2178} // namespace open_power
2179} // namespace org
2180
2181namespace details
2182{
2183
2184template <>
2185struct map_exception_type<
2186 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode28>
2187{
2188 using type = org::open_power::Witherspoon::Fault::ErrorCode28;
2189};
2190
2191} // namespace details
2192
2193namespace org
2194{
2195namespace open_power
2196{
2197namespace Witherspoon
2198{
2199namespace Fault
2200{
2201namespace _ErrorCode29
Adriana Kobylak0c9a33d2021-09-13 18:05:09 +00002202{} // namespace _ErrorCode29
Andy YF Wang40247cc2019-09-06 18:30:56 +08002203
2204struct ErrorCode29
2205{
2206 static constexpr auto L = level::ERR;
2207 using metadata_types = std::tuple<>;
2208};
2209
2210} // namespace Fault
2211} // namespace Witherspoon
2212} // namespace open_power
2213} // namespace org
2214
2215namespace details
2216{
2217
2218template <>
2219struct map_exception_type<
2220 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode29>
2221{
2222 using type = org::open_power::Witherspoon::Fault::ErrorCode29;
2223};
2224
2225} // namespace details
2226
2227namespace org
2228{
2229namespace open_power
2230{
2231namespace Witherspoon
2232{
2233namespace Fault
2234{
2235namespace _ErrorCode30
Adriana Kobylak0c9a33d2021-09-13 18:05:09 +00002236{} // namespace _ErrorCode30
Andy YF Wang40247cc2019-09-06 18:30:56 +08002237
2238struct ErrorCode30
2239{
2240 static constexpr auto L = level::ERR;
2241 using metadata_types = std::tuple<>;
2242};
2243
2244} // namespace Fault
2245} // namespace Witherspoon
2246} // namespace open_power
2247} // namespace org
2248
2249namespace details
2250{
2251
2252template <>
2253struct map_exception_type<
2254 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode30>
2255{
2256 using type = org::open_power::Witherspoon::Fault::ErrorCode30;
2257};
2258
2259} // namespace details
2260
2261namespace org
2262{
2263namespace open_power
2264{
2265namespace Witherspoon
2266{
2267namespace Fault
2268{
2269namespace _ErrorCode31
Adriana Kobylak0c9a33d2021-09-13 18:05:09 +00002270{} // namespace _ErrorCode31
Andy YF Wang40247cc2019-09-06 18:30:56 +08002271
2272struct ErrorCode31
2273{
2274 static constexpr auto L = level::ERR;
2275 using metadata_types = std::tuple<>;
2276};
2277
2278} // namespace Fault
2279} // namespace Witherspoon
2280} // namespace open_power
2281} // namespace org
2282
2283namespace details
2284{
2285
2286template <>
2287struct map_exception_type<
2288 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode31>
2289{
2290 using type = org::open_power::Witherspoon::Fault::ErrorCode31;
2291};
2292
2293} // namespace details
2294
2295namespace org
2296{
2297namespace open_power
2298{
2299namespace Witherspoon
2300{
2301namespace Fault
2302{
2303namespace _ErrorCode32
Adriana Kobylak0c9a33d2021-09-13 18:05:09 +00002304{} // namespace _ErrorCode32
Andy YF Wang40247cc2019-09-06 18:30:56 +08002305
2306struct ErrorCode32
2307{
2308 static constexpr auto L = level::ERR;
2309 using metadata_types = std::tuple<>;
2310};
2311
2312} // namespace Fault
2313} // namespace Witherspoon
2314} // namespace open_power
2315} // namespace org
2316
2317namespace details
2318{
2319
2320template <>
2321struct map_exception_type<
2322 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode32>
2323{
2324 using type = org::open_power::Witherspoon::Fault::ErrorCode32;
2325};
2326
2327} // namespace details
2328
2329namespace org
2330{
2331namespace open_power
2332{
2333namespace Witherspoon
2334{
2335namespace Fault
2336{
2337namespace _ErrorCode33
Adriana Kobylak0c9a33d2021-09-13 18:05:09 +00002338{} // namespace _ErrorCode33
Andy YF Wang40247cc2019-09-06 18:30:56 +08002339
2340struct ErrorCode33
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::ErrorCode33>
2357{
2358 using type = org::open_power::Witherspoon::Fault::ErrorCode33;
2359};
2360
2361} // namespace details
2362
2363namespace org
2364{
2365namespace open_power
2366{
2367namespace Witherspoon
2368{
2369namespace Fault
2370{
2371namespace _ErrorCode34
Adriana Kobylak0c9a33d2021-09-13 18:05:09 +00002372{} // namespace _ErrorCode34
Andy YF Wang40247cc2019-09-06 18:30:56 +08002373
2374struct ErrorCode34
2375{
2376 static constexpr auto L = level::ERR;
2377 using metadata_types = std::tuple<>;
2378};
2379
2380} // namespace Fault
2381} // namespace Witherspoon
2382} // namespace open_power
2383} // namespace org
2384
2385namespace details
2386{
2387
2388template <>
2389struct map_exception_type<
2390 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode34>
2391{
2392 using type = org::open_power::Witherspoon::Fault::ErrorCode34;
2393};
2394
2395} // namespace details
2396
2397namespace org
2398{
2399namespace open_power
2400{
2401namespace Witherspoon
2402{
2403namespace Fault
2404{
2405namespace _ErrorCode35
Adriana Kobylak0c9a33d2021-09-13 18:05:09 +00002406{} // namespace _ErrorCode35
Andy YF Wang40247cc2019-09-06 18:30:56 +08002407
2408struct ErrorCode35
2409{
2410 static constexpr auto L = level::ERR;
2411 using metadata_types = std::tuple<>;
2412};
2413
2414} // namespace Fault
2415} // namespace Witherspoon
2416} // namespace open_power
2417} // namespace org
2418
2419namespace details
2420{
2421
2422template <>
2423struct map_exception_type<
2424 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode35>
2425{
2426 using type = org::open_power::Witherspoon::Fault::ErrorCode35;
2427};
2428
2429} // namespace details
2430
2431namespace org
2432{
2433namespace open_power
2434{
2435namespace Witherspoon
2436{
2437namespace Fault
2438{
2439namespace _ErrorCode36
Adriana Kobylak0c9a33d2021-09-13 18:05:09 +00002440{} // namespace _ErrorCode36
Andy YF Wang40247cc2019-09-06 18:30:56 +08002441
2442struct ErrorCode36
2443{
2444 static constexpr auto L = level::ERR;
2445 using metadata_types = std::tuple<>;
2446};
2447
2448} // namespace Fault
2449} // namespace Witherspoon
2450} // namespace open_power
2451} // namespace org
2452
2453namespace details
2454{
2455
2456template <>
2457struct map_exception_type<
2458 sdbusplus::org::open_power::Witherspoon::Fault::Error::ErrorCode36>
2459{
2460 using type = org::open_power::Witherspoon::Fault::ErrorCode36;
2461};
2462
2463} // namespace details
2464
2465namespace org
2466{
2467namespace open_power
2468{
2469namespace Witherspoon
2470{
2471namespace Fault
2472{
2473namespace _PowerSequencerVoltageFault
2474{
2475
2476struct RAIL
2477{
2478 /*
2479 * We can't use -fsanitize=undefined if we declare a
2480 * 'static constexpr auto str' member, so don't. Instead, open-code the
2481 * mako template lookups.
2482 */
2483 static constexpr auto str_short = "RAIL";
2484 using type = std::tuple<std::decay_t<decltype("RAIL=%d")>, uint16_t>;
2485 explicit constexpr RAIL(uint16_t a) : _entry(entry("RAIL=%d", a)){};
2486 type _entry;
2487};
2488struct RAIL_NAME
2489{
2490 /*
2491 * We can't use -fsanitize=undefined if we declare a
2492 * 'static constexpr auto str' member, so don't. Instead, open-code the
2493 * mako template lookups.
2494 */
2495 static constexpr auto str_short = "RAIL_NAME";
2496 using type =
2497 std::tuple<std::decay_t<decltype("RAIL_NAME=%s")>, const char*>;
2498 explicit constexpr RAIL_NAME(const char* a) :
2499 _entry(entry("RAIL_NAME=%s", a)){};
2500 type _entry;
2501};
2502struct RAW_STATUS
2503{
2504 /*
2505 * We can't use -fsanitize=undefined if we declare a
2506 * 'static constexpr auto str' member, so don't. Instead, open-code the
2507 * mako template lookups.
2508 */
2509 static constexpr auto str_short = "RAW_STATUS";
2510 using type =
2511 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
2512 explicit constexpr RAW_STATUS(const char* a) :
2513 _entry(entry("RAW_STATUS=%s", a)){};
2514 type _entry;
2515};
2516
2517} // namespace _PowerSequencerVoltageFault
2518
2519struct PowerSequencerVoltageFault
2520{
2521 static constexpr auto L = level::ERR;
2522 using RAIL = _PowerSequencerVoltageFault::RAIL;
2523 using RAIL_NAME = _PowerSequencerVoltageFault::RAIL_NAME;
2524 using RAW_STATUS = _PowerSequencerVoltageFault::RAW_STATUS;
2525 using metadata_types = std::tuple<RAIL, RAIL_NAME, RAW_STATUS>;
2526};
2527
2528} // namespace Fault
2529} // namespace Witherspoon
2530} // namespace open_power
2531} // namespace org
2532
2533namespace details
2534{
2535
2536template <>
2537struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::
2538 Error::PowerSequencerVoltageFault>
2539{
2540 using type =
2541 org::open_power::Witherspoon::Fault::PowerSequencerVoltageFault;
2542};
2543
2544} // namespace details
2545
2546namespace org
2547{
2548namespace open_power
2549{
2550namespace Witherspoon
2551{
2552namespace Fault
2553{
2554namespace _PowerSequencerPGOODFault
2555{
2556
2557struct INPUT_NUM
2558{
2559 /*
2560 * We can't use -fsanitize=undefined if we declare a
2561 * 'static constexpr auto str' member, so don't. Instead, open-code the
2562 * mako template lookups.
2563 */
2564 static constexpr auto str_short = "INPUT_NUM";
2565 using type = std::tuple<std::decay_t<decltype("INPUT_NUM=%d")>, uint16_t>;
2566 explicit constexpr INPUT_NUM(uint16_t a) :
2567 _entry(entry("INPUT_NUM=%d", a)){};
2568 type _entry;
2569};
2570struct INPUT_NAME
2571{
2572 /*
2573 * We can't use -fsanitize=undefined if we declare a
2574 * 'static constexpr auto str' member, so don't. Instead, open-code the
2575 * mako template lookups.
2576 */
2577 static constexpr auto str_short = "INPUT_NAME";
2578 using type =
2579 std::tuple<std::decay_t<decltype("INPUT_NAME=%s")>, const char*>;
2580 explicit constexpr INPUT_NAME(const char* a) :
2581 _entry(entry("INPUT_NAME=%s", a)){};
2582 type _entry;
2583};
2584struct RAW_STATUS
2585{
2586 /*
2587 * We can't use -fsanitize=undefined if we declare a
2588 * 'static constexpr auto str' member, so don't. Instead, open-code the
2589 * mako template lookups.
2590 */
2591 static constexpr auto str_short = "RAW_STATUS";
2592 using type =
2593 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
2594 explicit constexpr RAW_STATUS(const char* a) :
2595 _entry(entry("RAW_STATUS=%s", a)){};
2596 type _entry;
2597};
2598
2599} // namespace _PowerSequencerPGOODFault
2600
2601struct PowerSequencerPGOODFault
2602{
2603 static constexpr auto L = level::ERR;
2604 using INPUT_NUM = _PowerSequencerPGOODFault::INPUT_NUM;
2605 using INPUT_NAME = _PowerSequencerPGOODFault::INPUT_NAME;
2606 using RAW_STATUS = _PowerSequencerPGOODFault::RAW_STATUS;
2607 using metadata_types = std::tuple<INPUT_NUM, INPUT_NAME, RAW_STATUS>;
2608};
2609
2610} // namespace Fault
2611} // namespace Witherspoon
2612} // namespace open_power
2613} // namespace org
2614
2615namespace details
2616{
2617
2618template <>
2619struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::
2620 Error::PowerSequencerPGOODFault>
2621{
2622 using type = org::open_power::Witherspoon::Fault::PowerSequencerPGOODFault;
2623};
2624
2625} // namespace details
2626
2627namespace org
2628{
2629namespace open_power
2630{
2631namespace Witherspoon
2632{
2633namespace Fault
2634{
2635namespace _PowerSequencerFault
2636{
2637
2638struct RAW_STATUS
2639{
2640 /*
2641 * We can't use -fsanitize=undefined if we declare a
2642 * 'static constexpr auto str' member, so don't. Instead, open-code the
2643 * mako template lookups.
2644 */
2645 static constexpr auto str_short = "RAW_STATUS";
2646 using type =
2647 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
2648 explicit constexpr RAW_STATUS(const char* a) :
2649 _entry(entry("RAW_STATUS=%s", a)){};
2650 type _entry;
2651};
2652
2653} // namespace _PowerSequencerFault
2654
2655struct PowerSequencerFault
2656{
2657 static constexpr auto L = level::ERR;
2658 using RAW_STATUS = _PowerSequencerFault::RAW_STATUS;
2659 using metadata_types = std::tuple<RAW_STATUS>;
2660};
2661
2662} // namespace Fault
2663} // namespace Witherspoon
2664} // namespace open_power
2665} // namespace org
2666
2667namespace details
2668{
2669
2670template <>
2671struct map_exception_type<
2672 sdbusplus::org::open_power::Witherspoon::Fault::Error::PowerSequencerFault>
2673{
2674 using type = org::open_power::Witherspoon::Fault::PowerSequencerFault;
2675};
2676
2677} // namespace details
2678
Matt Spinler84cd0a52017-08-04 08:53:30 -05002679namespace xyz
2680{
2681namespace openbmc_project
2682{
Brandon Wyman442035f2017-08-08 15:58:45 -05002683namespace Common
2684{
2685namespace Callout
2686{
2687namespace _Device
2688{
2689
2690struct CALLOUT_ERRNO
2691{
Brandon Wyman03c19db2019-05-10 17:46:41 -05002692 /*
2693 * We can't use -fsanitize=undefined if we declare a
2694 * 'static constexpr auto str' member, so don't. Instead, open-code the
2695 * mako template lookups.
2696 */
Brandon Wyman442035f2017-08-08 15:58:45 -05002697 static constexpr auto str_short = "CALLOUT_ERRNO";
Brandon Wyman03c19db2019-05-10 17:46:41 -05002698 using type =
2699 std::tuple<std::decay_t<decltype("CALLOUT_ERRNO=%d")>, int32_t>;
2700 explicit constexpr CALLOUT_ERRNO(int32_t a) :
2701 _entry(entry("CALLOUT_ERRNO=%d", a)){};
Brandon Wyman442035f2017-08-08 15:58:45 -05002702 type _entry;
2703};
2704struct CALLOUT_DEVICE_PATH
2705{
Brandon Wyman03c19db2019-05-10 17:46:41 -05002706 /*
2707 * We can't use -fsanitize=undefined if we declare a
2708 * 'static constexpr auto str' member, so don't. Instead, open-code the
2709 * mako template lookups.
2710 */
Brandon Wyman442035f2017-08-08 15:58:45 -05002711 static constexpr auto str_short = "CALLOUT_DEVICE_PATH";
Brandon Wyman03c19db2019-05-10 17:46:41 -05002712 using type = std::tuple<std::decay_t<decltype("CALLOUT_DEVICE_PATH=%s")>,
2713 const char*>;
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002714 explicit constexpr CALLOUT_DEVICE_PATH(const char* a) :
Brandon Wyman03c19db2019-05-10 17:46:41 -05002715 _entry(entry("CALLOUT_DEVICE_PATH=%s", a)){};
Brandon Wyman442035f2017-08-08 15:58:45 -05002716 type _entry;
2717};
2718
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002719} // namespace _Device
Brandon Wyman442035f2017-08-08 15:58:45 -05002720
2721struct Device
2722{
2723 static constexpr auto L = level::ERR;
2724 using CALLOUT_ERRNO = _Device::CALLOUT_ERRNO;
2725 using CALLOUT_DEVICE_PATH = _Device::CALLOUT_DEVICE_PATH;
2726 using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
Brandon Wyman442035f2017-08-08 15:58:45 -05002727};
2728
2729} // namespace Callout
2730} // namespace Common
2731} // namespace openbmc_project
2732} // namespace xyz
2733
Brandon Wyman442035f2017-08-08 15:58:45 -05002734namespace details
2735{
2736
2737template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002738struct map_exception_type<
2739 sdbusplus::xyz::openbmc_project::Common::Callout::Error::Device>
Brandon Wyman442035f2017-08-08 15:58:45 -05002740{
2741 using type = xyz::openbmc_project::Common::Callout::Device;
2742};
2743
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002744} // namespace details
Brandon Wyman442035f2017-08-08 15:58:45 -05002745
2746namespace xyz
2747{
2748namespace openbmc_project
2749{
2750namespace Common
2751{
2752namespace Callout
2753{
2754namespace _GPIO
2755{
2756
2757struct CALLOUT_GPIO_NUM
2758{
Brandon Wyman03c19db2019-05-10 17:46:41 -05002759 /*
2760 * We can't use -fsanitize=undefined if we declare a
2761 * 'static constexpr auto str' member, so don't. Instead, open-code the
2762 * mako template lookups.
2763 */
Brandon Wyman442035f2017-08-08 15:58:45 -05002764 static constexpr auto str_short = "CALLOUT_GPIO_NUM";
Brandon Wyman03c19db2019-05-10 17:46:41 -05002765 using type =
2766 std::tuple<std::decay_t<decltype("CALLOUT_GPIO_NUM=%u")>, uint32_t>;
2767 explicit constexpr CALLOUT_GPIO_NUM(uint32_t a) :
2768 _entry(entry("CALLOUT_GPIO_NUM=%u", a)){};
Brandon Wyman442035f2017-08-08 15:58:45 -05002769 type _entry;
2770};
2771
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002772} // namespace _GPIO
Brandon Wyman442035f2017-08-08 15:58:45 -05002773
2774struct GPIO
2775{
2776 static constexpr auto L = level::ERR;
2777 using CALLOUT_GPIO_NUM = _GPIO::CALLOUT_GPIO_NUM;
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002778 using CALLOUT_ERRNO =
2779 xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
2780 using CALLOUT_DEVICE_PATH =
2781 xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
2782 using metadata_types =
2783 std::tuple<CALLOUT_GPIO_NUM, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
Brandon Wyman442035f2017-08-08 15:58:45 -05002784};
2785
2786} // namespace Callout
2787} // namespace Common
2788} // namespace openbmc_project
2789} // namespace xyz
2790
Brandon Wyman442035f2017-08-08 15:58:45 -05002791namespace details
2792{
2793
2794template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002795struct map_exception_type<
2796 sdbusplus::xyz::openbmc_project::Common::Callout::Error::GPIO>
Brandon Wyman442035f2017-08-08 15:58:45 -05002797{
2798 using type = xyz::openbmc_project::Common::Callout::GPIO;
2799};
2800
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002801} // namespace details
Brandon Wyman442035f2017-08-08 15:58:45 -05002802
2803namespace xyz
2804{
2805namespace openbmc_project
2806{
2807namespace Common
2808{
2809namespace Callout
2810{
2811namespace _IIC
2812{
2813
2814struct CALLOUT_IIC_BUS
2815{
Brandon Wyman03c19db2019-05-10 17:46:41 -05002816 /*
2817 * We can't use -fsanitize=undefined if we declare a
2818 * 'static constexpr auto str' member, so don't. Instead, open-code the
2819 * mako template lookups.
2820 */
Brandon Wyman442035f2017-08-08 15:58:45 -05002821 static constexpr auto str_short = "CALLOUT_IIC_BUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -05002822 using type =
2823 std::tuple<std::decay_t<decltype("CALLOUT_IIC_BUS=%s")>, const char*>;
2824 explicit constexpr CALLOUT_IIC_BUS(const char* a) :
2825 _entry(entry("CALLOUT_IIC_BUS=%s", a)){};
Brandon Wyman442035f2017-08-08 15:58:45 -05002826 type _entry;
2827};
2828struct CALLOUT_IIC_ADDR
2829{
Brandon Wyman03c19db2019-05-10 17:46:41 -05002830 /*
2831 * We can't use -fsanitize=undefined if we declare a
2832 * 'static constexpr auto str' member, so don't. Instead, open-code the
2833 * mako template lookups.
2834 */
Brandon Wyman442035f2017-08-08 15:58:45 -05002835 static constexpr auto str_short = "CALLOUT_IIC_ADDR";
Brandon Wyman03c19db2019-05-10 17:46:41 -05002836 using type =
2837 std::tuple<std::decay_t<decltype("CALLOUT_IIC_ADDR=0x%hx")>, uint16_t>;
2838 explicit constexpr CALLOUT_IIC_ADDR(uint16_t a) :
2839 _entry(entry("CALLOUT_IIC_ADDR=0x%hx", a)){};
Brandon Wyman442035f2017-08-08 15:58:45 -05002840 type _entry;
2841};
2842
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002843} // namespace _IIC
Brandon Wyman442035f2017-08-08 15:58:45 -05002844
2845struct IIC
2846{
2847 static constexpr auto L = level::ERR;
2848 using CALLOUT_IIC_BUS = _IIC::CALLOUT_IIC_BUS;
2849 using CALLOUT_IIC_ADDR = _IIC::CALLOUT_IIC_ADDR;
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002850 using CALLOUT_ERRNO =
2851 xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
2852 using CALLOUT_DEVICE_PATH =
2853 xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
2854 using metadata_types = std::tuple<CALLOUT_IIC_BUS, CALLOUT_IIC_ADDR,
2855 CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
Brandon Wyman442035f2017-08-08 15:58:45 -05002856};
2857
2858} // namespace Callout
2859} // namespace Common
2860} // namespace openbmc_project
2861} // namespace xyz
2862
Brandon Wyman442035f2017-08-08 15:58:45 -05002863namespace details
2864{
2865
2866template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002867struct map_exception_type<
2868 sdbusplus::xyz::openbmc_project::Common::Callout::Error::IIC>
Brandon Wyman442035f2017-08-08 15:58:45 -05002869{
2870 using type = xyz::openbmc_project::Common::Callout::IIC;
2871};
2872
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002873} // namespace details
Brandon Wyman442035f2017-08-08 15:58:45 -05002874
2875namespace xyz
2876{
2877namespace openbmc_project
2878{
2879namespace Common
2880{
2881namespace Callout
2882{
2883namespace _Inventory
2884{
2885
2886struct CALLOUT_INVENTORY_PATH
2887{
Brandon Wyman03c19db2019-05-10 17:46:41 -05002888 /*
2889 * We can't use -fsanitize=undefined if we declare a
2890 * 'static constexpr auto str' member, so don't. Instead, open-code the
2891 * mako template lookups.
2892 */
Brandon Wyman442035f2017-08-08 15:58:45 -05002893 static constexpr auto str_short = "CALLOUT_INVENTORY_PATH";
Brandon Wyman03c19db2019-05-10 17:46:41 -05002894 using type = std::tuple<std::decay_t<decltype("CALLOUT_INVENTORY_PATH=%s")>,
2895 const char*>;
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002896 explicit constexpr CALLOUT_INVENTORY_PATH(const char* a) :
Brandon Wyman03c19db2019-05-10 17:46:41 -05002897 _entry(entry("CALLOUT_INVENTORY_PATH=%s", a)){};
Brandon Wyman442035f2017-08-08 15:58:45 -05002898 type _entry;
2899};
2900
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002901} // namespace _Inventory
Brandon Wyman442035f2017-08-08 15:58:45 -05002902
2903struct Inventory
2904{
2905 static constexpr auto L = level::ERR;
2906 using CALLOUT_INVENTORY_PATH = _Inventory::CALLOUT_INVENTORY_PATH;
2907 using metadata_types = std::tuple<CALLOUT_INVENTORY_PATH>;
Brandon Wyman442035f2017-08-08 15:58:45 -05002908};
2909
2910} // namespace Callout
2911} // namespace Common
2912} // namespace openbmc_project
2913} // namespace xyz
2914
Brandon Wyman442035f2017-08-08 15:58:45 -05002915namespace details
2916{
2917
2918template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002919struct map_exception_type<
2920 sdbusplus::xyz::openbmc_project::Common::Callout::Error::Inventory>
Brandon Wyman442035f2017-08-08 15:58:45 -05002921{
2922 using type = xyz::openbmc_project::Common::Callout::Inventory;
2923};
2924
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002925} // namespace details
Brandon Wyman442035f2017-08-08 15:58:45 -05002926
2927namespace xyz
2928{
2929namespace openbmc_project
2930{
2931namespace Common
2932{
2933namespace Callout
2934{
2935namespace _IPMISensor
2936{
2937
2938struct CALLOUT_IPMI_SENSOR_NUM
2939{
Brandon Wyman03c19db2019-05-10 17:46:41 -05002940 /*
2941 * We can't use -fsanitize=undefined if we declare a
2942 * 'static constexpr auto str' member, so don't. Instead, open-code the
2943 * mako template lookups.
2944 */
Brandon Wyman442035f2017-08-08 15:58:45 -05002945 static constexpr auto str_short = "CALLOUT_IPMI_SENSOR_NUM";
Brandon Wyman03c19db2019-05-10 17:46:41 -05002946 using type =
2947 std::tuple<std::decay_t<decltype("CALLOUT_IPMI_SENSOR_NUM=%u")>,
2948 uint32_t>;
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002949 explicit constexpr CALLOUT_IPMI_SENSOR_NUM(uint32_t a) :
Brandon Wyman03c19db2019-05-10 17:46:41 -05002950 _entry(entry("CALLOUT_IPMI_SENSOR_NUM=%u", a)){};
Brandon Wyman442035f2017-08-08 15:58:45 -05002951 type _entry;
2952};
2953
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002954} // namespace _IPMISensor
Brandon Wyman442035f2017-08-08 15:58:45 -05002955
2956struct IPMISensor
2957{
2958 static constexpr auto L = level::ERR;
2959 using CALLOUT_IPMI_SENSOR_NUM = _IPMISensor::CALLOUT_IPMI_SENSOR_NUM;
2960 using metadata_types = std::tuple<CALLOUT_IPMI_SENSOR_NUM>;
Brandon Wyman442035f2017-08-08 15:58:45 -05002961};
2962
2963} // namespace Callout
2964} // namespace Common
2965} // namespace openbmc_project
2966} // namespace xyz
2967
Brandon Wyman442035f2017-08-08 15:58:45 -05002968namespace details
2969{
2970
2971template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002972struct map_exception_type<
2973 sdbusplus::xyz::openbmc_project::Common::Callout::Error::IPMISensor>
Brandon Wyman442035f2017-08-08 15:58:45 -05002974{
2975 using type = xyz::openbmc_project::Common::Callout::IPMISensor;
2976};
2977
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002978} // namespace details
Brandon Wyman442035f2017-08-08 15:58:45 -05002979
Brandon Wymane0eb45c2017-10-06 12:58:42 -05002980namespace org
Brandon Wyman442035f2017-08-08 15:58:45 -05002981{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05002982namespace open_power
Brandon Wyman442035f2017-08-08 15:58:45 -05002983{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05002984namespace Witherspoon
Brandon Wyman442035f2017-08-08 15:58:45 -05002985{
2986namespace Fault
2987{
Brandon Wyman253dc9b2017-08-12 13:45:52 -05002988namespace _PowerSupplyInputFault
2989{
2990
2991struct RAW_STATUS
2992{
Brandon Wyman03c19db2019-05-10 17:46:41 -05002993 /*
2994 * We can't use -fsanitize=undefined if we declare a
2995 * 'static constexpr auto str' member, so don't. Instead, open-code the
2996 * mako template lookups.
2997 */
Brandon Wyman253dc9b2017-08-12 13:45:52 -05002998 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -05002999 using type =
3000 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
3001 explicit constexpr RAW_STATUS(const char* a) :
3002 _entry(entry("RAW_STATUS=%s", a)){};
Brandon Wyman253dc9b2017-08-12 13:45:52 -05003003 type _entry;
3004};
3005
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003006} // namespace _PowerSupplyInputFault
Brandon Wyman253dc9b2017-08-12 13:45:52 -05003007
3008struct PowerSupplyInputFault
3009{
3010 static constexpr auto L = level::ERR;
3011 using RAW_STATUS = _PowerSupplyInputFault::RAW_STATUS;
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003012 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
3013 Inventory::CALLOUT_INVENTORY_PATH;
Brandon Wymanea358c92017-10-27 17:34:07 -05003014 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Brandon Wyman253dc9b2017-08-12 13:45:52 -05003015};
3016
3017} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003018} // namespace Witherspoon
3019} // namespace open_power
3020} // namespace org
Brandon Wyman253dc9b2017-08-12 13:45:52 -05003021
Brandon Wyman253dc9b2017-08-12 13:45:52 -05003022namespace details
3023{
3024
3025template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003026struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::
3027 Error::PowerSupplyInputFault>
Brandon Wyman253dc9b2017-08-12 13:45:52 -05003028{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003029 using type = org::open_power::Witherspoon::Fault::PowerSupplyInputFault;
Brandon Wyman253dc9b2017-08-12 13:45:52 -05003030};
3031
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003032} // namespace details
Brandon Wyman253dc9b2017-08-12 13:45:52 -05003033
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003034namespace org
Brandon Wyman253dc9b2017-08-12 13:45:52 -05003035{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003036namespace open_power
Brandon Wyman253dc9b2017-08-12 13:45:52 -05003037{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003038namespace Witherspoon
Brandon Wyman253dc9b2017-08-12 13:45:52 -05003039{
3040namespace Fault
3041{
Brandon Wyman764c7972017-08-22 17:05:36 -05003042namespace _PowerSupplyShouldBeOn
3043{
3044
3045struct RAW_STATUS
3046{
Brandon Wyman03c19db2019-05-10 17:46:41 -05003047 /*
3048 * We can't use -fsanitize=undefined if we declare a
3049 * 'static constexpr auto str' member, so don't. Instead, open-code the
3050 * mako template lookups.
3051 */
Brandon Wyman764c7972017-08-22 17:05:36 -05003052 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -05003053 using type =
3054 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
3055 explicit constexpr RAW_STATUS(const char* a) :
3056 _entry(entry("RAW_STATUS=%s", a)){};
Brandon Wyman764c7972017-08-22 17:05:36 -05003057 type _entry;
3058};
3059
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003060} // namespace _PowerSupplyShouldBeOn
Brandon Wyman764c7972017-08-22 17:05:36 -05003061
3062struct PowerSupplyShouldBeOn
3063{
3064 static constexpr auto L = level::ERR;
3065 using RAW_STATUS = _PowerSupplyShouldBeOn::RAW_STATUS;
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003066 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
3067 Inventory::CALLOUT_INVENTORY_PATH;
Brandon Wyman764c7972017-08-22 17:05:36 -05003068 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Brandon Wyman764c7972017-08-22 17:05:36 -05003069};
3070
3071} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003072} // namespace Witherspoon
3073} // namespace open_power
3074} // namespace org
Brandon Wyman764c7972017-08-22 17:05:36 -05003075
Brandon Wyman764c7972017-08-22 17:05:36 -05003076namespace details
3077{
3078
3079template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003080struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::
3081 Error::PowerSupplyShouldBeOn>
Brandon Wyman764c7972017-08-22 17:05:36 -05003082{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003083 using type = org::open_power::Witherspoon::Fault::PowerSupplyShouldBeOn;
Brandon Wyman764c7972017-08-22 17:05:36 -05003084};
3085
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003086} // namespace details
Brandon Wyman764c7972017-08-22 17:05:36 -05003087
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003088namespace org
Brandon Wyman764c7972017-08-22 17:05:36 -05003089{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003090namespace open_power
Brandon Wyman764c7972017-08-22 17:05:36 -05003091{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003092namespace Witherspoon
Brandon Wyman764c7972017-08-22 17:05:36 -05003093{
3094namespace Fault
3095{
Brandon Wymanb165c252017-08-25 18:59:54 -05003096namespace _PowerSupplyOutputOvercurrent
3097{
3098
3099struct RAW_STATUS
3100{
Brandon Wyman03c19db2019-05-10 17:46:41 -05003101 /*
3102 * We can't use -fsanitize=undefined if we declare a
3103 * 'static constexpr auto str' member, so don't. Instead, open-code the
3104 * mako template lookups.
3105 */
Brandon Wymanb165c252017-08-25 18:59:54 -05003106 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -05003107 using type =
3108 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
3109 explicit constexpr RAW_STATUS(const char* a) :
3110 _entry(entry("RAW_STATUS=%s", a)){};
Brandon Wymanb165c252017-08-25 18:59:54 -05003111 type _entry;
3112};
3113
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003114} // namespace _PowerSupplyOutputOvercurrent
Brandon Wymanb165c252017-08-25 18:59:54 -05003115
3116struct PowerSupplyOutputOvercurrent
3117{
3118 static constexpr auto L = level::ERR;
3119 using RAW_STATUS = _PowerSupplyOutputOvercurrent::RAW_STATUS;
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003120 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
3121 Inventory::CALLOUT_INVENTORY_PATH;
Brandon Wymanb165c252017-08-25 18:59:54 -05003122 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Brandon Wymanb165c252017-08-25 18:59:54 -05003123};
3124
3125} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003126} // namespace Witherspoon
3127} // namespace open_power
3128} // namespace org
Brandon Wymanb165c252017-08-25 18:59:54 -05003129
Brandon Wymanb165c252017-08-25 18:59:54 -05003130namespace details
3131{
3132
3133template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003134struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::
3135 Error::PowerSupplyOutputOvercurrent>
Brandon Wymanb165c252017-08-25 18:59:54 -05003136{
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003137 using type =
3138 org::open_power::Witherspoon::Fault::PowerSupplyOutputOvercurrent;
Brandon Wymanb165c252017-08-25 18:59:54 -05003139};
3140
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003141} // namespace details
Brandon Wymanb165c252017-08-25 18:59:54 -05003142
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003143namespace org
Brandon Wymanb165c252017-08-25 18:59:54 -05003144{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003145namespace open_power
Brandon Wymanb165c252017-08-25 18:59:54 -05003146{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003147namespace Witherspoon
Brandon Wymanb165c252017-08-25 18:59:54 -05003148{
3149namespace Fault
3150{
Brandon Wymanab05c072017-08-30 18:26:41 -05003151namespace _PowerSupplyOutputOvervoltage
3152{
3153
3154struct RAW_STATUS
3155{
Brandon Wyman03c19db2019-05-10 17:46:41 -05003156 /*
3157 * We can't use -fsanitize=undefined if we declare a
3158 * 'static constexpr auto str' member, so don't. Instead, open-code the
3159 * mako template lookups.
3160 */
Brandon Wymanab05c072017-08-30 18:26:41 -05003161 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -05003162 using type =
3163 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
3164 explicit constexpr RAW_STATUS(const char* a) :
3165 _entry(entry("RAW_STATUS=%s", a)){};
Brandon Wymanab05c072017-08-30 18:26:41 -05003166 type _entry;
3167};
3168
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003169} // namespace _PowerSupplyOutputOvervoltage
Brandon Wymanab05c072017-08-30 18:26:41 -05003170
3171struct PowerSupplyOutputOvervoltage
3172{
3173 static constexpr auto L = level::ERR;
3174 using RAW_STATUS = _PowerSupplyOutputOvervoltage::RAW_STATUS;
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003175 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
3176 Inventory::CALLOUT_INVENTORY_PATH;
Brandon Wymanab05c072017-08-30 18:26:41 -05003177 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Brandon Wymanab05c072017-08-30 18:26:41 -05003178};
3179
3180} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003181} // namespace Witherspoon
3182} // namespace open_power
3183} // namespace org
Brandon Wymanab05c072017-08-30 18:26:41 -05003184
Brandon Wymanab05c072017-08-30 18:26:41 -05003185namespace details
3186{
3187
3188template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003189struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::
3190 Error::PowerSupplyOutputOvervoltage>
Brandon Wymanab05c072017-08-30 18:26:41 -05003191{
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003192 using type =
3193 org::open_power::Witherspoon::Fault::PowerSupplyOutputOvervoltage;
Brandon Wymanab05c072017-08-30 18:26:41 -05003194};
3195
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003196} // namespace details
Brandon Wymanab05c072017-08-30 18:26:41 -05003197
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003198namespace org
Brandon Wymanab05c072017-08-30 18:26:41 -05003199{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003200namespace open_power
Brandon Wymanab05c072017-08-30 18:26:41 -05003201{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003202namespace Witherspoon
Brandon Wymanab05c072017-08-30 18:26:41 -05003203{
3204namespace Fault
3205{
Brandon Wyman12661f12017-08-31 15:28:21 -05003206namespace _PowerSupplyFanFault
3207{
3208
3209struct RAW_STATUS
3210{
Brandon Wyman03c19db2019-05-10 17:46:41 -05003211 /*
3212 * We can't use -fsanitize=undefined if we declare a
3213 * 'static constexpr auto str' member, so don't. Instead, open-code the
3214 * mako template lookups.
3215 */
Brandon Wyman12661f12017-08-31 15:28:21 -05003216 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -05003217 using type =
3218 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
3219 explicit constexpr RAW_STATUS(const char* a) :
3220 _entry(entry("RAW_STATUS=%s", a)){};
Brandon Wyman12661f12017-08-31 15:28:21 -05003221 type _entry;
3222};
3223
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003224} // namespace _PowerSupplyFanFault
Brandon Wyman12661f12017-08-31 15:28:21 -05003225
3226struct PowerSupplyFanFault
3227{
3228 static constexpr auto L = level::ERR;
3229 using RAW_STATUS = _PowerSupplyFanFault::RAW_STATUS;
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003230 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
3231 Inventory::CALLOUT_INVENTORY_PATH;
Brandon Wyman12661f12017-08-31 15:28:21 -05003232 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Brandon Wyman12661f12017-08-31 15:28:21 -05003233};
3234
3235} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003236} // namespace Witherspoon
3237} // namespace open_power
3238} // namespace org
Brandon Wyman12661f12017-08-31 15:28:21 -05003239
Brandon Wyman12661f12017-08-31 15:28:21 -05003240namespace details
3241{
3242
3243template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003244struct map_exception_type<
3245 sdbusplus::org::open_power::Witherspoon::Fault::Error::PowerSupplyFanFault>
Brandon Wyman12661f12017-08-31 15:28:21 -05003246{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003247 using type = org::open_power::Witherspoon::Fault::PowerSupplyFanFault;
Brandon Wyman12661f12017-08-31 15:28:21 -05003248};
3249
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003250} // namespace details
Brandon Wyman12661f12017-08-31 15:28:21 -05003251
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003252namespace org
Brandon Wyman12661f12017-08-31 15:28:21 -05003253{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003254namespace open_power
Brandon Wyman12661f12017-08-31 15:28:21 -05003255{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003256namespace Witherspoon
Brandon Wyman12661f12017-08-31 15:28:21 -05003257{
3258namespace Fault
3259{
Brandon Wyman875b3632017-09-13 18:46:03 -05003260namespace _PowerSupplyTemperatureFault
3261{
3262
3263struct RAW_STATUS
3264{
Brandon Wyman03c19db2019-05-10 17:46:41 -05003265 /*
3266 * We can't use -fsanitize=undefined if we declare a
3267 * 'static constexpr auto str' member, so don't. Instead, open-code the
3268 * mako template lookups.
3269 */
Brandon Wyman875b3632017-09-13 18:46:03 -05003270 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -05003271 using type =
3272 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
3273 explicit constexpr RAW_STATUS(const char* a) :
3274 _entry(entry("RAW_STATUS=%s", a)){};
Brandon Wyman875b3632017-09-13 18:46:03 -05003275 type _entry;
3276};
3277
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003278} // namespace _PowerSupplyTemperatureFault
Brandon Wyman875b3632017-09-13 18:46:03 -05003279
3280struct PowerSupplyTemperatureFault
3281{
3282 static constexpr auto L = level::ERR;
3283 using RAW_STATUS = _PowerSupplyTemperatureFault::RAW_STATUS;
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003284 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
3285 Inventory::CALLOUT_INVENTORY_PATH;
Brandon Wyman875b3632017-09-13 18:46:03 -05003286 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Brandon Wyman875b3632017-09-13 18:46:03 -05003287};
3288
3289} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003290} // namespace Witherspoon
3291} // namespace open_power
3292} // namespace org
Brandon Wyman875b3632017-09-13 18:46:03 -05003293
Brandon Wyman875b3632017-09-13 18:46:03 -05003294namespace details
3295{
3296
3297template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003298struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::
3299 Error::PowerSupplyTemperatureFault>
Brandon Wyman875b3632017-09-13 18:46:03 -05003300{
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003301 using type =
3302 org::open_power::Witherspoon::Fault::PowerSupplyTemperatureFault;
Brandon Wyman875b3632017-09-13 18:46:03 -05003303};
3304
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003305} // namespace details
Brandon Wyman875b3632017-09-13 18:46:03 -05003306
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003307namespace org
Brandon Wyman875b3632017-09-13 18:46:03 -05003308{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003309namespace open_power
Brandon Wyman875b3632017-09-13 18:46:03 -05003310{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003311namespace Witherspoon
Brandon Wyman875b3632017-09-13 18:46:03 -05003312{
3313namespace Fault
3314{
Matt Spinler7b14db22017-09-19 10:57:54 -05003315namespace _GPUPowerFault
3316{
3317
3318struct RAW_STATUS
3319{
Brandon Wyman03c19db2019-05-10 17:46:41 -05003320 /*
3321 * We can't use -fsanitize=undefined if we declare a
3322 * 'static constexpr auto str' member, so don't. Instead, open-code the
3323 * mako template lookups.
3324 */
Matt Spinler7b14db22017-09-19 10:57:54 -05003325 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -05003326 using type =
3327 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
3328 explicit constexpr RAW_STATUS(const char* a) :
3329 _entry(entry("RAW_STATUS=%s", a)){};
Matt Spinler7b14db22017-09-19 10:57:54 -05003330 type _entry;
3331};
Matt Spinler7b14db22017-09-19 10:57:54 -05003332
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003333} // namespace _GPUPowerFault
Matt Spinler7b14db22017-09-19 10:57:54 -05003334
3335struct GPUPowerFault
3336{
3337 static constexpr auto L = level::ERR;
3338 using RAW_STATUS = _GPUPowerFault::RAW_STATUS;
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003339 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
3340 Inventory::CALLOUT_INVENTORY_PATH;
Matt Spinler0e45ced2018-02-12 14:36:07 -06003341 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Matt Spinler7b14db22017-09-19 10:57:54 -05003342};
3343
3344} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003345} // namespace Witherspoon
3346} // namespace open_power
3347} // namespace org
Matt Spinler7b14db22017-09-19 10:57:54 -05003348
Matt Spinler7b14db22017-09-19 10:57:54 -05003349namespace details
3350{
3351
3352template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003353struct map_exception_type<
3354 sdbusplus::org::open_power::Witherspoon::Fault::Error::GPUPowerFault>
Matt Spinler7b14db22017-09-19 10:57:54 -05003355{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003356 using type = org::open_power::Witherspoon::Fault::GPUPowerFault;
Matt Spinler7b14db22017-09-19 10:57:54 -05003357};
3358
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003359} // namespace details
Matt Spinler7b14db22017-09-19 10:57:54 -05003360
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003361namespace org
Matt Spinler7b14db22017-09-19 10:57:54 -05003362{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003363namespace open_power
Matt Spinler7b14db22017-09-19 10:57:54 -05003364{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003365namespace Witherspoon
Matt Spinler7b14db22017-09-19 10:57:54 -05003366{
3367namespace Fault
3368{
3369namespace _GPUOverTemp
3370{
3371
3372struct RAW_STATUS
3373{
Brandon Wyman03c19db2019-05-10 17:46:41 -05003374 /*
3375 * We can't use -fsanitize=undefined if we declare a
3376 * 'static constexpr auto str' member, so don't. Instead, open-code the
3377 * mako template lookups.
3378 */
Matt Spinler7b14db22017-09-19 10:57:54 -05003379 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -05003380 using type =
3381 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
3382 explicit constexpr RAW_STATUS(const char* a) :
3383 _entry(entry("RAW_STATUS=%s", a)){};
Matt Spinler7b14db22017-09-19 10:57:54 -05003384 type _entry;
3385};
Matt Spinler7b14db22017-09-19 10:57:54 -05003386
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003387} // namespace _GPUOverTemp
Matt Spinler7b14db22017-09-19 10:57:54 -05003388
3389struct GPUOverTemp
3390{
3391 static constexpr auto L = level::ERR;
3392 using RAW_STATUS = _GPUOverTemp::RAW_STATUS;
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003393 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
3394 Inventory::CALLOUT_INVENTORY_PATH;
Matt Spinler0e45ced2018-02-12 14:36:07 -06003395 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Matt Spinler7b14db22017-09-19 10:57:54 -05003396};
3397
3398} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003399} // namespace Witherspoon
3400} // namespace open_power
3401} // namespace org
Matt Spinler7b14db22017-09-19 10:57:54 -05003402
Matt Spinler7b14db22017-09-19 10:57:54 -05003403namespace details
3404{
3405
3406template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003407struct map_exception_type<
3408 sdbusplus::org::open_power::Witherspoon::Fault::Error::GPUOverTemp>
Matt Spinler7b14db22017-09-19 10:57:54 -05003409{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05003410 using type = org::open_power::Witherspoon::Fault::GPUOverTemp;
Matt Spinler7b14db22017-09-19 10:57:54 -05003411};
3412
Matt Spinlerf0f02b92018-10-25 16:12:43 -05003413} // namespace details
Matt Spinler84cd0a52017-08-04 08:53:30 -05003414
Brandon Wyman03c19db2019-05-10 17:46:41 -05003415namespace org
3416{
3417namespace open_power
3418{
3419namespace Witherspoon
3420{
3421namespace Fault
3422{
3423namespace _MemoryPowerFault
3424{
3425
3426struct RAW_STATUS
3427{
3428 /*
3429 * We can't use -fsanitize=undefined if we declare a
3430 * 'static constexpr auto str' member, so don't. Instead, open-code the
3431 * mako template lookups.
3432 */
3433 static constexpr auto str_short = "RAW_STATUS";
3434 using type =
3435 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
3436 explicit constexpr RAW_STATUS(const char* a) :
3437 _entry(entry("RAW_STATUS=%s", a)){};
3438 type _entry;
3439};
3440
3441} // namespace _MemoryPowerFault
3442
3443struct MemoryPowerFault
3444{
3445 static constexpr auto L = level::ERR;
3446 using RAW_STATUS = _MemoryPowerFault::RAW_STATUS;
3447 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
3448 Inventory::CALLOUT_INVENTORY_PATH;
3449 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
3450};
3451
3452} // namespace Fault
3453} // namespace Witherspoon
3454} // namespace open_power
3455} // namespace org
3456
3457namespace details
3458{
3459
3460template <>
3461struct map_exception_type<
3462 sdbusplus::org::open_power::Witherspoon::Fault::Error::MemoryPowerFault>
3463{
3464 using type = org::open_power::Witherspoon::Fault::MemoryPowerFault;
3465};
3466
3467} // namespace details
3468
Matt Spinler84cd0a52017-08-04 08:53:30 -05003469} // namespace logging
3470
3471} // namespace phosphor