blob: 269587e697064e49e529138bcc1dee8f066b289e [file] [log] [blame]
Matt Spinler84cd0a52017-08-04 08:53:30 -05001// This file was autogenerated. Do not edit!
2// See elog-gen.py for more details
3#pragma once
4
Matt Spinlerf0f02b92018-10-25 16:12:43 -05005#include <phosphor-logging/elog.hpp>
6#include <phosphor-logging/log.hpp>
7#include <sdbusplus/exception.hpp>
Brandon Wymand1bc4ce2019-12-13 14:20:34 -06008
Matt Spinler84cd0a52017-08-04 08:53:30 -05009#include <string>
10#include <tuple>
11#include <type_traits>
Matt Spinler84cd0a52017-08-04 08:53:30 -050012
Patrick Williams0859a172023-09-01 15:59:54 -050013namespace sdbusplus::error::org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +080014{
15struct ErrorCode0;
Patrick Williams0859a172023-09-01 15:59:54 -050016} // namespace sdbusplus::error::org::open_power::witherspoon::fault
17namespace sdbusplus::error::org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +080018{
Patrick Williams0859a172023-09-01 15:59:54 -050019struct ErrorCode1;
20} // namespace sdbusplus::error::org::open_power::witherspoon::fault
21namespace sdbusplus::error::org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +080022{
Patrick Williams0859a172023-09-01 15:59:54 -050023struct ErrorCode10;
24} // namespace sdbusplus::error::org::open_power::witherspoon::fault
25namespace sdbusplus::error::org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +080026{
Patrick Williams0859a172023-09-01 15:59:54 -050027struct ErrorCode11;
28} // namespace sdbusplus::error::org::open_power::witherspoon::fault
29namespace sdbusplus::error::org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +080030{
Patrick Williams0859a172023-09-01 15:59:54 -050031struct ErrorCode12;
32} // namespace sdbusplus::error::org::open_power::witherspoon::fault
33namespace sdbusplus::error::org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +080034{
Patrick Williams0859a172023-09-01 15:59:54 -050035struct ErrorCode13;
36} // namespace sdbusplus::error::org::open_power::witherspoon::fault
37namespace sdbusplus::error::org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +080038{
Patrick Williams0859a172023-09-01 15:59:54 -050039struct ErrorCode14;
40} // namespace sdbusplus::error::org::open_power::witherspoon::fault
41namespace sdbusplus::error::org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +080042{
Patrick Williams0859a172023-09-01 15:59:54 -050043struct ErrorCode15;
44} // namespace sdbusplus::error::org::open_power::witherspoon::fault
45namespace sdbusplus::error::org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +080046{
Patrick Williams0859a172023-09-01 15:59:54 -050047struct ErrorCode16;
48} // namespace sdbusplus::error::org::open_power::witherspoon::fault
49namespace sdbusplus::error::org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +080050{
Patrick Williams0859a172023-09-01 15:59:54 -050051struct ErrorCode17;
52} // namespace sdbusplus::error::org::open_power::witherspoon::fault
53namespace sdbusplus::error::org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +080054{
Patrick Williams0859a172023-09-01 15:59:54 -050055struct ErrorCode18;
56} // namespace sdbusplus::error::org::open_power::witherspoon::fault
57namespace sdbusplus::error::org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +080058{
Patrick Williams0859a172023-09-01 15:59:54 -050059struct ErrorCode19;
60} // namespace sdbusplus::error::org::open_power::witherspoon::fault
61namespace sdbusplus::error::org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +080062{
63struct ErrorCode2;
Patrick Williams0859a172023-09-01 15:59:54 -050064} // namespace sdbusplus::error::org::open_power::witherspoon::fault
65namespace sdbusplus::error::org::open_power::witherspoon::fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -050066{
Andy YF Wang40247cc2019-09-06 18:30:56 +080067struct ErrorCode20;
Patrick Williams0859a172023-09-01 15:59:54 -050068} // namespace sdbusplus::error::org::open_power::witherspoon::fault
69namespace sdbusplus::error::org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +080070{
71struct ErrorCode21;
Patrick Williams0859a172023-09-01 15:59:54 -050072} // namespace sdbusplus::error::org::open_power::witherspoon::fault
73namespace sdbusplus::error::org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +080074{
75struct ErrorCode22;
Patrick Williams0859a172023-09-01 15:59:54 -050076} // namespace sdbusplus::error::org::open_power::witherspoon::fault
77namespace sdbusplus::error::org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +080078{
79struct ErrorCode23;
Patrick Williams0859a172023-09-01 15:59:54 -050080} // namespace sdbusplus::error::org::open_power::witherspoon::fault
81namespace sdbusplus::error::org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +080082{
83struct ErrorCode24;
Patrick Williams0859a172023-09-01 15:59:54 -050084} // namespace sdbusplus::error::org::open_power::witherspoon::fault
85namespace sdbusplus::error::org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +080086{
87struct ErrorCode25;
Patrick Williams0859a172023-09-01 15:59:54 -050088} // namespace sdbusplus::error::org::open_power::witherspoon::fault
89namespace sdbusplus::error::org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +080090{
91struct ErrorCode26;
Patrick Williams0859a172023-09-01 15:59:54 -050092} // namespace sdbusplus::error::org::open_power::witherspoon::fault
93namespace sdbusplus::error::org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +080094{
95struct ErrorCode27;
Patrick Williams0859a172023-09-01 15:59:54 -050096} // namespace sdbusplus::error::org::open_power::witherspoon::fault
97namespace sdbusplus::error::org::open_power::witherspoon::fault
98{
99struct ErrorCode28;
100} // namespace sdbusplus::error::org::open_power::witherspoon::fault
101namespace sdbusplus::error::org::open_power::witherspoon::fault
102{
103struct ErrorCode29;
104} // namespace sdbusplus::error::org::open_power::witherspoon::fault
105namespace sdbusplus::error::org::open_power::witherspoon::fault
106{
107struct ErrorCode3;
108} // namespace sdbusplus::error::org::open_power::witherspoon::fault
109namespace sdbusplus::error::org::open_power::witherspoon::fault
110{
111struct ErrorCode30;
112} // namespace sdbusplus::error::org::open_power::witherspoon::fault
113namespace sdbusplus::error::org::open_power::witherspoon::fault
114{
115struct ErrorCode31;
116} // namespace sdbusplus::error::org::open_power::witherspoon::fault
117namespace sdbusplus::error::org::open_power::witherspoon::fault
118{
119struct ErrorCode32;
120} // namespace sdbusplus::error::org::open_power::witherspoon::fault
121namespace sdbusplus::error::org::open_power::witherspoon::fault
122{
123struct ErrorCode33;
124} // namespace sdbusplus::error::org::open_power::witherspoon::fault
125namespace sdbusplus::error::org::open_power::witherspoon::fault
126{
127struct ErrorCode34;
128} // namespace sdbusplus::error::org::open_power::witherspoon::fault
129namespace sdbusplus::error::org::open_power::witherspoon::fault
130{
131struct ErrorCode35;
132} // namespace sdbusplus::error::org::open_power::witherspoon::fault
133namespace sdbusplus::error::org::open_power::witherspoon::fault
134{
135struct ErrorCode36;
136} // namespace sdbusplus::error::org::open_power::witherspoon::fault
137namespace sdbusplus::error::org::open_power::witherspoon::fault
138{
139struct ErrorCode4;
140} // namespace sdbusplus::error::org::open_power::witherspoon::fault
141namespace sdbusplus::error::org::open_power::witherspoon::fault
142{
143struct ErrorCode5;
144} // namespace sdbusplus::error::org::open_power::witherspoon::fault
145namespace sdbusplus::error::org::open_power::witherspoon::fault
146{
147struct ErrorCode6;
148} // namespace sdbusplus::error::org::open_power::witherspoon::fault
149namespace sdbusplus::error::org::open_power::witherspoon::fault
150{
151struct ErrorCode7;
152} // namespace sdbusplus::error::org::open_power::witherspoon::fault
153namespace sdbusplus::error::org::open_power::witherspoon::fault
154{
155struct ErrorCode8;
156} // namespace sdbusplus::error::org::open_power::witherspoon::fault
157namespace sdbusplus::error::org::open_power::witherspoon::fault
158{
159struct ErrorCode9;
160} // namespace sdbusplus::error::org::open_power::witherspoon::fault
161namespace sdbusplus::error::org::open_power::witherspoon::fault
162{
163struct GPUOverTemp;
164} // namespace sdbusplus::error::org::open_power::witherspoon::fault
165namespace sdbusplus::error::org::open_power::witherspoon::fault
166{
167struct GPUPowerFault;
168} // namespace sdbusplus::error::org::open_power::witherspoon::fault
169namespace sdbusplus::error::org::open_power::witherspoon::fault
170{
171struct MemoryPowerFault;
172} // namespace sdbusplus::error::org::open_power::witherspoon::fault
173namespace sdbusplus::error::org::open_power::witherspoon::fault
174{
175struct PowerOnFailure;
176} // namespace sdbusplus::error::org::open_power::witherspoon::fault
177namespace sdbusplus::error::org::open_power::witherspoon::fault
178{
179struct PowerSequencerFault;
180} // namespace sdbusplus::error::org::open_power::witherspoon::fault
181namespace sdbusplus::error::org::open_power::witherspoon::fault
182{
183struct PowerSequencerPGOODFault;
184} // namespace sdbusplus::error::org::open_power::witherspoon::fault
185namespace sdbusplus::error::org::open_power::witherspoon::fault
186{
187struct PowerSequencerVoltageFault;
188} // namespace sdbusplus::error::org::open_power::witherspoon::fault
189namespace sdbusplus::error::org::open_power::witherspoon::fault
190{
191struct PowerSupplyFanFault;
192} // namespace sdbusplus::error::org::open_power::witherspoon::fault
193namespace sdbusplus::error::org::open_power::witherspoon::fault
194{
195struct PowerSupplyInputFault;
196} // namespace sdbusplus::error::org::open_power::witherspoon::fault
197namespace sdbusplus::error::org::open_power::witherspoon::fault
198{
199struct PowerSupplyOutputOvercurrent;
200} // namespace sdbusplus::error::org::open_power::witherspoon::fault
201namespace sdbusplus::error::org::open_power::witherspoon::fault
202{
203struct PowerSupplyOutputOvervoltage;
204} // namespace sdbusplus::error::org::open_power::witherspoon::fault
205namespace sdbusplus::error::org::open_power::witherspoon::fault
206{
207struct PowerSupplyShouldBeOn;
208} // namespace sdbusplus::error::org::open_power::witherspoon::fault
209namespace sdbusplus::error::org::open_power::witherspoon::fault
210{
211struct PowerSupplyTemperatureFault;
212} // namespace sdbusplus::error::org::open_power::witherspoon::fault
213namespace sdbusplus::error::org::open_power::witherspoon::fault
214{
215struct Shutdown;
216} // namespace sdbusplus::error::org::open_power::witherspoon::fault
217namespace sdbusplus::error::xyz::openbmc_project::common::callout
218{
219struct Device;
220} // namespace sdbusplus::error::xyz::openbmc_project::common::callout
221namespace sdbusplus::error::xyz::openbmc_project::common::callout
222{
223struct GPIO;
224} // namespace sdbusplus::error::xyz::openbmc_project::common::callout
225namespace sdbusplus::error::xyz::openbmc_project::common::callout
226{
227struct IIC;
228} // namespace sdbusplus::error::xyz::openbmc_project::common::callout
229namespace sdbusplus::error::xyz::openbmc_project::common::callout
230{
231struct IPMISensor;
232} // namespace sdbusplus::error::xyz::openbmc_project::common::callout
233namespace sdbusplus::error::xyz::openbmc_project::common::callout
234{
235struct Inventory;
236} // namespace sdbusplus::error::xyz::openbmc_project::common::callout
Matt Spinler84cd0a52017-08-04 08:53:30 -0500237
Patrick Williams0859a172023-09-01 15:59:54 -0500238namespace phosphor::logging
Matt Spinler84cd0a52017-08-04 08:53:30 -0500239{
240
Patrick Williams0859a172023-09-01 15:59:54 -0500241namespace org::open_power::witherspoon::fault
Matt Spinler84cd0a52017-08-04 08:53:30 -0500242{
243
Andy YF Wang40247cc2019-09-06 18:30:56 +0800244struct Shutdown
245{
246 static constexpr auto L = level::ERR;
247 using metadata_types = std::tuple<>;
248};
249
Patrick Williams0859a172023-09-01 15:59:54 -0500250} // namespace org::open_power::witherspoon::fault
251
252#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
253namespace org::open_power::Witherspoon::Fault
254{
255using Shutdown =
256 phosphor::logging::org::open_power::witherspoon::fault::Shutdown;
257}
258#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800259
260namespace details
261{
262
263template <>
264struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500265 sdbusplus::error::org::open_power::witherspoon::fault::Shutdown>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800266{
Patrick Williams0859a172023-09-01 15:59:54 -0500267 using type =
268 phosphor::logging::org::open_power::witherspoon::fault::Shutdown;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800269};
270
271} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500272namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800273{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800274
275struct PowerOnFailure
276{
277 static constexpr auto L = level::ERR;
278 using metadata_types = std::tuple<>;
279};
280
Patrick Williams0859a172023-09-01 15:59:54 -0500281} // namespace org::open_power::witherspoon::fault
282
283#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
284namespace org::open_power::Witherspoon::Fault
285{
286using PowerOnFailure =
287 phosphor::logging::org::open_power::witherspoon::fault::PowerOnFailure;
288}
289#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800290
291namespace details
292{
293
294template <>
295struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500296 sdbusplus::error::org::open_power::witherspoon::fault::PowerOnFailure>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800297{
Patrick Williams0859a172023-09-01 15:59:54 -0500298 using type =
299 phosphor::logging::org::open_power::witherspoon::fault::PowerOnFailure;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800300};
301
302} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500303namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800304{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800305
306struct ErrorCode0
307{
308 static constexpr auto L = level::ERR;
309 using metadata_types = std::tuple<>;
310};
311
Patrick Williams0859a172023-09-01 15:59:54 -0500312} // namespace org::open_power::witherspoon::fault
313
314#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
315namespace org::open_power::Witherspoon::Fault
316{
317using ErrorCode0 =
318 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode0;
319}
320#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800321
322namespace details
323{
324
325template <>
326struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500327 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode0>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800328{
Patrick Williams0859a172023-09-01 15:59:54 -0500329 using type =
330 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode0;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800331};
332
333} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500334namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800335{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800336
337struct ErrorCode1
338{
339 static constexpr auto L = level::ERR;
340 using metadata_types = std::tuple<>;
341};
342
Patrick Williams0859a172023-09-01 15:59:54 -0500343} // namespace org::open_power::witherspoon::fault
344
345#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
346namespace org::open_power::Witherspoon::Fault
347{
348using ErrorCode1 =
349 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode1;
350}
351#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800352
353namespace details
354{
355
356template <>
357struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500358 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode1>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800359{
Patrick Williams0859a172023-09-01 15:59:54 -0500360 using type =
361 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode1;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800362};
363
364} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500365namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800366{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800367
368struct ErrorCode2
369{
370 static constexpr auto L = level::ERR;
371 using metadata_types = std::tuple<>;
372};
373
Patrick Williams0859a172023-09-01 15:59:54 -0500374} // namespace org::open_power::witherspoon::fault
375
376#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
377namespace org::open_power::Witherspoon::Fault
378{
379using ErrorCode2 =
380 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode2;
381}
382#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800383
384namespace details
385{
386
387template <>
388struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500389 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode2>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800390{
Patrick Williams0859a172023-09-01 15:59:54 -0500391 using type =
392 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode2;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800393};
394
395} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500396namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800397{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800398
399struct ErrorCode3
400{
401 static constexpr auto L = level::ERR;
402 using metadata_types = std::tuple<>;
403};
404
Patrick Williams0859a172023-09-01 15:59:54 -0500405} // namespace org::open_power::witherspoon::fault
406
407#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
408namespace org::open_power::Witherspoon::Fault
409{
410using ErrorCode3 =
411 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode3;
412}
413#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800414
415namespace details
416{
417
418template <>
419struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500420 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode3>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800421{
Patrick Williams0859a172023-09-01 15:59:54 -0500422 using type =
423 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode3;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800424};
425
426} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500427namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800428{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800429
430struct ErrorCode4
431{
432 static constexpr auto L = level::ERR;
433 using metadata_types = std::tuple<>;
434};
435
Patrick Williams0859a172023-09-01 15:59:54 -0500436} // namespace org::open_power::witherspoon::fault
437
438#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
439namespace org::open_power::Witherspoon::Fault
440{
441using ErrorCode4 =
442 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode4;
443}
444#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800445
446namespace details
447{
448
449template <>
450struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500451 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode4>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800452{
Patrick Williams0859a172023-09-01 15:59:54 -0500453 using type =
454 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode4;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800455};
456
457} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500458namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800459{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800460
461struct ErrorCode5
462{
463 static constexpr auto L = level::ERR;
464 using metadata_types = std::tuple<>;
465};
466
Patrick Williams0859a172023-09-01 15:59:54 -0500467} // namespace org::open_power::witherspoon::fault
468
469#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
470namespace org::open_power::Witherspoon::Fault
471{
472using ErrorCode5 =
473 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode5;
474}
475#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800476
477namespace details
478{
479
480template <>
481struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500482 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode5>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800483{
Patrick Williams0859a172023-09-01 15:59:54 -0500484 using type =
485 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode5;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800486};
487
488} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500489namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800490{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800491
492struct ErrorCode6
493{
494 static constexpr auto L = level::ERR;
495 using metadata_types = std::tuple<>;
496};
497
Patrick Williams0859a172023-09-01 15:59:54 -0500498} // namespace org::open_power::witherspoon::fault
499
500#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
501namespace org::open_power::Witherspoon::Fault
502{
503using ErrorCode6 =
504 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode6;
505}
506#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800507
508namespace details
509{
510
511template <>
512struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500513 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode6>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800514{
Patrick Williams0859a172023-09-01 15:59:54 -0500515 using type =
516 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode6;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800517};
518
519} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500520namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800521{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800522
523struct ErrorCode7
524{
525 static constexpr auto L = level::ERR;
526 using metadata_types = std::tuple<>;
527};
528
Patrick Williams0859a172023-09-01 15:59:54 -0500529} // namespace org::open_power::witherspoon::fault
530
531#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
532namespace org::open_power::Witherspoon::Fault
533{
534using ErrorCode7 =
535 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode7;
536}
537#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800538
539namespace details
540{
541
542template <>
543struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500544 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode7>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800545{
Patrick Williams0859a172023-09-01 15:59:54 -0500546 using type =
547 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode7;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800548};
549
550} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500551namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800552{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800553
554struct ErrorCode8
555{
556 static constexpr auto L = level::ERR;
557 using metadata_types = std::tuple<>;
558};
559
Patrick Williams0859a172023-09-01 15:59:54 -0500560} // namespace org::open_power::witherspoon::fault
561
562#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
563namespace org::open_power::Witherspoon::Fault
564{
565using ErrorCode8 =
566 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode8;
567}
568#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800569
570namespace details
571{
572
573template <>
574struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500575 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode8>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800576{
Patrick Williams0859a172023-09-01 15:59:54 -0500577 using type =
578 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode8;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800579};
580
581} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500582namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800583{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800584
585struct ErrorCode9
586{
587 static constexpr auto L = level::ERR;
588 using metadata_types = std::tuple<>;
589};
590
Patrick Williams0859a172023-09-01 15:59:54 -0500591} // namespace org::open_power::witherspoon::fault
592
593#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
594namespace org::open_power::Witherspoon::Fault
595{
596using ErrorCode9 =
597 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode9;
598}
599#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800600
601namespace details
602{
603
604template <>
605struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500606 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode9>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800607{
Patrick Williams0859a172023-09-01 15:59:54 -0500608 using type =
609 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode9;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800610};
611
612} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500613namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800614{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800615
616struct ErrorCode10
617{
618 static constexpr auto L = level::ERR;
619 using metadata_types = std::tuple<>;
620};
621
Patrick Williams0859a172023-09-01 15:59:54 -0500622} // namespace org::open_power::witherspoon::fault
623
624#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
625namespace org::open_power::Witherspoon::Fault
626{
627using ErrorCode10 =
628 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode10;
629}
630#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800631
632namespace details
633{
634
635template <>
636struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500637 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode10>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800638{
Patrick Williams0859a172023-09-01 15:59:54 -0500639 using type =
640 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode10;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800641};
642
643} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500644namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800645{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800646
647struct ErrorCode11
648{
649 static constexpr auto L = level::ERR;
650 using metadata_types = std::tuple<>;
651};
652
Patrick Williams0859a172023-09-01 15:59:54 -0500653} // namespace org::open_power::witherspoon::fault
654
655#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
656namespace org::open_power::Witherspoon::Fault
657{
658using ErrorCode11 =
659 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode11;
660}
661#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800662
663namespace details
664{
665
666template <>
667struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500668 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode11>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800669{
Patrick Williams0859a172023-09-01 15:59:54 -0500670 using type =
671 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode11;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800672};
673
674} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500675namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800676{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800677
678struct ErrorCode12
679{
680 static constexpr auto L = level::ERR;
681 using metadata_types = std::tuple<>;
682};
683
Patrick Williams0859a172023-09-01 15:59:54 -0500684} // namespace org::open_power::witherspoon::fault
685
686#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
687namespace org::open_power::Witherspoon::Fault
688{
689using ErrorCode12 =
690 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode12;
691}
692#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800693
694namespace details
695{
696
697template <>
698struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500699 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode12>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800700{
Patrick Williams0859a172023-09-01 15:59:54 -0500701 using type =
702 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode12;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800703};
704
705} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500706namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800707{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800708
709struct ErrorCode13
710{
711 static constexpr auto L = level::ERR;
712 using metadata_types = std::tuple<>;
713};
714
Patrick Williams0859a172023-09-01 15:59:54 -0500715} // namespace org::open_power::witherspoon::fault
716
717#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
718namespace org::open_power::Witherspoon::Fault
719{
720using ErrorCode13 =
721 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode13;
722}
723#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800724
725namespace details
726{
727
728template <>
729struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500730 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode13>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800731{
Patrick Williams0859a172023-09-01 15:59:54 -0500732 using type =
733 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode13;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800734};
735
736} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500737namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800738{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800739
740struct ErrorCode14
741{
742 static constexpr auto L = level::ERR;
743 using metadata_types = std::tuple<>;
744};
745
Patrick Williams0859a172023-09-01 15:59:54 -0500746} // namespace org::open_power::witherspoon::fault
747
748#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
749namespace org::open_power::Witherspoon::Fault
750{
751using ErrorCode14 =
752 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode14;
753}
754#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800755
756namespace details
757{
758
759template <>
760struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500761 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode14>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800762{
Patrick Williams0859a172023-09-01 15:59:54 -0500763 using type =
764 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode14;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800765};
766
767} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500768namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800769{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800770
771struct ErrorCode15
772{
773 static constexpr auto L = level::ERR;
774 using metadata_types = std::tuple<>;
775};
776
Patrick Williams0859a172023-09-01 15:59:54 -0500777} // namespace org::open_power::witherspoon::fault
778
779#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
780namespace org::open_power::Witherspoon::Fault
781{
782using ErrorCode15 =
783 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode15;
784}
785#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800786
787namespace details
788{
789
790template <>
791struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500792 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode15>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800793{
Patrick Williams0859a172023-09-01 15:59:54 -0500794 using type =
795 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode15;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800796};
797
798} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500799namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800800{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800801
802struct ErrorCode16
803{
804 static constexpr auto L = level::ERR;
805 using metadata_types = std::tuple<>;
806};
807
Patrick Williams0859a172023-09-01 15:59:54 -0500808} // namespace org::open_power::witherspoon::fault
809
810#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
811namespace org::open_power::Witherspoon::Fault
812{
813using ErrorCode16 =
814 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode16;
815}
816#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800817
818namespace details
819{
820
821template <>
822struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500823 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode16>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800824{
Patrick Williams0859a172023-09-01 15:59:54 -0500825 using type =
826 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode16;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800827};
828
829} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500830namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800831{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800832
833struct ErrorCode17
834{
835 static constexpr auto L = level::ERR;
836 using metadata_types = std::tuple<>;
837};
838
Patrick Williams0859a172023-09-01 15:59:54 -0500839} // namespace org::open_power::witherspoon::fault
840
841#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
842namespace org::open_power::Witherspoon::Fault
843{
844using ErrorCode17 =
845 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode17;
846}
847#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800848
849namespace details
850{
851
852template <>
853struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500854 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode17>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800855{
Patrick Williams0859a172023-09-01 15:59:54 -0500856 using type =
857 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode17;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800858};
859
860} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500861namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800862{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800863
864struct ErrorCode18
865{
866 static constexpr auto L = level::ERR;
867 using metadata_types = std::tuple<>;
868};
869
Patrick Williams0859a172023-09-01 15:59:54 -0500870} // namespace org::open_power::witherspoon::fault
871
872#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
873namespace org::open_power::Witherspoon::Fault
874{
875using ErrorCode18 =
876 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode18;
877}
878#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800879
880namespace details
881{
882
883template <>
884struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500885 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode18>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800886{
Patrick Williams0859a172023-09-01 15:59:54 -0500887 using type =
888 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode18;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800889};
890
891} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500892namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800893{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800894
895struct ErrorCode19
896{
897 static constexpr auto L = level::ERR;
898 using metadata_types = std::tuple<>;
899};
900
Patrick Williams0859a172023-09-01 15:59:54 -0500901} // namespace org::open_power::witherspoon::fault
902
903#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
904namespace org::open_power::Witherspoon::Fault
905{
906using ErrorCode19 =
907 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode19;
908}
909#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800910
911namespace details
912{
913
914template <>
915struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500916 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode19>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800917{
Patrick Williams0859a172023-09-01 15:59:54 -0500918 using type =
919 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode19;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800920};
921
922} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500923namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800924{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800925
926struct ErrorCode20
927{
928 static constexpr auto L = level::ERR;
929 using metadata_types = std::tuple<>;
930};
931
Patrick Williams0859a172023-09-01 15:59:54 -0500932} // namespace org::open_power::witherspoon::fault
933
934#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
935namespace org::open_power::Witherspoon::Fault
936{
937using ErrorCode20 =
938 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode20;
939}
940#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800941
942namespace details
943{
944
945template <>
946struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500947 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode20>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800948{
Patrick Williams0859a172023-09-01 15:59:54 -0500949 using type =
950 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode20;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800951};
952
953} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500954namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800955{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800956
957struct ErrorCode21
958{
959 static constexpr auto L = level::ERR;
960 using metadata_types = std::tuple<>;
961};
962
Patrick Williams0859a172023-09-01 15:59:54 -0500963} // namespace org::open_power::witherspoon::fault
964
965#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
966namespace org::open_power::Witherspoon::Fault
967{
968using ErrorCode21 =
969 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode21;
970}
971#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800972
973namespace details
974{
975
976template <>
977struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500978 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode21>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800979{
Patrick Williams0859a172023-09-01 15:59:54 -0500980 using type =
981 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode21;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800982};
983
984} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500985namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800986{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800987
988struct ErrorCode22
989{
990 static constexpr auto L = level::ERR;
991 using metadata_types = std::tuple<>;
992};
993
Patrick Williams0859a172023-09-01 15:59:54 -0500994} // namespace org::open_power::witherspoon::fault
995
996#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
997namespace org::open_power::Witherspoon::Fault
998{
999using ErrorCode22 =
1000 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode22;
1001}
1002#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +08001003
1004namespace details
1005{
1006
1007template <>
1008struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05001009 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode22>
Andy YF Wang40247cc2019-09-06 18:30:56 +08001010{
Patrick Williams0859a172023-09-01 15:59:54 -05001011 using type =
1012 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode22;
Andy YF Wang40247cc2019-09-06 18:30:56 +08001013};
1014
1015} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001016namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +08001017{
Andy YF Wang40247cc2019-09-06 18:30:56 +08001018
1019struct ErrorCode23
1020{
1021 static constexpr auto L = level::ERR;
1022 using metadata_types = std::tuple<>;
1023};
1024
Patrick Williams0859a172023-09-01 15:59:54 -05001025} // namespace org::open_power::witherspoon::fault
1026
1027#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1028namespace org::open_power::Witherspoon::Fault
1029{
1030using ErrorCode23 =
1031 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode23;
1032}
1033#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +08001034
1035namespace details
1036{
1037
1038template <>
1039struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05001040 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode23>
Andy YF Wang40247cc2019-09-06 18:30:56 +08001041{
Patrick Williams0859a172023-09-01 15:59:54 -05001042 using type =
1043 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode23;
Andy YF Wang40247cc2019-09-06 18:30:56 +08001044};
1045
1046} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001047namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +08001048{
Andy YF Wang40247cc2019-09-06 18:30:56 +08001049
1050struct ErrorCode24
1051{
1052 static constexpr auto L = level::ERR;
1053 using metadata_types = std::tuple<>;
1054};
1055
Patrick Williams0859a172023-09-01 15:59:54 -05001056} // namespace org::open_power::witherspoon::fault
1057
1058#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1059namespace org::open_power::Witherspoon::Fault
1060{
1061using ErrorCode24 =
1062 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode24;
1063}
1064#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +08001065
1066namespace details
1067{
1068
1069template <>
1070struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05001071 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode24>
Andy YF Wang40247cc2019-09-06 18:30:56 +08001072{
Patrick Williams0859a172023-09-01 15:59:54 -05001073 using type =
1074 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode24;
Andy YF Wang40247cc2019-09-06 18:30:56 +08001075};
1076
1077} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001078namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +08001079{
Andy YF Wang40247cc2019-09-06 18:30:56 +08001080
1081struct ErrorCode25
1082{
1083 static constexpr auto L = level::ERR;
1084 using metadata_types = std::tuple<>;
1085};
1086
Patrick Williams0859a172023-09-01 15:59:54 -05001087} // namespace org::open_power::witherspoon::fault
1088
1089#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1090namespace org::open_power::Witherspoon::Fault
1091{
1092using ErrorCode25 =
1093 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode25;
1094}
1095#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +08001096
1097namespace details
1098{
1099
1100template <>
1101struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05001102 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode25>
Andy YF Wang40247cc2019-09-06 18:30:56 +08001103{
Patrick Williams0859a172023-09-01 15:59:54 -05001104 using type =
1105 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode25;
Andy YF Wang40247cc2019-09-06 18:30:56 +08001106};
1107
1108} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001109namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +08001110{
Andy YF Wang40247cc2019-09-06 18:30:56 +08001111
1112struct ErrorCode26
1113{
1114 static constexpr auto L = level::ERR;
1115 using metadata_types = std::tuple<>;
1116};
1117
Patrick Williams0859a172023-09-01 15:59:54 -05001118} // namespace org::open_power::witherspoon::fault
1119
1120#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1121namespace org::open_power::Witherspoon::Fault
1122{
1123using ErrorCode26 =
1124 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode26;
1125}
1126#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +08001127
1128namespace details
1129{
1130
1131template <>
1132struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05001133 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode26>
Andy YF Wang40247cc2019-09-06 18:30:56 +08001134{
Patrick Williams0859a172023-09-01 15:59:54 -05001135 using type =
1136 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode26;
Andy YF Wang40247cc2019-09-06 18:30:56 +08001137};
1138
1139} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001140namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +08001141{
Andy YF Wang40247cc2019-09-06 18:30:56 +08001142
1143struct ErrorCode27
1144{
1145 static constexpr auto L = level::ERR;
1146 using metadata_types = std::tuple<>;
1147};
1148
Patrick Williams0859a172023-09-01 15:59:54 -05001149} // namespace org::open_power::witherspoon::fault
1150
1151#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1152namespace org::open_power::Witherspoon::Fault
1153{
1154using ErrorCode27 =
1155 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode27;
1156}
1157#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +08001158
1159namespace details
1160{
1161
1162template <>
1163struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05001164 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode27>
Andy YF Wang40247cc2019-09-06 18:30:56 +08001165{
Patrick Williams0859a172023-09-01 15:59:54 -05001166 using type =
1167 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode27;
Andy YF Wang40247cc2019-09-06 18:30:56 +08001168};
1169
1170} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001171namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +08001172{
Andy YF Wang40247cc2019-09-06 18:30:56 +08001173
1174struct ErrorCode28
1175{
1176 static constexpr auto L = level::ERR;
1177 using metadata_types = std::tuple<>;
1178};
1179
Patrick Williams0859a172023-09-01 15:59:54 -05001180} // namespace org::open_power::witherspoon::fault
1181
1182#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1183namespace org::open_power::Witherspoon::Fault
1184{
1185using ErrorCode28 =
1186 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode28;
1187}
1188#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +08001189
1190namespace details
1191{
1192
1193template <>
1194struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05001195 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode28>
Andy YF Wang40247cc2019-09-06 18:30:56 +08001196{
Patrick Williams0859a172023-09-01 15:59:54 -05001197 using type =
1198 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode28;
Andy YF Wang40247cc2019-09-06 18:30:56 +08001199};
1200
1201} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001202namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +08001203{
Andy YF Wang40247cc2019-09-06 18:30:56 +08001204
1205struct ErrorCode29
1206{
1207 static constexpr auto L = level::ERR;
1208 using metadata_types = std::tuple<>;
1209};
1210
Patrick Williams0859a172023-09-01 15:59:54 -05001211} // namespace org::open_power::witherspoon::fault
1212
1213#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1214namespace org::open_power::Witherspoon::Fault
1215{
1216using ErrorCode29 =
1217 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode29;
1218}
1219#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +08001220
1221namespace details
1222{
1223
1224template <>
1225struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05001226 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode29>
Andy YF Wang40247cc2019-09-06 18:30:56 +08001227{
Patrick Williams0859a172023-09-01 15:59:54 -05001228 using type =
1229 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode29;
Andy YF Wang40247cc2019-09-06 18:30:56 +08001230};
1231
1232} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001233namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +08001234{
Andy YF Wang40247cc2019-09-06 18:30:56 +08001235
1236struct ErrorCode30
1237{
1238 static constexpr auto L = level::ERR;
1239 using metadata_types = std::tuple<>;
1240};
1241
Patrick Williams0859a172023-09-01 15:59:54 -05001242} // namespace org::open_power::witherspoon::fault
1243
1244#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1245namespace org::open_power::Witherspoon::Fault
1246{
1247using ErrorCode30 =
1248 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode30;
1249}
1250#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +08001251
1252namespace details
1253{
1254
1255template <>
1256struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05001257 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode30>
Andy YF Wang40247cc2019-09-06 18:30:56 +08001258{
Patrick Williams0859a172023-09-01 15:59:54 -05001259 using type =
1260 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode30;
Andy YF Wang40247cc2019-09-06 18:30:56 +08001261};
1262
1263} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001264namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +08001265{
Andy YF Wang40247cc2019-09-06 18:30:56 +08001266
1267struct ErrorCode31
1268{
1269 static constexpr auto L = level::ERR;
1270 using metadata_types = std::tuple<>;
1271};
1272
Patrick Williams0859a172023-09-01 15:59:54 -05001273} // namespace org::open_power::witherspoon::fault
1274
1275#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1276namespace org::open_power::Witherspoon::Fault
1277{
1278using ErrorCode31 =
1279 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode31;
1280}
1281#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +08001282
1283namespace details
1284{
1285
1286template <>
1287struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05001288 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode31>
Andy YF Wang40247cc2019-09-06 18:30:56 +08001289{
Patrick Williams0859a172023-09-01 15:59:54 -05001290 using type =
1291 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode31;
Andy YF Wang40247cc2019-09-06 18:30:56 +08001292};
1293
1294} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001295namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +08001296{
Andy YF Wang40247cc2019-09-06 18:30:56 +08001297
1298struct ErrorCode32
1299{
1300 static constexpr auto L = level::ERR;
1301 using metadata_types = std::tuple<>;
1302};
1303
Patrick Williams0859a172023-09-01 15:59:54 -05001304} // namespace org::open_power::witherspoon::fault
1305
1306#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1307namespace org::open_power::Witherspoon::Fault
1308{
1309using ErrorCode32 =
1310 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode32;
1311}
1312#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +08001313
1314namespace details
1315{
1316
1317template <>
1318struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05001319 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode32>
Andy YF Wang40247cc2019-09-06 18:30:56 +08001320{
Patrick Williams0859a172023-09-01 15:59:54 -05001321 using type =
1322 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode32;
Andy YF Wang40247cc2019-09-06 18:30:56 +08001323};
1324
1325} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001326namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +08001327{
Andy YF Wang40247cc2019-09-06 18:30:56 +08001328
1329struct ErrorCode33
1330{
1331 static constexpr auto L = level::ERR;
1332 using metadata_types = std::tuple<>;
1333};
1334
Patrick Williams0859a172023-09-01 15:59:54 -05001335} // namespace org::open_power::witherspoon::fault
1336
1337#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1338namespace org::open_power::Witherspoon::Fault
1339{
1340using ErrorCode33 =
1341 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode33;
1342}
1343#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +08001344
1345namespace details
1346{
1347
1348template <>
1349struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05001350 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode33>
Andy YF Wang40247cc2019-09-06 18:30:56 +08001351{
Patrick Williams0859a172023-09-01 15:59:54 -05001352 using type =
1353 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode33;
Andy YF Wang40247cc2019-09-06 18:30:56 +08001354};
1355
1356} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001357namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +08001358{
Andy YF Wang40247cc2019-09-06 18:30:56 +08001359
1360struct ErrorCode34
1361{
1362 static constexpr auto L = level::ERR;
1363 using metadata_types = std::tuple<>;
1364};
1365
Patrick Williams0859a172023-09-01 15:59:54 -05001366} // namespace org::open_power::witherspoon::fault
1367
1368#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1369namespace org::open_power::Witherspoon::Fault
1370{
1371using ErrorCode34 =
1372 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode34;
1373}
1374#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +08001375
1376namespace details
1377{
1378
1379template <>
1380struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05001381 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode34>
Andy YF Wang40247cc2019-09-06 18:30:56 +08001382{
Patrick Williams0859a172023-09-01 15:59:54 -05001383 using type =
1384 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode34;
Andy YF Wang40247cc2019-09-06 18:30:56 +08001385};
1386
1387} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001388namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +08001389{
Andy YF Wang40247cc2019-09-06 18:30:56 +08001390
1391struct ErrorCode35
1392{
1393 static constexpr auto L = level::ERR;
1394 using metadata_types = std::tuple<>;
1395};
1396
Patrick Williams0859a172023-09-01 15:59:54 -05001397} // namespace org::open_power::witherspoon::fault
1398
1399#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1400namespace org::open_power::Witherspoon::Fault
1401{
1402using ErrorCode35 =
1403 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode35;
1404}
1405#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +08001406
1407namespace details
1408{
1409
1410template <>
1411struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05001412 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode35>
Andy YF Wang40247cc2019-09-06 18:30:56 +08001413{
Patrick Williams0859a172023-09-01 15:59:54 -05001414 using type =
1415 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode35;
Andy YF Wang40247cc2019-09-06 18:30:56 +08001416};
1417
1418} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001419namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +08001420{
Andy YF Wang40247cc2019-09-06 18:30:56 +08001421
1422struct ErrorCode36
1423{
1424 static constexpr auto L = level::ERR;
1425 using metadata_types = std::tuple<>;
1426};
1427
Patrick Williams0859a172023-09-01 15:59:54 -05001428} // namespace org::open_power::witherspoon::fault
1429
1430#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1431namespace org::open_power::Witherspoon::Fault
1432{
1433using ErrorCode36 =
1434 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode36;
1435}
1436#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +08001437
1438namespace details
1439{
1440
1441template <>
1442struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05001443 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode36>
Andy YF Wang40247cc2019-09-06 18:30:56 +08001444{
Patrick Williams0859a172023-09-01 15:59:54 -05001445 using type =
1446 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode36;
Andy YF Wang40247cc2019-09-06 18:30:56 +08001447};
1448
1449} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001450namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +08001451{
1452namespace _PowerSequencerVoltageFault
1453{
Andy YF Wang40247cc2019-09-06 18:30:56 +08001454struct RAIL
1455{
1456 /*
1457 * We can't use -fsanitize=undefined if we declare a
1458 * 'static constexpr auto str' member, so don't. Instead, open-code the
1459 * mako template lookups.
1460 */
1461 static constexpr auto str_short = "RAIL";
1462 using type = std::tuple<std::decay_t<decltype("RAIL=%d")>, uint16_t>;
1463 explicit constexpr RAIL(uint16_t a) : _entry(entry("RAIL=%d", a)){};
1464 type _entry;
1465};
1466struct RAIL_NAME
1467{
1468 /*
1469 * We can't use -fsanitize=undefined if we declare a
1470 * 'static constexpr auto str' member, so don't. Instead, open-code the
1471 * mako template lookups.
1472 */
1473 static constexpr auto str_short = "RAIL_NAME";
1474 using type =
1475 std::tuple<std::decay_t<decltype("RAIL_NAME=%s")>, const char*>;
1476 explicit constexpr RAIL_NAME(const char* a) :
1477 _entry(entry("RAIL_NAME=%s", a)){};
1478 type _entry;
1479};
1480struct RAW_STATUS
1481{
1482 /*
1483 * We can't use -fsanitize=undefined if we declare a
1484 * 'static constexpr auto str' member, so don't. Instead, open-code the
1485 * mako template lookups.
1486 */
1487 static constexpr auto str_short = "RAW_STATUS";
1488 using type =
1489 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
1490 explicit constexpr RAW_STATUS(const char* a) :
1491 _entry(entry("RAW_STATUS=%s", a)){};
1492 type _entry;
1493};
Andy YF Wang40247cc2019-09-06 18:30:56 +08001494} // namespace _PowerSequencerVoltageFault
1495
1496struct PowerSequencerVoltageFault
1497{
1498 static constexpr auto L = level::ERR;
1499 using RAIL = _PowerSequencerVoltageFault::RAIL;
1500 using RAIL_NAME = _PowerSequencerVoltageFault::RAIL_NAME;
1501 using RAW_STATUS = _PowerSequencerVoltageFault::RAW_STATUS;
1502 using metadata_types = std::tuple<RAIL, RAIL_NAME, RAW_STATUS>;
1503};
1504
Patrick Williams0859a172023-09-01 15:59:54 -05001505} // namespace org::open_power::witherspoon::fault
1506
1507#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1508namespace org::open_power::Witherspoon::Fault
1509{
1510using PowerSequencerVoltageFault = phosphor::logging::org::open_power::
1511 witherspoon::fault::PowerSequencerVoltageFault;
1512}
1513#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +08001514
1515namespace details
1516{
1517
1518template <>
Patrick Williams0859a172023-09-01 15:59:54 -05001519struct map_exception_type<sdbusplus::error::org::open_power::witherspoon::
1520 fault::PowerSequencerVoltageFault>
Andy YF Wang40247cc2019-09-06 18:30:56 +08001521{
Patrick Williams0859a172023-09-01 15:59:54 -05001522 using type = phosphor::logging::org::open_power::witherspoon::fault::
1523 PowerSequencerVoltageFault;
Andy YF Wang40247cc2019-09-06 18:30:56 +08001524};
1525
1526} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001527namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +08001528{
1529namespace _PowerSequencerPGOODFault
1530{
Andy YF Wang40247cc2019-09-06 18:30:56 +08001531struct INPUT_NUM
1532{
1533 /*
1534 * We can't use -fsanitize=undefined if we declare a
1535 * 'static constexpr auto str' member, so don't. Instead, open-code the
1536 * mako template lookups.
1537 */
1538 static constexpr auto str_short = "INPUT_NUM";
1539 using type = std::tuple<std::decay_t<decltype("INPUT_NUM=%d")>, uint16_t>;
1540 explicit constexpr INPUT_NUM(uint16_t a) :
1541 _entry(entry("INPUT_NUM=%d", a)){};
1542 type _entry;
1543};
1544struct INPUT_NAME
1545{
1546 /*
1547 * We can't use -fsanitize=undefined if we declare a
1548 * 'static constexpr auto str' member, so don't. Instead, open-code the
1549 * mako template lookups.
1550 */
1551 static constexpr auto str_short = "INPUT_NAME";
1552 using type =
1553 std::tuple<std::decay_t<decltype("INPUT_NAME=%s")>, const char*>;
1554 explicit constexpr INPUT_NAME(const char* a) :
1555 _entry(entry("INPUT_NAME=%s", a)){};
1556 type _entry;
1557};
1558struct RAW_STATUS
1559{
1560 /*
1561 * We can't use -fsanitize=undefined if we declare a
1562 * 'static constexpr auto str' member, so don't. Instead, open-code the
1563 * mako template lookups.
1564 */
1565 static constexpr auto str_short = "RAW_STATUS";
1566 using type =
1567 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
1568 explicit constexpr RAW_STATUS(const char* a) :
1569 _entry(entry("RAW_STATUS=%s", a)){};
1570 type _entry;
1571};
Andy YF Wang40247cc2019-09-06 18:30:56 +08001572} // namespace _PowerSequencerPGOODFault
1573
1574struct PowerSequencerPGOODFault
1575{
1576 static constexpr auto L = level::ERR;
1577 using INPUT_NUM = _PowerSequencerPGOODFault::INPUT_NUM;
1578 using INPUT_NAME = _PowerSequencerPGOODFault::INPUT_NAME;
1579 using RAW_STATUS = _PowerSequencerPGOODFault::RAW_STATUS;
1580 using metadata_types = std::tuple<INPUT_NUM, INPUT_NAME, RAW_STATUS>;
1581};
1582
Patrick Williams0859a172023-09-01 15:59:54 -05001583} // namespace org::open_power::witherspoon::fault
1584
1585#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1586namespace org::open_power::Witherspoon::Fault
1587{
1588using PowerSequencerPGOODFault = phosphor::logging::org::open_power::
1589 witherspoon::fault::PowerSequencerPGOODFault;
1590}
1591#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +08001592
1593namespace details
1594{
1595
1596template <>
Patrick Williams0859a172023-09-01 15:59:54 -05001597struct map_exception_type<sdbusplus::error::org::open_power::witherspoon::
1598 fault::PowerSequencerPGOODFault>
Andy YF Wang40247cc2019-09-06 18:30:56 +08001599{
Patrick Williams0859a172023-09-01 15:59:54 -05001600 using type = phosphor::logging::org::open_power::witherspoon::fault::
1601 PowerSequencerPGOODFault;
Andy YF Wang40247cc2019-09-06 18:30:56 +08001602};
1603
1604} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001605namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +08001606{
1607namespace _PowerSequencerFault
1608{
Andy YF Wang40247cc2019-09-06 18:30:56 +08001609struct RAW_STATUS
1610{
1611 /*
1612 * We can't use -fsanitize=undefined if we declare a
1613 * 'static constexpr auto str' member, so don't. Instead, open-code the
1614 * mako template lookups.
1615 */
1616 static constexpr auto str_short = "RAW_STATUS";
1617 using type =
1618 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
1619 explicit constexpr RAW_STATUS(const char* a) :
1620 _entry(entry("RAW_STATUS=%s", a)){};
1621 type _entry;
1622};
Andy YF Wang40247cc2019-09-06 18:30:56 +08001623} // namespace _PowerSequencerFault
1624
1625struct PowerSequencerFault
1626{
1627 static constexpr auto L = level::ERR;
1628 using RAW_STATUS = _PowerSequencerFault::RAW_STATUS;
1629 using metadata_types = std::tuple<RAW_STATUS>;
1630};
1631
Patrick Williams0859a172023-09-01 15:59:54 -05001632} // namespace org::open_power::witherspoon::fault
1633
1634#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1635namespace org::open_power::Witherspoon::Fault
1636{
1637using PowerSequencerFault =
1638 phosphor::logging::org::open_power::witherspoon::fault::PowerSequencerFault;
1639}
1640#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +08001641
1642namespace details
1643{
1644
1645template <>
1646struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05001647 sdbusplus::error::org::open_power::witherspoon::fault::PowerSequencerFault>
Andy YF Wang40247cc2019-09-06 18:30:56 +08001648{
Patrick Williams0859a172023-09-01 15:59:54 -05001649 using type = phosphor::logging::org::open_power::witherspoon::fault::
1650 PowerSequencerFault;
Andy YF Wang40247cc2019-09-06 18:30:56 +08001651};
1652
1653} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001654namespace xyz::openbmc_project::common::callout
Brandon Wyman442035f2017-08-08 15:58:45 -05001655{
1656namespace _Device
1657{
Brandon Wyman442035f2017-08-08 15:58:45 -05001658struct CALLOUT_ERRNO
1659{
Brandon Wyman03c19db2019-05-10 17:46:41 -05001660 /*
1661 * We can't use -fsanitize=undefined if we declare a
1662 * 'static constexpr auto str' member, so don't. Instead, open-code the
1663 * mako template lookups.
1664 */
Brandon Wyman442035f2017-08-08 15:58:45 -05001665 static constexpr auto str_short = "CALLOUT_ERRNO";
Brandon Wyman03c19db2019-05-10 17:46:41 -05001666 using type =
1667 std::tuple<std::decay_t<decltype("CALLOUT_ERRNO=%d")>, int32_t>;
1668 explicit constexpr CALLOUT_ERRNO(int32_t a) :
1669 _entry(entry("CALLOUT_ERRNO=%d", a)){};
Brandon Wyman442035f2017-08-08 15:58:45 -05001670 type _entry;
1671};
1672struct CALLOUT_DEVICE_PATH
1673{
Brandon Wyman03c19db2019-05-10 17:46:41 -05001674 /*
1675 * We can't use -fsanitize=undefined if we declare a
1676 * 'static constexpr auto str' member, so don't. Instead, open-code the
1677 * mako template lookups.
1678 */
Brandon Wyman442035f2017-08-08 15:58:45 -05001679 static constexpr auto str_short = "CALLOUT_DEVICE_PATH";
Brandon Wyman03c19db2019-05-10 17:46:41 -05001680 using type = std::tuple<std::decay_t<decltype("CALLOUT_DEVICE_PATH=%s")>,
1681 const char*>;
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001682 explicit constexpr CALLOUT_DEVICE_PATH(const char* a) :
Brandon Wyman03c19db2019-05-10 17:46:41 -05001683 _entry(entry("CALLOUT_DEVICE_PATH=%s", a)){};
Brandon Wyman442035f2017-08-08 15:58:45 -05001684 type _entry;
1685};
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001686} // namespace _Device
Brandon Wyman442035f2017-08-08 15:58:45 -05001687
1688struct Device
1689{
1690 static constexpr auto L = level::ERR;
1691 using CALLOUT_ERRNO = _Device::CALLOUT_ERRNO;
1692 using CALLOUT_DEVICE_PATH = _Device::CALLOUT_DEVICE_PATH;
1693 using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
Brandon Wyman442035f2017-08-08 15:58:45 -05001694};
1695
Patrick Williams0859a172023-09-01 15:59:54 -05001696} // namespace xyz::openbmc_project::common::callout
1697
1698#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1699namespace xyz::openbmc_project::Common::Callout
1700{
1701using Device = phosphor::logging::xyz::openbmc_project::common::callout::Device;
1702}
1703#endif
Brandon Wyman442035f2017-08-08 15:58:45 -05001704
Brandon Wyman442035f2017-08-08 15:58:45 -05001705namespace details
1706{
1707
1708template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001709struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05001710 sdbusplus::error::xyz::openbmc_project::common::callout::Device>
Brandon Wyman442035f2017-08-08 15:58:45 -05001711{
Patrick Williams0859a172023-09-01 15:59:54 -05001712 using type =
1713 phosphor::logging::xyz::openbmc_project::common::callout::Device;
Brandon Wyman442035f2017-08-08 15:58:45 -05001714};
1715
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001716} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001717namespace xyz::openbmc_project::common::callout
Brandon Wyman442035f2017-08-08 15:58:45 -05001718{
1719namespace _GPIO
1720{
Brandon Wyman442035f2017-08-08 15:58:45 -05001721struct CALLOUT_GPIO_NUM
1722{
Brandon Wyman03c19db2019-05-10 17:46:41 -05001723 /*
1724 * We can't use -fsanitize=undefined if we declare a
1725 * 'static constexpr auto str' member, so don't. Instead, open-code the
1726 * mako template lookups.
1727 */
Brandon Wyman442035f2017-08-08 15:58:45 -05001728 static constexpr auto str_short = "CALLOUT_GPIO_NUM";
Brandon Wyman03c19db2019-05-10 17:46:41 -05001729 using type =
1730 std::tuple<std::decay_t<decltype("CALLOUT_GPIO_NUM=%u")>, uint32_t>;
1731 explicit constexpr CALLOUT_GPIO_NUM(uint32_t a) :
1732 _entry(entry("CALLOUT_GPIO_NUM=%u", a)){};
Brandon Wyman442035f2017-08-08 15:58:45 -05001733 type _entry;
1734};
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001735} // namespace _GPIO
Brandon Wyman442035f2017-08-08 15:58:45 -05001736
1737struct GPIO
1738{
1739 static constexpr auto L = level::ERR;
1740 using CALLOUT_GPIO_NUM = _GPIO::CALLOUT_GPIO_NUM;
Patrick Williams0859a172023-09-01 15:59:54 -05001741 using CALLOUT_ERRNO = phosphor::logging::xyz::openbmc_project::common::
1742 callout::Device::CALLOUT_ERRNO;
1743 using CALLOUT_DEVICE_PATH = phosphor::logging::xyz::openbmc_project::
1744 common::callout::Device::CALLOUT_DEVICE_PATH;
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001745 using metadata_types =
1746 std::tuple<CALLOUT_GPIO_NUM, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
Brandon Wyman442035f2017-08-08 15:58:45 -05001747};
1748
Patrick Williams0859a172023-09-01 15:59:54 -05001749} // namespace xyz::openbmc_project::common::callout
1750
1751#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1752namespace xyz::openbmc_project::Common::Callout
1753{
1754using GPIO = phosphor::logging::xyz::openbmc_project::common::callout::GPIO;
1755}
1756#endif
Brandon Wyman442035f2017-08-08 15:58:45 -05001757
Brandon Wyman442035f2017-08-08 15:58:45 -05001758namespace details
1759{
1760
1761template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001762struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05001763 sdbusplus::error::xyz::openbmc_project::common::callout::GPIO>
Brandon Wyman442035f2017-08-08 15:58:45 -05001764{
Patrick Williams0859a172023-09-01 15:59:54 -05001765 using type = phosphor::logging::xyz::openbmc_project::common::callout::GPIO;
Brandon Wyman442035f2017-08-08 15:58:45 -05001766};
1767
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001768} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001769namespace xyz::openbmc_project::common::callout
Brandon Wyman442035f2017-08-08 15:58:45 -05001770{
1771namespace _IIC
1772{
Brandon Wyman442035f2017-08-08 15:58:45 -05001773struct CALLOUT_IIC_BUS
1774{
Brandon Wyman03c19db2019-05-10 17:46:41 -05001775 /*
1776 * We can't use -fsanitize=undefined if we declare a
1777 * 'static constexpr auto str' member, so don't. Instead, open-code the
1778 * mako template lookups.
1779 */
Brandon Wyman442035f2017-08-08 15:58:45 -05001780 static constexpr auto str_short = "CALLOUT_IIC_BUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -05001781 using type =
1782 std::tuple<std::decay_t<decltype("CALLOUT_IIC_BUS=%s")>, const char*>;
1783 explicit constexpr CALLOUT_IIC_BUS(const char* a) :
1784 _entry(entry("CALLOUT_IIC_BUS=%s", a)){};
Brandon Wyman442035f2017-08-08 15:58:45 -05001785 type _entry;
1786};
1787struct CALLOUT_IIC_ADDR
1788{
Brandon Wyman03c19db2019-05-10 17:46:41 -05001789 /*
1790 * We can't use -fsanitize=undefined if we declare a
1791 * 'static constexpr auto str' member, so don't. Instead, open-code the
1792 * mako template lookups.
1793 */
Brandon Wyman442035f2017-08-08 15:58:45 -05001794 static constexpr auto str_short = "CALLOUT_IIC_ADDR";
Brandon Wyman03c19db2019-05-10 17:46:41 -05001795 using type =
1796 std::tuple<std::decay_t<decltype("CALLOUT_IIC_ADDR=0x%hx")>, uint16_t>;
1797 explicit constexpr CALLOUT_IIC_ADDR(uint16_t a) :
1798 _entry(entry("CALLOUT_IIC_ADDR=0x%hx", a)){};
Brandon Wyman442035f2017-08-08 15:58:45 -05001799 type _entry;
1800};
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001801} // namespace _IIC
Brandon Wyman442035f2017-08-08 15:58:45 -05001802
1803struct IIC
1804{
1805 static constexpr auto L = level::ERR;
1806 using CALLOUT_IIC_BUS = _IIC::CALLOUT_IIC_BUS;
1807 using CALLOUT_IIC_ADDR = _IIC::CALLOUT_IIC_ADDR;
Patrick Williams0859a172023-09-01 15:59:54 -05001808 using CALLOUT_ERRNO = phosphor::logging::xyz::openbmc_project::common::
1809 callout::Device::CALLOUT_ERRNO;
1810 using CALLOUT_DEVICE_PATH = phosphor::logging::xyz::openbmc_project::
1811 common::callout::Device::CALLOUT_DEVICE_PATH;
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001812 using metadata_types = std::tuple<CALLOUT_IIC_BUS, CALLOUT_IIC_ADDR,
1813 CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
Brandon Wyman442035f2017-08-08 15:58:45 -05001814};
1815
Patrick Williams0859a172023-09-01 15:59:54 -05001816} // namespace xyz::openbmc_project::common::callout
1817
1818#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1819namespace xyz::openbmc_project::Common::Callout
1820{
1821using IIC = phosphor::logging::xyz::openbmc_project::common::callout::IIC;
1822}
1823#endif
Brandon Wyman442035f2017-08-08 15:58:45 -05001824
Brandon Wyman442035f2017-08-08 15:58:45 -05001825namespace details
1826{
1827
1828template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001829struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05001830 sdbusplus::error::xyz::openbmc_project::common::callout::IIC>
Brandon Wyman442035f2017-08-08 15:58:45 -05001831{
Patrick Williams0859a172023-09-01 15:59:54 -05001832 using type = phosphor::logging::xyz::openbmc_project::common::callout::IIC;
Brandon Wyman442035f2017-08-08 15:58:45 -05001833};
1834
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001835} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001836namespace xyz::openbmc_project::common::callout
Brandon Wyman442035f2017-08-08 15:58:45 -05001837{
1838namespace _Inventory
1839{
Brandon Wyman442035f2017-08-08 15:58:45 -05001840struct CALLOUT_INVENTORY_PATH
1841{
Brandon Wyman03c19db2019-05-10 17:46:41 -05001842 /*
1843 * We can't use -fsanitize=undefined if we declare a
1844 * 'static constexpr auto str' member, so don't. Instead, open-code the
1845 * mako template lookups.
1846 */
Brandon Wyman442035f2017-08-08 15:58:45 -05001847 static constexpr auto str_short = "CALLOUT_INVENTORY_PATH";
Brandon Wyman03c19db2019-05-10 17:46:41 -05001848 using type = std::tuple<std::decay_t<decltype("CALLOUT_INVENTORY_PATH=%s")>,
1849 const char*>;
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001850 explicit constexpr CALLOUT_INVENTORY_PATH(const char* a) :
Brandon Wyman03c19db2019-05-10 17:46:41 -05001851 _entry(entry("CALLOUT_INVENTORY_PATH=%s", a)){};
Brandon Wyman442035f2017-08-08 15:58:45 -05001852 type _entry;
1853};
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001854} // namespace _Inventory
Brandon Wyman442035f2017-08-08 15:58:45 -05001855
1856struct Inventory
1857{
1858 static constexpr auto L = level::ERR;
1859 using CALLOUT_INVENTORY_PATH = _Inventory::CALLOUT_INVENTORY_PATH;
1860 using metadata_types = std::tuple<CALLOUT_INVENTORY_PATH>;
Brandon Wyman442035f2017-08-08 15:58:45 -05001861};
1862
Patrick Williams0859a172023-09-01 15:59:54 -05001863} // namespace xyz::openbmc_project::common::callout
1864
1865#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1866namespace xyz::openbmc_project::Common::Callout
1867{
1868using Inventory =
1869 phosphor::logging::xyz::openbmc_project::common::callout::Inventory;
1870}
1871#endif
Brandon Wyman442035f2017-08-08 15:58:45 -05001872
Brandon Wyman442035f2017-08-08 15:58:45 -05001873namespace details
1874{
1875
1876template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001877struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05001878 sdbusplus::error::xyz::openbmc_project::common::callout::Inventory>
Brandon Wyman442035f2017-08-08 15:58:45 -05001879{
Patrick Williams0859a172023-09-01 15:59:54 -05001880 using type =
1881 phosphor::logging::xyz::openbmc_project::common::callout::Inventory;
Brandon Wyman442035f2017-08-08 15:58:45 -05001882};
1883
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001884} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001885namespace xyz::openbmc_project::common::callout
Brandon Wyman442035f2017-08-08 15:58:45 -05001886{
1887namespace _IPMISensor
1888{
Brandon Wyman442035f2017-08-08 15:58:45 -05001889struct CALLOUT_IPMI_SENSOR_NUM
1890{
Brandon Wyman03c19db2019-05-10 17:46:41 -05001891 /*
1892 * We can't use -fsanitize=undefined if we declare a
1893 * 'static constexpr auto str' member, so don't. Instead, open-code the
1894 * mako template lookups.
1895 */
Brandon Wyman442035f2017-08-08 15:58:45 -05001896 static constexpr auto str_short = "CALLOUT_IPMI_SENSOR_NUM";
Brandon Wyman03c19db2019-05-10 17:46:41 -05001897 using type =
1898 std::tuple<std::decay_t<decltype("CALLOUT_IPMI_SENSOR_NUM=%u")>,
1899 uint32_t>;
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001900 explicit constexpr CALLOUT_IPMI_SENSOR_NUM(uint32_t a) :
Brandon Wyman03c19db2019-05-10 17:46:41 -05001901 _entry(entry("CALLOUT_IPMI_SENSOR_NUM=%u", a)){};
Brandon Wyman442035f2017-08-08 15:58:45 -05001902 type _entry;
1903};
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001904} // namespace _IPMISensor
Brandon Wyman442035f2017-08-08 15:58:45 -05001905
1906struct IPMISensor
1907{
1908 static constexpr auto L = level::ERR;
1909 using CALLOUT_IPMI_SENSOR_NUM = _IPMISensor::CALLOUT_IPMI_SENSOR_NUM;
1910 using metadata_types = std::tuple<CALLOUT_IPMI_SENSOR_NUM>;
Brandon Wyman442035f2017-08-08 15:58:45 -05001911};
1912
Patrick Williams0859a172023-09-01 15:59:54 -05001913} // namespace xyz::openbmc_project::common::callout
1914
1915#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1916namespace xyz::openbmc_project::Common::Callout
1917{
1918using IPMISensor =
1919 phosphor::logging::xyz::openbmc_project::common::callout::IPMISensor;
1920}
1921#endif
Brandon Wyman442035f2017-08-08 15:58:45 -05001922
Brandon Wyman442035f2017-08-08 15:58:45 -05001923namespace details
1924{
1925
1926template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001927struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05001928 sdbusplus::error::xyz::openbmc_project::common::callout::IPMISensor>
Brandon Wyman442035f2017-08-08 15:58:45 -05001929{
Patrick Williams0859a172023-09-01 15:59:54 -05001930 using type =
1931 phosphor::logging::xyz::openbmc_project::common::callout::IPMISensor;
Brandon Wyman442035f2017-08-08 15:58:45 -05001932};
1933
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001934} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001935namespace org::open_power::witherspoon::fault
Brandon Wyman442035f2017-08-08 15:58:45 -05001936{
Brandon Wyman253dc9b2017-08-12 13:45:52 -05001937namespace _PowerSupplyInputFault
1938{
Brandon Wyman253dc9b2017-08-12 13:45:52 -05001939struct RAW_STATUS
1940{
Brandon Wyman03c19db2019-05-10 17:46:41 -05001941 /*
1942 * We can't use -fsanitize=undefined if we declare a
1943 * 'static constexpr auto str' member, so don't. Instead, open-code the
1944 * mako template lookups.
1945 */
Brandon Wyman253dc9b2017-08-12 13:45:52 -05001946 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -05001947 using type =
1948 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
1949 explicit constexpr RAW_STATUS(const char* a) :
1950 _entry(entry("RAW_STATUS=%s", a)){};
Brandon Wyman253dc9b2017-08-12 13:45:52 -05001951 type _entry;
1952};
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001953} // namespace _PowerSupplyInputFault
Brandon Wyman253dc9b2017-08-12 13:45:52 -05001954
1955struct PowerSupplyInputFault
1956{
1957 static constexpr auto L = level::ERR;
1958 using RAW_STATUS = _PowerSupplyInputFault::RAW_STATUS;
Patrick Williams0859a172023-09-01 15:59:54 -05001959 using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project::
1960 common::callout::Inventory::CALLOUT_INVENTORY_PATH;
Brandon Wymanea358c92017-10-27 17:34:07 -05001961 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Brandon Wyman253dc9b2017-08-12 13:45:52 -05001962};
1963
Patrick Williams0859a172023-09-01 15:59:54 -05001964} // namespace org::open_power::witherspoon::fault
1965
1966#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1967namespace org::open_power::Witherspoon::Fault
1968{
1969using PowerSupplyInputFault = phosphor::logging::org::open_power::witherspoon::
1970 fault::PowerSupplyInputFault;
1971}
1972#endif
Brandon Wyman253dc9b2017-08-12 13:45:52 -05001973
Brandon Wyman253dc9b2017-08-12 13:45:52 -05001974namespace details
1975{
1976
1977template <>
Patrick Williams0859a172023-09-01 15:59:54 -05001978struct map_exception_type<sdbusplus::error::org::open_power::witherspoon::
1979 fault::PowerSupplyInputFault>
Brandon Wyman253dc9b2017-08-12 13:45:52 -05001980{
Patrick Williams0859a172023-09-01 15:59:54 -05001981 using type = phosphor::logging::org::open_power::witherspoon::fault::
1982 PowerSupplyInputFault;
Brandon Wyman253dc9b2017-08-12 13:45:52 -05001983};
1984
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001985} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001986namespace org::open_power::witherspoon::fault
Brandon Wyman253dc9b2017-08-12 13:45:52 -05001987{
Brandon Wyman764c7972017-08-22 17:05:36 -05001988namespace _PowerSupplyShouldBeOn
1989{
Brandon Wyman764c7972017-08-22 17:05:36 -05001990struct RAW_STATUS
1991{
Brandon Wyman03c19db2019-05-10 17:46:41 -05001992 /*
1993 * We can't use -fsanitize=undefined if we declare a
1994 * 'static constexpr auto str' member, so don't. Instead, open-code the
1995 * mako template lookups.
1996 */
Brandon Wyman764c7972017-08-22 17:05:36 -05001997 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -05001998 using type =
1999 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
2000 explicit constexpr RAW_STATUS(const char* a) :
2001 _entry(entry("RAW_STATUS=%s", a)){};
Brandon Wyman764c7972017-08-22 17:05:36 -05002002 type _entry;
2003};
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002004} // namespace _PowerSupplyShouldBeOn
Brandon Wyman764c7972017-08-22 17:05:36 -05002005
2006struct PowerSupplyShouldBeOn
2007{
2008 static constexpr auto L = level::ERR;
2009 using RAW_STATUS = _PowerSupplyShouldBeOn::RAW_STATUS;
Patrick Williams0859a172023-09-01 15:59:54 -05002010 using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project::
2011 common::callout::Inventory::CALLOUT_INVENTORY_PATH;
Brandon Wyman764c7972017-08-22 17:05:36 -05002012 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Brandon Wyman764c7972017-08-22 17:05:36 -05002013};
2014
Patrick Williams0859a172023-09-01 15:59:54 -05002015} // namespace org::open_power::witherspoon::fault
2016
2017#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
2018namespace org::open_power::Witherspoon::Fault
2019{
2020using PowerSupplyShouldBeOn = phosphor::logging::org::open_power::witherspoon::
2021 fault::PowerSupplyShouldBeOn;
2022}
2023#endif
Brandon Wyman764c7972017-08-22 17:05:36 -05002024
Brandon Wyman764c7972017-08-22 17:05:36 -05002025namespace details
2026{
2027
2028template <>
Patrick Williams0859a172023-09-01 15:59:54 -05002029struct map_exception_type<sdbusplus::error::org::open_power::witherspoon::
2030 fault::PowerSupplyShouldBeOn>
Brandon Wyman764c7972017-08-22 17:05:36 -05002031{
Patrick Williams0859a172023-09-01 15:59:54 -05002032 using type = phosphor::logging::org::open_power::witherspoon::fault::
2033 PowerSupplyShouldBeOn;
Brandon Wyman764c7972017-08-22 17:05:36 -05002034};
2035
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002036} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05002037namespace org::open_power::witherspoon::fault
Brandon Wyman764c7972017-08-22 17:05:36 -05002038{
Brandon Wymanb165c252017-08-25 18:59:54 -05002039namespace _PowerSupplyOutputOvercurrent
2040{
Brandon Wymanb165c252017-08-25 18:59:54 -05002041struct RAW_STATUS
2042{
Brandon Wyman03c19db2019-05-10 17:46:41 -05002043 /*
2044 * We can't use -fsanitize=undefined if we declare a
2045 * 'static constexpr auto str' member, so don't. Instead, open-code the
2046 * mako template lookups.
2047 */
Brandon Wymanb165c252017-08-25 18:59:54 -05002048 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -05002049 using type =
2050 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
2051 explicit constexpr RAW_STATUS(const char* a) :
2052 _entry(entry("RAW_STATUS=%s", a)){};
Brandon Wymanb165c252017-08-25 18:59:54 -05002053 type _entry;
2054};
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002055} // namespace _PowerSupplyOutputOvercurrent
Brandon Wymanb165c252017-08-25 18:59:54 -05002056
2057struct PowerSupplyOutputOvercurrent
2058{
2059 static constexpr auto L = level::ERR;
2060 using RAW_STATUS = _PowerSupplyOutputOvercurrent::RAW_STATUS;
Patrick Williams0859a172023-09-01 15:59:54 -05002061 using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project::
2062 common::callout::Inventory::CALLOUT_INVENTORY_PATH;
Brandon Wymanb165c252017-08-25 18:59:54 -05002063 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Brandon Wymanb165c252017-08-25 18:59:54 -05002064};
2065
Patrick Williams0859a172023-09-01 15:59:54 -05002066} // namespace org::open_power::witherspoon::fault
2067
2068#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
2069namespace org::open_power::Witherspoon::Fault
2070{
2071using PowerSupplyOutputOvercurrent = phosphor::logging::org::open_power::
2072 witherspoon::fault::PowerSupplyOutputOvercurrent;
2073}
2074#endif
Brandon Wymanb165c252017-08-25 18:59:54 -05002075
Brandon Wymanb165c252017-08-25 18:59:54 -05002076namespace details
2077{
2078
2079template <>
Patrick Williams0859a172023-09-01 15:59:54 -05002080struct map_exception_type<sdbusplus::error::org::open_power::witherspoon::
2081 fault::PowerSupplyOutputOvercurrent>
Brandon Wymanb165c252017-08-25 18:59:54 -05002082{
Patrick Williams0859a172023-09-01 15:59:54 -05002083 using type = phosphor::logging::org::open_power::witherspoon::fault::
2084 PowerSupplyOutputOvercurrent;
Brandon Wymanb165c252017-08-25 18:59:54 -05002085};
2086
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002087} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05002088namespace org::open_power::witherspoon::fault
Brandon Wymanb165c252017-08-25 18:59:54 -05002089{
Brandon Wymanab05c072017-08-30 18:26:41 -05002090namespace _PowerSupplyOutputOvervoltage
2091{
Brandon Wymanab05c072017-08-30 18:26:41 -05002092struct RAW_STATUS
2093{
Brandon Wyman03c19db2019-05-10 17:46:41 -05002094 /*
2095 * We can't use -fsanitize=undefined if we declare a
2096 * 'static constexpr auto str' member, so don't. Instead, open-code the
2097 * mako template lookups.
2098 */
Brandon Wymanab05c072017-08-30 18:26:41 -05002099 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -05002100 using type =
2101 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
2102 explicit constexpr RAW_STATUS(const char* a) :
2103 _entry(entry("RAW_STATUS=%s", a)){};
Brandon Wymanab05c072017-08-30 18:26:41 -05002104 type _entry;
2105};
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002106} // namespace _PowerSupplyOutputOvervoltage
Brandon Wymanab05c072017-08-30 18:26:41 -05002107
2108struct PowerSupplyOutputOvervoltage
2109{
2110 static constexpr auto L = level::ERR;
2111 using RAW_STATUS = _PowerSupplyOutputOvervoltage::RAW_STATUS;
Patrick Williams0859a172023-09-01 15:59:54 -05002112 using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project::
2113 common::callout::Inventory::CALLOUT_INVENTORY_PATH;
Brandon Wymanab05c072017-08-30 18:26:41 -05002114 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Brandon Wymanab05c072017-08-30 18:26:41 -05002115};
2116
Patrick Williams0859a172023-09-01 15:59:54 -05002117} // namespace org::open_power::witherspoon::fault
2118
2119#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
2120namespace org::open_power::Witherspoon::Fault
2121{
2122using PowerSupplyOutputOvervoltage = phosphor::logging::org::open_power::
2123 witherspoon::fault::PowerSupplyOutputOvervoltage;
2124}
2125#endif
Brandon Wymanab05c072017-08-30 18:26:41 -05002126
Brandon Wymanab05c072017-08-30 18:26:41 -05002127namespace details
2128{
2129
2130template <>
Patrick Williams0859a172023-09-01 15:59:54 -05002131struct map_exception_type<sdbusplus::error::org::open_power::witherspoon::
2132 fault::PowerSupplyOutputOvervoltage>
Brandon Wymanab05c072017-08-30 18:26:41 -05002133{
Patrick Williams0859a172023-09-01 15:59:54 -05002134 using type = phosphor::logging::org::open_power::witherspoon::fault::
2135 PowerSupplyOutputOvervoltage;
Brandon Wymanab05c072017-08-30 18:26:41 -05002136};
2137
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002138} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05002139namespace org::open_power::witherspoon::fault
Brandon Wymanab05c072017-08-30 18:26:41 -05002140{
Brandon Wyman12661f12017-08-31 15:28:21 -05002141namespace _PowerSupplyFanFault
2142{
Brandon Wyman12661f12017-08-31 15:28:21 -05002143struct RAW_STATUS
2144{
Brandon Wyman03c19db2019-05-10 17:46:41 -05002145 /*
2146 * We can't use -fsanitize=undefined if we declare a
2147 * 'static constexpr auto str' member, so don't. Instead, open-code the
2148 * mako template lookups.
2149 */
Brandon Wyman12661f12017-08-31 15:28:21 -05002150 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -05002151 using type =
2152 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
2153 explicit constexpr RAW_STATUS(const char* a) :
2154 _entry(entry("RAW_STATUS=%s", a)){};
Brandon Wyman12661f12017-08-31 15:28:21 -05002155 type _entry;
2156};
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002157} // namespace _PowerSupplyFanFault
Brandon Wyman12661f12017-08-31 15:28:21 -05002158
2159struct PowerSupplyFanFault
2160{
2161 static constexpr auto L = level::ERR;
2162 using RAW_STATUS = _PowerSupplyFanFault::RAW_STATUS;
Patrick Williams0859a172023-09-01 15:59:54 -05002163 using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project::
2164 common::callout::Inventory::CALLOUT_INVENTORY_PATH;
Brandon Wyman12661f12017-08-31 15:28:21 -05002165 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Brandon Wyman12661f12017-08-31 15:28:21 -05002166};
2167
Patrick Williams0859a172023-09-01 15:59:54 -05002168} // namespace org::open_power::witherspoon::fault
2169
2170#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
2171namespace org::open_power::Witherspoon::Fault
2172{
2173using PowerSupplyFanFault =
2174 phosphor::logging::org::open_power::witherspoon::fault::PowerSupplyFanFault;
2175}
2176#endif
Brandon Wyman12661f12017-08-31 15:28:21 -05002177
Brandon Wyman12661f12017-08-31 15:28:21 -05002178namespace details
2179{
2180
2181template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002182struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05002183 sdbusplus::error::org::open_power::witherspoon::fault::PowerSupplyFanFault>
Brandon Wyman12661f12017-08-31 15:28:21 -05002184{
Patrick Williams0859a172023-09-01 15:59:54 -05002185 using type = phosphor::logging::org::open_power::witherspoon::fault::
2186 PowerSupplyFanFault;
Brandon Wyman12661f12017-08-31 15:28:21 -05002187};
2188
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002189} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05002190namespace org::open_power::witherspoon::fault
Brandon Wyman12661f12017-08-31 15:28:21 -05002191{
Brandon Wyman875b3632017-09-13 18:46:03 -05002192namespace _PowerSupplyTemperatureFault
2193{
Brandon Wyman875b3632017-09-13 18:46:03 -05002194struct RAW_STATUS
2195{
Brandon Wyman03c19db2019-05-10 17:46:41 -05002196 /*
2197 * We can't use -fsanitize=undefined if we declare a
2198 * 'static constexpr auto str' member, so don't. Instead, open-code the
2199 * mako template lookups.
2200 */
Brandon Wyman875b3632017-09-13 18:46:03 -05002201 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -05002202 using type =
2203 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
2204 explicit constexpr RAW_STATUS(const char* a) :
2205 _entry(entry("RAW_STATUS=%s", a)){};
Brandon Wyman875b3632017-09-13 18:46:03 -05002206 type _entry;
2207};
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002208} // namespace _PowerSupplyTemperatureFault
Brandon Wyman875b3632017-09-13 18:46:03 -05002209
2210struct PowerSupplyTemperatureFault
2211{
2212 static constexpr auto L = level::ERR;
2213 using RAW_STATUS = _PowerSupplyTemperatureFault::RAW_STATUS;
Patrick Williams0859a172023-09-01 15:59:54 -05002214 using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project::
2215 common::callout::Inventory::CALLOUT_INVENTORY_PATH;
Brandon Wyman875b3632017-09-13 18:46:03 -05002216 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Brandon Wyman875b3632017-09-13 18:46:03 -05002217};
2218
Patrick Williams0859a172023-09-01 15:59:54 -05002219} // namespace org::open_power::witherspoon::fault
2220
2221#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
2222namespace org::open_power::Witherspoon::Fault
2223{
2224using PowerSupplyTemperatureFault = phosphor::logging::org::open_power::
2225 witherspoon::fault::PowerSupplyTemperatureFault;
2226}
2227#endif
Brandon Wyman875b3632017-09-13 18:46:03 -05002228
Brandon Wyman875b3632017-09-13 18:46:03 -05002229namespace details
2230{
2231
2232template <>
Patrick Williams0859a172023-09-01 15:59:54 -05002233struct map_exception_type<sdbusplus::error::org::open_power::witherspoon::
2234 fault::PowerSupplyTemperatureFault>
Brandon Wyman875b3632017-09-13 18:46:03 -05002235{
Patrick Williams0859a172023-09-01 15:59:54 -05002236 using type = phosphor::logging::org::open_power::witherspoon::fault::
2237 PowerSupplyTemperatureFault;
Brandon Wyman875b3632017-09-13 18:46:03 -05002238};
2239
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002240} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05002241namespace org::open_power::witherspoon::fault
Brandon Wyman875b3632017-09-13 18:46:03 -05002242{
Matt Spinler7b14db22017-09-19 10:57:54 -05002243namespace _GPUPowerFault
2244{
Matt Spinler7b14db22017-09-19 10:57:54 -05002245struct RAW_STATUS
2246{
Brandon Wyman03c19db2019-05-10 17:46:41 -05002247 /*
2248 * We can't use -fsanitize=undefined if we declare a
2249 * 'static constexpr auto str' member, so don't. Instead, open-code the
2250 * mako template lookups.
2251 */
Matt Spinler7b14db22017-09-19 10:57:54 -05002252 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -05002253 using type =
2254 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
2255 explicit constexpr RAW_STATUS(const char* a) :
2256 _entry(entry("RAW_STATUS=%s", a)){};
Matt Spinler7b14db22017-09-19 10:57:54 -05002257 type _entry;
2258};
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002259} // namespace _GPUPowerFault
Matt Spinler7b14db22017-09-19 10:57:54 -05002260
2261struct GPUPowerFault
2262{
2263 static constexpr auto L = level::ERR;
2264 using RAW_STATUS = _GPUPowerFault::RAW_STATUS;
Patrick Williams0859a172023-09-01 15:59:54 -05002265 using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project::
2266 common::callout::Inventory::CALLOUT_INVENTORY_PATH;
Matt Spinler0e45ced2018-02-12 14:36:07 -06002267 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Matt Spinler7b14db22017-09-19 10:57:54 -05002268};
2269
Patrick Williams0859a172023-09-01 15:59:54 -05002270} // namespace org::open_power::witherspoon::fault
2271
2272#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
2273namespace org::open_power::Witherspoon::Fault
2274{
2275using GPUPowerFault =
2276 phosphor::logging::org::open_power::witherspoon::fault::GPUPowerFault;
2277}
2278#endif
Matt Spinler7b14db22017-09-19 10:57:54 -05002279
Matt Spinler7b14db22017-09-19 10:57:54 -05002280namespace details
2281{
2282
2283template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002284struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05002285 sdbusplus::error::org::open_power::witherspoon::fault::GPUPowerFault>
Matt Spinler7b14db22017-09-19 10:57:54 -05002286{
Patrick Williams0859a172023-09-01 15:59:54 -05002287 using type =
2288 phosphor::logging::org::open_power::witherspoon::fault::GPUPowerFault;
Matt Spinler7b14db22017-09-19 10:57:54 -05002289};
2290
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002291} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05002292namespace org::open_power::witherspoon::fault
Matt Spinler7b14db22017-09-19 10:57:54 -05002293{
2294namespace _GPUOverTemp
2295{
Matt Spinler7b14db22017-09-19 10:57:54 -05002296struct RAW_STATUS
2297{
Brandon Wyman03c19db2019-05-10 17:46:41 -05002298 /*
2299 * We can't use -fsanitize=undefined if we declare a
2300 * 'static constexpr auto str' member, so don't. Instead, open-code the
2301 * mako template lookups.
2302 */
Matt Spinler7b14db22017-09-19 10:57:54 -05002303 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -05002304 using type =
2305 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
2306 explicit constexpr RAW_STATUS(const char* a) :
2307 _entry(entry("RAW_STATUS=%s", a)){};
Matt Spinler7b14db22017-09-19 10:57:54 -05002308 type _entry;
2309};
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002310} // namespace _GPUOverTemp
Matt Spinler7b14db22017-09-19 10:57:54 -05002311
2312struct GPUOverTemp
2313{
2314 static constexpr auto L = level::ERR;
2315 using RAW_STATUS = _GPUOverTemp::RAW_STATUS;
Patrick Williams0859a172023-09-01 15:59:54 -05002316 using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project::
2317 common::callout::Inventory::CALLOUT_INVENTORY_PATH;
Matt Spinler0e45ced2018-02-12 14:36:07 -06002318 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Matt Spinler7b14db22017-09-19 10:57:54 -05002319};
2320
Patrick Williams0859a172023-09-01 15:59:54 -05002321} // namespace org::open_power::witherspoon::fault
2322
2323#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
2324namespace org::open_power::Witherspoon::Fault
2325{
2326using GPUOverTemp =
2327 phosphor::logging::org::open_power::witherspoon::fault::GPUOverTemp;
2328}
2329#endif
Matt Spinler7b14db22017-09-19 10:57:54 -05002330
Matt Spinler7b14db22017-09-19 10:57:54 -05002331namespace details
2332{
2333
2334template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002335struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05002336 sdbusplus::error::org::open_power::witherspoon::fault::GPUOverTemp>
Matt Spinler7b14db22017-09-19 10:57:54 -05002337{
Patrick Williams0859a172023-09-01 15:59:54 -05002338 using type =
2339 phosphor::logging::org::open_power::witherspoon::fault::GPUOverTemp;
Matt Spinler7b14db22017-09-19 10:57:54 -05002340};
2341
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002342} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05002343namespace org::open_power::witherspoon::fault
Brandon Wyman03c19db2019-05-10 17:46:41 -05002344{
2345namespace _MemoryPowerFault
2346{
Brandon Wyman03c19db2019-05-10 17:46:41 -05002347struct RAW_STATUS
2348{
2349 /*
2350 * We can't use -fsanitize=undefined if we declare a
2351 * 'static constexpr auto str' member, so don't. Instead, open-code the
2352 * mako template lookups.
2353 */
2354 static constexpr auto str_short = "RAW_STATUS";
2355 using type =
2356 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
2357 explicit constexpr RAW_STATUS(const char* a) :
2358 _entry(entry("RAW_STATUS=%s", a)){};
2359 type _entry;
2360};
Brandon Wyman03c19db2019-05-10 17:46:41 -05002361} // namespace _MemoryPowerFault
2362
2363struct MemoryPowerFault
2364{
2365 static constexpr auto L = level::ERR;
2366 using RAW_STATUS = _MemoryPowerFault::RAW_STATUS;
Patrick Williams0859a172023-09-01 15:59:54 -05002367 using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project::
2368 common::callout::Inventory::CALLOUT_INVENTORY_PATH;
Brandon Wyman03c19db2019-05-10 17:46:41 -05002369 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
2370};
2371
Patrick Williams0859a172023-09-01 15:59:54 -05002372} // namespace org::open_power::witherspoon::fault
2373
2374#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
2375namespace org::open_power::Witherspoon::Fault
2376{
2377using MemoryPowerFault =
2378 phosphor::logging::org::open_power::witherspoon::fault::MemoryPowerFault;
2379}
2380#endif
Brandon Wyman03c19db2019-05-10 17:46:41 -05002381
2382namespace details
2383{
2384
2385template <>
2386struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05002387 sdbusplus::error::org::open_power::witherspoon::fault::MemoryPowerFault>
Brandon Wyman03c19db2019-05-10 17:46:41 -05002388{
Patrick Williams0859a172023-09-01 15:59:54 -05002389 using type = phosphor::logging::org::open_power::witherspoon::fault::
2390 MemoryPowerFault;
Brandon Wyman03c19db2019-05-10 17:46:41 -05002391};
2392
2393} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05002394} // namespace phosphor::logging