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 | { |
Brandon Wyman | 875b363 | 2017-09-13 18:46:03 -0500 | [diff] [blame] | 78 | namespace Power |
| 79 | { |
| 80 | namespace Fault |
| 81 | { |
| 82 | namespace Error |
| 83 | { |
| 84 | struct PowerSupplyTemperatureFault; |
| 85 | } // namespace Error |
| 86 | } // namespace Fault |
| 87 | } // namespace Power |
| 88 | } // namespace openbmc_project |
| 89 | } // namespace xyz |
| 90 | } // namespace sdbusplus |
| 91 | |
| 92 | namespace sdbusplus |
| 93 | { |
| 94 | namespace xyz |
| 95 | { |
| 96 | namespace openbmc_project |
| 97 | { |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 98 | namespace Common |
| 99 | { |
| 100 | namespace Callout |
| 101 | { |
| 102 | namespace Error |
| 103 | { |
| 104 | struct Inventory; |
| 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 | { |
| 118 | namespace Common |
| 119 | { |
| 120 | namespace Callout |
| 121 | { |
| 122 | namespace Error |
| 123 | { |
| 124 | struct IIC; |
| 125 | } // namespace Error |
| 126 | } // namespace Callout |
| 127 | } // namespace Common |
| 128 | } // namespace openbmc_project |
| 129 | } // namespace xyz |
| 130 | } // namespace sdbusplus |
| 131 | |
| 132 | namespace sdbusplus |
| 133 | { |
| 134 | namespace xyz |
| 135 | { |
| 136 | namespace openbmc_project |
| 137 | { |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 138 | namespace Power |
| 139 | { |
| 140 | namespace Fault |
| 141 | { |
| 142 | namespace Error |
| 143 | { |
Matt Spinler | ac4b52f | 2017-08-21 14:50:58 -0500 | [diff] [blame] | 144 | struct PowerSequencerPGOODFault; |
| 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 | 764c797 | 2017-08-22 17:05:36 -0500 | [diff] [blame] | 158 | namespace Power |
| 159 | { |
| 160 | namespace Fault |
| 161 | { |
| 162 | namespace Error |
| 163 | { |
| 164 | struct PowerSupplyShouldBeOn; |
| 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 | { |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 178 | namespace Common |
| 179 | { |
| 180 | namespace Callout |
| 181 | { |
| 182 | namespace Error |
| 183 | { |
| 184 | struct Device; |
| 185 | } // namespace Error |
| 186 | } // namespace Callout |
| 187 | } // namespace Common |
| 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 | { |
| 204 | struct PowerSupplyUnderVoltageFault; |
| 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 | { |
Matt Spinler | ac4b52f | 2017-08-21 14:50:58 -0500 | [diff] [blame] | 218 | namespace Power |
| 219 | { |
| 220 | namespace Fault |
| 221 | { |
| 222 | namespace Error |
| 223 | { |
Brandon Wyman | 12661f1 | 2017-08-31 15:28:21 -0500 | [diff] [blame] | 224 | struct PowerSupplyFanFault; |
| 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 | { |
Brandon Wyman | 253dc9b | 2017-08-12 13:45:52 -0500 | [diff] [blame] | 244 | struct PowerSupplyInputFault; |
| 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 | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 264 | struct GPUPowerFault; |
Matt Spinler | ac4b52f | 2017-08-21 14:50:58 -0500 | [diff] [blame] | 265 | } // namespace Error |
| 266 | } // namespace Fault |
| 267 | } // namespace Power |
| 268 | } // namespace openbmc_project |
| 269 | } // namespace xyz |
| 270 | } // namespace sdbusplus |
| 271 | |
| 272 | namespace sdbusplus |
| 273 | { |
| 274 | namespace xyz |
| 275 | { |
| 276 | namespace openbmc_project |
| 277 | { |
| 278 | namespace Power |
| 279 | { |
| 280 | namespace Fault |
| 281 | { |
| 282 | namespace Error |
| 283 | { |
Brandon Wyman | ab05c07 | 2017-08-30 18:26:41 -0500 | [diff] [blame] | 284 | struct PowerSupplyOutputOvervoltage; |
| 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 | { |
Brandon Wyman | b165c25 | 2017-08-25 18:59:54 -0500 | [diff] [blame] | 304 | struct PowerSupplyOutputOvercurrent; |
| 305 | } // namespace Error |
| 306 | } // namespace Fault |
| 307 | } // namespace Power |
| 308 | } // namespace openbmc_project |
| 309 | } // namespace xyz |
| 310 | } // namespace sdbusplus |
| 311 | |
| 312 | namespace sdbusplus |
| 313 | { |
| 314 | namespace xyz |
| 315 | { |
| 316 | namespace openbmc_project |
| 317 | { |
| 318 | namespace Power |
| 319 | { |
| 320 | namespace Fault |
| 321 | { |
| 322 | namespace Error |
| 323 | { |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 324 | struct GPUOverTemp; |
| 325 | } // namespace Error |
| 326 | } // namespace Fault |
| 327 | } // namespace Power |
| 328 | } // namespace openbmc_project |
| 329 | } // namespace xyz |
| 330 | } // namespace sdbusplus |
| 331 | |
| 332 | namespace sdbusplus |
| 333 | { |
| 334 | namespace xyz |
| 335 | { |
| 336 | namespace openbmc_project |
| 337 | { |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 338 | namespace Common |
| 339 | { |
| 340 | namespace Callout |
| 341 | { |
| 342 | namespace Error |
| 343 | { |
| 344 | struct IPMISensor; |
| 345 | } // namespace Error |
| 346 | } // namespace Callout |
| 347 | } // namespace Common |
| 348 | } // namespace openbmc_project |
| 349 | } // namespace xyz |
| 350 | } // namespace sdbusplus |
| 351 | |
| 352 | namespace sdbusplus |
| 353 | { |
| 354 | namespace xyz |
| 355 | { |
| 356 | namespace openbmc_project |
| 357 | { |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 358 | namespace Power |
| 359 | { |
| 360 | namespace Fault |
| 361 | { |
| 362 | namespace Error |
| 363 | { |
| 364 | struct PowerSequencerVoltageFault; |
Matt Spinler | ac4b52f | 2017-08-21 14:50:58 -0500 | [diff] [blame] | 365 | } // namespace Error |
| 366 | } // namespace Fault |
| 367 | } // namespace Power |
| 368 | } // namespace openbmc_project |
| 369 | } // namespace xyz |
| 370 | } // namespace sdbusplus |
| 371 | |
| 372 | namespace sdbusplus |
| 373 | { |
| 374 | namespace xyz |
| 375 | { |
| 376 | namespace openbmc_project |
| 377 | { |
| 378 | namespace Power |
| 379 | { |
| 380 | namespace Fault |
| 381 | { |
| 382 | namespace Error |
| 383 | { |
Matt Spinler | 84cd0a5 | 2017-08-04 08:53:30 -0500 | [diff] [blame] | 384 | struct Shutdown; |
| 385 | } // namespace Error |
| 386 | } // namespace Fault |
| 387 | } // namespace Power |
| 388 | } // namespace openbmc_project |
| 389 | } // namespace xyz |
| 390 | } // namespace sdbusplus |
| 391 | |
| 392 | |
| 393 | namespace phosphor |
| 394 | { |
| 395 | |
| 396 | namespace logging |
| 397 | { |
| 398 | |
| 399 | namespace xyz |
| 400 | { |
| 401 | namespace openbmc_project |
| 402 | { |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 403 | namespace Common |
| 404 | { |
| 405 | namespace Callout |
| 406 | { |
| 407 | namespace _Device |
| 408 | { |
| 409 | |
| 410 | struct CALLOUT_ERRNO |
| 411 | { |
| 412 | static constexpr auto str = "CALLOUT_ERRNO=%d"; |
| 413 | static constexpr auto str_short = "CALLOUT_ERRNO"; |
| 414 | using type = std::tuple<std::decay_t<decltype(str)>,int32_t>; |
| 415 | explicit constexpr CALLOUT_ERRNO(int32_t a) : _entry(entry(str, a)) {}; |
| 416 | type _entry; |
| 417 | }; |
| 418 | struct CALLOUT_DEVICE_PATH |
| 419 | { |
| 420 | static constexpr auto str = "CALLOUT_DEVICE_PATH=%s"; |
| 421 | static constexpr auto str_short = "CALLOUT_DEVICE_PATH"; |
| 422 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 423 | explicit constexpr CALLOUT_DEVICE_PATH(const char* a) : _entry(entry(str, a)) {}; |
| 424 | type _entry; |
| 425 | }; |
| 426 | |
| 427 | } // namespace _Device |
| 428 | |
| 429 | struct Device |
| 430 | { |
| 431 | static constexpr auto L = level::ERR; |
| 432 | using CALLOUT_ERRNO = _Device::CALLOUT_ERRNO; |
| 433 | using CALLOUT_DEVICE_PATH = _Device::CALLOUT_DEVICE_PATH; |
| 434 | using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
| 435 | |
| 436 | }; |
| 437 | |
| 438 | } // namespace Callout |
| 439 | } // namespace Common |
| 440 | } // namespace openbmc_project |
| 441 | } // namespace xyz |
| 442 | |
| 443 | |
| 444 | namespace details |
| 445 | { |
| 446 | |
| 447 | template <> |
| 448 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::Device> |
| 449 | { |
| 450 | using type = xyz::openbmc_project::Common::Callout::Device; |
| 451 | }; |
| 452 | |
| 453 | } |
| 454 | |
| 455 | namespace xyz |
| 456 | { |
| 457 | namespace openbmc_project |
| 458 | { |
| 459 | namespace Common |
| 460 | { |
| 461 | namespace Callout |
| 462 | { |
| 463 | namespace _GPIO |
| 464 | { |
| 465 | |
| 466 | struct CALLOUT_GPIO_NUM |
| 467 | { |
| 468 | static constexpr auto str = "CALLOUT_GPIO_NUM=%u"; |
| 469 | static constexpr auto str_short = "CALLOUT_GPIO_NUM"; |
| 470 | using type = std::tuple<std::decay_t<decltype(str)>,uint32_t>; |
| 471 | explicit constexpr CALLOUT_GPIO_NUM(uint32_t a) : _entry(entry(str, a)) {}; |
| 472 | type _entry; |
| 473 | }; |
| 474 | |
| 475 | } // namespace _GPIO |
| 476 | |
| 477 | struct GPIO |
| 478 | { |
| 479 | static constexpr auto L = level::ERR; |
| 480 | using CALLOUT_GPIO_NUM = _GPIO::CALLOUT_GPIO_NUM; |
| 481 | using CALLOUT_ERRNO = xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO; |
| 482 | using CALLOUT_DEVICE_PATH = xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH; |
| 483 | using metadata_types = std::tuple<CALLOUT_GPIO_NUM, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
| 484 | |
| 485 | }; |
| 486 | |
| 487 | } // namespace Callout |
| 488 | } // namespace Common |
| 489 | } // namespace openbmc_project |
| 490 | } // namespace xyz |
| 491 | |
| 492 | |
| 493 | namespace details |
| 494 | { |
| 495 | |
| 496 | template <> |
| 497 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::GPIO> |
| 498 | { |
| 499 | using type = xyz::openbmc_project::Common::Callout::GPIO; |
| 500 | }; |
| 501 | |
| 502 | } |
| 503 | |
| 504 | namespace xyz |
| 505 | { |
| 506 | namespace openbmc_project |
| 507 | { |
| 508 | namespace Common |
| 509 | { |
| 510 | namespace Callout |
| 511 | { |
| 512 | namespace _IIC |
| 513 | { |
| 514 | |
| 515 | struct CALLOUT_IIC_BUS |
| 516 | { |
| 517 | static constexpr auto str = "CALLOUT_IIC_BUS=%s"; |
| 518 | static constexpr auto str_short = "CALLOUT_IIC_BUS"; |
| 519 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 520 | explicit constexpr CALLOUT_IIC_BUS(const char* a) : _entry(entry(str, a)) {}; |
| 521 | type _entry; |
| 522 | }; |
| 523 | struct CALLOUT_IIC_ADDR |
| 524 | { |
| 525 | static constexpr auto str = "CALLOUT_IIC_ADDR=0x%hx"; |
| 526 | static constexpr auto str_short = "CALLOUT_IIC_ADDR"; |
| 527 | using type = std::tuple<std::decay_t<decltype(str)>,uint16_t>; |
| 528 | explicit constexpr CALLOUT_IIC_ADDR(uint16_t a) : _entry(entry(str, a)) {}; |
| 529 | type _entry; |
| 530 | }; |
| 531 | |
| 532 | } // namespace _IIC |
| 533 | |
| 534 | struct IIC |
| 535 | { |
| 536 | static constexpr auto L = level::ERR; |
| 537 | using CALLOUT_IIC_BUS = _IIC::CALLOUT_IIC_BUS; |
| 538 | using CALLOUT_IIC_ADDR = _IIC::CALLOUT_IIC_ADDR; |
| 539 | using CALLOUT_ERRNO = xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO; |
| 540 | using CALLOUT_DEVICE_PATH = xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH; |
| 541 | using metadata_types = std::tuple<CALLOUT_IIC_BUS, CALLOUT_IIC_ADDR, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
| 542 | |
| 543 | }; |
| 544 | |
| 545 | } // namespace Callout |
| 546 | } // namespace Common |
| 547 | } // namespace openbmc_project |
| 548 | } // namespace xyz |
| 549 | |
| 550 | |
| 551 | namespace details |
| 552 | { |
| 553 | |
| 554 | template <> |
| 555 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::IIC> |
| 556 | { |
| 557 | using type = xyz::openbmc_project::Common::Callout::IIC; |
| 558 | }; |
| 559 | |
| 560 | } |
| 561 | |
| 562 | namespace xyz |
| 563 | { |
| 564 | namespace openbmc_project |
| 565 | { |
| 566 | namespace Common |
| 567 | { |
| 568 | namespace Callout |
| 569 | { |
| 570 | namespace _Inventory |
| 571 | { |
| 572 | |
| 573 | struct CALLOUT_INVENTORY_PATH |
| 574 | { |
| 575 | static constexpr auto str = "CALLOUT_INVENTORY_PATH=%s"; |
| 576 | static constexpr auto str_short = "CALLOUT_INVENTORY_PATH"; |
| 577 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 578 | explicit constexpr CALLOUT_INVENTORY_PATH(const char* a) : _entry(entry(str, a)) {}; |
| 579 | type _entry; |
| 580 | }; |
| 581 | |
| 582 | } // namespace _Inventory |
| 583 | |
| 584 | struct Inventory |
| 585 | { |
| 586 | static constexpr auto L = level::ERR; |
| 587 | using CALLOUT_INVENTORY_PATH = _Inventory::CALLOUT_INVENTORY_PATH; |
| 588 | using metadata_types = std::tuple<CALLOUT_INVENTORY_PATH>; |
| 589 | |
| 590 | }; |
| 591 | |
| 592 | } // namespace Callout |
| 593 | } // namespace Common |
| 594 | } // namespace openbmc_project |
| 595 | } // namespace xyz |
| 596 | |
| 597 | |
| 598 | namespace details |
| 599 | { |
| 600 | |
| 601 | template <> |
| 602 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::Inventory> |
| 603 | { |
| 604 | using type = xyz::openbmc_project::Common::Callout::Inventory; |
| 605 | }; |
| 606 | |
| 607 | } |
| 608 | |
| 609 | namespace xyz |
| 610 | { |
| 611 | namespace openbmc_project |
| 612 | { |
| 613 | namespace Common |
| 614 | { |
| 615 | namespace Callout |
| 616 | { |
| 617 | namespace _IPMISensor |
| 618 | { |
| 619 | |
| 620 | struct CALLOUT_IPMI_SENSOR_NUM |
| 621 | { |
| 622 | static constexpr auto str = "CALLOUT_IPMI_SENSOR_NUM=%u"; |
| 623 | static constexpr auto str_short = "CALLOUT_IPMI_SENSOR_NUM"; |
| 624 | using type = std::tuple<std::decay_t<decltype(str)>,uint32_t>; |
| 625 | explicit constexpr CALLOUT_IPMI_SENSOR_NUM(uint32_t a) : _entry(entry(str, a)) {}; |
| 626 | type _entry; |
| 627 | }; |
| 628 | |
| 629 | } // namespace _IPMISensor |
| 630 | |
| 631 | struct IPMISensor |
| 632 | { |
| 633 | static constexpr auto L = level::ERR; |
| 634 | using CALLOUT_IPMI_SENSOR_NUM = _IPMISensor::CALLOUT_IPMI_SENSOR_NUM; |
| 635 | using metadata_types = std::tuple<CALLOUT_IPMI_SENSOR_NUM>; |
| 636 | |
| 637 | }; |
| 638 | |
| 639 | } // namespace Callout |
| 640 | } // namespace Common |
| 641 | } // namespace openbmc_project |
| 642 | } // namespace xyz |
| 643 | |
| 644 | |
| 645 | namespace details |
| 646 | { |
| 647 | |
| 648 | template <> |
| 649 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Common::Callout::Error::IPMISensor> |
| 650 | { |
| 651 | using type = xyz::openbmc_project::Common::Callout::IPMISensor; |
| 652 | }; |
| 653 | |
| 654 | } |
| 655 | |
| 656 | namespace xyz |
| 657 | { |
| 658 | namespace openbmc_project |
| 659 | { |
| 660 | namespace Power |
| 661 | { |
| 662 | namespace Fault |
| 663 | { |
| 664 | namespace _PowerSupplyUnderVoltageFault |
| 665 | { |
| 666 | |
Brandon Wyman | 1029554 | 2017-08-09 18:20:44 -0500 | [diff] [blame] | 667 | struct RAW_STATUS |
| 668 | { |
| 669 | static constexpr auto str = "RAW_STATUS=%s"; |
| 670 | static constexpr auto str_short = "RAW_STATUS"; |
| 671 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 672 | explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; |
| 673 | type _entry; |
| 674 | }; |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 675 | |
| 676 | } // namespace _PowerSupplyUnderVoltageFault |
| 677 | |
| 678 | struct PowerSupplyUnderVoltageFault |
| 679 | { |
| 680 | static constexpr auto L = level::ERR; |
Brandon Wyman | 1029554 | 2017-08-09 18:20:44 -0500 | [diff] [blame] | 681 | using RAW_STATUS = _PowerSupplyUnderVoltageFault::RAW_STATUS; |
| 682 | using metadata_types = std::tuple<RAW_STATUS>; |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 683 | |
| 684 | }; |
| 685 | |
| 686 | } // namespace Fault |
| 687 | } // namespace Power |
| 688 | } // namespace openbmc_project |
| 689 | } // namespace xyz |
| 690 | |
| 691 | |
| 692 | namespace details |
| 693 | { |
| 694 | |
| 695 | template <> |
| 696 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSupplyUnderVoltageFault> |
| 697 | { |
| 698 | using type = xyz::openbmc_project::Power::Fault::PowerSupplyUnderVoltageFault; |
| 699 | }; |
| 700 | |
| 701 | } |
| 702 | |
| 703 | namespace xyz |
| 704 | { |
| 705 | namespace openbmc_project |
| 706 | { |
Matt Spinler | 84cd0a5 | 2017-08-04 08:53:30 -0500 | [diff] [blame] | 707 | namespace Power |
| 708 | { |
| 709 | namespace Fault |
| 710 | { |
Brandon Wyman | 253dc9b | 2017-08-12 13:45:52 -0500 | [diff] [blame] | 711 | namespace _PowerSupplyInputFault |
| 712 | { |
| 713 | |
| 714 | struct RAW_STATUS |
| 715 | { |
| 716 | static constexpr auto str = "RAW_STATUS=%s"; |
| 717 | static constexpr auto str_short = "RAW_STATUS"; |
| 718 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 719 | explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; |
| 720 | type _entry; |
| 721 | }; |
| 722 | |
| 723 | } // namespace _PowerSupplyInputFault |
| 724 | |
| 725 | struct PowerSupplyInputFault |
| 726 | { |
| 727 | static constexpr auto L = level::ERR; |
| 728 | using RAW_STATUS = _PowerSupplyInputFault::RAW_STATUS; |
| 729 | using metadata_types = std::tuple<RAW_STATUS>; |
| 730 | |
| 731 | }; |
| 732 | |
| 733 | } // namespace Fault |
| 734 | } // namespace Power |
| 735 | } // namespace openbmc_project |
| 736 | } // namespace xyz |
| 737 | |
| 738 | |
| 739 | namespace details |
| 740 | { |
| 741 | |
| 742 | template <> |
| 743 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSupplyInputFault> |
| 744 | { |
| 745 | using type = xyz::openbmc_project::Power::Fault::PowerSupplyInputFault; |
| 746 | }; |
| 747 | |
| 748 | } |
| 749 | |
| 750 | namespace xyz |
| 751 | { |
| 752 | namespace openbmc_project |
| 753 | { |
| 754 | namespace Power |
| 755 | { |
| 756 | namespace Fault |
| 757 | { |
Brandon Wyman | 764c797 | 2017-08-22 17:05:36 -0500 | [diff] [blame] | 758 | namespace _PowerSupplyShouldBeOn |
| 759 | { |
| 760 | |
| 761 | struct RAW_STATUS |
| 762 | { |
| 763 | static constexpr auto str = "RAW_STATUS=%s"; |
| 764 | static constexpr auto str_short = "RAW_STATUS"; |
| 765 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 766 | explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; |
| 767 | type _entry; |
| 768 | }; |
| 769 | |
| 770 | } // namespace _PowerSupplyShouldBeOn |
| 771 | |
| 772 | struct PowerSupplyShouldBeOn |
| 773 | { |
| 774 | static constexpr auto L = level::ERR; |
| 775 | using RAW_STATUS = _PowerSupplyShouldBeOn::RAW_STATUS; |
| 776 | using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::Inventory::CALLOUT_INVENTORY_PATH; |
| 777 | using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; |
| 778 | |
| 779 | }; |
| 780 | |
| 781 | } // namespace Fault |
| 782 | } // namespace Power |
| 783 | } // namespace openbmc_project |
| 784 | } // namespace xyz |
| 785 | |
| 786 | |
| 787 | namespace details |
| 788 | { |
| 789 | |
| 790 | template <> |
| 791 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSupplyShouldBeOn> |
| 792 | { |
| 793 | using type = xyz::openbmc_project::Power::Fault::PowerSupplyShouldBeOn; |
| 794 | }; |
| 795 | |
| 796 | } |
| 797 | |
| 798 | namespace xyz |
| 799 | { |
| 800 | namespace openbmc_project |
| 801 | { |
| 802 | namespace Power |
| 803 | { |
| 804 | namespace Fault |
| 805 | { |
Brandon Wyman | b165c25 | 2017-08-25 18:59:54 -0500 | [diff] [blame] | 806 | namespace _PowerSupplyOutputOvercurrent |
| 807 | { |
| 808 | |
| 809 | struct RAW_STATUS |
| 810 | { |
| 811 | static constexpr auto str = "RAW_STATUS=%s"; |
| 812 | static constexpr auto str_short = "RAW_STATUS"; |
| 813 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 814 | explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; |
| 815 | type _entry; |
| 816 | }; |
| 817 | |
| 818 | } // namespace _PowerSupplyOutputOvercurrent |
| 819 | |
| 820 | struct PowerSupplyOutputOvercurrent |
| 821 | { |
| 822 | static constexpr auto L = level::ERR; |
| 823 | using RAW_STATUS = _PowerSupplyOutputOvercurrent::RAW_STATUS; |
| 824 | using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::Inventory::CALLOUT_INVENTORY_PATH; |
| 825 | using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; |
| 826 | |
| 827 | }; |
| 828 | |
| 829 | } // namespace Fault |
| 830 | } // namespace Power |
| 831 | } // namespace openbmc_project |
| 832 | } // namespace xyz |
| 833 | |
| 834 | |
| 835 | namespace details |
| 836 | { |
| 837 | |
| 838 | template <> |
| 839 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSupplyOutputOvercurrent> |
| 840 | { |
| 841 | using type = xyz::openbmc_project::Power::Fault::PowerSupplyOutputOvercurrent; |
| 842 | }; |
| 843 | |
| 844 | } |
| 845 | |
| 846 | namespace xyz |
| 847 | { |
| 848 | namespace openbmc_project |
| 849 | { |
| 850 | namespace Power |
| 851 | { |
| 852 | namespace Fault |
| 853 | { |
Brandon Wyman | ab05c07 | 2017-08-30 18:26:41 -0500 | [diff] [blame] | 854 | namespace _PowerSupplyOutputOvervoltage |
| 855 | { |
| 856 | |
| 857 | struct RAW_STATUS |
| 858 | { |
| 859 | static constexpr auto str = "RAW_STATUS=%s"; |
| 860 | static constexpr auto str_short = "RAW_STATUS"; |
| 861 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 862 | explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; |
| 863 | type _entry; |
| 864 | }; |
| 865 | |
| 866 | } // namespace _PowerSupplyOutputOvervoltage |
| 867 | |
| 868 | struct PowerSupplyOutputOvervoltage |
| 869 | { |
| 870 | static constexpr auto L = level::ERR; |
| 871 | using RAW_STATUS = _PowerSupplyOutputOvervoltage::RAW_STATUS; |
| 872 | using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::Inventory::CALLOUT_INVENTORY_PATH; |
| 873 | using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; |
| 874 | |
| 875 | }; |
| 876 | |
| 877 | } // namespace Fault |
| 878 | } // namespace Power |
| 879 | } // namespace openbmc_project |
| 880 | } // namespace xyz |
| 881 | |
| 882 | |
| 883 | namespace details |
| 884 | { |
| 885 | |
| 886 | template <> |
| 887 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSupplyOutputOvervoltage> |
| 888 | { |
| 889 | using type = xyz::openbmc_project::Power::Fault::PowerSupplyOutputOvervoltage; |
| 890 | }; |
| 891 | |
| 892 | } |
| 893 | |
| 894 | namespace xyz |
| 895 | { |
| 896 | namespace openbmc_project |
| 897 | { |
| 898 | namespace Power |
| 899 | { |
| 900 | namespace Fault |
| 901 | { |
Brandon Wyman | 12661f1 | 2017-08-31 15:28:21 -0500 | [diff] [blame] | 902 | namespace _PowerSupplyFanFault |
| 903 | { |
| 904 | |
| 905 | struct RAW_STATUS |
| 906 | { |
| 907 | static constexpr auto str = "RAW_STATUS=%s"; |
| 908 | static constexpr auto str_short = "RAW_STATUS"; |
| 909 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 910 | explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; |
| 911 | type _entry; |
| 912 | }; |
| 913 | |
| 914 | } // namespace _PowerSupplyFanFault |
| 915 | |
| 916 | struct PowerSupplyFanFault |
| 917 | { |
| 918 | static constexpr auto L = level::ERR; |
| 919 | using RAW_STATUS = _PowerSupplyFanFault::RAW_STATUS; |
| 920 | using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::Inventory::CALLOUT_INVENTORY_PATH; |
| 921 | using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; |
| 922 | |
| 923 | }; |
| 924 | |
| 925 | } // namespace Fault |
| 926 | } // namespace Power |
| 927 | } // namespace openbmc_project |
| 928 | } // namespace xyz |
| 929 | |
| 930 | |
| 931 | namespace details |
| 932 | { |
| 933 | |
| 934 | template <> |
| 935 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSupplyFanFault> |
| 936 | { |
| 937 | using type = xyz::openbmc_project::Power::Fault::PowerSupplyFanFault; |
| 938 | }; |
| 939 | |
| 940 | } |
| 941 | |
| 942 | namespace xyz |
| 943 | { |
| 944 | namespace openbmc_project |
| 945 | { |
| 946 | namespace Power |
| 947 | { |
| 948 | namespace Fault |
| 949 | { |
Brandon Wyman | 875b363 | 2017-09-13 18:46:03 -0500 | [diff] [blame] | 950 | namespace _PowerSupplyTemperatureFault |
| 951 | { |
| 952 | |
| 953 | struct RAW_STATUS |
| 954 | { |
| 955 | static constexpr auto str = "RAW_STATUS=%s"; |
| 956 | static constexpr auto str_short = "RAW_STATUS"; |
| 957 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 958 | explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; |
| 959 | type _entry; |
| 960 | }; |
| 961 | |
| 962 | } // namespace _PowerSupplyTemperatureFault |
| 963 | |
| 964 | struct PowerSupplyTemperatureFault |
| 965 | { |
| 966 | static constexpr auto L = level::ERR; |
| 967 | using RAW_STATUS = _PowerSupplyTemperatureFault::RAW_STATUS; |
| 968 | using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::Inventory::CALLOUT_INVENTORY_PATH; |
| 969 | using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; |
| 970 | |
| 971 | }; |
| 972 | |
| 973 | } // namespace Fault |
| 974 | } // namespace Power |
| 975 | } // namespace openbmc_project |
| 976 | } // namespace xyz |
| 977 | |
| 978 | |
| 979 | namespace details |
| 980 | { |
| 981 | |
| 982 | template <> |
| 983 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSupplyTemperatureFault> |
| 984 | { |
| 985 | using type = xyz::openbmc_project::Power::Fault::PowerSupplyTemperatureFault; |
| 986 | }; |
| 987 | |
| 988 | } |
| 989 | |
| 990 | namespace xyz |
| 991 | { |
| 992 | namespace openbmc_project |
| 993 | { |
| 994 | namespace Power |
| 995 | { |
| 996 | namespace Fault |
| 997 | { |
Matt Spinler | 84cd0a5 | 2017-08-04 08:53:30 -0500 | [diff] [blame] | 998 | namespace _Shutdown |
| 999 | { |
| 1000 | |
| 1001 | |
| 1002 | } // namespace _Shutdown |
| 1003 | |
| 1004 | struct Shutdown |
| 1005 | { |
| 1006 | static constexpr auto L = level::ERR; |
| 1007 | using metadata_types = std::tuple<>; |
| 1008 | |
| 1009 | }; |
| 1010 | |
| 1011 | } // namespace Fault |
| 1012 | } // namespace Power |
| 1013 | } // namespace openbmc_project |
| 1014 | } // namespace xyz |
| 1015 | |
| 1016 | |
| 1017 | namespace details |
| 1018 | { |
| 1019 | |
| 1020 | template <> |
| 1021 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::Shutdown> |
| 1022 | { |
| 1023 | using type = xyz::openbmc_project::Power::Fault::Shutdown; |
| 1024 | }; |
| 1025 | |
| 1026 | } |
| 1027 | |
Matt Spinler | facfa90 | 2017-08-14 13:43:36 -0500 | [diff] [blame] | 1028 | namespace xyz |
| 1029 | { |
| 1030 | namespace openbmc_project |
| 1031 | { |
| 1032 | namespace Power |
| 1033 | { |
| 1034 | namespace Fault |
| 1035 | { |
| 1036 | namespace _PowerOnFailure |
| 1037 | { |
| 1038 | |
| 1039 | |
| 1040 | } // namespace _PowerOnFailure |
| 1041 | |
| 1042 | struct PowerOnFailure |
| 1043 | { |
| 1044 | static constexpr auto L = level::ERR; |
| 1045 | using metadata_types = std::tuple<>; |
| 1046 | |
| 1047 | }; |
| 1048 | |
| 1049 | } // namespace Fault |
| 1050 | } // namespace Power |
| 1051 | } // namespace openbmc_project |
| 1052 | } // namespace xyz |
| 1053 | |
| 1054 | |
| 1055 | namespace details |
| 1056 | { |
| 1057 | |
| 1058 | template <> |
| 1059 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerOnFailure> |
| 1060 | { |
| 1061 | using type = xyz::openbmc_project::Power::Fault::PowerOnFailure; |
| 1062 | }; |
| 1063 | |
| 1064 | } |
| 1065 | |
Matt Spinler | ac4b52f | 2017-08-21 14:50:58 -0500 | [diff] [blame] | 1066 | namespace xyz |
| 1067 | { |
| 1068 | namespace openbmc_project |
| 1069 | { |
| 1070 | namespace Power |
| 1071 | { |
| 1072 | namespace Fault |
| 1073 | { |
| 1074 | namespace _PowerSequencerVoltageFault |
| 1075 | { |
| 1076 | |
| 1077 | struct RAIL |
| 1078 | { |
| 1079 | static constexpr auto str = "RAIL=%d"; |
| 1080 | static constexpr auto str_short = "RAIL"; |
| 1081 | using type = std::tuple<std::decay_t<decltype(str)>,uint16_t>; |
| 1082 | explicit constexpr RAIL(uint16_t a) : _entry(entry(str, a)) {}; |
| 1083 | type _entry; |
| 1084 | }; |
| 1085 | struct RAIL_NAME |
| 1086 | { |
| 1087 | static constexpr auto str = "RAIL_NAME=%s"; |
| 1088 | static constexpr auto str_short = "RAIL_NAME"; |
| 1089 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 1090 | explicit constexpr RAIL_NAME(const char* a) : _entry(entry(str, a)) {}; |
| 1091 | type _entry; |
| 1092 | }; |
| 1093 | struct RAW_STATUS |
| 1094 | { |
| 1095 | static constexpr auto str = "RAW_STATUS=%s"; |
| 1096 | static constexpr auto str_short = "RAW_STATUS"; |
| 1097 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 1098 | explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; |
| 1099 | type _entry; |
| 1100 | }; |
| 1101 | |
| 1102 | } // namespace _PowerSequencerVoltageFault |
| 1103 | |
| 1104 | struct PowerSequencerVoltageFault |
| 1105 | { |
| 1106 | static constexpr auto L = level::ERR; |
| 1107 | using RAIL = _PowerSequencerVoltageFault::RAIL; |
| 1108 | using RAIL_NAME = _PowerSequencerVoltageFault::RAIL_NAME; |
| 1109 | using RAW_STATUS = _PowerSequencerVoltageFault::RAW_STATUS; |
| 1110 | using metadata_types = std::tuple<RAIL, RAIL_NAME, RAW_STATUS>; |
| 1111 | |
| 1112 | }; |
| 1113 | |
| 1114 | } // namespace Fault |
| 1115 | } // namespace Power |
| 1116 | } // namespace openbmc_project |
| 1117 | } // namespace xyz |
| 1118 | |
| 1119 | |
| 1120 | namespace details |
| 1121 | { |
| 1122 | |
| 1123 | template <> |
| 1124 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSequencerVoltageFault> |
| 1125 | { |
| 1126 | using type = xyz::openbmc_project::Power::Fault::PowerSequencerVoltageFault; |
| 1127 | }; |
| 1128 | |
| 1129 | } |
| 1130 | |
| 1131 | namespace xyz |
| 1132 | { |
| 1133 | namespace openbmc_project |
| 1134 | { |
| 1135 | namespace Power |
| 1136 | { |
| 1137 | namespace Fault |
| 1138 | { |
| 1139 | namespace _PowerSequencerPGOODFault |
| 1140 | { |
| 1141 | |
| 1142 | struct INPUT_NUM |
| 1143 | { |
| 1144 | static constexpr auto str = "INPUT_NUM=%d"; |
| 1145 | static constexpr auto str_short = "INPUT_NUM"; |
| 1146 | using type = std::tuple<std::decay_t<decltype(str)>,uint16_t>; |
| 1147 | explicit constexpr INPUT_NUM(uint16_t a) : _entry(entry(str, a)) {}; |
| 1148 | type _entry; |
| 1149 | }; |
| 1150 | struct INPUT_NAME |
| 1151 | { |
| 1152 | static constexpr auto str = "INPUT_NAME=%s"; |
| 1153 | static constexpr auto str_short = "INPUT_NAME"; |
| 1154 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 1155 | explicit constexpr INPUT_NAME(const char* a) : _entry(entry(str, a)) {}; |
| 1156 | type _entry; |
| 1157 | }; |
| 1158 | struct RAW_STATUS |
| 1159 | { |
| 1160 | static constexpr auto str = "RAW_STATUS=%s"; |
| 1161 | static constexpr auto str_short = "RAW_STATUS"; |
| 1162 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 1163 | explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; |
| 1164 | type _entry; |
| 1165 | }; |
| 1166 | |
| 1167 | } // namespace _PowerSequencerPGOODFault |
| 1168 | |
| 1169 | struct PowerSequencerPGOODFault |
| 1170 | { |
| 1171 | static constexpr auto L = level::ERR; |
| 1172 | using INPUT_NUM = _PowerSequencerPGOODFault::INPUT_NUM; |
| 1173 | using INPUT_NAME = _PowerSequencerPGOODFault::INPUT_NAME; |
| 1174 | using RAW_STATUS = _PowerSequencerPGOODFault::RAW_STATUS; |
| 1175 | using metadata_types = std::tuple<INPUT_NUM, INPUT_NAME, RAW_STATUS>; |
| 1176 | |
| 1177 | }; |
| 1178 | |
| 1179 | } // namespace Fault |
| 1180 | } // namespace Power |
| 1181 | } // namespace openbmc_project |
| 1182 | } // namespace xyz |
| 1183 | |
| 1184 | |
| 1185 | namespace details |
| 1186 | { |
| 1187 | |
| 1188 | template <> |
| 1189 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSequencerPGOODFault> |
| 1190 | { |
| 1191 | using type = xyz::openbmc_project::Power::Fault::PowerSequencerPGOODFault; |
| 1192 | }; |
| 1193 | |
| 1194 | } |
| 1195 | |
| 1196 | namespace xyz |
| 1197 | { |
| 1198 | namespace openbmc_project |
| 1199 | { |
| 1200 | namespace Power |
| 1201 | { |
| 1202 | namespace Fault |
| 1203 | { |
| 1204 | namespace _PowerSequencerFault |
| 1205 | { |
| 1206 | |
| 1207 | struct RAW_STATUS |
| 1208 | { |
| 1209 | static constexpr auto str = "RAW_STATUS=%s"; |
| 1210 | static constexpr auto str_short = "RAW_STATUS"; |
| 1211 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 1212 | explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; |
| 1213 | type _entry; |
| 1214 | }; |
| 1215 | |
| 1216 | } // namespace _PowerSequencerFault |
| 1217 | |
| 1218 | struct PowerSequencerFault |
| 1219 | { |
| 1220 | static constexpr auto L = level::ERR; |
| 1221 | using RAW_STATUS = _PowerSequencerFault::RAW_STATUS; |
| 1222 | using metadata_types = std::tuple<RAW_STATUS>; |
| 1223 | |
| 1224 | }; |
| 1225 | |
| 1226 | } // namespace Fault |
| 1227 | } // namespace Power |
| 1228 | } // namespace openbmc_project |
| 1229 | } // namespace xyz |
| 1230 | |
| 1231 | |
| 1232 | namespace details |
| 1233 | { |
| 1234 | |
| 1235 | template <> |
| 1236 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSequencerFault> |
| 1237 | { |
| 1238 | using type = xyz::openbmc_project::Power::Fault::PowerSequencerFault; |
| 1239 | }; |
| 1240 | |
| 1241 | } |
| 1242 | |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 1243 | namespace xyz |
| 1244 | { |
| 1245 | namespace openbmc_project |
| 1246 | { |
| 1247 | namespace Power |
| 1248 | { |
| 1249 | namespace Fault |
| 1250 | { |
| 1251 | namespace _GPUPowerFault |
| 1252 | { |
| 1253 | |
| 1254 | struct RAW_STATUS |
| 1255 | { |
| 1256 | static constexpr auto str = "RAW_STATUS=%s"; |
| 1257 | static constexpr auto str_short = "RAW_STATUS"; |
| 1258 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 1259 | explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; |
| 1260 | type _entry; |
| 1261 | }; |
| 1262 | struct GPU |
| 1263 | { |
| 1264 | static constexpr auto str = "GPU=%s"; |
| 1265 | static constexpr auto str_short = "GPU"; |
| 1266 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 1267 | explicit constexpr GPU(const char* a) : _entry(entry(str, a)) {}; |
| 1268 | type _entry; |
| 1269 | }; |
| 1270 | |
| 1271 | } // namespace _GPUPowerFault |
| 1272 | |
| 1273 | struct GPUPowerFault |
| 1274 | { |
| 1275 | static constexpr auto L = level::ERR; |
| 1276 | using RAW_STATUS = _GPUPowerFault::RAW_STATUS; |
| 1277 | using GPU = _GPUPowerFault::GPU; |
| 1278 | using metadata_types = std::tuple<RAW_STATUS, GPU>; |
| 1279 | |
| 1280 | }; |
| 1281 | |
| 1282 | } // namespace Fault |
| 1283 | } // namespace Power |
| 1284 | } // namespace openbmc_project |
| 1285 | } // namespace xyz |
| 1286 | |
| 1287 | |
| 1288 | namespace details |
| 1289 | { |
| 1290 | |
| 1291 | template <> |
| 1292 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::GPUPowerFault> |
| 1293 | { |
| 1294 | using type = xyz::openbmc_project::Power::Fault::GPUPowerFault; |
| 1295 | }; |
| 1296 | |
| 1297 | } |
| 1298 | |
| 1299 | namespace xyz |
| 1300 | { |
| 1301 | namespace openbmc_project |
| 1302 | { |
| 1303 | namespace Power |
| 1304 | { |
| 1305 | namespace Fault |
| 1306 | { |
| 1307 | namespace _GPUOverTemp |
| 1308 | { |
| 1309 | |
| 1310 | struct RAW_STATUS |
| 1311 | { |
| 1312 | static constexpr auto str = "RAW_STATUS=%s"; |
| 1313 | static constexpr auto str_short = "RAW_STATUS"; |
| 1314 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 1315 | explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; |
| 1316 | type _entry; |
| 1317 | }; |
| 1318 | struct GPU |
| 1319 | { |
| 1320 | static constexpr auto str = "GPU=%s"; |
| 1321 | static constexpr auto str_short = "GPU"; |
| 1322 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 1323 | explicit constexpr GPU(const char* a) : _entry(entry(str, a)) {}; |
| 1324 | type _entry; |
| 1325 | }; |
| 1326 | |
| 1327 | } // namespace _GPUOverTemp |
| 1328 | |
| 1329 | struct GPUOverTemp |
| 1330 | { |
| 1331 | static constexpr auto L = level::ERR; |
| 1332 | using RAW_STATUS = _GPUOverTemp::RAW_STATUS; |
| 1333 | using GPU = _GPUOverTemp::GPU; |
| 1334 | using metadata_types = std::tuple<RAW_STATUS, GPU>; |
| 1335 | |
| 1336 | }; |
| 1337 | |
| 1338 | } // namespace Fault |
| 1339 | } // namespace Power |
| 1340 | } // namespace openbmc_project |
| 1341 | } // namespace xyz |
| 1342 | |
| 1343 | |
| 1344 | namespace details |
| 1345 | { |
| 1346 | |
| 1347 | template <> |
| 1348 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::GPUOverTemp> |
| 1349 | { |
| 1350 | using type = xyz::openbmc_project::Power::Fault::GPUOverTemp; |
| 1351 | }; |
| 1352 | |
| 1353 | } |
| 1354 | |
Matt Spinler | 84cd0a5 | 2017-08-04 08:53:30 -0500 | [diff] [blame] | 1355 | |
| 1356 | } // namespace logging |
| 1357 | |
| 1358 | } // namespace phosphor |