156c534b1STom Joseph // This file was autogenerated.  Do not edit!
256c534b1STom Joseph // See elog-gen.py for more details
356c534b1STom Joseph #pragma once
456c534b1STom Joseph 
502261c0cSPatrick Venture #include <phosphor-logging/elog.hpp>
602261c0cSPatrick Venture #include <phosphor-logging/log.hpp>
702261c0cSPatrick Venture #include <sdbusplus/exception.hpp>
8490126f9SPatrick Williams 
956c534b1STom Joseph #include <string>
1056c534b1STom Joseph #include <tuple>
1156c534b1STom Joseph #include <type_traits>
1256c534b1STom Joseph 
13*da755ed6SPatrick Williams namespace sdbusplus::error::org::open_power::common::callout
143503fdc9STom Joseph {
153503fdc9STom Joseph struct Procedure;
16*da755ed6SPatrick Williams } // namespace sdbusplus::error::org::open_power::common::callout
17*da755ed6SPatrick Williams namespace sdbusplus::error::org::open_power::host
1856c534b1STom Joseph {
1956c534b1STom Joseph struct Event;
20*da755ed6SPatrick Williams } // namespace sdbusplus::error::org::open_power::host
21*da755ed6SPatrick Williams namespace sdbusplus::error::org::open_power::host
223503fdc9STom Joseph {
233503fdc9STom Joseph struct MaintenanceProcedure;
24*da755ed6SPatrick Williams } // namespace sdbusplus::error::org::open_power::host
25*da755ed6SPatrick Williams namespace sdbusplus::error::org::open_power::occ::metrics
263503fdc9STom Joseph {
273503fdc9STom Joseph struct Event;
28*da755ed6SPatrick Williams } // namespace sdbusplus::error::org::open_power::occ::metrics
29*da755ed6SPatrick Williams namespace sdbusplus::error::xyz::openbmc_project::common::callout
303503fdc9STom Joseph {
31*da755ed6SPatrick Williams struct Device;
32*da755ed6SPatrick Williams } // namespace sdbusplus::error::xyz::openbmc_project::common::callout
33*da755ed6SPatrick Williams namespace sdbusplus::error::xyz::openbmc_project::common::callout
343503fdc9STom Joseph {
35*da755ed6SPatrick Williams struct GPIO;
36*da755ed6SPatrick Williams } // namespace sdbusplus::error::xyz::openbmc_project::common::callout
37*da755ed6SPatrick Williams namespace sdbusplus::error::xyz::openbmc_project::common::callout
383503fdc9STom Joseph {
39*da755ed6SPatrick Williams struct IIC;
40*da755ed6SPatrick Williams } // namespace sdbusplus::error::xyz::openbmc_project::common::callout
41*da755ed6SPatrick Williams namespace sdbusplus::error::xyz::openbmc_project::common::callout
423503fdc9STom Joseph {
433503fdc9STom Joseph struct IPMISensor;
44*da755ed6SPatrick Williams } // namespace sdbusplus::error::xyz::openbmc_project::common::callout
45*da755ed6SPatrick Williams namespace sdbusplus::error::xyz::openbmc_project::common::callout
46*da755ed6SPatrick Williams {
47*da755ed6SPatrick Williams struct Inventory;
48*da755ed6SPatrick Williams } // namespace sdbusplus::error::xyz::openbmc_project::common::callout
493503fdc9STom Joseph 
50*da755ed6SPatrick Williams namespace phosphor::logging
5156c534b1STom Joseph {
5256c534b1STom Joseph 
53*da755ed6SPatrick Williams namespace org::open_power::occ::metrics
54*da755ed6SPatrick Williams {
55*da755ed6SPatrick Williams namespace _Event
56*da755ed6SPatrick Williams {
57*da755ed6SPatrick Williams struct ESEL
58*da755ed6SPatrick Williams {
59*da755ed6SPatrick Williams     /*
60*da755ed6SPatrick Williams      * We can't use -fsanitize=undefined if we declare a
61*da755ed6SPatrick Williams      * 'static constexpr auto str' member, so don't. Instead, open-code the
62*da755ed6SPatrick Williams      * mako template lookups.
63*da755ed6SPatrick Williams      */
64*da755ed6SPatrick Williams     static constexpr auto str_short = "ESEL";
65*da755ed6SPatrick Williams     using type = std::tuple<std::decay_t<decltype("ESEL=%s")>, const char*>;
ESELphosphor::logging::org::open_power::occ::metrics::_Event::ESEL66*da755ed6SPatrick Williams     explicit constexpr ESEL(const char* a) : _entry(entry("ESEL=%s", a)) {};
67*da755ed6SPatrick Williams     type _entry;
68*da755ed6SPatrick Williams };
69*da755ed6SPatrick Williams } // namespace _Event
70*da755ed6SPatrick Williams 
71*da755ed6SPatrick Williams struct Event
72*da755ed6SPatrick Williams {
73*da755ed6SPatrick Williams     static constexpr auto L = level::INFO;
74*da755ed6SPatrick Williams     using ESEL = _Event::ESEL;
75*da755ed6SPatrick Williams     using metadata_types = std::tuple<ESEL>;
76*da755ed6SPatrick Williams };
77*da755ed6SPatrick Williams 
78*da755ed6SPatrick Williams } // namespace org::open_power::occ::metrics
79*da755ed6SPatrick Williams 
80*da755ed6SPatrick Williams #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
81*da755ed6SPatrick Williams namespace org::open_power::OCC::Metrics
82*da755ed6SPatrick Williams {
83*da755ed6SPatrick Williams using Event = phosphor::logging::org::open_power::occ::metrics::Event;
84*da755ed6SPatrick Williams }
85*da755ed6SPatrick Williams #endif
86*da755ed6SPatrick Williams 
87*da755ed6SPatrick Williams namespace details
8856c534b1STom Joseph {
8956c534b1STom Joseph 
90*da755ed6SPatrick Williams template <>
91*da755ed6SPatrick Williams struct map_exception_type<
92*da755ed6SPatrick Williams     sdbusplus::error::org::open_power::occ::metrics::Event>
9356c534b1STom Joseph {
94*da755ed6SPatrick Williams     using type = phosphor::logging::org::open_power::occ::metrics::Event;
95*da755ed6SPatrick Williams };
96*da755ed6SPatrick Williams 
97*da755ed6SPatrick Williams } // namespace details
98*da755ed6SPatrick Williams namespace org::open_power::common::callout
993503fdc9STom Joseph {
1003503fdc9STom Joseph namespace _Procedure
1013503fdc9STom Joseph {
1023503fdc9STom Joseph struct PROCEDURE
1033503fdc9STom Joseph {
1043503fdc9STom Joseph     /*
1053503fdc9STom Joseph      * We can't use -fsanitize=undefined if we declare a
1063503fdc9STom Joseph      * 'static constexpr auto str' member, so don't. Instead, open-code the
1073503fdc9STom Joseph      * mako template lookups.
1083503fdc9STom Joseph      */
1093503fdc9STom Joseph     static constexpr auto str_short = "PROCEDURE";
1103503fdc9STom Joseph     using type = std::tuple<std::decay_t<decltype("PROCEDURE=%u")>, uint32_t>;
PROCEDUREphosphor::logging::org::open_power::common::callout::_Procedure::PROCEDURE1113503fdc9STom Joseph     explicit constexpr PROCEDURE(uint32_t a) :
1123503fdc9STom Joseph         _entry(entry("PROCEDURE=%u", a)) {};
1133503fdc9STom Joseph     type _entry;
1143503fdc9STom Joseph };
1153503fdc9STom Joseph } // namespace _Procedure
1163503fdc9STom Joseph 
1173503fdc9STom Joseph struct Procedure
1183503fdc9STom Joseph {
1193503fdc9STom Joseph     static constexpr auto L = level::ERR;
1203503fdc9STom Joseph     using PROCEDURE = _Procedure::PROCEDURE;
1213503fdc9STom Joseph     using metadata_types = std::tuple<PROCEDURE>;
1223503fdc9STom Joseph };
1233503fdc9STom Joseph 
124*da755ed6SPatrick Williams } // namespace org::open_power::common::callout
125*da755ed6SPatrick Williams 
126*da755ed6SPatrick Williams #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
127*da755ed6SPatrick Williams namespace org::open_power::Common::Callout
128*da755ed6SPatrick Williams {
129*da755ed6SPatrick Williams using Procedure =
130*da755ed6SPatrick Williams     phosphor::logging::org::open_power::common::callout::Procedure;
131*da755ed6SPatrick Williams }
132*da755ed6SPatrick Williams #endif
1333503fdc9STom Joseph 
1343503fdc9STom Joseph namespace details
1353503fdc9STom Joseph {
1363503fdc9STom Joseph 
1373503fdc9STom Joseph template <>
1383503fdc9STom Joseph struct map_exception_type<
139*da755ed6SPatrick Williams     sdbusplus::error::org::open_power::common::callout::Procedure>
1403503fdc9STom Joseph {
141*da755ed6SPatrick Williams     using type = phosphor::logging::org::open_power::common::callout::Procedure;
1423503fdc9STom Joseph };
1433503fdc9STom Joseph 
1443503fdc9STom Joseph } // namespace details
145*da755ed6SPatrick Williams namespace xyz::openbmc_project::common::callout
1463503fdc9STom Joseph {
1473503fdc9STom Joseph namespace _Device
1483503fdc9STom Joseph {
1493503fdc9STom Joseph struct CALLOUT_ERRNO
1503503fdc9STom Joseph {
1513503fdc9STom Joseph     /*
1523503fdc9STom Joseph      * We can't use -fsanitize=undefined if we declare a
1533503fdc9STom Joseph      * 'static constexpr auto str' member, so don't. Instead, open-code the
1543503fdc9STom Joseph      * mako template lookups.
1553503fdc9STom Joseph      */
1563503fdc9STom Joseph     static constexpr auto str_short = "CALLOUT_ERRNO";
1573503fdc9STom Joseph     using type =
1583503fdc9STom Joseph         std::tuple<std::decay_t<decltype("CALLOUT_ERRNO=%d")>, int32_t>;
CALLOUT_ERRNOphosphor::logging::xyz::openbmc_project::common::callout::_Device::CALLOUT_ERRNO1593503fdc9STom Joseph     explicit constexpr CALLOUT_ERRNO(int32_t a) :
1603503fdc9STom Joseph         _entry(entry("CALLOUT_ERRNO=%d", a)) {};
1613503fdc9STom Joseph     type _entry;
1623503fdc9STom Joseph };
1633503fdc9STom Joseph struct CALLOUT_DEVICE_PATH
1643503fdc9STom Joseph {
1653503fdc9STom Joseph     /*
1663503fdc9STom Joseph      * We can't use -fsanitize=undefined if we declare a
1673503fdc9STom Joseph      * 'static constexpr auto str' member, so don't. Instead, open-code the
1683503fdc9STom Joseph      * mako template lookups.
1693503fdc9STom Joseph      */
1703503fdc9STom Joseph     static constexpr auto str_short = "CALLOUT_DEVICE_PATH";
1713503fdc9STom Joseph     using type = std::tuple<std::decay_t<decltype("CALLOUT_DEVICE_PATH=%s")>,
1723503fdc9STom Joseph                             const char*>;
CALLOUT_DEVICE_PATHphosphor::logging::xyz::openbmc_project::common::callout::_Device::CALLOUT_DEVICE_PATH1733503fdc9STom Joseph     explicit constexpr CALLOUT_DEVICE_PATH(const char* a) :
1743503fdc9STom Joseph         _entry(entry("CALLOUT_DEVICE_PATH=%s", a)) {};
1753503fdc9STom Joseph     type _entry;
1763503fdc9STom Joseph };
1773503fdc9STom Joseph } // namespace _Device
1783503fdc9STom Joseph 
1793503fdc9STom Joseph struct Device
1803503fdc9STom Joseph {
1813503fdc9STom Joseph     static constexpr auto L = level::ERR;
1823503fdc9STom Joseph     using CALLOUT_ERRNO = _Device::CALLOUT_ERRNO;
1833503fdc9STom Joseph     using CALLOUT_DEVICE_PATH = _Device::CALLOUT_DEVICE_PATH;
1843503fdc9STom Joseph     using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
1853503fdc9STom Joseph };
1863503fdc9STom Joseph 
187*da755ed6SPatrick Williams } // namespace xyz::openbmc_project::common::callout
188*da755ed6SPatrick Williams 
189*da755ed6SPatrick Williams #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
190*da755ed6SPatrick Williams namespace xyz::openbmc_project::Common::Callout
191*da755ed6SPatrick Williams {
192*da755ed6SPatrick Williams using Device = phosphor::logging::xyz::openbmc_project::common::callout::Device;
193*da755ed6SPatrick Williams }
194*da755ed6SPatrick Williams #endif
1953503fdc9STom Joseph 
1963503fdc9STom Joseph namespace details
1973503fdc9STom Joseph {
1983503fdc9STom Joseph 
1993503fdc9STom Joseph template <>
2003503fdc9STom Joseph struct map_exception_type<
201*da755ed6SPatrick Williams     sdbusplus::error::xyz::openbmc_project::common::callout::Device>
2023503fdc9STom Joseph {
203*da755ed6SPatrick Williams     using type =
204*da755ed6SPatrick Williams         phosphor::logging::xyz::openbmc_project::common::callout::Device;
2053503fdc9STom Joseph };
2063503fdc9STom Joseph 
2073503fdc9STom Joseph } // namespace details
208*da755ed6SPatrick Williams namespace xyz::openbmc_project::common::callout
2093503fdc9STom Joseph {
2103503fdc9STom Joseph namespace _GPIO
2113503fdc9STom Joseph {
2123503fdc9STom Joseph struct CALLOUT_GPIO_NUM
2133503fdc9STom Joseph {
2143503fdc9STom Joseph     /*
2153503fdc9STom Joseph      * We can't use -fsanitize=undefined if we declare a
2163503fdc9STom Joseph      * 'static constexpr auto str' member, so don't. Instead, open-code the
2173503fdc9STom Joseph      * mako template lookups.
2183503fdc9STom Joseph      */
2193503fdc9STom Joseph     static constexpr auto str_short = "CALLOUT_GPIO_NUM";
2203503fdc9STom Joseph     using type =
2213503fdc9STom Joseph         std::tuple<std::decay_t<decltype("CALLOUT_GPIO_NUM=%u")>, uint32_t>;
CALLOUT_GPIO_NUMphosphor::logging::xyz::openbmc_project::common::callout::_GPIO::CALLOUT_GPIO_NUM2223503fdc9STom Joseph     explicit constexpr CALLOUT_GPIO_NUM(uint32_t a) :
2233503fdc9STom Joseph         _entry(entry("CALLOUT_GPIO_NUM=%u", a)) {};
2243503fdc9STom Joseph     type _entry;
2253503fdc9STom Joseph };
2263503fdc9STom Joseph } // namespace _GPIO
2273503fdc9STom Joseph 
2283503fdc9STom Joseph struct GPIO
2293503fdc9STom Joseph {
2303503fdc9STom Joseph     static constexpr auto L = level::ERR;
2313503fdc9STom Joseph     using CALLOUT_GPIO_NUM = _GPIO::CALLOUT_GPIO_NUM;
232*da755ed6SPatrick Williams     using CALLOUT_ERRNO = phosphor::logging::xyz::openbmc_project::common::
233*da755ed6SPatrick Williams         callout::Device::CALLOUT_ERRNO;
234*da755ed6SPatrick Williams     using CALLOUT_DEVICE_PATH = phosphor::logging::xyz::openbmc_project::
235*da755ed6SPatrick Williams         common::callout::Device::CALLOUT_DEVICE_PATH;
2363503fdc9STom Joseph     using metadata_types =
2373503fdc9STom Joseph         std::tuple<CALLOUT_GPIO_NUM, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
2383503fdc9STom Joseph };
2393503fdc9STom Joseph 
240*da755ed6SPatrick Williams } // namespace xyz::openbmc_project::common::callout
241*da755ed6SPatrick Williams 
242*da755ed6SPatrick Williams #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
243*da755ed6SPatrick Williams namespace xyz::openbmc_project::Common::Callout
244*da755ed6SPatrick Williams {
245*da755ed6SPatrick Williams using GPIO = phosphor::logging::xyz::openbmc_project::common::callout::GPIO;
246*da755ed6SPatrick Williams }
247*da755ed6SPatrick Williams #endif
2483503fdc9STom Joseph 
2493503fdc9STom Joseph namespace details
2503503fdc9STom Joseph {
2513503fdc9STom Joseph 
2523503fdc9STom Joseph template <>
2533503fdc9STom Joseph struct map_exception_type<
254*da755ed6SPatrick Williams     sdbusplus::error::xyz::openbmc_project::common::callout::GPIO>
2553503fdc9STom Joseph {
256*da755ed6SPatrick Williams     using type = phosphor::logging::xyz::openbmc_project::common::callout::GPIO;
2573503fdc9STom Joseph };
2583503fdc9STom Joseph 
2593503fdc9STom Joseph } // namespace details
260*da755ed6SPatrick Williams namespace xyz::openbmc_project::common::callout
2613503fdc9STom Joseph {
2623503fdc9STom Joseph namespace _IIC
2633503fdc9STom Joseph {
2643503fdc9STom Joseph struct CALLOUT_IIC_BUS
2653503fdc9STom Joseph {
2663503fdc9STom Joseph     /*
2673503fdc9STom Joseph      * We can't use -fsanitize=undefined if we declare a
2683503fdc9STom Joseph      * 'static constexpr auto str' member, so don't. Instead, open-code the
2693503fdc9STom Joseph      * mako template lookups.
2703503fdc9STom Joseph      */
2713503fdc9STom Joseph     static constexpr auto str_short = "CALLOUT_IIC_BUS";
2723503fdc9STom Joseph     using type =
2733503fdc9STom Joseph         std::tuple<std::decay_t<decltype("CALLOUT_IIC_BUS=%s")>, const char*>;
CALLOUT_IIC_BUSphosphor::logging::xyz::openbmc_project::common::callout::_IIC::CALLOUT_IIC_BUS2743503fdc9STom Joseph     explicit constexpr CALLOUT_IIC_BUS(const char* a) :
2753503fdc9STom Joseph         _entry(entry("CALLOUT_IIC_BUS=%s", a)) {};
2763503fdc9STom Joseph     type _entry;
2773503fdc9STom Joseph };
2783503fdc9STom Joseph struct CALLOUT_IIC_ADDR
2793503fdc9STom Joseph {
2803503fdc9STom Joseph     /*
2813503fdc9STom Joseph      * We can't use -fsanitize=undefined if we declare a
2823503fdc9STom Joseph      * 'static constexpr auto str' member, so don't. Instead, open-code the
2833503fdc9STom Joseph      * mako template lookups.
2843503fdc9STom Joseph      */
2853503fdc9STom Joseph     static constexpr auto str_short = "CALLOUT_IIC_ADDR";
2863503fdc9STom Joseph     using type =
2873503fdc9STom Joseph         std::tuple<std::decay_t<decltype("CALLOUT_IIC_ADDR=0x%hx")>, uint16_t>;
CALLOUT_IIC_ADDRphosphor::logging::xyz::openbmc_project::common::callout::_IIC::CALLOUT_IIC_ADDR2883503fdc9STom Joseph     explicit constexpr CALLOUT_IIC_ADDR(uint16_t a) :
2893503fdc9STom Joseph         _entry(entry("CALLOUT_IIC_ADDR=0x%hx", a)) {};
2903503fdc9STom Joseph     type _entry;
2913503fdc9STom Joseph };
2923503fdc9STom Joseph } // namespace _IIC
2933503fdc9STom Joseph 
2943503fdc9STom Joseph struct IIC
2953503fdc9STom Joseph {
2963503fdc9STom Joseph     static constexpr auto L = level::ERR;
2973503fdc9STom Joseph     using CALLOUT_IIC_BUS = _IIC::CALLOUT_IIC_BUS;
2983503fdc9STom Joseph     using CALLOUT_IIC_ADDR = _IIC::CALLOUT_IIC_ADDR;
299*da755ed6SPatrick Williams     using CALLOUT_ERRNO = phosphor::logging::xyz::openbmc_project::common::
300*da755ed6SPatrick Williams         callout::Device::CALLOUT_ERRNO;
301*da755ed6SPatrick Williams     using CALLOUT_DEVICE_PATH = phosphor::logging::xyz::openbmc_project::
302*da755ed6SPatrick Williams         common::callout::Device::CALLOUT_DEVICE_PATH;
3033503fdc9STom Joseph     using metadata_types = std::tuple<CALLOUT_IIC_BUS, CALLOUT_IIC_ADDR,
3043503fdc9STom Joseph                                       CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
3053503fdc9STom Joseph };
3063503fdc9STom Joseph 
307*da755ed6SPatrick Williams } // namespace xyz::openbmc_project::common::callout
308*da755ed6SPatrick Williams 
309*da755ed6SPatrick Williams #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
310*da755ed6SPatrick Williams namespace xyz::openbmc_project::Common::Callout
311*da755ed6SPatrick Williams {
312*da755ed6SPatrick Williams using IIC = phosphor::logging::xyz::openbmc_project::common::callout::IIC;
313*da755ed6SPatrick Williams }
314*da755ed6SPatrick Williams #endif
3153503fdc9STom Joseph 
3163503fdc9STom Joseph namespace details
3173503fdc9STom Joseph {
3183503fdc9STom Joseph 
3193503fdc9STom Joseph template <>
3203503fdc9STom Joseph struct map_exception_type<
321*da755ed6SPatrick Williams     sdbusplus::error::xyz::openbmc_project::common::callout::IIC>
3223503fdc9STom Joseph {
323*da755ed6SPatrick Williams     using type = phosphor::logging::xyz::openbmc_project::common::callout::IIC;
3243503fdc9STom Joseph };
3253503fdc9STom Joseph 
3263503fdc9STom Joseph } // namespace details
327*da755ed6SPatrick Williams namespace xyz::openbmc_project::common::callout
3283503fdc9STom Joseph {
3293503fdc9STom Joseph namespace _Inventory
3303503fdc9STom Joseph {
3313503fdc9STom Joseph struct CALLOUT_INVENTORY_PATH
3323503fdc9STom Joseph {
3333503fdc9STom Joseph     /*
3343503fdc9STom Joseph      * We can't use -fsanitize=undefined if we declare a
3353503fdc9STom Joseph      * 'static constexpr auto str' member, so don't. Instead, open-code the
3363503fdc9STom Joseph      * mako template lookups.
3373503fdc9STom Joseph      */
3383503fdc9STom Joseph     static constexpr auto str_short = "CALLOUT_INVENTORY_PATH";
3393503fdc9STom Joseph     using type = std::tuple<std::decay_t<decltype("CALLOUT_INVENTORY_PATH=%s")>,
3403503fdc9STom Joseph                             const char*>;
CALLOUT_INVENTORY_PATHphosphor::logging::xyz::openbmc_project::common::callout::_Inventory::CALLOUT_INVENTORY_PATH3413503fdc9STom Joseph     explicit constexpr CALLOUT_INVENTORY_PATH(const char* a) :
3423503fdc9STom Joseph         _entry(entry("CALLOUT_INVENTORY_PATH=%s", a)) {};
3433503fdc9STom Joseph     type _entry;
3443503fdc9STom Joseph };
3453503fdc9STom Joseph } // namespace _Inventory
3463503fdc9STom Joseph 
3473503fdc9STom Joseph struct Inventory
3483503fdc9STom Joseph {
3493503fdc9STom Joseph     static constexpr auto L = level::ERR;
3503503fdc9STom Joseph     using CALLOUT_INVENTORY_PATH = _Inventory::CALLOUT_INVENTORY_PATH;
3513503fdc9STom Joseph     using metadata_types = std::tuple<CALLOUT_INVENTORY_PATH>;
3523503fdc9STom Joseph };
3533503fdc9STom Joseph 
354*da755ed6SPatrick Williams } // namespace xyz::openbmc_project::common::callout
355*da755ed6SPatrick Williams 
356*da755ed6SPatrick Williams #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
357*da755ed6SPatrick Williams namespace xyz::openbmc_project::Common::Callout
358*da755ed6SPatrick Williams {
359*da755ed6SPatrick Williams using Inventory =
360*da755ed6SPatrick Williams     phosphor::logging::xyz::openbmc_project::common::callout::Inventory;
361*da755ed6SPatrick Williams }
362*da755ed6SPatrick Williams #endif
3633503fdc9STom Joseph 
3643503fdc9STom Joseph namespace details
3653503fdc9STom Joseph {
3663503fdc9STom Joseph 
3673503fdc9STom Joseph template <>
3683503fdc9STom Joseph struct map_exception_type<
369*da755ed6SPatrick Williams     sdbusplus::error::xyz::openbmc_project::common::callout::Inventory>
3703503fdc9STom Joseph {
371*da755ed6SPatrick Williams     using type =
372*da755ed6SPatrick Williams         phosphor::logging::xyz::openbmc_project::common::callout::Inventory;
3733503fdc9STom Joseph };
3743503fdc9STom Joseph 
3753503fdc9STom Joseph } // namespace details
376*da755ed6SPatrick Williams namespace xyz::openbmc_project::common::callout
3773503fdc9STom Joseph {
3783503fdc9STom Joseph namespace _IPMISensor
3793503fdc9STom Joseph {
3803503fdc9STom Joseph struct CALLOUT_IPMI_SENSOR_NUM
3813503fdc9STom Joseph {
3823503fdc9STom Joseph     /*
3833503fdc9STom Joseph      * We can't use -fsanitize=undefined if we declare a
3843503fdc9STom Joseph      * 'static constexpr auto str' member, so don't. Instead, open-code the
3853503fdc9STom Joseph      * mako template lookups.
3863503fdc9STom Joseph      */
3873503fdc9STom Joseph     static constexpr auto str_short = "CALLOUT_IPMI_SENSOR_NUM";
3883503fdc9STom Joseph     using type =
3893503fdc9STom Joseph         std::tuple<std::decay_t<decltype("CALLOUT_IPMI_SENSOR_NUM=%u")>,
3903503fdc9STom Joseph                    uint32_t>;
CALLOUT_IPMI_SENSOR_NUMphosphor::logging::xyz::openbmc_project::common::callout::_IPMISensor::CALLOUT_IPMI_SENSOR_NUM3913503fdc9STom Joseph     explicit constexpr CALLOUT_IPMI_SENSOR_NUM(uint32_t a) :
3923503fdc9STom Joseph         _entry(entry("CALLOUT_IPMI_SENSOR_NUM=%u", a)) {};
3933503fdc9STom Joseph     type _entry;
3943503fdc9STom Joseph };
3953503fdc9STom Joseph } // namespace _IPMISensor
3963503fdc9STom Joseph 
3973503fdc9STom Joseph struct IPMISensor
3983503fdc9STom Joseph {
3993503fdc9STom Joseph     static constexpr auto L = level::ERR;
4003503fdc9STom Joseph     using CALLOUT_IPMI_SENSOR_NUM = _IPMISensor::CALLOUT_IPMI_SENSOR_NUM;
4013503fdc9STom Joseph     using metadata_types = std::tuple<CALLOUT_IPMI_SENSOR_NUM>;
4023503fdc9STom Joseph };
4033503fdc9STom Joseph 
404*da755ed6SPatrick Williams } // namespace xyz::openbmc_project::common::callout
405*da755ed6SPatrick Williams 
406*da755ed6SPatrick Williams #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
407*da755ed6SPatrick Williams namespace xyz::openbmc_project::Common::Callout
408*da755ed6SPatrick Williams {
409*da755ed6SPatrick Williams using IPMISensor =
410*da755ed6SPatrick Williams     phosphor::logging::xyz::openbmc_project::common::callout::IPMISensor;
411*da755ed6SPatrick Williams }
412*da755ed6SPatrick Williams #endif
4133503fdc9STom Joseph 
4143503fdc9STom Joseph namespace details
4153503fdc9STom Joseph {
4163503fdc9STom Joseph 
4173503fdc9STom Joseph template <>
4183503fdc9STom Joseph struct map_exception_type<
419*da755ed6SPatrick Williams     sdbusplus::error::xyz::openbmc_project::common::callout::IPMISensor>
4203503fdc9STom Joseph {
421*da755ed6SPatrick Williams     using type =
422*da755ed6SPatrick Williams         phosphor::logging::xyz::openbmc_project::common::callout::IPMISensor;
4233503fdc9STom Joseph };
4243503fdc9STom Joseph 
4253503fdc9STom Joseph } // namespace details
426*da755ed6SPatrick Williams namespace org::open_power::host
4273503fdc9STom Joseph {
4283503fdc9STom Joseph namespace _Event
4293503fdc9STom Joseph {
4303503fdc9STom Joseph struct ESEL
4313503fdc9STom Joseph {
4323503fdc9STom Joseph     /*
4333503fdc9STom Joseph      * We can't use -fsanitize=undefined if we declare a
4343503fdc9STom Joseph      * 'static constexpr auto str' member, so don't. Instead, open-code the
4353503fdc9STom Joseph      * mako template lookups.
4363503fdc9STom Joseph      */
4373503fdc9STom Joseph     static constexpr auto str_short = "ESEL";
4383503fdc9STom Joseph     using type = std::tuple<std::decay_t<decltype("ESEL=%s")>, const char*>;
ESELphosphor::logging::org::open_power::host::_Event::ESEL4393503fdc9STom Joseph     explicit constexpr ESEL(const char* a) : _entry(entry("ESEL=%s", a)) {};
4403503fdc9STom Joseph     type _entry;
4413503fdc9STom Joseph };
4423503fdc9STom Joseph } // namespace _Event
4433503fdc9STom Joseph 
4443503fdc9STom Joseph struct Event
4453503fdc9STom Joseph {
4463503fdc9STom Joseph     static constexpr auto L = level::ERR;
4473503fdc9STom Joseph     using ESEL = _Event::ESEL;
448*da755ed6SPatrick Williams     using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project::
449*da755ed6SPatrick Williams         common::callout::Inventory::CALLOUT_INVENTORY_PATH;
4503503fdc9STom Joseph     using metadata_types = std::tuple<ESEL, CALLOUT_INVENTORY_PATH>;
4513503fdc9STom Joseph };
4523503fdc9STom Joseph 
453*da755ed6SPatrick Williams } // namespace org::open_power::host
454*da755ed6SPatrick Williams 
455*da755ed6SPatrick Williams #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
456*da755ed6SPatrick Williams namespace org::open_power::Host
457*da755ed6SPatrick Williams {
458*da755ed6SPatrick Williams using Event = phosphor::logging::org::open_power::host::Event;
459*da755ed6SPatrick Williams }
460*da755ed6SPatrick Williams #endif
4613503fdc9STom Joseph 
4623503fdc9STom Joseph namespace details
4633503fdc9STom Joseph {
4643503fdc9STom Joseph 
4653503fdc9STom Joseph template <>
466*da755ed6SPatrick Williams struct map_exception_type<sdbusplus::error::org::open_power::host::Event>
4673503fdc9STom Joseph {
468*da755ed6SPatrick Williams     using type = phosphor::logging::org::open_power::host::Event;
4693503fdc9STom Joseph };
4703503fdc9STom Joseph 
4713503fdc9STom Joseph } // namespace details
472*da755ed6SPatrick Williams namespace org::open_power::host
4733503fdc9STom Joseph {
4743503fdc9STom Joseph namespace _MaintenanceProcedure
4753503fdc9STom Joseph {
4763503fdc9STom Joseph struct ESEL
4773503fdc9STom Joseph {
4783503fdc9STom Joseph     /*
4793503fdc9STom Joseph      * We can't use -fsanitize=undefined if we declare a
4803503fdc9STom Joseph      * 'static constexpr auto str' member, so don't. Instead, open-code the
4813503fdc9STom Joseph      * mako template lookups.
4823503fdc9STom Joseph      */
4833503fdc9STom Joseph     static constexpr auto str_short = "ESEL";
4843503fdc9STom Joseph     using type = std::tuple<std::decay_t<decltype("ESEL=%s")>, const char*>;
ESELphosphor::logging::org::open_power::host::_MaintenanceProcedure::ESEL4853503fdc9STom Joseph     explicit constexpr ESEL(const char* a) : _entry(entry("ESEL=%s", a)) {};
4863503fdc9STom Joseph     type _entry;
4873503fdc9STom Joseph };
4883503fdc9STom Joseph } // namespace _MaintenanceProcedure
4893503fdc9STom Joseph 
4903503fdc9STom Joseph struct MaintenanceProcedure
4913503fdc9STom Joseph {
4923503fdc9STom Joseph     static constexpr auto L = level::ERR;
4933503fdc9STom Joseph     using ESEL = _MaintenanceProcedure::ESEL;
494*da755ed6SPatrick Williams     using PROCEDURE = phosphor::logging::org::open_power::common::callout::
495*da755ed6SPatrick Williams         Procedure::PROCEDURE;
4963503fdc9STom Joseph     using metadata_types = std::tuple<ESEL, PROCEDURE>;
4973503fdc9STom Joseph };
4983503fdc9STom Joseph 
499*da755ed6SPatrick Williams } // namespace org::open_power::host
500*da755ed6SPatrick Williams 
501*da755ed6SPatrick Williams #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
502*da755ed6SPatrick Williams namespace org::open_power::Host
503*da755ed6SPatrick Williams {
504*da755ed6SPatrick Williams using MaintenanceProcedure =
505*da755ed6SPatrick Williams     phosphor::logging::org::open_power::host::MaintenanceProcedure;
506*da755ed6SPatrick Williams }
507*da755ed6SPatrick Williams #endif
5083503fdc9STom Joseph 
5093503fdc9STom Joseph namespace details
5103503fdc9STom Joseph {
5113503fdc9STom Joseph 
5123503fdc9STom Joseph template <>
5133503fdc9STom Joseph struct map_exception_type<
514*da755ed6SPatrick Williams     sdbusplus::error::org::open_power::host::MaintenanceProcedure>
5153503fdc9STom Joseph {
516*da755ed6SPatrick Williams     using type = phosphor::logging::org::open_power::host::MaintenanceProcedure;
5173503fdc9STom Joseph };
5183503fdc9STom Joseph 
5193503fdc9STom Joseph } // namespace details
520*da755ed6SPatrick Williams } // namespace phosphor::logging
521