blob: 187e3deb42eae9788a30050608fa5934a001945b [file] [log] [blame]
Matt Spinler84cd0a52017-08-04 08:53:30 -05001// This file was autogenerated. Do not edit!
2// See elog-gen.py for more details
3#pragma once
4
Matt Spinlerf0f02b92018-10-25 16:12:43 -05005#include <phosphor-logging/elog.hpp>
6#include <phosphor-logging/log.hpp>
7#include <sdbusplus/exception.hpp>
Brandon Wymand1bc4ce2019-12-13 14:20:34 -06008
Matt Spinler84cd0a52017-08-04 08:53:30 -05009#include <string>
10#include <tuple>
11#include <type_traits>
Matt Spinler84cd0a52017-08-04 08:53:30 -050012
13namespace sdbusplus
14{
Brandon Wymane0eb45c2017-10-06 12:58:42 -050015namespace org
Matt Spinler84cd0a52017-08-04 08:53:30 -050016{
Brandon Wymane0eb45c2017-10-06 12:58:42 -050017namespace open_power
Matt Spinler84cd0a52017-08-04 08:53:30 -050018{
Brandon Wymane0eb45c2017-10-06 12:58:42 -050019namespace Witherspoon
Matt Spinler84cd0a52017-08-04 08:53:30 -050020{
21namespace Fault
22{
23namespace Error
24{
Matt Spinlerf0f02b92018-10-25 16:12:43 -050025struct PowerSequencerPGOODFault;
Matt Spinlerfacfa902017-08-14 13:43:36 -050026} // namespace Error
27} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -050028} // namespace Witherspoon
29} // namespace open_power
30} // namespace org
Matt Spinler7b14db22017-09-19 10:57:54 -050031} // namespace sdbusplus
32
33namespace sdbusplus
34{
Brandon Wyman03c19db2019-05-10 17:46:41 -050035namespace org
36{
37namespace open_power
38{
39namespace Witherspoon
40{
41namespace Fault
42{
43namespace Error
44{
45struct MemoryPowerFault;
46} // namespace Error
47} // namespace Fault
48} // namespace Witherspoon
49} // namespace open_power
50} // namespace org
51} // namespace sdbusplus
52
53namespace sdbusplus
54{
Matt Spinler7b14db22017-09-19 10:57:54 -050055namespace xyz
56{
57namespace openbmc_project
58{
Brandon Wyman442035f2017-08-08 15:58:45 -050059namespace Common
60{
61namespace Callout
62{
63namespace Error
64{
Matt Spinlerf0f02b92018-10-25 16:12:43 -050065struct GPIO;
Brandon Wyman442035f2017-08-08 15:58:45 -050066} // namespace Error
67} // namespace Callout
68} // namespace Common
69} // namespace openbmc_project
70} // namespace xyz
71} // namespace sdbusplus
72
73namespace sdbusplus
74{
Brandon Wymane0eb45c2017-10-06 12:58:42 -050075namespace org
Brandon Wyman442035f2017-08-08 15:58:45 -050076{
Brandon Wymane0eb45c2017-10-06 12:58:42 -050077namespace open_power
Brandon Wyman442035f2017-08-08 15:58:45 -050078{
Brandon Wymane0eb45c2017-10-06 12:58:42 -050079namespace Witherspoon
Brandon Wyman875b3632017-09-13 18:46:03 -050080{
81namespace Fault
82{
83namespace Error
84{
Matt Spinlerf0f02b92018-10-25 16:12:43 -050085struct PowerOnFailure;
Brandon Wyman875b3632017-09-13 18:46:03 -050086} // namespace Error
87} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -050088} // namespace Witherspoon
89} // namespace open_power
90} // namespace org
Brandon Wyman875b3632017-09-13 18:46:03 -050091} // namespace sdbusplus
92
93namespace sdbusplus
94{
Brandon Wyman02bc0f22017-11-01 17:56:22 -050095namespace org
Brandon Wyman875b3632017-09-13 18:46:03 -050096{
Brandon Wyman02bc0f22017-11-01 17:56:22 -050097namespace open_power
Brandon Wyman875b3632017-09-13 18:46:03 -050098{
Brandon Wyman02bc0f22017-11-01 17:56:22 -050099namespace Witherspoon
Brandon Wyman442035f2017-08-08 15:58:45 -0500100{
Brandon Wyman02bc0f22017-11-01 17:56:22 -0500101namespace Fault
Brandon Wyman442035f2017-08-08 15:58:45 -0500102{
103namespace Error
104{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500105struct PowerSupplyInputFault;
Brandon Wyman442035f2017-08-08 15:58:45 -0500106} // namespace Error
Brandon Wyman02bc0f22017-11-01 17:56:22 -0500107} // namespace Fault
108} // namespace Witherspoon
109} // namespace open_power
110} // namespace org
Brandon Wyman442035f2017-08-08 15:58:45 -0500111} // namespace sdbusplus
112
113namespace sdbusplus
114{
115namespace xyz
116{
117namespace openbmc_project
118{
119namespace Common
120{
121namespace Callout
122{
123namespace Error
124{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500125struct IIC;
Brandon Wyman442035f2017-08-08 15:58:45 -0500126} // namespace Error
127} // namespace Callout
128} // namespace Common
129} // namespace openbmc_project
130} // namespace xyz
131} // namespace sdbusplus
132
133namespace sdbusplus
134{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500135namespace org
Brandon Wyman442035f2017-08-08 15:58:45 -0500136{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500137namespace open_power
Brandon Wyman442035f2017-08-08 15:58:45 -0500138{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500139namespace Witherspoon
Matt Spinler7b14db22017-09-19 10:57:54 -0500140{
141namespace Fault
142{
143namespace Error
144{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500145struct GPUPowerFault;
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500146} // namespace Error
147} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500148} // namespace Witherspoon
149} // namespace open_power
150} // namespace org
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500151} // namespace sdbusplus
152
153namespace sdbusplus
154{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500155namespace org
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500156{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500157namespace open_power
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500158{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500159namespace Witherspoon
Brandon Wyman764c7972017-08-22 17:05:36 -0500160{
161namespace Fault
162{
163namespace Error
164{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500165struct Shutdown;
Brandon Wyman764c7972017-08-22 17:05:36 -0500166} // namespace Error
167} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500168} // namespace Witherspoon
169} // namespace open_power
170} // namespace org
171} // namespace sdbusplus
172
173namespace sdbusplus
174{
Brandon Wyman02bc0f22017-11-01 17:56:22 -0500175namespace xyz
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500176{
Brandon Wyman02bc0f22017-11-01 17:56:22 -0500177namespace openbmc_project
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500178{
Brandon Wyman02bc0f22017-11-01 17:56:22 -0500179namespace Common
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500180{
Brandon Wyman02bc0f22017-11-01 17:56:22 -0500181namespace Callout
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500182{
183namespace Error
184{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500185struct Inventory;
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500186} // namespace Error
Brandon Wyman02bc0f22017-11-01 17:56:22 -0500187} // namespace Callout
188} // namespace Common
189} // namespace openbmc_project
190} // namespace xyz
Brandon Wyman764c7972017-08-22 17:05:36 -0500191} // namespace sdbusplus
192
193namespace sdbusplus
194{
195namespace xyz
196{
197namespace openbmc_project
198{
Brandon Wyman442035f2017-08-08 15:58:45 -0500199namespace Common
200{
201namespace Callout
202{
203namespace Error
204{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500205struct Device;
Brandon Wyman442035f2017-08-08 15:58:45 -0500206} // namespace Error
207} // namespace Callout
208} // namespace Common
209} // namespace openbmc_project
210} // namespace xyz
211} // namespace sdbusplus
212
213namespace sdbusplus
214{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500215namespace org
Brandon Wyman442035f2017-08-08 15:58:45 -0500216{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500217namespace open_power
Brandon Wyman442035f2017-08-08 15:58:45 -0500218{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500219namespace Witherspoon
Brandon Wyman442035f2017-08-08 15:58:45 -0500220{
221namespace Fault
222{
223namespace Error
224{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500225struct PowerSequencerFault;
Brandon Wyman442035f2017-08-08 15:58:45 -0500226} // namespace Error
227} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500228} // namespace Witherspoon
229} // namespace open_power
230} // namespace org
Brandon Wyman442035f2017-08-08 15:58:45 -0500231} // namespace sdbusplus
232
233namespace sdbusplus
234{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500235namespace org
Brandon Wyman442035f2017-08-08 15:58:45 -0500236{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500237namespace open_power
Brandon Wyman442035f2017-08-08 15:58:45 -0500238{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500239namespace Witherspoon
Brandon Wymanab05c072017-08-30 18:26:41 -0500240{
241namespace Fault
242{
243namespace Error
244{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500245struct PowerSupplyOutputOvercurrent;
Brandon Wymanb165c252017-08-25 18:59:54 -0500246} // namespace Error
247} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500248} // namespace Witherspoon
249} // namespace open_power
250} // namespace org
Brandon Wymanb165c252017-08-25 18:59:54 -0500251} // namespace sdbusplus
252
253namespace sdbusplus
254{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500255namespace org
Brandon Wymanb165c252017-08-25 18:59:54 -0500256{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500257namespace open_power
Brandon Wymanb165c252017-08-25 18:59:54 -0500258{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500259namespace Witherspoon
Brandon Wymanb165c252017-08-25 18:59:54 -0500260{
261namespace Fault
262{
263namespace Error
264{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500265struct PowerSupplyOutputOvervoltage;
Matt Spinler7b14db22017-09-19 10:57:54 -0500266} // namespace Error
267} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500268} // namespace Witherspoon
269} // namespace open_power
270} // namespace org
271} // namespace sdbusplus
272
273namespace sdbusplus
274{
275namespace org
276{
277namespace open_power
278{
279namespace Witherspoon
280{
281namespace Fault
282{
283namespace Error
284{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500285struct PowerSupplyFanFault;
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500286} // namespace Error
287} // namespace Fault
288} // namespace Witherspoon
289} // namespace open_power
290} // namespace org
291} // namespace sdbusplus
292
293namespace sdbusplus
294{
295namespace org
296{
297namespace open_power
298{
299namespace Witherspoon
300{
301namespace Fault
302{
303namespace Error
304{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500305struct PowerSequencerVoltageFault;
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500306} // namespace Error
307} // namespace Fault
308} // namespace Witherspoon
309} // namespace open_power
310} // namespace org
311} // namespace sdbusplus
312
313namespace sdbusplus
314{
Matt Spinler7b14db22017-09-19 10:57:54 -0500315namespace xyz
316{
317namespace openbmc_project
318{
Brandon Wyman442035f2017-08-08 15:58:45 -0500319namespace Common
320{
321namespace Callout
322{
323namespace Error
324{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500325struct IPMISensor;
Brandon Wyman442035f2017-08-08 15:58:45 -0500326} // namespace Error
327} // namespace Callout
328} // namespace Common
329} // namespace openbmc_project
330} // namespace xyz
331} // namespace sdbusplus
332
333namespace sdbusplus
334{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500335namespace org
Brandon Wyman442035f2017-08-08 15:58:45 -0500336{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500337namespace open_power
Brandon Wyman442035f2017-08-08 15:58:45 -0500338{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500339namespace Witherspoon
Matt Spinler7b14db22017-09-19 10:57:54 -0500340{
341namespace Fault
342{
343namespace Error
344{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500345struct PowerSupplyTemperatureFault;
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500346} // namespace Error
347} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500348} // namespace Witherspoon
349} // namespace open_power
350} // namespace org
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500351} // namespace sdbusplus
352
353namespace sdbusplus
354{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500355namespace org
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500356{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500357namespace open_power
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500358{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500359namespace Witherspoon
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500360{
361namespace Fault
362{
363namespace Error
364{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500365struct PowerSupplyShouldBeOn;
Matt Spinler84cd0a52017-08-04 08:53:30 -0500366} // namespace Error
367} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500368} // namespace Witherspoon
369} // namespace open_power
370} // namespace org
371} // namespace sdbusplus
372
373namespace sdbusplus
374{
375namespace org
376{
377namespace open_power
378{
379namespace Witherspoon
380{
381namespace Fault
382{
383namespace Error
384{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500385struct GPUOverTemp;
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500386} // namespace Error
387} // namespace Fault
388} // namespace Witherspoon
389} // namespace open_power
390} // namespace org
Matt Spinler84cd0a52017-08-04 08:53:30 -0500391} // namespace sdbusplus
392
Matt Spinler84cd0a52017-08-04 08:53:30 -0500393namespace phosphor
394{
395
396namespace logging
397{
398
399namespace xyz
400{
401namespace openbmc_project
402{
Brandon Wyman442035f2017-08-08 15:58:45 -0500403namespace Common
404{
405namespace Callout
406{
407namespace _Device
408{
409
410struct CALLOUT_ERRNO
411{
Brandon Wyman03c19db2019-05-10 17:46:41 -0500412 /*
413 * We can't use -fsanitize=undefined if we declare a
414 * 'static constexpr auto str' member, so don't. Instead, open-code the
415 * mako template lookups.
416 */
Brandon Wyman442035f2017-08-08 15:58:45 -0500417 static constexpr auto str_short = "CALLOUT_ERRNO";
Brandon Wyman03c19db2019-05-10 17:46:41 -0500418 using type =
419 std::tuple<std::decay_t<decltype("CALLOUT_ERRNO=%d")>, int32_t>;
420 explicit constexpr CALLOUT_ERRNO(int32_t a) :
421 _entry(entry("CALLOUT_ERRNO=%d", a)){};
Brandon Wyman442035f2017-08-08 15:58:45 -0500422 type _entry;
423};
424struct CALLOUT_DEVICE_PATH
425{
Brandon Wyman03c19db2019-05-10 17:46:41 -0500426 /*
427 * We can't use -fsanitize=undefined if we declare a
428 * 'static constexpr auto str' member, so don't. Instead, open-code the
429 * mako template lookups.
430 */
Brandon Wyman442035f2017-08-08 15:58:45 -0500431 static constexpr auto str_short = "CALLOUT_DEVICE_PATH";
Brandon Wyman03c19db2019-05-10 17:46:41 -0500432 using type = std::tuple<std::decay_t<decltype("CALLOUT_DEVICE_PATH=%s")>,
433 const char*>;
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500434 explicit constexpr CALLOUT_DEVICE_PATH(const char* a) :
Brandon Wyman03c19db2019-05-10 17:46:41 -0500435 _entry(entry("CALLOUT_DEVICE_PATH=%s", a)){};
Brandon Wyman442035f2017-08-08 15:58:45 -0500436 type _entry;
437};
438
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500439} // namespace _Device
Brandon Wyman442035f2017-08-08 15:58:45 -0500440
441struct Device
442{
443 static constexpr auto L = level::ERR;
444 using CALLOUT_ERRNO = _Device::CALLOUT_ERRNO;
445 using CALLOUT_DEVICE_PATH = _Device::CALLOUT_DEVICE_PATH;
446 using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
Brandon Wyman442035f2017-08-08 15:58:45 -0500447};
448
449} // namespace Callout
450} // namespace Common
451} // namespace openbmc_project
452} // namespace xyz
453
Brandon Wyman442035f2017-08-08 15:58:45 -0500454namespace details
455{
456
457template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500458struct map_exception_type<
459 sdbusplus::xyz::openbmc_project::Common::Callout::Error::Device>
Brandon Wyman442035f2017-08-08 15:58:45 -0500460{
461 using type = xyz::openbmc_project::Common::Callout::Device;
462};
463
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500464} // namespace details
Brandon Wyman442035f2017-08-08 15:58:45 -0500465
466namespace xyz
467{
468namespace openbmc_project
469{
470namespace Common
471{
472namespace Callout
473{
474namespace _GPIO
475{
476
477struct CALLOUT_GPIO_NUM
478{
Brandon Wyman03c19db2019-05-10 17:46:41 -0500479 /*
480 * We can't use -fsanitize=undefined if we declare a
481 * 'static constexpr auto str' member, so don't. Instead, open-code the
482 * mako template lookups.
483 */
Brandon Wyman442035f2017-08-08 15:58:45 -0500484 static constexpr auto str_short = "CALLOUT_GPIO_NUM";
Brandon Wyman03c19db2019-05-10 17:46:41 -0500485 using type =
486 std::tuple<std::decay_t<decltype("CALLOUT_GPIO_NUM=%u")>, uint32_t>;
487 explicit constexpr CALLOUT_GPIO_NUM(uint32_t a) :
488 _entry(entry("CALLOUT_GPIO_NUM=%u", a)){};
Brandon Wyman442035f2017-08-08 15:58:45 -0500489 type _entry;
490};
491
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500492} // namespace _GPIO
Brandon Wyman442035f2017-08-08 15:58:45 -0500493
494struct GPIO
495{
496 static constexpr auto L = level::ERR;
497 using CALLOUT_GPIO_NUM = _GPIO::CALLOUT_GPIO_NUM;
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500498 using CALLOUT_ERRNO =
499 xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
500 using CALLOUT_DEVICE_PATH =
501 xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
502 using metadata_types =
503 std::tuple<CALLOUT_GPIO_NUM, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
Brandon Wyman442035f2017-08-08 15:58:45 -0500504};
505
506} // namespace Callout
507} // namespace Common
508} // namespace openbmc_project
509} // namespace xyz
510
Brandon Wyman442035f2017-08-08 15:58:45 -0500511namespace details
512{
513
514template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500515struct map_exception_type<
516 sdbusplus::xyz::openbmc_project::Common::Callout::Error::GPIO>
Brandon Wyman442035f2017-08-08 15:58:45 -0500517{
518 using type = xyz::openbmc_project::Common::Callout::GPIO;
519};
520
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500521} // namespace details
Brandon Wyman442035f2017-08-08 15:58:45 -0500522
523namespace xyz
524{
525namespace openbmc_project
526{
527namespace Common
528{
529namespace Callout
530{
531namespace _IIC
532{
533
534struct CALLOUT_IIC_BUS
535{
Brandon Wyman03c19db2019-05-10 17:46:41 -0500536 /*
537 * We can't use -fsanitize=undefined if we declare a
538 * 'static constexpr auto str' member, so don't. Instead, open-code the
539 * mako template lookups.
540 */
Brandon Wyman442035f2017-08-08 15:58:45 -0500541 static constexpr auto str_short = "CALLOUT_IIC_BUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -0500542 using type =
543 std::tuple<std::decay_t<decltype("CALLOUT_IIC_BUS=%s")>, const char*>;
544 explicit constexpr CALLOUT_IIC_BUS(const char* a) :
545 _entry(entry("CALLOUT_IIC_BUS=%s", a)){};
Brandon Wyman442035f2017-08-08 15:58:45 -0500546 type _entry;
547};
548struct CALLOUT_IIC_ADDR
549{
Brandon Wyman03c19db2019-05-10 17:46:41 -0500550 /*
551 * We can't use -fsanitize=undefined if we declare a
552 * 'static constexpr auto str' member, so don't. Instead, open-code the
553 * mako template lookups.
554 */
Brandon Wyman442035f2017-08-08 15:58:45 -0500555 static constexpr auto str_short = "CALLOUT_IIC_ADDR";
Brandon Wyman03c19db2019-05-10 17:46:41 -0500556 using type =
557 std::tuple<std::decay_t<decltype("CALLOUT_IIC_ADDR=0x%hx")>, uint16_t>;
558 explicit constexpr CALLOUT_IIC_ADDR(uint16_t a) :
559 _entry(entry("CALLOUT_IIC_ADDR=0x%hx", a)){};
Brandon Wyman442035f2017-08-08 15:58:45 -0500560 type _entry;
561};
562
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500563} // namespace _IIC
Brandon Wyman442035f2017-08-08 15:58:45 -0500564
565struct IIC
566{
567 static constexpr auto L = level::ERR;
568 using CALLOUT_IIC_BUS = _IIC::CALLOUT_IIC_BUS;
569 using CALLOUT_IIC_ADDR = _IIC::CALLOUT_IIC_ADDR;
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500570 using CALLOUT_ERRNO =
571 xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
572 using CALLOUT_DEVICE_PATH =
573 xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
574 using metadata_types = std::tuple<CALLOUT_IIC_BUS, CALLOUT_IIC_ADDR,
575 CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
Brandon Wyman442035f2017-08-08 15:58:45 -0500576};
577
578} // namespace Callout
579} // namespace Common
580} // namespace openbmc_project
581} // namespace xyz
582
Brandon Wyman442035f2017-08-08 15:58:45 -0500583namespace details
584{
585
586template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500587struct map_exception_type<
588 sdbusplus::xyz::openbmc_project::Common::Callout::Error::IIC>
Brandon Wyman442035f2017-08-08 15:58:45 -0500589{
590 using type = xyz::openbmc_project::Common::Callout::IIC;
591};
592
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500593} // namespace details
Brandon Wyman442035f2017-08-08 15:58:45 -0500594
595namespace xyz
596{
597namespace openbmc_project
598{
599namespace Common
600{
601namespace Callout
602{
603namespace _Inventory
604{
605
606struct CALLOUT_INVENTORY_PATH
607{
Brandon Wyman03c19db2019-05-10 17:46:41 -0500608 /*
609 * We can't use -fsanitize=undefined if we declare a
610 * 'static constexpr auto str' member, so don't. Instead, open-code the
611 * mako template lookups.
612 */
Brandon Wyman442035f2017-08-08 15:58:45 -0500613 static constexpr auto str_short = "CALLOUT_INVENTORY_PATH";
Brandon Wyman03c19db2019-05-10 17:46:41 -0500614 using type = std::tuple<std::decay_t<decltype("CALLOUT_INVENTORY_PATH=%s")>,
615 const char*>;
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500616 explicit constexpr CALLOUT_INVENTORY_PATH(const char* a) :
Brandon Wyman03c19db2019-05-10 17:46:41 -0500617 _entry(entry("CALLOUT_INVENTORY_PATH=%s", a)){};
Brandon Wyman442035f2017-08-08 15:58:45 -0500618 type _entry;
619};
620
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500621} // namespace _Inventory
Brandon Wyman442035f2017-08-08 15:58:45 -0500622
623struct Inventory
624{
625 static constexpr auto L = level::ERR;
626 using CALLOUT_INVENTORY_PATH = _Inventory::CALLOUT_INVENTORY_PATH;
627 using metadata_types = std::tuple<CALLOUT_INVENTORY_PATH>;
Brandon Wyman442035f2017-08-08 15:58:45 -0500628};
629
630} // namespace Callout
631} // namespace Common
632} // namespace openbmc_project
633} // namespace xyz
634
Brandon Wyman442035f2017-08-08 15:58:45 -0500635namespace details
636{
637
638template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500639struct map_exception_type<
640 sdbusplus::xyz::openbmc_project::Common::Callout::Error::Inventory>
Brandon Wyman442035f2017-08-08 15:58:45 -0500641{
642 using type = xyz::openbmc_project::Common::Callout::Inventory;
643};
644
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500645} // namespace details
Brandon Wyman442035f2017-08-08 15:58:45 -0500646
647namespace xyz
648{
649namespace openbmc_project
650{
651namespace Common
652{
653namespace Callout
654{
655namespace _IPMISensor
656{
657
658struct CALLOUT_IPMI_SENSOR_NUM
659{
Brandon Wyman03c19db2019-05-10 17:46:41 -0500660 /*
661 * We can't use -fsanitize=undefined if we declare a
662 * 'static constexpr auto str' member, so don't. Instead, open-code the
663 * mako template lookups.
664 */
Brandon Wyman442035f2017-08-08 15:58:45 -0500665 static constexpr auto str_short = "CALLOUT_IPMI_SENSOR_NUM";
Brandon Wyman03c19db2019-05-10 17:46:41 -0500666 using type =
667 std::tuple<std::decay_t<decltype("CALLOUT_IPMI_SENSOR_NUM=%u")>,
668 uint32_t>;
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500669 explicit constexpr CALLOUT_IPMI_SENSOR_NUM(uint32_t a) :
Brandon Wyman03c19db2019-05-10 17:46:41 -0500670 _entry(entry("CALLOUT_IPMI_SENSOR_NUM=%u", a)){};
Brandon Wyman442035f2017-08-08 15:58:45 -0500671 type _entry;
672};
673
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500674} // namespace _IPMISensor
Brandon Wyman442035f2017-08-08 15:58:45 -0500675
676struct IPMISensor
677{
678 static constexpr auto L = level::ERR;
679 using CALLOUT_IPMI_SENSOR_NUM = _IPMISensor::CALLOUT_IPMI_SENSOR_NUM;
680 using metadata_types = std::tuple<CALLOUT_IPMI_SENSOR_NUM>;
Brandon Wyman442035f2017-08-08 15:58:45 -0500681};
682
683} // namespace Callout
684} // namespace Common
685} // namespace openbmc_project
686} // namespace xyz
687
Brandon Wyman442035f2017-08-08 15:58:45 -0500688namespace details
689{
690
691template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500692struct map_exception_type<
693 sdbusplus::xyz::openbmc_project::Common::Callout::Error::IPMISensor>
Brandon Wyman442035f2017-08-08 15:58:45 -0500694{
695 using type = xyz::openbmc_project::Common::Callout::IPMISensor;
696};
697
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500698} // namespace details
Brandon Wyman442035f2017-08-08 15:58:45 -0500699
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500700namespace org
Brandon Wyman442035f2017-08-08 15:58:45 -0500701{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500702namespace open_power
Brandon Wyman442035f2017-08-08 15:58:45 -0500703{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500704namespace Witherspoon
Brandon Wyman442035f2017-08-08 15:58:45 -0500705{
706namespace Fault
707{
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500708namespace _PowerSupplyInputFault
709{
710
711struct RAW_STATUS
712{
Brandon Wyman03c19db2019-05-10 17:46:41 -0500713 /*
714 * We can't use -fsanitize=undefined if we declare a
715 * 'static constexpr auto str' member, so don't. Instead, open-code the
716 * mako template lookups.
717 */
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500718 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -0500719 using type =
720 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
721 explicit constexpr RAW_STATUS(const char* a) :
722 _entry(entry("RAW_STATUS=%s", a)){};
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500723 type _entry;
724};
725
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500726} // namespace _PowerSupplyInputFault
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500727
728struct PowerSupplyInputFault
729{
730 static constexpr auto L = level::ERR;
731 using RAW_STATUS = _PowerSupplyInputFault::RAW_STATUS;
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500732 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
733 Inventory::CALLOUT_INVENTORY_PATH;
Brandon Wymanea358c92017-10-27 17:34:07 -0500734 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500735};
736
737} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500738} // namespace Witherspoon
739} // namespace open_power
740} // namespace org
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500741
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500742namespace details
743{
744
745template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500746struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::
747 Error::PowerSupplyInputFault>
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500748{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500749 using type = org::open_power::Witherspoon::Fault::PowerSupplyInputFault;
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500750};
751
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500752} // namespace details
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500753
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500754namespace org
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500755{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500756namespace open_power
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500757{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500758namespace Witherspoon
Brandon Wyman253dc9b2017-08-12 13:45:52 -0500759{
760namespace Fault
761{
Brandon Wyman764c7972017-08-22 17:05:36 -0500762namespace _PowerSupplyShouldBeOn
763{
764
765struct RAW_STATUS
766{
Brandon Wyman03c19db2019-05-10 17:46:41 -0500767 /*
768 * We can't use -fsanitize=undefined if we declare a
769 * 'static constexpr auto str' member, so don't. Instead, open-code the
770 * mako template lookups.
771 */
Brandon Wyman764c7972017-08-22 17:05:36 -0500772 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -0500773 using type =
774 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
775 explicit constexpr RAW_STATUS(const char* a) :
776 _entry(entry("RAW_STATUS=%s", a)){};
Brandon Wyman764c7972017-08-22 17:05:36 -0500777 type _entry;
778};
779
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500780} // namespace _PowerSupplyShouldBeOn
Brandon Wyman764c7972017-08-22 17:05:36 -0500781
782struct PowerSupplyShouldBeOn
783{
784 static constexpr auto L = level::ERR;
785 using RAW_STATUS = _PowerSupplyShouldBeOn::RAW_STATUS;
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500786 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
787 Inventory::CALLOUT_INVENTORY_PATH;
Brandon Wyman764c7972017-08-22 17:05:36 -0500788 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Brandon Wyman764c7972017-08-22 17:05:36 -0500789};
790
791} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500792} // namespace Witherspoon
793} // namespace open_power
794} // namespace org
Brandon Wyman764c7972017-08-22 17:05:36 -0500795
Brandon Wyman764c7972017-08-22 17:05:36 -0500796namespace details
797{
798
799template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500800struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::
801 Error::PowerSupplyShouldBeOn>
Brandon Wyman764c7972017-08-22 17:05:36 -0500802{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500803 using type = org::open_power::Witherspoon::Fault::PowerSupplyShouldBeOn;
Brandon Wyman764c7972017-08-22 17:05:36 -0500804};
805
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500806} // namespace details
Brandon Wyman764c7972017-08-22 17:05:36 -0500807
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500808namespace org
Brandon Wyman764c7972017-08-22 17:05:36 -0500809{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500810namespace open_power
Brandon Wyman764c7972017-08-22 17:05:36 -0500811{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500812namespace Witherspoon
Brandon Wyman764c7972017-08-22 17:05:36 -0500813{
814namespace Fault
815{
Brandon Wymanb165c252017-08-25 18:59:54 -0500816namespace _PowerSupplyOutputOvercurrent
817{
818
819struct RAW_STATUS
820{
Brandon Wyman03c19db2019-05-10 17:46:41 -0500821 /*
822 * We can't use -fsanitize=undefined if we declare a
823 * 'static constexpr auto str' member, so don't. Instead, open-code the
824 * mako template lookups.
825 */
Brandon Wymanb165c252017-08-25 18:59:54 -0500826 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -0500827 using type =
828 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
829 explicit constexpr RAW_STATUS(const char* a) :
830 _entry(entry("RAW_STATUS=%s", a)){};
Brandon Wymanb165c252017-08-25 18:59:54 -0500831 type _entry;
832};
833
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500834} // namespace _PowerSupplyOutputOvercurrent
Brandon Wymanb165c252017-08-25 18:59:54 -0500835
836struct PowerSupplyOutputOvercurrent
837{
838 static constexpr auto L = level::ERR;
839 using RAW_STATUS = _PowerSupplyOutputOvercurrent::RAW_STATUS;
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500840 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
841 Inventory::CALLOUT_INVENTORY_PATH;
Brandon Wymanb165c252017-08-25 18:59:54 -0500842 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Brandon Wymanb165c252017-08-25 18:59:54 -0500843};
844
845} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500846} // namespace Witherspoon
847} // namespace open_power
848} // namespace org
Brandon Wymanb165c252017-08-25 18:59:54 -0500849
Brandon Wymanb165c252017-08-25 18:59:54 -0500850namespace details
851{
852
853template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500854struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::
855 Error::PowerSupplyOutputOvercurrent>
Brandon Wymanb165c252017-08-25 18:59:54 -0500856{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500857 using type =
858 org::open_power::Witherspoon::Fault::PowerSupplyOutputOvercurrent;
Brandon Wymanb165c252017-08-25 18:59:54 -0500859};
860
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500861} // namespace details
Brandon Wymanb165c252017-08-25 18:59:54 -0500862
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500863namespace org
Brandon Wymanb165c252017-08-25 18:59:54 -0500864{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500865namespace open_power
Brandon Wymanb165c252017-08-25 18:59:54 -0500866{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500867namespace Witherspoon
Brandon Wymanb165c252017-08-25 18:59:54 -0500868{
869namespace Fault
870{
Brandon Wymanab05c072017-08-30 18:26:41 -0500871namespace _PowerSupplyOutputOvervoltage
872{
873
874struct RAW_STATUS
875{
Brandon Wyman03c19db2019-05-10 17:46:41 -0500876 /*
877 * We can't use -fsanitize=undefined if we declare a
878 * 'static constexpr auto str' member, so don't. Instead, open-code the
879 * mako template lookups.
880 */
Brandon Wymanab05c072017-08-30 18:26:41 -0500881 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -0500882 using type =
883 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
884 explicit constexpr RAW_STATUS(const char* a) :
885 _entry(entry("RAW_STATUS=%s", a)){};
Brandon Wymanab05c072017-08-30 18:26:41 -0500886 type _entry;
887};
888
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500889} // namespace _PowerSupplyOutputOvervoltage
Brandon Wymanab05c072017-08-30 18:26:41 -0500890
891struct PowerSupplyOutputOvervoltage
892{
893 static constexpr auto L = level::ERR;
894 using RAW_STATUS = _PowerSupplyOutputOvervoltage::RAW_STATUS;
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500895 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
896 Inventory::CALLOUT_INVENTORY_PATH;
Brandon Wymanab05c072017-08-30 18:26:41 -0500897 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Brandon Wymanab05c072017-08-30 18:26:41 -0500898};
899
900} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500901} // namespace Witherspoon
902} // namespace open_power
903} // namespace org
Brandon Wymanab05c072017-08-30 18:26:41 -0500904
Brandon Wymanab05c072017-08-30 18:26:41 -0500905namespace details
906{
907
908template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500909struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::
910 Error::PowerSupplyOutputOvervoltage>
Brandon Wymanab05c072017-08-30 18:26:41 -0500911{
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500912 using type =
913 org::open_power::Witherspoon::Fault::PowerSupplyOutputOvervoltage;
Brandon Wymanab05c072017-08-30 18:26:41 -0500914};
915
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500916} // namespace details
Brandon Wymanab05c072017-08-30 18:26:41 -0500917
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500918namespace org
Brandon Wymanab05c072017-08-30 18:26:41 -0500919{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500920namespace open_power
Brandon Wymanab05c072017-08-30 18:26:41 -0500921{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500922namespace Witherspoon
Brandon Wymanab05c072017-08-30 18:26:41 -0500923{
924namespace Fault
925{
Brandon Wyman12661f12017-08-31 15:28:21 -0500926namespace _PowerSupplyFanFault
927{
928
929struct RAW_STATUS
930{
Brandon Wyman03c19db2019-05-10 17:46:41 -0500931 /*
932 * We can't use -fsanitize=undefined if we declare a
933 * 'static constexpr auto str' member, so don't. Instead, open-code the
934 * mako template lookups.
935 */
Brandon Wyman12661f12017-08-31 15:28:21 -0500936 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -0500937 using type =
938 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
939 explicit constexpr RAW_STATUS(const char* a) :
940 _entry(entry("RAW_STATUS=%s", a)){};
Brandon Wyman12661f12017-08-31 15:28:21 -0500941 type _entry;
942};
943
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500944} // namespace _PowerSupplyFanFault
Brandon Wyman12661f12017-08-31 15:28:21 -0500945
946struct PowerSupplyFanFault
947{
948 static constexpr auto L = level::ERR;
949 using RAW_STATUS = _PowerSupplyFanFault::RAW_STATUS;
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500950 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
951 Inventory::CALLOUT_INVENTORY_PATH;
Brandon Wyman12661f12017-08-31 15:28:21 -0500952 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Brandon Wyman12661f12017-08-31 15:28:21 -0500953};
954
955} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500956} // namespace Witherspoon
957} // namespace open_power
958} // namespace org
Brandon Wyman12661f12017-08-31 15:28:21 -0500959
Brandon Wyman12661f12017-08-31 15:28:21 -0500960namespace details
961{
962
963template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500964struct map_exception_type<
965 sdbusplus::org::open_power::Witherspoon::Fault::Error::PowerSupplyFanFault>
Brandon Wyman12661f12017-08-31 15:28:21 -0500966{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500967 using type = org::open_power::Witherspoon::Fault::PowerSupplyFanFault;
Brandon Wyman12661f12017-08-31 15:28:21 -0500968};
969
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500970} // namespace details
Brandon Wyman12661f12017-08-31 15:28:21 -0500971
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500972namespace org
Brandon Wyman12661f12017-08-31 15:28:21 -0500973{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500974namespace open_power
Brandon Wyman12661f12017-08-31 15:28:21 -0500975{
Brandon Wymane0eb45c2017-10-06 12:58:42 -0500976namespace Witherspoon
Brandon Wyman12661f12017-08-31 15:28:21 -0500977{
978namespace Fault
979{
Brandon Wyman875b3632017-09-13 18:46:03 -0500980namespace _PowerSupplyTemperatureFault
981{
982
983struct RAW_STATUS
984{
Brandon Wyman03c19db2019-05-10 17:46:41 -0500985 /*
986 * We can't use -fsanitize=undefined if we declare a
987 * 'static constexpr auto str' member, so don't. Instead, open-code the
988 * mako template lookups.
989 */
Brandon Wyman875b3632017-09-13 18:46:03 -0500990 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -0500991 using type =
992 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
993 explicit constexpr RAW_STATUS(const char* a) :
994 _entry(entry("RAW_STATUS=%s", a)){};
Brandon Wyman875b3632017-09-13 18:46:03 -0500995 type _entry;
996};
997
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500998} // namespace _PowerSupplyTemperatureFault
Brandon Wyman875b3632017-09-13 18:46:03 -0500999
1000struct PowerSupplyTemperatureFault
1001{
1002 static constexpr auto L = level::ERR;
1003 using RAW_STATUS = _PowerSupplyTemperatureFault::RAW_STATUS;
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001004 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
1005 Inventory::CALLOUT_INVENTORY_PATH;
Brandon Wyman875b3632017-09-13 18:46:03 -05001006 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Brandon Wyman875b3632017-09-13 18:46:03 -05001007};
1008
1009} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001010} // namespace Witherspoon
1011} // namespace open_power
1012} // namespace org
Brandon Wyman875b3632017-09-13 18:46:03 -05001013
Brandon Wyman875b3632017-09-13 18:46:03 -05001014namespace details
1015{
1016
1017template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001018struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::
1019 Error::PowerSupplyTemperatureFault>
Brandon Wyman875b3632017-09-13 18:46:03 -05001020{
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001021 using type =
1022 org::open_power::Witherspoon::Fault::PowerSupplyTemperatureFault;
Brandon Wyman875b3632017-09-13 18:46:03 -05001023};
1024
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001025} // namespace details
Brandon Wyman875b3632017-09-13 18:46:03 -05001026
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001027namespace org
Brandon Wyman875b3632017-09-13 18:46:03 -05001028{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001029namespace open_power
Brandon Wyman875b3632017-09-13 18:46:03 -05001030{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001031namespace Witherspoon
Brandon Wyman875b3632017-09-13 18:46:03 -05001032{
1033namespace Fault
1034{
Matt Spinler84cd0a52017-08-04 08:53:30 -05001035namespace _Shutdown
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{
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001072} // namespace _PowerOnFailure
Matt Spinlerfacfa902017-08-14 13:43:36 -05001073
1074struct PowerOnFailure
1075{
1076 static constexpr auto L = level::ERR;
1077 using metadata_types = std::tuple<>;
Matt Spinlerfacfa902017-08-14 13:43:36 -05001078};
1079
1080} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001081} // namespace Witherspoon
1082} // namespace open_power
1083} // namespace org
Matt Spinlerfacfa902017-08-14 13:43:36 -05001084
Matt Spinlerfacfa902017-08-14 13:43:36 -05001085namespace details
1086{
1087
1088template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001089struct map_exception_type<
1090 sdbusplus::org::open_power::Witherspoon::Fault::Error::PowerOnFailure>
Matt Spinlerfacfa902017-08-14 13:43:36 -05001091{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001092 using type = org::open_power::Witherspoon::Fault::PowerOnFailure;
Matt Spinlerfacfa902017-08-14 13:43:36 -05001093};
1094
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001095} // namespace details
Matt Spinlerfacfa902017-08-14 13:43:36 -05001096
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001097namespace org
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001098{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001099namespace open_power
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001100{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001101namespace Witherspoon
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001102{
1103namespace Fault
1104{
1105namespace _PowerSequencerVoltageFault
1106{
1107
1108struct RAIL
1109{
Brandon Wyman03c19db2019-05-10 17:46:41 -05001110 /*
1111 * We can't use -fsanitize=undefined if we declare a
1112 * 'static constexpr auto str' member, so don't. Instead, open-code the
1113 * mako template lookups.
1114 */
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001115 static constexpr auto str_short = "RAIL";
Brandon Wyman03c19db2019-05-10 17:46:41 -05001116 using type = std::tuple<std::decay_t<decltype("RAIL=%d")>, uint16_t>;
1117 explicit constexpr RAIL(uint16_t a) : _entry(entry("RAIL=%d", a)){};
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001118 type _entry;
1119};
1120struct RAIL_NAME
1121{
Brandon Wyman03c19db2019-05-10 17:46:41 -05001122 /*
1123 * We can't use -fsanitize=undefined if we declare a
1124 * 'static constexpr auto str' member, so don't. Instead, open-code the
1125 * mako template lookups.
1126 */
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001127 static constexpr auto str_short = "RAIL_NAME";
Brandon Wyman03c19db2019-05-10 17:46:41 -05001128 using type =
1129 std::tuple<std::decay_t<decltype("RAIL_NAME=%s")>, const char*>;
1130 explicit constexpr RAIL_NAME(const char* a) :
1131 _entry(entry("RAIL_NAME=%s", a)){};
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001132 type _entry;
1133};
1134struct RAW_STATUS
1135{
Brandon Wyman03c19db2019-05-10 17:46:41 -05001136 /*
1137 * We can't use -fsanitize=undefined if we declare a
1138 * 'static constexpr auto str' member, so don't. Instead, open-code the
1139 * mako template lookups.
1140 */
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001141 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -05001142 using type =
1143 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
1144 explicit constexpr RAW_STATUS(const char* a) :
1145 _entry(entry("RAW_STATUS=%s", a)){};
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001146 type _entry;
1147};
1148
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001149} // namespace _PowerSequencerVoltageFault
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001150
1151struct PowerSequencerVoltageFault
1152{
1153 static constexpr auto L = level::ERR;
1154 using RAIL = _PowerSequencerVoltageFault::RAIL;
1155 using RAIL_NAME = _PowerSequencerVoltageFault::RAIL_NAME;
1156 using RAW_STATUS = _PowerSequencerVoltageFault::RAW_STATUS;
1157 using metadata_types = std::tuple<RAIL, RAIL_NAME, 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<sdbusplus::org::open_power::Witherspoon::Fault::
1170 Error::PowerSequencerVoltageFault>
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001171{
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001172 using type =
1173 org::open_power::Witherspoon::Fault::PowerSequencerVoltageFault;
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001174};
1175
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001176} // namespace details
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001177
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001178namespace org
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001179{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001180namespace open_power
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001181{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001182namespace Witherspoon
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001183{
1184namespace Fault
1185{
1186namespace _PowerSequencerPGOODFault
1187{
1188
1189struct INPUT_NUM
1190{
Brandon Wyman03c19db2019-05-10 17:46:41 -05001191 /*
1192 * We can't use -fsanitize=undefined if we declare a
1193 * 'static constexpr auto str' member, so don't. Instead, open-code the
1194 * mako template lookups.
1195 */
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001196 static constexpr auto str_short = "INPUT_NUM";
Brandon Wyman03c19db2019-05-10 17:46:41 -05001197 using type = std::tuple<std::decay_t<decltype("INPUT_NUM=%d")>, uint16_t>;
1198 explicit constexpr INPUT_NUM(uint16_t a) :
1199 _entry(entry("INPUT_NUM=%d", a)){};
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001200 type _entry;
1201};
1202struct INPUT_NAME
1203{
Brandon Wyman03c19db2019-05-10 17:46:41 -05001204 /*
1205 * We can't use -fsanitize=undefined if we declare a
1206 * 'static constexpr auto str' member, so don't. Instead, open-code the
1207 * mako template lookups.
1208 */
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001209 static constexpr auto str_short = "INPUT_NAME";
Brandon Wyman03c19db2019-05-10 17:46:41 -05001210 using type =
1211 std::tuple<std::decay_t<decltype("INPUT_NAME=%s")>, const char*>;
1212 explicit constexpr INPUT_NAME(const char* a) :
1213 _entry(entry("INPUT_NAME=%s", a)){};
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001214 type _entry;
1215};
1216struct RAW_STATUS
1217{
Brandon Wyman03c19db2019-05-10 17:46:41 -05001218 /*
1219 * We can't use -fsanitize=undefined if we declare a
1220 * 'static constexpr auto str' member, so don't. Instead, open-code the
1221 * mako template lookups.
1222 */
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001223 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -05001224 using type =
1225 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
1226 explicit constexpr RAW_STATUS(const char* a) :
1227 _entry(entry("RAW_STATUS=%s", a)){};
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001228 type _entry;
1229};
1230
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001231} // namespace _PowerSequencerPGOODFault
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001232
1233struct PowerSequencerPGOODFault
1234{
1235 static constexpr auto L = level::ERR;
1236 using INPUT_NUM = _PowerSequencerPGOODFault::INPUT_NUM;
1237 using INPUT_NAME = _PowerSequencerPGOODFault::INPUT_NAME;
1238 using RAW_STATUS = _PowerSequencerPGOODFault::RAW_STATUS;
1239 using metadata_types = std::tuple<INPUT_NUM, INPUT_NAME, RAW_STATUS>;
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001240};
1241
1242} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001243} // namespace Witherspoon
1244} // namespace open_power
1245} // namespace org
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001246
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001247namespace details
1248{
1249
1250template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001251struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::
1252 Error::PowerSequencerPGOODFault>
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001253{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001254 using type = org::open_power::Witherspoon::Fault::PowerSequencerPGOODFault;
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001255};
1256
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001257} // namespace details
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001258
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001259namespace org
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001260{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001261namespace open_power
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001262{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001263namespace Witherspoon
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001264{
1265namespace Fault
1266{
1267namespace _PowerSequencerFault
1268{
1269
1270struct RAW_STATUS
1271{
Brandon Wyman03c19db2019-05-10 17:46:41 -05001272 /*
1273 * We can't use -fsanitize=undefined if we declare a
1274 * 'static constexpr auto str' member, so don't. Instead, open-code the
1275 * mako template lookups.
1276 */
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001277 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -05001278 using type =
1279 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
1280 explicit constexpr RAW_STATUS(const char* a) :
1281 _entry(entry("RAW_STATUS=%s", a)){};
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001282 type _entry;
1283};
1284
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001285} // namespace _PowerSequencerFault
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001286
1287struct PowerSequencerFault
1288{
1289 static constexpr auto L = level::ERR;
1290 using RAW_STATUS = _PowerSequencerFault::RAW_STATUS;
1291 using metadata_types = std::tuple<RAW_STATUS>;
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001292};
1293
1294} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001295} // namespace Witherspoon
1296} // namespace open_power
1297} // namespace org
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001298
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001299namespace details
1300{
1301
1302template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001303struct map_exception_type<
1304 sdbusplus::org::open_power::Witherspoon::Fault::Error::PowerSequencerFault>
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001305{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001306 using type = org::open_power::Witherspoon::Fault::PowerSequencerFault;
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001307};
1308
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001309} // namespace details
Matt Spinlerac4b52f2017-08-21 14:50:58 -05001310
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001311namespace org
Matt Spinler7b14db22017-09-19 10:57:54 -05001312{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001313namespace open_power
Matt Spinler7b14db22017-09-19 10:57:54 -05001314{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001315namespace Witherspoon
Matt Spinler7b14db22017-09-19 10:57:54 -05001316{
1317namespace Fault
1318{
1319namespace _GPUPowerFault
1320{
1321
1322struct RAW_STATUS
1323{
Brandon Wyman03c19db2019-05-10 17:46:41 -05001324 /*
1325 * We can't use -fsanitize=undefined if we declare a
1326 * 'static constexpr auto str' member, so don't. Instead, open-code the
1327 * mako template lookups.
1328 */
Matt Spinler7b14db22017-09-19 10:57:54 -05001329 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -05001330 using type =
1331 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
1332 explicit constexpr RAW_STATUS(const char* a) :
1333 _entry(entry("RAW_STATUS=%s", a)){};
Matt Spinler7b14db22017-09-19 10:57:54 -05001334 type _entry;
1335};
Matt Spinler7b14db22017-09-19 10:57:54 -05001336
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001337} // namespace _GPUPowerFault
Matt Spinler7b14db22017-09-19 10:57:54 -05001338
1339struct GPUPowerFault
1340{
1341 static constexpr auto L = level::ERR;
1342 using RAW_STATUS = _GPUPowerFault::RAW_STATUS;
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001343 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
1344 Inventory::CALLOUT_INVENTORY_PATH;
Matt Spinler0e45ced2018-02-12 14:36:07 -06001345 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Matt Spinler7b14db22017-09-19 10:57:54 -05001346};
1347
1348} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001349} // namespace Witherspoon
1350} // namespace open_power
1351} // namespace org
Matt Spinler7b14db22017-09-19 10:57:54 -05001352
Matt Spinler7b14db22017-09-19 10:57:54 -05001353namespace details
1354{
1355
1356template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001357struct map_exception_type<
1358 sdbusplus::org::open_power::Witherspoon::Fault::Error::GPUPowerFault>
Matt Spinler7b14db22017-09-19 10:57:54 -05001359{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001360 using type = org::open_power::Witherspoon::Fault::GPUPowerFault;
Matt Spinler7b14db22017-09-19 10:57:54 -05001361};
1362
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001363} // namespace details
Matt Spinler7b14db22017-09-19 10:57:54 -05001364
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001365namespace org
Matt Spinler7b14db22017-09-19 10:57:54 -05001366{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001367namespace open_power
Matt Spinler7b14db22017-09-19 10:57:54 -05001368{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001369namespace Witherspoon
Matt Spinler7b14db22017-09-19 10:57:54 -05001370{
1371namespace Fault
1372{
1373namespace _GPUOverTemp
1374{
1375
1376struct RAW_STATUS
1377{
Brandon Wyman03c19db2019-05-10 17:46:41 -05001378 /*
1379 * We can't use -fsanitize=undefined if we declare a
1380 * 'static constexpr auto str' member, so don't. Instead, open-code the
1381 * mako template lookups.
1382 */
Matt Spinler7b14db22017-09-19 10:57:54 -05001383 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -05001384 using type =
1385 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
1386 explicit constexpr RAW_STATUS(const char* a) :
1387 _entry(entry("RAW_STATUS=%s", a)){};
Matt Spinler7b14db22017-09-19 10:57:54 -05001388 type _entry;
1389};
Matt Spinler7b14db22017-09-19 10:57:54 -05001390
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001391} // namespace _GPUOverTemp
Matt Spinler7b14db22017-09-19 10:57:54 -05001392
1393struct GPUOverTemp
1394{
1395 static constexpr auto L = level::ERR;
1396 using RAW_STATUS = _GPUOverTemp::RAW_STATUS;
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001397 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
1398 Inventory::CALLOUT_INVENTORY_PATH;
Matt Spinler0e45ced2018-02-12 14:36:07 -06001399 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Matt Spinler7b14db22017-09-19 10:57:54 -05001400};
1401
1402} // namespace Fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001403} // namespace Witherspoon
1404} // namespace open_power
1405} // namespace org
Matt Spinler7b14db22017-09-19 10:57:54 -05001406
Matt Spinler7b14db22017-09-19 10:57:54 -05001407namespace details
1408{
1409
1410template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001411struct map_exception_type<
1412 sdbusplus::org::open_power::Witherspoon::Fault::Error::GPUOverTemp>
Matt Spinler7b14db22017-09-19 10:57:54 -05001413{
Brandon Wymane0eb45c2017-10-06 12:58:42 -05001414 using type = org::open_power::Witherspoon::Fault::GPUOverTemp;
Matt Spinler7b14db22017-09-19 10:57:54 -05001415};
1416
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001417} // namespace details
Matt Spinler84cd0a52017-08-04 08:53:30 -05001418
Brandon Wyman03c19db2019-05-10 17:46:41 -05001419namespace org
1420{
1421namespace open_power
1422{
1423namespace Witherspoon
1424{
1425namespace Fault
1426{
1427namespace _MemoryPowerFault
1428{
1429
1430struct RAW_STATUS
1431{
1432 /*
1433 * We can't use -fsanitize=undefined if we declare a
1434 * 'static constexpr auto str' member, so don't. Instead, open-code the
1435 * mako template lookups.
1436 */
1437 static constexpr auto str_short = "RAW_STATUS";
1438 using type =
1439 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
1440 explicit constexpr RAW_STATUS(const char* a) :
1441 _entry(entry("RAW_STATUS=%s", a)){};
1442 type _entry;
1443};
1444
1445} // namespace _MemoryPowerFault
1446
1447struct MemoryPowerFault
1448{
1449 static constexpr auto L = level::ERR;
1450 using RAW_STATUS = _MemoryPowerFault::RAW_STATUS;
1451 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
1452 Inventory::CALLOUT_INVENTORY_PATH;
1453 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
1454};
1455
1456} // namespace Fault
1457} // namespace Witherspoon
1458} // namespace open_power
1459} // namespace org
1460
1461namespace details
1462{
1463
1464template <>
1465struct map_exception_type<
1466 sdbusplus::org::open_power::Witherspoon::Fault::Error::MemoryPowerFault>
1467{
1468 using type = org::open_power::Witherspoon::Fault::MemoryPowerFault;
1469};
1470
1471} // namespace details
1472
Matt Spinler84cd0a52017-08-04 08:53:30 -05001473} // namespace logging
1474
1475} // namespace phosphor