blob: 90d7daa9d786d4a16155259022f226eb7cae4db6 [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>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05006#include <sdbusplus/exception.hpp>
Brandon Wymand1bc4ce2019-12-13 14:20:34 -06007
Matt Spinler84cd0a52017-08-04 08:53:30 -05008#include <string>
9#include <tuple>
10#include <type_traits>
Matt Spinler84cd0a52017-08-04 08:53:30 -050011
Patrick Williams0859a172023-09-01 15:59:54 -050012namespace sdbusplus::error::org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +080013{
14struct ErrorCode0;
Patrick Williams0859a172023-09-01 15:59:54 -050015} // namespace sdbusplus::error::org::open_power::witherspoon::fault
16namespace sdbusplus::error::org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +080017{
Patrick Williams0859a172023-09-01 15:59:54 -050018struct ErrorCode1;
19} // namespace sdbusplus::error::org::open_power::witherspoon::fault
20namespace sdbusplus::error::org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +080021{
Patrick Williams0859a172023-09-01 15:59:54 -050022struct ErrorCode10;
23} // namespace sdbusplus::error::org::open_power::witherspoon::fault
24namespace sdbusplus::error::org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +080025{
Patrick Williams0859a172023-09-01 15:59:54 -050026struct ErrorCode11;
27} // namespace sdbusplus::error::org::open_power::witherspoon::fault
28namespace sdbusplus::error::org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +080029{
Patrick Williams0859a172023-09-01 15:59:54 -050030struct ErrorCode12;
31} // namespace sdbusplus::error::org::open_power::witherspoon::fault
32namespace sdbusplus::error::org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +080033{
Patrick Williams0859a172023-09-01 15:59:54 -050034struct ErrorCode13;
35} // namespace sdbusplus::error::org::open_power::witherspoon::fault
36namespace sdbusplus::error::org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +080037{
Patrick Williams0859a172023-09-01 15:59:54 -050038struct ErrorCode14;
39} // namespace sdbusplus::error::org::open_power::witherspoon::fault
40namespace sdbusplus::error::org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +080041{
Patrick Williams0859a172023-09-01 15:59:54 -050042struct ErrorCode15;
43} // namespace sdbusplus::error::org::open_power::witherspoon::fault
44namespace sdbusplus::error::org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +080045{
Patrick Williams0859a172023-09-01 15:59:54 -050046struct ErrorCode16;
47} // namespace sdbusplus::error::org::open_power::witherspoon::fault
48namespace sdbusplus::error::org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +080049{
Patrick Williams0859a172023-09-01 15:59:54 -050050struct ErrorCode17;
51} // namespace sdbusplus::error::org::open_power::witherspoon::fault
52namespace sdbusplus::error::org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +080053{
Patrick Williams0859a172023-09-01 15:59:54 -050054struct ErrorCode18;
55} // namespace sdbusplus::error::org::open_power::witherspoon::fault
56namespace sdbusplus::error::org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +080057{
Patrick Williams0859a172023-09-01 15:59:54 -050058struct ErrorCode19;
59} // namespace sdbusplus::error::org::open_power::witherspoon::fault
60namespace sdbusplus::error::org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +080061{
62struct ErrorCode2;
Patrick Williams0859a172023-09-01 15:59:54 -050063} // namespace sdbusplus::error::org::open_power::witherspoon::fault
64namespace sdbusplus::error::org::open_power::witherspoon::fault
Brandon Wymane0eb45c2017-10-06 12:58:42 -050065{
Andy YF Wang40247cc2019-09-06 18:30:56 +080066struct ErrorCode20;
Patrick Williams0859a172023-09-01 15:59:54 -050067} // namespace sdbusplus::error::org::open_power::witherspoon::fault
68namespace sdbusplus::error::org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +080069{
70struct ErrorCode21;
Patrick Williams0859a172023-09-01 15:59:54 -050071} // namespace sdbusplus::error::org::open_power::witherspoon::fault
72namespace sdbusplus::error::org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +080073{
74struct ErrorCode22;
Patrick Williams0859a172023-09-01 15:59:54 -050075} // namespace sdbusplus::error::org::open_power::witherspoon::fault
76namespace sdbusplus::error::org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +080077{
78struct ErrorCode23;
Patrick Williams0859a172023-09-01 15:59:54 -050079} // namespace sdbusplus::error::org::open_power::witherspoon::fault
80namespace sdbusplus::error::org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +080081{
82struct ErrorCode24;
Patrick Williams0859a172023-09-01 15:59:54 -050083} // namespace sdbusplus::error::org::open_power::witherspoon::fault
84namespace sdbusplus::error::org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +080085{
86struct ErrorCode25;
Patrick Williams0859a172023-09-01 15:59:54 -050087} // namespace sdbusplus::error::org::open_power::witherspoon::fault
88namespace sdbusplus::error::org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +080089{
90struct ErrorCode26;
Patrick Williams0859a172023-09-01 15:59:54 -050091} // namespace sdbusplus::error::org::open_power::witherspoon::fault
92namespace sdbusplus::error::org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +080093{
94struct ErrorCode27;
Patrick Williams0859a172023-09-01 15:59:54 -050095} // namespace sdbusplus::error::org::open_power::witherspoon::fault
96namespace sdbusplus::error::org::open_power::witherspoon::fault
97{
98struct ErrorCode28;
99} // namespace sdbusplus::error::org::open_power::witherspoon::fault
100namespace sdbusplus::error::org::open_power::witherspoon::fault
101{
102struct ErrorCode29;
103} // namespace sdbusplus::error::org::open_power::witherspoon::fault
104namespace sdbusplus::error::org::open_power::witherspoon::fault
105{
106struct ErrorCode3;
107} // namespace sdbusplus::error::org::open_power::witherspoon::fault
108namespace sdbusplus::error::org::open_power::witherspoon::fault
109{
110struct ErrorCode30;
111} // namespace sdbusplus::error::org::open_power::witherspoon::fault
112namespace sdbusplus::error::org::open_power::witherspoon::fault
113{
114struct ErrorCode31;
115} // namespace sdbusplus::error::org::open_power::witherspoon::fault
116namespace sdbusplus::error::org::open_power::witherspoon::fault
117{
118struct ErrorCode32;
119} // namespace sdbusplus::error::org::open_power::witherspoon::fault
120namespace sdbusplus::error::org::open_power::witherspoon::fault
121{
122struct ErrorCode33;
123} // namespace sdbusplus::error::org::open_power::witherspoon::fault
124namespace sdbusplus::error::org::open_power::witherspoon::fault
125{
126struct ErrorCode34;
127} // namespace sdbusplus::error::org::open_power::witherspoon::fault
128namespace sdbusplus::error::org::open_power::witherspoon::fault
129{
130struct ErrorCode35;
131} // namespace sdbusplus::error::org::open_power::witherspoon::fault
132namespace sdbusplus::error::org::open_power::witherspoon::fault
133{
134struct ErrorCode36;
135} // namespace sdbusplus::error::org::open_power::witherspoon::fault
136namespace sdbusplus::error::org::open_power::witherspoon::fault
137{
138struct ErrorCode4;
139} // namespace sdbusplus::error::org::open_power::witherspoon::fault
140namespace sdbusplus::error::org::open_power::witherspoon::fault
141{
142struct ErrorCode5;
143} // namespace sdbusplus::error::org::open_power::witherspoon::fault
144namespace sdbusplus::error::org::open_power::witherspoon::fault
145{
146struct ErrorCode6;
147} // namespace sdbusplus::error::org::open_power::witherspoon::fault
148namespace sdbusplus::error::org::open_power::witherspoon::fault
149{
150struct ErrorCode7;
151} // namespace sdbusplus::error::org::open_power::witherspoon::fault
152namespace sdbusplus::error::org::open_power::witherspoon::fault
153{
154struct ErrorCode8;
155} // namespace sdbusplus::error::org::open_power::witherspoon::fault
156namespace sdbusplus::error::org::open_power::witherspoon::fault
157{
158struct ErrorCode9;
159} // namespace sdbusplus::error::org::open_power::witherspoon::fault
160namespace sdbusplus::error::org::open_power::witherspoon::fault
161{
162struct GPUOverTemp;
163} // namespace sdbusplus::error::org::open_power::witherspoon::fault
164namespace sdbusplus::error::org::open_power::witherspoon::fault
165{
166struct GPUPowerFault;
167} // namespace sdbusplus::error::org::open_power::witherspoon::fault
168namespace sdbusplus::error::org::open_power::witherspoon::fault
169{
170struct MemoryPowerFault;
171} // namespace sdbusplus::error::org::open_power::witherspoon::fault
172namespace sdbusplus::error::org::open_power::witherspoon::fault
173{
174struct PowerOnFailure;
175} // namespace sdbusplus::error::org::open_power::witherspoon::fault
176namespace sdbusplus::error::org::open_power::witherspoon::fault
177{
178struct PowerSequencerFault;
179} // namespace sdbusplus::error::org::open_power::witherspoon::fault
180namespace sdbusplus::error::org::open_power::witherspoon::fault
181{
182struct PowerSequencerPGOODFault;
183} // namespace sdbusplus::error::org::open_power::witherspoon::fault
184namespace sdbusplus::error::org::open_power::witherspoon::fault
185{
186struct PowerSequencerVoltageFault;
187} // namespace sdbusplus::error::org::open_power::witherspoon::fault
188namespace sdbusplus::error::org::open_power::witherspoon::fault
189{
190struct PowerSupplyFanFault;
191} // namespace sdbusplus::error::org::open_power::witherspoon::fault
192namespace sdbusplus::error::org::open_power::witherspoon::fault
193{
194struct PowerSupplyInputFault;
195} // namespace sdbusplus::error::org::open_power::witherspoon::fault
196namespace sdbusplus::error::org::open_power::witherspoon::fault
197{
198struct PowerSupplyOutputOvercurrent;
199} // namespace sdbusplus::error::org::open_power::witherspoon::fault
200namespace sdbusplus::error::org::open_power::witherspoon::fault
201{
202struct PowerSupplyOutputOvervoltage;
203} // namespace sdbusplus::error::org::open_power::witherspoon::fault
204namespace sdbusplus::error::org::open_power::witherspoon::fault
205{
206struct PowerSupplyShouldBeOn;
207} // namespace sdbusplus::error::org::open_power::witherspoon::fault
208namespace sdbusplus::error::org::open_power::witherspoon::fault
209{
210struct PowerSupplyTemperatureFault;
211} // namespace sdbusplus::error::org::open_power::witherspoon::fault
212namespace sdbusplus::error::org::open_power::witherspoon::fault
213{
214struct Shutdown;
215} // namespace sdbusplus::error::org::open_power::witherspoon::fault
216namespace sdbusplus::error::xyz::openbmc_project::common::callout
217{
218struct Device;
219} // namespace sdbusplus::error::xyz::openbmc_project::common::callout
220namespace sdbusplus::error::xyz::openbmc_project::common::callout
221{
222struct GPIO;
223} // namespace sdbusplus::error::xyz::openbmc_project::common::callout
224namespace sdbusplus::error::xyz::openbmc_project::common::callout
225{
226struct IIC;
227} // namespace sdbusplus::error::xyz::openbmc_project::common::callout
228namespace sdbusplus::error::xyz::openbmc_project::common::callout
229{
230struct IPMISensor;
231} // namespace sdbusplus::error::xyz::openbmc_project::common::callout
232namespace sdbusplus::error::xyz::openbmc_project::common::callout
233{
234struct Inventory;
235} // namespace sdbusplus::error::xyz::openbmc_project::common::callout
Matt Spinler84cd0a52017-08-04 08:53:30 -0500236
Patrick Williams0859a172023-09-01 15:59:54 -0500237namespace phosphor::logging
Matt Spinler84cd0a52017-08-04 08:53:30 -0500238{
239
Patrick Williams0859a172023-09-01 15:59:54 -0500240namespace org::open_power::witherspoon::fault
Matt Spinler84cd0a52017-08-04 08:53:30 -0500241{
242
Andy YF Wang40247cc2019-09-06 18:30:56 +0800243struct Shutdown
244{
245 static constexpr auto L = level::ERR;
246 using metadata_types = std::tuple<>;
247};
248
Patrick Williams0859a172023-09-01 15:59:54 -0500249} // namespace org::open_power::witherspoon::fault
250
251#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
252namespace org::open_power::Witherspoon::Fault
253{
254using Shutdown =
255 phosphor::logging::org::open_power::witherspoon::fault::Shutdown;
256}
257#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800258
259namespace details
260{
261
262template <>
263struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500264 sdbusplus::error::org::open_power::witherspoon::fault::Shutdown>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800265{
Patrick Williams0859a172023-09-01 15:59:54 -0500266 using type =
267 phosphor::logging::org::open_power::witherspoon::fault::Shutdown;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800268};
269
270} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500271namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800272{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800273
274struct PowerOnFailure
275{
276 static constexpr auto L = level::ERR;
277 using metadata_types = std::tuple<>;
278};
279
Patrick Williams0859a172023-09-01 15:59:54 -0500280} // namespace org::open_power::witherspoon::fault
281
282#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
283namespace org::open_power::Witherspoon::Fault
284{
285using PowerOnFailure =
286 phosphor::logging::org::open_power::witherspoon::fault::PowerOnFailure;
287}
288#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800289
290namespace details
291{
292
293template <>
294struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500295 sdbusplus::error::org::open_power::witherspoon::fault::PowerOnFailure>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800296{
Patrick Williams0859a172023-09-01 15:59:54 -0500297 using type =
298 phosphor::logging::org::open_power::witherspoon::fault::PowerOnFailure;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800299};
300
301} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500302namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800303{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800304
305struct ErrorCode0
306{
307 static constexpr auto L = level::ERR;
308 using metadata_types = std::tuple<>;
309};
310
Patrick Williams0859a172023-09-01 15:59:54 -0500311} // namespace org::open_power::witherspoon::fault
312
313#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
314namespace org::open_power::Witherspoon::Fault
315{
316using ErrorCode0 =
317 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode0;
318}
319#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800320
321namespace details
322{
323
324template <>
325struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500326 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode0>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800327{
Patrick Williams0859a172023-09-01 15:59:54 -0500328 using type =
329 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode0;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800330};
331
332} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500333namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800334{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800335
336struct ErrorCode1
337{
338 static constexpr auto L = level::ERR;
339 using metadata_types = std::tuple<>;
340};
341
Patrick Williams0859a172023-09-01 15:59:54 -0500342} // namespace org::open_power::witherspoon::fault
343
344#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
345namespace org::open_power::Witherspoon::Fault
346{
347using ErrorCode1 =
348 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode1;
349}
350#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800351
352namespace details
353{
354
355template <>
356struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500357 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode1>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800358{
Patrick Williams0859a172023-09-01 15:59:54 -0500359 using type =
360 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode1;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800361};
362
363} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500364namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800365{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800366
367struct ErrorCode2
368{
369 static constexpr auto L = level::ERR;
370 using metadata_types = std::tuple<>;
371};
372
Patrick Williams0859a172023-09-01 15:59:54 -0500373} // namespace org::open_power::witherspoon::fault
374
375#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
376namespace org::open_power::Witherspoon::Fault
377{
378using ErrorCode2 =
379 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode2;
380}
381#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800382
383namespace details
384{
385
386template <>
387struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500388 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode2>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800389{
Patrick Williams0859a172023-09-01 15:59:54 -0500390 using type =
391 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode2;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800392};
393
394} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500395namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800396{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800397
398struct ErrorCode3
399{
400 static constexpr auto L = level::ERR;
401 using metadata_types = std::tuple<>;
402};
403
Patrick Williams0859a172023-09-01 15:59:54 -0500404} // namespace org::open_power::witherspoon::fault
405
406#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
407namespace org::open_power::Witherspoon::Fault
408{
409using ErrorCode3 =
410 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode3;
411}
412#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800413
414namespace details
415{
416
417template <>
418struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500419 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode3>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800420{
Patrick Williams0859a172023-09-01 15:59:54 -0500421 using type =
422 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode3;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800423};
424
425} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500426namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800427{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800428
429struct ErrorCode4
430{
431 static constexpr auto L = level::ERR;
432 using metadata_types = std::tuple<>;
433};
434
Patrick Williams0859a172023-09-01 15:59:54 -0500435} // namespace org::open_power::witherspoon::fault
436
437#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
438namespace org::open_power::Witherspoon::Fault
439{
440using ErrorCode4 =
441 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode4;
442}
443#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800444
445namespace details
446{
447
448template <>
449struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500450 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode4>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800451{
Patrick Williams0859a172023-09-01 15:59:54 -0500452 using type =
453 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode4;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800454};
455
456} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500457namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800458{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800459
460struct ErrorCode5
461{
462 static constexpr auto L = level::ERR;
463 using metadata_types = std::tuple<>;
464};
465
Patrick Williams0859a172023-09-01 15:59:54 -0500466} // namespace org::open_power::witherspoon::fault
467
468#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
469namespace org::open_power::Witherspoon::Fault
470{
471using ErrorCode5 =
472 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode5;
473}
474#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800475
476namespace details
477{
478
479template <>
480struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500481 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode5>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800482{
Patrick Williams0859a172023-09-01 15:59:54 -0500483 using type =
484 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode5;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800485};
486
487} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500488namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800489{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800490
491struct ErrorCode6
492{
493 static constexpr auto L = level::ERR;
494 using metadata_types = std::tuple<>;
495};
496
Patrick Williams0859a172023-09-01 15:59:54 -0500497} // namespace org::open_power::witherspoon::fault
498
499#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
500namespace org::open_power::Witherspoon::Fault
501{
502using ErrorCode6 =
503 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode6;
504}
505#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800506
507namespace details
508{
509
510template <>
511struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500512 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode6>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800513{
Patrick Williams0859a172023-09-01 15:59:54 -0500514 using type =
515 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode6;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800516};
517
518} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500519namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800520{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800521
522struct ErrorCode7
523{
524 static constexpr auto L = level::ERR;
525 using metadata_types = std::tuple<>;
526};
527
Patrick Williams0859a172023-09-01 15:59:54 -0500528} // namespace org::open_power::witherspoon::fault
529
530#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
531namespace org::open_power::Witherspoon::Fault
532{
533using ErrorCode7 =
534 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode7;
535}
536#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800537
538namespace details
539{
540
541template <>
542struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500543 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode7>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800544{
Patrick Williams0859a172023-09-01 15:59:54 -0500545 using type =
546 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode7;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800547};
548
549} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500550namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800551{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800552
553struct ErrorCode8
554{
555 static constexpr auto L = level::ERR;
556 using metadata_types = std::tuple<>;
557};
558
Patrick Williams0859a172023-09-01 15:59:54 -0500559} // namespace org::open_power::witherspoon::fault
560
561#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
562namespace org::open_power::Witherspoon::Fault
563{
564using ErrorCode8 =
565 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode8;
566}
567#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800568
569namespace details
570{
571
572template <>
573struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500574 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode8>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800575{
Patrick Williams0859a172023-09-01 15:59:54 -0500576 using type =
577 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode8;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800578};
579
580} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500581namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800582{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800583
584struct ErrorCode9
585{
586 static constexpr auto L = level::ERR;
587 using metadata_types = std::tuple<>;
588};
589
Patrick Williams0859a172023-09-01 15:59:54 -0500590} // namespace org::open_power::witherspoon::fault
591
592#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
593namespace org::open_power::Witherspoon::Fault
594{
595using ErrorCode9 =
596 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode9;
597}
598#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800599
600namespace details
601{
602
603template <>
604struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500605 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode9>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800606{
Patrick Williams0859a172023-09-01 15:59:54 -0500607 using type =
608 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode9;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800609};
610
611} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500612namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800613{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800614
615struct ErrorCode10
616{
617 static constexpr auto L = level::ERR;
618 using metadata_types = std::tuple<>;
619};
620
Patrick Williams0859a172023-09-01 15:59:54 -0500621} // namespace org::open_power::witherspoon::fault
622
623#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
624namespace org::open_power::Witherspoon::Fault
625{
626using ErrorCode10 =
627 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode10;
628}
629#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800630
631namespace details
632{
633
634template <>
635struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500636 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode10>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800637{
Patrick Williams0859a172023-09-01 15:59:54 -0500638 using type =
639 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode10;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800640};
641
642} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500643namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800644{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800645
646struct ErrorCode11
647{
648 static constexpr auto L = level::ERR;
649 using metadata_types = std::tuple<>;
650};
651
Patrick Williams0859a172023-09-01 15:59:54 -0500652} // namespace org::open_power::witherspoon::fault
653
654#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
655namespace org::open_power::Witherspoon::Fault
656{
657using ErrorCode11 =
658 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode11;
659}
660#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800661
662namespace details
663{
664
665template <>
666struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500667 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode11>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800668{
Patrick Williams0859a172023-09-01 15:59:54 -0500669 using type =
670 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode11;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800671};
672
673} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500674namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800675{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800676
677struct ErrorCode12
678{
679 static constexpr auto L = level::ERR;
680 using metadata_types = std::tuple<>;
681};
682
Patrick Williams0859a172023-09-01 15:59:54 -0500683} // namespace org::open_power::witherspoon::fault
684
685#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
686namespace org::open_power::Witherspoon::Fault
687{
688using ErrorCode12 =
689 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode12;
690}
691#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800692
693namespace details
694{
695
696template <>
697struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500698 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode12>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800699{
Patrick Williams0859a172023-09-01 15:59:54 -0500700 using type =
701 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode12;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800702};
703
704} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500705namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800706{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800707
708struct ErrorCode13
709{
710 static constexpr auto L = level::ERR;
711 using metadata_types = std::tuple<>;
712};
713
Patrick Williams0859a172023-09-01 15:59:54 -0500714} // namespace org::open_power::witherspoon::fault
715
716#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
717namespace org::open_power::Witherspoon::Fault
718{
719using ErrorCode13 =
720 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode13;
721}
722#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800723
724namespace details
725{
726
727template <>
728struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500729 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode13>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800730{
Patrick Williams0859a172023-09-01 15:59:54 -0500731 using type =
732 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode13;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800733};
734
735} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500736namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800737{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800738
739struct ErrorCode14
740{
741 static constexpr auto L = level::ERR;
742 using metadata_types = std::tuple<>;
743};
744
Patrick Williams0859a172023-09-01 15:59:54 -0500745} // namespace org::open_power::witherspoon::fault
746
747#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
748namespace org::open_power::Witherspoon::Fault
749{
750using ErrorCode14 =
751 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode14;
752}
753#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800754
755namespace details
756{
757
758template <>
759struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500760 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode14>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800761{
Patrick Williams0859a172023-09-01 15:59:54 -0500762 using type =
763 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode14;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800764};
765
766} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500767namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800768{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800769
770struct ErrorCode15
771{
772 static constexpr auto L = level::ERR;
773 using metadata_types = std::tuple<>;
774};
775
Patrick Williams0859a172023-09-01 15:59:54 -0500776} // namespace org::open_power::witherspoon::fault
777
778#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
779namespace org::open_power::Witherspoon::Fault
780{
781using ErrorCode15 =
782 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode15;
783}
784#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800785
786namespace details
787{
788
789template <>
790struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500791 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode15>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800792{
Patrick Williams0859a172023-09-01 15:59:54 -0500793 using type =
794 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode15;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800795};
796
797} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500798namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800799{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800800
801struct ErrorCode16
802{
803 static constexpr auto L = level::ERR;
804 using metadata_types = std::tuple<>;
805};
806
Patrick Williams0859a172023-09-01 15:59:54 -0500807} // namespace org::open_power::witherspoon::fault
808
809#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
810namespace org::open_power::Witherspoon::Fault
811{
812using ErrorCode16 =
813 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode16;
814}
815#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800816
817namespace details
818{
819
820template <>
821struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500822 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode16>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800823{
Patrick Williams0859a172023-09-01 15:59:54 -0500824 using type =
825 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode16;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800826};
827
828} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500829namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800830{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800831
832struct ErrorCode17
833{
834 static constexpr auto L = level::ERR;
835 using metadata_types = std::tuple<>;
836};
837
Patrick Williams0859a172023-09-01 15:59:54 -0500838} // namespace org::open_power::witherspoon::fault
839
840#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
841namespace org::open_power::Witherspoon::Fault
842{
843using ErrorCode17 =
844 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode17;
845}
846#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800847
848namespace details
849{
850
851template <>
852struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500853 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode17>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800854{
Patrick Williams0859a172023-09-01 15:59:54 -0500855 using type =
856 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode17;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800857};
858
859} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500860namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800861{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800862
863struct ErrorCode18
864{
865 static constexpr auto L = level::ERR;
866 using metadata_types = std::tuple<>;
867};
868
Patrick Williams0859a172023-09-01 15:59:54 -0500869} // namespace org::open_power::witherspoon::fault
870
871#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
872namespace org::open_power::Witherspoon::Fault
873{
874using ErrorCode18 =
875 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode18;
876}
877#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800878
879namespace details
880{
881
882template <>
883struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500884 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode18>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800885{
Patrick Williams0859a172023-09-01 15:59:54 -0500886 using type =
887 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode18;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800888};
889
890} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500891namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800892{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800893
894struct ErrorCode19
895{
896 static constexpr auto L = level::ERR;
897 using metadata_types = std::tuple<>;
898};
899
Patrick Williams0859a172023-09-01 15:59:54 -0500900} // namespace org::open_power::witherspoon::fault
901
902#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
903namespace org::open_power::Witherspoon::Fault
904{
905using ErrorCode19 =
906 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode19;
907}
908#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800909
910namespace details
911{
912
913template <>
914struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500915 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode19>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800916{
Patrick Williams0859a172023-09-01 15:59:54 -0500917 using type =
918 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode19;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800919};
920
921} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500922namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800923{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800924
925struct ErrorCode20
926{
927 static constexpr auto L = level::ERR;
928 using metadata_types = std::tuple<>;
929};
930
Patrick Williams0859a172023-09-01 15:59:54 -0500931} // namespace org::open_power::witherspoon::fault
932
933#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
934namespace org::open_power::Witherspoon::Fault
935{
936using ErrorCode20 =
937 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode20;
938}
939#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800940
941namespace details
942{
943
944template <>
945struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500946 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode20>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800947{
Patrick Williams0859a172023-09-01 15:59:54 -0500948 using type =
949 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode20;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800950};
951
952} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500953namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800954{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800955
956struct ErrorCode21
957{
958 static constexpr auto L = level::ERR;
959 using metadata_types = std::tuple<>;
960};
961
Patrick Williams0859a172023-09-01 15:59:54 -0500962} // namespace org::open_power::witherspoon::fault
963
964#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
965namespace org::open_power::Witherspoon::Fault
966{
967using ErrorCode21 =
968 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode21;
969}
970#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +0800971
972namespace details
973{
974
975template <>
976struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -0500977 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode21>
Andy YF Wang40247cc2019-09-06 18:30:56 +0800978{
Patrick Williams0859a172023-09-01 15:59:54 -0500979 using type =
980 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode21;
Andy YF Wang40247cc2019-09-06 18:30:56 +0800981};
982
983} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -0500984namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +0800985{
Andy YF Wang40247cc2019-09-06 18:30:56 +0800986
987struct ErrorCode22
988{
989 static constexpr auto L = level::ERR;
990 using metadata_types = std::tuple<>;
991};
992
Patrick Williams0859a172023-09-01 15:59:54 -0500993} // namespace org::open_power::witherspoon::fault
994
995#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
996namespace org::open_power::Witherspoon::Fault
997{
998using ErrorCode22 =
999 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode22;
1000}
1001#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +08001002
1003namespace details
1004{
1005
1006template <>
1007struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05001008 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode22>
Andy YF Wang40247cc2019-09-06 18:30:56 +08001009{
Patrick Williams0859a172023-09-01 15:59:54 -05001010 using type =
1011 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode22;
Andy YF Wang40247cc2019-09-06 18:30:56 +08001012};
1013
1014} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001015namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +08001016{
Andy YF Wang40247cc2019-09-06 18:30:56 +08001017
1018struct ErrorCode23
1019{
1020 static constexpr auto L = level::ERR;
1021 using metadata_types = std::tuple<>;
1022};
1023
Patrick Williams0859a172023-09-01 15:59:54 -05001024} // namespace org::open_power::witherspoon::fault
1025
1026#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1027namespace org::open_power::Witherspoon::Fault
1028{
1029using ErrorCode23 =
1030 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode23;
1031}
1032#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +08001033
1034namespace details
1035{
1036
1037template <>
1038struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05001039 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode23>
Andy YF Wang40247cc2019-09-06 18:30:56 +08001040{
Patrick Williams0859a172023-09-01 15:59:54 -05001041 using type =
1042 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode23;
Andy YF Wang40247cc2019-09-06 18:30:56 +08001043};
1044
1045} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001046namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +08001047{
Andy YF Wang40247cc2019-09-06 18:30:56 +08001048
1049struct ErrorCode24
1050{
1051 static constexpr auto L = level::ERR;
1052 using metadata_types = std::tuple<>;
1053};
1054
Patrick Williams0859a172023-09-01 15:59:54 -05001055} // namespace org::open_power::witherspoon::fault
1056
1057#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1058namespace org::open_power::Witherspoon::Fault
1059{
1060using ErrorCode24 =
1061 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode24;
1062}
1063#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +08001064
1065namespace details
1066{
1067
1068template <>
1069struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05001070 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode24>
Andy YF Wang40247cc2019-09-06 18:30:56 +08001071{
Patrick Williams0859a172023-09-01 15:59:54 -05001072 using type =
1073 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode24;
Andy YF Wang40247cc2019-09-06 18:30:56 +08001074};
1075
1076} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001077namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +08001078{
Andy YF Wang40247cc2019-09-06 18:30:56 +08001079
1080struct ErrorCode25
1081{
1082 static constexpr auto L = level::ERR;
1083 using metadata_types = std::tuple<>;
1084};
1085
Patrick Williams0859a172023-09-01 15:59:54 -05001086} // namespace org::open_power::witherspoon::fault
1087
1088#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1089namespace org::open_power::Witherspoon::Fault
1090{
1091using ErrorCode25 =
1092 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode25;
1093}
1094#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +08001095
1096namespace details
1097{
1098
1099template <>
1100struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05001101 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode25>
Andy YF Wang40247cc2019-09-06 18:30:56 +08001102{
Patrick Williams0859a172023-09-01 15:59:54 -05001103 using type =
1104 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode25;
Andy YF Wang40247cc2019-09-06 18:30:56 +08001105};
1106
1107} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001108namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +08001109{
Andy YF Wang40247cc2019-09-06 18:30:56 +08001110
1111struct ErrorCode26
1112{
1113 static constexpr auto L = level::ERR;
1114 using metadata_types = std::tuple<>;
1115};
1116
Patrick Williams0859a172023-09-01 15:59:54 -05001117} // namespace org::open_power::witherspoon::fault
1118
1119#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1120namespace org::open_power::Witherspoon::Fault
1121{
1122using ErrorCode26 =
1123 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode26;
1124}
1125#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +08001126
1127namespace details
1128{
1129
1130template <>
1131struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05001132 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode26>
Andy YF Wang40247cc2019-09-06 18:30:56 +08001133{
Patrick Williams0859a172023-09-01 15:59:54 -05001134 using type =
1135 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode26;
Andy YF Wang40247cc2019-09-06 18:30:56 +08001136};
1137
1138} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001139namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +08001140{
Andy YF Wang40247cc2019-09-06 18:30:56 +08001141
1142struct ErrorCode27
1143{
1144 static constexpr auto L = level::ERR;
1145 using metadata_types = std::tuple<>;
1146};
1147
Patrick Williams0859a172023-09-01 15:59:54 -05001148} // namespace org::open_power::witherspoon::fault
1149
1150#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1151namespace org::open_power::Witherspoon::Fault
1152{
1153using ErrorCode27 =
1154 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode27;
1155}
1156#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +08001157
1158namespace details
1159{
1160
1161template <>
1162struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05001163 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode27>
Andy YF Wang40247cc2019-09-06 18:30:56 +08001164{
Patrick Williams0859a172023-09-01 15:59:54 -05001165 using type =
1166 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode27;
Andy YF Wang40247cc2019-09-06 18:30:56 +08001167};
1168
1169} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001170namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +08001171{
Andy YF Wang40247cc2019-09-06 18:30:56 +08001172
1173struct ErrorCode28
1174{
1175 static constexpr auto L = level::ERR;
1176 using metadata_types = std::tuple<>;
1177};
1178
Patrick Williams0859a172023-09-01 15:59:54 -05001179} // namespace org::open_power::witherspoon::fault
1180
1181#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1182namespace org::open_power::Witherspoon::Fault
1183{
1184using ErrorCode28 =
1185 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode28;
1186}
1187#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +08001188
1189namespace details
1190{
1191
1192template <>
1193struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05001194 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode28>
Andy YF Wang40247cc2019-09-06 18:30:56 +08001195{
Patrick Williams0859a172023-09-01 15:59:54 -05001196 using type =
1197 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode28;
Andy YF Wang40247cc2019-09-06 18:30:56 +08001198};
1199
1200} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001201namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +08001202{
Andy YF Wang40247cc2019-09-06 18:30:56 +08001203
1204struct ErrorCode29
1205{
1206 static constexpr auto L = level::ERR;
1207 using metadata_types = std::tuple<>;
1208};
1209
Patrick Williams0859a172023-09-01 15:59:54 -05001210} // namespace org::open_power::witherspoon::fault
1211
1212#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1213namespace org::open_power::Witherspoon::Fault
1214{
1215using ErrorCode29 =
1216 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode29;
1217}
1218#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +08001219
1220namespace details
1221{
1222
1223template <>
1224struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05001225 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode29>
Andy YF Wang40247cc2019-09-06 18:30:56 +08001226{
Patrick Williams0859a172023-09-01 15:59:54 -05001227 using type =
1228 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode29;
Andy YF Wang40247cc2019-09-06 18:30:56 +08001229};
1230
1231} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001232namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +08001233{
Andy YF Wang40247cc2019-09-06 18:30:56 +08001234
1235struct ErrorCode30
1236{
1237 static constexpr auto L = level::ERR;
1238 using metadata_types = std::tuple<>;
1239};
1240
Patrick Williams0859a172023-09-01 15:59:54 -05001241} // namespace org::open_power::witherspoon::fault
1242
1243#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1244namespace org::open_power::Witherspoon::Fault
1245{
1246using ErrorCode30 =
1247 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode30;
1248}
1249#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +08001250
1251namespace details
1252{
1253
1254template <>
1255struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05001256 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode30>
Andy YF Wang40247cc2019-09-06 18:30:56 +08001257{
Patrick Williams0859a172023-09-01 15:59:54 -05001258 using type =
1259 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode30;
Andy YF Wang40247cc2019-09-06 18:30:56 +08001260};
1261
1262} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001263namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +08001264{
Andy YF Wang40247cc2019-09-06 18:30:56 +08001265
1266struct ErrorCode31
1267{
1268 static constexpr auto L = level::ERR;
1269 using metadata_types = std::tuple<>;
1270};
1271
Patrick Williams0859a172023-09-01 15:59:54 -05001272} // namespace org::open_power::witherspoon::fault
1273
1274#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1275namespace org::open_power::Witherspoon::Fault
1276{
1277using ErrorCode31 =
1278 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode31;
1279}
1280#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +08001281
1282namespace details
1283{
1284
1285template <>
1286struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05001287 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode31>
Andy YF Wang40247cc2019-09-06 18:30:56 +08001288{
Patrick Williams0859a172023-09-01 15:59:54 -05001289 using type =
1290 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode31;
Andy YF Wang40247cc2019-09-06 18:30:56 +08001291};
1292
1293} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001294namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +08001295{
Andy YF Wang40247cc2019-09-06 18:30:56 +08001296
1297struct ErrorCode32
1298{
1299 static constexpr auto L = level::ERR;
1300 using metadata_types = std::tuple<>;
1301};
1302
Patrick Williams0859a172023-09-01 15:59:54 -05001303} // namespace org::open_power::witherspoon::fault
1304
1305#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1306namespace org::open_power::Witherspoon::Fault
1307{
1308using ErrorCode32 =
1309 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode32;
1310}
1311#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +08001312
1313namespace details
1314{
1315
1316template <>
1317struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05001318 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode32>
Andy YF Wang40247cc2019-09-06 18:30:56 +08001319{
Patrick Williams0859a172023-09-01 15:59:54 -05001320 using type =
1321 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode32;
Andy YF Wang40247cc2019-09-06 18:30:56 +08001322};
1323
1324} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001325namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +08001326{
Andy YF Wang40247cc2019-09-06 18:30:56 +08001327
1328struct ErrorCode33
1329{
1330 static constexpr auto L = level::ERR;
1331 using metadata_types = std::tuple<>;
1332};
1333
Patrick Williams0859a172023-09-01 15:59:54 -05001334} // namespace org::open_power::witherspoon::fault
1335
1336#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1337namespace org::open_power::Witherspoon::Fault
1338{
1339using ErrorCode33 =
1340 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode33;
1341}
1342#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +08001343
1344namespace details
1345{
1346
1347template <>
1348struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05001349 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode33>
Andy YF Wang40247cc2019-09-06 18:30:56 +08001350{
Patrick Williams0859a172023-09-01 15:59:54 -05001351 using type =
1352 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode33;
Andy YF Wang40247cc2019-09-06 18:30:56 +08001353};
1354
1355} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001356namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +08001357{
Andy YF Wang40247cc2019-09-06 18:30:56 +08001358
1359struct ErrorCode34
1360{
1361 static constexpr auto L = level::ERR;
1362 using metadata_types = std::tuple<>;
1363};
1364
Patrick Williams0859a172023-09-01 15:59:54 -05001365} // namespace org::open_power::witherspoon::fault
1366
1367#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1368namespace org::open_power::Witherspoon::Fault
1369{
1370using ErrorCode34 =
1371 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode34;
1372}
1373#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +08001374
1375namespace details
1376{
1377
1378template <>
1379struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05001380 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode34>
Andy YF Wang40247cc2019-09-06 18:30:56 +08001381{
Patrick Williams0859a172023-09-01 15:59:54 -05001382 using type =
1383 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode34;
Andy YF Wang40247cc2019-09-06 18:30:56 +08001384};
1385
1386} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001387namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +08001388{
Andy YF Wang40247cc2019-09-06 18:30:56 +08001389
1390struct ErrorCode35
1391{
1392 static constexpr auto L = level::ERR;
1393 using metadata_types = std::tuple<>;
1394};
1395
Patrick Williams0859a172023-09-01 15:59:54 -05001396} // namespace org::open_power::witherspoon::fault
1397
1398#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1399namespace org::open_power::Witherspoon::Fault
1400{
1401using ErrorCode35 =
1402 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode35;
1403}
1404#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +08001405
1406namespace details
1407{
1408
1409template <>
1410struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05001411 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode35>
Andy YF Wang40247cc2019-09-06 18:30:56 +08001412{
Patrick Williams0859a172023-09-01 15:59:54 -05001413 using type =
1414 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode35;
Andy YF Wang40247cc2019-09-06 18:30:56 +08001415};
1416
1417} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001418namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +08001419{
Andy YF Wang40247cc2019-09-06 18:30:56 +08001420
1421struct ErrorCode36
1422{
1423 static constexpr auto L = level::ERR;
1424 using metadata_types = std::tuple<>;
1425};
1426
Patrick Williams0859a172023-09-01 15:59:54 -05001427} // namespace org::open_power::witherspoon::fault
1428
1429#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1430namespace org::open_power::Witherspoon::Fault
1431{
1432using ErrorCode36 =
1433 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode36;
1434}
1435#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +08001436
1437namespace details
1438{
1439
1440template <>
1441struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05001442 sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode36>
Andy YF Wang40247cc2019-09-06 18:30:56 +08001443{
Patrick Williams0859a172023-09-01 15:59:54 -05001444 using type =
1445 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode36;
Andy YF Wang40247cc2019-09-06 18:30:56 +08001446};
1447
1448} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001449namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +08001450{
1451namespace _PowerSequencerVoltageFault
1452{
Andy YF Wang40247cc2019-09-06 18:30:56 +08001453struct RAIL
1454{
1455 /*
1456 * We can't use -fsanitize=undefined if we declare a
1457 * 'static constexpr auto str' member, so don't. Instead, open-code the
1458 * mako template lookups.
1459 */
1460 static constexpr auto str_short = "RAIL";
1461 using type = std::tuple<std::decay_t<decltype("RAIL=%d")>, uint16_t>;
Patrick Williamsf5402192024-08-16 15:20:53 -04001462 explicit constexpr RAIL(uint16_t a) : _entry(entry("RAIL=%d", a)) {};
Andy YF Wang40247cc2019-09-06 18:30:56 +08001463 type _entry;
1464};
1465struct RAIL_NAME
1466{
1467 /*
1468 * We can't use -fsanitize=undefined if we declare a
1469 * 'static constexpr auto str' member, so don't. Instead, open-code the
1470 * mako template lookups.
1471 */
1472 static constexpr auto str_short = "RAIL_NAME";
1473 using type =
1474 std::tuple<std::decay_t<decltype("RAIL_NAME=%s")>, const char*>;
1475 explicit constexpr RAIL_NAME(const char* a) :
Patrick Williamsf5402192024-08-16 15:20:53 -04001476 _entry(entry("RAIL_NAME=%s", a)) {};
Andy YF Wang40247cc2019-09-06 18:30:56 +08001477 type _entry;
1478};
1479struct RAW_STATUS
1480{
1481 /*
1482 * We can't use -fsanitize=undefined if we declare a
1483 * 'static constexpr auto str' member, so don't. Instead, open-code the
1484 * mako template lookups.
1485 */
1486 static constexpr auto str_short = "RAW_STATUS";
1487 using type =
1488 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
1489 explicit constexpr RAW_STATUS(const char* a) :
Patrick Williamsf5402192024-08-16 15:20:53 -04001490 _entry(entry("RAW_STATUS=%s", a)) {};
Andy YF Wang40247cc2019-09-06 18:30:56 +08001491 type _entry;
1492};
Andy YF Wang40247cc2019-09-06 18:30:56 +08001493} // namespace _PowerSequencerVoltageFault
1494
1495struct PowerSequencerVoltageFault
1496{
1497 static constexpr auto L = level::ERR;
1498 using RAIL = _PowerSequencerVoltageFault::RAIL;
1499 using RAIL_NAME = _PowerSequencerVoltageFault::RAIL_NAME;
1500 using RAW_STATUS = _PowerSequencerVoltageFault::RAW_STATUS;
1501 using metadata_types = std::tuple<RAIL, RAIL_NAME, RAW_STATUS>;
1502};
1503
Patrick Williams0859a172023-09-01 15:59:54 -05001504} // namespace org::open_power::witherspoon::fault
1505
1506#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1507namespace org::open_power::Witherspoon::Fault
1508{
1509using PowerSequencerVoltageFault = phosphor::logging::org::open_power::
1510 witherspoon::fault::PowerSequencerVoltageFault;
1511}
1512#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +08001513
1514namespace details
1515{
1516
1517template <>
Patrick Williams0859a172023-09-01 15:59:54 -05001518struct map_exception_type<sdbusplus::error::org::open_power::witherspoon::
1519 fault::PowerSequencerVoltageFault>
Andy YF Wang40247cc2019-09-06 18:30:56 +08001520{
Patrick Williams0859a172023-09-01 15:59:54 -05001521 using type = phosphor::logging::org::open_power::witherspoon::fault::
1522 PowerSequencerVoltageFault;
Andy YF Wang40247cc2019-09-06 18:30:56 +08001523};
1524
1525} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001526namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +08001527{
1528namespace _PowerSequencerPGOODFault
1529{
Andy YF Wang40247cc2019-09-06 18:30:56 +08001530struct INPUT_NUM
1531{
1532 /*
1533 * We can't use -fsanitize=undefined if we declare a
1534 * 'static constexpr auto str' member, so don't. Instead, open-code the
1535 * mako template lookups.
1536 */
1537 static constexpr auto str_short = "INPUT_NUM";
1538 using type = std::tuple<std::decay_t<decltype("INPUT_NUM=%d")>, uint16_t>;
1539 explicit constexpr INPUT_NUM(uint16_t a) :
Patrick Williamsf5402192024-08-16 15:20:53 -04001540 _entry(entry("INPUT_NUM=%d", a)) {};
Andy YF Wang40247cc2019-09-06 18:30:56 +08001541 type _entry;
1542};
1543struct INPUT_NAME
1544{
1545 /*
1546 * We can't use -fsanitize=undefined if we declare a
1547 * 'static constexpr auto str' member, so don't. Instead, open-code the
1548 * mako template lookups.
1549 */
1550 static constexpr auto str_short = "INPUT_NAME";
1551 using type =
1552 std::tuple<std::decay_t<decltype("INPUT_NAME=%s")>, const char*>;
1553 explicit constexpr INPUT_NAME(const char* a) :
Patrick Williamsf5402192024-08-16 15:20:53 -04001554 _entry(entry("INPUT_NAME=%s", a)) {};
Andy YF Wang40247cc2019-09-06 18:30:56 +08001555 type _entry;
1556};
1557struct RAW_STATUS
1558{
1559 /*
1560 * We can't use -fsanitize=undefined if we declare a
1561 * 'static constexpr auto str' member, so don't. Instead, open-code the
1562 * mako template lookups.
1563 */
1564 static constexpr auto str_short = "RAW_STATUS";
1565 using type =
1566 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
1567 explicit constexpr RAW_STATUS(const char* a) :
Patrick Williamsf5402192024-08-16 15:20:53 -04001568 _entry(entry("RAW_STATUS=%s", a)) {};
Andy YF Wang40247cc2019-09-06 18:30:56 +08001569 type _entry;
1570};
Andy YF Wang40247cc2019-09-06 18:30:56 +08001571} // namespace _PowerSequencerPGOODFault
1572
1573struct PowerSequencerPGOODFault
1574{
1575 static constexpr auto L = level::ERR;
1576 using INPUT_NUM = _PowerSequencerPGOODFault::INPUT_NUM;
1577 using INPUT_NAME = _PowerSequencerPGOODFault::INPUT_NAME;
1578 using RAW_STATUS = _PowerSequencerPGOODFault::RAW_STATUS;
1579 using metadata_types = std::tuple<INPUT_NUM, INPUT_NAME, RAW_STATUS>;
1580};
1581
Patrick Williams0859a172023-09-01 15:59:54 -05001582} // namespace org::open_power::witherspoon::fault
1583
1584#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1585namespace org::open_power::Witherspoon::Fault
1586{
1587using PowerSequencerPGOODFault = phosphor::logging::org::open_power::
1588 witherspoon::fault::PowerSequencerPGOODFault;
1589}
1590#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +08001591
1592namespace details
1593{
1594
1595template <>
Patrick Williams0859a172023-09-01 15:59:54 -05001596struct map_exception_type<sdbusplus::error::org::open_power::witherspoon::
1597 fault::PowerSequencerPGOODFault>
Andy YF Wang40247cc2019-09-06 18:30:56 +08001598{
Patrick Williams0859a172023-09-01 15:59:54 -05001599 using type = phosphor::logging::org::open_power::witherspoon::fault::
1600 PowerSequencerPGOODFault;
Andy YF Wang40247cc2019-09-06 18:30:56 +08001601};
1602
1603} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001604namespace org::open_power::witherspoon::fault
Andy YF Wang40247cc2019-09-06 18:30:56 +08001605{
1606namespace _PowerSequencerFault
1607{
Andy YF Wang40247cc2019-09-06 18:30:56 +08001608struct RAW_STATUS
1609{
1610 /*
1611 * We can't use -fsanitize=undefined if we declare a
1612 * 'static constexpr auto str' member, so don't. Instead, open-code the
1613 * mako template lookups.
1614 */
1615 static constexpr auto str_short = "RAW_STATUS";
1616 using type =
1617 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
1618 explicit constexpr RAW_STATUS(const char* a) :
Patrick Williamsf5402192024-08-16 15:20:53 -04001619 _entry(entry("RAW_STATUS=%s", a)) {};
Andy YF Wang40247cc2019-09-06 18:30:56 +08001620 type _entry;
1621};
Andy YF Wang40247cc2019-09-06 18:30:56 +08001622} // namespace _PowerSequencerFault
1623
1624struct PowerSequencerFault
1625{
1626 static constexpr auto L = level::ERR;
1627 using RAW_STATUS = _PowerSequencerFault::RAW_STATUS;
1628 using metadata_types = std::tuple<RAW_STATUS>;
1629};
1630
Patrick Williams0859a172023-09-01 15:59:54 -05001631} // namespace org::open_power::witherspoon::fault
1632
1633#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1634namespace org::open_power::Witherspoon::Fault
1635{
1636using PowerSequencerFault =
1637 phosphor::logging::org::open_power::witherspoon::fault::PowerSequencerFault;
1638}
1639#endif
Andy YF Wang40247cc2019-09-06 18:30:56 +08001640
1641namespace details
1642{
1643
1644template <>
1645struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05001646 sdbusplus::error::org::open_power::witherspoon::fault::PowerSequencerFault>
Andy YF Wang40247cc2019-09-06 18:30:56 +08001647{
Patrick Williams0859a172023-09-01 15:59:54 -05001648 using type = phosphor::logging::org::open_power::witherspoon::fault::
1649 PowerSequencerFault;
Andy YF Wang40247cc2019-09-06 18:30:56 +08001650};
1651
1652} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001653namespace xyz::openbmc_project::common::callout
Brandon Wyman442035f2017-08-08 15:58:45 -05001654{
1655namespace _Device
1656{
Brandon Wyman442035f2017-08-08 15:58:45 -05001657struct CALLOUT_ERRNO
1658{
Brandon Wyman03c19db2019-05-10 17:46:41 -05001659 /*
1660 * We can't use -fsanitize=undefined if we declare a
1661 * 'static constexpr auto str' member, so don't. Instead, open-code the
1662 * mako template lookups.
1663 */
Brandon Wyman442035f2017-08-08 15:58:45 -05001664 static constexpr auto str_short = "CALLOUT_ERRNO";
Brandon Wyman03c19db2019-05-10 17:46:41 -05001665 using type =
1666 std::tuple<std::decay_t<decltype("CALLOUT_ERRNO=%d")>, int32_t>;
1667 explicit constexpr CALLOUT_ERRNO(int32_t a) :
Patrick Williamsf5402192024-08-16 15:20:53 -04001668 _entry(entry("CALLOUT_ERRNO=%d", a)) {};
Brandon Wyman442035f2017-08-08 15:58:45 -05001669 type _entry;
1670};
1671struct CALLOUT_DEVICE_PATH
1672{
Brandon Wyman03c19db2019-05-10 17:46:41 -05001673 /*
1674 * We can't use -fsanitize=undefined if we declare a
1675 * 'static constexpr auto str' member, so don't. Instead, open-code the
1676 * mako template lookups.
1677 */
Brandon Wyman442035f2017-08-08 15:58:45 -05001678 static constexpr auto str_short = "CALLOUT_DEVICE_PATH";
Brandon Wyman03c19db2019-05-10 17:46:41 -05001679 using type = std::tuple<std::decay_t<decltype("CALLOUT_DEVICE_PATH=%s")>,
1680 const char*>;
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001681 explicit constexpr CALLOUT_DEVICE_PATH(const char* a) :
Patrick Williamsf5402192024-08-16 15:20:53 -04001682 _entry(entry("CALLOUT_DEVICE_PATH=%s", a)) {};
Brandon Wyman442035f2017-08-08 15:58:45 -05001683 type _entry;
1684};
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001685} // namespace _Device
Brandon Wyman442035f2017-08-08 15:58:45 -05001686
1687struct Device
1688{
1689 static constexpr auto L = level::ERR;
1690 using CALLOUT_ERRNO = _Device::CALLOUT_ERRNO;
1691 using CALLOUT_DEVICE_PATH = _Device::CALLOUT_DEVICE_PATH;
1692 using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
Brandon Wyman442035f2017-08-08 15:58:45 -05001693};
1694
Patrick Williams0859a172023-09-01 15:59:54 -05001695} // namespace xyz::openbmc_project::common::callout
1696
1697#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1698namespace xyz::openbmc_project::Common::Callout
1699{
1700using Device = phosphor::logging::xyz::openbmc_project::common::callout::Device;
1701}
1702#endif
Brandon Wyman442035f2017-08-08 15:58:45 -05001703
Brandon Wyman442035f2017-08-08 15:58:45 -05001704namespace details
1705{
1706
1707template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001708struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05001709 sdbusplus::error::xyz::openbmc_project::common::callout::Device>
Brandon Wyman442035f2017-08-08 15:58:45 -05001710{
Patrick Williams0859a172023-09-01 15:59:54 -05001711 using type =
1712 phosphor::logging::xyz::openbmc_project::common::callout::Device;
Brandon Wyman442035f2017-08-08 15:58:45 -05001713};
1714
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001715} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001716namespace xyz::openbmc_project::common::callout
Brandon Wyman442035f2017-08-08 15:58:45 -05001717{
1718namespace _GPIO
1719{
Brandon Wyman442035f2017-08-08 15:58:45 -05001720struct CALLOUT_GPIO_NUM
1721{
Brandon Wyman03c19db2019-05-10 17:46:41 -05001722 /*
1723 * We can't use -fsanitize=undefined if we declare a
1724 * 'static constexpr auto str' member, so don't. Instead, open-code the
1725 * mako template lookups.
1726 */
Brandon Wyman442035f2017-08-08 15:58:45 -05001727 static constexpr auto str_short = "CALLOUT_GPIO_NUM";
Brandon Wyman03c19db2019-05-10 17:46:41 -05001728 using type =
1729 std::tuple<std::decay_t<decltype("CALLOUT_GPIO_NUM=%u")>, uint32_t>;
1730 explicit constexpr CALLOUT_GPIO_NUM(uint32_t a) :
Patrick Williamsf5402192024-08-16 15:20:53 -04001731 _entry(entry("CALLOUT_GPIO_NUM=%u", a)) {};
Brandon Wyman442035f2017-08-08 15:58:45 -05001732 type _entry;
1733};
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001734} // namespace _GPIO
Brandon Wyman442035f2017-08-08 15:58:45 -05001735
1736struct GPIO
1737{
1738 static constexpr auto L = level::ERR;
1739 using CALLOUT_GPIO_NUM = _GPIO::CALLOUT_GPIO_NUM;
Patrick Williams0859a172023-09-01 15:59:54 -05001740 using CALLOUT_ERRNO = phosphor::logging::xyz::openbmc_project::common::
1741 callout::Device::CALLOUT_ERRNO;
1742 using CALLOUT_DEVICE_PATH = phosphor::logging::xyz::openbmc_project::
1743 common::callout::Device::CALLOUT_DEVICE_PATH;
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001744 using metadata_types =
1745 std::tuple<CALLOUT_GPIO_NUM, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
Brandon Wyman442035f2017-08-08 15:58:45 -05001746};
1747
Patrick Williams0859a172023-09-01 15:59:54 -05001748} // namespace xyz::openbmc_project::common::callout
1749
1750#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1751namespace xyz::openbmc_project::Common::Callout
1752{
1753using GPIO = phosphor::logging::xyz::openbmc_project::common::callout::GPIO;
1754}
1755#endif
Brandon Wyman442035f2017-08-08 15:58:45 -05001756
Brandon Wyman442035f2017-08-08 15:58:45 -05001757namespace details
1758{
1759
1760template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001761struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05001762 sdbusplus::error::xyz::openbmc_project::common::callout::GPIO>
Brandon Wyman442035f2017-08-08 15:58:45 -05001763{
Patrick Williams0859a172023-09-01 15:59:54 -05001764 using type = phosphor::logging::xyz::openbmc_project::common::callout::GPIO;
Brandon Wyman442035f2017-08-08 15:58:45 -05001765};
1766
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001767} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001768namespace xyz::openbmc_project::common::callout
Brandon Wyman442035f2017-08-08 15:58:45 -05001769{
1770namespace _IIC
1771{
Brandon Wyman442035f2017-08-08 15:58:45 -05001772struct CALLOUT_IIC_BUS
1773{
Brandon Wyman03c19db2019-05-10 17:46:41 -05001774 /*
1775 * We can't use -fsanitize=undefined if we declare a
1776 * 'static constexpr auto str' member, so don't. Instead, open-code the
1777 * mako template lookups.
1778 */
Brandon Wyman442035f2017-08-08 15:58:45 -05001779 static constexpr auto str_short = "CALLOUT_IIC_BUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -05001780 using type =
1781 std::tuple<std::decay_t<decltype("CALLOUT_IIC_BUS=%s")>, const char*>;
1782 explicit constexpr CALLOUT_IIC_BUS(const char* a) :
Patrick Williamsf5402192024-08-16 15:20:53 -04001783 _entry(entry("CALLOUT_IIC_BUS=%s", a)) {};
Brandon Wyman442035f2017-08-08 15:58:45 -05001784 type _entry;
1785};
1786struct CALLOUT_IIC_ADDR
1787{
Brandon Wyman03c19db2019-05-10 17:46:41 -05001788 /*
1789 * We can't use -fsanitize=undefined if we declare a
1790 * 'static constexpr auto str' member, so don't. Instead, open-code the
1791 * mako template lookups.
1792 */
Brandon Wyman442035f2017-08-08 15:58:45 -05001793 static constexpr auto str_short = "CALLOUT_IIC_ADDR";
Brandon Wyman03c19db2019-05-10 17:46:41 -05001794 using type =
1795 std::tuple<std::decay_t<decltype("CALLOUT_IIC_ADDR=0x%hx")>, uint16_t>;
1796 explicit constexpr CALLOUT_IIC_ADDR(uint16_t a) :
Patrick Williamsf5402192024-08-16 15:20:53 -04001797 _entry(entry("CALLOUT_IIC_ADDR=0x%hx", a)) {};
Brandon Wyman442035f2017-08-08 15:58:45 -05001798 type _entry;
1799};
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001800} // namespace _IIC
Brandon Wyman442035f2017-08-08 15:58:45 -05001801
1802struct IIC
1803{
1804 static constexpr auto L = level::ERR;
1805 using CALLOUT_IIC_BUS = _IIC::CALLOUT_IIC_BUS;
1806 using CALLOUT_IIC_ADDR = _IIC::CALLOUT_IIC_ADDR;
Patrick Williams0859a172023-09-01 15:59:54 -05001807 using CALLOUT_ERRNO = phosphor::logging::xyz::openbmc_project::common::
1808 callout::Device::CALLOUT_ERRNO;
1809 using CALLOUT_DEVICE_PATH = phosphor::logging::xyz::openbmc_project::
1810 common::callout::Device::CALLOUT_DEVICE_PATH;
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001811 using metadata_types = std::tuple<CALLOUT_IIC_BUS, CALLOUT_IIC_ADDR,
1812 CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
Brandon Wyman442035f2017-08-08 15:58:45 -05001813};
1814
Patrick Williams0859a172023-09-01 15:59:54 -05001815} // namespace xyz::openbmc_project::common::callout
1816
1817#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1818namespace xyz::openbmc_project::Common::Callout
1819{
1820using IIC = phosphor::logging::xyz::openbmc_project::common::callout::IIC;
1821}
1822#endif
Brandon Wyman442035f2017-08-08 15:58:45 -05001823
Brandon Wyman442035f2017-08-08 15:58:45 -05001824namespace details
1825{
1826
1827template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001828struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05001829 sdbusplus::error::xyz::openbmc_project::common::callout::IIC>
Brandon Wyman442035f2017-08-08 15:58:45 -05001830{
Patrick Williams0859a172023-09-01 15:59:54 -05001831 using type = phosphor::logging::xyz::openbmc_project::common::callout::IIC;
Brandon Wyman442035f2017-08-08 15:58:45 -05001832};
1833
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001834} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001835namespace xyz::openbmc_project::common::callout
Brandon Wyman442035f2017-08-08 15:58:45 -05001836{
1837namespace _Inventory
1838{
Brandon Wyman442035f2017-08-08 15:58:45 -05001839struct CALLOUT_INVENTORY_PATH
1840{
Brandon Wyman03c19db2019-05-10 17:46:41 -05001841 /*
1842 * We can't use -fsanitize=undefined if we declare a
1843 * 'static constexpr auto str' member, so don't. Instead, open-code the
1844 * mako template lookups.
1845 */
Brandon Wyman442035f2017-08-08 15:58:45 -05001846 static constexpr auto str_short = "CALLOUT_INVENTORY_PATH";
Brandon Wyman03c19db2019-05-10 17:46:41 -05001847 using type = std::tuple<std::decay_t<decltype("CALLOUT_INVENTORY_PATH=%s")>,
1848 const char*>;
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001849 explicit constexpr CALLOUT_INVENTORY_PATH(const char* a) :
Patrick Williamsf5402192024-08-16 15:20:53 -04001850 _entry(entry("CALLOUT_INVENTORY_PATH=%s", a)) {};
Brandon Wyman442035f2017-08-08 15:58:45 -05001851 type _entry;
1852};
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001853} // namespace _Inventory
Brandon Wyman442035f2017-08-08 15:58:45 -05001854
1855struct Inventory
1856{
1857 static constexpr auto L = level::ERR;
1858 using CALLOUT_INVENTORY_PATH = _Inventory::CALLOUT_INVENTORY_PATH;
1859 using metadata_types = std::tuple<CALLOUT_INVENTORY_PATH>;
Brandon Wyman442035f2017-08-08 15:58:45 -05001860};
1861
Patrick Williams0859a172023-09-01 15:59:54 -05001862} // namespace xyz::openbmc_project::common::callout
1863
1864#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1865namespace xyz::openbmc_project::Common::Callout
1866{
1867using Inventory =
1868 phosphor::logging::xyz::openbmc_project::common::callout::Inventory;
1869}
1870#endif
Brandon Wyman442035f2017-08-08 15:58:45 -05001871
Brandon Wyman442035f2017-08-08 15:58:45 -05001872namespace details
1873{
1874
1875template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001876struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05001877 sdbusplus::error::xyz::openbmc_project::common::callout::Inventory>
Brandon Wyman442035f2017-08-08 15:58:45 -05001878{
Patrick Williams0859a172023-09-01 15:59:54 -05001879 using type =
1880 phosphor::logging::xyz::openbmc_project::common::callout::Inventory;
Brandon Wyman442035f2017-08-08 15:58:45 -05001881};
1882
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001883} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001884namespace xyz::openbmc_project::common::callout
Brandon Wyman442035f2017-08-08 15:58:45 -05001885{
1886namespace _IPMISensor
1887{
Brandon Wyman442035f2017-08-08 15:58:45 -05001888struct CALLOUT_IPMI_SENSOR_NUM
1889{
Brandon Wyman03c19db2019-05-10 17:46:41 -05001890 /*
1891 * We can't use -fsanitize=undefined if we declare a
1892 * 'static constexpr auto str' member, so don't. Instead, open-code the
1893 * mako template lookups.
1894 */
Brandon Wyman442035f2017-08-08 15:58:45 -05001895 static constexpr auto str_short = "CALLOUT_IPMI_SENSOR_NUM";
Brandon Wyman03c19db2019-05-10 17:46:41 -05001896 using type =
1897 std::tuple<std::decay_t<decltype("CALLOUT_IPMI_SENSOR_NUM=%u")>,
1898 uint32_t>;
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001899 explicit constexpr CALLOUT_IPMI_SENSOR_NUM(uint32_t a) :
Patrick Williamsf5402192024-08-16 15:20:53 -04001900 _entry(entry("CALLOUT_IPMI_SENSOR_NUM=%u", a)) {};
Brandon Wyman442035f2017-08-08 15:58:45 -05001901 type _entry;
1902};
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001903} // namespace _IPMISensor
Brandon Wyman442035f2017-08-08 15:58:45 -05001904
1905struct IPMISensor
1906{
1907 static constexpr auto L = level::ERR;
1908 using CALLOUT_IPMI_SENSOR_NUM = _IPMISensor::CALLOUT_IPMI_SENSOR_NUM;
1909 using metadata_types = std::tuple<CALLOUT_IPMI_SENSOR_NUM>;
Brandon Wyman442035f2017-08-08 15:58:45 -05001910};
1911
Patrick Williams0859a172023-09-01 15:59:54 -05001912} // namespace xyz::openbmc_project::common::callout
1913
1914#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1915namespace xyz::openbmc_project::Common::Callout
1916{
1917using IPMISensor =
1918 phosphor::logging::xyz::openbmc_project::common::callout::IPMISensor;
1919}
1920#endif
Brandon Wyman442035f2017-08-08 15:58:45 -05001921
Brandon Wyman442035f2017-08-08 15:58:45 -05001922namespace details
1923{
1924
1925template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001926struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05001927 sdbusplus::error::xyz::openbmc_project::common::callout::IPMISensor>
Brandon Wyman442035f2017-08-08 15:58:45 -05001928{
Patrick Williams0859a172023-09-01 15:59:54 -05001929 using type =
1930 phosphor::logging::xyz::openbmc_project::common::callout::IPMISensor;
Brandon Wyman442035f2017-08-08 15:58:45 -05001931};
1932
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001933} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001934namespace org::open_power::witherspoon::fault
Brandon Wyman442035f2017-08-08 15:58:45 -05001935{
Brandon Wyman253dc9b2017-08-12 13:45:52 -05001936namespace _PowerSupplyInputFault
1937{
Brandon Wyman253dc9b2017-08-12 13:45:52 -05001938struct RAW_STATUS
1939{
Brandon Wyman03c19db2019-05-10 17:46:41 -05001940 /*
1941 * We can't use -fsanitize=undefined if we declare a
1942 * 'static constexpr auto str' member, so don't. Instead, open-code the
1943 * mako template lookups.
1944 */
Brandon Wyman253dc9b2017-08-12 13:45:52 -05001945 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -05001946 using type =
1947 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
1948 explicit constexpr RAW_STATUS(const char* a) :
Patrick Williamsf5402192024-08-16 15:20:53 -04001949 _entry(entry("RAW_STATUS=%s", a)) {};
Brandon Wyman253dc9b2017-08-12 13:45:52 -05001950 type _entry;
1951};
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001952} // namespace _PowerSupplyInputFault
Brandon Wyman253dc9b2017-08-12 13:45:52 -05001953
1954struct PowerSupplyInputFault
1955{
1956 static constexpr auto L = level::ERR;
1957 using RAW_STATUS = _PowerSupplyInputFault::RAW_STATUS;
Patrick Williams0859a172023-09-01 15:59:54 -05001958 using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project::
1959 common::callout::Inventory::CALLOUT_INVENTORY_PATH;
Brandon Wymanea358c92017-10-27 17:34:07 -05001960 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Brandon Wyman253dc9b2017-08-12 13:45:52 -05001961};
1962
Patrick Williams0859a172023-09-01 15:59:54 -05001963} // namespace org::open_power::witherspoon::fault
1964
1965#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
1966namespace org::open_power::Witherspoon::Fault
1967{
1968using PowerSupplyInputFault = phosphor::logging::org::open_power::witherspoon::
1969 fault::PowerSupplyInputFault;
1970}
1971#endif
Brandon Wyman253dc9b2017-08-12 13:45:52 -05001972
Brandon Wyman253dc9b2017-08-12 13:45:52 -05001973namespace details
1974{
1975
1976template <>
Patrick Williams0859a172023-09-01 15:59:54 -05001977struct map_exception_type<sdbusplus::error::org::open_power::witherspoon::
1978 fault::PowerSupplyInputFault>
Brandon Wyman253dc9b2017-08-12 13:45:52 -05001979{
Patrick Williams0859a172023-09-01 15:59:54 -05001980 using type = phosphor::logging::org::open_power::witherspoon::fault::
1981 PowerSupplyInputFault;
Brandon Wyman253dc9b2017-08-12 13:45:52 -05001982};
1983
Matt Spinlerf0f02b92018-10-25 16:12:43 -05001984} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05001985namespace org::open_power::witherspoon::fault
Brandon Wyman253dc9b2017-08-12 13:45:52 -05001986{
Brandon Wyman764c7972017-08-22 17:05:36 -05001987namespace _PowerSupplyShouldBeOn
1988{
Brandon Wyman764c7972017-08-22 17:05:36 -05001989struct RAW_STATUS
1990{
Brandon Wyman03c19db2019-05-10 17:46:41 -05001991 /*
1992 * We can't use -fsanitize=undefined if we declare a
1993 * 'static constexpr auto str' member, so don't. Instead, open-code the
1994 * mako template lookups.
1995 */
Brandon Wyman764c7972017-08-22 17:05:36 -05001996 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -05001997 using type =
1998 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
1999 explicit constexpr RAW_STATUS(const char* a) :
Patrick Williamsf5402192024-08-16 15:20:53 -04002000 _entry(entry("RAW_STATUS=%s", a)) {};
Brandon Wyman764c7972017-08-22 17:05:36 -05002001 type _entry;
2002};
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002003} // namespace _PowerSupplyShouldBeOn
Brandon Wyman764c7972017-08-22 17:05:36 -05002004
2005struct PowerSupplyShouldBeOn
2006{
2007 static constexpr auto L = level::ERR;
2008 using RAW_STATUS = _PowerSupplyShouldBeOn::RAW_STATUS;
Patrick Williams0859a172023-09-01 15:59:54 -05002009 using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project::
2010 common::callout::Inventory::CALLOUT_INVENTORY_PATH;
Brandon Wyman764c7972017-08-22 17:05:36 -05002011 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Brandon Wyman764c7972017-08-22 17:05:36 -05002012};
2013
Patrick Williams0859a172023-09-01 15:59:54 -05002014} // namespace org::open_power::witherspoon::fault
2015
2016#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
2017namespace org::open_power::Witherspoon::Fault
2018{
2019using PowerSupplyShouldBeOn = phosphor::logging::org::open_power::witherspoon::
2020 fault::PowerSupplyShouldBeOn;
2021}
2022#endif
Brandon Wyman764c7972017-08-22 17:05:36 -05002023
Brandon Wyman764c7972017-08-22 17:05:36 -05002024namespace details
2025{
2026
2027template <>
Patrick Williams0859a172023-09-01 15:59:54 -05002028struct map_exception_type<sdbusplus::error::org::open_power::witherspoon::
2029 fault::PowerSupplyShouldBeOn>
Brandon Wyman764c7972017-08-22 17:05:36 -05002030{
Patrick Williams0859a172023-09-01 15:59:54 -05002031 using type = phosphor::logging::org::open_power::witherspoon::fault::
2032 PowerSupplyShouldBeOn;
Brandon Wyman764c7972017-08-22 17:05:36 -05002033};
2034
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002035} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05002036namespace org::open_power::witherspoon::fault
Brandon Wyman764c7972017-08-22 17:05:36 -05002037{
Brandon Wymanb165c252017-08-25 18:59:54 -05002038namespace _PowerSupplyOutputOvercurrent
2039{
Brandon Wymanb165c252017-08-25 18:59:54 -05002040struct RAW_STATUS
2041{
Brandon Wyman03c19db2019-05-10 17:46:41 -05002042 /*
2043 * We can't use -fsanitize=undefined if we declare a
2044 * 'static constexpr auto str' member, so don't. Instead, open-code the
2045 * mako template lookups.
2046 */
Brandon Wymanb165c252017-08-25 18:59:54 -05002047 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -05002048 using type =
2049 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
2050 explicit constexpr RAW_STATUS(const char* a) :
Patrick Williamsf5402192024-08-16 15:20:53 -04002051 _entry(entry("RAW_STATUS=%s", a)) {};
Brandon Wymanb165c252017-08-25 18:59:54 -05002052 type _entry;
2053};
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002054} // namespace _PowerSupplyOutputOvercurrent
Brandon Wymanb165c252017-08-25 18:59:54 -05002055
2056struct PowerSupplyOutputOvercurrent
2057{
2058 static constexpr auto L = level::ERR;
2059 using RAW_STATUS = _PowerSupplyOutputOvercurrent::RAW_STATUS;
Patrick Williams0859a172023-09-01 15:59:54 -05002060 using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project::
2061 common::callout::Inventory::CALLOUT_INVENTORY_PATH;
Brandon Wymanb165c252017-08-25 18:59:54 -05002062 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Brandon Wymanb165c252017-08-25 18:59:54 -05002063};
2064
Patrick Williams0859a172023-09-01 15:59:54 -05002065} // namespace org::open_power::witherspoon::fault
2066
2067#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
2068namespace org::open_power::Witherspoon::Fault
2069{
2070using PowerSupplyOutputOvercurrent = phosphor::logging::org::open_power::
2071 witherspoon::fault::PowerSupplyOutputOvercurrent;
2072}
2073#endif
Brandon Wymanb165c252017-08-25 18:59:54 -05002074
Brandon Wymanb165c252017-08-25 18:59:54 -05002075namespace details
2076{
2077
2078template <>
Patrick Williams0859a172023-09-01 15:59:54 -05002079struct map_exception_type<sdbusplus::error::org::open_power::witherspoon::
2080 fault::PowerSupplyOutputOvercurrent>
Brandon Wymanb165c252017-08-25 18:59:54 -05002081{
Patrick Williams0859a172023-09-01 15:59:54 -05002082 using type = phosphor::logging::org::open_power::witherspoon::fault::
2083 PowerSupplyOutputOvercurrent;
Brandon Wymanb165c252017-08-25 18:59:54 -05002084};
2085
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002086} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05002087namespace org::open_power::witherspoon::fault
Brandon Wymanb165c252017-08-25 18:59:54 -05002088{
Brandon Wymanab05c072017-08-30 18:26:41 -05002089namespace _PowerSupplyOutputOvervoltage
2090{
Brandon Wymanab05c072017-08-30 18:26:41 -05002091struct RAW_STATUS
2092{
Brandon Wyman03c19db2019-05-10 17:46:41 -05002093 /*
2094 * We can't use -fsanitize=undefined if we declare a
2095 * 'static constexpr auto str' member, so don't. Instead, open-code the
2096 * mako template lookups.
2097 */
Brandon Wymanab05c072017-08-30 18:26:41 -05002098 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -05002099 using type =
2100 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
2101 explicit constexpr RAW_STATUS(const char* a) :
Patrick Williamsf5402192024-08-16 15:20:53 -04002102 _entry(entry("RAW_STATUS=%s", a)) {};
Brandon Wymanab05c072017-08-30 18:26:41 -05002103 type _entry;
2104};
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002105} // namespace _PowerSupplyOutputOvervoltage
Brandon Wymanab05c072017-08-30 18:26:41 -05002106
2107struct PowerSupplyOutputOvervoltage
2108{
2109 static constexpr auto L = level::ERR;
2110 using RAW_STATUS = _PowerSupplyOutputOvervoltage::RAW_STATUS;
Patrick Williams0859a172023-09-01 15:59:54 -05002111 using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project::
2112 common::callout::Inventory::CALLOUT_INVENTORY_PATH;
Brandon Wymanab05c072017-08-30 18:26:41 -05002113 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Brandon Wymanab05c072017-08-30 18:26:41 -05002114};
2115
Patrick Williams0859a172023-09-01 15:59:54 -05002116} // namespace org::open_power::witherspoon::fault
2117
2118#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
2119namespace org::open_power::Witherspoon::Fault
2120{
2121using PowerSupplyOutputOvervoltage = phosphor::logging::org::open_power::
2122 witherspoon::fault::PowerSupplyOutputOvervoltage;
2123}
2124#endif
Brandon Wymanab05c072017-08-30 18:26:41 -05002125
Brandon Wymanab05c072017-08-30 18:26:41 -05002126namespace details
2127{
2128
2129template <>
Patrick Williams0859a172023-09-01 15:59:54 -05002130struct map_exception_type<sdbusplus::error::org::open_power::witherspoon::
2131 fault::PowerSupplyOutputOvervoltage>
Brandon Wymanab05c072017-08-30 18:26:41 -05002132{
Patrick Williams0859a172023-09-01 15:59:54 -05002133 using type = phosphor::logging::org::open_power::witherspoon::fault::
2134 PowerSupplyOutputOvervoltage;
Brandon Wymanab05c072017-08-30 18:26:41 -05002135};
2136
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002137} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05002138namespace org::open_power::witherspoon::fault
Brandon Wymanab05c072017-08-30 18:26:41 -05002139{
Brandon Wyman12661f12017-08-31 15:28:21 -05002140namespace _PowerSupplyFanFault
2141{
Brandon Wyman12661f12017-08-31 15:28:21 -05002142struct RAW_STATUS
2143{
Brandon Wyman03c19db2019-05-10 17:46:41 -05002144 /*
2145 * We can't use -fsanitize=undefined if we declare a
2146 * 'static constexpr auto str' member, so don't. Instead, open-code the
2147 * mako template lookups.
2148 */
Brandon Wyman12661f12017-08-31 15:28:21 -05002149 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -05002150 using type =
2151 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
2152 explicit constexpr RAW_STATUS(const char* a) :
Patrick Williamsf5402192024-08-16 15:20:53 -04002153 _entry(entry("RAW_STATUS=%s", a)) {};
Brandon Wyman12661f12017-08-31 15:28:21 -05002154 type _entry;
2155};
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002156} // namespace _PowerSupplyFanFault
Brandon Wyman12661f12017-08-31 15:28:21 -05002157
2158struct PowerSupplyFanFault
2159{
2160 static constexpr auto L = level::ERR;
2161 using RAW_STATUS = _PowerSupplyFanFault::RAW_STATUS;
Patrick Williams0859a172023-09-01 15:59:54 -05002162 using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project::
2163 common::callout::Inventory::CALLOUT_INVENTORY_PATH;
Brandon Wyman12661f12017-08-31 15:28:21 -05002164 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Brandon Wyman12661f12017-08-31 15:28:21 -05002165};
2166
Patrick Williams0859a172023-09-01 15:59:54 -05002167} // namespace org::open_power::witherspoon::fault
2168
2169#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
2170namespace org::open_power::Witherspoon::Fault
2171{
2172using PowerSupplyFanFault =
2173 phosphor::logging::org::open_power::witherspoon::fault::PowerSupplyFanFault;
2174}
2175#endif
Brandon Wyman12661f12017-08-31 15:28:21 -05002176
Brandon Wyman12661f12017-08-31 15:28:21 -05002177namespace details
2178{
2179
2180template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002181struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05002182 sdbusplus::error::org::open_power::witherspoon::fault::PowerSupplyFanFault>
Brandon Wyman12661f12017-08-31 15:28:21 -05002183{
Patrick Williams0859a172023-09-01 15:59:54 -05002184 using type = phosphor::logging::org::open_power::witherspoon::fault::
2185 PowerSupplyFanFault;
Brandon Wyman12661f12017-08-31 15:28:21 -05002186};
2187
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002188} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05002189namespace org::open_power::witherspoon::fault
Brandon Wyman12661f12017-08-31 15:28:21 -05002190{
Brandon Wyman875b3632017-09-13 18:46:03 -05002191namespace _PowerSupplyTemperatureFault
2192{
Brandon Wyman875b3632017-09-13 18:46:03 -05002193struct RAW_STATUS
2194{
Brandon Wyman03c19db2019-05-10 17:46:41 -05002195 /*
2196 * We can't use -fsanitize=undefined if we declare a
2197 * 'static constexpr auto str' member, so don't. Instead, open-code the
2198 * mako template lookups.
2199 */
Brandon Wyman875b3632017-09-13 18:46:03 -05002200 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -05002201 using type =
2202 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
2203 explicit constexpr RAW_STATUS(const char* a) :
Patrick Williamsf5402192024-08-16 15:20:53 -04002204 _entry(entry("RAW_STATUS=%s", a)) {};
Brandon Wyman875b3632017-09-13 18:46:03 -05002205 type _entry;
2206};
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002207} // namespace _PowerSupplyTemperatureFault
Brandon Wyman875b3632017-09-13 18:46:03 -05002208
2209struct PowerSupplyTemperatureFault
2210{
2211 static constexpr auto L = level::ERR;
2212 using RAW_STATUS = _PowerSupplyTemperatureFault::RAW_STATUS;
Patrick Williams0859a172023-09-01 15:59:54 -05002213 using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project::
2214 common::callout::Inventory::CALLOUT_INVENTORY_PATH;
Brandon Wyman875b3632017-09-13 18:46:03 -05002215 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Brandon Wyman875b3632017-09-13 18:46:03 -05002216};
2217
Patrick Williams0859a172023-09-01 15:59:54 -05002218} // namespace org::open_power::witherspoon::fault
2219
2220#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
2221namespace org::open_power::Witherspoon::Fault
2222{
2223using PowerSupplyTemperatureFault = phosphor::logging::org::open_power::
2224 witherspoon::fault::PowerSupplyTemperatureFault;
2225}
2226#endif
Brandon Wyman875b3632017-09-13 18:46:03 -05002227
Brandon Wyman875b3632017-09-13 18:46:03 -05002228namespace details
2229{
2230
2231template <>
Patrick Williams0859a172023-09-01 15:59:54 -05002232struct map_exception_type<sdbusplus::error::org::open_power::witherspoon::
2233 fault::PowerSupplyTemperatureFault>
Brandon Wyman875b3632017-09-13 18:46:03 -05002234{
Patrick Williams0859a172023-09-01 15:59:54 -05002235 using type = phosphor::logging::org::open_power::witherspoon::fault::
2236 PowerSupplyTemperatureFault;
Brandon Wyman875b3632017-09-13 18:46:03 -05002237};
2238
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002239} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05002240namespace org::open_power::witherspoon::fault
Brandon Wyman875b3632017-09-13 18:46:03 -05002241{
Matt Spinler7b14db22017-09-19 10:57:54 -05002242namespace _GPUPowerFault
2243{
Matt Spinler7b14db22017-09-19 10:57:54 -05002244struct RAW_STATUS
2245{
Brandon Wyman03c19db2019-05-10 17:46:41 -05002246 /*
2247 * We can't use -fsanitize=undefined if we declare a
2248 * 'static constexpr auto str' member, so don't. Instead, open-code the
2249 * mako template lookups.
2250 */
Matt Spinler7b14db22017-09-19 10:57:54 -05002251 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -05002252 using type =
2253 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
2254 explicit constexpr RAW_STATUS(const char* a) :
Patrick Williamsf5402192024-08-16 15:20:53 -04002255 _entry(entry("RAW_STATUS=%s", a)) {};
Matt Spinler7b14db22017-09-19 10:57:54 -05002256 type _entry;
2257};
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002258} // namespace _GPUPowerFault
Matt Spinler7b14db22017-09-19 10:57:54 -05002259
2260struct GPUPowerFault
2261{
2262 static constexpr auto L = level::ERR;
2263 using RAW_STATUS = _GPUPowerFault::RAW_STATUS;
Patrick Williams0859a172023-09-01 15:59:54 -05002264 using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project::
2265 common::callout::Inventory::CALLOUT_INVENTORY_PATH;
Matt Spinler0e45ced2018-02-12 14:36:07 -06002266 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Matt Spinler7b14db22017-09-19 10:57:54 -05002267};
2268
Patrick Williams0859a172023-09-01 15:59:54 -05002269} // namespace org::open_power::witherspoon::fault
2270
2271#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
2272namespace org::open_power::Witherspoon::Fault
2273{
2274using GPUPowerFault =
2275 phosphor::logging::org::open_power::witherspoon::fault::GPUPowerFault;
2276}
2277#endif
Matt Spinler7b14db22017-09-19 10:57:54 -05002278
Matt Spinler7b14db22017-09-19 10:57:54 -05002279namespace details
2280{
2281
2282template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002283struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05002284 sdbusplus::error::org::open_power::witherspoon::fault::GPUPowerFault>
Matt Spinler7b14db22017-09-19 10:57:54 -05002285{
Patrick Williams0859a172023-09-01 15:59:54 -05002286 using type =
2287 phosphor::logging::org::open_power::witherspoon::fault::GPUPowerFault;
Matt Spinler7b14db22017-09-19 10:57:54 -05002288};
2289
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002290} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05002291namespace org::open_power::witherspoon::fault
Matt Spinler7b14db22017-09-19 10:57:54 -05002292{
2293namespace _GPUOverTemp
2294{
Matt Spinler7b14db22017-09-19 10:57:54 -05002295struct RAW_STATUS
2296{
Brandon Wyman03c19db2019-05-10 17:46:41 -05002297 /*
2298 * We can't use -fsanitize=undefined if we declare a
2299 * 'static constexpr auto str' member, so don't. Instead, open-code the
2300 * mako template lookups.
2301 */
Matt Spinler7b14db22017-09-19 10:57:54 -05002302 static constexpr auto str_short = "RAW_STATUS";
Brandon Wyman03c19db2019-05-10 17:46:41 -05002303 using type =
2304 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
2305 explicit constexpr RAW_STATUS(const char* a) :
Patrick Williamsf5402192024-08-16 15:20:53 -04002306 _entry(entry("RAW_STATUS=%s", a)) {};
Matt Spinler7b14db22017-09-19 10:57:54 -05002307 type _entry;
2308};
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002309} // namespace _GPUOverTemp
Matt Spinler7b14db22017-09-19 10:57:54 -05002310
2311struct GPUOverTemp
2312{
2313 static constexpr auto L = level::ERR;
2314 using RAW_STATUS = _GPUOverTemp::RAW_STATUS;
Patrick Williams0859a172023-09-01 15:59:54 -05002315 using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project::
2316 common::callout::Inventory::CALLOUT_INVENTORY_PATH;
Matt Spinler0e45ced2018-02-12 14:36:07 -06002317 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
Matt Spinler7b14db22017-09-19 10:57:54 -05002318};
2319
Patrick Williams0859a172023-09-01 15:59:54 -05002320} // namespace org::open_power::witherspoon::fault
2321
2322#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
2323namespace org::open_power::Witherspoon::Fault
2324{
2325using GPUOverTemp =
2326 phosphor::logging::org::open_power::witherspoon::fault::GPUOverTemp;
2327}
2328#endif
Matt Spinler7b14db22017-09-19 10:57:54 -05002329
Matt Spinler7b14db22017-09-19 10:57:54 -05002330namespace details
2331{
2332
2333template <>
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002334struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05002335 sdbusplus::error::org::open_power::witherspoon::fault::GPUOverTemp>
Matt Spinler7b14db22017-09-19 10:57:54 -05002336{
Patrick Williams0859a172023-09-01 15:59:54 -05002337 using type =
2338 phosphor::logging::org::open_power::witherspoon::fault::GPUOverTemp;
Matt Spinler7b14db22017-09-19 10:57:54 -05002339};
2340
Matt Spinlerf0f02b92018-10-25 16:12:43 -05002341} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05002342namespace org::open_power::witherspoon::fault
Brandon Wyman03c19db2019-05-10 17:46:41 -05002343{
2344namespace _MemoryPowerFault
2345{
Brandon Wyman03c19db2019-05-10 17:46:41 -05002346struct RAW_STATUS
2347{
2348 /*
2349 * We can't use -fsanitize=undefined if we declare a
2350 * 'static constexpr auto str' member, so don't. Instead, open-code the
2351 * mako template lookups.
2352 */
2353 static constexpr auto str_short = "RAW_STATUS";
2354 using type =
2355 std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>;
2356 explicit constexpr RAW_STATUS(const char* a) :
Patrick Williamsf5402192024-08-16 15:20:53 -04002357 _entry(entry("RAW_STATUS=%s", a)) {};
Brandon Wyman03c19db2019-05-10 17:46:41 -05002358 type _entry;
2359};
Brandon Wyman03c19db2019-05-10 17:46:41 -05002360} // namespace _MemoryPowerFault
2361
2362struct MemoryPowerFault
2363{
2364 static constexpr auto L = level::ERR;
2365 using RAW_STATUS = _MemoryPowerFault::RAW_STATUS;
Patrick Williams0859a172023-09-01 15:59:54 -05002366 using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project::
2367 common::callout::Inventory::CALLOUT_INVENTORY_PATH;
Brandon Wyman03c19db2019-05-10 17:46:41 -05002368 using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>;
2369};
2370
Patrick Williams0859a172023-09-01 15:59:54 -05002371} // namespace org::open_power::witherspoon::fault
2372
2373#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
2374namespace org::open_power::Witherspoon::Fault
2375{
2376using MemoryPowerFault =
2377 phosphor::logging::org::open_power::witherspoon::fault::MemoryPowerFault;
2378}
2379#endif
Brandon Wyman03c19db2019-05-10 17:46:41 -05002380
2381namespace details
2382{
2383
2384template <>
2385struct map_exception_type<
Patrick Williams0859a172023-09-01 15:59:54 -05002386 sdbusplus::error::org::open_power::witherspoon::fault::MemoryPowerFault>
Brandon Wyman03c19db2019-05-10 17:46:41 -05002387{
Patrick Williams0859a172023-09-01 15:59:54 -05002388 using type = phosphor::logging::org::open_power::witherspoon::fault::
2389 MemoryPowerFault;
Brandon Wyman03c19db2019-05-10 17:46:41 -05002390};
2391
2392} // namespace details
Patrick Williams0859a172023-09-01 15:59:54 -05002393} // namespace phosphor::logging