blob: 0c7c8955949a169bf5549621e085572e6372432d [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>
Patrick Williams2c4fbc42020-06-26 15:33:11 -05008
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
Patrick Williams4cde7e42023-09-01 15:58:04 -050013namespace sdbusplus::error::org::open_power::witherspoon::fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -050014{
Matt Spinlerf0f02b92018-10-25 16:12:43 -050015struct GPUOverTemp;
Patrick Williams4cde7e42023-09-01 15:58:04 -050016} // namespace sdbusplus::error::org::open_power::witherspoon::fault
17namespace sdbusplus::error::org::open_power::witherspoon::fault
Matt Spinler84cd0a52017-08-04 08:53:30 -050018{
Patrick Williams4cde7e42023-09-01 15:58:04 -050019struct GPUPowerFault;
20} // namespace sdbusplus::error::org::open_power::witherspoon::fault
21namespace sdbusplus::error::org::open_power::witherspoon::fault
Matt Spinler84cd0a52017-08-04 08:53:30 -050022{
Patrick Williams4cde7e42023-09-01 15:58:04 -050023struct MemoryPowerFault;
24} // namespace sdbusplus::error::org::open_power::witherspoon::fault
25namespace sdbusplus::error::org::open_power::witherspoon::fault
Matt Spinler84cd0a52017-08-04 08:53:30 -050026{
Patrick Williams4cde7e42023-09-01 15:58:04 -050027struct PowerOnFailure;
28} // namespace sdbusplus::error::org::open_power::witherspoon::fault
29namespace sdbusplus::error::org::open_power::witherspoon::fault
Matt Spinler84cd0a52017-08-04 08:53:30 -050030{
Patrick Williams4cde7e42023-09-01 15:58:04 -050031struct PowerSequencerFault;
32} // namespace sdbusplus::error::org::open_power::witherspoon::fault
33namespace sdbusplus::error::org::open_power::witherspoon::fault
Brandon Wyman442035f2017-08-08 15:58:45 -050034{
Patrick Williams4cde7e42023-09-01 15:58:04 -050035struct PowerSequencerPGOODFault;
36} // namespace sdbusplus::error::org::open_power::witherspoon::fault
37namespace sdbusplus::error::org::open_power::witherspoon::fault
Brandon Wyman442035f2017-08-08 15:58:45 -050038{
Patrick Williams4cde7e42023-09-01 15:58:04 -050039struct PowerSequencerVoltageFault;
40} // namespace sdbusplus::error::org::open_power::witherspoon::fault
41namespace sdbusplus::error::org::open_power::witherspoon::fault
Brandon Wyman442035f2017-08-08 15:58:45 -050042{
Patrick Williams4cde7e42023-09-01 15:58:04 -050043struct PowerSupplyFanFault;
44} // namespace sdbusplus::error::org::open_power::witherspoon::fault
45namespace sdbusplus::error::org::open_power::witherspoon::fault
Brandon Wyman442035f2017-08-08 15:58:45 -050046{
Patrick Williams4cde7e42023-09-01 15:58:04 -050047struct PowerSupplyInputFault;
48} // namespace sdbusplus::error::org::open_power::witherspoon::fault
49namespace sdbusplus::error::org::open_power::witherspoon::fault
Brandon Wyman442035f2017-08-08 15:58:45 -050050{
Patrick Williams4cde7e42023-09-01 15:58:04 -050051struct PowerSupplyOutputOvercurrent;
52} // namespace sdbusplus::error::org::open_power::witherspoon::fault
53namespace sdbusplus::error::org::open_power::witherspoon::fault
Brandon Wyman442035f2017-08-08 15:58:45 -050054{
Patrick Williams4cde7e42023-09-01 15:58:04 -050055struct PowerSupplyOutputOvervoltage;
56} // namespace sdbusplus::error::org::open_power::witherspoon::fault
57namespace sdbusplus::error::org::open_power::witherspoon::fault
Brandon Wyman442035f2017-08-08 15:58:45 -050058{
Patrick Williams4cde7e42023-09-01 15:58:04 -050059struct PowerSupplyShouldBeOn;
60} // namespace sdbusplus::error::org::open_power::witherspoon::fault
61namespace sdbusplus::error::org::open_power::witherspoon::fault
Brandon Wyman442035f2017-08-08 15:58:45 -050062{
Patrick Williams4cde7e42023-09-01 15:58:04 -050063struct PowerSupplyTemperatureFault;
64} // namespace sdbusplus::error::org::open_power::witherspoon::fault
65namespace sdbusplus::error::org::open_power::witherspoon::fault
Brandon Wyman442035f2017-08-08 15:58:45 -050066{
Patrick Williams4cde7e42023-09-01 15:58:04 -050067struct Shutdown;
68} // namespace sdbusplus::error::org::open_power::witherspoon::fault
69namespace sdbusplus::error::xyz::openbmc_project::common::callout
Brandon Wyman442035f2017-08-08 15:58:45 -050070{
Patrick Williams4cde7e42023-09-01 15:58:04 -050071struct Device;
72} // namespace sdbusplus::error::xyz::openbmc_project::common::callout
73namespace sdbusplus::error::xyz::openbmc_project::common::callout
Brandon Wyman442035f2017-08-08 15:58:45 -050074{
Patrick Williams4cde7e42023-09-01 15:58:04 -050075struct GPIO;
76} // namespace sdbusplus::error::xyz::openbmc_project::common::callout
77namespace sdbusplus::error::xyz::openbmc_project::common::callout
Brandon Wyman442035f2017-08-08 15:58:45 -050078{
Patrick Williams4cde7e42023-09-01 15:58:04 -050079struct IIC;
80} // namespace sdbusplus::error::xyz::openbmc_project::common::callout
81namespace sdbusplus::error::xyz::openbmc_project::common::callout
Brandon Wyman442035f2017-08-08 15:58:45 -050082{
Patrick Williams4cde7e42023-09-01 15:58:04 -050083struct IPMISensor;
84} // namespace sdbusplus::error::xyz::openbmc_project::common::callout
85namespace sdbusplus::error::xyz::openbmc_project::common::callout
Brandon Wyman442035f2017-08-08 15:58:45 -050086{
Patrick Williams4cde7e42023-09-01 15:58:04 -050087struct Inventory;
88} // namespace sdbusplus::error::xyz::openbmc_project::common::callout
Brandon Wyman442035f2017-08-08 15:58:45 -050089
Patrick Williams4cde7e42023-09-01 15:58:04 -050090namespace phosphor::logging
Brandon Wyman442035f2017-08-08 15:58:45 -050091{
Brandon Wyman442035f2017-08-08 15:58:45 -050092
Patrick Williams4cde7e42023-09-01 15:58:04 -050093namespace org::open_power::witherspoon::fault
Brandon Wyman875b3632017-09-13 18:46:03 -050094{
Matt Spinler84cd0a52017-08-04 08:53:30 -050095
96struct Shutdown
97{
98 static constexpr auto L = level::ERR;
99 using metadata_types = std::tuple<>;
Matt Spinler84cd0a52017-08-04 08:53:30 -0500100};
101
Patrick Williams4cde7e42023-09-01 15:58:04 -0500102} // namespace org::open_power::witherspoon::fault
103
104#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
105namespace org::open_power::Witherspoon::Fault
106{
107using Shutdown =
108 phosphor::logging::org::open_power::witherspoon::fault::Shutdown;
109}
110#endif
Matt Spinler84cd0a52017-08-04 08:53:30 -0500111
Matt Spinler84cd0a52017-08-04 08:53:30 -0500112namespace details
113{
114
115template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500116struct map_exception_type<
Patrick Williams4cde7e42023-09-01 15:58:04 -0500117 sdbusplus::error::org::open_power::witherspoon::fault::Shutdown>
Matt Spinler84cd0a52017-08-04 08:53:30 -0500118{
Patrick Williams4cde7e42023-09-01 15:58:04 -0500119 using type =
120 phosphor::logging::org::open_power::witherspoon::fault::Shutdown;
Matt Spinler84cd0a52017-08-04 08:53:30 -0500121};
122
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500123} // namespace details
Patrick Williams4cde7e42023-09-01 15:58:04 -0500124namespace org::open_power::witherspoon::fault
Matt Spinlerfacfa902017-08-14 13:43:36 -0500125{
Matt Spinlerfacfa902017-08-14 13:43:36 -0500126
127struct PowerOnFailure
128{
129 static constexpr auto L = level::ERR;
130 using metadata_types = std::tuple<>;
Matt Spinlerfacfa902017-08-14 13:43:36 -0500131};
132
Patrick Williams4cde7e42023-09-01 15:58:04 -0500133} // namespace org::open_power::witherspoon::fault
134
135#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
136namespace org::open_power::Witherspoon::Fault
137{
138using PowerOnFailure =
139 phosphor::logging::org::open_power::witherspoon::fault::PowerOnFailure;
140}
141#endif
Matt Spinlerfacfa902017-08-14 13:43:36 -0500142
Matt Spinlerfacfa902017-08-14 13:43:36 -0500143namespace details
144{
145
146template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500147struct map_exception_type<
Patrick Williams4cde7e42023-09-01 15:58:04 -0500148 sdbusplus::error::org::open_power::witherspoon::fault::PowerOnFailure>
Matt Spinlerfacfa902017-08-14 13:43:36 -0500149{
Patrick Williams4cde7e42023-09-01 15:58:04 -0500150 using type =
151 phosphor::logging::org::open_power::witherspoon::fault::PowerOnFailure;
Matt Spinlerfacfa902017-08-14 13:43:36 -0500152};
153
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500154} // namespace details
Patrick Williams4cde7e42023-09-01 15:58:04 -0500155namespace org::open_power::witherspoon::fault
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500156{
157namespace _PowerSequencerVoltageFault
158{
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500159struct RAIL
160{
Brandon Wyman03c19db2019-05-10 17:46:41 -0500161 /*
162 * We can't use -fsanitize=undefined if we declare a
163 * 'static constexpr auto str' member, so don't. Instead, open-code the
164 * mako template lookups.
165 */
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500166 static constexpr auto str_short = "RAIL";
Brandon Wyman03c19db2019-05-10 17:46:41 -0500167 using type = std::tuple<std::decay_t<decltype("RAIL=%d")>, uint16_t>;
168 explicit constexpr RAIL(uint16_t a) : _entry(entry("RAIL=%d", a)){};
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500169 type _entry;
170};
171struct RAIL_NAME
172{
Brandon Wyman03c19db2019-05-10 17:46:41 -0500173 /*
174 * We can't use -fsanitize=undefined if we declare a
175 * 'static constexpr auto str' member, so don't. Instead, open-code the
176 * mako template lookups.
177 */
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500178 static constexpr auto str_short = "RAIL_NAME";
Brandon Wyman03c19db2019-05-10 17:46:41 -0500179 using type =
180 std::tuple<std::decay_t<decltype("RAIL_NAME=%s")>, const char*>;
181 explicit constexpr RAIL_NAME(const char* a) :
182 _entry(entry("RAIL_NAME=%s", a)){};
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500183 type _entry;
184};
185struct RAW_STATUS
186{
Brandon Wyman03c19db2019-05-10 17:46:41 -0500187 /*
188 * We can't use -fsanitize=undefined if we declare a
189 * 'static constexpr auto str' member, so don't. Instead, open-code the
190 * mako template lookups.
191 */
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500192 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -0500193 using type =
194 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
195 explicit constexpr RAW_STATUS(const char* a) :
196 _entry(entry("RAW_STATUS=%s", a)){};
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500197 type _entry;
198};
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500199} // namespace _PowerSequencerVoltageFault
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500200
201struct PowerSequencerVoltageFault
202{
203 static constexpr auto L = level::ERR;
204 using RAIL = _PowerSequencerVoltageFault::RAIL;
205 using RAIL_NAME = _PowerSequencerVoltageFault::RAIL_NAME;
206 using RAW_STATUS = _PowerSequencerVoltageFault::RAW_STATUS;
207 using metadata_types = std::tuple<RAIL, RAIL_NAME, RAW_STATUS>;
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500208};
209
Patrick Williams4cde7e42023-09-01 15:58:04 -0500210} // namespace org::open_power::witherspoon::fault
211
212#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
213namespace org::open_power::Witherspoon::Fault
214{
215using PowerSequencerVoltageFault = phosphor::logging::org::open_power::
216 witherspoon::fault::PowerSequencerVoltageFault;
217}
218#endif
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500219
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500220namespace details
221{
222
223template <>
Patrick Williams4cde7e42023-09-01 15:58:04 -0500224struct map_exception_type<sdbusplus::error::org::open_power::witherspoon::
225 fault::PowerSequencerVoltageFault>
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500226{
Patrick Williams4cde7e42023-09-01 15:58:04 -0500227 using type = phosphor::logging::org::open_power::witherspoon::fault::
228 PowerSequencerVoltageFault;
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500229};
230
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500231} // namespace details
Patrick Williams4cde7e42023-09-01 15:58:04 -0500232namespace org::open_power::witherspoon::fault
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500233{
234namespace _PowerSequencerPGOODFault
235{
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500236struct INPUT_NUM
237{
Brandon Wyman03c19db2019-05-10 17:46:41 -0500238 /*
239 * We can't use -fsanitize=undefined if we declare a
240 * 'static constexpr auto str' member, so don't. Instead, open-code the
241 * mako template lookups.
242 */
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500243 static constexpr auto str_short = "INPUT_NUM";
Brandon Wyman03c19db2019-05-10 17:46:41 -0500244 using type = std::tuple<std::decay_t<decltype("INPUT_NUM=%d")>, uint16_t>;
245 explicit constexpr INPUT_NUM(uint16_t a) :
246 _entry(entry("INPUT_NUM=%d", a)){};
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500247 type _entry;
248};
249struct INPUT_NAME
250{
Brandon Wyman03c19db2019-05-10 17:46:41 -0500251 /*
252 * We can't use -fsanitize=undefined if we declare a
253 * 'static constexpr auto str' member, so don't. Instead, open-code the
254 * mako template lookups.
255 */
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500256 static constexpr auto str_short = "INPUT_NAME";
Brandon Wyman03c19db2019-05-10 17:46:41 -0500257 using type =
258 std::tuple<std::decay_t<decltype("INPUT_NAME=%s")>, const char*>;
259 explicit constexpr INPUT_NAME(const char* a) :
260 _entry(entry("INPUT_NAME=%s", a)){};
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500261 type _entry;
262};
263struct RAW_STATUS
264{
Brandon Wyman03c19db2019-05-10 17:46:41 -0500265 /*
266 * We can't use -fsanitize=undefined if we declare a
267 * 'static constexpr auto str' member, so don't. Instead, open-code the
268 * mako template lookups.
269 */
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500270 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -0500271 using type =
272 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
273 explicit constexpr RAW_STATUS(const char* a) :
274 _entry(entry("RAW_STATUS=%s", a)){};
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500275 type _entry;
276};
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500277} // namespace _PowerSequencerPGOODFault
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500278
279struct PowerSequencerPGOODFault
280{
281 static constexpr auto L = level::ERR;
282 using INPUT_NUM = _PowerSequencerPGOODFault::INPUT_NUM;
283 using INPUT_NAME = _PowerSequencerPGOODFault::INPUT_NAME;
284 using RAW_STATUS = _PowerSequencerPGOODFault::RAW_STATUS;
285 using metadata_types = std::tuple<INPUT_NUM, INPUT_NAME, RAW_STATUS>;
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500286};
287
Patrick Williams4cde7e42023-09-01 15:58:04 -0500288} // namespace org::open_power::witherspoon::fault
289
290#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
291namespace org::open_power::Witherspoon::Fault
292{
293using PowerSequencerPGOODFault = phosphor::logging::org::open_power::
294 witherspoon::fault::PowerSequencerPGOODFault;
295}
296#endif
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500297
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500298namespace details
299{
300
301template <>
Patrick Williams4cde7e42023-09-01 15:58:04 -0500302struct map_exception_type<sdbusplus::error::org::open_power::witherspoon::
303 fault::PowerSequencerPGOODFault>
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500304{
Patrick Williams4cde7e42023-09-01 15:58:04 -0500305 using type = phosphor::logging::org::open_power::witherspoon::fault::
306 PowerSequencerPGOODFault;
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500307};
308
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500309} // namespace details
Patrick Williams4cde7e42023-09-01 15:58:04 -0500310namespace org::open_power::witherspoon::fault
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500311{
312namespace _PowerSequencerFault
313{
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500314struct RAW_STATUS
315{
Brandon Wyman03c19db2019-05-10 17:46:41 -0500316 /*
317 * We can't use -fsanitize=undefined if we declare a
318 * 'static constexpr auto str' member, so don't. Instead, open-code the
319 * mako template lookups.
320 */
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500321 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -0500322 using type =
323 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
324 explicit constexpr RAW_STATUS(const char* a) :
325 _entry(entry("RAW_STATUS=%s", a)){};
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500326 type _entry;
327};
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500328} // namespace _PowerSequencerFault
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500329
330struct PowerSequencerFault
331{
332 static constexpr auto L = level::ERR;
333 using RAW_STATUS = _PowerSequencerFault::RAW_STATUS;
334 using metadata_types = std::tuple<RAW_STATUS>;
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500335};
336
Patrick Williams4cde7e42023-09-01 15:58:04 -0500337} // namespace org::open_power::witherspoon::fault
338
339#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
340namespace org::open_power::Witherspoon::Fault
341{
342using PowerSequencerFault =
343 phosphor::logging::org::open_power::witherspoon::fault::PowerSequencerFault;
344}
345#endif
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500346
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500347namespace details
348{
349
350template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500351struct map_exception_type<
Patrick Williams4cde7e42023-09-01 15:58:04 -0500352 sdbusplus::error::org::open_power::witherspoon::fault::PowerSequencerFault>
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500353{
Patrick Williams4cde7e42023-09-01 15:58:04 -0500354 using type = phosphor::logging::org::open_power::witherspoon::fault::
355 PowerSequencerFault;
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500356};
357
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500358} // namespace details
Patrick Williams4cde7e42023-09-01 15:58:04 -0500359namespace xyz::openbmc_project::common::callout
360{
361namespace _Device
362{
363struct CALLOUT_ERRNO
364{
365 /*
366 * We can't use -fsanitize=undefined if we declare a
367 * 'static constexpr auto str' member, so don't. Instead, open-code the
368 * mako template lookups.
369 */
370 static constexpr auto str_short = "CALLOUT_ERRNO";
371 using type =
372 std::tuple<std::decay_t<decltype("CALLOUT_ERRNO=%d")>, int32_t>;
373 explicit constexpr CALLOUT_ERRNO(int32_t a) :
374 _entry(entry("CALLOUT_ERRNO=%d", a)){};
375 type _entry;
376};
377struct CALLOUT_DEVICE_PATH
378{
379 /*
380 * We can't use -fsanitize=undefined if we declare a
381 * 'static constexpr auto str' member, so don't. Instead, open-code the
382 * mako template lookups.
383 */
384 static constexpr auto str_short = "CALLOUT_DEVICE_PATH";
385 using type = std::tuple<std::decay_t<decltype("CALLOUT_DEVICE_PATH=%s")>,
386 const char*>;
387 explicit constexpr CALLOUT_DEVICE_PATH(const char* a) :
388 _entry(entry("CALLOUT_DEVICE_PATH=%s", a)){};
389 type _entry;
390};
391} // namespace _Device
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500392
Patrick Williams4cde7e42023-09-01 15:58:04 -0500393struct Device
Matt Spinler7b14db22017-09-19 10:57:54 -0500394{
Patrick Williams4cde7e42023-09-01 15:58:04 -0500395 static constexpr auto L = level::ERR;
396 using CALLOUT_ERRNO = _Device::CALLOUT_ERRNO;
397 using CALLOUT_DEVICE_PATH = _Device::CALLOUT_DEVICE_PATH;
398 using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
399};
400
401} // namespace xyz::openbmc_project::common::callout
402
403#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
404namespace xyz::openbmc_project::Common::Callout
Matt Spinler7b14db22017-09-19 10:57:54 -0500405{
Patrick Williams4cde7e42023-09-01 15:58:04 -0500406using Device = phosphor::logging::xyz::openbmc_project::common::callout::Device;
407}
408#endif
409
410namespace details
Matt Spinler7b14db22017-09-19 10:57:54 -0500411{
412
Patrick Williams4cde7e42023-09-01 15:58:04 -0500413template <>
414struct map_exception_type<
415 sdbusplus::error::xyz::openbmc_project::common::callout::Device>
416{
417 using type =
418 phosphor::logging::xyz::openbmc_project::common::callout::Device;
419};
420
421} // namespace details
422namespace xyz::openbmc_project::common::callout
423{
424namespace _GPIO
425{
426struct CALLOUT_GPIO_NUM
427{
428 /*
429 * We can't use -fsanitize=undefined if we declare a
430 * 'static constexpr auto str' member, so don't. Instead, open-code the
431 * mako template lookups.
432 */
433 static constexpr auto str_short = "CALLOUT_GPIO_NUM";
434 using type =
435 std::tuple<std::decay_t<decltype("CALLOUT_GPIO_NUM=%u")>, uint32_t>;
436 explicit constexpr CALLOUT_GPIO_NUM(uint32_t a) :
437 _entry(entry("CALLOUT_GPIO_NUM=%u", a)){};
438 type _entry;
439};
440} // namespace _GPIO
441
442struct GPIO
443{
444 static constexpr auto L = level::ERR;
445 using CALLOUT_GPIO_NUM = _GPIO::CALLOUT_GPIO_NUM;
446 using CALLOUT_ERRNO = phosphor::logging::xyz::openbmc_project::common::
447 callout::Device::CALLOUT_ERRNO;
448 using CALLOUT_DEVICE_PATH = phosphor::logging::xyz::openbmc_project::
449 common::callout::Device::CALLOUT_DEVICE_PATH;
450 using metadata_types =
451 std::tuple<CALLOUT_GPIO_NUM, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
452};
453
454} // namespace xyz::openbmc_project::common::callout
455
456#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
457namespace xyz::openbmc_project::Common::Callout
458{
459using GPIO = phosphor::logging::xyz::openbmc_project::common::callout::GPIO;
460}
461#endif
462
463namespace details
464{
465
466template <>
467struct map_exception_type<
468 sdbusplus::error::xyz::openbmc_project::common::callout::GPIO>
469{
470 using type = phosphor::logging::xyz::openbmc_project::common::callout::GPIO;
471};
472
473} // namespace details
474namespace xyz::openbmc_project::common::callout
475{
476namespace _IIC
477{
478struct CALLOUT_IIC_BUS
479{
480 /*
481 * We can't use -fsanitize=undefined if we declare a
482 * 'static constexpr auto str' member, so don't. Instead, open-code the
483 * mako template lookups.
484 */
485 static constexpr auto str_short = "CALLOUT_IIC_BUS";
486 using type =
487 std::tuple<std::decay_t<decltype("CALLOUT_IIC_BUS=%s")>, const char*>;
488 explicit constexpr CALLOUT_IIC_BUS(const char* a) :
489 _entry(entry("CALLOUT_IIC_BUS=%s", a)){};
490 type _entry;
491};
492struct CALLOUT_IIC_ADDR
493{
494 /*
495 * We can't use -fsanitize=undefined if we declare a
496 * 'static constexpr auto str' member, so don't. Instead, open-code the
497 * mako template lookups.
498 */
499 static constexpr auto str_short = "CALLOUT_IIC_ADDR";
500 using type =
501 std::tuple<std::decay_t<decltype("CALLOUT_IIC_ADDR=0x%hx")>, uint16_t>;
502 explicit constexpr CALLOUT_IIC_ADDR(uint16_t a) :
503 _entry(entry("CALLOUT_IIC_ADDR=0x%hx", a)){};
504 type _entry;
505};
506} // namespace _IIC
507
508struct IIC
509{
510 static constexpr auto L = level::ERR;
511 using CALLOUT_IIC_BUS = _IIC::CALLOUT_IIC_BUS;
512 using CALLOUT_IIC_ADDR = _IIC::CALLOUT_IIC_ADDR;
513 using CALLOUT_ERRNO = phosphor::logging::xyz::openbmc_project::common::
514 callout::Device::CALLOUT_ERRNO;
515 using CALLOUT_DEVICE_PATH = phosphor::logging::xyz::openbmc_project::
516 common::callout::Device::CALLOUT_DEVICE_PATH;
517 using metadata_types = std::tuple<CALLOUT_IIC_BUS, CALLOUT_IIC_ADDR,
518 CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
519};
520
521} // namespace xyz::openbmc_project::common::callout
522
523#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
524namespace xyz::openbmc_project::Common::Callout
525{
526using IIC = phosphor::logging::xyz::openbmc_project::common::callout::IIC;
527}
528#endif
529
530namespace details
531{
532
533template <>
534struct map_exception_type<
535 sdbusplus::error::xyz::openbmc_project::common::callout::IIC>
536{
537 using type = phosphor::logging::xyz::openbmc_project::common::callout::IIC;
538};
539
540} // namespace details
541namespace xyz::openbmc_project::common::callout
542{
543namespace _Inventory
544{
545struct CALLOUT_INVENTORY_PATH
546{
547 /*
548 * We can't use -fsanitize=undefined if we declare a
549 * 'static constexpr auto str' member, so don't. Instead, open-code the
550 * mako template lookups.
551 */
552 static constexpr auto str_short = "CALLOUT_INVENTORY_PATH";
553 using type = std::tuple<std::decay_t<decltype("CALLOUT_INVENTORY_PATH=%s")>,
554 const char*>;
555 explicit constexpr CALLOUT_INVENTORY_PATH(const char* a) :
556 _entry(entry("CALLOUT_INVENTORY_PATH=%s", a)){};
557 type _entry;
558};
559} // namespace _Inventory
560
561struct Inventory
562{
563 static constexpr auto L = level::ERR;
564 using CALLOUT_INVENTORY_PATH = _Inventory::CALLOUT_INVENTORY_PATH;
565 using metadata_types = std::tuple<CALLOUT_INVENTORY_PATH>;
566};
567
568} // namespace xyz::openbmc_project::common::callout
569
570#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
571namespace xyz::openbmc_project::Common::Callout
572{
573using Inventory =
574 phosphor::logging::xyz::openbmc_project::common::callout::Inventory;
575}
576#endif
577
578namespace details
579{
580
581template <>
582struct map_exception_type<
583 sdbusplus::error::xyz::openbmc_project::common::callout::Inventory>
584{
585 using type =
586 phosphor::logging::xyz::openbmc_project::common::callout::Inventory;
587};
588
589} // namespace details
590namespace xyz::openbmc_project::common::callout
591{
592namespace _IPMISensor
593{
594struct CALLOUT_IPMI_SENSOR_NUM
595{
596 /*
597 * We can't use -fsanitize=undefined if we declare a
598 * 'static constexpr auto str' member, so don't. Instead, open-code the
599 * mako template lookups.
600 */
601 static constexpr auto str_short = "CALLOUT_IPMI_SENSOR_NUM";
602 using type =
603 std::tuple<std::decay_t<decltype("CALLOUT_IPMI_SENSOR_NUM=%u")>,
604 uint32_t>;
605 explicit constexpr CALLOUT_IPMI_SENSOR_NUM(uint32_t a) :
606 _entry(entry("CALLOUT_IPMI_SENSOR_NUM=%u", a)){};
607 type _entry;
608};
609} // namespace _IPMISensor
610
611struct IPMISensor
612{
613 static constexpr auto L = level::ERR;
614 using CALLOUT_IPMI_SENSOR_NUM = _IPMISensor::CALLOUT_IPMI_SENSOR_NUM;
615 using metadata_types = std::tuple<CALLOUT_IPMI_SENSOR_NUM>;
616};
617
618} // namespace xyz::openbmc_project::common::callout
619
620#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
621namespace xyz::openbmc_project::Common::Callout
622{
623using IPMISensor =
624 phosphor::logging::xyz::openbmc_project::common::callout::IPMISensor;
625}
626#endif
627
628namespace details
629{
630
631template <>
632struct map_exception_type<
633 sdbusplus::error::xyz::openbmc_project::common::callout::IPMISensor>
634{
635 using type =
636 phosphor::logging::xyz::openbmc_project::common::callout::IPMISensor;
637};
638
639} // namespace details
640namespace org::open_power::witherspoon::fault
641{
642namespace _PowerSupplyInputFault
643{
Matt Spinler7b14db22017-09-19 10:57:54 -0500644struct RAW_STATUS
645{
Brandon Wyman03c19db2019-05-10 17:46:41 -0500646 /*
647 * We can't use -fsanitize=undefined if we declare a
648 * 'static constexpr auto str' member, so don't. Instead, open-code the
649 * mako template lookups.
650 */
Matt Spinler7b14db22017-09-19 10:57:54 -0500651 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -0500652 using type =
653 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
654 explicit constexpr RAW_STATUS(const char* a) :
655 _entry(entry("RAW_STATUS=%s", a)){};
Matt Spinler7b14db22017-09-19 10:57:54 -0500656 type _entry;
657};
Patrick Williams4cde7e42023-09-01 15:58:04 -0500658} // namespace _PowerSupplyInputFault
Matt Spinler7b14db22017-09-19 10:57:54 -0500659
Patrick Williams4cde7e42023-09-01 15:58:04 -0500660struct PowerSupplyInputFault
661{
662 static constexpr auto L = level::ERR;
663 using RAW_STATUS = _PowerSupplyInputFault::RAW_STATUS;
664 using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project::
665 common::callout::Inventory::CALLOUT_INVENTORY_PATH;
666 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
667};
668
669} // namespace org::open_power::witherspoon::fault
670
671#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
672namespace org::open_power::Witherspoon::Fault
673{
674using PowerSupplyInputFault = phosphor::logging::org::open_power::witherspoon::
675 fault::PowerSupplyInputFault;
676}
677#endif
678
679namespace details
680{
681
682template <>
683struct map_exception_type<sdbusplus::error::org::open_power::witherspoon::
684 fault::PowerSupplyInputFault>
685{
686 using type = phosphor::logging::org::open_power::witherspoon::fault::
687 PowerSupplyInputFault;
688};
689
690} // namespace details
691namespace org::open_power::witherspoon::fault
692{
693namespace _PowerSupplyShouldBeOn
694{
695struct RAW_STATUS
696{
697 /*
698 * We can't use -fsanitize=undefined if we declare a
699 * 'static constexpr auto str' member, so don't. Instead, open-code the
700 * mako template lookups.
701 */
702 static constexpr auto str_short = "RAW_STATUS";
703 using type =
704 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
705 explicit constexpr RAW_STATUS(const char* a) :
706 _entry(entry("RAW_STATUS=%s", a)){};
707 type _entry;
708};
709} // namespace _PowerSupplyShouldBeOn
710
711struct PowerSupplyShouldBeOn
712{
713 static constexpr auto L = level::ERR;
714 using RAW_STATUS = _PowerSupplyShouldBeOn::RAW_STATUS;
715 using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project::
716 common::callout::Inventory::CALLOUT_INVENTORY_PATH;
717 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
718};
719
720} // namespace org::open_power::witherspoon::fault
721
722#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
723namespace org::open_power::Witherspoon::Fault
724{
725using PowerSupplyShouldBeOn = phosphor::logging::org::open_power::witherspoon::
726 fault::PowerSupplyShouldBeOn;
727}
728#endif
729
730namespace details
731{
732
733template <>
734struct map_exception_type<sdbusplus::error::org::open_power::witherspoon::
735 fault::PowerSupplyShouldBeOn>
736{
737 using type = phosphor::logging::org::open_power::witherspoon::fault::
738 PowerSupplyShouldBeOn;
739};
740
741} // namespace details
742namespace org::open_power::witherspoon::fault
743{
744namespace _PowerSupplyOutputOvercurrent
745{
746struct RAW_STATUS
747{
748 /*
749 * We can't use -fsanitize=undefined if we declare a
750 * 'static constexpr auto str' member, so don't. Instead, open-code the
751 * mako template lookups.
752 */
753 static constexpr auto str_short = "RAW_STATUS";
754 using type =
755 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
756 explicit constexpr RAW_STATUS(const char* a) :
757 _entry(entry("RAW_STATUS=%s", a)){};
758 type _entry;
759};
760} // namespace _PowerSupplyOutputOvercurrent
761
762struct PowerSupplyOutputOvercurrent
763{
764 static constexpr auto L = level::ERR;
765 using RAW_STATUS = _PowerSupplyOutputOvercurrent::RAW_STATUS;
766 using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project::
767 common::callout::Inventory::CALLOUT_INVENTORY_PATH;
768 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
769};
770
771} // namespace org::open_power::witherspoon::fault
772
773#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
774namespace org::open_power::Witherspoon::Fault
775{
776using PowerSupplyOutputOvercurrent = phosphor::logging::org::open_power::
777 witherspoon::fault::PowerSupplyOutputOvercurrent;
778}
779#endif
780
781namespace details
782{
783
784template <>
785struct map_exception_type<sdbusplus::error::org::open_power::witherspoon::
786 fault::PowerSupplyOutputOvercurrent>
787{
788 using type = phosphor::logging::org::open_power::witherspoon::fault::
789 PowerSupplyOutputOvercurrent;
790};
791
792} // namespace details
793namespace org::open_power::witherspoon::fault
794{
795namespace _PowerSupplyOutputOvervoltage
796{
797struct RAW_STATUS
798{
799 /*
800 * We can't use -fsanitize=undefined if we declare a
801 * 'static constexpr auto str' member, so don't. Instead, open-code the
802 * mako template lookups.
803 */
804 static constexpr auto str_short = "RAW_STATUS";
805 using type =
806 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
807 explicit constexpr RAW_STATUS(const char* a) :
808 _entry(entry("RAW_STATUS=%s", a)){};
809 type _entry;
810};
811} // namespace _PowerSupplyOutputOvervoltage
812
813struct PowerSupplyOutputOvervoltage
814{
815 static constexpr auto L = level::ERR;
816 using RAW_STATUS = _PowerSupplyOutputOvervoltage::RAW_STATUS;
817 using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project::
818 common::callout::Inventory::CALLOUT_INVENTORY_PATH;
819 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
820};
821
822} // namespace org::open_power::witherspoon::fault
823
824#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
825namespace org::open_power::Witherspoon::Fault
826{
827using PowerSupplyOutputOvervoltage = phosphor::logging::org::open_power::
828 witherspoon::fault::PowerSupplyOutputOvervoltage;
829}
830#endif
831
832namespace details
833{
834
835template <>
836struct map_exception_type<sdbusplus::error::org::open_power::witherspoon::
837 fault::PowerSupplyOutputOvervoltage>
838{
839 using type = phosphor::logging::org::open_power::witherspoon::fault::
840 PowerSupplyOutputOvervoltage;
841};
842
843} // namespace details
844namespace org::open_power::witherspoon::fault
845{
846namespace _PowerSupplyFanFault
847{
848struct RAW_STATUS
849{
850 /*
851 * We can't use -fsanitize=undefined if we declare a
852 * 'static constexpr auto str' member, so don't. Instead, open-code the
853 * mako template lookups.
854 */
855 static constexpr auto str_short = "RAW_STATUS";
856 using type =
857 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
858 explicit constexpr RAW_STATUS(const char* a) :
859 _entry(entry("RAW_STATUS=%s", a)){};
860 type _entry;
861};
862} // namespace _PowerSupplyFanFault
863
864struct PowerSupplyFanFault
865{
866 static constexpr auto L = level::ERR;
867 using RAW_STATUS = _PowerSupplyFanFault::RAW_STATUS;
868 using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project::
869 common::callout::Inventory::CALLOUT_INVENTORY_PATH;
870 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
871};
872
873} // namespace org::open_power::witherspoon::fault
874
875#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
876namespace org::open_power::Witherspoon::Fault
877{
878using PowerSupplyFanFault =
879 phosphor::logging::org::open_power::witherspoon::fault::PowerSupplyFanFault;
880}
881#endif
882
883namespace details
884{
885
886template <>
887struct map_exception_type<
888 sdbusplus::error::org::open_power::witherspoon::fault::PowerSupplyFanFault>
889{
890 using type = phosphor::logging::org::open_power::witherspoon::fault::
891 PowerSupplyFanFault;
892};
893
894} // namespace details
895namespace org::open_power::witherspoon::fault
896{
897namespace _PowerSupplyTemperatureFault
898{
899struct RAW_STATUS
900{
901 /*
902 * We can't use -fsanitize=undefined if we declare a
903 * 'static constexpr auto str' member, so don't. Instead, open-code the
904 * mako template lookups.
905 */
906 static constexpr auto str_short = "RAW_STATUS";
907 using type =
908 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
909 explicit constexpr RAW_STATUS(const char* a) :
910 _entry(entry("RAW_STATUS=%s", a)){};
911 type _entry;
912};
913} // namespace _PowerSupplyTemperatureFault
914
915struct PowerSupplyTemperatureFault
916{
917 static constexpr auto L = level::ERR;
918 using RAW_STATUS = _PowerSupplyTemperatureFault::RAW_STATUS;
919 using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project::
920 common::callout::Inventory::CALLOUT_INVENTORY_PATH;
921 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
922};
923
924} // namespace org::open_power::witherspoon::fault
925
926#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
927namespace org::open_power::Witherspoon::Fault
928{
929using PowerSupplyTemperatureFault = phosphor::logging::org::open_power::
930 witherspoon::fault::PowerSupplyTemperatureFault;
931}
932#endif
933
934namespace details
935{
936
937template <>
938struct map_exception_type<sdbusplus::error::org::open_power::witherspoon::
939 fault::PowerSupplyTemperatureFault>
940{
941 using type = phosphor::logging::org::open_power::witherspoon::fault::
942 PowerSupplyTemperatureFault;
943};
944
945} // namespace details
946namespace org::open_power::witherspoon::fault
947{
948namespace _GPUPowerFault
949{
950struct RAW_STATUS
951{
952 /*
953 * We can't use -fsanitize=undefined if we declare a
954 * 'static constexpr auto str' member, so don't. Instead, open-code the
955 * mako template lookups.
956 */
957 static constexpr auto str_short = "RAW_STATUS";
958 using type =
959 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
960 explicit constexpr RAW_STATUS(const char* a) :
961 _entry(entry("RAW_STATUS=%s", a)){};
962 type _entry;
963};
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500964} // namespace _GPUPowerFault
Matt Spinler7b14db22017-09-19 10:57:54 -0500965
966struct GPUPowerFault
967{
968 static constexpr auto L = level::ERR;
969 using RAW_STATUS = _GPUPowerFault::RAW_STATUS;
Patrick Williams4cde7e42023-09-01 15:58:04 -0500970 using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project::
971 common::callout::Inventory::CALLOUT_INVENTORY_PATH;
Matt Spinler0e45ced2018-02-12 14:36:07 -0600972 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Matt Spinler7b14db22017-09-19 10:57:54 -0500973};
974
Patrick Williams4cde7e42023-09-01 15:58:04 -0500975} // namespace org::open_power::witherspoon::fault
976
977#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
978namespace org::open_power::Witherspoon::Fault
979{
980using GPUPowerFault =
981 phosphor::logging::org::open_power::witherspoon::fault::GPUPowerFault;
982}
983#endif
Matt Spinler7b14db22017-09-19 10:57:54 -0500984
Matt Spinler7b14db22017-09-19 10:57:54 -0500985namespace details
986{
987
988template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500989struct map_exception_type<
Patrick Williams4cde7e42023-09-01 15:58:04 -0500990 sdbusplus::error::org::open_power::witherspoon::fault::GPUPowerFault>
Matt Spinler7b14db22017-09-19 10:57:54 -0500991{
Patrick Williams4cde7e42023-09-01 15:58:04 -0500992 using type =
993 phosphor::logging::org::open_power::witherspoon::fault::GPUPowerFault;
Matt Spinler7b14db22017-09-19 10:57:54 -0500994};
995
Matt Spinlerf0f02b92018-10-25 16:12:43 -0500996} // namespace details
Patrick Williams4cde7e42023-09-01 15:58:04 -0500997namespace org::open_power::witherspoon::fault
Matt Spinler7b14db22017-09-19 10:57:54 -0500998{
999namespace _GPUOverTemp
1000{
Matt Spinler7b14db22017-09-19 10:57:54 -05001001struct RAW_STATUS
1002{
Brandon Wyman03c19db2019-05-10 17:46:41 -05001003 /*
1004 * We can't use -fsanitize=undefined if we declare a
1005 * 'static constexpr auto str' member, so don't. Instead, open-code the
1006 * mako template lookups.
1007 */
Matt Spinler7b14db22017-09-19 10:57:54 -05001008 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -05001009 using type =
1010 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
1011 explicit constexpr RAW_STATUS(const char* a) :
1012 _entry(entry("RAW_STATUS=%s", a)){};
Matt Spinler7b14db22017-09-19 10:57:54 -05001013 type _entry;
1014};
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001015} // namespace _GPUOverTemp
Matt Spinler7b14db22017-09-19 10:57:54 -05001016
1017struct GPUOverTemp
1018{
1019 static constexpr auto L = level::ERR;
1020 using RAW_STATUS = _GPUOverTemp::RAW_STATUS;
Patrick Williams4cde7e42023-09-01 15:58:04 -05001021 using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project::
1022 common::callout::Inventory::CALLOUT_INVENTORY_PATH;
Matt Spinler0e45ced2018-02-12 14:36:07 -06001023 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Matt Spinler7b14db22017-09-19 10:57:54 -05001024};
1025
Patrick Williams4cde7e42023-09-01 15:58:04 -05001026} // namespace org::open_power::witherspoon::fault
1027
1028#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1029namespace org::open_power::Witherspoon::Fault
1030{
1031using GPUOverTemp =
1032 phosphor::logging::org::open_power::witherspoon::fault::GPUOverTemp;
1033}
1034#endif
Matt Spinler7b14db22017-09-19 10:57:54 -05001035
Matt Spinler7b14db22017-09-19 10:57:54 -05001036namespace details
1037{
1038
1039template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001040struct map_exception_type<
Patrick Williams4cde7e42023-09-01 15:58:04 -05001041 sdbusplus::error::org::open_power::witherspoon::fault::GPUOverTemp>
Matt Spinler7b14db22017-09-19 10:57:54 -05001042{
Patrick Williams4cde7e42023-09-01 15:58:04 -05001043 using type =
1044 phosphor::logging::org::open_power::witherspoon::fault::GPUOverTemp;
Matt Spinler7b14db22017-09-19 10:57:54 -05001045};
1046
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001047} // namespace details
Patrick Williams4cde7e42023-09-01 15:58:04 -05001048namespace org::open_power::witherspoon::fault
Brandon Wyman03c19db2019-05-10 17:46:41 -05001049{
1050namespace _MemoryPowerFault
1051{
Brandon Wyman03c19db2019-05-10 17:46:41 -05001052struct RAW_STATUS
1053{
1054 /*
1055 * We can't use -fsanitize=undefined if we declare a
1056 * 'static constexpr auto str' member, so don't. Instead, open-code the
1057 * mako template lookups.
1058 */
1059 static constexpr auto str_short = "RAW_STATUS";
1060 using type =
1061 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
1062 explicit constexpr RAW_STATUS(const char* a) :
1063 _entry(entry("RAW_STATUS=%s", a)){};
1064 type _entry;
1065};
Brandon Wyman03c19db2019-05-10 17:46:41 -05001066} // namespace _MemoryPowerFault
1067
1068struct MemoryPowerFault
1069{
1070 static constexpr auto L = level::ERR;
1071 using RAW_STATUS = _MemoryPowerFault::RAW_STATUS;
Patrick Williams4cde7e42023-09-01 15:58:04 -05001072 using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project::
1073 common::callout::Inventory::CALLOUT_INVENTORY_PATH;
Brandon Wyman03c19db2019-05-10 17:46:41 -05001074 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
1075};
1076
Patrick Williams4cde7e42023-09-01 15:58:04 -05001077} // namespace org::open_power::witherspoon::fault
1078
1079#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1080namespace org::open_power::Witherspoon::Fault
1081{
1082using MemoryPowerFault =
1083 phosphor::logging::org::open_power::witherspoon::fault::MemoryPowerFault;
1084}
1085#endif
Brandon Wyman03c19db2019-05-10 17:46:41 -05001086
1087namespace details
1088{
1089
1090template <>
1091struct map_exception_type<
Patrick Williams4cde7e42023-09-01 15:58:04 -05001092 sdbusplus::error::org::open_power::witherspoon::fault::MemoryPowerFault>
Brandon Wyman03c19db2019-05-10 17:46:41 -05001093{
Patrick Williams4cde7e42023-09-01 15:58:04 -05001094 using type = phosphor::logging::org::open_power::witherspoon::fault::
1095 MemoryPowerFault;
Brandon Wyman03c19db2019-05-10 17:46:41 -05001096};
1097
1098} // namespace details
Patrick Williams4cde7e42023-09-01 15:58:04 -05001099} // namespace phosphor::logging