blob: 44bc5eb4b8ee5f08c00bc204a14cc43147b6399a [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{
Brandon Wyman03c19db2019-05-10 17:46:41 -050034namespace org
35{
36namespace open_power
37{
38namespace Witherspoon
39{
40namespace Fault
41{
42namespace Error
43{
44struct MemoryPowerFault;
45} // namespace Error
46} // namespace Fault
47} // namespace Witherspoon
48} // namespace open_power
49} // namespace org
50} // namespace sdbusplus
51
52namespace sdbusplus
53{
Matt Spinler7b14db22017-09-19 10:57:54 -050054namespace xyz
55{
56namespace openbmc_project
57{
Brandon Wyman442035f2017-08-08 15:58:45 -050058namespace Common
59{
60namespace Callout
61{
62namespace Error
63{
Matt Spinlerf0f02b92018-10-25 16:12:43 -050064struct GPIO;
Brandon Wyman442035f2017-08-08 15:58:45 -050065} // namespace Error
66} // namespace Callout
67} // namespace Common
68} // namespace openbmc_project
69} // namespace xyz
70} // namespace sdbusplus
71
72namespace sdbusplus
73{
Brandon Wymane0eb45c2017-10-06 12:58:42 -050074namespace org
Brandon Wyman442035f2017-08-08 15:58:45 -050075{
Brandon Wymane0eb45c2017-10-06 12:58:42 -050076namespace open_power
Brandon Wyman442035f2017-08-08 15:58:45 -050077{
Brandon Wymane0eb45c2017-10-06 12:58:42 -050078namespace Witherspoon
Brandon Wyman875b3632017-09-13 18:46:03 -050079{
80namespace Fault
81{
82namespace Error
83{
Matt Spinlerf0f02b92018-10-25 16:12:43 -050084struct PowerOnFailure;
Brandon Wyman875b3632017-09-13 18:46:03 -050085} // namespace Error
86} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -050087} // namespace Witherspoon
88} // namespace open_power
89} // namespace org
Brandon Wyman875b3632017-09-13 18:46:03 -050090} // namespace sdbusplus
91
92namespace sdbusplus
93{
Brandon Wyman02bc0f22017-11-01 17:56:22 -050094namespace org
Brandon Wyman875b3632017-09-13 18:46:03 -050095{
Brandon Wyman02bc0f22017-11-01 17:56:22 -050096namespace open_power
Brandon Wyman875b3632017-09-13 18:46:03 -050097{
Brandon Wyman02bc0f22017-11-01 17:56:22 -050098namespace Witherspoon
Brandon Wyman442035f2017-08-08 15:58:45 -050099{
Brandon Wyman02bc0f22017-11-01 17:56:22 -0500100namespace Fault
Brandon Wyman442035f2017-08-08 15:58:45 -0500101{
102namespace Error
103{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500104struct PowerSupplyInputFault;
Brandon Wyman442035f2017-08-08 15:58:45 -0500105} // namespace Error
Brandon Wyman02bc0f22017-11-01 17:56:22 -0500106} // namespace Fault
107} // namespace Witherspoon
108} // namespace open_power
109} // namespace org
Brandon Wyman442035f2017-08-08 15:58:45 -0500110} // namespace sdbusplus
111
112namespace sdbusplus
113{
114namespace xyz
115{
116namespace openbmc_project
117{
118namespace Common
119{
120namespace Callout
121{
122namespace Error
123{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500124struct IIC;
Brandon Wyman442035f2017-08-08 15:58:45 -0500125} // namespace Error
126} // namespace Callout
127} // namespace Common
128} // namespace openbmc_project
129} // namespace xyz
130} // namespace sdbusplus
131
132namespace sdbusplus
133{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500134namespace org
Brandon Wyman442035f2017-08-08 15:58:45 -0500135{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500136namespace open_power
Brandon Wyman442035f2017-08-08 15:58:45 -0500137{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500138namespace Witherspoon
Matt Spinler7b14db22017-09-19 10:57:54 -0500139{
140namespace Fault
141{
142namespace Error
143{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500144struct GPUPowerFault;
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500145} // namespace Error
146} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500147} // namespace Witherspoon
148} // namespace open_power
149} // namespace org
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500150} // namespace sdbusplus
151
152namespace sdbusplus
153{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500154namespace org
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500155{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500156namespace open_power
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500157{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500158namespace Witherspoon
Brandon Wyman764c7972017-08-22 17:05:36 -0500159{
160namespace Fault
161{
162namespace Error
163{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500164struct Shutdown;
Brandon Wyman764c7972017-08-22 17:05:36 -0500165} // namespace Error
166} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500167} // namespace Witherspoon
168} // namespace open_power
169} // namespace org
170} // namespace sdbusplus
171
172namespace sdbusplus
173{
Brandon Wyman02bc0f22017-11-01 17:56:22 -0500174namespace xyz
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500175{
Brandon Wyman02bc0f22017-11-01 17:56:22 -0500176namespace openbmc_project
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500177{
Brandon Wyman02bc0f22017-11-01 17:56:22 -0500178namespace Common
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500179{
Brandon Wyman02bc0f22017-11-01 17:56:22 -0500180namespace Callout
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500181{
182namespace Error
183{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500184struct Inventory;
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500185} // namespace Error
Brandon Wyman02bc0f22017-11-01 17:56:22 -0500186} // namespace Callout
187} // namespace Common
188} // namespace openbmc_project
189} // namespace xyz
Brandon Wyman764c7972017-08-22 17:05:36 -0500190} // namespace sdbusplus
191
192namespace sdbusplus
193{
194namespace xyz
195{
196namespace openbmc_project
197{
Brandon Wyman442035f2017-08-08 15:58:45 -0500198namespace Common
199{
200namespace Callout
201{
202namespace Error
203{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500204struct Device;
Brandon Wyman442035f2017-08-08 15:58:45 -0500205} // namespace Error
206} // namespace Callout
207} // namespace Common
208} // namespace openbmc_project
209} // namespace xyz
210} // 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 Wyman442035f2017-08-08 15:58:45 -0500219{
220namespace Fault
221{
222namespace Error
223{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500224struct PowerSequencerFault;
Brandon Wyman442035f2017-08-08 15:58:45 -0500225} // namespace Error
226} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500227} // namespace Witherspoon
228} // namespace open_power
229} // namespace org
Brandon Wyman442035f2017-08-08 15:58:45 -0500230} // namespace sdbusplus
231
232namespace sdbusplus
233{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500234namespace org
Brandon Wyman442035f2017-08-08 15:58:45 -0500235{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500236namespace open_power
Brandon Wyman442035f2017-08-08 15:58:45 -0500237{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500238namespace Witherspoon
Brandon Wymanab05c072017-08-30 18:26:41 -0500239{
240namespace Fault
241{
242namespace Error
243{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500244struct PowerSupplyOutputOvercurrent;
Brandon Wymanb165c252017-08-25 18:59:54 -0500245} // namespace Error
246} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500247} // namespace Witherspoon
248} // namespace open_power
249} // namespace org
Brandon Wymanb165c252017-08-25 18:59:54 -0500250} // namespace sdbusplus
251
252namespace sdbusplus
253{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500254namespace org
Brandon Wymanb165c252017-08-25 18:59:54 -0500255{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500256namespace open_power
Brandon Wymanb165c252017-08-25 18:59:54 -0500257{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500258namespace Witherspoon
Brandon Wymanb165c252017-08-25 18:59:54 -0500259{
260namespace Fault
261{
262namespace Error
263{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500264struct PowerSupplyOutputOvervoltage;
Matt Spinler7b14db22017-09-19 10:57:54 -0500265} // namespace Error
266} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500267} // 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 PowerSupplyFanFault;
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{
294namespace org
295{
296namespace open_power
297{
298namespace Witherspoon
299{
300namespace Fault
301{
302namespace Error
303{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500304struct PowerSequencerVoltageFault;
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500305} // namespace Error
306} // namespace Fault
307} // namespace Witherspoon
308} // namespace open_power
309} // namespace org
310} // namespace sdbusplus
311
312namespace sdbusplus
313{
Matt Spinler7b14db22017-09-19 10:57:54 -0500314namespace xyz
315{
316namespace openbmc_project
317{
Brandon Wyman442035f2017-08-08 15:58:45 -0500318namespace Common
319{
320namespace Callout
321{
322namespace Error
323{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500324struct IPMISensor;
Brandon Wyman442035f2017-08-08 15:58:45 -0500325} // namespace Error
326} // namespace Callout
327} // namespace Common
328} // namespace openbmc_project
329} // namespace xyz
330} // namespace sdbusplus
331
332namespace sdbusplus
333{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500334namespace org
Brandon Wyman442035f2017-08-08 15:58:45 -0500335{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500336namespace open_power
Brandon Wyman442035f2017-08-08 15:58:45 -0500337{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500338namespace Witherspoon
Matt Spinler7b14db22017-09-19 10:57:54 -0500339{
340namespace Fault
341{
342namespace Error
343{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500344struct PowerSupplyTemperatureFault;
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500345} // namespace Error
346} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500347} // namespace Witherspoon
348} // namespace open_power
349} // namespace org
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500350} // namespace sdbusplus
351
352namespace sdbusplus
353{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500354namespace org
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500355{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500356namespace open_power
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500357{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500358namespace Witherspoon
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500359{
360namespace Fault
361{
362namespace Error
363{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500364struct PowerSupplyShouldBeOn;
Matt Spinler84cd0a52017-08-04 08:53:30 -0500365} // namespace Error
366} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500367} // namespace Witherspoon
368} // namespace open_power
369} // namespace org
370} // namespace sdbusplus
371
372namespace sdbusplus
373{
374namespace org
375{
376namespace open_power
377{
378namespace Witherspoon
379{
380namespace Fault
381{
382namespace Error
383{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500384struct GPUOverTemp;
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500385} // namespace Error
386} // namespace Fault
387} // namespace Witherspoon
388} // namespace open_power
389} // namespace org
Matt Spinler84cd0a52017-08-04 08:53:30 -0500390} // namespace sdbusplus
391
Matt Spinler84cd0a52017-08-04 08:53:30 -0500392namespace phosphor
393{
394
395namespace logging
396{
397
398namespace xyz
399{
400namespace openbmc_project
401{
Brandon Wyman442035f2017-08-08 15:58:45 -0500402namespace Common
403{
404namespace Callout
405{
406namespace _Device
407{
408
409struct CALLOUT_ERRNO
410{
Brandon Wyman03c19db2019-05-10 17:46:41 -0500411 /*
412 * We can't use -fsanitize=undefined if we declare a
413 * 'static constexpr auto str' member, so don't. Instead, open-code the
414 * mako template lookups.
415 */
Brandon Wyman442035f2017-08-08 15:58:45 -0500416 static constexpr auto str_short = "CALLOUT_ERRNO";
Brandon Wyman03c19db2019-05-10 17:46:41 -0500417 using type =
418 std::tuple<std::decay_t<decltype("CALLOUT_ERRNO=%d")>, int32_t>;
419 explicit constexpr CALLOUT_ERRNO(int32_t a) :
420 _entry(entry("CALLOUT_ERRNO=%d", a)){};
Brandon Wyman442035f2017-08-08 15:58:45 -0500421 type _entry;
422};
423struct CALLOUT_DEVICE_PATH
424{
Brandon Wyman03c19db2019-05-10 17:46:41 -0500425 /*
426 * We can't use -fsanitize=undefined if we declare a
427 * 'static constexpr auto str' member, so don't. Instead, open-code the
428 * mako template lookups.
429 */
Brandon Wyman442035f2017-08-08 15:58:45 -0500430 static constexpr auto str_short = "CALLOUT_DEVICE_PATH";
Brandon Wyman03c19db2019-05-10 17:46:41 -0500431 using type = std::tuple<std::decay_t<decltype("CALLOUT_DEVICE_PATH=%s")>,
432 const char*>;
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500433 explicit constexpr CALLOUT_DEVICE_PATH(const char* a) :
Brandon Wyman03c19db2019-05-10 17:46:41 -0500434 _entry(entry("CALLOUT_DEVICE_PATH=%s", a)){};
Brandon Wyman442035f2017-08-08 15:58:45 -0500435 type _entry;
436};
437
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500438} // namespace _Device
Brandon Wyman442035f2017-08-08 15:58:45 -0500439
440struct Device
441{
442 static constexpr auto L = level::ERR;
443 using CALLOUT_ERRNO = _Device::CALLOUT_ERRNO;
444 using CALLOUT_DEVICE_PATH = _Device::CALLOUT_DEVICE_PATH;
445 using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
Brandon Wyman442035f2017-08-08 15:58:45 -0500446};
447
448} // namespace Callout
449} // namespace Common
450} // namespace openbmc_project
451} // namespace xyz
452
Brandon Wyman442035f2017-08-08 15:58:45 -0500453namespace details
454{
455
456template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500457struct map_exception_type<
458 sdbusplus::xyz::openbmc_project::Common::Callout::Error::Device>
Brandon Wyman442035f2017-08-08 15:58:45 -0500459{
460 using type = xyz::openbmc_project::Common::Callout::Device;
461};
462
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500463} // namespace details
Brandon Wyman442035f2017-08-08 15:58:45 -0500464
465namespace xyz
466{
467namespace openbmc_project
468{
469namespace Common
470{
471namespace Callout
472{
473namespace _GPIO
474{
475
476struct CALLOUT_GPIO_NUM
477{
Brandon Wyman03c19db2019-05-10 17:46:41 -0500478 /*
479 * We can't use -fsanitize=undefined if we declare a
480 * 'static constexpr auto str' member, so don't. Instead, open-code the
481 * mako template lookups.
482 */
Brandon Wyman442035f2017-08-08 15:58:45 -0500483 static constexpr auto str_short = "CALLOUT_GPIO_NUM";
Brandon Wyman03c19db2019-05-10 17:46:41 -0500484 using type =
485 std::tuple<std::decay_t<decltype("CALLOUT_GPIO_NUM=%u")>, uint32_t>;
486 explicit constexpr CALLOUT_GPIO_NUM(uint32_t a) :
487 _entry(entry("CALLOUT_GPIO_NUM=%u", a)){};
Brandon Wyman442035f2017-08-08 15:58:45 -0500488 type _entry;
489};
490
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500491} // namespace _GPIO
Brandon Wyman442035f2017-08-08 15:58:45 -0500492
493struct GPIO
494{
495 static constexpr auto L = level::ERR;
496 using CALLOUT_GPIO_NUM = _GPIO::CALLOUT_GPIO_NUM;
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500497 using CALLOUT_ERRNO =
498 xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
499 using CALLOUT_DEVICE_PATH =
500 xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
501 using metadata_types =
502 std::tuple<CALLOUT_GPIO_NUM, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
Brandon Wyman442035f2017-08-08 15:58:45 -0500503};
504
505} // namespace Callout
506} // namespace Common
507} // namespace openbmc_project
508} // namespace xyz
509
Brandon Wyman442035f2017-08-08 15:58:45 -0500510namespace details
511{
512
513template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500514struct map_exception_type<
515 sdbusplus::xyz::openbmc_project::Common::Callout::Error::GPIO>
Brandon Wyman442035f2017-08-08 15:58:45 -0500516{
517 using type = xyz::openbmc_project::Common::Callout::GPIO;
518};
519
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500520} // namespace details
Brandon Wyman442035f2017-08-08 15:58:45 -0500521
522namespace xyz
523{
524namespace openbmc_project
525{
526namespace Common
527{
528namespace Callout
529{
530namespace _IIC
531{
532
533struct CALLOUT_IIC_BUS
534{
Brandon Wyman03c19db2019-05-10 17:46:41 -0500535 /*
536 * We can't use -fsanitize=undefined if we declare a
537 * 'static constexpr auto str' member, so don't. Instead, open-code the
538 * mako template lookups.
539 */
Brandon Wyman442035f2017-08-08 15:58:45 -0500540 static constexpr auto str_short = "CALLOUT_IIC_BUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -0500541 using type =
542 std::tuple<std::decay_t<decltype("CALLOUT_IIC_BUS=%s")>, const char*>;
543 explicit constexpr CALLOUT_IIC_BUS(const char* a) :
544 _entry(entry("CALLOUT_IIC_BUS=%s", a)){};
Brandon Wyman442035f2017-08-08 15:58:45 -0500545 type _entry;
546};
547struct CALLOUT_IIC_ADDR
548{
Brandon Wyman03c19db2019-05-10 17:46:41 -0500549 /*
550 * We can't use -fsanitize=undefined if we declare a
551 * 'static constexpr auto str' member, so don't. Instead, open-code the
552 * mako template lookups.
553 */
Brandon Wyman442035f2017-08-08 15:58:45 -0500554 static constexpr auto str_short = "CALLOUT_IIC_ADDR";
Brandon Wyman03c19db2019-05-10 17:46:41 -0500555 using type =
556 std::tuple<std::decay_t<decltype("CALLOUT_IIC_ADDR=0x%hx")>, uint16_t>;
557 explicit constexpr CALLOUT_IIC_ADDR(uint16_t a) :
558 _entry(entry("CALLOUT_IIC_ADDR=0x%hx", a)){};
Brandon Wyman442035f2017-08-08 15:58:45 -0500559 type _entry;
560};
561
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500562} // namespace _IIC
Brandon Wyman442035f2017-08-08 15:58:45 -0500563
564struct IIC
565{
566 static constexpr auto L = level::ERR;
567 using CALLOUT_IIC_BUS = _IIC::CALLOUT_IIC_BUS;
568 using CALLOUT_IIC_ADDR = _IIC::CALLOUT_IIC_ADDR;
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500569 using CALLOUT_ERRNO =
570 xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
571 using CALLOUT_DEVICE_PATH =
572 xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
573 using metadata_types = std::tuple<CALLOUT_IIC_BUS, CALLOUT_IIC_ADDR,
574 CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
Brandon Wyman442035f2017-08-08 15:58:45 -0500575};
576
577} // namespace Callout
578} // namespace Common
579} // namespace openbmc_project
580} // namespace xyz
581
Brandon Wyman442035f2017-08-08 15:58:45 -0500582namespace details
583{
584
585template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500586struct map_exception_type<
587 sdbusplus::xyz::openbmc_project::Common::Callout::Error::IIC>
Brandon Wyman442035f2017-08-08 15:58:45 -0500588{
589 using type = xyz::openbmc_project::Common::Callout::IIC;
590};
591
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500592} // namespace details
Brandon Wyman442035f2017-08-08 15:58:45 -0500593
594namespace xyz
595{
596namespace openbmc_project
597{
598namespace Common
599{
600namespace Callout
601{
602namespace _Inventory
603{
604
605struct CALLOUT_INVENTORY_PATH
606{
Brandon Wyman03c19db2019-05-10 17:46:41 -0500607 /*
608 * We can't use -fsanitize=undefined if we declare a
609 * 'static constexpr auto str' member, so don't. Instead, open-code the
610 * mako template lookups.
611 */
Brandon Wyman442035f2017-08-08 15:58:45 -0500612 static constexpr auto str_short = "CALLOUT_INVENTORY_PATH";
Brandon Wyman03c19db2019-05-10 17:46:41 -0500613 using type = std::tuple<std::decay_t<decltype("CALLOUT_INVENTORY_PATH=%s")>,
614 const char*>;
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500615 explicit constexpr CALLOUT_INVENTORY_PATH(const char* a) :
Brandon Wyman03c19db2019-05-10 17:46:41 -0500616 _entry(entry("CALLOUT_INVENTORY_PATH=%s", a)){};
Brandon Wyman442035f2017-08-08 15:58:45 -0500617 type _entry;
618};
619
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500620} // namespace _Inventory
Brandon Wyman442035f2017-08-08 15:58:45 -0500621
622struct Inventory
623{
624 static constexpr auto L = level::ERR;
625 using CALLOUT_INVENTORY_PATH = _Inventory::CALLOUT_INVENTORY_PATH;
626 using metadata_types = std::tuple<CALLOUT_INVENTORY_PATH>;
Brandon Wyman442035f2017-08-08 15:58:45 -0500627};
628
629} // namespace Callout
630} // namespace Common
631} // namespace openbmc_project
632} // namespace xyz
633
Brandon Wyman442035f2017-08-08 15:58:45 -0500634namespace details
635{
636
637template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500638struct map_exception_type<
639 sdbusplus::xyz::openbmc_project::Common::Callout::Error::Inventory>
Brandon Wyman442035f2017-08-08 15:58:45 -0500640{
641 using type = xyz::openbmc_project::Common::Callout::Inventory;
642};
643
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500644} // namespace details
Brandon Wyman442035f2017-08-08 15:58:45 -0500645
646namespace xyz
647{
648namespace openbmc_project
649{
650namespace Common
651{
652namespace Callout
653{
654namespace _IPMISensor
655{
656
657struct CALLOUT_IPMI_SENSOR_NUM
658{
Brandon Wyman03c19db2019-05-10 17:46:41 -0500659 /*
660 * We can't use -fsanitize=undefined if we declare a
661 * 'static constexpr auto str' member, so don't. Instead, open-code the
662 * mako template lookups.
663 */
Brandon Wyman442035f2017-08-08 15:58:45 -0500664 static constexpr auto str_short = "CALLOUT_IPMI_SENSOR_NUM";
Brandon Wyman03c19db2019-05-10 17:46:41 -0500665 using type =
666 std::tuple<std::decay_t<decltype("CALLOUT_IPMI_SENSOR_NUM=%u")>,
667 uint32_t>;
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500668 explicit constexpr CALLOUT_IPMI_SENSOR_NUM(uint32_t a) :
Brandon Wyman03c19db2019-05-10 17:46:41 -0500669 _entry(entry("CALLOUT_IPMI_SENSOR_NUM=%u", a)){};
Brandon Wyman442035f2017-08-08 15:58:45 -0500670 type _entry;
671};
672
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500673} // namespace _IPMISensor
Brandon Wyman442035f2017-08-08 15:58:45 -0500674
675struct IPMISensor
676{
677 static constexpr auto L = level::ERR;
678 using CALLOUT_IPMI_SENSOR_NUM = _IPMISensor::CALLOUT_IPMI_SENSOR_NUM;
679 using metadata_types = std::tuple<CALLOUT_IPMI_SENSOR_NUM>;
Brandon Wyman442035f2017-08-08 15:58:45 -0500680};
681
682} // namespace Callout
683} // namespace Common
684} // namespace openbmc_project
685} // namespace xyz
686
Brandon Wyman442035f2017-08-08 15:58:45 -0500687namespace details
688{
689
690template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500691struct map_exception_type<
692 sdbusplus::xyz::openbmc_project::Common::Callout::Error::IPMISensor>
Brandon Wyman442035f2017-08-08 15:58:45 -0500693{
694 using type = xyz::openbmc_project::Common::Callout::IPMISensor;
695};
696
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500697} // namespace details
Brandon Wyman442035f2017-08-08 15:58:45 -0500698
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500699namespace org
Brandon Wyman442035f2017-08-08 15:58:45 -0500700{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500701namespace open_power
Brandon Wyman442035f2017-08-08 15:58:45 -0500702{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500703namespace Witherspoon
Brandon Wyman442035f2017-08-08 15:58:45 -0500704{
705namespace Fault
706{
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500707namespace _PowerSupplyInputFault
708{
709
710struct RAW_STATUS
711{
Brandon Wyman03c19db2019-05-10 17:46:41 -0500712 /*
713 * We can't use -fsanitize=undefined if we declare a
714 * 'static constexpr auto str' member, so don't. Instead, open-code the
715 * mako template lookups.
716 */
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500717 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -0500718 using type =
719 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
720 explicit constexpr RAW_STATUS(const char* a) :
721 _entry(entry("RAW_STATUS=%s", a)){};
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500722 type _entry;
723};
724
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500725} // namespace _PowerSupplyInputFault
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500726
727struct PowerSupplyInputFault
728{
729 static constexpr auto L = level::ERR;
730 using RAW_STATUS = _PowerSupplyInputFault::RAW_STATUS;
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500731 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
732 Inventory::CALLOUT_INVENTORY_PATH;
Brandon Wymanea358c92017-10-27 17:34:07 -0500733 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500734};
735
736} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500737} // namespace Witherspoon
738} // namespace open_power
739} // namespace org
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500740
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500741namespace details
742{
743
744template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500745struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::
746 Error::PowerSupplyInputFault>
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500747{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500748 using type = org::open_power::Witherspoon::Fault::PowerSupplyInputFault;
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500749};
750
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500751} // namespace details
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500752
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500753namespace org
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500754{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500755namespace open_power
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500756{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500757namespace Witherspoon
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500758{
759namespace Fault
760{
Brandon Wyman764c7972017-08-22 17:05:36 -0500761namespace _PowerSupplyShouldBeOn
762{
763
764struct RAW_STATUS
765{
Brandon Wyman03c19db2019-05-10 17:46:41 -0500766 /*
767 * We can't use -fsanitize=undefined if we declare a
768 * 'static constexpr auto str' member, so don't. Instead, open-code the
769 * mako template lookups.
770 */
Brandon Wyman764c7972017-08-22 17:05:36 -0500771 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -0500772 using type =
773 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
774 explicit constexpr RAW_STATUS(const char* a) :
775 _entry(entry("RAW_STATUS=%s", a)){};
Brandon Wyman764c7972017-08-22 17:05:36 -0500776 type _entry;
777};
778
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500779} // namespace _PowerSupplyShouldBeOn
Brandon Wyman764c7972017-08-22 17:05:36 -0500780
781struct PowerSupplyShouldBeOn
782{
783 static constexpr auto L = level::ERR;
784 using RAW_STATUS = _PowerSupplyShouldBeOn::RAW_STATUS;
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500785 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
786 Inventory::CALLOUT_INVENTORY_PATH;
Brandon Wyman764c7972017-08-22 17:05:36 -0500787 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Brandon Wyman764c7972017-08-22 17:05:36 -0500788};
789
790} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500791} // namespace Witherspoon
792} // namespace open_power
793} // namespace org
Brandon Wyman764c7972017-08-22 17:05:36 -0500794
Brandon Wyman764c7972017-08-22 17:05:36 -0500795namespace details
796{
797
798template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500799struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::
800 Error::PowerSupplyShouldBeOn>
Brandon Wyman764c7972017-08-22 17:05:36 -0500801{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500802 using type = org::open_power::Witherspoon::Fault::PowerSupplyShouldBeOn;
Brandon Wyman764c7972017-08-22 17:05:36 -0500803};
804
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500805} // namespace details
Brandon Wyman764c7972017-08-22 17:05:36 -0500806
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500807namespace org
Brandon Wyman764c7972017-08-22 17:05:36 -0500808{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500809namespace open_power
Brandon Wyman764c7972017-08-22 17:05:36 -0500810{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500811namespace Witherspoon
Brandon Wyman764c7972017-08-22 17:05:36 -0500812{
813namespace Fault
814{
Brandon Wymanb165c252017-08-25 18:59:54 -0500815namespace _PowerSupplyOutputOvercurrent
816{
817
818struct RAW_STATUS
819{
Brandon Wyman03c19db2019-05-10 17:46:41 -0500820 /*
821 * We can't use -fsanitize=undefined if we declare a
822 * 'static constexpr auto str' member, so don't. Instead, open-code the
823 * mako template lookups.
824 */
Brandon Wymanb165c252017-08-25 18:59:54 -0500825 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -0500826 using type =
827 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
828 explicit constexpr RAW_STATUS(const char* a) :
829 _entry(entry("RAW_STATUS=%s", a)){};
Brandon Wymanb165c252017-08-25 18:59:54 -0500830 type _entry;
831};
832
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500833} // namespace _PowerSupplyOutputOvercurrent
Brandon Wymanb165c252017-08-25 18:59:54 -0500834
835struct PowerSupplyOutputOvercurrent
836{
837 static constexpr auto L = level::ERR;
838 using RAW_STATUS = _PowerSupplyOutputOvercurrent::RAW_STATUS;
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500839 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
840 Inventory::CALLOUT_INVENTORY_PATH;
Brandon Wymanb165c252017-08-25 18:59:54 -0500841 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Brandon Wymanb165c252017-08-25 18:59:54 -0500842};
843
844} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500845} // namespace Witherspoon
846} // namespace open_power
847} // namespace org
Brandon Wymanb165c252017-08-25 18:59:54 -0500848
Brandon Wymanb165c252017-08-25 18:59:54 -0500849namespace details
850{
851
852template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500853struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::
854 Error::PowerSupplyOutputOvercurrent>
Brandon Wymanb165c252017-08-25 18:59:54 -0500855{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500856 using type =
857 org::open_power::Witherspoon::Fault::PowerSupplyOutputOvercurrent;
Brandon Wymanb165c252017-08-25 18:59:54 -0500858};
859
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500860} // namespace details
Brandon Wymanb165c252017-08-25 18:59:54 -0500861
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500862namespace org
Brandon Wymanb165c252017-08-25 18:59:54 -0500863{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500864namespace open_power
Brandon Wymanb165c252017-08-25 18:59:54 -0500865{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500866namespace Witherspoon
Brandon Wymanb165c252017-08-25 18:59:54 -0500867{
868namespace Fault
869{
Brandon Wymanab05c072017-08-30 18:26:41 -0500870namespace _PowerSupplyOutputOvervoltage
871{
872
873struct RAW_STATUS
874{
Brandon Wyman03c19db2019-05-10 17:46:41 -0500875 /*
876 * We can't use -fsanitize=undefined if we declare a
877 * 'static constexpr auto str' member, so don't. Instead, open-code the
878 * mako template lookups.
879 */
Brandon Wymanab05c072017-08-30 18:26:41 -0500880 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -0500881 using type =
882 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
883 explicit constexpr RAW_STATUS(const char* a) :
884 _entry(entry("RAW_STATUS=%s", a)){};
Brandon Wymanab05c072017-08-30 18:26:41 -0500885 type _entry;
886};
887
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500888} // namespace _PowerSupplyOutputOvervoltage
Brandon Wymanab05c072017-08-30 18:26:41 -0500889
890struct PowerSupplyOutputOvervoltage
891{
892 static constexpr auto L = level::ERR;
893 using RAW_STATUS = _PowerSupplyOutputOvervoltage::RAW_STATUS;
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500894 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
895 Inventory::CALLOUT_INVENTORY_PATH;
Brandon Wymanab05c072017-08-30 18:26:41 -0500896 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Brandon Wymanab05c072017-08-30 18:26:41 -0500897};
898
899} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500900} // namespace Witherspoon
901} // namespace open_power
902} // namespace org
Brandon Wymanab05c072017-08-30 18:26:41 -0500903
Brandon Wymanab05c072017-08-30 18:26:41 -0500904namespace details
905{
906
907template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500908struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::
909 Error::PowerSupplyOutputOvervoltage>
Brandon Wymanab05c072017-08-30 18:26:41 -0500910{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500911 using type =
912 org::open_power::Witherspoon::Fault::PowerSupplyOutputOvervoltage;
Brandon Wymanab05c072017-08-30 18:26:41 -0500913};
914
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500915} // namespace details
Brandon Wymanab05c072017-08-30 18:26:41 -0500916
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500917namespace org
Brandon Wymanab05c072017-08-30 18:26:41 -0500918{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500919namespace open_power
Brandon Wymanab05c072017-08-30 18:26:41 -0500920{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500921namespace Witherspoon
Brandon Wymanab05c072017-08-30 18:26:41 -0500922{
923namespace Fault
924{
Brandon Wyman12661f12017-08-31 15:28:21 -0500925namespace _PowerSupplyFanFault
926{
927
928struct RAW_STATUS
929{
Brandon Wyman03c19db2019-05-10 17:46:41 -0500930 /*
931 * We can't use -fsanitize=undefined if we declare a
932 * 'static constexpr auto str' member, so don't. Instead, open-code the
933 * mako template lookups.
934 */
Brandon Wyman12661f12017-08-31 15:28:21 -0500935 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -0500936 using type =
937 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
938 explicit constexpr RAW_STATUS(const char* a) :
939 _entry(entry("RAW_STATUS=%s", a)){};
Brandon Wyman12661f12017-08-31 15:28:21 -0500940 type _entry;
941};
942
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500943} // namespace _PowerSupplyFanFault
Brandon Wyman12661f12017-08-31 15:28:21 -0500944
945struct PowerSupplyFanFault
946{
947 static constexpr auto L = level::ERR;
948 using RAW_STATUS = _PowerSupplyFanFault::RAW_STATUS;
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500949 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
950 Inventory::CALLOUT_INVENTORY_PATH;
Brandon Wyman12661f12017-08-31 15:28:21 -0500951 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Brandon Wyman12661f12017-08-31 15:28:21 -0500952};
953
954} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500955} // namespace Witherspoon
956} // namespace open_power
957} // namespace org
Brandon Wyman12661f12017-08-31 15:28:21 -0500958
Brandon Wyman12661f12017-08-31 15:28:21 -0500959namespace details
960{
961
962template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500963struct map_exception_type<
964 sdbusplus::org::open_power::Witherspoon::Fault::Error::PowerSupplyFanFault>
Brandon Wyman12661f12017-08-31 15:28:21 -0500965{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500966 using type = org::open_power::Witherspoon::Fault::PowerSupplyFanFault;
Brandon Wyman12661f12017-08-31 15:28:21 -0500967};
968
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500969} // namespace details
Brandon Wyman12661f12017-08-31 15:28:21 -0500970
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500971namespace org
Brandon Wyman12661f12017-08-31 15:28:21 -0500972{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500973namespace open_power
Brandon Wyman12661f12017-08-31 15:28:21 -0500974{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500975namespace Witherspoon
Brandon Wyman12661f12017-08-31 15:28:21 -0500976{
977namespace Fault
978{
Brandon Wyman875b3632017-09-13 18:46:03 -0500979namespace _PowerSupplyTemperatureFault
980{
981
982struct RAW_STATUS
983{
Brandon Wyman03c19db2019-05-10 17:46:41 -0500984 /*
985 * We can't use -fsanitize=undefined if we declare a
986 * 'static constexpr auto str' member, so don't. Instead, open-code the
987 * mako template lookups.
988 */
Brandon Wyman875b3632017-09-13 18:46:03 -0500989 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -0500990 using type =
991 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
992 explicit constexpr RAW_STATUS(const char* a) :
993 _entry(entry("RAW_STATUS=%s", a)){};
Brandon Wyman875b3632017-09-13 18:46:03 -0500994 type _entry;
995};
996
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500997} // namespace _PowerSupplyTemperatureFault
Brandon Wyman875b3632017-09-13 18:46:03 -0500998
999struct PowerSupplyTemperatureFault
1000{
1001 static constexpr auto L = level::ERR;
1002 using RAW_STATUS = _PowerSupplyTemperatureFault::RAW_STATUS;
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001003 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
1004 Inventory::CALLOUT_INVENTORY_PATH;
Brandon Wyman875b3632017-09-13 18:46:03 -05001005 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Brandon Wyman875b3632017-09-13 18:46:03 -05001006};
1007
1008} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001009} // namespace Witherspoon
1010} // namespace open_power
1011} // namespace org
Brandon Wyman875b3632017-09-13 18:46:03 -05001012
Brandon Wyman875b3632017-09-13 18:46:03 -05001013namespace details
1014{
1015
1016template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001017struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::
1018 Error::PowerSupplyTemperatureFault>
Brandon Wyman875b3632017-09-13 18:46:03 -05001019{
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001020 using type =
1021 org::open_power::Witherspoon::Fault::PowerSupplyTemperatureFault;
Brandon Wyman875b3632017-09-13 18:46:03 -05001022};
1023
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001024} // namespace details
Brandon Wyman875b3632017-09-13 18:46:03 -05001025
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001026namespace org
Brandon Wyman875b3632017-09-13 18:46:03 -05001027{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001028namespace open_power
Brandon Wyman875b3632017-09-13 18:46:03 -05001029{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001030namespace Witherspoon
Brandon Wyman875b3632017-09-13 18:46:03 -05001031{
1032namespace Fault
1033{
Matt Spinler84cd0a52017-08-04 08:53:30 -05001034namespace _Shutdown
1035{
1036
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001037} // namespace _Shutdown
Matt Spinler84cd0a52017-08-04 08:53:30 -05001038
1039struct Shutdown
1040{
1041 static constexpr auto L = level::ERR;
1042 using metadata_types = std::tuple<>;
Matt Spinler84cd0a52017-08-04 08:53:30 -05001043};
1044
1045} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001046} // namespace Witherspoon
1047} // namespace open_power
1048} // namespace org
Matt Spinler84cd0a52017-08-04 08:53:30 -05001049
Matt Spinler84cd0a52017-08-04 08:53:30 -05001050namespace details
1051{
1052
1053template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001054struct map_exception_type<
1055 sdbusplus::org::open_power::Witherspoon::Fault::Error::Shutdown>
Matt Spinler84cd0a52017-08-04 08:53:30 -05001056{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001057 using type = org::open_power::Witherspoon::Fault::Shutdown;
Matt Spinler84cd0a52017-08-04 08:53:30 -05001058};
1059
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001060} // namespace details
Matt Spinler84cd0a52017-08-04 08:53:30 -05001061
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001062namespace org
Matt Spinlerfacfa902017-08-14 13:43:36 -05001063{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001064namespace open_power
Matt Spinlerfacfa902017-08-14 13:43:36 -05001065{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001066namespace Witherspoon
Matt Spinlerfacfa902017-08-14 13:43:36 -05001067{
1068namespace Fault
1069{
1070namespace _PowerOnFailure
1071{
1072
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001073} // namespace _PowerOnFailure
Matt Spinlerfacfa902017-08-14 13:43:36 -05001074
1075struct PowerOnFailure
1076{
1077 static constexpr auto L = level::ERR;
1078 using metadata_types = std::tuple<>;
Matt Spinlerfacfa902017-08-14 13:43:36 -05001079};
1080
1081} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001082} // namespace Witherspoon
1083} // namespace open_power
1084} // namespace org
Matt Spinlerfacfa902017-08-14 13:43:36 -05001085
Matt Spinlerfacfa902017-08-14 13:43:36 -05001086namespace details
1087{
1088
1089template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001090struct map_exception_type<
1091 sdbusplus::org::open_power::Witherspoon::Fault::Error::PowerOnFailure>
Matt Spinlerfacfa902017-08-14 13:43:36 -05001092{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001093 using type = org::open_power::Witherspoon::Fault::PowerOnFailure;
Matt Spinlerfacfa902017-08-14 13:43:36 -05001094};
1095
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001096} // namespace details
Matt Spinlerfacfa902017-08-14 13:43:36 -05001097
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001098namespace org
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001099{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001100namespace open_power
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001101{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001102namespace Witherspoon
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001103{
1104namespace Fault
1105{
1106namespace _PowerSequencerVoltageFault
1107{
1108
1109struct RAIL
1110{
Brandon Wyman03c19db2019-05-10 17:46:41 -05001111 /*
1112 * We can't use -fsanitize=undefined if we declare a
1113 * 'static constexpr auto str' member, so don't. Instead, open-code the
1114 * mako template lookups.
1115 */
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001116 static constexpr auto str_short = "RAIL";
Brandon Wyman03c19db2019-05-10 17:46:41 -05001117 using type = std::tuple<std::decay_t<decltype("RAIL=%d")>, uint16_t>;
1118 explicit constexpr RAIL(uint16_t a) : _entry(entry("RAIL=%d", a)){};
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001119 type _entry;
1120};
1121struct RAIL_NAME
1122{
Brandon Wyman03c19db2019-05-10 17:46:41 -05001123 /*
1124 * We can't use -fsanitize=undefined if we declare a
1125 * 'static constexpr auto str' member, so don't. Instead, open-code the
1126 * mako template lookups.
1127 */
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001128 static constexpr auto str_short = "RAIL_NAME";
Brandon Wyman03c19db2019-05-10 17:46:41 -05001129 using type =
1130 std::tuple<std::decay_t<decltype("RAIL_NAME=%s")>, const char*>;
1131 explicit constexpr RAIL_NAME(const char* a) :
1132 _entry(entry("RAIL_NAME=%s", a)){};
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001133 type _entry;
1134};
1135struct RAW_STATUS
1136{
Brandon Wyman03c19db2019-05-10 17:46:41 -05001137 /*
1138 * We can't use -fsanitize=undefined if we declare a
1139 * 'static constexpr auto str' member, so don't. Instead, open-code the
1140 * mako template lookups.
1141 */
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001142 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -05001143 using type =
1144 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
1145 explicit constexpr RAW_STATUS(const char* a) :
1146 _entry(entry("RAW_STATUS=%s", a)){};
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001147 type _entry;
1148};
1149
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001150} // namespace _PowerSequencerVoltageFault
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001151
1152struct PowerSequencerVoltageFault
1153{
1154 static constexpr auto L = level::ERR;
1155 using RAIL = _PowerSequencerVoltageFault::RAIL;
1156 using RAIL_NAME = _PowerSequencerVoltageFault::RAIL_NAME;
1157 using RAW_STATUS = _PowerSequencerVoltageFault::RAW_STATUS;
1158 using metadata_types = std::tuple<RAIL, RAIL_NAME, RAW_STATUS>;
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001159};
1160
1161} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001162} // namespace Witherspoon
1163} // namespace open_power
1164} // namespace org
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001165
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001166namespace details
1167{
1168
1169template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001170struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::
1171 Error::PowerSequencerVoltageFault>
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001172{
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001173 using type =
1174 org::open_power::Witherspoon::Fault::PowerSequencerVoltageFault;
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001175};
1176
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001177} // namespace details
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001178
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001179namespace org
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001180{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001181namespace open_power
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001182{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001183namespace Witherspoon
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001184{
1185namespace Fault
1186{
1187namespace _PowerSequencerPGOODFault
1188{
1189
1190struct INPUT_NUM
1191{
Brandon Wyman03c19db2019-05-10 17:46:41 -05001192 /*
1193 * We can't use -fsanitize=undefined if we declare a
1194 * 'static constexpr auto str' member, so don't. Instead, open-code the
1195 * mako template lookups.
1196 */
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001197 static constexpr auto str_short = "INPUT_NUM";
Brandon Wyman03c19db2019-05-10 17:46:41 -05001198 using type = std::tuple<std::decay_t<decltype("INPUT_NUM=%d")>, uint16_t>;
1199 explicit constexpr INPUT_NUM(uint16_t a) :
1200 _entry(entry("INPUT_NUM=%d", a)){};
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001201 type _entry;
1202};
1203struct INPUT_NAME
1204{
Brandon Wyman03c19db2019-05-10 17:46:41 -05001205 /*
1206 * We can't use -fsanitize=undefined if we declare a
1207 * 'static constexpr auto str' member, so don't. Instead, open-code the
1208 * mako template lookups.
1209 */
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001210 static constexpr auto str_short = "INPUT_NAME";
Brandon Wyman03c19db2019-05-10 17:46:41 -05001211 using type =
1212 std::tuple<std::decay_t<decltype("INPUT_NAME=%s")>, const char*>;
1213 explicit constexpr INPUT_NAME(const char* a) :
1214 _entry(entry("INPUT_NAME=%s", a)){};
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001215 type _entry;
1216};
1217struct RAW_STATUS
1218{
Brandon Wyman03c19db2019-05-10 17:46:41 -05001219 /*
1220 * We can't use -fsanitize=undefined if we declare a
1221 * 'static constexpr auto str' member, so don't. Instead, open-code the
1222 * mako template lookups.
1223 */
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001224 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -05001225 using type =
1226 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
1227 explicit constexpr RAW_STATUS(const char* a) :
1228 _entry(entry("RAW_STATUS=%s", a)){};
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001229 type _entry;
1230};
1231
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001232} // namespace _PowerSequencerPGOODFault
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001233
1234struct PowerSequencerPGOODFault
1235{
1236 static constexpr auto L = level::ERR;
1237 using INPUT_NUM = _PowerSequencerPGOODFault::INPUT_NUM;
1238 using INPUT_NAME = _PowerSequencerPGOODFault::INPUT_NAME;
1239 using RAW_STATUS = _PowerSequencerPGOODFault::RAW_STATUS;
1240 using metadata_types = std::tuple<INPUT_NUM, INPUT_NAME, RAW_STATUS>;
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001241};
1242
1243} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001244} // namespace Witherspoon
1245} // namespace open_power
1246} // namespace org
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001247
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001248namespace details
1249{
1250
1251template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001252struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::
1253 Error::PowerSequencerPGOODFault>
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001254{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001255 using type = org::open_power::Witherspoon::Fault::PowerSequencerPGOODFault;
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001256};
1257
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001258} // namespace details
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001259
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001260namespace org
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001261{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001262namespace open_power
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001263{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001264namespace Witherspoon
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001265{
1266namespace Fault
1267{
1268namespace _PowerSequencerFault
1269{
1270
1271struct RAW_STATUS
1272{
Brandon Wyman03c19db2019-05-10 17:46:41 -05001273 /*
1274 * We can't use -fsanitize=undefined if we declare a
1275 * 'static constexpr auto str' member, so don't. Instead, open-code the
1276 * mako template lookups.
1277 */
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001278 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -05001279 using type =
1280 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
1281 explicit constexpr RAW_STATUS(const char* a) :
1282 _entry(entry("RAW_STATUS=%s", a)){};
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001283 type _entry;
1284};
1285
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001286} // namespace _PowerSequencerFault
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001287
1288struct PowerSequencerFault
1289{
1290 static constexpr auto L = level::ERR;
1291 using RAW_STATUS = _PowerSequencerFault::RAW_STATUS;
1292 using metadata_types = std::tuple<RAW_STATUS>;
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001293};
1294
1295} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001296} // namespace Witherspoon
1297} // namespace open_power
1298} // namespace org
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001299
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001300namespace details
1301{
1302
1303template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001304struct map_exception_type<
1305 sdbusplus::org::open_power::Witherspoon::Fault::Error::PowerSequencerFault>
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001306{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001307 using type = org::open_power::Witherspoon::Fault::PowerSequencerFault;
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001308};
1309
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001310} // namespace details
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001311
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001312namespace org
Matt Spinler7b14db22017-09-19 10:57:54 -05001313{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001314namespace open_power
Matt Spinler7b14db22017-09-19 10:57:54 -05001315{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001316namespace Witherspoon
Matt Spinler7b14db22017-09-19 10:57:54 -05001317{
1318namespace Fault
1319{
1320namespace _GPUPowerFault
1321{
1322
1323struct RAW_STATUS
1324{
Brandon Wyman03c19db2019-05-10 17:46:41 -05001325 /*
1326 * We can't use -fsanitize=undefined if we declare a
1327 * 'static constexpr auto str' member, so don't. Instead, open-code the
1328 * mako template lookups.
1329 */
Matt Spinler7b14db22017-09-19 10:57:54 -05001330 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -05001331 using type =
1332 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
1333 explicit constexpr RAW_STATUS(const char* a) :
1334 _entry(entry("RAW_STATUS=%s", a)){};
Matt Spinler7b14db22017-09-19 10:57:54 -05001335 type _entry;
1336};
Matt Spinler7b14db22017-09-19 10:57:54 -05001337
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001338} // namespace _GPUPowerFault
Matt Spinler7b14db22017-09-19 10:57:54 -05001339
1340struct GPUPowerFault
1341{
1342 static constexpr auto L = level::ERR;
1343 using RAW_STATUS = _GPUPowerFault::RAW_STATUS;
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001344 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
1345 Inventory::CALLOUT_INVENTORY_PATH;
Matt Spinler0e45ced2018-02-12 14:36:07 -06001346 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Matt Spinler7b14db22017-09-19 10:57:54 -05001347};
1348
1349} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001350} // namespace Witherspoon
1351} // namespace open_power
1352} // namespace org
Matt Spinler7b14db22017-09-19 10:57:54 -05001353
Matt Spinler7b14db22017-09-19 10:57:54 -05001354namespace details
1355{
1356
1357template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001358struct map_exception_type<
1359 sdbusplus::org::open_power::Witherspoon::Fault::Error::GPUPowerFault>
Matt Spinler7b14db22017-09-19 10:57:54 -05001360{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001361 using type = org::open_power::Witherspoon::Fault::GPUPowerFault;
Matt Spinler7b14db22017-09-19 10:57:54 -05001362};
1363
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001364} // namespace details
Matt Spinler7b14db22017-09-19 10:57:54 -05001365
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001366namespace org
Matt Spinler7b14db22017-09-19 10:57:54 -05001367{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001368namespace open_power
Matt Spinler7b14db22017-09-19 10:57:54 -05001369{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001370namespace Witherspoon
Matt Spinler7b14db22017-09-19 10:57:54 -05001371{
1372namespace Fault
1373{
1374namespace _GPUOverTemp
1375{
1376
1377struct RAW_STATUS
1378{
Brandon Wyman03c19db2019-05-10 17:46:41 -05001379 /*
1380 * We can't use -fsanitize=undefined if we declare a
1381 * 'static constexpr auto str' member, so don't. Instead, open-code the
1382 * mako template lookups.
1383 */
Matt Spinler7b14db22017-09-19 10:57:54 -05001384 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -05001385 using type =
1386 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
1387 explicit constexpr RAW_STATUS(const char* a) :
1388 _entry(entry("RAW_STATUS=%s", a)){};
Matt Spinler7b14db22017-09-19 10:57:54 -05001389 type _entry;
1390};
Matt Spinler7b14db22017-09-19 10:57:54 -05001391
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001392} // namespace _GPUOverTemp
Matt Spinler7b14db22017-09-19 10:57:54 -05001393
1394struct GPUOverTemp
1395{
1396 static constexpr auto L = level::ERR;
1397 using RAW_STATUS = _GPUOverTemp::RAW_STATUS;
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001398 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
1399 Inventory::CALLOUT_INVENTORY_PATH;
Matt Spinler0e45ced2018-02-12 14:36:07 -06001400 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Matt Spinler7b14db22017-09-19 10:57:54 -05001401};
1402
1403} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001404} // namespace Witherspoon
1405} // namespace open_power
1406} // namespace org
Matt Spinler7b14db22017-09-19 10:57:54 -05001407
Matt Spinler7b14db22017-09-19 10:57:54 -05001408namespace details
1409{
1410
1411template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001412struct map_exception_type<
1413 sdbusplus::org::open_power::Witherspoon::Fault::Error::GPUOverTemp>
Matt Spinler7b14db22017-09-19 10:57:54 -05001414{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001415 using type = org::open_power::Witherspoon::Fault::GPUOverTemp;
Matt Spinler7b14db22017-09-19 10:57:54 -05001416};
1417
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001418} // namespace details
Matt Spinler84cd0a52017-08-04 08:53:30 -05001419
Brandon Wyman03c19db2019-05-10 17:46:41 -05001420namespace org
1421{
1422namespace open_power
1423{
1424namespace Witherspoon
1425{
1426namespace Fault
1427{
1428namespace _MemoryPowerFault
1429{
1430
1431struct RAW_STATUS
1432{
1433 /*
1434 * We can't use -fsanitize=undefined if we declare a
1435 * 'static constexpr auto str' member, so don't. Instead, open-code the
1436 * mako template lookups.
1437 */
1438 static constexpr auto str_short = "RAW_STATUS";
1439 using type =
1440 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
1441 explicit constexpr RAW_STATUS(const char* a) :
1442 _entry(entry("RAW_STATUS=%s", a)){};
1443 type _entry;
1444};
1445
1446} // namespace _MemoryPowerFault
1447
1448struct MemoryPowerFault
1449{
1450 static constexpr auto L = level::ERR;
1451 using RAW_STATUS = _MemoryPowerFault::RAW_STATUS;
1452 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
1453 Inventory::CALLOUT_INVENTORY_PATH;
1454 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
1455};
1456
1457} // namespace Fault
1458} // namespace Witherspoon
1459} // namespace open_power
1460} // namespace org
1461
1462namespace details
1463{
1464
1465template <>
1466struct map_exception_type<
1467 sdbusplus::org::open_power::Witherspoon::Fault::Error::MemoryPowerFault>
1468{
1469 using type = org::open_power::Witherspoon::Fault::MemoryPowerFault;
1470};
1471
1472} // namespace details
1473
Matt Spinler84cd0a52017-08-04 08:53:30 -05001474} // namespace logging
1475
1476} // namespace phosphor