blob: 150875ad819279c5488d927f04410e74cd67f9cf [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{
Brandon Wyman02bc0f22017-11-01 17:56:22 -050074namespace org
Brandon Wyman875b3632017-09-13 18:46:03 -050075{
Brandon Wyman02bc0f22017-11-01 17:56:22 -050076namespace open_power
Brandon Wyman875b3632017-09-13 18:46:03 -050077{
Brandon Wyman02bc0f22017-11-01 17:56:22 -050078namespace Witherspoon
Brandon Wyman442035f2017-08-08 15:58:45 -050079{
Brandon Wyman02bc0f22017-11-01 17:56:22 -050080namespace Fault
Brandon Wyman442035f2017-08-08 15:58:45 -050081{
82namespace Error
83{
Brandon Wyman02bc0f22017-11-01 17:56:22 -050084 struct PowerSupplyInputFault;
Brandon Wyman442035f2017-08-08 15:58:45 -050085} // namespace Error
Brandon Wyman02bc0f22017-11-01 17:56:22 -050086} // namespace Fault
87} // namespace Witherspoon
88} // namespace open_power
89} // namespace org
Brandon Wyman442035f2017-08-08 15:58:45 -050090} // 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{
Brandon Wyman02bc0f22017-11-01 17:56:22 -0500154namespace xyz
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500155{
Brandon Wyman02bc0f22017-11-01 17:56:22 -0500156namespace openbmc_project
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500157{
Brandon Wyman02bc0f22017-11-01 17:56:22 -0500158namespace Common
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500159{
Brandon Wyman02bc0f22017-11-01 17:56:22 -0500160namespace Callout
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500161{
162namespace Error
163{
Brandon Wyman02bc0f22017-11-01 17:56:22 -0500164 struct Inventory;
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500165} // namespace Error
Brandon Wyman02bc0f22017-11-01 17:56:22 -0500166} // namespace Callout
167} // namespace Common
168} // namespace openbmc_project
169} // namespace xyz
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{
Matt Spinler7b14db22017-09-19 10:57:54 -0500294namespace xyz
295{
296namespace openbmc_project
297{
Brandon Wyman442035f2017-08-08 15:58:45 -0500298namespace Common
299{
300namespace Callout
301{
302namespace Error
303{
304 struct IPMISensor;
305} // namespace Error
306} // namespace Callout
307} // namespace Common
308} // namespace openbmc_project
309} // namespace xyz
310} // namespace sdbusplus
311
312namespace sdbusplus
313{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500314namespace org
Brandon Wyman442035f2017-08-08 15:58:45 -0500315{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500316namespace open_power
Brandon Wyman442035f2017-08-08 15:58:45 -0500317{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500318namespace Witherspoon
Matt Spinler7b14db22017-09-19 10:57:54 -0500319{
320namespace Fault
321{
322namespace Error
323{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500324 struct PowerSupplyTemperatureFault;
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500325} // namespace Error
326} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500327} // namespace Witherspoon
328} // namespace open_power
329} // namespace org
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500330} // namespace sdbusplus
331
332namespace sdbusplus
333{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500334namespace org
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500335{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500336namespace open_power
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500337{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500338namespace Witherspoon
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500339{
340namespace Fault
341{
342namespace Error
343{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500344 struct PowerSupplyShouldBeOn;
Matt Spinler84cd0a52017-08-04 08:53:30 -0500345} // namespace Error
346} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500347} // namespace Witherspoon
348} // namespace open_power
349} // namespace org
350} // namespace sdbusplus
351
352namespace sdbusplus
353{
354namespace org
355{
356namespace open_power
357{
358namespace Witherspoon
359{
360namespace Fault
361{
362namespace Error
363{
364 struct GPUOverTemp;
365} // namespace Error
366} // namespace Fault
367} // namespace Witherspoon
368} // namespace open_power
369} // namespace org
Matt Spinler84cd0a52017-08-04 08:53:30 -0500370} // namespace sdbusplus
371
372
373namespace phosphor
374{
375
376namespace logging
377{
378
379namespace xyz
380{
381namespace openbmc_project
382{
Brandon Wyman442035f2017-08-08 15:58:45 -0500383namespace Common
384{
385namespace Callout
386{
387namespace _Device
388{
389
390struct CALLOUT_ERRNO
391{
392 static constexpr auto str = "CALLOUT_ERRNO=%d";
393 static constexpr auto str_short = "CALLOUT_ERRNO";
394 using type = std::tuple<std::decay_t<decltype(str)>,int32_t>;
395 explicit constexpr CALLOUT_ERRNO(int32_t a) : _entry(entry(str, a)) {};
396 type _entry;
397};
398struct CALLOUT_DEVICE_PATH
399{
400 static constexpr auto str = "CALLOUT_DEVICE_PATH=%s";
401 static constexpr auto str_short = "CALLOUT_DEVICE_PATH";
402 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
403 explicit constexpr CALLOUT_DEVICE_PATH(const char* a) : _entry(entry(str, a)) {};
404 type _entry;
405};
406
407} // namespace _Device
408
409struct Device
410{
411 static constexpr auto L = level::ERR;
412 using CALLOUT_ERRNO = _Device::CALLOUT_ERRNO;
413 using CALLOUT_DEVICE_PATH = _Device::CALLOUT_DEVICE_PATH;
414 using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
415
416};
417
418} // namespace Callout
419} // namespace Common
420} // namespace openbmc_project
421} // namespace xyz
422
423
424namespace details
425{
426
427template <>
428struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::Device>
429{
430 using type = xyz::openbmc_project::Common::Callout::Device;
431};
432
433}
434
435namespace xyz
436{
437namespace openbmc_project
438{
439namespace Common
440{
441namespace Callout
442{
443namespace _GPIO
444{
445
446struct CALLOUT_GPIO_NUM
447{
448 static constexpr auto str = "CALLOUT_GPIO_NUM=%u";
449 static constexpr auto str_short = "CALLOUT_GPIO_NUM";
450 using type = std::tuple<std::decay_t<decltype(str)>,uint32_t>;
451 explicit constexpr CALLOUT_GPIO_NUM(uint32_t a) : _entry(entry(str, a)) {};
452 type _entry;
453};
454
455} // namespace _GPIO
456
457struct GPIO
458{
459 static constexpr auto L = level::ERR;
460 using CALLOUT_GPIO_NUM = _GPIO::CALLOUT_GPIO_NUM;
461 using CALLOUT_ERRNO = xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
462 using CALLOUT_DEVICE_PATH = xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
463 using metadata_types = std::tuple<CALLOUT_GPIO_NUM, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
464
465};
466
467} // namespace Callout
468} // namespace Common
469} // namespace openbmc_project
470} // namespace xyz
471
472
473namespace details
474{
475
476template <>
477struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::GPIO>
478{
479 using type = xyz::openbmc_project::Common::Callout::GPIO;
480};
481
482}
483
484namespace xyz
485{
486namespace openbmc_project
487{
488namespace Common
489{
490namespace Callout
491{
492namespace _IIC
493{
494
495struct CALLOUT_IIC_BUS
496{
497 static constexpr auto str = "CALLOUT_IIC_BUS=%s";
498 static constexpr auto str_short = "CALLOUT_IIC_BUS";
499 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
500 explicit constexpr CALLOUT_IIC_BUS(const char* a) : _entry(entry(str, a)) {};
501 type _entry;
502};
503struct CALLOUT_IIC_ADDR
504{
505 static constexpr auto str = "CALLOUT_IIC_ADDR=0x%hx";
506 static constexpr auto str_short = "CALLOUT_IIC_ADDR";
507 using type = std::tuple<std::decay_t<decltype(str)>,uint16_t>;
508 explicit constexpr CALLOUT_IIC_ADDR(uint16_t a) : _entry(entry(str, a)) {};
509 type _entry;
510};
511
512} // namespace _IIC
513
514struct IIC
515{
516 static constexpr auto L = level::ERR;
517 using CALLOUT_IIC_BUS = _IIC::CALLOUT_IIC_BUS;
518 using CALLOUT_IIC_ADDR = _IIC::CALLOUT_IIC_ADDR;
519 using CALLOUT_ERRNO = xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
520 using CALLOUT_DEVICE_PATH = xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
521 using metadata_types = std::tuple<CALLOUT_IIC_BUS, CALLOUT_IIC_ADDR, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
522
523};
524
525} // namespace Callout
526} // namespace Common
527} // namespace openbmc_project
528} // namespace xyz
529
530
531namespace details
532{
533
534template <>
535struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::IIC>
536{
537 using type = xyz::openbmc_project::Common::Callout::IIC;
538};
539
540}
541
542namespace xyz
543{
544namespace openbmc_project
545{
546namespace Common
547{
548namespace Callout
549{
550namespace _Inventory
551{
552
553struct CALLOUT_INVENTORY_PATH
554{
555 static constexpr auto str = "CALLOUT_INVENTORY_PATH=%s";
556 static constexpr auto str_short = "CALLOUT_INVENTORY_PATH";
557 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
558 explicit constexpr CALLOUT_INVENTORY_PATH(const char* a) : _entry(entry(str, a)) {};
559 type _entry;
560};
561
562} // namespace _Inventory
563
564struct Inventory
565{
566 static constexpr auto L = level::ERR;
567 using CALLOUT_INVENTORY_PATH = _Inventory::CALLOUT_INVENTORY_PATH;
568 using metadata_types = std::tuple<CALLOUT_INVENTORY_PATH>;
569
570};
571
572} // namespace Callout
573} // namespace Common
574} // namespace openbmc_project
575} // namespace xyz
576
577
578namespace details
579{
580
581template <>
582struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::Inventory>
583{
584 using type = xyz::openbmc_project::Common::Callout::Inventory;
585};
586
587}
588
589namespace xyz
590{
591namespace openbmc_project
592{
593namespace Common
594{
595namespace Callout
596{
597namespace _IPMISensor
598{
599
600struct CALLOUT_IPMI_SENSOR_NUM
601{
602 static constexpr auto str = "CALLOUT_IPMI_SENSOR_NUM=%u";
603 static constexpr auto str_short = "CALLOUT_IPMI_SENSOR_NUM";
604 using type = std::tuple<std::decay_t<decltype(str)>,uint32_t>;
605 explicit constexpr CALLOUT_IPMI_SENSOR_NUM(uint32_t a) : _entry(entry(str, a)) {};
606 type _entry;
607};
608
609} // namespace _IPMISensor
610
611struct IPMISensor
612{
613 static constexpr auto L = level::ERR;
614 using CALLOUT_IPMI_SENSOR_NUM = _IPMISensor::CALLOUT_IPMI_SENSOR_NUM;
615 using metadata_types = std::tuple<CALLOUT_IPMI_SENSOR_NUM>;
616
617};
618
619} // namespace Callout
620} // namespace Common
621} // namespace openbmc_project
622} // namespace xyz
623
624
625namespace details
626{
627
628template <>
629struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::IPMISensor>
630{
631 using type = xyz::openbmc_project::Common::Callout::IPMISensor;
632};
633
634}
635
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500636namespace org
Brandon Wyman442035f2017-08-08 15:58:45 -0500637{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500638namespace open_power
Brandon Wyman442035f2017-08-08 15:58:45 -0500639{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500640namespace Witherspoon
Brandon Wyman442035f2017-08-08 15:58:45 -0500641{
642namespace Fault
643{
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500644namespace _PowerSupplyInputFault
645{
646
647struct RAW_STATUS
648{
649 static constexpr auto str = "RAW_STATUS=%s";
650 static constexpr auto str_short = "RAW_STATUS";
651 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
652 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
653 type _entry;
654};
655
656} // namespace _PowerSupplyInputFault
657
658struct PowerSupplyInputFault
659{
660 static constexpr auto L = level::ERR;
661 using RAW_STATUS = _PowerSupplyInputFault::RAW_STATUS;
Brandon Wymanea358c92017-10-27 17:34:07 -0500662 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::Inventory::CALLOUT_INVENTORY_PATH;
663 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500664
665};
666
667} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500668} // namespace Witherspoon
669} // namespace open_power
670} // namespace org
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500671
672
673namespace details
674{
675
676template <>
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500677struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::Error::PowerSupplyInputFault>
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500678{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500679 using type = org::open_power::Witherspoon::Fault::PowerSupplyInputFault;
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500680};
681
682}
683
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500684namespace org
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500685{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500686namespace open_power
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500687{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500688namespace Witherspoon
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500689{
690namespace Fault
691{
Brandon Wyman764c7972017-08-22 17:05:36 -0500692namespace _PowerSupplyShouldBeOn
693{
694
695struct RAW_STATUS
696{
697 static constexpr auto str = "RAW_STATUS=%s";
698 static constexpr auto str_short = "RAW_STATUS";
699 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
700 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
701 type _entry;
702};
703
704} // namespace _PowerSupplyShouldBeOn
705
706struct PowerSupplyShouldBeOn
707{
708 static constexpr auto L = level::ERR;
709 using RAW_STATUS = _PowerSupplyShouldBeOn::RAW_STATUS;
710 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::Inventory::CALLOUT_INVENTORY_PATH;
711 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
712
713};
714
715} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500716} // namespace Witherspoon
717} // namespace open_power
718} // namespace org
Brandon Wyman764c7972017-08-22 17:05:36 -0500719
720
721namespace details
722{
723
724template <>
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500725struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::Error::PowerSupplyShouldBeOn>
Brandon Wyman764c7972017-08-22 17:05:36 -0500726{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500727 using type = org::open_power::Witherspoon::Fault::PowerSupplyShouldBeOn;
Brandon Wyman764c7972017-08-22 17:05:36 -0500728};
729
730}
731
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500732namespace org
Brandon Wyman764c7972017-08-22 17:05:36 -0500733{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500734namespace open_power
Brandon Wyman764c7972017-08-22 17:05:36 -0500735{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500736namespace Witherspoon
Brandon Wyman764c7972017-08-22 17:05:36 -0500737{
738namespace Fault
739{
Brandon Wymanb165c252017-08-25 18:59:54 -0500740namespace _PowerSupplyOutputOvercurrent
741{
742
743struct RAW_STATUS
744{
745 static constexpr auto str = "RAW_STATUS=%s";
746 static constexpr auto str_short = "RAW_STATUS";
747 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
748 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
749 type _entry;
750};
751
752} // namespace _PowerSupplyOutputOvercurrent
753
754struct PowerSupplyOutputOvercurrent
755{
756 static constexpr auto L = level::ERR;
757 using RAW_STATUS = _PowerSupplyOutputOvercurrent::RAW_STATUS;
758 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::Inventory::CALLOUT_INVENTORY_PATH;
759 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
760
761};
762
763} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500764} // namespace Witherspoon
765} // namespace open_power
766} // namespace org
Brandon Wymanb165c252017-08-25 18:59:54 -0500767
768
769namespace details
770{
771
772template <>
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500773struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::Error::PowerSupplyOutputOvercurrent>
Brandon Wymanb165c252017-08-25 18:59:54 -0500774{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500775 using type = org::open_power::Witherspoon::Fault::PowerSupplyOutputOvercurrent;
Brandon Wymanb165c252017-08-25 18:59:54 -0500776};
777
778}
779
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500780namespace org
Brandon Wymanb165c252017-08-25 18:59:54 -0500781{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500782namespace open_power
Brandon Wymanb165c252017-08-25 18:59:54 -0500783{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500784namespace Witherspoon
Brandon Wymanb165c252017-08-25 18:59:54 -0500785{
786namespace Fault
787{
Brandon Wymanab05c072017-08-30 18:26:41 -0500788namespace _PowerSupplyOutputOvervoltage
789{
790
791struct RAW_STATUS
792{
793 static constexpr auto str = "RAW_STATUS=%s";
794 static constexpr auto str_short = "RAW_STATUS";
795 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
796 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
797 type _entry;
798};
799
800} // namespace _PowerSupplyOutputOvervoltage
801
802struct PowerSupplyOutputOvervoltage
803{
804 static constexpr auto L = level::ERR;
805 using RAW_STATUS = _PowerSupplyOutputOvervoltage::RAW_STATUS;
806 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::Inventory::CALLOUT_INVENTORY_PATH;
807 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
808
809};
810
811} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500812} // namespace Witherspoon
813} // namespace open_power
814} // namespace org
Brandon Wymanab05c072017-08-30 18:26:41 -0500815
816
817namespace details
818{
819
820template <>
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500821struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::Error::PowerSupplyOutputOvervoltage>
Brandon Wymanab05c072017-08-30 18:26:41 -0500822{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500823 using type = org::open_power::Witherspoon::Fault::PowerSupplyOutputOvervoltage;
Brandon Wymanab05c072017-08-30 18:26:41 -0500824};
825
826}
827
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500828namespace org
Brandon Wymanab05c072017-08-30 18:26:41 -0500829{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500830namespace open_power
Brandon Wymanab05c072017-08-30 18:26:41 -0500831{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500832namespace Witherspoon
Brandon Wymanab05c072017-08-30 18:26:41 -0500833{
834namespace Fault
835{
Brandon Wyman12661f12017-08-31 15:28:21 -0500836namespace _PowerSupplyFanFault
837{
838
839struct RAW_STATUS
840{
841 static constexpr auto str = "RAW_STATUS=%s";
842 static constexpr auto str_short = "RAW_STATUS";
843 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
844 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
845 type _entry;
846};
847
848} // namespace _PowerSupplyFanFault
849
850struct PowerSupplyFanFault
851{
852 static constexpr auto L = level::ERR;
853 using RAW_STATUS = _PowerSupplyFanFault::RAW_STATUS;
854 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::Inventory::CALLOUT_INVENTORY_PATH;
855 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
856
857};
858
859} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500860} // namespace Witherspoon
861} // namespace open_power
862} // namespace org
Brandon Wyman12661f12017-08-31 15:28:21 -0500863
864
865namespace details
866{
867
868template <>
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500869struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::Error::PowerSupplyFanFault>
Brandon Wyman12661f12017-08-31 15:28:21 -0500870{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500871 using type = org::open_power::Witherspoon::Fault::PowerSupplyFanFault;
Brandon Wyman12661f12017-08-31 15:28:21 -0500872};
873
874}
875
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500876namespace org
Brandon Wyman12661f12017-08-31 15:28:21 -0500877{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500878namespace open_power
Brandon Wyman12661f12017-08-31 15:28:21 -0500879{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500880namespace Witherspoon
Brandon Wyman12661f12017-08-31 15:28:21 -0500881{
882namespace Fault
883{
Brandon Wyman875b3632017-09-13 18:46:03 -0500884namespace _PowerSupplyTemperatureFault
885{
886
887struct RAW_STATUS
888{
889 static constexpr auto str = "RAW_STATUS=%s";
890 static constexpr auto str_short = "RAW_STATUS";
891 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
892 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
893 type _entry;
894};
895
896} // namespace _PowerSupplyTemperatureFault
897
898struct PowerSupplyTemperatureFault
899{
900 static constexpr auto L = level::ERR;
901 using RAW_STATUS = _PowerSupplyTemperatureFault::RAW_STATUS;
902 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::Inventory::CALLOUT_INVENTORY_PATH;
903 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
904
905};
906
907} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500908} // namespace Witherspoon
909} // namespace open_power
910} // namespace org
Brandon Wyman875b3632017-09-13 18:46:03 -0500911
912
913namespace details
914{
915
916template <>
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500917struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::Error::PowerSupplyTemperatureFault>
Brandon Wyman875b3632017-09-13 18:46:03 -0500918{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500919 using type = org::open_power::Witherspoon::Fault::PowerSupplyTemperatureFault;
Brandon Wyman875b3632017-09-13 18:46:03 -0500920};
921
922}
923
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500924namespace org
Brandon Wyman875b3632017-09-13 18:46:03 -0500925{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500926namespace open_power
Brandon Wyman875b3632017-09-13 18:46:03 -0500927{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500928namespace Witherspoon
Brandon Wyman875b3632017-09-13 18:46:03 -0500929{
930namespace Fault
931{
Matt Spinler84cd0a52017-08-04 08:53:30 -0500932namespace _Shutdown
933{
934
935
936} // namespace _Shutdown
937
938struct Shutdown
939{
940 static constexpr auto L = level::ERR;
941 using metadata_types = std::tuple<>;
942
943};
944
945} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500946} // namespace Witherspoon
947} // namespace open_power
948} // namespace org
Matt Spinler84cd0a52017-08-04 08:53:30 -0500949
950
951namespace details
952{
953
954template <>
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500955struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::Error::Shutdown>
Matt Spinler84cd0a52017-08-04 08:53:30 -0500956{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500957 using type = org::open_power::Witherspoon::Fault::Shutdown;
Matt Spinler84cd0a52017-08-04 08:53:30 -0500958};
959
960}
961
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500962namespace org
Matt Spinlerfacfa902017-08-14 13:43:36 -0500963{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500964namespace open_power
Matt Spinlerfacfa902017-08-14 13:43:36 -0500965{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500966namespace Witherspoon
Matt Spinlerfacfa902017-08-14 13:43:36 -0500967{
968namespace Fault
969{
970namespace _PowerOnFailure
971{
972
973
974} // namespace _PowerOnFailure
975
976struct PowerOnFailure
977{
978 static constexpr auto L = level::ERR;
979 using metadata_types = std::tuple<>;
980
981};
982
983} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500984} // namespace Witherspoon
985} // namespace open_power
986} // namespace org
Matt Spinlerfacfa902017-08-14 13:43:36 -0500987
988
989namespace details
990{
991
992template <>
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500993struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::Error::PowerOnFailure>
Matt Spinlerfacfa902017-08-14 13:43:36 -0500994{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500995 using type = org::open_power::Witherspoon::Fault::PowerOnFailure;
Matt Spinlerfacfa902017-08-14 13:43:36 -0500996};
997
998}
999
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001000namespace org
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001001{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001002namespace open_power
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001003{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001004namespace Witherspoon
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001005{
1006namespace Fault
1007{
1008namespace _PowerSequencerVoltageFault
1009{
1010
1011struct RAIL
1012{
1013 static constexpr auto str = "RAIL=%d";
1014 static constexpr auto str_short = "RAIL";
1015 using type = std::tuple<std::decay_t<decltype(str)>,uint16_t>;
1016 explicit constexpr RAIL(uint16_t a) : _entry(entry(str, a)) {};
1017 type _entry;
1018};
1019struct RAIL_NAME
1020{
1021 static constexpr auto str = "RAIL_NAME=%s";
1022 static constexpr auto str_short = "RAIL_NAME";
1023 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
1024 explicit constexpr RAIL_NAME(const char* a) : _entry(entry(str, a)) {};
1025 type _entry;
1026};
1027struct RAW_STATUS
1028{
1029 static constexpr auto str = "RAW_STATUS=%s";
1030 static constexpr auto str_short = "RAW_STATUS";
1031 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
1032 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
1033 type _entry;
1034};
1035
1036} // namespace _PowerSequencerVoltageFault
1037
1038struct PowerSequencerVoltageFault
1039{
1040 static constexpr auto L = level::ERR;
1041 using RAIL = _PowerSequencerVoltageFault::RAIL;
1042 using RAIL_NAME = _PowerSequencerVoltageFault::RAIL_NAME;
1043 using RAW_STATUS = _PowerSequencerVoltageFault::RAW_STATUS;
1044 using metadata_types = std::tuple<RAIL, RAIL_NAME, RAW_STATUS>;
1045
1046};
1047
1048} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001049} // namespace Witherspoon
1050} // namespace open_power
1051} // namespace org
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001052
1053
1054namespace details
1055{
1056
1057template <>
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001058struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::Error::PowerSequencerVoltageFault>
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001059{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001060 using type = org::open_power::Witherspoon::Fault::PowerSequencerVoltageFault;
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001061};
1062
1063}
1064
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001065namespace org
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001066{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001067namespace open_power
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001068{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001069namespace Witherspoon
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001070{
1071namespace Fault
1072{
1073namespace _PowerSequencerPGOODFault
1074{
1075
1076struct INPUT_NUM
1077{
1078 static constexpr auto str = "INPUT_NUM=%d";
1079 static constexpr auto str_short = "INPUT_NUM";
1080 using type = std::tuple<std::decay_t<decltype(str)>,uint16_t>;
1081 explicit constexpr INPUT_NUM(uint16_t a) : _entry(entry(str, a)) {};
1082 type _entry;
1083};
1084struct INPUT_NAME
1085{
1086 static constexpr auto str = "INPUT_NAME=%s";
1087 static constexpr auto str_short = "INPUT_NAME";
1088 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
1089 explicit constexpr INPUT_NAME(const char* a) : _entry(entry(str, a)) {};
1090 type _entry;
1091};
1092struct RAW_STATUS
1093{
1094 static constexpr auto str = "RAW_STATUS=%s";
1095 static constexpr auto str_short = "RAW_STATUS";
1096 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
1097 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
1098 type _entry;
1099};
1100
1101} // namespace _PowerSequencerPGOODFault
1102
1103struct PowerSequencerPGOODFault
1104{
1105 static constexpr auto L = level::ERR;
1106 using INPUT_NUM = _PowerSequencerPGOODFault::INPUT_NUM;
1107 using INPUT_NAME = _PowerSequencerPGOODFault::INPUT_NAME;
1108 using RAW_STATUS = _PowerSequencerPGOODFault::RAW_STATUS;
1109 using metadata_types = std::tuple<INPUT_NUM, INPUT_NAME, RAW_STATUS>;
1110
1111};
1112
1113} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001114} // namespace Witherspoon
1115} // namespace open_power
1116} // namespace org
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001117
1118
1119namespace details
1120{
1121
1122template <>
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001123struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::Error::PowerSequencerPGOODFault>
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001124{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001125 using type = org::open_power::Witherspoon::Fault::PowerSequencerPGOODFault;
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001126};
1127
1128}
1129
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001130namespace org
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001131{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001132namespace open_power
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001133{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001134namespace Witherspoon
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001135{
1136namespace Fault
1137{
1138namespace _PowerSequencerFault
1139{
1140
1141struct RAW_STATUS
1142{
1143 static constexpr auto str = "RAW_STATUS=%s";
1144 static constexpr auto str_short = "RAW_STATUS";
1145 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
1146 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
1147 type _entry;
1148};
1149
1150} // namespace _PowerSequencerFault
1151
1152struct PowerSequencerFault
1153{
1154 static constexpr auto L = level::ERR;
1155 using RAW_STATUS = _PowerSequencerFault::RAW_STATUS;
1156 using metadata_types = std::tuple<RAW_STATUS>;
1157
1158};
1159
1160} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001161} // namespace Witherspoon
1162} // namespace open_power
1163} // namespace org
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001164
1165
1166namespace details
1167{
1168
1169template <>
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001170struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::Error::PowerSequencerFault>
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001171{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001172 using type = org::open_power::Witherspoon::Fault::PowerSequencerFault;
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001173};
1174
1175}
1176
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001177namespace org
Matt Spinler7b14db22017-09-19 10:57:54 -05001178{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001179namespace open_power
Matt Spinler7b14db22017-09-19 10:57:54 -05001180{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001181namespace Witherspoon
Matt Spinler7b14db22017-09-19 10:57:54 -05001182{
1183namespace Fault
1184{
1185namespace _GPUPowerFault
1186{
1187
1188struct RAW_STATUS
1189{
1190 static constexpr auto str = "RAW_STATUS=%s";
1191 static constexpr auto str_short = "RAW_STATUS";
1192 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
1193 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
1194 type _entry;
1195};
Matt Spinler7b14db22017-09-19 10:57:54 -05001196
1197} // namespace _GPUPowerFault
1198
1199struct GPUPowerFault
1200{
1201 static constexpr auto L = level::ERR;
1202 using RAW_STATUS = _GPUPowerFault::RAW_STATUS;
Matt Spinler0e45ced2018-02-12 14:36:07 -06001203 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::Inventory::CALLOUT_INVENTORY_PATH;
1204 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Matt Spinler7b14db22017-09-19 10:57:54 -05001205
1206};
1207
1208} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001209} // namespace Witherspoon
1210} // namespace open_power
1211} // namespace org
Matt Spinler7b14db22017-09-19 10:57:54 -05001212
1213
1214namespace details
1215{
1216
1217template <>
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001218struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::Error::GPUPowerFault>
Matt Spinler7b14db22017-09-19 10:57:54 -05001219{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001220 using type = org::open_power::Witherspoon::Fault::GPUPowerFault;
Matt Spinler7b14db22017-09-19 10:57:54 -05001221};
1222
1223}
1224
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001225namespace org
Matt Spinler7b14db22017-09-19 10:57:54 -05001226{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001227namespace open_power
Matt Spinler7b14db22017-09-19 10:57:54 -05001228{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001229namespace Witherspoon
Matt Spinler7b14db22017-09-19 10:57:54 -05001230{
1231namespace Fault
1232{
1233namespace _GPUOverTemp
1234{
1235
1236struct RAW_STATUS
1237{
1238 static constexpr auto str = "RAW_STATUS=%s";
1239 static constexpr auto str_short = "RAW_STATUS";
1240 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
1241 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
1242 type _entry;
1243};
Matt Spinler7b14db22017-09-19 10:57:54 -05001244
1245} // namespace _GPUOverTemp
1246
1247struct GPUOverTemp
1248{
1249 static constexpr auto L = level::ERR;
1250 using RAW_STATUS = _GPUOverTemp::RAW_STATUS;
Matt Spinler0e45ced2018-02-12 14:36:07 -06001251 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::Inventory::CALLOUT_INVENTORY_PATH;
1252 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Matt Spinler7b14db22017-09-19 10:57:54 -05001253
1254};
1255
1256} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001257} // namespace Witherspoon
1258} // namespace open_power
1259} // namespace org
Matt Spinler7b14db22017-09-19 10:57:54 -05001260
1261
1262namespace details
1263{
1264
1265template <>
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001266struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::Error::GPUOverTemp>
Matt Spinler7b14db22017-09-19 10:57:54 -05001267{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001268 using type = org::open_power::Witherspoon::Fault::GPUOverTemp;
Matt Spinler7b14db22017-09-19 10:57:54 -05001269};
1270
1271}
1272
Matt Spinler84cd0a52017-08-04 08:53:30 -05001273
1274} // namespace logging
1275
1276} // namespace phosphor