blob: f4d45f8e2547c31bb4ea495c5a3ed2b4be404cae [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>
Matt Spinler84cd0a52017-08-04 08:53:30 -05008#include <string>
9#include <tuple>
10#include <type_traits>
Matt Spinler84cd0a52017-08-04 08:53:30 -050011
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{
Matt Spinlerf0f02b92018-10-25 16:12:43 -050024struct 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{
Matt Spinlerf0f02b92018-10-25 16:12:43 -050044struct GPIO;
Brandon Wyman442035f2017-08-08 15:58:45 -050045} // 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{
Matt Spinlerf0f02b92018-10-25 16:12:43 -050064struct 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{
Matt Spinlerf0f02b92018-10-25 16:12:43 -050084struct 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{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500104struct IIC;
Brandon Wyman442035f2017-08-08 15:58:45 -0500105} // 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{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500124struct 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{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500144struct 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{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500164struct 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{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500184struct Device;
Brandon Wyman442035f2017-08-08 15:58:45 -0500185} // 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{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500204struct 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{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500224struct PowerSupplyOutputOvercurrent;
Brandon Wymanb165c252017-08-25 18:59:54 -0500225} // 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{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500244struct 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{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500264struct PowerSupplyFanFault;
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500265} // 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{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500284struct PowerSequencerVoltageFault;
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500285} // 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{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500304struct IPMISensor;
Brandon Wyman442035f2017-08-08 15:58:45 -0500305} // 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{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500324struct 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{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500344struct 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{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500364struct GPUOverTemp;
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500365} // 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
Matt Spinler84cd0a52017-08-04 08:53:30 -0500372namespace phosphor
373{
374
375namespace logging
376{
377
378namespace xyz
379{
380namespace openbmc_project
381{
Brandon Wyman442035f2017-08-08 15:58:45 -0500382namespace Common
383{
384namespace Callout
385{
386namespace _Device
387{
388
389struct CALLOUT_ERRNO
390{
391 static constexpr auto str = "CALLOUT_ERRNO=%d";
392 static constexpr auto str_short = "CALLOUT_ERRNO";
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500393 using type = std::tuple<std::decay_t<decltype(str)>, int32_t>;
394 explicit constexpr CALLOUT_ERRNO(int32_t a) : _entry(entry(str, a)){};
Brandon Wyman442035f2017-08-08 15:58:45 -0500395 type _entry;
396};
397struct CALLOUT_DEVICE_PATH
398{
399 static constexpr auto str = "CALLOUT_DEVICE_PATH=%s";
400 static constexpr auto str_short = "CALLOUT_DEVICE_PATH";
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500401 using type = std::tuple<std::decay_t<decltype(str)>, const char*>;
402 explicit constexpr CALLOUT_DEVICE_PATH(const char* a) :
403 _entry(entry(str, a)){};
Brandon Wyman442035f2017-08-08 15:58:45 -0500404 type _entry;
405};
406
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500407} // namespace _Device
Brandon Wyman442035f2017-08-08 15:58:45 -0500408
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>;
Brandon Wyman442035f2017-08-08 15:58:45 -0500415};
416
417} // namespace Callout
418} // namespace Common
419} // namespace openbmc_project
420} // namespace xyz
421
Brandon Wyman442035f2017-08-08 15:58:45 -0500422namespace details
423{
424
425template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500426struct map_exception_type<
427 sdbusplus::xyz::openbmc_project::Common::Callout::Error::Device>
Brandon Wyman442035f2017-08-08 15:58:45 -0500428{
429 using type = xyz::openbmc_project::Common::Callout::Device;
430};
431
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500432} // namespace details
Brandon Wyman442035f2017-08-08 15:58:45 -0500433
434namespace xyz
435{
436namespace openbmc_project
437{
438namespace Common
439{
440namespace Callout
441{
442namespace _GPIO
443{
444
445struct CALLOUT_GPIO_NUM
446{
447 static constexpr auto str = "CALLOUT_GPIO_NUM=%u";
448 static constexpr auto str_short = "CALLOUT_GPIO_NUM";
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500449 using type = std::tuple<std::decay_t<decltype(str)>, uint32_t>;
450 explicit constexpr CALLOUT_GPIO_NUM(uint32_t a) : _entry(entry(str, a)){};
Brandon Wyman442035f2017-08-08 15:58:45 -0500451 type _entry;
452};
453
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500454} // namespace _GPIO
Brandon Wyman442035f2017-08-08 15:58:45 -0500455
456struct GPIO
457{
458 static constexpr auto L = level::ERR;
459 using CALLOUT_GPIO_NUM = _GPIO::CALLOUT_GPIO_NUM;
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500460 using CALLOUT_ERRNO =
461 xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
462 using CALLOUT_DEVICE_PATH =
463 xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
464 using metadata_types =
465 std::tuple<CALLOUT_GPIO_NUM, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
Brandon Wyman442035f2017-08-08 15:58:45 -0500466};
467
468} // namespace Callout
469} // namespace Common
470} // namespace openbmc_project
471} // namespace xyz
472
Brandon Wyman442035f2017-08-08 15:58:45 -0500473namespace details
474{
475
476template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500477struct map_exception_type<
478 sdbusplus::xyz::openbmc_project::Common::Callout::Error::GPIO>
Brandon Wyman442035f2017-08-08 15:58:45 -0500479{
480 using type = xyz::openbmc_project::Common::Callout::GPIO;
481};
482
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500483} // namespace details
Brandon Wyman442035f2017-08-08 15:58:45 -0500484
485namespace xyz
486{
487namespace openbmc_project
488{
489namespace Common
490{
491namespace Callout
492{
493namespace _IIC
494{
495
496struct CALLOUT_IIC_BUS
497{
498 static constexpr auto str = "CALLOUT_IIC_BUS=%s";
499 static constexpr auto str_short = "CALLOUT_IIC_BUS";
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500500 using type = std::tuple<std::decay_t<decltype(str)>, const char*>;
501 explicit constexpr CALLOUT_IIC_BUS(const char* a) : _entry(entry(str, a)){};
Brandon Wyman442035f2017-08-08 15:58:45 -0500502 type _entry;
503};
504struct CALLOUT_IIC_ADDR
505{
506 static constexpr auto str = "CALLOUT_IIC_ADDR=0x%hx";
507 static constexpr auto str_short = "CALLOUT_IIC_ADDR";
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500508 using type = std::tuple<std::decay_t<decltype(str)>, uint16_t>;
509 explicit constexpr CALLOUT_IIC_ADDR(uint16_t a) : _entry(entry(str, a)){};
Brandon Wyman442035f2017-08-08 15:58:45 -0500510 type _entry;
511};
512
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500513} // namespace _IIC
Brandon Wyman442035f2017-08-08 15:58:45 -0500514
515struct IIC
516{
517 static constexpr auto L = level::ERR;
518 using CALLOUT_IIC_BUS = _IIC::CALLOUT_IIC_BUS;
519 using CALLOUT_IIC_ADDR = _IIC::CALLOUT_IIC_ADDR;
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500520 using CALLOUT_ERRNO =
521 xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
522 using CALLOUT_DEVICE_PATH =
523 xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
524 using metadata_types = std::tuple<CALLOUT_IIC_BUS, CALLOUT_IIC_ADDR,
525 CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
Brandon Wyman442035f2017-08-08 15:58:45 -0500526};
527
528} // namespace Callout
529} // namespace Common
530} // namespace openbmc_project
531} // namespace xyz
532
Brandon Wyman442035f2017-08-08 15:58:45 -0500533namespace details
534{
535
536template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500537struct map_exception_type<
538 sdbusplus::xyz::openbmc_project::Common::Callout::Error::IIC>
Brandon Wyman442035f2017-08-08 15:58:45 -0500539{
540 using type = xyz::openbmc_project::Common::Callout::IIC;
541};
542
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500543} // namespace details
Brandon Wyman442035f2017-08-08 15:58:45 -0500544
545namespace xyz
546{
547namespace openbmc_project
548{
549namespace Common
550{
551namespace Callout
552{
553namespace _Inventory
554{
555
556struct CALLOUT_INVENTORY_PATH
557{
558 static constexpr auto str = "CALLOUT_INVENTORY_PATH=%s";
559 static constexpr auto str_short = "CALLOUT_INVENTORY_PATH";
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500560 using type = std::tuple<std::decay_t<decltype(str)>, const char*>;
561 explicit constexpr CALLOUT_INVENTORY_PATH(const char* a) :
562 _entry(entry(str, a)){};
Brandon Wyman442035f2017-08-08 15:58:45 -0500563 type _entry;
564};
565
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500566} // namespace _Inventory
Brandon Wyman442035f2017-08-08 15:58:45 -0500567
568struct Inventory
569{
570 static constexpr auto L = level::ERR;
571 using CALLOUT_INVENTORY_PATH = _Inventory::CALLOUT_INVENTORY_PATH;
572 using metadata_types = std::tuple<CALLOUT_INVENTORY_PATH>;
Brandon Wyman442035f2017-08-08 15:58:45 -0500573};
574
575} // namespace Callout
576} // namespace Common
577} // namespace openbmc_project
578} // namespace xyz
579
Brandon Wyman442035f2017-08-08 15:58:45 -0500580namespace details
581{
582
583template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500584struct map_exception_type<
585 sdbusplus::xyz::openbmc_project::Common::Callout::Error::Inventory>
Brandon Wyman442035f2017-08-08 15:58:45 -0500586{
587 using type = xyz::openbmc_project::Common::Callout::Inventory;
588};
589
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500590} // namespace details
Brandon Wyman442035f2017-08-08 15:58:45 -0500591
592namespace xyz
593{
594namespace openbmc_project
595{
596namespace Common
597{
598namespace Callout
599{
600namespace _IPMISensor
601{
602
603struct CALLOUT_IPMI_SENSOR_NUM
604{
605 static constexpr auto str = "CALLOUT_IPMI_SENSOR_NUM=%u";
606 static constexpr auto str_short = "CALLOUT_IPMI_SENSOR_NUM";
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500607 using type = std::tuple<std::decay_t<decltype(str)>, uint32_t>;
608 explicit constexpr CALLOUT_IPMI_SENSOR_NUM(uint32_t a) :
609 _entry(entry(str, a)){};
Brandon Wyman442035f2017-08-08 15:58:45 -0500610 type _entry;
611};
612
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500613} // namespace _IPMISensor
Brandon Wyman442035f2017-08-08 15:58:45 -0500614
615struct IPMISensor
616{
617 static constexpr auto L = level::ERR;
618 using CALLOUT_IPMI_SENSOR_NUM = _IPMISensor::CALLOUT_IPMI_SENSOR_NUM;
619 using metadata_types = std::tuple<CALLOUT_IPMI_SENSOR_NUM>;
Brandon Wyman442035f2017-08-08 15:58:45 -0500620};
621
622} // namespace Callout
623} // namespace Common
624} // namespace openbmc_project
625} // namespace xyz
626
Brandon Wyman442035f2017-08-08 15:58:45 -0500627namespace details
628{
629
630template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500631struct map_exception_type<
632 sdbusplus::xyz::openbmc_project::Common::Callout::Error::IPMISensor>
Brandon Wyman442035f2017-08-08 15:58:45 -0500633{
634 using type = xyz::openbmc_project::Common::Callout::IPMISensor;
635};
636
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500637} // namespace details
Brandon Wyman442035f2017-08-08 15:58:45 -0500638
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500639namespace org
Brandon Wyman442035f2017-08-08 15:58:45 -0500640{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500641namespace open_power
Brandon Wyman442035f2017-08-08 15:58:45 -0500642{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500643namespace Witherspoon
Brandon Wyman442035f2017-08-08 15:58:45 -0500644{
645namespace Fault
646{
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500647namespace _PowerSupplyInputFault
648{
649
650struct RAW_STATUS
651{
652 static constexpr auto str = "RAW_STATUS=%s";
653 static constexpr auto str_short = "RAW_STATUS";
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500654 using type = std::tuple<std::decay_t<decltype(str)>, const char*>;
655 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)){};
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500656 type _entry;
657};
658
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500659} // namespace _PowerSupplyInputFault
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500660
661struct PowerSupplyInputFault
662{
663 static constexpr auto L = level::ERR;
664 using RAW_STATUS = _PowerSupplyInputFault::RAW_STATUS;
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500665 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
666 Inventory::CALLOUT_INVENTORY_PATH;
Brandon Wymanea358c92017-10-27 17:34:07 -0500667 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500668};
669
670} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500671} // namespace Witherspoon
672} // namespace open_power
673} // namespace org
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500674
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500675namespace details
676{
677
678template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500679struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::
680 Error::PowerSupplyInputFault>
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500681{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500682 using type = org::open_power::Witherspoon::Fault::PowerSupplyInputFault;
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500683};
684
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500685} // namespace details
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500686
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500687namespace org
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500688{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500689namespace open_power
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500690{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500691namespace Witherspoon
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500692{
693namespace Fault
694{
Brandon Wyman764c7972017-08-22 17:05:36 -0500695namespace _PowerSupplyShouldBeOn
696{
697
698struct RAW_STATUS
699{
700 static constexpr auto str = "RAW_STATUS=%s";
701 static constexpr auto str_short = "RAW_STATUS";
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500702 using type = std::tuple<std::decay_t<decltype(str)>, const char*>;
703 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)){};
Brandon Wyman764c7972017-08-22 17:05:36 -0500704 type _entry;
705};
706
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500707} // namespace _PowerSupplyShouldBeOn
Brandon Wyman764c7972017-08-22 17:05:36 -0500708
709struct PowerSupplyShouldBeOn
710{
711 static constexpr auto L = level::ERR;
712 using RAW_STATUS = _PowerSupplyShouldBeOn::RAW_STATUS;
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500713 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
714 Inventory::CALLOUT_INVENTORY_PATH;
Brandon Wyman764c7972017-08-22 17:05:36 -0500715 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Brandon Wyman764c7972017-08-22 17:05:36 -0500716};
717
718} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500719} // namespace Witherspoon
720} // namespace open_power
721} // namespace org
Brandon Wyman764c7972017-08-22 17:05:36 -0500722
Brandon Wyman764c7972017-08-22 17:05:36 -0500723namespace details
724{
725
726template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500727struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::
728 Error::PowerSupplyShouldBeOn>
Brandon Wyman764c7972017-08-22 17:05:36 -0500729{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500730 using type = org::open_power::Witherspoon::Fault::PowerSupplyShouldBeOn;
Brandon Wyman764c7972017-08-22 17:05:36 -0500731};
732
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500733} // namespace details
Brandon Wyman764c7972017-08-22 17:05:36 -0500734
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500735namespace org
Brandon Wyman764c7972017-08-22 17:05:36 -0500736{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500737namespace open_power
Brandon Wyman764c7972017-08-22 17:05:36 -0500738{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500739namespace Witherspoon
Brandon Wyman764c7972017-08-22 17:05:36 -0500740{
741namespace Fault
742{
Brandon Wymanb165c252017-08-25 18:59:54 -0500743namespace _PowerSupplyOutputOvercurrent
744{
745
746struct RAW_STATUS
747{
748 static constexpr auto str = "RAW_STATUS=%s";
749 static constexpr auto str_short = "RAW_STATUS";
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500750 using type = std::tuple<std::decay_t<decltype(str)>, const char*>;
751 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)){};
Brandon Wymanb165c252017-08-25 18:59:54 -0500752 type _entry;
753};
754
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500755} // namespace _PowerSupplyOutputOvercurrent
Brandon Wymanb165c252017-08-25 18:59:54 -0500756
757struct PowerSupplyOutputOvercurrent
758{
759 static constexpr auto L = level::ERR;
760 using RAW_STATUS = _PowerSupplyOutputOvercurrent::RAW_STATUS;
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500761 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
762 Inventory::CALLOUT_INVENTORY_PATH;
Brandon Wymanb165c252017-08-25 18:59:54 -0500763 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Brandon Wymanb165c252017-08-25 18:59:54 -0500764};
765
766} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500767} // namespace Witherspoon
768} // namespace open_power
769} // namespace org
Brandon Wymanb165c252017-08-25 18:59:54 -0500770
Brandon Wymanb165c252017-08-25 18:59:54 -0500771namespace details
772{
773
774template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500775struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::
776 Error::PowerSupplyOutputOvercurrent>
Brandon Wymanb165c252017-08-25 18:59:54 -0500777{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500778 using type =
779 org::open_power::Witherspoon::Fault::PowerSupplyOutputOvercurrent;
Brandon Wymanb165c252017-08-25 18:59:54 -0500780};
781
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500782} // namespace details
Brandon Wymanb165c252017-08-25 18:59:54 -0500783
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500784namespace org
Brandon Wymanb165c252017-08-25 18:59:54 -0500785{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500786namespace open_power
Brandon Wymanb165c252017-08-25 18:59:54 -0500787{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500788namespace Witherspoon
Brandon Wymanb165c252017-08-25 18:59:54 -0500789{
790namespace Fault
791{
Brandon Wymanab05c072017-08-30 18:26:41 -0500792namespace _PowerSupplyOutputOvervoltage
793{
794
795struct RAW_STATUS
796{
797 static constexpr auto str = "RAW_STATUS=%s";
798 static constexpr auto str_short = "RAW_STATUS";
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500799 using type = std::tuple<std::decay_t<decltype(str)>, const char*>;
800 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)){};
Brandon Wymanab05c072017-08-30 18:26:41 -0500801 type _entry;
802};
803
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500804} // namespace _PowerSupplyOutputOvervoltage
Brandon Wymanab05c072017-08-30 18:26:41 -0500805
806struct PowerSupplyOutputOvervoltage
807{
808 static constexpr auto L = level::ERR;
809 using RAW_STATUS = _PowerSupplyOutputOvervoltage::RAW_STATUS;
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500810 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
811 Inventory::CALLOUT_INVENTORY_PATH;
Brandon Wymanab05c072017-08-30 18:26:41 -0500812 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Brandon Wymanab05c072017-08-30 18:26:41 -0500813};
814
815} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500816} // namespace Witherspoon
817} // namespace open_power
818} // namespace org
Brandon Wymanab05c072017-08-30 18:26:41 -0500819
Brandon Wymanab05c072017-08-30 18:26:41 -0500820namespace details
821{
822
823template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500824struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::
825 Error::PowerSupplyOutputOvervoltage>
Brandon Wymanab05c072017-08-30 18:26:41 -0500826{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500827 using type =
828 org::open_power::Witherspoon::Fault::PowerSupplyOutputOvervoltage;
Brandon Wymanab05c072017-08-30 18:26:41 -0500829};
830
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500831} // namespace details
Brandon Wymanab05c072017-08-30 18:26:41 -0500832
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500833namespace org
Brandon Wymanab05c072017-08-30 18:26:41 -0500834{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500835namespace open_power
Brandon Wymanab05c072017-08-30 18:26:41 -0500836{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500837namespace Witherspoon
Brandon Wymanab05c072017-08-30 18:26:41 -0500838{
839namespace Fault
840{
Brandon Wyman12661f12017-08-31 15:28:21 -0500841namespace _PowerSupplyFanFault
842{
843
844struct RAW_STATUS
845{
846 static constexpr auto str = "RAW_STATUS=%s";
847 static constexpr auto str_short = "RAW_STATUS";
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500848 using type = std::tuple<std::decay_t<decltype(str)>, const char*>;
849 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)){};
Brandon Wyman12661f12017-08-31 15:28:21 -0500850 type _entry;
851};
852
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500853} // namespace _PowerSupplyFanFault
Brandon Wyman12661f12017-08-31 15:28:21 -0500854
855struct PowerSupplyFanFault
856{
857 static constexpr auto L = level::ERR;
858 using RAW_STATUS = _PowerSupplyFanFault::RAW_STATUS;
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500859 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
860 Inventory::CALLOUT_INVENTORY_PATH;
Brandon Wyman12661f12017-08-31 15:28:21 -0500861 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Brandon Wyman12661f12017-08-31 15:28:21 -0500862};
863
864} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500865} // namespace Witherspoon
866} // namespace open_power
867} // namespace org
Brandon Wyman12661f12017-08-31 15:28:21 -0500868
Brandon Wyman12661f12017-08-31 15:28:21 -0500869namespace details
870{
871
872template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500873struct map_exception_type<
874 sdbusplus::org::open_power::Witherspoon::Fault::Error::PowerSupplyFanFault>
Brandon Wyman12661f12017-08-31 15:28:21 -0500875{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500876 using type = org::open_power::Witherspoon::Fault::PowerSupplyFanFault;
Brandon Wyman12661f12017-08-31 15:28:21 -0500877};
878
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500879} // namespace details
Brandon Wyman12661f12017-08-31 15:28:21 -0500880
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500881namespace org
Brandon Wyman12661f12017-08-31 15:28:21 -0500882{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500883namespace open_power
Brandon Wyman12661f12017-08-31 15:28:21 -0500884{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500885namespace Witherspoon
Brandon Wyman12661f12017-08-31 15:28:21 -0500886{
887namespace Fault
888{
Brandon Wyman875b3632017-09-13 18:46:03 -0500889namespace _PowerSupplyTemperatureFault
890{
891
892struct RAW_STATUS
893{
894 static constexpr auto str = "RAW_STATUS=%s";
895 static constexpr auto str_short = "RAW_STATUS";
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500896 using type = std::tuple<std::decay_t<decltype(str)>, const char*>;
897 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)){};
Brandon Wyman875b3632017-09-13 18:46:03 -0500898 type _entry;
899};
900
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500901} // namespace _PowerSupplyTemperatureFault
Brandon Wyman875b3632017-09-13 18:46:03 -0500902
903struct PowerSupplyTemperatureFault
904{
905 static constexpr auto L = level::ERR;
906 using RAW_STATUS = _PowerSupplyTemperatureFault::RAW_STATUS;
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500907 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
908 Inventory::CALLOUT_INVENTORY_PATH;
Brandon Wyman875b3632017-09-13 18:46:03 -0500909 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Brandon Wyman875b3632017-09-13 18:46:03 -0500910};
911
912} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500913} // namespace Witherspoon
914} // namespace open_power
915} // namespace org
Brandon Wyman875b3632017-09-13 18:46:03 -0500916
Brandon Wyman875b3632017-09-13 18:46:03 -0500917namespace details
918{
919
920template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500921struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::
922 Error::PowerSupplyTemperatureFault>
Brandon Wyman875b3632017-09-13 18:46:03 -0500923{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500924 using type =
925 org::open_power::Witherspoon::Fault::PowerSupplyTemperatureFault;
Brandon Wyman875b3632017-09-13 18:46:03 -0500926};
927
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500928} // namespace details
Brandon Wyman875b3632017-09-13 18:46:03 -0500929
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500930namespace org
Brandon Wyman875b3632017-09-13 18:46:03 -0500931{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500932namespace open_power
Brandon Wyman875b3632017-09-13 18:46:03 -0500933{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500934namespace Witherspoon
Brandon Wyman875b3632017-09-13 18:46:03 -0500935{
936namespace Fault
937{
Matt Spinler84cd0a52017-08-04 08:53:30 -0500938namespace _Shutdown
939{
940
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500941} // namespace _Shutdown
Matt Spinler84cd0a52017-08-04 08:53:30 -0500942
943struct Shutdown
944{
945 static constexpr auto L = level::ERR;
946 using metadata_types = std::tuple<>;
Matt Spinler84cd0a52017-08-04 08:53:30 -0500947};
948
949} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500950} // namespace Witherspoon
951} // namespace open_power
952} // namespace org
Matt Spinler84cd0a52017-08-04 08:53:30 -0500953
Matt Spinler84cd0a52017-08-04 08:53:30 -0500954namespace details
955{
956
957template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500958struct map_exception_type<
959 sdbusplus::org::open_power::Witherspoon::Fault::Error::Shutdown>
Matt Spinler84cd0a52017-08-04 08:53:30 -0500960{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500961 using type = org::open_power::Witherspoon::Fault::Shutdown;
Matt Spinler84cd0a52017-08-04 08:53:30 -0500962};
963
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500964} // namespace details
Matt Spinler84cd0a52017-08-04 08:53:30 -0500965
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500966namespace org
Matt Spinlerfacfa902017-08-14 13:43:36 -0500967{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500968namespace open_power
Matt Spinlerfacfa902017-08-14 13:43:36 -0500969{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500970namespace Witherspoon
Matt Spinlerfacfa902017-08-14 13:43:36 -0500971{
972namespace Fault
973{
974namespace _PowerOnFailure
975{
976
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500977} // namespace _PowerOnFailure
Matt Spinlerfacfa902017-08-14 13:43:36 -0500978
979struct PowerOnFailure
980{
981 static constexpr auto L = level::ERR;
982 using metadata_types = std::tuple<>;
Matt Spinlerfacfa902017-08-14 13:43:36 -0500983};
984
985} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500986} // namespace Witherspoon
987} // namespace open_power
988} // namespace org
Matt Spinlerfacfa902017-08-14 13:43:36 -0500989
Matt Spinlerfacfa902017-08-14 13:43:36 -0500990namespace details
991{
992
993template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500994struct map_exception_type<
995 sdbusplus::org::open_power::Witherspoon::Fault::Error::PowerOnFailure>
Matt Spinlerfacfa902017-08-14 13:43:36 -0500996{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500997 using type = org::open_power::Witherspoon::Fault::PowerOnFailure;
Matt Spinlerfacfa902017-08-14 13:43:36 -0500998};
999
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001000} // namespace details
Matt Spinlerfacfa902017-08-14 13:43:36 -05001001
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001002namespace org
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001003{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001004namespace open_power
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001005{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001006namespace Witherspoon
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001007{
1008namespace Fault
1009{
1010namespace _PowerSequencerVoltageFault
1011{
1012
1013struct RAIL
1014{
1015 static constexpr auto str = "RAIL=%d";
1016 static constexpr auto str_short = "RAIL";
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001017 using type = std::tuple<std::decay_t<decltype(str)>, uint16_t>;
1018 explicit constexpr RAIL(uint16_t a) : _entry(entry(str, a)){};
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001019 type _entry;
1020};
1021struct RAIL_NAME
1022{
1023 static constexpr auto str = "RAIL_NAME=%s";
1024 static constexpr auto str_short = "RAIL_NAME";
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001025 using type = std::tuple<std::decay_t<decltype(str)>, const char*>;
1026 explicit constexpr RAIL_NAME(const char* a) : _entry(entry(str, a)){};
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001027 type _entry;
1028};
1029struct RAW_STATUS
1030{
1031 static constexpr auto str = "RAW_STATUS=%s";
1032 static constexpr auto str_short = "RAW_STATUS";
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001033 using type = std::tuple<std::decay_t<decltype(str)>, const char*>;
1034 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)){};
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001035 type _entry;
1036};
1037
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001038} // namespace _PowerSequencerVoltageFault
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001039
1040struct PowerSequencerVoltageFault
1041{
1042 static constexpr auto L = level::ERR;
1043 using RAIL = _PowerSequencerVoltageFault::RAIL;
1044 using RAIL_NAME = _PowerSequencerVoltageFault::RAIL_NAME;
1045 using RAW_STATUS = _PowerSequencerVoltageFault::RAW_STATUS;
1046 using metadata_types = std::tuple<RAIL, RAIL_NAME, RAW_STATUS>;
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001047};
1048
1049} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001050} // namespace Witherspoon
1051} // namespace open_power
1052} // namespace org
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001053
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001054namespace details
1055{
1056
1057template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001058struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::
1059 Error::PowerSequencerVoltageFault>
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001060{
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001061 using type =
1062 org::open_power::Witherspoon::Fault::PowerSequencerVoltageFault;
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001063};
1064
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001065} // namespace details
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001066
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001067namespace org
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001068{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001069namespace open_power
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001070{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001071namespace Witherspoon
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001072{
1073namespace Fault
1074{
1075namespace _PowerSequencerPGOODFault
1076{
1077
1078struct INPUT_NUM
1079{
1080 static constexpr auto str = "INPUT_NUM=%d";
1081 static constexpr auto str_short = "INPUT_NUM";
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001082 using type = std::tuple<std::decay_t<decltype(str)>, uint16_t>;
1083 explicit constexpr INPUT_NUM(uint16_t a) : _entry(entry(str, a)){};
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001084 type _entry;
1085};
1086struct INPUT_NAME
1087{
1088 static constexpr auto str = "INPUT_NAME=%s";
1089 static constexpr auto str_short = "INPUT_NAME";
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001090 using type = std::tuple<std::decay_t<decltype(str)>, const char*>;
1091 explicit constexpr INPUT_NAME(const char* a) : _entry(entry(str, a)){};
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001092 type _entry;
1093};
1094struct RAW_STATUS
1095{
1096 static constexpr auto str = "RAW_STATUS=%s";
1097 static constexpr auto str_short = "RAW_STATUS";
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001098 using type = std::tuple<std::decay_t<decltype(str)>, const char*>;
1099 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)){};
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001100 type _entry;
1101};
1102
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001103} // namespace _PowerSequencerPGOODFault
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001104
1105struct PowerSequencerPGOODFault
1106{
1107 static constexpr auto L = level::ERR;
1108 using INPUT_NUM = _PowerSequencerPGOODFault::INPUT_NUM;
1109 using INPUT_NAME = _PowerSequencerPGOODFault::INPUT_NAME;
1110 using RAW_STATUS = _PowerSequencerPGOODFault::RAW_STATUS;
1111 using metadata_types = std::tuple<INPUT_NUM, INPUT_NAME, RAW_STATUS>;
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001112};
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
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001119namespace details
1120{
1121
1122template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001123struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::
1124 Error::PowerSequencerPGOODFault>
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001125{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001126 using type = org::open_power::Witherspoon::Fault::PowerSequencerPGOODFault;
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001127};
1128
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001129} // namespace details
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001130
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 _PowerSequencerFault
1140{
1141
1142struct RAW_STATUS
1143{
1144 static constexpr auto str = "RAW_STATUS=%s";
1145 static constexpr auto str_short = "RAW_STATUS";
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001146 using type = std::tuple<std::decay_t<decltype(str)>, const char*>;
1147 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)){};
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001148 type _entry;
1149};
1150
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001151} // namespace _PowerSequencerFault
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001152
1153struct PowerSequencerFault
1154{
1155 static constexpr auto L = level::ERR;
1156 using RAW_STATUS = _PowerSequencerFault::RAW_STATUS;
1157 using metadata_types = std::tuple<RAW_STATUS>;
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001158};
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
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001165namespace details
1166{
1167
1168template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001169struct map_exception_type<
1170 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
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001175} // namespace details
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001176
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";
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001192 using type = std::tuple<std::decay_t<decltype(str)>, const char*>;
1193 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)){};
Matt Spinler7b14db22017-09-19 10:57:54 -05001194 type _entry;
1195};
Matt Spinler7b14db22017-09-19 10:57:54 -05001196
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001197} // namespace _GPUPowerFault
Matt Spinler7b14db22017-09-19 10:57:54 -05001198
1199struct GPUPowerFault
1200{
1201 static constexpr auto L = level::ERR;
1202 using RAW_STATUS = _GPUPowerFault::RAW_STATUS;
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001203 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
1204 Inventory::CALLOUT_INVENTORY_PATH;
Matt Spinler0e45ced2018-02-12 14:36:07 -06001205 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Matt Spinler7b14db22017-09-19 10:57:54 -05001206};
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
Matt Spinler7b14db22017-09-19 10:57:54 -05001213namespace details
1214{
1215
1216template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001217struct map_exception_type<
1218 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
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001223} // namespace details
Matt Spinler7b14db22017-09-19 10:57:54 -05001224
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";
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001240 using type = std::tuple<std::decay_t<decltype(str)>, const char*>;
1241 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)){};
Matt Spinler7b14db22017-09-19 10:57:54 -05001242 type _entry;
1243};
Matt Spinler7b14db22017-09-19 10:57:54 -05001244
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001245} // namespace _GPUOverTemp
Matt Spinler7b14db22017-09-19 10:57:54 -05001246
1247struct GPUOverTemp
1248{
1249 static constexpr auto L = level::ERR;
1250 using RAW_STATUS = _GPUOverTemp::RAW_STATUS;
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001251 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
1252 Inventory::CALLOUT_INVENTORY_PATH;
Matt Spinler0e45ced2018-02-12 14:36:07 -06001253 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Matt Spinler7b14db22017-09-19 10:57:54 -05001254};
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
Matt Spinler7b14db22017-09-19 10:57:54 -05001261namespace details
1262{
1263
1264template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001265struct map_exception_type<
1266 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
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001271} // namespace details
Matt Spinler84cd0a52017-08-04 08:53:30 -05001272
1273} // namespace logging
1274
1275} // namespace phosphor