Matt Spinler | 84cd0a5 | 2017-08-04 08:53:30 -0500 | [diff] [blame] | 1 | // 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 | |
| 12 | namespace sdbusplus |
| 13 | { |
| 14 | namespace xyz |
| 15 | { |
| 16 | namespace openbmc_project |
| 17 | { |
| 18 | namespace Power |
| 19 | { |
| 20 | namespace Fault |
| 21 | { |
| 22 | namespace Error |
| 23 | { |
Matt Spinler | facfa90 | 2017-08-14 13:43:36 -0500 | [diff] [blame] | 24 | struct PowerOnFailure; |
| 25 | } // namespace Error |
| 26 | } // namespace Fault |
| 27 | } // namespace Power |
| 28 | } // namespace openbmc_project |
| 29 | } // namespace xyz |
| 30 | } // namespace sdbusplus |
| 31 | |
| 32 | namespace sdbusplus |
| 33 | { |
| 34 | namespace xyz |
| 35 | { |
| 36 | namespace openbmc_project |
| 37 | { |
| 38 | namespace Power |
| 39 | { |
| 40 | namespace Fault |
| 41 | { |
| 42 | namespace Error |
| 43 | { |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 44 | struct PowerSequencerFault; |
| 45 | } // namespace Error |
| 46 | } // namespace Fault |
| 47 | } // namespace Power |
| 48 | } // namespace openbmc_project |
| 49 | } // namespace xyz |
| 50 | } // namespace sdbusplus |
| 51 | |
| 52 | namespace sdbusplus |
| 53 | { |
| 54 | namespace xyz |
| 55 | { |
| 56 | namespace openbmc_project |
| 57 | { |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 58 | namespace Common |
| 59 | { |
| 60 | namespace Callout |
| 61 | { |
| 62 | namespace Error |
| 63 | { |
| 64 | struct GPIO; |
| 65 | } // namespace Error |
| 66 | } // namespace Callout |
| 67 | } // namespace Common |
| 68 | } // namespace openbmc_project |
| 69 | } // namespace xyz |
| 70 | } // namespace sdbusplus |
| 71 | |
| 72 | namespace sdbusplus |
| 73 | { |
| 74 | namespace xyz |
| 75 | { |
| 76 | namespace openbmc_project |
| 77 | { |
| 78 | namespace Common |
| 79 | { |
| 80 | namespace Callout |
| 81 | { |
| 82 | namespace Error |
| 83 | { |
| 84 | struct Inventory; |
| 85 | } // namespace Error |
| 86 | } // namespace Callout |
| 87 | } // namespace Common |
| 88 | } // namespace openbmc_project |
| 89 | } // namespace xyz |
| 90 | } // namespace sdbusplus |
| 91 | |
| 92 | namespace sdbusplus |
| 93 | { |
| 94 | namespace xyz |
| 95 | { |
| 96 | namespace openbmc_project |
| 97 | { |
| 98 | namespace Common |
| 99 | { |
| 100 | namespace Callout |
| 101 | { |
| 102 | namespace Error |
| 103 | { |
| 104 | struct IIC; |
| 105 | } // namespace Error |
| 106 | } // namespace Callout |
| 107 | } // namespace Common |
| 108 | } // namespace openbmc_project |
| 109 | } // namespace xyz |
| 110 | } // namespace sdbusplus |
| 111 | |
| 112 | namespace sdbusplus |
| 113 | { |
| 114 | namespace xyz |
| 115 | { |
| 116 | namespace openbmc_project |
| 117 | { |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 118 | namespace Power |
| 119 | { |
| 120 | namespace Fault |
| 121 | { |
| 122 | namespace Error |
| 123 | { |
Matt Spinler | ac4b52f | 2017-08-21 14:50:58 -0500 | [diff] [blame] | 124 | struct PowerSequencerPGOODFault; |
| 125 | } // namespace Error |
| 126 | } // namespace Fault |
| 127 | } // namespace Power |
| 128 | } // namespace openbmc_project |
| 129 | } // namespace xyz |
| 130 | } // namespace sdbusplus |
| 131 | |
| 132 | namespace sdbusplus |
| 133 | { |
| 134 | namespace xyz |
| 135 | { |
| 136 | namespace openbmc_project |
| 137 | { |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 138 | namespace Common |
| 139 | { |
| 140 | namespace Callout |
| 141 | { |
| 142 | namespace Error |
| 143 | { |
| 144 | struct Device; |
| 145 | } // namespace Error |
| 146 | } // namespace Callout |
| 147 | } // namespace Common |
| 148 | } // namespace openbmc_project |
| 149 | } // namespace xyz |
| 150 | } // namespace sdbusplus |
| 151 | |
| 152 | namespace sdbusplus |
| 153 | { |
| 154 | namespace xyz |
| 155 | { |
| 156 | namespace openbmc_project |
| 157 | { |
| 158 | namespace Power |
| 159 | { |
| 160 | namespace Fault |
| 161 | { |
| 162 | namespace Error |
| 163 | { |
| 164 | struct PowerSupplyUnderVoltageFault; |
| 165 | } // namespace Error |
| 166 | } // namespace Fault |
| 167 | } // namespace Power |
| 168 | } // namespace openbmc_project |
| 169 | } // namespace xyz |
| 170 | } // namespace sdbusplus |
| 171 | |
| 172 | namespace sdbusplus |
| 173 | { |
| 174 | namespace xyz |
| 175 | { |
| 176 | namespace openbmc_project |
| 177 | { |
Matt Spinler | ac4b52f | 2017-08-21 14:50:58 -0500 | [diff] [blame] | 178 | namespace Power |
| 179 | { |
| 180 | namespace Fault |
| 181 | { |
| 182 | namespace Error |
| 183 | { |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 184 | struct GPUPowerFault; |
Matt Spinler | ac4b52f | 2017-08-21 14:50:58 -0500 | [diff] [blame] | 185 | } // namespace Error |
| 186 | } // namespace Fault |
| 187 | } // namespace Power |
| 188 | } // namespace openbmc_project |
| 189 | } // namespace xyz |
| 190 | } // namespace sdbusplus |
| 191 | |
| 192 | namespace sdbusplus |
| 193 | { |
| 194 | namespace xyz |
| 195 | { |
| 196 | namespace openbmc_project |
| 197 | { |
| 198 | namespace Power |
| 199 | { |
| 200 | namespace Fault |
| 201 | { |
| 202 | namespace Error |
| 203 | { |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 204 | struct GPUOverTemp; |
| 205 | } // namespace Error |
| 206 | } // namespace Fault |
| 207 | } // namespace Power |
| 208 | } // namespace openbmc_project |
| 209 | } // namespace xyz |
| 210 | } // namespace sdbusplus |
| 211 | |
| 212 | namespace sdbusplus |
| 213 | { |
| 214 | namespace xyz |
| 215 | { |
| 216 | namespace openbmc_project |
| 217 | { |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 218 | namespace Common |
| 219 | { |
| 220 | namespace Callout |
| 221 | { |
| 222 | namespace Error |
| 223 | { |
| 224 | struct IPMISensor; |
| 225 | } // namespace Error |
| 226 | } // namespace Callout |
| 227 | } // namespace Common |
| 228 | } // namespace openbmc_project |
| 229 | } // namespace xyz |
| 230 | } // namespace sdbusplus |
| 231 | |
| 232 | namespace sdbusplus |
| 233 | { |
| 234 | namespace xyz |
| 235 | { |
| 236 | namespace openbmc_project |
| 237 | { |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 238 | namespace Power |
| 239 | { |
| 240 | namespace Fault |
| 241 | { |
| 242 | namespace Error |
| 243 | { |
| 244 | struct PowerSequencerVoltageFault; |
Matt Spinler | ac4b52f | 2017-08-21 14:50:58 -0500 | [diff] [blame] | 245 | } // namespace Error |
| 246 | } // namespace Fault |
| 247 | } // namespace Power |
| 248 | } // namespace openbmc_project |
| 249 | } // namespace xyz |
| 250 | } // namespace sdbusplus |
| 251 | |
| 252 | namespace sdbusplus |
| 253 | { |
| 254 | namespace xyz |
| 255 | { |
| 256 | namespace openbmc_project |
| 257 | { |
| 258 | namespace Power |
| 259 | { |
| 260 | namespace Fault |
| 261 | { |
| 262 | namespace Error |
| 263 | { |
Matt Spinler | 84cd0a5 | 2017-08-04 08:53:30 -0500 | [diff] [blame] | 264 | struct Shutdown; |
| 265 | } // namespace Error |
| 266 | } // namespace Fault |
| 267 | } // namespace Power |
| 268 | } // namespace openbmc_project |
| 269 | } // namespace xyz |
| 270 | } // namespace sdbusplus |
| 271 | |
| 272 | |
| 273 | namespace phosphor |
| 274 | { |
| 275 | |
| 276 | namespace logging |
| 277 | { |
| 278 | |
| 279 | namespace xyz |
| 280 | { |
| 281 | namespace openbmc_project |
| 282 | { |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 283 | namespace Common |
| 284 | { |
| 285 | namespace Callout |
| 286 | { |
| 287 | namespace _Device |
| 288 | { |
| 289 | |
| 290 | struct CALLOUT_ERRNO |
| 291 | { |
| 292 | static constexpr auto str = "CALLOUT_ERRNO=%d"; |
| 293 | static constexpr auto str_short = "CALLOUT_ERRNO"; |
| 294 | using type = std::tuple<std::decay_t<decltype(str)>,int32_t>; |
| 295 | explicit constexpr CALLOUT_ERRNO(int32_t a) : _entry(entry(str, a)) {}; |
| 296 | type _entry; |
| 297 | }; |
| 298 | struct CALLOUT_DEVICE_PATH |
| 299 | { |
| 300 | static constexpr auto str = "CALLOUT_DEVICE_PATH=%s"; |
| 301 | static constexpr auto str_short = "CALLOUT_DEVICE_PATH"; |
| 302 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 303 | explicit constexpr CALLOUT_DEVICE_PATH(const char* a) : _entry(entry(str, a)) {}; |
| 304 | type _entry; |
| 305 | }; |
| 306 | |
| 307 | } // namespace _Device |
| 308 | |
| 309 | struct Device |
| 310 | { |
| 311 | static constexpr auto L = level::ERR; |
| 312 | using CALLOUT_ERRNO = _Device::CALLOUT_ERRNO; |
| 313 | using CALLOUT_DEVICE_PATH = _Device::CALLOUT_DEVICE_PATH; |
| 314 | using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
| 315 | |
| 316 | }; |
| 317 | |
| 318 | } // namespace Callout |
| 319 | } // namespace Common |
| 320 | } // namespace openbmc_project |
| 321 | } // namespace xyz |
| 322 | |
| 323 | |
| 324 | namespace details |
| 325 | { |
| 326 | |
| 327 | template <> |
| 328 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::Device> |
| 329 | { |
| 330 | using type = xyz::openbmc_project::Common::Callout::Device; |
| 331 | }; |
| 332 | |
| 333 | } |
| 334 | |
| 335 | namespace xyz |
| 336 | { |
| 337 | namespace openbmc_project |
| 338 | { |
| 339 | namespace Common |
| 340 | { |
| 341 | namespace Callout |
| 342 | { |
| 343 | namespace _GPIO |
| 344 | { |
| 345 | |
| 346 | struct CALLOUT_GPIO_NUM |
| 347 | { |
| 348 | static constexpr auto str = "CALLOUT_GPIO_NUM=%u"; |
| 349 | static constexpr auto str_short = "CALLOUT_GPIO_NUM"; |
| 350 | using type = std::tuple<std::decay_t<decltype(str)>,uint32_t>; |
| 351 | explicit constexpr CALLOUT_GPIO_NUM(uint32_t a) : _entry(entry(str, a)) {}; |
| 352 | type _entry; |
| 353 | }; |
| 354 | |
| 355 | } // namespace _GPIO |
| 356 | |
| 357 | struct GPIO |
| 358 | { |
| 359 | static constexpr auto L = level::ERR; |
| 360 | using CALLOUT_GPIO_NUM = _GPIO::CALLOUT_GPIO_NUM; |
| 361 | using CALLOUT_ERRNO = xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO; |
| 362 | using CALLOUT_DEVICE_PATH = xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH; |
| 363 | using metadata_types = std::tuple<CALLOUT_GPIO_NUM, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
| 364 | |
| 365 | }; |
| 366 | |
| 367 | } // namespace Callout |
| 368 | } // namespace Common |
| 369 | } // namespace openbmc_project |
| 370 | } // namespace xyz |
| 371 | |
| 372 | |
| 373 | namespace details |
| 374 | { |
| 375 | |
| 376 | template <> |
| 377 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::GPIO> |
| 378 | { |
| 379 | using type = xyz::openbmc_project::Common::Callout::GPIO; |
| 380 | }; |
| 381 | |
| 382 | } |
| 383 | |
| 384 | namespace xyz |
| 385 | { |
| 386 | namespace openbmc_project |
| 387 | { |
| 388 | namespace Common |
| 389 | { |
| 390 | namespace Callout |
| 391 | { |
| 392 | namespace _IIC |
| 393 | { |
| 394 | |
| 395 | struct CALLOUT_IIC_BUS |
| 396 | { |
| 397 | static constexpr auto str = "CALLOUT_IIC_BUS=%s"; |
| 398 | static constexpr auto str_short = "CALLOUT_IIC_BUS"; |
| 399 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 400 | explicit constexpr CALLOUT_IIC_BUS(const char* a) : _entry(entry(str, a)) {}; |
| 401 | type _entry; |
| 402 | }; |
| 403 | struct CALLOUT_IIC_ADDR |
| 404 | { |
| 405 | static constexpr auto str = "CALLOUT_IIC_ADDR=0x%hx"; |
| 406 | static constexpr auto str_short = "CALLOUT_IIC_ADDR"; |
| 407 | using type = std::tuple<std::decay_t<decltype(str)>,uint16_t>; |
| 408 | explicit constexpr CALLOUT_IIC_ADDR(uint16_t a) : _entry(entry(str, a)) {}; |
| 409 | type _entry; |
| 410 | }; |
| 411 | |
| 412 | } // namespace _IIC |
| 413 | |
| 414 | struct IIC |
| 415 | { |
| 416 | static constexpr auto L = level::ERR; |
| 417 | using CALLOUT_IIC_BUS = _IIC::CALLOUT_IIC_BUS; |
| 418 | using CALLOUT_IIC_ADDR = _IIC::CALLOUT_IIC_ADDR; |
| 419 | using CALLOUT_ERRNO = xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO; |
| 420 | using CALLOUT_DEVICE_PATH = xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH; |
| 421 | using metadata_types = std::tuple<CALLOUT_IIC_BUS, CALLOUT_IIC_ADDR, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
| 422 | |
| 423 | }; |
| 424 | |
| 425 | } // namespace Callout |
| 426 | } // namespace Common |
| 427 | } // namespace openbmc_project |
| 428 | } // namespace xyz |
| 429 | |
| 430 | |
| 431 | namespace details |
| 432 | { |
| 433 | |
| 434 | template <> |
| 435 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::IIC> |
| 436 | { |
| 437 | using type = xyz::openbmc_project::Common::Callout::IIC; |
| 438 | }; |
| 439 | |
| 440 | } |
| 441 | |
| 442 | namespace xyz |
| 443 | { |
| 444 | namespace openbmc_project |
| 445 | { |
| 446 | namespace Common |
| 447 | { |
| 448 | namespace Callout |
| 449 | { |
| 450 | namespace _Inventory |
| 451 | { |
| 452 | |
| 453 | struct CALLOUT_INVENTORY_PATH |
| 454 | { |
| 455 | static constexpr auto str = "CALLOUT_INVENTORY_PATH=%s"; |
| 456 | static constexpr auto str_short = "CALLOUT_INVENTORY_PATH"; |
| 457 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 458 | explicit constexpr CALLOUT_INVENTORY_PATH(const char* a) : _entry(entry(str, a)) {}; |
| 459 | type _entry; |
| 460 | }; |
| 461 | |
| 462 | } // namespace _Inventory |
| 463 | |
| 464 | struct Inventory |
| 465 | { |
| 466 | static constexpr auto L = level::ERR; |
| 467 | using CALLOUT_INVENTORY_PATH = _Inventory::CALLOUT_INVENTORY_PATH; |
| 468 | using metadata_types = std::tuple<CALLOUT_INVENTORY_PATH>; |
| 469 | |
| 470 | }; |
| 471 | |
| 472 | } // namespace Callout |
| 473 | } // namespace Common |
| 474 | } // namespace openbmc_project |
| 475 | } // namespace xyz |
| 476 | |
| 477 | |
| 478 | namespace details |
| 479 | { |
| 480 | |
| 481 | template <> |
| 482 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::Inventory> |
| 483 | { |
| 484 | using type = xyz::openbmc_project::Common::Callout::Inventory; |
| 485 | }; |
| 486 | |
| 487 | } |
| 488 | |
| 489 | namespace xyz |
| 490 | { |
| 491 | namespace openbmc_project |
| 492 | { |
| 493 | namespace Common |
| 494 | { |
| 495 | namespace Callout |
| 496 | { |
| 497 | namespace _IPMISensor |
| 498 | { |
| 499 | |
| 500 | struct CALLOUT_IPMI_SENSOR_NUM |
| 501 | { |
| 502 | static constexpr auto str = "CALLOUT_IPMI_SENSOR_NUM=%u"; |
| 503 | static constexpr auto str_short = "CALLOUT_IPMI_SENSOR_NUM"; |
| 504 | using type = std::tuple<std::decay_t<decltype(str)>,uint32_t>; |
| 505 | explicit constexpr CALLOUT_IPMI_SENSOR_NUM(uint32_t a) : _entry(entry(str, a)) {}; |
| 506 | type _entry; |
| 507 | }; |
| 508 | |
| 509 | } // namespace _IPMISensor |
| 510 | |
| 511 | struct IPMISensor |
| 512 | { |
| 513 | static constexpr auto L = level::ERR; |
| 514 | using CALLOUT_IPMI_SENSOR_NUM = _IPMISensor::CALLOUT_IPMI_SENSOR_NUM; |
| 515 | using metadata_types = std::tuple<CALLOUT_IPMI_SENSOR_NUM>; |
| 516 | |
| 517 | }; |
| 518 | |
| 519 | } // namespace Callout |
| 520 | } // namespace Common |
| 521 | } // namespace openbmc_project |
| 522 | } // namespace xyz |
| 523 | |
| 524 | |
| 525 | namespace details |
| 526 | { |
| 527 | |
| 528 | template <> |
| 529 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::IPMISensor> |
| 530 | { |
| 531 | using type = xyz::openbmc_project::Common::Callout::IPMISensor; |
| 532 | }; |
| 533 | |
| 534 | } |
| 535 | |
| 536 | namespace xyz |
| 537 | { |
| 538 | namespace openbmc_project |
| 539 | { |
| 540 | namespace Power |
| 541 | { |
| 542 | namespace Fault |
| 543 | { |
| 544 | namespace _PowerSupplyUnderVoltageFault |
| 545 | { |
| 546 | |
Brandon Wyman | 1029554 | 2017-08-09 18:20:44 -0500 | [diff] [blame^] | 547 | struct RAW_STATUS |
| 548 | { |
| 549 | static constexpr auto str = "RAW_STATUS=%s"; |
| 550 | static constexpr auto str_short = "RAW_STATUS"; |
| 551 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 552 | explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; |
| 553 | type _entry; |
| 554 | }; |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 555 | |
| 556 | } // namespace _PowerSupplyUnderVoltageFault |
| 557 | |
| 558 | struct PowerSupplyUnderVoltageFault |
| 559 | { |
| 560 | static constexpr auto L = level::ERR; |
Brandon Wyman | 1029554 | 2017-08-09 18:20:44 -0500 | [diff] [blame^] | 561 | using RAW_STATUS = _PowerSupplyUnderVoltageFault::RAW_STATUS; |
| 562 | using metadata_types = std::tuple<RAW_STATUS>; |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 563 | |
| 564 | }; |
| 565 | |
| 566 | } // namespace Fault |
| 567 | } // namespace Power |
| 568 | } // namespace openbmc_project |
| 569 | } // namespace xyz |
| 570 | |
| 571 | |
| 572 | namespace details |
| 573 | { |
| 574 | |
| 575 | template <> |
| 576 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSupplyUnderVoltageFault> |
| 577 | { |
| 578 | using type = xyz::openbmc_project::Power::Fault::PowerSupplyUnderVoltageFault; |
| 579 | }; |
| 580 | |
| 581 | } |
| 582 | |
| 583 | namespace xyz |
| 584 | { |
| 585 | namespace openbmc_project |
| 586 | { |
Matt Spinler | 84cd0a5 | 2017-08-04 08:53:30 -0500 | [diff] [blame] | 587 | namespace Power |
| 588 | { |
| 589 | namespace Fault |
| 590 | { |
| 591 | namespace _Shutdown |
| 592 | { |
| 593 | |
| 594 | |
| 595 | } // namespace _Shutdown |
| 596 | |
| 597 | struct Shutdown |
| 598 | { |
| 599 | static constexpr auto L = level::ERR; |
| 600 | using metadata_types = std::tuple<>; |
| 601 | |
| 602 | }; |
| 603 | |
| 604 | } // namespace Fault |
| 605 | } // namespace Power |
| 606 | } // namespace openbmc_project |
| 607 | } // namespace xyz |
| 608 | |
| 609 | |
| 610 | namespace details |
| 611 | { |
| 612 | |
| 613 | template <> |
| 614 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::Shutdown> |
| 615 | { |
| 616 | using type = xyz::openbmc_project::Power::Fault::Shutdown; |
| 617 | }; |
| 618 | |
| 619 | } |
| 620 | |
Matt Spinler | facfa90 | 2017-08-14 13:43:36 -0500 | [diff] [blame] | 621 | namespace xyz |
| 622 | { |
| 623 | namespace openbmc_project |
| 624 | { |
| 625 | namespace Power |
| 626 | { |
| 627 | namespace Fault |
| 628 | { |
| 629 | namespace _PowerOnFailure |
| 630 | { |
| 631 | |
| 632 | |
| 633 | } // namespace _PowerOnFailure |
| 634 | |
| 635 | struct PowerOnFailure |
| 636 | { |
| 637 | static constexpr auto L = level::ERR; |
| 638 | using metadata_types = std::tuple<>; |
| 639 | |
| 640 | }; |
| 641 | |
| 642 | } // namespace Fault |
| 643 | } // namespace Power |
| 644 | } // namespace openbmc_project |
| 645 | } // namespace xyz |
| 646 | |
| 647 | |
| 648 | namespace details |
| 649 | { |
| 650 | |
| 651 | template <> |
| 652 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerOnFailure> |
| 653 | { |
| 654 | using type = xyz::openbmc_project::Power::Fault::PowerOnFailure; |
| 655 | }; |
| 656 | |
| 657 | } |
| 658 | |
Matt Spinler | ac4b52f | 2017-08-21 14:50:58 -0500 | [diff] [blame] | 659 | namespace xyz |
| 660 | { |
| 661 | namespace openbmc_project |
| 662 | { |
| 663 | namespace Power |
| 664 | { |
| 665 | namespace Fault |
| 666 | { |
| 667 | namespace _PowerSequencerVoltageFault |
| 668 | { |
| 669 | |
| 670 | struct RAIL |
| 671 | { |
| 672 | static constexpr auto str = "RAIL=%d"; |
| 673 | static constexpr auto str_short = "RAIL"; |
| 674 | using type = std::tuple<std::decay_t<decltype(str)>,uint16_t>; |
| 675 | explicit constexpr RAIL(uint16_t a) : _entry(entry(str, a)) {}; |
| 676 | type _entry; |
| 677 | }; |
| 678 | struct RAIL_NAME |
| 679 | { |
| 680 | static constexpr auto str = "RAIL_NAME=%s"; |
| 681 | static constexpr auto str_short = "RAIL_NAME"; |
| 682 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 683 | explicit constexpr RAIL_NAME(const char* a) : _entry(entry(str, a)) {}; |
| 684 | type _entry; |
| 685 | }; |
| 686 | struct RAW_STATUS |
| 687 | { |
| 688 | static constexpr auto str = "RAW_STATUS=%s"; |
| 689 | static constexpr auto str_short = "RAW_STATUS"; |
| 690 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 691 | explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; |
| 692 | type _entry; |
| 693 | }; |
| 694 | |
| 695 | } // namespace _PowerSequencerVoltageFault |
| 696 | |
| 697 | struct PowerSequencerVoltageFault |
| 698 | { |
| 699 | static constexpr auto L = level::ERR; |
| 700 | using RAIL = _PowerSequencerVoltageFault::RAIL; |
| 701 | using RAIL_NAME = _PowerSequencerVoltageFault::RAIL_NAME; |
| 702 | using RAW_STATUS = _PowerSequencerVoltageFault::RAW_STATUS; |
| 703 | using metadata_types = std::tuple<RAIL, RAIL_NAME, RAW_STATUS>; |
| 704 | |
| 705 | }; |
| 706 | |
| 707 | } // namespace Fault |
| 708 | } // namespace Power |
| 709 | } // namespace openbmc_project |
| 710 | } // namespace xyz |
| 711 | |
| 712 | |
| 713 | namespace details |
| 714 | { |
| 715 | |
| 716 | template <> |
| 717 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSequencerVoltageFault> |
| 718 | { |
| 719 | using type = xyz::openbmc_project::Power::Fault::PowerSequencerVoltageFault; |
| 720 | }; |
| 721 | |
| 722 | } |
| 723 | |
| 724 | namespace xyz |
| 725 | { |
| 726 | namespace openbmc_project |
| 727 | { |
| 728 | namespace Power |
| 729 | { |
| 730 | namespace Fault |
| 731 | { |
| 732 | namespace _PowerSequencerPGOODFault |
| 733 | { |
| 734 | |
| 735 | struct INPUT_NUM |
| 736 | { |
| 737 | static constexpr auto str = "INPUT_NUM=%d"; |
| 738 | static constexpr auto str_short = "INPUT_NUM"; |
| 739 | using type = std::tuple<std::decay_t<decltype(str)>,uint16_t>; |
| 740 | explicit constexpr INPUT_NUM(uint16_t a) : _entry(entry(str, a)) {}; |
| 741 | type _entry; |
| 742 | }; |
| 743 | struct INPUT_NAME |
| 744 | { |
| 745 | static constexpr auto str = "INPUT_NAME=%s"; |
| 746 | static constexpr auto str_short = "INPUT_NAME"; |
| 747 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 748 | explicit constexpr INPUT_NAME(const char* a) : _entry(entry(str, a)) {}; |
| 749 | type _entry; |
| 750 | }; |
| 751 | struct RAW_STATUS |
| 752 | { |
| 753 | static constexpr auto str = "RAW_STATUS=%s"; |
| 754 | static constexpr auto str_short = "RAW_STATUS"; |
| 755 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 756 | explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; |
| 757 | type _entry; |
| 758 | }; |
| 759 | |
| 760 | } // namespace _PowerSequencerPGOODFault |
| 761 | |
| 762 | struct PowerSequencerPGOODFault |
| 763 | { |
| 764 | static constexpr auto L = level::ERR; |
| 765 | using INPUT_NUM = _PowerSequencerPGOODFault::INPUT_NUM; |
| 766 | using INPUT_NAME = _PowerSequencerPGOODFault::INPUT_NAME; |
| 767 | using RAW_STATUS = _PowerSequencerPGOODFault::RAW_STATUS; |
| 768 | using metadata_types = std::tuple<INPUT_NUM, INPUT_NAME, RAW_STATUS>; |
| 769 | |
| 770 | }; |
| 771 | |
| 772 | } // namespace Fault |
| 773 | } // namespace Power |
| 774 | } // namespace openbmc_project |
| 775 | } // namespace xyz |
| 776 | |
| 777 | |
| 778 | namespace details |
| 779 | { |
| 780 | |
| 781 | template <> |
| 782 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSequencerPGOODFault> |
| 783 | { |
| 784 | using type = xyz::openbmc_project::Power::Fault::PowerSequencerPGOODFault; |
| 785 | }; |
| 786 | |
| 787 | } |
| 788 | |
| 789 | namespace xyz |
| 790 | { |
| 791 | namespace openbmc_project |
| 792 | { |
| 793 | namespace Power |
| 794 | { |
| 795 | namespace Fault |
| 796 | { |
| 797 | namespace _PowerSequencerFault |
| 798 | { |
| 799 | |
| 800 | struct RAW_STATUS |
| 801 | { |
| 802 | static constexpr auto str = "RAW_STATUS=%s"; |
| 803 | static constexpr auto str_short = "RAW_STATUS"; |
| 804 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 805 | explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; |
| 806 | type _entry; |
| 807 | }; |
| 808 | |
| 809 | } // namespace _PowerSequencerFault |
| 810 | |
| 811 | struct PowerSequencerFault |
| 812 | { |
| 813 | static constexpr auto L = level::ERR; |
| 814 | using RAW_STATUS = _PowerSequencerFault::RAW_STATUS; |
| 815 | using metadata_types = std::tuple<RAW_STATUS>; |
| 816 | |
| 817 | }; |
| 818 | |
| 819 | } // namespace Fault |
| 820 | } // namespace Power |
| 821 | } // namespace openbmc_project |
| 822 | } // namespace xyz |
| 823 | |
| 824 | |
| 825 | namespace details |
| 826 | { |
| 827 | |
| 828 | template <> |
| 829 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSequencerFault> |
| 830 | { |
| 831 | using type = xyz::openbmc_project::Power::Fault::PowerSequencerFault; |
| 832 | }; |
| 833 | |
| 834 | } |
| 835 | |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 836 | namespace xyz |
| 837 | { |
| 838 | namespace openbmc_project |
| 839 | { |
| 840 | namespace Power |
| 841 | { |
| 842 | namespace Fault |
| 843 | { |
| 844 | namespace _GPUPowerFault |
| 845 | { |
| 846 | |
| 847 | struct RAW_STATUS |
| 848 | { |
| 849 | static constexpr auto str = "RAW_STATUS=%s"; |
| 850 | static constexpr auto str_short = "RAW_STATUS"; |
| 851 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 852 | explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; |
| 853 | type _entry; |
| 854 | }; |
| 855 | struct GPU |
| 856 | { |
| 857 | static constexpr auto str = "GPU=%s"; |
| 858 | static constexpr auto str_short = "GPU"; |
| 859 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 860 | explicit constexpr GPU(const char* a) : _entry(entry(str, a)) {}; |
| 861 | type _entry; |
| 862 | }; |
| 863 | |
| 864 | } // namespace _GPUPowerFault |
| 865 | |
| 866 | struct GPUPowerFault |
| 867 | { |
| 868 | static constexpr auto L = level::ERR; |
| 869 | using RAW_STATUS = _GPUPowerFault::RAW_STATUS; |
| 870 | using GPU = _GPUPowerFault::GPU; |
| 871 | using metadata_types = std::tuple<RAW_STATUS, GPU>; |
| 872 | |
| 873 | }; |
| 874 | |
| 875 | } // namespace Fault |
| 876 | } // namespace Power |
| 877 | } // namespace openbmc_project |
| 878 | } // namespace xyz |
| 879 | |
| 880 | |
| 881 | namespace details |
| 882 | { |
| 883 | |
| 884 | template <> |
| 885 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::GPUPowerFault> |
| 886 | { |
| 887 | using type = xyz::openbmc_project::Power::Fault::GPUPowerFault; |
| 888 | }; |
| 889 | |
| 890 | } |
| 891 | |
| 892 | namespace xyz |
| 893 | { |
| 894 | namespace openbmc_project |
| 895 | { |
| 896 | namespace Power |
| 897 | { |
| 898 | namespace Fault |
| 899 | { |
| 900 | namespace _GPUOverTemp |
| 901 | { |
| 902 | |
| 903 | struct RAW_STATUS |
| 904 | { |
| 905 | static constexpr auto str = "RAW_STATUS=%s"; |
| 906 | static constexpr auto str_short = "RAW_STATUS"; |
| 907 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 908 | explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; |
| 909 | type _entry; |
| 910 | }; |
| 911 | struct GPU |
| 912 | { |
| 913 | static constexpr auto str = "GPU=%s"; |
| 914 | static constexpr auto str_short = "GPU"; |
| 915 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 916 | explicit constexpr GPU(const char* a) : _entry(entry(str, a)) {}; |
| 917 | type _entry; |
| 918 | }; |
| 919 | |
| 920 | } // namespace _GPUOverTemp |
| 921 | |
| 922 | struct GPUOverTemp |
| 923 | { |
| 924 | static constexpr auto L = level::ERR; |
| 925 | using RAW_STATUS = _GPUOverTemp::RAW_STATUS; |
| 926 | using GPU = _GPUOverTemp::GPU; |
| 927 | using metadata_types = std::tuple<RAW_STATUS, GPU>; |
| 928 | |
| 929 | }; |
| 930 | |
| 931 | } // namespace Fault |
| 932 | } // namespace Power |
| 933 | } // namespace openbmc_project |
| 934 | } // namespace xyz |
| 935 | |
| 936 | |
| 937 | namespace details |
| 938 | { |
| 939 | |
| 940 | template <> |
| 941 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::GPUOverTemp> |
| 942 | { |
| 943 | using type = xyz::openbmc_project::Power::Fault::GPUOverTemp; |
| 944 | }; |
| 945 | |
| 946 | } |
| 947 | |
Matt Spinler | 84cd0a5 | 2017-08-04 08:53:30 -0500 | [diff] [blame] | 948 | |
| 949 | } // namespace logging |
| 950 | |
| 951 | } // namespace phosphor |