blob: e71aa5ff542ed03e1d9f8ded357ef8f3f2948a62 [file] [log] [blame]
Matt Spinler84cd0a52017-08-04 08:53:30 -05001// This file was autogenerated. Do not edit!
2// See elog-gen.py for more details
3#pragma once
4
5#include <string>
6#include <tuple>
7#include <type_traits>
8#include <sdbusplus/exception.hpp>
9#include <phosphor-logging/log.hpp>
10#include <phosphor-logging/elog.hpp>
11
12namespace sdbusplus
13{
Brandon Wymane0eb45c2017-10-06 12:58:42 -050014namespace org
Matt Spinler84cd0a52017-08-04 08:53:30 -050015{
Brandon Wymane0eb45c2017-10-06 12:58:42 -050016namespace open_power
Matt Spinler84cd0a52017-08-04 08:53:30 -050017{
Brandon Wymane0eb45c2017-10-06 12:58:42 -050018namespace Witherspoon
Matt Spinler84cd0a52017-08-04 08:53:30 -050019{
20namespace Fault
21{
22namespace Error
23{
Brandon Wymane0eb45c2017-10-06 12:58:42 -050024 struct PowerSequencerPGOODFault;
Matt Spinlerfacfa902017-08-14 13:43:36 -050025} // namespace Error
26} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -050027} // namespace Witherspoon
28} // namespace open_power
29} // namespace org
Matt Spinler7b14db22017-09-19 10:57:54 -050030} // namespace sdbusplus
31
32namespace sdbusplus
33{
34namespace xyz
35{
36namespace openbmc_project
37{
Brandon Wyman442035f2017-08-08 15:58:45 -050038namespace Common
39{
40namespace Callout
41{
42namespace Error
43{
44 struct GPIO;
45} // namespace Error
46} // namespace Callout
47} // namespace Common
48} // namespace openbmc_project
49} // namespace xyz
50} // namespace sdbusplus
51
52namespace sdbusplus
53{
Brandon Wymane0eb45c2017-10-06 12:58:42 -050054namespace org
Brandon Wyman442035f2017-08-08 15:58:45 -050055{
Brandon Wymane0eb45c2017-10-06 12:58:42 -050056namespace open_power
Brandon Wyman442035f2017-08-08 15:58:45 -050057{
Brandon Wymane0eb45c2017-10-06 12:58:42 -050058namespace Witherspoon
Brandon Wyman875b3632017-09-13 18:46:03 -050059{
60namespace Fault
61{
62namespace Error
63{
Brandon Wymane0eb45c2017-10-06 12:58:42 -050064 struct PowerOnFailure;
Brandon Wyman875b3632017-09-13 18:46:03 -050065} // namespace Error
66} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -050067} // namespace Witherspoon
68} // namespace open_power
69} // namespace org
Brandon Wyman875b3632017-09-13 18:46:03 -050070} // namespace sdbusplus
71
72namespace sdbusplus
73{
74namespace xyz
75{
76namespace openbmc_project
77{
Brandon Wyman442035f2017-08-08 15:58:45 -050078namespace Common
79{
80namespace Callout
81{
82namespace Error
83{
84 struct Inventory;
85} // namespace Error
86} // namespace Callout
87} // namespace Common
88} // namespace openbmc_project
89} // namespace xyz
90} // namespace sdbusplus
91
92namespace sdbusplus
93{
94namespace xyz
95{
96namespace openbmc_project
97{
98namespace Common
99{
100namespace Callout
101{
102namespace Error
103{
104 struct IIC;
105} // namespace Error
106} // namespace Callout
107} // namespace Common
108} // namespace openbmc_project
109} // namespace xyz
110} // namespace sdbusplus
111
112namespace sdbusplus
113{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500114namespace org
Brandon Wyman442035f2017-08-08 15:58:45 -0500115{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500116namespace open_power
Brandon Wyman442035f2017-08-08 15:58:45 -0500117{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500118namespace Witherspoon
Matt Spinler7b14db22017-09-19 10:57:54 -0500119{
120namespace Fault
121{
122namespace Error
123{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500124 struct GPUPowerFault;
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500125} // namespace Error
126} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500127} // namespace Witherspoon
128} // namespace open_power
129} // namespace org
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500130} // namespace sdbusplus
131
132namespace sdbusplus
133{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500134namespace org
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500135{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500136namespace open_power
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500137{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500138namespace Witherspoon
Brandon Wyman764c7972017-08-22 17:05:36 -0500139{
140namespace Fault
141{
142namespace Error
143{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500144 struct Shutdown;
Brandon Wyman764c7972017-08-22 17:05:36 -0500145} // namespace Error
146} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500147} // namespace Witherspoon
148} // namespace open_power
149} // namespace org
150} // namespace sdbusplus
151
152namespace sdbusplus
153{
154namespace org
155{
156namespace open_power
157{
158namespace Witherspoon
159{
160namespace Fault
161{
162namespace Error
163{
164 struct PowerSupplyInputFault;
165} // namespace Error
166} // namespace Fault
167} // namespace Witherspoon
168} // namespace open_power
169} // namespace org
Brandon Wyman764c7972017-08-22 17:05:36 -0500170} // namespace sdbusplus
171
172namespace sdbusplus
173{
174namespace xyz
175{
176namespace openbmc_project
177{
Brandon Wyman442035f2017-08-08 15:58:45 -0500178namespace Common
179{
180namespace Callout
181{
182namespace Error
183{
184 struct Device;
185} // namespace Error
186} // namespace Callout
187} // namespace Common
188} // namespace openbmc_project
189} // namespace xyz
190} // namespace sdbusplus
191
192namespace sdbusplus
193{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500194namespace org
Brandon Wyman442035f2017-08-08 15:58:45 -0500195{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500196namespace open_power
Brandon Wyman442035f2017-08-08 15:58:45 -0500197{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500198namespace Witherspoon
Brandon Wyman442035f2017-08-08 15:58:45 -0500199{
200namespace Fault
201{
202namespace Error
203{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500204 struct PowerSequencerFault;
Brandon Wyman442035f2017-08-08 15:58:45 -0500205} // namespace Error
206} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500207} // namespace Witherspoon
208} // namespace open_power
209} // namespace org
Brandon Wyman442035f2017-08-08 15:58:45 -0500210} // namespace sdbusplus
211
212namespace sdbusplus
213{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500214namespace org
Brandon Wyman442035f2017-08-08 15:58:45 -0500215{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500216namespace open_power
Brandon Wyman442035f2017-08-08 15:58:45 -0500217{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500218namespace Witherspoon
Brandon Wymanab05c072017-08-30 18:26:41 -0500219{
220namespace Fault
221{
222namespace Error
223{
Brandon Wymanb165c252017-08-25 18:59:54 -0500224 struct PowerSupplyOutputOvercurrent;
225} // namespace Error
226} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500227} // namespace Witherspoon
228} // namespace open_power
229} // namespace org
Brandon Wymanb165c252017-08-25 18:59:54 -0500230} // namespace sdbusplus
231
232namespace sdbusplus
233{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500234namespace org
Brandon Wymanb165c252017-08-25 18:59:54 -0500235{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500236namespace open_power
Brandon Wymanb165c252017-08-25 18:59:54 -0500237{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500238namespace Witherspoon
Brandon Wymanb165c252017-08-25 18:59:54 -0500239{
240namespace Fault
241{
242namespace Error
243{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500244 struct PowerSupplyOutputOvervoltage;
Matt Spinler7b14db22017-09-19 10:57:54 -0500245} // namespace Error
246} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500247} // namespace Witherspoon
248} // namespace open_power
249} // namespace org
250} // namespace sdbusplus
251
252namespace sdbusplus
253{
254namespace org
255{
256namespace open_power
257{
258namespace Witherspoon
259{
260namespace Fault
261{
262namespace Error
263{
264 struct PowerSupplyFanFault;
265} // namespace Error
266} // namespace Fault
267} // namespace Witherspoon
268} // namespace open_power
269} // namespace org
270} // namespace sdbusplus
271
272namespace sdbusplus
273{
274namespace org
275{
276namespace open_power
277{
278namespace Witherspoon
279{
280namespace Fault
281{
282namespace Error
283{
284 struct PowerSequencerVoltageFault;
285} // namespace Error
286} // namespace Fault
287} // namespace Witherspoon
288} // namespace open_power
289} // namespace org
290} // namespace sdbusplus
291
292namespace sdbusplus
293{
294namespace org
295{
296namespace open_power
297{
298namespace Witherspoon
299{
300namespace Fault
301{
302namespace Error
303{
304 struct PowerSupplyUnderVoltageFault;
305} // namespace Error
306} // namespace Fault
307} // namespace Witherspoon
308} // namespace open_power
309} // namespace org
Matt Spinler7b14db22017-09-19 10:57:54 -0500310} // namespace sdbusplus
311
312namespace sdbusplus
313{
314namespace xyz
315{
316namespace openbmc_project
317{
Brandon Wyman442035f2017-08-08 15:58:45 -0500318namespace Common
319{
320namespace Callout
321{
322namespace Error
323{
324 struct IPMISensor;
325} // namespace Error
326} // namespace Callout
327} // namespace Common
328} // namespace openbmc_project
329} // namespace xyz
330} // namespace sdbusplus
331
332namespace sdbusplus
333{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500334namespace org
Brandon Wyman442035f2017-08-08 15:58:45 -0500335{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500336namespace open_power
Brandon Wyman442035f2017-08-08 15:58:45 -0500337{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500338namespace Witherspoon
Matt Spinler7b14db22017-09-19 10:57:54 -0500339{
340namespace Fault
341{
342namespace Error
343{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500344 struct PowerSupplyTemperatureFault;
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500345} // namespace Error
346} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500347} // namespace Witherspoon
348} // namespace open_power
349} // namespace org
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500350} // namespace sdbusplus
351
352namespace sdbusplus
353{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500354namespace org
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500355{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500356namespace open_power
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500357{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500358namespace Witherspoon
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500359{
360namespace Fault
361{
362namespace Error
363{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500364 struct PowerSupplyShouldBeOn;
Matt Spinler84cd0a52017-08-04 08:53:30 -0500365} // namespace Error
366} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500367} // namespace Witherspoon
368} // namespace open_power
369} // namespace org
370} // namespace sdbusplus
371
372namespace sdbusplus
373{
374namespace org
375{
376namespace open_power
377{
378namespace Witherspoon
379{
380namespace Fault
381{
382namespace Error
383{
384 struct GPUOverTemp;
385} // namespace Error
386} // namespace Fault
387} // namespace Witherspoon
388} // namespace open_power
389} // namespace org
Matt Spinler84cd0a52017-08-04 08:53:30 -0500390} // namespace sdbusplus
391
392
393namespace phosphor
394{
395
396namespace logging
397{
398
399namespace xyz
400{
401namespace openbmc_project
402{
Brandon Wyman442035f2017-08-08 15:58:45 -0500403namespace Common
404{
405namespace Callout
406{
407namespace _Device
408{
409
410struct CALLOUT_ERRNO
411{
412 static constexpr auto str = "CALLOUT_ERRNO=%d";
413 static constexpr auto str_short = "CALLOUT_ERRNO";
414 using type = std::tuple<std::decay_t<decltype(str)>,int32_t>;
415 explicit constexpr CALLOUT_ERRNO(int32_t a) : _entry(entry(str, a)) {};
416 type _entry;
417};
418struct CALLOUT_DEVICE_PATH
419{
420 static constexpr auto str = "CALLOUT_DEVICE_PATH=%s";
421 static constexpr auto str_short = "CALLOUT_DEVICE_PATH";
422 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
423 explicit constexpr CALLOUT_DEVICE_PATH(const char* a) : _entry(entry(str, a)) {};
424 type _entry;
425};
426
427} // namespace _Device
428
429struct Device
430{
431 static constexpr auto L = level::ERR;
432 using CALLOUT_ERRNO = _Device::CALLOUT_ERRNO;
433 using CALLOUT_DEVICE_PATH = _Device::CALLOUT_DEVICE_PATH;
434 using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
435
436};
437
438} // namespace Callout
439} // namespace Common
440} // namespace openbmc_project
441} // namespace xyz
442
443
444namespace details
445{
446
447template <>
448struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::Device>
449{
450 using type = xyz::openbmc_project::Common::Callout::Device;
451};
452
453}
454
455namespace xyz
456{
457namespace openbmc_project
458{
459namespace Common
460{
461namespace Callout
462{
463namespace _GPIO
464{
465
466struct CALLOUT_GPIO_NUM
467{
468 static constexpr auto str = "CALLOUT_GPIO_NUM=%u";
469 static constexpr auto str_short = "CALLOUT_GPIO_NUM";
470 using type = std::tuple<std::decay_t<decltype(str)>,uint32_t>;
471 explicit constexpr CALLOUT_GPIO_NUM(uint32_t a) : _entry(entry(str, a)) {};
472 type _entry;
473};
474
475} // namespace _GPIO
476
477struct GPIO
478{
479 static constexpr auto L = level::ERR;
480 using CALLOUT_GPIO_NUM = _GPIO::CALLOUT_GPIO_NUM;
481 using CALLOUT_ERRNO = xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
482 using CALLOUT_DEVICE_PATH = xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
483 using metadata_types = std::tuple<CALLOUT_GPIO_NUM, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
484
485};
486
487} // namespace Callout
488} // namespace Common
489} // namespace openbmc_project
490} // namespace xyz
491
492
493namespace details
494{
495
496template <>
497struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::GPIO>
498{
499 using type = xyz::openbmc_project::Common::Callout::GPIO;
500};
501
502}
503
504namespace xyz
505{
506namespace openbmc_project
507{
508namespace Common
509{
510namespace Callout
511{
512namespace _IIC
513{
514
515struct CALLOUT_IIC_BUS
516{
517 static constexpr auto str = "CALLOUT_IIC_BUS=%s";
518 static constexpr auto str_short = "CALLOUT_IIC_BUS";
519 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
520 explicit constexpr CALLOUT_IIC_BUS(const char* a) : _entry(entry(str, a)) {};
521 type _entry;
522};
523struct CALLOUT_IIC_ADDR
524{
525 static constexpr auto str = "CALLOUT_IIC_ADDR=0x%hx";
526 static constexpr auto str_short = "CALLOUT_IIC_ADDR";
527 using type = std::tuple<std::decay_t<decltype(str)>,uint16_t>;
528 explicit constexpr CALLOUT_IIC_ADDR(uint16_t a) : _entry(entry(str, a)) {};
529 type _entry;
530};
531
532} // namespace _IIC
533
534struct IIC
535{
536 static constexpr auto L = level::ERR;
537 using CALLOUT_IIC_BUS = _IIC::CALLOUT_IIC_BUS;
538 using CALLOUT_IIC_ADDR = _IIC::CALLOUT_IIC_ADDR;
539 using CALLOUT_ERRNO = xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
540 using CALLOUT_DEVICE_PATH = xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
541 using metadata_types = std::tuple<CALLOUT_IIC_BUS, CALLOUT_IIC_ADDR, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
542
543};
544
545} // namespace Callout
546} // namespace Common
547} // namespace openbmc_project
548} // namespace xyz
549
550
551namespace details
552{
553
554template <>
555struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::IIC>
556{
557 using type = xyz::openbmc_project::Common::Callout::IIC;
558};
559
560}
561
562namespace xyz
563{
564namespace openbmc_project
565{
566namespace Common
567{
568namespace Callout
569{
570namespace _Inventory
571{
572
573struct CALLOUT_INVENTORY_PATH
574{
575 static constexpr auto str = "CALLOUT_INVENTORY_PATH=%s";
576 static constexpr auto str_short = "CALLOUT_INVENTORY_PATH";
577 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
578 explicit constexpr CALLOUT_INVENTORY_PATH(const char* a) : _entry(entry(str, a)) {};
579 type _entry;
580};
581
582} // namespace _Inventory
583
584struct Inventory
585{
586 static constexpr auto L = level::ERR;
587 using CALLOUT_INVENTORY_PATH = _Inventory::CALLOUT_INVENTORY_PATH;
588 using metadata_types = std::tuple<CALLOUT_INVENTORY_PATH>;
589
590};
591
592} // namespace Callout
593} // namespace Common
594} // namespace openbmc_project
595} // namespace xyz
596
597
598namespace details
599{
600
601template <>
602struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::Inventory>
603{
604 using type = xyz::openbmc_project::Common::Callout::Inventory;
605};
606
607}
608
609namespace xyz
610{
611namespace openbmc_project
612{
613namespace Common
614{
615namespace Callout
616{
617namespace _IPMISensor
618{
619
620struct CALLOUT_IPMI_SENSOR_NUM
621{
622 static constexpr auto str = "CALLOUT_IPMI_SENSOR_NUM=%u";
623 static constexpr auto str_short = "CALLOUT_IPMI_SENSOR_NUM";
624 using type = std::tuple<std::decay_t<decltype(str)>,uint32_t>;
625 explicit constexpr CALLOUT_IPMI_SENSOR_NUM(uint32_t a) : _entry(entry(str, a)) {};
626 type _entry;
627};
628
629} // namespace _IPMISensor
630
631struct IPMISensor
632{
633 static constexpr auto L = level::ERR;
634 using CALLOUT_IPMI_SENSOR_NUM = _IPMISensor::CALLOUT_IPMI_SENSOR_NUM;
635 using metadata_types = std::tuple<CALLOUT_IPMI_SENSOR_NUM>;
636
637};
638
639} // namespace Callout
640} // namespace Common
641} // namespace openbmc_project
642} // namespace xyz
643
644
645namespace details
646{
647
648template <>
649struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::IPMISensor>
650{
651 using type = xyz::openbmc_project::Common::Callout::IPMISensor;
652};
653
654}
655
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500656namespace org
Brandon Wyman442035f2017-08-08 15:58:45 -0500657{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500658namespace open_power
Brandon Wyman442035f2017-08-08 15:58:45 -0500659{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500660namespace Witherspoon
Brandon Wyman442035f2017-08-08 15:58:45 -0500661{
662namespace Fault
663{
664namespace _PowerSupplyUnderVoltageFault
665{
666
Brandon Wyman10295542017-08-09 18:20:44 -0500667struct RAW_STATUS
668{
669 static constexpr auto str = "RAW_STATUS=%s";
670 static constexpr auto str_short = "RAW_STATUS";
671 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
672 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
673 type _entry;
674};
Brandon Wyman442035f2017-08-08 15:58:45 -0500675
676} // namespace _PowerSupplyUnderVoltageFault
677
678struct PowerSupplyUnderVoltageFault
679{
680 static constexpr auto L = level::ERR;
Brandon Wyman10295542017-08-09 18:20:44 -0500681 using RAW_STATUS = _PowerSupplyUnderVoltageFault::RAW_STATUS;
682 using metadata_types = std::tuple<RAW_STATUS>;
Brandon Wyman442035f2017-08-08 15:58:45 -0500683
684};
685
686} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500687} // namespace Witherspoon
688} // namespace open_power
689} // namespace org
Brandon Wyman442035f2017-08-08 15:58:45 -0500690
691
692namespace details
693{
694
695template <>
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500696struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::Error::PowerSupplyUnderVoltageFault>
Brandon Wyman442035f2017-08-08 15:58:45 -0500697{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500698 using type = org::open_power::Witherspoon::Fault::PowerSupplyUnderVoltageFault;
Brandon Wyman442035f2017-08-08 15:58:45 -0500699};
700
701}
702
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500703namespace org
Brandon Wyman442035f2017-08-08 15:58:45 -0500704{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500705namespace open_power
Brandon Wyman442035f2017-08-08 15:58:45 -0500706{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500707namespace Witherspoon
Matt Spinler84cd0a52017-08-04 08:53:30 -0500708{
709namespace Fault
710{
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500711namespace _PowerSupplyInputFault
712{
713
714struct RAW_STATUS
715{
716 static constexpr auto str = "RAW_STATUS=%s";
717 static constexpr auto str_short = "RAW_STATUS";
718 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
719 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
720 type _entry;
721};
722
723} // namespace _PowerSupplyInputFault
724
725struct PowerSupplyInputFault
726{
727 static constexpr auto L = level::ERR;
728 using RAW_STATUS = _PowerSupplyInputFault::RAW_STATUS;
729 using metadata_types = std::tuple<RAW_STATUS>;
730
731};
732
733} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500734} // namespace Witherspoon
735} // namespace open_power
736} // namespace org
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500737
738
739namespace details
740{
741
742template <>
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500743struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::Error::PowerSupplyInputFault>
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500744{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500745 using type = org::open_power::Witherspoon::Fault::PowerSupplyInputFault;
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500746};
747
748}
749
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500750namespace org
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500751{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500752namespace open_power
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500753{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500754namespace Witherspoon
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500755{
756namespace Fault
757{
Brandon Wyman764c7972017-08-22 17:05:36 -0500758namespace _PowerSupplyShouldBeOn
759{
760
761struct RAW_STATUS
762{
763 static constexpr auto str = "RAW_STATUS=%s";
764 static constexpr auto str_short = "RAW_STATUS";
765 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
766 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
767 type _entry;
768};
769
770} // namespace _PowerSupplyShouldBeOn
771
772struct PowerSupplyShouldBeOn
773{
774 static constexpr auto L = level::ERR;
775 using RAW_STATUS = _PowerSupplyShouldBeOn::RAW_STATUS;
776 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::Inventory::CALLOUT_INVENTORY_PATH;
777 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
778
779};
780
781} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500782} // namespace Witherspoon
783} // namespace open_power
784} // namespace org
Brandon Wyman764c7972017-08-22 17:05:36 -0500785
786
787namespace details
788{
789
790template <>
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500791struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::Error::PowerSupplyShouldBeOn>
Brandon Wyman764c7972017-08-22 17:05:36 -0500792{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500793 using type = org::open_power::Witherspoon::Fault::PowerSupplyShouldBeOn;
Brandon Wyman764c7972017-08-22 17:05:36 -0500794};
795
796}
797
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500798namespace org
Brandon Wyman764c7972017-08-22 17:05:36 -0500799{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500800namespace open_power
Brandon Wyman764c7972017-08-22 17:05:36 -0500801{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500802namespace Witherspoon
Brandon Wyman764c7972017-08-22 17:05:36 -0500803{
804namespace Fault
805{
Brandon Wymanb165c252017-08-25 18:59:54 -0500806namespace _PowerSupplyOutputOvercurrent
807{
808
809struct RAW_STATUS
810{
811 static constexpr auto str = "RAW_STATUS=%s";
812 static constexpr auto str_short = "RAW_STATUS";
813 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
814 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
815 type _entry;
816};
817
818} // namespace _PowerSupplyOutputOvercurrent
819
820struct PowerSupplyOutputOvercurrent
821{
822 static constexpr auto L = level::ERR;
823 using RAW_STATUS = _PowerSupplyOutputOvercurrent::RAW_STATUS;
824 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::Inventory::CALLOUT_INVENTORY_PATH;
825 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
826
827};
828
829} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500830} // namespace Witherspoon
831} // namespace open_power
832} // namespace org
Brandon Wymanb165c252017-08-25 18:59:54 -0500833
834
835namespace details
836{
837
838template <>
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500839struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::Error::PowerSupplyOutputOvercurrent>
Brandon Wymanb165c252017-08-25 18:59:54 -0500840{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500841 using type = org::open_power::Witherspoon::Fault::PowerSupplyOutputOvercurrent;
Brandon Wymanb165c252017-08-25 18:59:54 -0500842};
843
844}
845
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500846namespace org
Brandon Wymanb165c252017-08-25 18:59:54 -0500847{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500848namespace open_power
Brandon Wymanb165c252017-08-25 18:59:54 -0500849{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500850namespace Witherspoon
Brandon Wymanb165c252017-08-25 18:59:54 -0500851{
852namespace Fault
853{
Brandon Wymanab05c072017-08-30 18:26:41 -0500854namespace _PowerSupplyOutputOvervoltage
855{
856
857struct RAW_STATUS
858{
859 static constexpr auto str = "RAW_STATUS=%s";
860 static constexpr auto str_short = "RAW_STATUS";
861 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
862 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
863 type _entry;
864};
865
866} // namespace _PowerSupplyOutputOvervoltage
867
868struct PowerSupplyOutputOvervoltage
869{
870 static constexpr auto L = level::ERR;
871 using RAW_STATUS = _PowerSupplyOutputOvervoltage::RAW_STATUS;
872 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::Inventory::CALLOUT_INVENTORY_PATH;
873 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
874
875};
876
877} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500878} // namespace Witherspoon
879} // namespace open_power
880} // namespace org
Brandon Wymanab05c072017-08-30 18:26:41 -0500881
882
883namespace details
884{
885
886template <>
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500887struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::Error::PowerSupplyOutputOvervoltage>
Brandon Wymanab05c072017-08-30 18:26:41 -0500888{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500889 using type = org::open_power::Witherspoon::Fault::PowerSupplyOutputOvervoltage;
Brandon Wymanab05c072017-08-30 18:26:41 -0500890};
891
892}
893
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500894namespace org
Brandon Wymanab05c072017-08-30 18:26:41 -0500895{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500896namespace open_power
Brandon Wymanab05c072017-08-30 18:26:41 -0500897{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500898namespace Witherspoon
Brandon Wymanab05c072017-08-30 18:26:41 -0500899{
900namespace Fault
901{
Brandon Wyman12661f12017-08-31 15:28:21 -0500902namespace _PowerSupplyFanFault
903{
904
905struct RAW_STATUS
906{
907 static constexpr auto str = "RAW_STATUS=%s";
908 static constexpr auto str_short = "RAW_STATUS";
909 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
910 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
911 type _entry;
912};
913
914} // namespace _PowerSupplyFanFault
915
916struct PowerSupplyFanFault
917{
918 static constexpr auto L = level::ERR;
919 using RAW_STATUS = _PowerSupplyFanFault::RAW_STATUS;
920 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::Inventory::CALLOUT_INVENTORY_PATH;
921 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
922
923};
924
925} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500926} // namespace Witherspoon
927} // namespace open_power
928} // namespace org
Brandon Wyman12661f12017-08-31 15:28:21 -0500929
930
931namespace details
932{
933
934template <>
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500935struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::Error::PowerSupplyFanFault>
Brandon Wyman12661f12017-08-31 15:28:21 -0500936{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500937 using type = org::open_power::Witherspoon::Fault::PowerSupplyFanFault;
Brandon Wyman12661f12017-08-31 15:28:21 -0500938};
939
940}
941
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500942namespace org
Brandon Wyman12661f12017-08-31 15:28:21 -0500943{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500944namespace open_power
Brandon Wyman12661f12017-08-31 15:28:21 -0500945{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500946namespace Witherspoon
Brandon Wyman12661f12017-08-31 15:28:21 -0500947{
948namespace Fault
949{
Brandon Wyman875b3632017-09-13 18:46:03 -0500950namespace _PowerSupplyTemperatureFault
951{
952
953struct RAW_STATUS
954{
955 static constexpr auto str = "RAW_STATUS=%s";
956 static constexpr auto str_short = "RAW_STATUS";
957 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
958 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
959 type _entry;
960};
961
962} // namespace _PowerSupplyTemperatureFault
963
964struct PowerSupplyTemperatureFault
965{
966 static constexpr auto L = level::ERR;
967 using RAW_STATUS = _PowerSupplyTemperatureFault::RAW_STATUS;
968 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::Inventory::CALLOUT_INVENTORY_PATH;
969 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
970
971};
972
973} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500974} // namespace Witherspoon
975} // namespace open_power
976} // namespace org
Brandon Wyman875b3632017-09-13 18:46:03 -0500977
978
979namespace details
980{
981
982template <>
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500983struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::Error::PowerSupplyTemperatureFault>
Brandon Wyman875b3632017-09-13 18:46:03 -0500984{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500985 using type = org::open_power::Witherspoon::Fault::PowerSupplyTemperatureFault;
Brandon Wyman875b3632017-09-13 18:46:03 -0500986};
987
988}
989
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500990namespace org
Brandon Wyman875b3632017-09-13 18:46:03 -0500991{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500992namespace open_power
Brandon Wyman875b3632017-09-13 18:46:03 -0500993{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500994namespace Witherspoon
Brandon Wyman875b3632017-09-13 18:46:03 -0500995{
996namespace Fault
997{
Matt Spinler84cd0a52017-08-04 08:53:30 -0500998namespace _Shutdown
999{
1000
1001
1002} // namespace _Shutdown
1003
1004struct Shutdown
1005{
1006 static constexpr auto L = level::ERR;
1007 using metadata_types = std::tuple<>;
1008
1009};
1010
1011} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001012} // namespace Witherspoon
1013} // namespace open_power
1014} // namespace org
Matt Spinler84cd0a52017-08-04 08:53:30 -05001015
1016
1017namespace details
1018{
1019
1020template <>
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001021struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::Error::Shutdown>
Matt Spinler84cd0a52017-08-04 08:53:30 -05001022{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001023 using type = org::open_power::Witherspoon::Fault::Shutdown;
Matt Spinler84cd0a52017-08-04 08:53:30 -05001024};
1025
1026}
1027
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001028namespace org
Matt Spinlerfacfa902017-08-14 13:43:36 -05001029{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001030namespace open_power
Matt Spinlerfacfa902017-08-14 13:43:36 -05001031{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001032namespace Witherspoon
Matt Spinlerfacfa902017-08-14 13:43:36 -05001033{
1034namespace Fault
1035{
1036namespace _PowerOnFailure
1037{
1038
1039
1040} // namespace _PowerOnFailure
1041
1042struct PowerOnFailure
1043{
1044 static constexpr auto L = level::ERR;
1045 using metadata_types = std::tuple<>;
1046
1047};
1048
1049} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001050} // namespace Witherspoon
1051} // namespace open_power
1052} // namespace org
Matt Spinlerfacfa902017-08-14 13:43:36 -05001053
1054
1055namespace details
1056{
1057
1058template <>
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001059struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::Error::PowerOnFailure>
Matt Spinlerfacfa902017-08-14 13:43:36 -05001060{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001061 using type = org::open_power::Witherspoon::Fault::PowerOnFailure;
Matt Spinlerfacfa902017-08-14 13:43:36 -05001062};
1063
1064}
1065
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001066namespace org
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001067{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001068namespace open_power
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001069{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001070namespace Witherspoon
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001071{
1072namespace Fault
1073{
1074namespace _PowerSequencerVoltageFault
1075{
1076
1077struct RAIL
1078{
1079 static constexpr auto str = "RAIL=%d";
1080 static constexpr auto str_short = "RAIL";
1081 using type = std::tuple<std::decay_t<decltype(str)>,uint16_t>;
1082 explicit constexpr RAIL(uint16_t a) : _entry(entry(str, a)) {};
1083 type _entry;
1084};
1085struct RAIL_NAME
1086{
1087 static constexpr auto str = "RAIL_NAME=%s";
1088 static constexpr auto str_short = "RAIL_NAME";
1089 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
1090 explicit constexpr RAIL_NAME(const char* a) : _entry(entry(str, a)) {};
1091 type _entry;
1092};
1093struct RAW_STATUS
1094{
1095 static constexpr auto str = "RAW_STATUS=%s";
1096 static constexpr auto str_short = "RAW_STATUS";
1097 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
1098 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
1099 type _entry;
1100};
1101
1102} // namespace _PowerSequencerVoltageFault
1103
1104struct PowerSequencerVoltageFault
1105{
1106 static constexpr auto L = level::ERR;
1107 using RAIL = _PowerSequencerVoltageFault::RAIL;
1108 using RAIL_NAME = _PowerSequencerVoltageFault::RAIL_NAME;
1109 using RAW_STATUS = _PowerSequencerVoltageFault::RAW_STATUS;
1110 using metadata_types = std::tuple<RAIL, RAIL_NAME, RAW_STATUS>;
1111
1112};
1113
1114} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001115} // namespace Witherspoon
1116} // namespace open_power
1117} // namespace org
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001118
1119
1120namespace details
1121{
1122
1123template <>
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001124struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::Error::PowerSequencerVoltageFault>
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001125{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001126 using type = org::open_power::Witherspoon::Fault::PowerSequencerVoltageFault;
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001127};
1128
1129}
1130
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001131namespace org
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001132{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001133namespace open_power
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001134{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001135namespace Witherspoon
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001136{
1137namespace Fault
1138{
1139namespace _PowerSequencerPGOODFault
1140{
1141
1142struct INPUT_NUM
1143{
1144 static constexpr auto str = "INPUT_NUM=%d";
1145 static constexpr auto str_short = "INPUT_NUM";
1146 using type = std::tuple<std::decay_t<decltype(str)>,uint16_t>;
1147 explicit constexpr INPUT_NUM(uint16_t a) : _entry(entry(str, a)) {};
1148 type _entry;
1149};
1150struct INPUT_NAME
1151{
1152 static constexpr auto str = "INPUT_NAME=%s";
1153 static constexpr auto str_short = "INPUT_NAME";
1154 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
1155 explicit constexpr INPUT_NAME(const char* a) : _entry(entry(str, a)) {};
1156 type _entry;
1157};
1158struct RAW_STATUS
1159{
1160 static constexpr auto str = "RAW_STATUS=%s";
1161 static constexpr auto str_short = "RAW_STATUS";
1162 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
1163 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
1164 type _entry;
1165};
1166
1167} // namespace _PowerSequencerPGOODFault
1168
1169struct PowerSequencerPGOODFault
1170{
1171 static constexpr auto L = level::ERR;
1172 using INPUT_NUM = _PowerSequencerPGOODFault::INPUT_NUM;
1173 using INPUT_NAME = _PowerSequencerPGOODFault::INPUT_NAME;
1174 using RAW_STATUS = _PowerSequencerPGOODFault::RAW_STATUS;
1175 using metadata_types = std::tuple<INPUT_NUM, INPUT_NAME, RAW_STATUS>;
1176
1177};
1178
1179} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001180} // namespace Witherspoon
1181} // namespace open_power
1182} // namespace org
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001183
1184
1185namespace details
1186{
1187
1188template <>
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001189struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::Error::PowerSequencerPGOODFault>
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001190{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001191 using type = org::open_power::Witherspoon::Fault::PowerSequencerPGOODFault;
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001192};
1193
1194}
1195
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001196namespace org
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001197{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001198namespace open_power
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001199{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001200namespace Witherspoon
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001201{
1202namespace Fault
1203{
1204namespace _PowerSequencerFault
1205{
1206
1207struct RAW_STATUS
1208{
1209 static constexpr auto str = "RAW_STATUS=%s";
1210 static constexpr auto str_short = "RAW_STATUS";
1211 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
1212 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
1213 type _entry;
1214};
1215
1216} // namespace _PowerSequencerFault
1217
1218struct PowerSequencerFault
1219{
1220 static constexpr auto L = level::ERR;
1221 using RAW_STATUS = _PowerSequencerFault::RAW_STATUS;
1222 using metadata_types = std::tuple<RAW_STATUS>;
1223
1224};
1225
1226} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001227} // namespace Witherspoon
1228} // namespace open_power
1229} // namespace org
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001230
1231
1232namespace details
1233{
1234
1235template <>
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001236struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::Error::PowerSequencerFault>
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001237{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001238 using type = org::open_power::Witherspoon::Fault::PowerSequencerFault;
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001239};
1240
1241}
1242
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001243namespace org
Matt Spinler7b14db22017-09-19 10:57:54 -05001244{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001245namespace open_power
Matt Spinler7b14db22017-09-19 10:57:54 -05001246{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001247namespace Witherspoon
Matt Spinler7b14db22017-09-19 10:57:54 -05001248{
1249namespace Fault
1250{
1251namespace _GPUPowerFault
1252{
1253
1254struct RAW_STATUS
1255{
1256 static constexpr auto str = "RAW_STATUS=%s";
1257 static constexpr auto str_short = "RAW_STATUS";
1258 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
1259 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
1260 type _entry;
1261};
1262struct GPU
1263{
1264 static constexpr auto str = "GPU=%s";
1265 static constexpr auto str_short = "GPU";
1266 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
1267 explicit constexpr GPU(const char* a) : _entry(entry(str, a)) {};
1268 type _entry;
1269};
1270
1271} // namespace _GPUPowerFault
1272
1273struct GPUPowerFault
1274{
1275 static constexpr auto L = level::ERR;
1276 using RAW_STATUS = _GPUPowerFault::RAW_STATUS;
1277 using GPU = _GPUPowerFault::GPU;
1278 using metadata_types = std::tuple<RAW_STATUS, GPU>;
1279
1280};
1281
1282} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001283} // namespace Witherspoon
1284} // namespace open_power
1285} // namespace org
Matt Spinler7b14db22017-09-19 10:57:54 -05001286
1287
1288namespace details
1289{
1290
1291template <>
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001292struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::Error::GPUPowerFault>
Matt Spinler7b14db22017-09-19 10:57:54 -05001293{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001294 using type = org::open_power::Witherspoon::Fault::GPUPowerFault;
Matt Spinler7b14db22017-09-19 10:57:54 -05001295};
1296
1297}
1298
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001299namespace org
Matt Spinler7b14db22017-09-19 10:57:54 -05001300{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001301namespace open_power
Matt Spinler7b14db22017-09-19 10:57:54 -05001302{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001303namespace Witherspoon
Matt Spinler7b14db22017-09-19 10:57:54 -05001304{
1305namespace Fault
1306{
1307namespace _GPUOverTemp
1308{
1309
1310struct RAW_STATUS
1311{
1312 static constexpr auto str = "RAW_STATUS=%s";
1313 static constexpr auto str_short = "RAW_STATUS";
1314 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
1315 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
1316 type _entry;
1317};
1318struct GPU
1319{
1320 static constexpr auto str = "GPU=%s";
1321 static constexpr auto str_short = "GPU";
1322 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
1323 explicit constexpr GPU(const char* a) : _entry(entry(str, a)) {};
1324 type _entry;
1325};
1326
1327} // namespace _GPUOverTemp
1328
1329struct GPUOverTemp
1330{
1331 static constexpr auto L = level::ERR;
1332 using RAW_STATUS = _GPUOverTemp::RAW_STATUS;
1333 using GPU = _GPUOverTemp::GPU;
1334 using metadata_types = std::tuple<RAW_STATUS, GPU>;
1335
1336};
1337
1338} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001339} // namespace Witherspoon
1340} // namespace open_power
1341} // namespace org
Matt Spinler7b14db22017-09-19 10:57:54 -05001342
1343
1344namespace details
1345{
1346
1347template <>
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001348struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::Error::GPUOverTemp>
Matt Spinler7b14db22017-09-19 10:57:54 -05001349{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001350 using type = org::open_power::Witherspoon::Fault::GPUOverTemp;
Matt Spinler7b14db22017-09-19 10:57:54 -05001351};
1352
1353}
1354
Matt Spinler84cd0a52017-08-04 08:53:30 -05001355
1356} // namespace logging
1357
1358} // namespace phosphor