blob: 3dfb09ab85b2aa6c24621796437295c8ba780647 [file] [log] [blame]
Tom Joseph56c534b2017-10-17 12:38:42 +05301// This file was autogenerated. Do not edit!
2// See elog-gen.py for more details
3#pragma once
4
Patrick Venture02261c02018-10-31 15:16:23 -07005#include <phosphor-logging/elog.hpp>
6#include <phosphor-logging/log.hpp>
7#include <sdbusplus/exception.hpp>
Patrick Williams490126f2023-05-10 07:50:22 -05008
Tom Joseph56c534b2017-10-17 12:38:42 +05309#include <string>
10#include <tuple>
11#include <type_traits>
Tom Joseph56c534b2017-10-17 12:38:42 +053012
13namespace sdbusplus
14{
Tom Joseph3503fdc2019-01-10 11:25:27 +053015namespace xyz
16{
17namespace openbmc_project
18{
19namespace Common
20{
21namespace Callout
22{
23namespace Error
24{
25struct GPIO;
26} // namespace Error
27} // namespace Callout
28} // namespace Common
29} // namespace openbmc_project
30} // namespace xyz
31} // namespace sdbusplus
32
33namespace sdbusplus
34{
35namespace org
36{
37namespace open_power
38{
39namespace Common
40{
41namespace Callout
42{
43namespace Error
44{
45struct Procedure;
46} // namespace Error
47} // namespace Callout
48} // namespace Common
49} // namespace open_power
50} // namespace org
51} // namespace sdbusplus
52
53namespace sdbusplus
54{
55namespace xyz
56{
57namespace openbmc_project
58{
59namespace Common
60{
61namespace Callout
62{
63namespace Error
64{
65struct Inventory;
66} // namespace Error
67} // namespace Callout
68} // namespace Common
69} // namespace openbmc_project
70} // namespace xyz
71} // namespace sdbusplus
72
73namespace sdbusplus
74{
75namespace xyz
76{
77namespace openbmc_project
78{
79namespace Common
80{
81namespace Callout
82{
83namespace Error
84{
85struct IIC;
86} // namespace Error
87} // namespace Callout
88} // namespace Common
89} // namespace openbmc_project
90} // namespace xyz
91} // namespace sdbusplus
92
93namespace sdbusplus
94{
Tom Joseph56c534b2017-10-17 12:38:42 +053095namespace org
96{
97namespace open_power
98{
99namespace OCC
100{
101namespace Metrics
102{
103namespace Error
104{
Patrick Venture02261c02018-10-31 15:16:23 -0700105struct Event;
Tom Joseph56c534b2017-10-17 12:38:42 +0530106} // namespace Error
107} // namespace Metrics
108} // namespace OCC
109} // namespace open_power
110} // namespace org
111} // namespace sdbusplus
112
Tom Joseph3503fdc2019-01-10 11:25:27 +0530113namespace sdbusplus
114{
115namespace xyz
116{
117namespace openbmc_project
118{
119namespace Common
120{
121namespace Callout
122{
123namespace Error
124{
125struct Device;
126} // namespace Error
127} // namespace Callout
128} // namespace Common
129} // namespace openbmc_project
130} // namespace xyz
131} // namespace sdbusplus
132
133namespace sdbusplus
134{
135namespace org
136{
137namespace open_power
138{
139namespace Host
140{
141namespace Error
142{
143struct MaintenanceProcedure;
144} // namespace Error
145} // namespace Host
146} // namespace open_power
147} // namespace org
148} // namespace sdbusplus
149
150namespace sdbusplus
151{
152namespace org
153{
154namespace open_power
155{
156namespace Host
157{
158namespace Error
159{
160struct Event;
161} // namespace Error
162} // namespace Host
163} // namespace open_power
164} // namespace org
165} // namespace sdbusplus
166
167namespace sdbusplus
168{
169namespace xyz
170{
171namespace openbmc_project
172{
173namespace Common
174{
175namespace Callout
176{
177namespace Error
178{
179struct IPMISensor;
180} // namespace Error
181} // namespace Callout
182} // namespace Common
183} // namespace openbmc_project
184} // namespace xyz
185} // namespace sdbusplus
186
Tom Joseph56c534b2017-10-17 12:38:42 +0530187namespace phosphor
188{
189
190namespace logging
191{
192
193namespace org
194{
195namespace open_power
196{
Tom Joseph3503fdc2019-01-10 11:25:27 +0530197namespace Common
198{
199namespace Callout
200{
201namespace _Procedure
202{
203
204struct PROCEDURE
205{
206 /*
207 * We can't use -fsanitize=undefined if we declare a
208 * 'static constexpr auto str' member, so don't. Instead, open-code the
209 * mako template lookups.
210 */
211 static constexpr auto str_short = "PROCEDURE";
212 using type = std::tuple<std::decay_t<decltype("PROCEDURE=%u")>, uint32_t>;
213 explicit constexpr PROCEDURE(uint32_t a) :
214 _entry(entry("PROCEDURE=%u", a)){};
215 type _entry;
216};
217
218} // namespace _Procedure
219
220struct Procedure
221{
222 static constexpr auto L = level::ERR;
223 using PROCEDURE = _Procedure::PROCEDURE;
224 using metadata_types = std::tuple<PROCEDURE>;
225};
226
227} // namespace Callout
228} // namespace Common
229} // namespace open_power
230} // namespace org
231
232namespace details
233{
234
235template <>
236struct map_exception_type<
237 sdbusplus::org::open_power::Common::Callout::Error::Procedure>
238{
239 using type = org::open_power::Common::Callout::Procedure;
240};
241
242} // namespace details
243
244namespace org
245{
246namespace open_power
247{
Tom Joseph56c534b2017-10-17 12:38:42 +0530248namespace OCC
249{
250namespace Metrics
251{
252namespace _Event
253{
254
255struct ESEL
256{
Tom Joseph3503fdc2019-01-10 11:25:27 +0530257 /*
258 * We can't use -fsanitize=undefined if we declare a
259 * 'static constexpr auto str' member, so don't. Instead, open-code the
260 * mako template lookups.
261 */
Tom Joseph56c534b2017-10-17 12:38:42 +0530262 static constexpr auto str_short = "ESEL";
Tom Joseph3503fdc2019-01-10 11:25:27 +0530263 using type = std::tuple<std::decay_t<decltype("ESEL=%s")>, const char*>;
264 explicit constexpr ESEL(const char* a) : _entry(entry("ESEL=%s", a)){};
Tom Joseph56c534b2017-10-17 12:38:42 +0530265 type _entry;
266};
267
Patrick Venture02261c02018-10-31 15:16:23 -0700268} // namespace _Event
Tom Joseph56c534b2017-10-17 12:38:42 +0530269
270struct Event
271{
272 static constexpr auto L = level::INFO;
273 using ESEL = _Event::ESEL;
274 using metadata_types = std::tuple<ESEL>;
Tom Joseph56c534b2017-10-17 12:38:42 +0530275};
276
277} // namespace Metrics
278} // namespace OCC
279} // namespace open_power
280} // namespace org
281
Tom Joseph56c534b2017-10-17 12:38:42 +0530282namespace details
283{
284
285template <>
Patrick Venture02261c02018-10-31 15:16:23 -0700286struct map_exception_type<
287 sdbusplus::org::open_power::OCC::Metrics::Error::Event>
Tom Joseph56c534b2017-10-17 12:38:42 +0530288{
289 using type = org::open_power::OCC::Metrics::Event;
290};
291
Patrick Venture02261c02018-10-31 15:16:23 -0700292} // namespace details
Tom Joseph56c534b2017-10-17 12:38:42 +0530293
Tom Joseph3503fdc2019-01-10 11:25:27 +0530294namespace xyz
295{
296namespace openbmc_project
297{
298namespace Common
299{
300namespace Callout
301{
302namespace _Device
303{
304
305struct CALLOUT_ERRNO
306{
307 /*
308 * We can't use -fsanitize=undefined if we declare a
309 * 'static constexpr auto str' member, so don't. Instead, open-code the
310 * mako template lookups.
311 */
312 static constexpr auto str_short = "CALLOUT_ERRNO";
313 using type =
314 std::tuple<std::decay_t<decltype("CALLOUT_ERRNO=%d")>, int32_t>;
315 explicit constexpr CALLOUT_ERRNO(int32_t a) :
316 _entry(entry("CALLOUT_ERRNO=%d", a)){};
317 type _entry;
318};
319struct CALLOUT_DEVICE_PATH
320{
321 /*
322 * We can't use -fsanitize=undefined if we declare a
323 * 'static constexpr auto str' member, so don't. Instead, open-code the
324 * mako template lookups.
325 */
326 static constexpr auto str_short = "CALLOUT_DEVICE_PATH";
327 using type = std::tuple<std::decay_t<decltype("CALLOUT_DEVICE_PATH=%s")>,
328 const char*>;
329 explicit constexpr CALLOUT_DEVICE_PATH(const char* a) :
330 _entry(entry("CALLOUT_DEVICE_PATH=%s", a)){};
331 type _entry;
332};
333
334} // namespace _Device
335
336struct Device
337{
338 static constexpr auto L = level::ERR;
339 using CALLOUT_ERRNO = _Device::CALLOUT_ERRNO;
340 using CALLOUT_DEVICE_PATH = _Device::CALLOUT_DEVICE_PATH;
341 using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
342};
343
344} // namespace Callout
345} // namespace Common
346} // namespace openbmc_project
347} // namespace xyz
348
349namespace details
350{
351
352template <>
353struct map_exception_type<
354 sdbusplus::xyz::openbmc_project::Common::Callout::Error::Device>
355{
356 using type = xyz::openbmc_project::Common::Callout::Device;
357};
358
359} // namespace details
360
361namespace xyz
362{
363namespace openbmc_project
364{
365namespace Common
366{
367namespace Callout
368{
369namespace _GPIO
370{
371
372struct CALLOUT_GPIO_NUM
373{
374 /*
375 * We can't use -fsanitize=undefined if we declare a
376 * 'static constexpr auto str' member, so don't. Instead, open-code the
377 * mako template lookups.
378 */
379 static constexpr auto str_short = "CALLOUT_GPIO_NUM";
380 using type =
381 std::tuple<std::decay_t<decltype("CALLOUT_GPIO_NUM=%u")>, uint32_t>;
382 explicit constexpr CALLOUT_GPIO_NUM(uint32_t a) :
383 _entry(entry("CALLOUT_GPIO_NUM=%u", a)){};
384 type _entry;
385};
386
387} // namespace _GPIO
388
389struct GPIO
390{
391 static constexpr auto L = level::ERR;
392 using CALLOUT_GPIO_NUM = _GPIO::CALLOUT_GPIO_NUM;
393 using CALLOUT_ERRNO =
394 xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
395 using CALLOUT_DEVICE_PATH =
396 xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
397 using metadata_types =
398 std::tuple<CALLOUT_GPIO_NUM, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
399};
400
401} // namespace Callout
402} // namespace Common
403} // namespace openbmc_project
404} // namespace xyz
405
406namespace details
407{
408
409template <>
410struct map_exception_type<
411 sdbusplus::xyz::openbmc_project::Common::Callout::Error::GPIO>
412{
413 using type = xyz::openbmc_project::Common::Callout::GPIO;
414};
415
416} // namespace details
417
418namespace xyz
419{
420namespace openbmc_project
421{
422namespace Common
423{
424namespace Callout
425{
426namespace _IIC
427{
428
429struct CALLOUT_IIC_BUS
430{
431 /*
432 * We can't use -fsanitize=undefined if we declare a
433 * 'static constexpr auto str' member, so don't. Instead, open-code the
434 * mako template lookups.
435 */
436 static constexpr auto str_short = "CALLOUT_IIC_BUS";
437 using type =
438 std::tuple<std::decay_t<decltype("CALLOUT_IIC_BUS=%s")>, const char*>;
439 explicit constexpr CALLOUT_IIC_BUS(const char* a) :
440 _entry(entry("CALLOUT_IIC_BUS=%s", a)){};
441 type _entry;
442};
443struct CALLOUT_IIC_ADDR
444{
445 /*
446 * We can't use -fsanitize=undefined if we declare a
447 * 'static constexpr auto str' member, so don't. Instead, open-code the
448 * mako template lookups.
449 */
450 static constexpr auto str_short = "CALLOUT_IIC_ADDR";
451 using type =
452 std::tuple<std::decay_t<decltype("CALLOUT_IIC_ADDR=0x%hx")>, uint16_t>;
453 explicit constexpr CALLOUT_IIC_ADDR(uint16_t a) :
454 _entry(entry("CALLOUT_IIC_ADDR=0x%hx", a)){};
455 type _entry;
456};
457
458} // namespace _IIC
459
460struct IIC
461{
462 static constexpr auto L = level::ERR;
463 using CALLOUT_IIC_BUS = _IIC::CALLOUT_IIC_BUS;
464 using CALLOUT_IIC_ADDR = _IIC::CALLOUT_IIC_ADDR;
465 using CALLOUT_ERRNO =
466 xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
467 using CALLOUT_DEVICE_PATH =
468 xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
469 using metadata_types = std::tuple<CALLOUT_IIC_BUS, CALLOUT_IIC_ADDR,
470 CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
471};
472
473} // namespace Callout
474} // namespace Common
475} // namespace openbmc_project
476} // namespace xyz
477
478namespace details
479{
480
481template <>
482struct map_exception_type<
483 sdbusplus::xyz::openbmc_project::Common::Callout::Error::IIC>
484{
485 using type = xyz::openbmc_project::Common::Callout::IIC;
486};
487
488} // namespace details
489
490namespace xyz
491{
492namespace openbmc_project
493{
494namespace Common
495{
496namespace Callout
497{
498namespace _Inventory
499{
500
501struct CALLOUT_INVENTORY_PATH
502{
503 /*
504 * We can't use -fsanitize=undefined if we declare a
505 * 'static constexpr auto str' member, so don't. Instead, open-code the
506 * mako template lookups.
507 */
508 static constexpr auto str_short = "CALLOUT_INVENTORY_PATH";
509 using type = std::tuple<std::decay_t<decltype("CALLOUT_INVENTORY_PATH=%s")>,
510 const char*>;
511 explicit constexpr CALLOUT_INVENTORY_PATH(const char* a) :
512 _entry(entry("CALLOUT_INVENTORY_PATH=%s", a)){};
513 type _entry;
514};
515
516} // namespace _Inventory
517
518struct Inventory
519{
520 static constexpr auto L = level::ERR;
521 using CALLOUT_INVENTORY_PATH = _Inventory::CALLOUT_INVENTORY_PATH;
522 using metadata_types = std::tuple<CALLOUT_INVENTORY_PATH>;
523};
524
525} // namespace Callout
526} // namespace Common
527} // namespace openbmc_project
528} // namespace xyz
529
530namespace details
531{
532
533template <>
534struct map_exception_type<
535 sdbusplus::xyz::openbmc_project::Common::Callout::Error::Inventory>
536{
537 using type = xyz::openbmc_project::Common::Callout::Inventory;
538};
539
540} // namespace details
541
542namespace xyz
543{
544namespace openbmc_project
545{
546namespace Common
547{
548namespace Callout
549{
550namespace _IPMISensor
551{
552
553struct CALLOUT_IPMI_SENSOR_NUM
554{
555 /*
556 * We can't use -fsanitize=undefined if we declare a
557 * 'static constexpr auto str' member, so don't. Instead, open-code the
558 * mako template lookups.
559 */
560 static constexpr auto str_short = "CALLOUT_IPMI_SENSOR_NUM";
561 using type =
562 std::tuple<std::decay_t<decltype("CALLOUT_IPMI_SENSOR_NUM=%u")>,
563 uint32_t>;
564 explicit constexpr CALLOUT_IPMI_SENSOR_NUM(uint32_t a) :
565 _entry(entry("CALLOUT_IPMI_SENSOR_NUM=%u", a)){};
566 type _entry;
567};
568
569} // namespace _IPMISensor
570
571struct IPMISensor
572{
573 static constexpr auto L = level::ERR;
574 using CALLOUT_IPMI_SENSOR_NUM = _IPMISensor::CALLOUT_IPMI_SENSOR_NUM;
575 using metadata_types = std::tuple<CALLOUT_IPMI_SENSOR_NUM>;
576};
577
578} // namespace Callout
579} // namespace Common
580} // namespace openbmc_project
581} // namespace xyz
582
583namespace details
584{
585
586template <>
587struct map_exception_type<
588 sdbusplus::xyz::openbmc_project::Common::Callout::Error::IPMISensor>
589{
590 using type = xyz::openbmc_project::Common::Callout::IPMISensor;
591};
592
593} // namespace details
594
595namespace org
596{
597namespace open_power
598{
599namespace Host
600{
601namespace _Event
602{
603
604struct ESEL
605{
606 /*
607 * We can't use -fsanitize=undefined if we declare a
608 * 'static constexpr auto str' member, so don't. Instead, open-code the
609 * mako template lookups.
610 */
611 static constexpr auto str_short = "ESEL";
612 using type = std::tuple<std::decay_t<decltype("ESEL=%s")>, const char*>;
613 explicit constexpr ESEL(const char* a) : _entry(entry("ESEL=%s", a)){};
614 type _entry;
615};
616
617} // namespace _Event
618
619struct Event
620{
621 static constexpr auto L = level::ERR;
622 using ESEL = _Event::ESEL;
623 using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
624 Inventory::CALLOUT_INVENTORY_PATH;
625 using metadata_types = std::tuple<ESEL, CALLOUT_INVENTORY_PATH>;
626};
627
628} // namespace Host
629} // namespace open_power
630} // namespace org
631
632namespace details
633{
634
635template <>
636struct map_exception_type<sdbusplus::org::open_power::Host::Error::Event>
637{
638 using type = org::open_power::Host::Event;
639};
640
641} // namespace details
642
643namespace org
644{
645namespace open_power
646{
647namespace Host
648{
649namespace _MaintenanceProcedure
650{
651
652struct ESEL
653{
654 /*
655 * We can't use -fsanitize=undefined if we declare a
656 * 'static constexpr auto str' member, so don't. Instead, open-code the
657 * mako template lookups.
658 */
659 static constexpr auto str_short = "ESEL";
660 using type = std::tuple<std::decay_t<decltype("ESEL=%s")>, const char*>;
661 explicit constexpr ESEL(const char* a) : _entry(entry("ESEL=%s", a)){};
662 type _entry;
663};
664
665} // namespace _MaintenanceProcedure
666
667struct MaintenanceProcedure
668{
669 static constexpr auto L = level::ERR;
670 using ESEL = _MaintenanceProcedure::ESEL;
671 using PROCEDURE = org::open_power::Common::Callout::Procedure::PROCEDURE;
672 using metadata_types = std::tuple<ESEL, PROCEDURE>;
673};
674
675} // namespace Host
676} // namespace open_power
677} // namespace org
678
679namespace details
680{
681
682template <>
683struct map_exception_type<
684 sdbusplus::org::open_power::Host::Error::MaintenanceProcedure>
685{
686 using type = org::open_power::Host::MaintenanceProcedure;
687};
688
689} // namespace details
690
Tom Joseph56c534b2017-10-17 12:38:42 +0530691} // namespace logging
692
693} // namespace phosphor