blob: 3f7936e48625ac13e31a3df16ed4f949df6f7311 [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
5#include <string>
6#include <tuple>
7#include <type_traits>
8#include <sdbusplus/exception.hpp>
9#include <phosphor-logging/log.hpp>
10#include <phosphor-logging/elog.hpp>
11
12namespace sdbusplus
13{
14namespace xyz
15{
16namespace openbmc_project
17{
18namespace Power
19{
20namespace Fault
21{
22namespace Error
23{
Matt Spinlerfacfa902017-08-14 13:43:36 -050024 struct PowerOnFailure;
25} // namespace Error
26} // namespace Fault
27} // namespace Power
28} // namespace openbmc_project
29} // namespace xyz
30} // namespace sdbusplus
31
32namespace sdbusplus
33{
34namespace xyz
35{
36namespace openbmc_project
37{
38namespace Power
39{
40namespace Fault
41{
42namespace Error
43{
Matt Spinler7b14db22017-09-19 10:57:54 -050044 struct PowerSequencerFault;
45} // namespace Error
46} // namespace Fault
47} // namespace Power
48} // namespace openbmc_project
49} // namespace xyz
50} // namespace sdbusplus
51
52namespace sdbusplus
53{
54namespace xyz
55{
56namespace openbmc_project
57{
58namespace Power
59{
60namespace Fault
61{
62namespace Error
63{
Matt Spinlerac4b52f2017-08-21 14:50:58 -050064 struct PowerSequencerPGOODFault;
65} // namespace Error
66} // namespace Fault
67} // namespace Power
68} // namespace openbmc_project
69} // namespace xyz
70} // namespace sdbusplus
71
72namespace sdbusplus
73{
74namespace xyz
75{
76namespace openbmc_project
77{
78namespace Power
79{
80namespace Fault
81{
82namespace Error
83{
Matt Spinler7b14db22017-09-19 10:57:54 -050084 struct GPUPowerFault;
Matt Spinlerac4b52f2017-08-21 14:50:58 -050085} // namespace Error
86} // namespace Fault
87} // namespace Power
88} // namespace openbmc_project
89} // namespace xyz
90} // namespace sdbusplus
91
92namespace sdbusplus
93{
94namespace xyz
95{
96namespace openbmc_project
97{
98namespace Power
99{
100namespace Fault
101{
102namespace Error
103{
Matt Spinler7b14db22017-09-19 10:57:54 -0500104 struct GPUOverTemp;
105} // namespace Error
106} // namespace Fault
107} // namespace Power
108} // namespace openbmc_project
109} // namespace xyz
110} // namespace sdbusplus
111
112namespace sdbusplus
113{
114namespace xyz
115{
116namespace openbmc_project
117{
118namespace Power
119{
120namespace Fault
121{
122namespace Error
123{
124 struct PowerSequencerVoltageFault;
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500125} // namespace Error
126} // namespace Fault
127} // namespace Power
128} // namespace openbmc_project
129} // namespace xyz
130} // namespace sdbusplus
131
132namespace sdbusplus
133{
134namespace xyz
135{
136namespace openbmc_project
137{
138namespace Power
139{
140namespace Fault
141{
142namespace Error
143{
Matt Spinler84cd0a52017-08-04 08:53:30 -0500144 struct Shutdown;
145} // namespace Error
146} // namespace Fault
147} // namespace Power
148} // namespace openbmc_project
149} // namespace xyz
150} // namespace sdbusplus
151
152
153namespace phosphor
154{
155
156namespace logging
157{
158
159namespace xyz
160{
161namespace openbmc_project
162{
163namespace Power
164{
165namespace Fault
166{
167namespace _Shutdown
168{
169
170
171} // namespace _Shutdown
172
173struct Shutdown
174{
175 static constexpr auto L = level::ERR;
176 using metadata_types = std::tuple<>;
177
178};
179
180} // namespace Fault
181} // namespace Power
182} // namespace openbmc_project
183} // namespace xyz
184
185
186namespace details
187{
188
189template <>
190struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::Shutdown>
191{
192 using type = xyz::openbmc_project::Power::Fault::Shutdown;
193};
194
195}
196
Matt Spinlerfacfa902017-08-14 13:43:36 -0500197namespace xyz
198{
199namespace openbmc_project
200{
201namespace Power
202{
203namespace Fault
204{
205namespace _PowerOnFailure
206{
207
208
209} // namespace _PowerOnFailure
210
211struct PowerOnFailure
212{
213 static constexpr auto L = level::ERR;
214 using metadata_types = std::tuple<>;
215
216};
217
218} // namespace Fault
219} // namespace Power
220} // namespace openbmc_project
221} // namespace xyz
222
223
224namespace details
225{
226
227template <>
228struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerOnFailure>
229{
230 using type = xyz::openbmc_project::Power::Fault::PowerOnFailure;
231};
232
233}
234
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500235namespace xyz
236{
237namespace openbmc_project
238{
239namespace Power
240{
241namespace Fault
242{
243namespace _PowerSequencerVoltageFault
244{
245
246struct RAIL
247{
248 static constexpr auto str = "RAIL=%d";
249 static constexpr auto str_short = "RAIL";
250 using type = std::tuple<std::decay_t<decltype(str)>,uint16_t>;
251 explicit constexpr RAIL(uint16_t a) : _entry(entry(str, a)) {};
252 type _entry;
253};
254struct RAIL_NAME
255{
256 static constexpr auto str = "RAIL_NAME=%s";
257 static constexpr auto str_short = "RAIL_NAME";
258 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
259 explicit constexpr RAIL_NAME(const char* a) : _entry(entry(str, a)) {};
260 type _entry;
261};
262struct RAW_STATUS
263{
264 static constexpr auto str = "RAW_STATUS=%s";
265 static constexpr auto str_short = "RAW_STATUS";
266 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
267 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
268 type _entry;
269};
270
271} // namespace _PowerSequencerVoltageFault
272
273struct PowerSequencerVoltageFault
274{
275 static constexpr auto L = level::ERR;
276 using RAIL = _PowerSequencerVoltageFault::RAIL;
277 using RAIL_NAME = _PowerSequencerVoltageFault::RAIL_NAME;
278 using RAW_STATUS = _PowerSequencerVoltageFault::RAW_STATUS;
279 using metadata_types = std::tuple<RAIL, RAIL_NAME, RAW_STATUS>;
280
281};
282
283} // namespace Fault
284} // namespace Power
285} // namespace openbmc_project
286} // namespace xyz
287
288
289namespace details
290{
291
292template <>
293struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSequencerVoltageFault>
294{
295 using type = xyz::openbmc_project::Power::Fault::PowerSequencerVoltageFault;
296};
297
298}
299
300namespace xyz
301{
302namespace openbmc_project
303{
304namespace Power
305{
306namespace Fault
307{
308namespace _PowerSequencerPGOODFault
309{
310
311struct INPUT_NUM
312{
313 static constexpr auto str = "INPUT_NUM=%d";
314 static constexpr auto str_short = "INPUT_NUM";
315 using type = std::tuple<std::decay_t<decltype(str)>,uint16_t>;
316 explicit constexpr INPUT_NUM(uint16_t a) : _entry(entry(str, a)) {};
317 type _entry;
318};
319struct INPUT_NAME
320{
321 static constexpr auto str = "INPUT_NAME=%s";
322 static constexpr auto str_short = "INPUT_NAME";
323 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
324 explicit constexpr INPUT_NAME(const char* a) : _entry(entry(str, a)) {};
325 type _entry;
326};
327struct RAW_STATUS
328{
329 static constexpr auto str = "RAW_STATUS=%s";
330 static constexpr auto str_short = "RAW_STATUS";
331 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
332 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
333 type _entry;
334};
335
336} // namespace _PowerSequencerPGOODFault
337
338struct PowerSequencerPGOODFault
339{
340 static constexpr auto L = level::ERR;
341 using INPUT_NUM = _PowerSequencerPGOODFault::INPUT_NUM;
342 using INPUT_NAME = _PowerSequencerPGOODFault::INPUT_NAME;
343 using RAW_STATUS = _PowerSequencerPGOODFault::RAW_STATUS;
344 using metadata_types = std::tuple<INPUT_NUM, INPUT_NAME, RAW_STATUS>;
345
346};
347
348} // namespace Fault
349} // namespace Power
350} // namespace openbmc_project
351} // namespace xyz
352
353
354namespace details
355{
356
357template <>
358struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSequencerPGOODFault>
359{
360 using type = xyz::openbmc_project::Power::Fault::PowerSequencerPGOODFault;
361};
362
363}
364
365namespace xyz
366{
367namespace openbmc_project
368{
369namespace Power
370{
371namespace Fault
372{
373namespace _PowerSequencerFault
374{
375
376struct RAW_STATUS
377{
378 static constexpr auto str = "RAW_STATUS=%s";
379 static constexpr auto str_short = "RAW_STATUS";
380 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
381 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
382 type _entry;
383};
384
385} // namespace _PowerSequencerFault
386
387struct PowerSequencerFault
388{
389 static constexpr auto L = level::ERR;
390 using RAW_STATUS = _PowerSequencerFault::RAW_STATUS;
391 using metadata_types = std::tuple<RAW_STATUS>;
392
393};
394
395} // namespace Fault
396} // namespace Power
397} // namespace openbmc_project
398} // namespace xyz
399
400
401namespace details
402{
403
404template <>
405struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSequencerFault>
406{
407 using type = xyz::openbmc_project::Power::Fault::PowerSequencerFault;
408};
409
410}
411
Matt Spinler7b14db22017-09-19 10:57:54 -0500412namespace xyz
413{
414namespace openbmc_project
415{
416namespace Power
417{
418namespace Fault
419{
420namespace _GPUPowerFault
421{
422
423struct RAW_STATUS
424{
425 static constexpr auto str = "RAW_STATUS=%s";
426 static constexpr auto str_short = "RAW_STATUS";
427 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
428 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
429 type _entry;
430};
431struct GPU
432{
433 static constexpr auto str = "GPU=%s";
434 static constexpr auto str_short = "GPU";
435 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
436 explicit constexpr GPU(const char* a) : _entry(entry(str, a)) {};
437 type _entry;
438};
439
440} // namespace _GPUPowerFault
441
442struct GPUPowerFault
443{
444 static constexpr auto L = level::ERR;
445 using RAW_STATUS = _GPUPowerFault::RAW_STATUS;
446 using GPU = _GPUPowerFault::GPU;
447 using metadata_types = std::tuple<RAW_STATUS, GPU>;
448
449};
450
451} // namespace Fault
452} // namespace Power
453} // namespace openbmc_project
454} // namespace xyz
455
456
457namespace details
458{
459
460template <>
461struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::GPUPowerFault>
462{
463 using type = xyz::openbmc_project::Power::Fault::GPUPowerFault;
464};
465
466}
467
468namespace xyz
469{
470namespace openbmc_project
471{
472namespace Power
473{
474namespace Fault
475{
476namespace _GPUOverTemp
477{
478
479struct RAW_STATUS
480{
481 static constexpr auto str = "RAW_STATUS=%s";
482 static constexpr auto str_short = "RAW_STATUS";
483 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
484 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
485 type _entry;
486};
487struct GPU
488{
489 static constexpr auto str = "GPU=%s";
490 static constexpr auto str_short = "GPU";
491 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
492 explicit constexpr GPU(const char* a) : _entry(entry(str, a)) {};
493 type _entry;
494};
495
496} // namespace _GPUOverTemp
497
498struct GPUOverTemp
499{
500 static constexpr auto L = level::ERR;
501 using RAW_STATUS = _GPUOverTemp::RAW_STATUS;
502 using GPU = _GPUOverTemp::GPU;
503 using metadata_types = std::tuple<RAW_STATUS, GPU>;
504
505};
506
507} // namespace Fault
508} // namespace Power
509} // namespace openbmc_project
510} // namespace xyz
511
512
513namespace details
514{
515
516template <>
517struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::GPUOverTemp>
518{
519 using type = xyz::openbmc_project::Power::Fault::GPUOverTemp;
520};
521
522}
523
Matt Spinler84cd0a52017-08-04 08:53:30 -0500524
525} // namespace logging
526
527} // namespace phosphor