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 | 764c797 | 2017-08-22 17:05:36 -0500 | [diff] [blame^] | 138 | namespace Power |
| 139 | { |
| 140 | namespace Fault |
| 141 | { |
| 142 | namespace Error |
| 143 | { |
| 144 | struct PowerSupplyShouldBeOn; |
| 145 | } // namespace Error |
| 146 | } // namespace Fault |
| 147 | } // namespace Power |
| 148 | } // namespace openbmc_project |
| 149 | } // namespace xyz |
| 150 | } // namespace sdbusplus |
| 151 | |
| 152 | namespace sdbusplus |
| 153 | { |
| 154 | namespace xyz |
| 155 | { |
| 156 | namespace openbmc_project |
| 157 | { |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 158 | namespace Common |
| 159 | { |
| 160 | namespace Callout |
| 161 | { |
| 162 | namespace Error |
| 163 | { |
| 164 | struct Device; |
| 165 | } // namespace Error |
| 166 | } // namespace Callout |
| 167 | } // namespace Common |
| 168 | } // namespace openbmc_project |
| 169 | } // namespace xyz |
| 170 | } // namespace sdbusplus |
| 171 | |
| 172 | namespace sdbusplus |
| 173 | { |
| 174 | namespace xyz |
| 175 | { |
| 176 | namespace openbmc_project |
| 177 | { |
| 178 | namespace Power |
| 179 | { |
| 180 | namespace Fault |
| 181 | { |
| 182 | namespace Error |
| 183 | { |
| 184 | struct PowerSupplyUnderVoltageFault; |
| 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 | { |
Matt Spinler | ac4b52f | 2017-08-21 14:50:58 -0500 | [diff] [blame] | 198 | namespace Power |
| 199 | { |
| 200 | namespace Fault |
| 201 | { |
| 202 | namespace Error |
| 203 | { |
Brandon Wyman | 253dc9b | 2017-08-12 13:45:52 -0500 | [diff] [blame] | 204 | struct PowerSupplyInputFault; |
| 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 | { |
| 218 | namespace Power |
| 219 | { |
| 220 | namespace Fault |
| 221 | { |
| 222 | namespace Error |
| 223 | { |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 224 | struct GPUPowerFault; |
Matt Spinler | ac4b52f | 2017-08-21 14:50:58 -0500 | [diff] [blame] | 225 | } // namespace Error |
| 226 | } // namespace Fault |
| 227 | } // namespace Power |
| 228 | } // namespace openbmc_project |
| 229 | } // namespace xyz |
| 230 | } // namespace sdbusplus |
| 231 | |
| 232 | namespace sdbusplus |
| 233 | { |
| 234 | namespace xyz |
| 235 | { |
| 236 | namespace openbmc_project |
| 237 | { |
| 238 | namespace Power |
| 239 | { |
| 240 | namespace Fault |
| 241 | { |
| 242 | namespace Error |
| 243 | { |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 244 | struct GPUOverTemp; |
| 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 | { |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 258 | namespace Common |
| 259 | { |
| 260 | namespace Callout |
| 261 | { |
| 262 | namespace Error |
| 263 | { |
| 264 | struct IPMISensor; |
| 265 | } // namespace Error |
| 266 | } // namespace Callout |
| 267 | } // namespace Common |
| 268 | } // namespace openbmc_project |
| 269 | } // namespace xyz |
| 270 | } // namespace sdbusplus |
| 271 | |
| 272 | namespace sdbusplus |
| 273 | { |
| 274 | namespace xyz |
| 275 | { |
| 276 | namespace openbmc_project |
| 277 | { |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 278 | namespace Power |
| 279 | { |
| 280 | namespace Fault |
| 281 | { |
| 282 | namespace Error |
| 283 | { |
| 284 | struct PowerSequencerVoltageFault; |
Matt Spinler | ac4b52f | 2017-08-21 14:50:58 -0500 | [diff] [blame] | 285 | } // namespace Error |
| 286 | } // namespace Fault |
| 287 | } // namespace Power |
| 288 | } // namespace openbmc_project |
| 289 | } // namespace xyz |
| 290 | } // namespace sdbusplus |
| 291 | |
| 292 | namespace sdbusplus |
| 293 | { |
| 294 | namespace xyz |
| 295 | { |
| 296 | namespace openbmc_project |
| 297 | { |
| 298 | namespace Power |
| 299 | { |
| 300 | namespace Fault |
| 301 | { |
| 302 | namespace Error |
| 303 | { |
Matt Spinler | 84cd0a5 | 2017-08-04 08:53:30 -0500 | [diff] [blame] | 304 | struct Shutdown; |
| 305 | } // namespace Error |
| 306 | } // namespace Fault |
| 307 | } // namespace Power |
| 308 | } // namespace openbmc_project |
| 309 | } // namespace xyz |
| 310 | } // namespace sdbusplus |
| 311 | |
| 312 | |
| 313 | namespace phosphor |
| 314 | { |
| 315 | |
| 316 | namespace logging |
| 317 | { |
| 318 | |
| 319 | namespace xyz |
| 320 | { |
| 321 | namespace openbmc_project |
| 322 | { |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 323 | namespace Common |
| 324 | { |
| 325 | namespace Callout |
| 326 | { |
| 327 | namespace _Device |
| 328 | { |
| 329 | |
| 330 | struct CALLOUT_ERRNO |
| 331 | { |
| 332 | static constexpr auto str = "CALLOUT_ERRNO=%d"; |
| 333 | static constexpr auto str_short = "CALLOUT_ERRNO"; |
| 334 | using type = std::tuple<std::decay_t<decltype(str)>,int32_t>; |
| 335 | explicit constexpr CALLOUT_ERRNO(int32_t a) : _entry(entry(str, a)) {}; |
| 336 | type _entry; |
| 337 | }; |
| 338 | struct CALLOUT_DEVICE_PATH |
| 339 | { |
| 340 | static constexpr auto str = "CALLOUT_DEVICE_PATH=%s"; |
| 341 | static constexpr auto str_short = "CALLOUT_DEVICE_PATH"; |
| 342 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 343 | explicit constexpr CALLOUT_DEVICE_PATH(const char* a) : _entry(entry(str, a)) {}; |
| 344 | type _entry; |
| 345 | }; |
| 346 | |
| 347 | } // namespace _Device |
| 348 | |
| 349 | struct Device |
| 350 | { |
| 351 | static constexpr auto L = level::ERR; |
| 352 | using CALLOUT_ERRNO = _Device::CALLOUT_ERRNO; |
| 353 | using CALLOUT_DEVICE_PATH = _Device::CALLOUT_DEVICE_PATH; |
| 354 | using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
| 355 | |
| 356 | }; |
| 357 | |
| 358 | } // namespace Callout |
| 359 | } // namespace Common |
| 360 | } // namespace openbmc_project |
| 361 | } // namespace xyz |
| 362 | |
| 363 | |
| 364 | namespace details |
| 365 | { |
| 366 | |
| 367 | template <> |
| 368 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::Device> |
| 369 | { |
| 370 | using type = xyz::openbmc_project::Common::Callout::Device; |
| 371 | }; |
| 372 | |
| 373 | } |
| 374 | |
| 375 | namespace xyz |
| 376 | { |
| 377 | namespace openbmc_project |
| 378 | { |
| 379 | namespace Common |
| 380 | { |
| 381 | namespace Callout |
| 382 | { |
| 383 | namespace _GPIO |
| 384 | { |
| 385 | |
| 386 | struct CALLOUT_GPIO_NUM |
| 387 | { |
| 388 | static constexpr auto str = "CALLOUT_GPIO_NUM=%u"; |
| 389 | static constexpr auto str_short = "CALLOUT_GPIO_NUM"; |
| 390 | using type = std::tuple<std::decay_t<decltype(str)>,uint32_t>; |
| 391 | explicit constexpr CALLOUT_GPIO_NUM(uint32_t a) : _entry(entry(str, a)) {}; |
| 392 | type _entry; |
| 393 | }; |
| 394 | |
| 395 | } // namespace _GPIO |
| 396 | |
| 397 | struct GPIO |
| 398 | { |
| 399 | static constexpr auto L = level::ERR; |
| 400 | using CALLOUT_GPIO_NUM = _GPIO::CALLOUT_GPIO_NUM; |
| 401 | using CALLOUT_ERRNO = xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO; |
| 402 | using CALLOUT_DEVICE_PATH = xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH; |
| 403 | using metadata_types = std::tuple<CALLOUT_GPIO_NUM, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
| 404 | |
| 405 | }; |
| 406 | |
| 407 | } // namespace Callout |
| 408 | } // namespace Common |
| 409 | } // namespace openbmc_project |
| 410 | } // namespace xyz |
| 411 | |
| 412 | |
| 413 | namespace details |
| 414 | { |
| 415 | |
| 416 | template <> |
| 417 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::GPIO> |
| 418 | { |
| 419 | using type = xyz::openbmc_project::Common::Callout::GPIO; |
| 420 | }; |
| 421 | |
| 422 | } |
| 423 | |
| 424 | namespace xyz |
| 425 | { |
| 426 | namespace openbmc_project |
| 427 | { |
| 428 | namespace Common |
| 429 | { |
| 430 | namespace Callout |
| 431 | { |
| 432 | namespace _IIC |
| 433 | { |
| 434 | |
| 435 | struct CALLOUT_IIC_BUS |
| 436 | { |
| 437 | static constexpr auto str = "CALLOUT_IIC_BUS=%s"; |
| 438 | static constexpr auto str_short = "CALLOUT_IIC_BUS"; |
| 439 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 440 | explicit constexpr CALLOUT_IIC_BUS(const char* a) : _entry(entry(str, a)) {}; |
| 441 | type _entry; |
| 442 | }; |
| 443 | struct CALLOUT_IIC_ADDR |
| 444 | { |
| 445 | static constexpr auto str = "CALLOUT_IIC_ADDR=0x%hx"; |
| 446 | static constexpr auto str_short = "CALLOUT_IIC_ADDR"; |
| 447 | using type = std::tuple<std::decay_t<decltype(str)>,uint16_t>; |
| 448 | explicit constexpr CALLOUT_IIC_ADDR(uint16_t a) : _entry(entry(str, a)) {}; |
| 449 | type _entry; |
| 450 | }; |
| 451 | |
| 452 | } // namespace _IIC |
| 453 | |
| 454 | struct IIC |
| 455 | { |
| 456 | static constexpr auto L = level::ERR; |
| 457 | using CALLOUT_IIC_BUS = _IIC::CALLOUT_IIC_BUS; |
| 458 | using CALLOUT_IIC_ADDR = _IIC::CALLOUT_IIC_ADDR; |
| 459 | using CALLOUT_ERRNO = xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO; |
| 460 | using CALLOUT_DEVICE_PATH = xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH; |
| 461 | using metadata_types = std::tuple<CALLOUT_IIC_BUS, CALLOUT_IIC_ADDR, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
| 462 | |
| 463 | }; |
| 464 | |
| 465 | } // namespace Callout |
| 466 | } // namespace Common |
| 467 | } // namespace openbmc_project |
| 468 | } // namespace xyz |
| 469 | |
| 470 | |
| 471 | namespace details |
| 472 | { |
| 473 | |
| 474 | template <> |
| 475 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::IIC> |
| 476 | { |
| 477 | using type = xyz::openbmc_project::Common::Callout::IIC; |
| 478 | }; |
| 479 | |
| 480 | } |
| 481 | |
| 482 | namespace xyz |
| 483 | { |
| 484 | namespace openbmc_project |
| 485 | { |
| 486 | namespace Common |
| 487 | { |
| 488 | namespace Callout |
| 489 | { |
| 490 | namespace _Inventory |
| 491 | { |
| 492 | |
| 493 | struct CALLOUT_INVENTORY_PATH |
| 494 | { |
| 495 | static constexpr auto str = "CALLOUT_INVENTORY_PATH=%s"; |
| 496 | static constexpr auto str_short = "CALLOUT_INVENTORY_PATH"; |
| 497 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 498 | explicit constexpr CALLOUT_INVENTORY_PATH(const char* a) : _entry(entry(str, a)) {}; |
| 499 | type _entry; |
| 500 | }; |
| 501 | |
| 502 | } // namespace _Inventory |
| 503 | |
| 504 | struct Inventory |
| 505 | { |
| 506 | static constexpr auto L = level::ERR; |
| 507 | using CALLOUT_INVENTORY_PATH = _Inventory::CALLOUT_INVENTORY_PATH; |
| 508 | using metadata_types = std::tuple<CALLOUT_INVENTORY_PATH>; |
| 509 | |
| 510 | }; |
| 511 | |
| 512 | } // namespace Callout |
| 513 | } // namespace Common |
| 514 | } // namespace openbmc_project |
| 515 | } // namespace xyz |
| 516 | |
| 517 | |
| 518 | namespace details |
| 519 | { |
| 520 | |
| 521 | template <> |
| 522 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::Inventory> |
| 523 | { |
| 524 | using type = xyz::openbmc_project::Common::Callout::Inventory; |
| 525 | }; |
| 526 | |
| 527 | } |
| 528 | |
| 529 | namespace xyz |
| 530 | { |
| 531 | namespace openbmc_project |
| 532 | { |
| 533 | namespace Common |
| 534 | { |
| 535 | namespace Callout |
| 536 | { |
| 537 | namespace _IPMISensor |
| 538 | { |
| 539 | |
| 540 | struct CALLOUT_IPMI_SENSOR_NUM |
| 541 | { |
| 542 | static constexpr auto str = "CALLOUT_IPMI_SENSOR_NUM=%u"; |
| 543 | static constexpr auto str_short = "CALLOUT_IPMI_SENSOR_NUM"; |
| 544 | using type = std::tuple<std::decay_t<decltype(str)>,uint32_t>; |
| 545 | explicit constexpr CALLOUT_IPMI_SENSOR_NUM(uint32_t a) : _entry(entry(str, a)) {}; |
| 546 | type _entry; |
| 547 | }; |
| 548 | |
| 549 | } // namespace _IPMISensor |
| 550 | |
| 551 | struct IPMISensor |
| 552 | { |
| 553 | static constexpr auto L = level::ERR; |
| 554 | using CALLOUT_IPMI_SENSOR_NUM = _IPMISensor::CALLOUT_IPMI_SENSOR_NUM; |
| 555 | using metadata_types = std::tuple<CALLOUT_IPMI_SENSOR_NUM>; |
| 556 | |
| 557 | }; |
| 558 | |
| 559 | } // namespace Callout |
| 560 | } // namespace Common |
| 561 | } // namespace openbmc_project |
| 562 | } // namespace xyz |
| 563 | |
| 564 | |
| 565 | namespace details |
| 566 | { |
| 567 | |
| 568 | template <> |
| 569 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::IPMISensor> |
| 570 | { |
| 571 | using type = xyz::openbmc_project::Common::Callout::IPMISensor; |
| 572 | }; |
| 573 | |
| 574 | } |
| 575 | |
| 576 | namespace xyz |
| 577 | { |
| 578 | namespace openbmc_project |
| 579 | { |
| 580 | namespace Power |
| 581 | { |
| 582 | namespace Fault |
| 583 | { |
| 584 | namespace _PowerSupplyUnderVoltageFault |
| 585 | { |
| 586 | |
Brandon Wyman | 1029554 | 2017-08-09 18:20:44 -0500 | [diff] [blame] | 587 | struct RAW_STATUS |
| 588 | { |
| 589 | static constexpr auto str = "RAW_STATUS=%s"; |
| 590 | static constexpr auto str_short = "RAW_STATUS"; |
| 591 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 592 | explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; |
| 593 | type _entry; |
| 594 | }; |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 595 | |
| 596 | } // namespace _PowerSupplyUnderVoltageFault |
| 597 | |
| 598 | struct PowerSupplyUnderVoltageFault |
| 599 | { |
| 600 | static constexpr auto L = level::ERR; |
Brandon Wyman | 1029554 | 2017-08-09 18:20:44 -0500 | [diff] [blame] | 601 | using RAW_STATUS = _PowerSupplyUnderVoltageFault::RAW_STATUS; |
| 602 | using metadata_types = std::tuple<RAW_STATUS>; |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 603 | |
| 604 | }; |
| 605 | |
| 606 | } // namespace Fault |
| 607 | } // namespace Power |
| 608 | } // namespace openbmc_project |
| 609 | } // namespace xyz |
| 610 | |
| 611 | |
| 612 | namespace details |
| 613 | { |
| 614 | |
| 615 | template <> |
| 616 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSupplyUnderVoltageFault> |
| 617 | { |
| 618 | using type = xyz::openbmc_project::Power::Fault::PowerSupplyUnderVoltageFault; |
| 619 | }; |
| 620 | |
| 621 | } |
| 622 | |
| 623 | namespace xyz |
| 624 | { |
| 625 | namespace openbmc_project |
| 626 | { |
Matt Spinler | 84cd0a5 | 2017-08-04 08:53:30 -0500 | [diff] [blame] | 627 | namespace Power |
| 628 | { |
| 629 | namespace Fault |
| 630 | { |
Brandon Wyman | 253dc9b | 2017-08-12 13:45:52 -0500 | [diff] [blame] | 631 | namespace _PowerSupplyInputFault |
| 632 | { |
| 633 | |
| 634 | struct RAW_STATUS |
| 635 | { |
| 636 | static constexpr auto str = "RAW_STATUS=%s"; |
| 637 | static constexpr auto str_short = "RAW_STATUS"; |
| 638 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 639 | explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; |
| 640 | type _entry; |
| 641 | }; |
| 642 | |
| 643 | } // namespace _PowerSupplyInputFault |
| 644 | |
| 645 | struct PowerSupplyInputFault |
| 646 | { |
| 647 | static constexpr auto L = level::ERR; |
| 648 | using RAW_STATUS = _PowerSupplyInputFault::RAW_STATUS; |
| 649 | using metadata_types = std::tuple<RAW_STATUS>; |
| 650 | |
| 651 | }; |
| 652 | |
| 653 | } // namespace Fault |
| 654 | } // namespace Power |
| 655 | } // namespace openbmc_project |
| 656 | } // namespace xyz |
| 657 | |
| 658 | |
| 659 | namespace details |
| 660 | { |
| 661 | |
| 662 | template <> |
| 663 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSupplyInputFault> |
| 664 | { |
| 665 | using type = xyz::openbmc_project::Power::Fault::PowerSupplyInputFault; |
| 666 | }; |
| 667 | |
| 668 | } |
| 669 | |
| 670 | namespace xyz |
| 671 | { |
| 672 | namespace openbmc_project |
| 673 | { |
| 674 | namespace Power |
| 675 | { |
| 676 | namespace Fault |
| 677 | { |
Brandon Wyman | 764c797 | 2017-08-22 17:05:36 -0500 | [diff] [blame^] | 678 | namespace _PowerSupplyShouldBeOn |
| 679 | { |
| 680 | |
| 681 | struct RAW_STATUS |
| 682 | { |
| 683 | static constexpr auto str = "RAW_STATUS=%s"; |
| 684 | static constexpr auto str_short = "RAW_STATUS"; |
| 685 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 686 | explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; |
| 687 | type _entry; |
| 688 | }; |
| 689 | |
| 690 | } // namespace _PowerSupplyShouldBeOn |
| 691 | |
| 692 | struct PowerSupplyShouldBeOn |
| 693 | { |
| 694 | static constexpr auto L = level::ERR; |
| 695 | using RAW_STATUS = _PowerSupplyShouldBeOn::RAW_STATUS; |
| 696 | using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::Inventory::CALLOUT_INVENTORY_PATH; |
| 697 | using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; |
| 698 | |
| 699 | }; |
| 700 | |
| 701 | } // namespace Fault |
| 702 | } // namespace Power |
| 703 | } // namespace openbmc_project |
| 704 | } // namespace xyz |
| 705 | |
| 706 | |
| 707 | namespace details |
| 708 | { |
| 709 | |
| 710 | template <> |
| 711 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSupplyShouldBeOn> |
| 712 | { |
| 713 | using type = xyz::openbmc_project::Power::Fault::PowerSupplyShouldBeOn; |
| 714 | }; |
| 715 | |
| 716 | } |
| 717 | |
| 718 | namespace xyz |
| 719 | { |
| 720 | namespace openbmc_project |
| 721 | { |
| 722 | namespace Power |
| 723 | { |
| 724 | namespace Fault |
| 725 | { |
Matt Spinler | 84cd0a5 | 2017-08-04 08:53:30 -0500 | [diff] [blame] | 726 | namespace _Shutdown |
| 727 | { |
| 728 | |
| 729 | |
| 730 | } // namespace _Shutdown |
| 731 | |
| 732 | struct Shutdown |
| 733 | { |
| 734 | static constexpr auto L = level::ERR; |
| 735 | using metadata_types = std::tuple<>; |
| 736 | |
| 737 | }; |
| 738 | |
| 739 | } // namespace Fault |
| 740 | } // namespace Power |
| 741 | } // namespace openbmc_project |
| 742 | } // namespace xyz |
| 743 | |
| 744 | |
| 745 | namespace details |
| 746 | { |
| 747 | |
| 748 | template <> |
| 749 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::Shutdown> |
| 750 | { |
| 751 | using type = xyz::openbmc_project::Power::Fault::Shutdown; |
| 752 | }; |
| 753 | |
| 754 | } |
| 755 | |
Matt Spinler | facfa90 | 2017-08-14 13:43:36 -0500 | [diff] [blame] | 756 | namespace xyz |
| 757 | { |
| 758 | namespace openbmc_project |
| 759 | { |
| 760 | namespace Power |
| 761 | { |
| 762 | namespace Fault |
| 763 | { |
| 764 | namespace _PowerOnFailure |
| 765 | { |
| 766 | |
| 767 | |
| 768 | } // namespace _PowerOnFailure |
| 769 | |
| 770 | struct PowerOnFailure |
| 771 | { |
| 772 | static constexpr auto L = level::ERR; |
| 773 | using metadata_types = std::tuple<>; |
| 774 | |
| 775 | }; |
| 776 | |
| 777 | } // namespace Fault |
| 778 | } // namespace Power |
| 779 | } // namespace openbmc_project |
| 780 | } // namespace xyz |
| 781 | |
| 782 | |
| 783 | namespace details |
| 784 | { |
| 785 | |
| 786 | template <> |
| 787 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerOnFailure> |
| 788 | { |
| 789 | using type = xyz::openbmc_project::Power::Fault::PowerOnFailure; |
| 790 | }; |
| 791 | |
| 792 | } |
| 793 | |
Matt Spinler | ac4b52f | 2017-08-21 14:50:58 -0500 | [diff] [blame] | 794 | namespace xyz |
| 795 | { |
| 796 | namespace openbmc_project |
| 797 | { |
| 798 | namespace Power |
| 799 | { |
| 800 | namespace Fault |
| 801 | { |
| 802 | namespace _PowerSequencerVoltageFault |
| 803 | { |
| 804 | |
| 805 | struct RAIL |
| 806 | { |
| 807 | static constexpr auto str = "RAIL=%d"; |
| 808 | static constexpr auto str_short = "RAIL"; |
| 809 | using type = std::tuple<std::decay_t<decltype(str)>,uint16_t>; |
| 810 | explicit constexpr RAIL(uint16_t a) : _entry(entry(str, a)) {}; |
| 811 | type _entry; |
| 812 | }; |
| 813 | struct RAIL_NAME |
| 814 | { |
| 815 | static constexpr auto str = "RAIL_NAME=%s"; |
| 816 | static constexpr auto str_short = "RAIL_NAME"; |
| 817 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 818 | explicit constexpr RAIL_NAME(const char* a) : _entry(entry(str, a)) {}; |
| 819 | type _entry; |
| 820 | }; |
| 821 | struct RAW_STATUS |
| 822 | { |
| 823 | static constexpr auto str = "RAW_STATUS=%s"; |
| 824 | static constexpr auto str_short = "RAW_STATUS"; |
| 825 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 826 | explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; |
| 827 | type _entry; |
| 828 | }; |
| 829 | |
| 830 | } // namespace _PowerSequencerVoltageFault |
| 831 | |
| 832 | struct PowerSequencerVoltageFault |
| 833 | { |
| 834 | static constexpr auto L = level::ERR; |
| 835 | using RAIL = _PowerSequencerVoltageFault::RAIL; |
| 836 | using RAIL_NAME = _PowerSequencerVoltageFault::RAIL_NAME; |
| 837 | using RAW_STATUS = _PowerSequencerVoltageFault::RAW_STATUS; |
| 838 | using metadata_types = std::tuple<RAIL, RAIL_NAME, RAW_STATUS>; |
| 839 | |
| 840 | }; |
| 841 | |
| 842 | } // namespace Fault |
| 843 | } // namespace Power |
| 844 | } // namespace openbmc_project |
| 845 | } // namespace xyz |
| 846 | |
| 847 | |
| 848 | namespace details |
| 849 | { |
| 850 | |
| 851 | template <> |
| 852 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSequencerVoltageFault> |
| 853 | { |
| 854 | using type = xyz::openbmc_project::Power::Fault::PowerSequencerVoltageFault; |
| 855 | }; |
| 856 | |
| 857 | } |
| 858 | |
| 859 | namespace xyz |
| 860 | { |
| 861 | namespace openbmc_project |
| 862 | { |
| 863 | namespace Power |
| 864 | { |
| 865 | namespace Fault |
| 866 | { |
| 867 | namespace _PowerSequencerPGOODFault |
| 868 | { |
| 869 | |
| 870 | struct INPUT_NUM |
| 871 | { |
| 872 | static constexpr auto str = "INPUT_NUM=%d"; |
| 873 | static constexpr auto str_short = "INPUT_NUM"; |
| 874 | using type = std::tuple<std::decay_t<decltype(str)>,uint16_t>; |
| 875 | explicit constexpr INPUT_NUM(uint16_t a) : _entry(entry(str, a)) {}; |
| 876 | type _entry; |
| 877 | }; |
| 878 | struct INPUT_NAME |
| 879 | { |
| 880 | static constexpr auto str = "INPUT_NAME=%s"; |
| 881 | static constexpr auto str_short = "INPUT_NAME"; |
| 882 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 883 | explicit constexpr INPUT_NAME(const char* a) : _entry(entry(str, a)) {}; |
| 884 | type _entry; |
| 885 | }; |
| 886 | struct RAW_STATUS |
| 887 | { |
| 888 | static constexpr auto str = "RAW_STATUS=%s"; |
| 889 | static constexpr auto str_short = "RAW_STATUS"; |
| 890 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 891 | explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; |
| 892 | type _entry; |
| 893 | }; |
| 894 | |
| 895 | } // namespace _PowerSequencerPGOODFault |
| 896 | |
| 897 | struct PowerSequencerPGOODFault |
| 898 | { |
| 899 | static constexpr auto L = level::ERR; |
| 900 | using INPUT_NUM = _PowerSequencerPGOODFault::INPUT_NUM; |
| 901 | using INPUT_NAME = _PowerSequencerPGOODFault::INPUT_NAME; |
| 902 | using RAW_STATUS = _PowerSequencerPGOODFault::RAW_STATUS; |
| 903 | using metadata_types = std::tuple<INPUT_NUM, INPUT_NAME, RAW_STATUS>; |
| 904 | |
| 905 | }; |
| 906 | |
| 907 | } // namespace Fault |
| 908 | } // namespace Power |
| 909 | } // namespace openbmc_project |
| 910 | } // namespace xyz |
| 911 | |
| 912 | |
| 913 | namespace details |
| 914 | { |
| 915 | |
| 916 | template <> |
| 917 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSequencerPGOODFault> |
| 918 | { |
| 919 | using type = xyz::openbmc_project::Power::Fault::PowerSequencerPGOODFault; |
| 920 | }; |
| 921 | |
| 922 | } |
| 923 | |
| 924 | namespace xyz |
| 925 | { |
| 926 | namespace openbmc_project |
| 927 | { |
| 928 | namespace Power |
| 929 | { |
| 930 | namespace Fault |
| 931 | { |
| 932 | namespace _PowerSequencerFault |
| 933 | { |
| 934 | |
| 935 | struct RAW_STATUS |
| 936 | { |
| 937 | static constexpr auto str = "RAW_STATUS=%s"; |
| 938 | static constexpr auto str_short = "RAW_STATUS"; |
| 939 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 940 | explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; |
| 941 | type _entry; |
| 942 | }; |
| 943 | |
| 944 | } // namespace _PowerSequencerFault |
| 945 | |
| 946 | struct PowerSequencerFault |
| 947 | { |
| 948 | static constexpr auto L = level::ERR; |
| 949 | using RAW_STATUS = _PowerSequencerFault::RAW_STATUS; |
| 950 | using metadata_types = std::tuple<RAW_STATUS>; |
| 951 | |
| 952 | }; |
| 953 | |
| 954 | } // namespace Fault |
| 955 | } // namespace Power |
| 956 | } // namespace openbmc_project |
| 957 | } // namespace xyz |
| 958 | |
| 959 | |
| 960 | namespace details |
| 961 | { |
| 962 | |
| 963 | template <> |
| 964 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSequencerFault> |
| 965 | { |
| 966 | using type = xyz::openbmc_project::Power::Fault::PowerSequencerFault; |
| 967 | }; |
| 968 | |
| 969 | } |
| 970 | |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 971 | namespace xyz |
| 972 | { |
| 973 | namespace openbmc_project |
| 974 | { |
| 975 | namespace Power |
| 976 | { |
| 977 | namespace Fault |
| 978 | { |
| 979 | namespace _GPUPowerFault |
| 980 | { |
| 981 | |
| 982 | struct RAW_STATUS |
| 983 | { |
| 984 | static constexpr auto str = "RAW_STATUS=%s"; |
| 985 | static constexpr auto str_short = "RAW_STATUS"; |
| 986 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 987 | explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; |
| 988 | type _entry; |
| 989 | }; |
| 990 | struct GPU |
| 991 | { |
| 992 | static constexpr auto str = "GPU=%s"; |
| 993 | static constexpr auto str_short = "GPU"; |
| 994 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 995 | explicit constexpr GPU(const char* a) : _entry(entry(str, a)) {}; |
| 996 | type _entry; |
| 997 | }; |
| 998 | |
| 999 | } // namespace _GPUPowerFault |
| 1000 | |
| 1001 | struct GPUPowerFault |
| 1002 | { |
| 1003 | static constexpr auto L = level::ERR; |
| 1004 | using RAW_STATUS = _GPUPowerFault::RAW_STATUS; |
| 1005 | using GPU = _GPUPowerFault::GPU; |
| 1006 | using metadata_types = std::tuple<RAW_STATUS, GPU>; |
| 1007 | |
| 1008 | }; |
| 1009 | |
| 1010 | } // namespace Fault |
| 1011 | } // namespace Power |
| 1012 | } // namespace openbmc_project |
| 1013 | } // namespace xyz |
| 1014 | |
| 1015 | |
| 1016 | namespace details |
| 1017 | { |
| 1018 | |
| 1019 | template <> |
| 1020 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::GPUPowerFault> |
| 1021 | { |
| 1022 | using type = xyz::openbmc_project::Power::Fault::GPUPowerFault; |
| 1023 | }; |
| 1024 | |
| 1025 | } |
| 1026 | |
| 1027 | namespace xyz |
| 1028 | { |
| 1029 | namespace openbmc_project |
| 1030 | { |
| 1031 | namespace Power |
| 1032 | { |
| 1033 | namespace Fault |
| 1034 | { |
| 1035 | namespace _GPUOverTemp |
| 1036 | { |
| 1037 | |
| 1038 | struct RAW_STATUS |
| 1039 | { |
| 1040 | static constexpr auto str = "RAW_STATUS=%s"; |
| 1041 | static constexpr auto str_short = "RAW_STATUS"; |
| 1042 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 1043 | explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; |
| 1044 | type _entry; |
| 1045 | }; |
| 1046 | struct GPU |
| 1047 | { |
| 1048 | static constexpr auto str = "GPU=%s"; |
| 1049 | static constexpr auto str_short = "GPU"; |
| 1050 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 1051 | explicit constexpr GPU(const char* a) : _entry(entry(str, a)) {}; |
| 1052 | type _entry; |
| 1053 | }; |
| 1054 | |
| 1055 | } // namespace _GPUOverTemp |
| 1056 | |
| 1057 | struct GPUOverTemp |
| 1058 | { |
| 1059 | static constexpr auto L = level::ERR; |
| 1060 | using RAW_STATUS = _GPUOverTemp::RAW_STATUS; |
| 1061 | using GPU = _GPUOverTemp::GPU; |
| 1062 | using metadata_types = std::tuple<RAW_STATUS, GPU>; |
| 1063 | |
| 1064 | }; |
| 1065 | |
| 1066 | } // namespace Fault |
| 1067 | } // namespace Power |
| 1068 | } // namespace openbmc_project |
| 1069 | } // namespace xyz |
| 1070 | |
| 1071 | |
| 1072 | namespace details |
| 1073 | { |
| 1074 | |
| 1075 | template <> |
| 1076 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::GPUOverTemp> |
| 1077 | { |
| 1078 | using type = xyz::openbmc_project::Power::Fault::GPUOverTemp; |
| 1079 | }; |
| 1080 | |
| 1081 | } |
| 1082 | |
Matt Spinler | 84cd0a5 | 2017-08-04 08:53:30 -0500 | [diff] [blame] | 1083 | |
| 1084 | } // namespace logging |
| 1085 | |
| 1086 | } // namespace phosphor |