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