Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1 | // This file was autogenerated. Do not edit! |
| 2 | // See elog-gen.py for more details |
| 3 | #pragma once |
| 4 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 5 | #include <phosphor-logging/elog.hpp> |
| 6 | #include <phosphor-logging/log.hpp> |
| 7 | #include <sdbusplus/exception.hpp> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 8 | #include <string> |
| 9 | #include <tuple> |
| 10 | #include <type_traits> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 11 | |
| 12 | namespace sdbusplus |
| 13 | { |
| 14 | namespace xyz |
| 15 | { |
| 16 | namespace openbmc_project |
| 17 | { |
| 18 | namespace Dump |
| 19 | { |
| 20 | namespace Create |
| 21 | { |
| 22 | namespace Error |
| 23 | { |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 24 | struct QuotaExceeded; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 25 | } // namespace Error |
| 26 | } // namespace Create |
| 27 | } // namespace Dump |
| 28 | } // namespace openbmc_project |
| 29 | } // namespace xyz |
| 30 | } // namespace sdbusplus |
| 31 | |
| 32 | namespace sdbusplus |
| 33 | { |
| 34 | namespace org |
| 35 | { |
| 36 | namespace open_power |
| 37 | { |
| 38 | namespace Host |
| 39 | { |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 40 | namespace Error |
| 41 | { |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 42 | struct Event; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 43 | } // namespace Error |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 44 | } // namespace Host |
| 45 | } // namespace open_power |
| 46 | } // namespace org |
| 47 | } // namespace sdbusplus |
| 48 | |
| 49 | namespace sdbusplus |
| 50 | { |
| 51 | namespace xyz |
| 52 | { |
| 53 | namespace openbmc_project |
| 54 | { |
| 55 | namespace State |
| 56 | { |
| 57 | namespace Host |
| 58 | { |
| 59 | namespace Error |
| 60 | { |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 61 | struct SoftOffTimeout; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 62 | } // namespace Error |
| 63 | } // namespace Host |
| 64 | } // namespace State |
| 65 | } // namespace openbmc_project |
| 66 | } // namespace xyz |
| 67 | } // namespace sdbusplus |
| 68 | |
| 69 | namespace sdbusplus |
| 70 | { |
| 71 | namespace xyz |
| 72 | { |
| 73 | namespace openbmc_project |
| 74 | { |
| 75 | namespace Sensor |
| 76 | { |
| 77 | namespace Device |
| 78 | { |
| 79 | namespace Error |
| 80 | { |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 81 | struct ReadFailure; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 82 | } // namespace Error |
| 83 | } // namespace Device |
| 84 | } // namespace Sensor |
| 85 | } // namespace openbmc_project |
| 86 | } // namespace xyz |
| 87 | } // namespace sdbusplus |
| 88 | |
| 89 | namespace sdbusplus |
| 90 | { |
| 91 | namespace xyz |
| 92 | { |
| 93 | namespace openbmc_project |
| 94 | { |
| 95 | namespace Control |
| 96 | { |
| 97 | namespace Device |
| 98 | { |
| 99 | namespace Error |
| 100 | { |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 101 | struct WriteFailure; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 102 | } // namespace Error |
| 103 | } // namespace Device |
| 104 | } // namespace Control |
| 105 | } // namespace openbmc_project |
| 106 | } // namespace xyz |
| 107 | } // namespace sdbusplus |
| 108 | |
| 109 | namespace sdbusplus |
| 110 | { |
| 111 | namespace xyz |
| 112 | { |
| 113 | namespace openbmc_project |
| 114 | { |
| 115 | namespace Common |
| 116 | { |
| 117 | namespace File |
| 118 | { |
| 119 | namespace Error |
| 120 | { |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 121 | struct Seek; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 122 | } // namespace Error |
| 123 | } // namespace File |
| 124 | } // namespace Common |
| 125 | } // namespace openbmc_project |
| 126 | } // namespace xyz |
| 127 | } // namespace sdbusplus |
| 128 | |
| 129 | namespace sdbusplus |
| 130 | { |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 131 | namespace org |
| 132 | { |
| 133 | namespace open_power |
| 134 | { |
| 135 | namespace Common |
| 136 | { |
| 137 | namespace Callout |
| 138 | { |
| 139 | namespace Error |
| 140 | { |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 141 | struct Procedure; |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 142 | } // namespace Error |
| 143 | } // namespace Callout |
| 144 | } // namespace Common |
| 145 | } // namespace open_power |
| 146 | } // namespace org |
| 147 | } // namespace sdbusplus |
| 148 | |
| 149 | namespace sdbusplus |
| 150 | { |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 151 | namespace xyz |
| 152 | { |
| 153 | namespace openbmc_project |
| 154 | { |
| 155 | namespace Control |
| 156 | { |
| 157 | namespace Host |
| 158 | { |
| 159 | namespace Error |
| 160 | { |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 161 | struct CommandNotSupported; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 162 | } // namespace Error |
| 163 | } // namespace Host |
| 164 | } // namespace Control |
| 165 | } // namespace openbmc_project |
| 166 | } // namespace xyz |
| 167 | } // namespace sdbusplus |
| 168 | |
| 169 | namespace sdbusplus |
| 170 | { |
| 171 | namespace xyz |
| 172 | { |
| 173 | namespace openbmc_project |
| 174 | { |
| 175 | namespace Common |
| 176 | { |
| 177 | namespace Error |
| 178 | { |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 179 | struct InternalFailure; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 180 | } // namespace Error |
| 181 | } // namespace Common |
| 182 | } // namespace openbmc_project |
| 183 | } // namespace xyz |
| 184 | } // namespace sdbusplus |
| 185 | |
| 186 | namespace sdbusplus |
| 187 | { |
| 188 | namespace xyz |
| 189 | { |
| 190 | namespace openbmc_project |
| 191 | { |
| 192 | namespace Common |
| 193 | { |
| 194 | namespace Callout |
| 195 | { |
| 196 | namespace Error |
| 197 | { |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 198 | struct Device; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 199 | } // namespace Error |
| 200 | } // namespace Callout |
| 201 | } // namespace Common |
| 202 | } // namespace openbmc_project |
| 203 | } // namespace xyz |
| 204 | } // namespace sdbusplus |
| 205 | |
| 206 | namespace sdbusplus |
| 207 | { |
| 208 | namespace org |
| 209 | { |
| 210 | namespace open_power |
| 211 | { |
| 212 | namespace Host |
| 213 | { |
| 214 | namespace Access |
| 215 | { |
| 216 | namespace Error |
| 217 | { |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 218 | struct WriteCFAM; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 219 | } // namespace Error |
| 220 | } // namespace Access |
| 221 | } // namespace Host |
| 222 | } // namespace open_power |
| 223 | } // namespace org |
| 224 | } // namespace sdbusplus |
| 225 | |
| 226 | namespace sdbusplus |
| 227 | { |
| 228 | namespace xyz |
| 229 | { |
| 230 | namespace openbmc_project |
| 231 | { |
| 232 | namespace Common |
| 233 | { |
| 234 | namespace File |
| 235 | { |
| 236 | namespace Error |
| 237 | { |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 238 | struct Open; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 239 | } // namespace Error |
| 240 | } // namespace File |
| 241 | } // namespace Common |
| 242 | } // namespace openbmc_project |
| 243 | } // namespace xyz |
| 244 | } // namespace sdbusplus |
| 245 | |
| 246 | namespace sdbusplus |
| 247 | { |
| 248 | namespace org |
| 249 | { |
| 250 | namespace open_power |
| 251 | { |
| 252 | namespace Host |
| 253 | { |
| 254 | namespace Error |
| 255 | { |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 256 | struct Checkstop; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 257 | } // namespace Error |
| 258 | } // namespace Host |
| 259 | } // namespace open_power |
| 260 | } // namespace org |
| 261 | } // namespace sdbusplus |
| 262 | |
| 263 | namespace sdbusplus |
| 264 | { |
| 265 | namespace xyz |
| 266 | { |
| 267 | namespace openbmc_project |
| 268 | { |
| 269 | namespace Common |
| 270 | { |
| 271 | namespace File |
| 272 | { |
| 273 | namespace Error |
| 274 | { |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 275 | struct Write; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 276 | } // namespace Error |
| 277 | } // namespace File |
| 278 | } // namespace Common |
| 279 | } // namespace openbmc_project |
| 280 | } // namespace xyz |
| 281 | } // namespace sdbusplus |
| 282 | |
| 283 | namespace sdbusplus |
| 284 | { |
| 285 | namespace xyz |
| 286 | { |
| 287 | namespace openbmc_project |
| 288 | { |
| 289 | namespace Common |
| 290 | { |
| 291 | namespace Callout |
| 292 | { |
| 293 | namespace Error |
| 294 | { |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 295 | struct GPIO; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 296 | } // namespace Error |
| 297 | } // namespace Callout |
| 298 | } // namespace Common |
| 299 | } // namespace openbmc_project |
| 300 | } // namespace xyz |
| 301 | } // namespace sdbusplus |
| 302 | |
| 303 | namespace sdbusplus |
| 304 | { |
| 305 | namespace xyz |
| 306 | { |
| 307 | namespace openbmc_project |
| 308 | { |
| 309 | namespace Common |
| 310 | { |
| 311 | namespace Error |
| 312 | { |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 313 | struct InvalidArgument; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 314 | } // namespace Error |
| 315 | } // namespace Common |
| 316 | } // namespace openbmc_project |
| 317 | } // namespace xyz |
| 318 | } // namespace sdbusplus |
| 319 | |
| 320 | namespace sdbusplus |
| 321 | { |
| 322 | namespace xyz |
| 323 | { |
| 324 | namespace openbmc_project |
| 325 | { |
| 326 | namespace Dump |
| 327 | { |
| 328 | namespace Create |
| 329 | { |
| 330 | namespace Error |
| 331 | { |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 332 | struct Disabled; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 333 | } // namespace Error |
| 334 | } // namespace Create |
| 335 | } // namespace Dump |
| 336 | } // namespace openbmc_project |
| 337 | } // namespace xyz |
| 338 | } // namespace sdbusplus |
| 339 | |
| 340 | namespace sdbusplus |
| 341 | { |
| 342 | namespace xyz |
| 343 | { |
| 344 | namespace openbmc_project |
| 345 | { |
| 346 | namespace Common |
| 347 | { |
| 348 | namespace Callout |
| 349 | { |
| 350 | namespace Error |
| 351 | { |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 352 | struct IPMISensor; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 353 | } // namespace Error |
| 354 | } // namespace Callout |
| 355 | } // namespace Common |
| 356 | } // namespace openbmc_project |
| 357 | } // namespace xyz |
| 358 | } // namespace sdbusplus |
| 359 | |
| 360 | namespace sdbusplus |
| 361 | { |
| 362 | namespace xyz |
| 363 | { |
| 364 | namespace openbmc_project |
| 365 | { |
| 366 | namespace Common |
| 367 | { |
| 368 | namespace Error |
| 369 | { |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 370 | struct Timeout; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 371 | } // namespace Error |
| 372 | } // namespace Common |
| 373 | } // namespace openbmc_project |
| 374 | } // namespace xyz |
| 375 | } // namespace sdbusplus |
| 376 | |
| 377 | namespace sdbusplus |
| 378 | { |
| 379 | namespace xyz |
| 380 | { |
| 381 | namespace openbmc_project |
| 382 | { |
| 383 | namespace Common |
| 384 | { |
| 385 | namespace Callout |
| 386 | { |
| 387 | namespace Error |
| 388 | { |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 389 | struct Inventory; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 390 | } // namespace Error |
| 391 | } // namespace Callout |
| 392 | } // namespace Common |
| 393 | } // namespace openbmc_project |
| 394 | } // namespace xyz |
| 395 | } // namespace sdbusplus |
| 396 | |
| 397 | namespace sdbusplus |
| 398 | { |
| 399 | namespace xyz |
| 400 | { |
| 401 | namespace openbmc_project |
| 402 | { |
| 403 | namespace Common |
| 404 | { |
| 405 | namespace Callout |
| 406 | { |
| 407 | namespace Error |
| 408 | { |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 409 | struct IIC; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 410 | } // namespace Error |
| 411 | } // namespace Callout |
| 412 | } // namespace Common |
| 413 | } // namespace openbmc_project |
| 414 | } // namespace xyz |
| 415 | } // namespace sdbusplus |
| 416 | |
| 417 | namespace sdbusplus |
| 418 | { |
| 419 | namespace org |
| 420 | { |
| 421 | namespace open_power |
| 422 | { |
| 423 | namespace Host |
| 424 | { |
| 425 | namespace Error |
| 426 | { |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 427 | struct WatchdogTimedOut; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 428 | } // namespace Error |
| 429 | } // namespace Host |
| 430 | } // namespace open_power |
| 431 | } // namespace org |
| 432 | } // namespace sdbusplus |
| 433 | |
| 434 | namespace sdbusplus |
| 435 | { |
| 436 | namespace org |
| 437 | { |
| 438 | namespace open_power |
| 439 | { |
| 440 | namespace Host |
| 441 | { |
| 442 | namespace Access |
| 443 | { |
| 444 | namespace Error |
| 445 | { |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 446 | struct ReadCFAM; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 447 | } // namespace Error |
| 448 | } // namespace Access |
| 449 | } // namespace Host |
| 450 | } // namespace open_power |
| 451 | } // namespace org |
| 452 | } // namespace sdbusplus |
| 453 | |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 454 | namespace sdbusplus |
| 455 | { |
| 456 | namespace org |
| 457 | { |
| 458 | namespace open_power |
| 459 | { |
| 460 | namespace Host |
| 461 | { |
| 462 | namespace Error |
| 463 | { |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 464 | struct MaintenanceProcedure; |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 465 | } // namespace Error |
| 466 | } // namespace Host |
| 467 | } // namespace open_power |
| 468 | } // namespace org |
| 469 | } // namespace sdbusplus |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 470 | |
| 471 | namespace phosphor |
| 472 | { |
| 473 | |
| 474 | namespace logging |
| 475 | { |
| 476 | |
| 477 | namespace xyz |
| 478 | { |
| 479 | namespace openbmc_project |
| 480 | { |
| 481 | namespace Common |
| 482 | { |
| 483 | namespace Callout |
| 484 | { |
| 485 | namespace _Device |
| 486 | { |
| 487 | |
| 488 | struct CALLOUT_ERRNO |
| 489 | { |
| 490 | static constexpr auto str = "CALLOUT_ERRNO=%d"; |
| 491 | static constexpr auto str_short = "CALLOUT_ERRNO"; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 492 | using type = std::tuple<std::decay_t<decltype(str)>, int32_t>; |
| 493 | explicit constexpr CALLOUT_ERRNO(int32_t a) : _entry(entry(str, a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 494 | type _entry; |
| 495 | }; |
| 496 | struct CALLOUT_DEVICE_PATH |
| 497 | { |
| 498 | static constexpr auto str = "CALLOUT_DEVICE_PATH=%s"; |
| 499 | static constexpr auto str_short = "CALLOUT_DEVICE_PATH"; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 500 | using type = std::tuple<std::decay_t<decltype(str)>, const char*>; |
| 501 | explicit constexpr CALLOUT_DEVICE_PATH(const char* a) : |
| 502 | _entry(entry(str, a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 503 | type _entry; |
| 504 | }; |
| 505 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 506 | } // namespace _Device |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 507 | |
| 508 | struct Device |
| 509 | { |
| 510 | static constexpr auto L = level::ERR; |
| 511 | using CALLOUT_ERRNO = _Device::CALLOUT_ERRNO; |
| 512 | using CALLOUT_DEVICE_PATH = _Device::CALLOUT_DEVICE_PATH; |
| 513 | using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 514 | }; |
| 515 | |
| 516 | } // namespace Callout |
| 517 | } // namespace Common |
| 518 | } // namespace openbmc_project |
| 519 | } // namespace xyz |
| 520 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 521 | namespace details |
| 522 | { |
| 523 | |
| 524 | template <> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 525 | struct map_exception_type< |
| 526 | sdbusplus::xyz::openbmc_project::Common::Callout::Error::Device> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 527 | { |
| 528 | using type = xyz::openbmc_project::Common::Callout::Device; |
| 529 | }; |
| 530 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 531 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 532 | |
| 533 | namespace xyz |
| 534 | { |
| 535 | namespace openbmc_project |
| 536 | { |
| 537 | namespace Common |
| 538 | { |
| 539 | namespace Callout |
| 540 | { |
| 541 | namespace _GPIO |
| 542 | { |
| 543 | |
| 544 | struct CALLOUT_GPIO_NUM |
| 545 | { |
| 546 | static constexpr auto str = "CALLOUT_GPIO_NUM=%u"; |
| 547 | static constexpr auto str_short = "CALLOUT_GPIO_NUM"; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 548 | using type = std::tuple<std::decay_t<decltype(str)>, uint32_t>; |
| 549 | explicit constexpr CALLOUT_GPIO_NUM(uint32_t a) : _entry(entry(str, a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 550 | type _entry; |
| 551 | }; |
| 552 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 553 | } // namespace _GPIO |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 554 | |
| 555 | struct GPIO |
| 556 | { |
| 557 | static constexpr auto L = level::ERR; |
| 558 | using CALLOUT_GPIO_NUM = _GPIO::CALLOUT_GPIO_NUM; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 559 | using CALLOUT_ERRNO = |
| 560 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO; |
| 561 | using CALLOUT_DEVICE_PATH = |
| 562 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH; |
| 563 | using metadata_types = |
| 564 | std::tuple<CALLOUT_GPIO_NUM, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 565 | }; |
| 566 | |
| 567 | } // namespace Callout |
| 568 | } // namespace Common |
| 569 | } // namespace openbmc_project |
| 570 | } // namespace xyz |
| 571 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 572 | namespace details |
| 573 | { |
| 574 | |
| 575 | template <> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 576 | struct map_exception_type< |
| 577 | sdbusplus::xyz::openbmc_project::Common::Callout::Error::GPIO> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 578 | { |
| 579 | using type = xyz::openbmc_project::Common::Callout::GPIO; |
| 580 | }; |
| 581 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 582 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 583 | |
| 584 | namespace xyz |
| 585 | { |
| 586 | namespace openbmc_project |
| 587 | { |
| 588 | namespace Common |
| 589 | { |
| 590 | namespace Callout |
| 591 | { |
| 592 | namespace _IIC |
| 593 | { |
| 594 | |
| 595 | struct CALLOUT_IIC_BUS |
| 596 | { |
| 597 | static constexpr auto str = "CALLOUT_IIC_BUS=%s"; |
| 598 | static constexpr auto str_short = "CALLOUT_IIC_BUS"; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 599 | using type = std::tuple<std::decay_t<decltype(str)>, const char*>; |
| 600 | explicit constexpr CALLOUT_IIC_BUS(const char* a) : _entry(entry(str, a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 601 | type _entry; |
| 602 | }; |
| 603 | struct CALLOUT_IIC_ADDR |
| 604 | { |
| 605 | static constexpr auto str = "CALLOUT_IIC_ADDR=0x%hx"; |
| 606 | static constexpr auto str_short = "CALLOUT_IIC_ADDR"; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 607 | using type = std::tuple<std::decay_t<decltype(str)>, uint16_t>; |
| 608 | explicit constexpr CALLOUT_IIC_ADDR(uint16_t a) : _entry(entry(str, a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 609 | type _entry; |
| 610 | }; |
| 611 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 612 | } // namespace _IIC |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 613 | |
| 614 | struct IIC |
| 615 | { |
| 616 | static constexpr auto L = level::ERR; |
| 617 | using CALLOUT_IIC_BUS = _IIC::CALLOUT_IIC_BUS; |
| 618 | using CALLOUT_IIC_ADDR = _IIC::CALLOUT_IIC_ADDR; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 619 | using CALLOUT_ERRNO = |
| 620 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO; |
| 621 | using CALLOUT_DEVICE_PATH = |
| 622 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH; |
| 623 | using metadata_types = std::tuple<CALLOUT_IIC_BUS, CALLOUT_IIC_ADDR, |
| 624 | CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 625 | }; |
| 626 | |
| 627 | } // namespace Callout |
| 628 | } // namespace Common |
| 629 | } // namespace openbmc_project |
| 630 | } // namespace xyz |
| 631 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 632 | namespace details |
| 633 | { |
| 634 | |
| 635 | template <> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 636 | struct map_exception_type< |
| 637 | sdbusplus::xyz::openbmc_project::Common::Callout::Error::IIC> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 638 | { |
| 639 | using type = xyz::openbmc_project::Common::Callout::IIC; |
| 640 | }; |
| 641 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 642 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 643 | |
| 644 | namespace xyz |
| 645 | { |
| 646 | namespace openbmc_project |
| 647 | { |
| 648 | namespace Common |
| 649 | { |
| 650 | namespace Callout |
| 651 | { |
| 652 | namespace _Inventory |
| 653 | { |
| 654 | |
| 655 | struct CALLOUT_INVENTORY_PATH |
| 656 | { |
| 657 | static constexpr auto str = "CALLOUT_INVENTORY_PATH=%s"; |
| 658 | static constexpr auto str_short = "CALLOUT_INVENTORY_PATH"; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 659 | using type = std::tuple<std::decay_t<decltype(str)>, const char*>; |
| 660 | explicit constexpr CALLOUT_INVENTORY_PATH(const char* a) : |
| 661 | _entry(entry(str, a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 662 | type _entry; |
| 663 | }; |
| 664 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 665 | } // namespace _Inventory |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 666 | |
| 667 | struct Inventory |
| 668 | { |
| 669 | static constexpr auto L = level::ERR; |
| 670 | using CALLOUT_INVENTORY_PATH = _Inventory::CALLOUT_INVENTORY_PATH; |
| 671 | using metadata_types = std::tuple<CALLOUT_INVENTORY_PATH>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 672 | }; |
| 673 | |
| 674 | } // namespace Callout |
| 675 | } // namespace Common |
| 676 | } // namespace openbmc_project |
| 677 | } // namespace xyz |
| 678 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 679 | namespace details |
| 680 | { |
| 681 | |
| 682 | template <> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 683 | struct map_exception_type< |
| 684 | sdbusplus::xyz::openbmc_project::Common::Callout::Error::Inventory> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 685 | { |
| 686 | using type = xyz::openbmc_project::Common::Callout::Inventory; |
| 687 | }; |
| 688 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 689 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 690 | |
| 691 | namespace xyz |
| 692 | { |
| 693 | namespace openbmc_project |
| 694 | { |
| 695 | namespace Common |
| 696 | { |
| 697 | namespace Callout |
| 698 | { |
| 699 | namespace _IPMISensor |
| 700 | { |
| 701 | |
| 702 | struct CALLOUT_IPMI_SENSOR_NUM |
| 703 | { |
| 704 | static constexpr auto str = "CALLOUT_IPMI_SENSOR_NUM=%u"; |
| 705 | static constexpr auto str_short = "CALLOUT_IPMI_SENSOR_NUM"; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 706 | using type = std::tuple<std::decay_t<decltype(str)>, uint32_t>; |
| 707 | explicit constexpr CALLOUT_IPMI_SENSOR_NUM(uint32_t a) : |
| 708 | _entry(entry(str, a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 709 | type _entry; |
| 710 | }; |
| 711 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 712 | } // namespace _IPMISensor |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 713 | |
| 714 | struct IPMISensor |
| 715 | { |
| 716 | static constexpr auto L = level::ERR; |
| 717 | using CALLOUT_IPMI_SENSOR_NUM = _IPMISensor::CALLOUT_IPMI_SENSOR_NUM; |
| 718 | using metadata_types = std::tuple<CALLOUT_IPMI_SENSOR_NUM>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 719 | }; |
| 720 | |
| 721 | } // namespace Callout |
| 722 | } // namespace Common |
| 723 | } // namespace openbmc_project |
| 724 | } // namespace xyz |
| 725 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 726 | namespace details |
| 727 | { |
| 728 | |
| 729 | template <> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 730 | struct map_exception_type< |
| 731 | sdbusplus::xyz::openbmc_project::Common::Callout::Error::IPMISensor> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 732 | { |
| 733 | using type = xyz::openbmc_project::Common::Callout::IPMISensor; |
| 734 | }; |
| 735 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 736 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 737 | |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 738 | namespace org |
| 739 | { |
| 740 | namespace open_power |
| 741 | { |
| 742 | namespace Common |
| 743 | { |
| 744 | namespace Callout |
| 745 | { |
| 746 | namespace _Procedure |
| 747 | { |
| 748 | |
| 749 | struct PROCEDURE |
| 750 | { |
| 751 | static constexpr auto str = "PROCEDURE=%u"; |
| 752 | static constexpr auto str_short = "PROCEDURE"; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 753 | using type = std::tuple<std::decay_t<decltype(str)>, uint32_t>; |
| 754 | explicit constexpr PROCEDURE(uint32_t a) : _entry(entry(str, a)){}; |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 755 | type _entry; |
| 756 | }; |
| 757 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 758 | } // namespace _Procedure |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 759 | |
| 760 | struct Procedure |
| 761 | { |
| 762 | static constexpr auto L = level::ERR; |
| 763 | using PROCEDURE = _Procedure::PROCEDURE; |
| 764 | using metadata_types = std::tuple<PROCEDURE>; |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 765 | }; |
| 766 | |
| 767 | } // namespace Callout |
| 768 | } // namespace Common |
| 769 | } // namespace open_power |
| 770 | } // namespace org |
| 771 | |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 772 | namespace details |
| 773 | { |
| 774 | |
| 775 | template <> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 776 | struct map_exception_type< |
| 777 | sdbusplus::org::open_power::Common::Callout::Error::Procedure> |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 778 | { |
| 779 | using type = org::open_power::Common::Callout::Procedure; |
| 780 | }; |
| 781 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 782 | } // namespace details |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 783 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 784 | namespace xyz |
| 785 | { |
| 786 | namespace openbmc_project |
| 787 | { |
| 788 | namespace Common |
| 789 | { |
| 790 | namespace _Timeout |
| 791 | { |
| 792 | |
| 793 | struct TIMEOUT_IN_MSEC |
| 794 | { |
| 795 | static constexpr auto str = "TIMEOUT_IN_MSEC=%llu"; |
| 796 | static constexpr auto str_short = "TIMEOUT_IN_MSEC"; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 797 | using type = std::tuple<std::decay_t<decltype(str)>, uint64_t>; |
| 798 | explicit constexpr TIMEOUT_IN_MSEC(uint64_t a) : _entry(entry(str, a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 799 | type _entry; |
| 800 | }; |
| 801 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 802 | } // namespace _Timeout |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 803 | |
| 804 | struct Timeout |
| 805 | { |
| 806 | static constexpr auto L = level::ERR; |
| 807 | using TIMEOUT_IN_MSEC = _Timeout::TIMEOUT_IN_MSEC; |
| 808 | using metadata_types = std::tuple<TIMEOUT_IN_MSEC>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 809 | }; |
| 810 | |
| 811 | } // namespace Common |
| 812 | } // namespace openbmc_project |
| 813 | } // namespace xyz |
| 814 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 815 | namespace details |
| 816 | { |
| 817 | |
| 818 | template <> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 819 | struct map_exception_type< |
| 820 | sdbusplus::xyz::openbmc_project::Common::Error::Timeout> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 821 | { |
| 822 | using type = xyz::openbmc_project::Common::Timeout; |
| 823 | }; |
| 824 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 825 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 826 | |
| 827 | namespace xyz |
| 828 | { |
| 829 | namespace openbmc_project |
| 830 | { |
| 831 | namespace Common |
| 832 | { |
| 833 | namespace _InternalFailure |
| 834 | { |
| 835 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 836 | } // namespace _InternalFailure |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 837 | |
| 838 | struct InternalFailure |
| 839 | { |
| 840 | static constexpr auto L = level::ERR; |
| 841 | using metadata_types = std::tuple<>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 842 | }; |
| 843 | |
| 844 | } // namespace Common |
| 845 | } // namespace openbmc_project |
| 846 | } // namespace xyz |
| 847 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 848 | namespace details |
| 849 | { |
| 850 | |
| 851 | template <> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 852 | struct map_exception_type< |
| 853 | sdbusplus::xyz::openbmc_project::Common::Error::InternalFailure> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 854 | { |
| 855 | using type = xyz::openbmc_project::Common::InternalFailure; |
| 856 | }; |
| 857 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 858 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 859 | |
| 860 | namespace xyz |
| 861 | { |
| 862 | namespace openbmc_project |
| 863 | { |
| 864 | namespace Common |
| 865 | { |
| 866 | namespace _InvalidArgument |
| 867 | { |
| 868 | |
| 869 | struct ARGUMENT_NAME |
| 870 | { |
| 871 | static constexpr auto str = "ARGUMENT_NAME=%s"; |
| 872 | static constexpr auto str_short = "ARGUMENT_NAME"; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 873 | using type = std::tuple<std::decay_t<decltype(str)>, const char*>; |
| 874 | explicit constexpr ARGUMENT_NAME(const char* a) : _entry(entry(str, a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 875 | type _entry; |
| 876 | }; |
| 877 | struct ARGUMENT_VALUE |
| 878 | { |
| 879 | static constexpr auto str = "ARGUMENT_VALUE=%s"; |
| 880 | static constexpr auto str_short = "ARGUMENT_VALUE"; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 881 | using type = std::tuple<std::decay_t<decltype(str)>, const char*>; |
| 882 | explicit constexpr ARGUMENT_VALUE(const char* a) : _entry(entry(str, a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 883 | type _entry; |
| 884 | }; |
| 885 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 886 | } // namespace _InvalidArgument |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 887 | |
| 888 | struct InvalidArgument |
| 889 | { |
| 890 | static constexpr auto L = level::ERR; |
| 891 | using ARGUMENT_NAME = _InvalidArgument::ARGUMENT_NAME; |
| 892 | using ARGUMENT_VALUE = _InvalidArgument::ARGUMENT_VALUE; |
| 893 | using metadata_types = std::tuple<ARGUMENT_NAME, ARGUMENT_VALUE>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 894 | }; |
| 895 | |
| 896 | } // namespace Common |
| 897 | } // namespace openbmc_project |
| 898 | } // namespace xyz |
| 899 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 900 | namespace details |
| 901 | { |
| 902 | |
| 903 | template <> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 904 | struct map_exception_type< |
| 905 | sdbusplus::xyz::openbmc_project::Common::Error::InvalidArgument> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 906 | { |
| 907 | using type = xyz::openbmc_project::Common::InvalidArgument; |
| 908 | }; |
| 909 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 910 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 911 | |
| 912 | namespace example |
| 913 | { |
| 914 | namespace xyz |
| 915 | { |
| 916 | namespace openbmc_project |
| 917 | { |
| 918 | namespace Example |
| 919 | { |
| 920 | namespace Device |
| 921 | { |
| 922 | namespace _Callout |
| 923 | { |
| 924 | |
| 925 | struct CALLOUT_ERRNO_TEST |
| 926 | { |
| 927 | static constexpr auto str = "CALLOUT_ERRNO_TEST=%d"; |
| 928 | static constexpr auto str_short = "CALLOUT_ERRNO_TEST"; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 929 | using type = std::tuple<std::decay_t<decltype(str)>, int32_t>; |
| 930 | explicit constexpr CALLOUT_ERRNO_TEST(int32_t a) : _entry(entry(str, a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 931 | type _entry; |
| 932 | }; |
| 933 | struct CALLOUT_DEVICE_PATH_TEST |
| 934 | { |
| 935 | static constexpr auto str = "CALLOUT_DEVICE_PATH_TEST=%s"; |
| 936 | static constexpr auto str_short = "CALLOUT_DEVICE_PATH_TEST"; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 937 | using type = std::tuple<std::decay_t<decltype(str)>, const char*>; |
| 938 | explicit constexpr CALLOUT_DEVICE_PATH_TEST(const char* a) : |
| 939 | _entry(entry(str, a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 940 | type _entry; |
| 941 | }; |
| 942 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 943 | } // namespace _Callout |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 944 | |
| 945 | struct Callout : public sdbusplus::exception_t |
| 946 | { |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 947 | static constexpr auto errName = |
| 948 | "example.xyz.openbmc_project.Example.Device.Callout"; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 949 | static constexpr auto errDesc = "Generic device callout"; |
| 950 | static constexpr auto L = level::ERR; |
| 951 | using CALLOUT_ERRNO_TEST = _Callout::CALLOUT_ERRNO_TEST; |
| 952 | using CALLOUT_DEVICE_PATH_TEST = _Callout::CALLOUT_DEVICE_PATH_TEST; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 953 | using metadata_types = |
| 954 | std::tuple<CALLOUT_ERRNO_TEST, CALLOUT_DEVICE_PATH_TEST>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 955 | |
| 956 | const char* name() const noexcept |
| 957 | { |
| 958 | return errName; |
| 959 | } |
| 960 | |
| 961 | const char* description() const noexcept |
| 962 | { |
| 963 | return errDesc; |
| 964 | } |
| 965 | |
| 966 | const char* what() const noexcept |
| 967 | { |
| 968 | return errName; |
| 969 | } |
| 970 | }; |
| 971 | |
| 972 | } // namespace Device |
| 973 | } // namespace Example |
| 974 | } // namespace openbmc_project |
| 975 | } // namespace xyz |
| 976 | } // namespace example |
| 977 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 978 | namespace xyz |
| 979 | { |
| 980 | namespace openbmc_project |
| 981 | { |
| 982 | namespace Sensor |
| 983 | { |
| 984 | namespace Device |
| 985 | { |
| 986 | namespace _ReadFailure |
| 987 | { |
| 988 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 989 | } // namespace _ReadFailure |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 990 | |
| 991 | struct ReadFailure |
| 992 | { |
| 993 | static constexpr auto L = level::ERR; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 994 | using CALLOUT_ERRNO = |
| 995 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO; |
| 996 | using CALLOUT_DEVICE_PATH = |
| 997 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 998 | using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 999 | }; |
| 1000 | |
| 1001 | } // namespace Device |
| 1002 | } // namespace Sensor |
| 1003 | } // namespace openbmc_project |
| 1004 | } // namespace xyz |
| 1005 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1006 | namespace details |
| 1007 | { |
| 1008 | |
| 1009 | template <> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1010 | struct map_exception_type< |
| 1011 | sdbusplus::xyz::openbmc_project::Sensor::Device::Error::ReadFailure> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1012 | { |
| 1013 | using type = xyz::openbmc_project::Sensor::Device::ReadFailure; |
| 1014 | }; |
| 1015 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1016 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1017 | |
| 1018 | namespace org |
| 1019 | { |
| 1020 | namespace open_power |
| 1021 | { |
| 1022 | namespace Host |
| 1023 | { |
| 1024 | namespace _Checkstop |
| 1025 | { |
| 1026 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1027 | } // namespace _Checkstop |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1028 | |
| 1029 | struct Checkstop |
| 1030 | { |
| 1031 | static constexpr auto L = level::ERR; |
| 1032 | using metadata_types = std::tuple<>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1033 | }; |
| 1034 | |
| 1035 | } // namespace Host |
| 1036 | } // namespace open_power |
| 1037 | } // namespace org |
| 1038 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1039 | namespace details |
| 1040 | { |
| 1041 | |
| 1042 | template <> |
| 1043 | struct map_exception_type<sdbusplus::org::open_power::Host::Error::Checkstop> |
| 1044 | { |
| 1045 | using type = org::open_power::Host::Checkstop; |
| 1046 | }; |
| 1047 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1048 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1049 | |
| 1050 | namespace org |
| 1051 | { |
| 1052 | namespace open_power |
| 1053 | { |
| 1054 | namespace Host |
| 1055 | { |
| 1056 | namespace _WatchdogTimedOut |
| 1057 | { |
| 1058 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1059 | } // namespace _WatchdogTimedOut |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1060 | |
| 1061 | struct WatchdogTimedOut |
| 1062 | { |
| 1063 | static constexpr auto L = level::ERR; |
| 1064 | using metadata_types = std::tuple<>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1065 | }; |
| 1066 | |
| 1067 | } // namespace Host |
| 1068 | } // namespace open_power |
| 1069 | } // namespace org |
| 1070 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1071 | namespace details |
| 1072 | { |
| 1073 | |
| 1074 | template <> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1075 | struct map_exception_type< |
| 1076 | sdbusplus::org::open_power::Host::Error::WatchdogTimedOut> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1077 | { |
| 1078 | using type = org::open_power::Host::WatchdogTimedOut; |
| 1079 | }; |
| 1080 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1081 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1082 | |
| 1083 | namespace example |
| 1084 | { |
| 1085 | namespace xyz |
| 1086 | { |
| 1087 | namespace openbmc_project |
| 1088 | { |
| 1089 | namespace Example |
| 1090 | { |
| 1091 | namespace Elog |
| 1092 | { |
| 1093 | namespace _TestErrorTwo |
| 1094 | { |
| 1095 | |
| 1096 | struct DEV_ADDR |
| 1097 | { |
| 1098 | static constexpr auto str = "DEV_ADDR=0x%.8X"; |
| 1099 | static constexpr auto str_short = "DEV_ADDR"; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1100 | using type = std::tuple<std::decay_t<decltype(str)>, uint32_t>; |
| 1101 | explicit constexpr DEV_ADDR(uint32_t a) : _entry(entry(str, a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1102 | type _entry; |
| 1103 | }; |
| 1104 | struct DEV_ID |
| 1105 | { |
| 1106 | static constexpr auto str = "DEV_ID=%u"; |
| 1107 | static constexpr auto str_short = "DEV_ID"; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1108 | using type = std::tuple<std::decay_t<decltype(str)>, uint32_t>; |
| 1109 | explicit constexpr DEV_ID(uint32_t a) : _entry(entry(str, a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1110 | type _entry; |
| 1111 | }; |
| 1112 | struct DEV_NAME |
| 1113 | { |
| 1114 | static constexpr auto str = "DEV_NAME=%s"; |
| 1115 | static constexpr auto str_short = "DEV_NAME"; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1116 | using type = std::tuple<std::decay_t<decltype(str)>, const char*>; |
| 1117 | explicit constexpr DEV_NAME(const char* a) : _entry(entry(str, a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1118 | type _entry; |
| 1119 | }; |
| 1120 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1121 | } // namespace _TestErrorTwo |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1122 | |
| 1123 | struct TestErrorTwo : public sdbusplus::exception_t |
| 1124 | { |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1125 | static constexpr auto errName = |
| 1126 | "example.xyz.openbmc_project.Example.Elog.TestErrorTwo"; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1127 | static constexpr auto errDesc = "This is test error two"; |
| 1128 | static constexpr auto L = level::ERR; |
| 1129 | using DEV_ADDR = _TestErrorTwo::DEV_ADDR; |
| 1130 | using DEV_ID = _TestErrorTwo::DEV_ID; |
| 1131 | using DEV_NAME = _TestErrorTwo::DEV_NAME; |
| 1132 | using metadata_types = std::tuple<DEV_ADDR, DEV_ID, DEV_NAME>; |
| 1133 | |
| 1134 | const char* name() const noexcept |
| 1135 | { |
| 1136 | return errName; |
| 1137 | } |
| 1138 | |
| 1139 | const char* description() const noexcept |
| 1140 | { |
| 1141 | return errDesc; |
| 1142 | } |
| 1143 | |
| 1144 | const char* what() const noexcept |
| 1145 | { |
| 1146 | return errName; |
| 1147 | } |
| 1148 | }; |
| 1149 | |
| 1150 | } // namespace Elog |
| 1151 | } // namespace Example |
| 1152 | } // namespace openbmc_project |
| 1153 | } // namespace xyz |
| 1154 | } // namespace example |
| 1155 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1156 | namespace example |
| 1157 | { |
| 1158 | namespace xyz |
| 1159 | { |
| 1160 | namespace openbmc_project |
| 1161 | { |
| 1162 | namespace Example |
| 1163 | { |
| 1164 | namespace Elog |
| 1165 | { |
| 1166 | namespace _AutoTestSimple |
| 1167 | { |
| 1168 | |
| 1169 | struct STRING |
| 1170 | { |
| 1171 | static constexpr auto str = "STRING=%s"; |
| 1172 | static constexpr auto str_short = "STRING"; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1173 | using type = std::tuple<std::decay_t<decltype(str)>, const char*>; |
| 1174 | explicit constexpr STRING(const char* a) : _entry(entry(str, a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1175 | type _entry; |
| 1176 | }; |
| 1177 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1178 | } // namespace _AutoTestSimple |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1179 | |
| 1180 | struct AutoTestSimple : public sdbusplus::exception_t |
| 1181 | { |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1182 | static constexpr auto errName = |
| 1183 | "example.xyz.openbmc_project.Example.Elog.AutoTestSimple"; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1184 | static constexpr auto errDesc = "This is a simple test error."; |
| 1185 | static constexpr auto L = level::ERR; |
| 1186 | using STRING = _AutoTestSimple::STRING; |
| 1187 | using metadata_types = std::tuple<STRING>; |
| 1188 | |
| 1189 | const char* name() const noexcept |
| 1190 | { |
| 1191 | return errName; |
| 1192 | } |
| 1193 | |
| 1194 | const char* description() const noexcept |
| 1195 | { |
| 1196 | return errDesc; |
| 1197 | } |
| 1198 | |
| 1199 | const char* what() const noexcept |
| 1200 | { |
| 1201 | return errName; |
| 1202 | } |
| 1203 | }; |
| 1204 | |
| 1205 | } // namespace Elog |
| 1206 | } // namespace Example |
| 1207 | } // namespace openbmc_project |
| 1208 | } // namespace xyz |
| 1209 | } // namespace example |
| 1210 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1211 | namespace example |
| 1212 | { |
| 1213 | namespace xyz |
| 1214 | { |
| 1215 | namespace openbmc_project |
| 1216 | { |
| 1217 | namespace Example |
| 1218 | { |
| 1219 | namespace Elog |
| 1220 | { |
| 1221 | namespace _TestCallout |
| 1222 | { |
| 1223 | |
| 1224 | struct DEV_ADDR |
| 1225 | { |
| 1226 | static constexpr auto str = "DEV_ADDR=0x%.8X"; |
| 1227 | static constexpr auto str_short = "DEV_ADDR"; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1228 | using type = std::tuple<std::decay_t<decltype(str)>, uint32_t>; |
| 1229 | explicit constexpr DEV_ADDR(uint32_t a) : _entry(entry(str, a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1230 | type _entry; |
| 1231 | }; |
| 1232 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1233 | } // namespace _TestCallout |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1234 | |
| 1235 | struct TestCallout : public sdbusplus::exception_t |
| 1236 | { |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1237 | static constexpr auto errName = |
| 1238 | "example.xyz.openbmc_project.Example.Elog.TestCallout"; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1239 | static constexpr auto errDesc = "This is test error TestCallout"; |
| 1240 | static constexpr auto L = level::ERR; |
| 1241 | using DEV_ADDR = _TestCallout::DEV_ADDR; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1242 | using CALLOUT_ERRNO_TEST = example::xyz::openbmc_project::Example::Device:: |
| 1243 | Callout::CALLOUT_ERRNO_TEST; |
| 1244 | using CALLOUT_DEVICE_PATH_TEST = example::xyz::openbmc_project::Example:: |
| 1245 | Device::Callout::CALLOUT_DEVICE_PATH_TEST; |
| 1246 | using metadata_types = |
| 1247 | std::tuple<DEV_ADDR, CALLOUT_ERRNO_TEST, CALLOUT_DEVICE_PATH_TEST>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1248 | |
| 1249 | const char* name() const noexcept |
| 1250 | { |
| 1251 | return errName; |
| 1252 | } |
| 1253 | |
| 1254 | const char* description() const noexcept |
| 1255 | { |
| 1256 | return errDesc; |
| 1257 | } |
| 1258 | |
| 1259 | const char* what() const noexcept |
| 1260 | { |
| 1261 | return errName; |
| 1262 | } |
| 1263 | }; |
| 1264 | |
| 1265 | } // namespace Elog |
| 1266 | } // namespace Example |
| 1267 | } // namespace openbmc_project |
| 1268 | } // namespace xyz |
| 1269 | } // namespace example |
| 1270 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1271 | namespace org |
| 1272 | { |
| 1273 | namespace open_power |
| 1274 | { |
| 1275 | namespace Host |
| 1276 | { |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1277 | namespace _Event |
| 1278 | { |
| 1279 | |
| 1280 | struct ESEL |
| 1281 | { |
| 1282 | static constexpr auto str = "ESEL=%s"; |
| 1283 | static constexpr auto str_short = "ESEL"; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1284 | using type = std::tuple<std::decay_t<decltype(str)>, const char*>; |
| 1285 | explicit constexpr ESEL(const char* a) : _entry(entry(str, a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1286 | type _entry; |
| 1287 | }; |
| 1288 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1289 | } // namespace _Event |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1290 | |
| 1291 | struct Event |
| 1292 | { |
| 1293 | static constexpr auto L = level::ERR; |
| 1294 | using ESEL = _Event::ESEL; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1295 | using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout:: |
| 1296 | Inventory::CALLOUT_INVENTORY_PATH; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1297 | using metadata_types = std::tuple<ESEL, CALLOUT_INVENTORY_PATH>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1298 | }; |
| 1299 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1300 | } // namespace Host |
| 1301 | } // namespace open_power |
| 1302 | } // namespace org |
| 1303 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1304 | namespace details |
| 1305 | { |
| 1306 | |
| 1307 | template <> |
Marri Devender Rao | b0b395b | 2017-10-24 10:14:14 -0500 | [diff] [blame] | 1308 | struct map_exception_type<sdbusplus::org::open_power::Host::Error::Event> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1309 | { |
Marri Devender Rao | b0b395b | 2017-10-24 10:14:14 -0500 | [diff] [blame] | 1310 | using type = org::open_power::Host::Event; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1311 | }; |
| 1312 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1313 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1314 | |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 1315 | namespace org |
| 1316 | { |
| 1317 | namespace open_power |
| 1318 | { |
| 1319 | namespace Host |
| 1320 | { |
| 1321 | namespace _MaintenanceProcedure |
| 1322 | { |
| 1323 | |
| 1324 | struct ESEL |
| 1325 | { |
| 1326 | static constexpr auto str = "ESEL=%s"; |
| 1327 | static constexpr auto str_short = "ESEL"; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1328 | using type = std::tuple<std::decay_t<decltype(str)>, const char*>; |
| 1329 | explicit constexpr ESEL(const char* a) : _entry(entry(str, a)){}; |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 1330 | type _entry; |
| 1331 | }; |
| 1332 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1333 | } // namespace _MaintenanceProcedure |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 1334 | |
| 1335 | struct MaintenanceProcedure |
| 1336 | { |
| 1337 | static constexpr auto L = level::ERR; |
| 1338 | using ESEL = _MaintenanceProcedure::ESEL; |
| 1339 | using PROCEDURE = org::open_power::Common::Callout::Procedure::PROCEDURE; |
| 1340 | using metadata_types = std::tuple<ESEL, PROCEDURE>; |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 1341 | }; |
| 1342 | |
| 1343 | } // namespace Host |
| 1344 | } // namespace open_power |
| 1345 | } // namespace org |
| 1346 | |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 1347 | namespace details |
| 1348 | { |
| 1349 | |
| 1350 | template <> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1351 | struct map_exception_type< |
| 1352 | sdbusplus::org::open_power::Host::Error::MaintenanceProcedure> |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 1353 | { |
| 1354 | using type = org::open_power::Host::MaintenanceProcedure; |
| 1355 | }; |
| 1356 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1357 | } // namespace details |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 1358 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1359 | namespace xyz |
| 1360 | { |
| 1361 | namespace openbmc_project |
| 1362 | { |
| 1363 | namespace Control |
| 1364 | { |
| 1365 | namespace Device |
| 1366 | { |
| 1367 | namespace _WriteFailure |
| 1368 | { |
| 1369 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1370 | } // namespace _WriteFailure |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1371 | |
| 1372 | struct WriteFailure |
| 1373 | { |
| 1374 | static constexpr auto L = level::ERR; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1375 | using CALLOUT_ERRNO = |
| 1376 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO; |
| 1377 | using CALLOUT_DEVICE_PATH = |
| 1378 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1379 | using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1380 | }; |
| 1381 | |
| 1382 | } // namespace Device |
| 1383 | } // namespace Control |
| 1384 | } // namespace openbmc_project |
| 1385 | } // namespace xyz |
| 1386 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1387 | namespace details |
| 1388 | { |
| 1389 | |
| 1390 | template <> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1391 | struct map_exception_type< |
| 1392 | sdbusplus::xyz::openbmc_project::Control::Device::Error::WriteFailure> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1393 | { |
| 1394 | using type = xyz::openbmc_project::Control::Device::WriteFailure; |
| 1395 | }; |
| 1396 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1397 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1398 | |
| 1399 | namespace xyz |
| 1400 | { |
| 1401 | namespace openbmc_project |
| 1402 | { |
| 1403 | namespace Common |
| 1404 | { |
| 1405 | namespace File |
| 1406 | { |
| 1407 | namespace _Open |
| 1408 | { |
| 1409 | |
| 1410 | struct ERRNO |
| 1411 | { |
| 1412 | static constexpr auto str = "ERRNO=%d"; |
| 1413 | static constexpr auto str_short = "ERRNO"; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1414 | using type = std::tuple<std::decay_t<decltype(str)>, int32_t>; |
| 1415 | explicit constexpr ERRNO(int32_t a) : _entry(entry(str, a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1416 | type _entry; |
| 1417 | }; |
| 1418 | struct PATH |
| 1419 | { |
| 1420 | static constexpr auto str = "PATH=%s"; |
| 1421 | static constexpr auto str_short = "PATH"; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1422 | using type = std::tuple<std::decay_t<decltype(str)>, const char*>; |
| 1423 | explicit constexpr PATH(const char* a) : _entry(entry(str, a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1424 | type _entry; |
| 1425 | }; |
| 1426 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1427 | } // namespace _Open |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1428 | |
| 1429 | struct Open |
| 1430 | { |
| 1431 | static constexpr auto L = level::ERR; |
| 1432 | using ERRNO = _Open::ERRNO; |
| 1433 | using PATH = _Open::PATH; |
| 1434 | using metadata_types = std::tuple<ERRNO, PATH>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1435 | }; |
| 1436 | |
| 1437 | } // namespace File |
| 1438 | } // namespace Common |
| 1439 | } // namespace openbmc_project |
| 1440 | } // namespace xyz |
| 1441 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1442 | namespace details |
| 1443 | { |
| 1444 | |
| 1445 | template <> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1446 | struct map_exception_type< |
| 1447 | sdbusplus::xyz::openbmc_project::Common::File::Error::Open> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1448 | { |
| 1449 | using type = xyz::openbmc_project::Common::File::Open; |
| 1450 | }; |
| 1451 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1452 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1453 | |
| 1454 | namespace xyz |
| 1455 | { |
| 1456 | namespace openbmc_project |
| 1457 | { |
| 1458 | namespace Common |
| 1459 | { |
| 1460 | namespace File |
| 1461 | { |
| 1462 | namespace _Seek |
| 1463 | { |
| 1464 | |
| 1465 | struct OFFSET |
| 1466 | { |
| 1467 | static constexpr auto str = "OFFSET=%ll"; |
| 1468 | static constexpr auto str_short = "OFFSET"; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1469 | using type = std::tuple<std::decay_t<decltype(str)>, int64_t>; |
| 1470 | explicit constexpr OFFSET(int64_t a) : _entry(entry(str, a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1471 | type _entry; |
| 1472 | }; |
| 1473 | struct WHENCE |
| 1474 | { |
| 1475 | static constexpr auto str = "WHENCE=%d"; |
| 1476 | static constexpr auto str_short = "WHENCE"; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1477 | using type = std::tuple<std::decay_t<decltype(str)>, int32_t>; |
| 1478 | explicit constexpr WHENCE(int32_t a) : _entry(entry(str, a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1479 | type _entry; |
| 1480 | }; |
| 1481 | struct ERRNO |
| 1482 | { |
| 1483 | static constexpr auto str = "ERRNO=%d"; |
| 1484 | static constexpr auto str_short = "ERRNO"; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1485 | using type = std::tuple<std::decay_t<decltype(str)>, int32_t>; |
| 1486 | explicit constexpr ERRNO(int32_t a) : _entry(entry(str, a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1487 | type _entry; |
| 1488 | }; |
| 1489 | struct PATH |
| 1490 | { |
| 1491 | static constexpr auto str = "PATH=%s"; |
| 1492 | static constexpr auto str_short = "PATH"; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1493 | using type = std::tuple<std::decay_t<decltype(str)>, const char*>; |
| 1494 | explicit constexpr PATH(const char* a) : _entry(entry(str, a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1495 | type _entry; |
| 1496 | }; |
| 1497 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1498 | } // namespace _Seek |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1499 | |
| 1500 | struct Seek |
| 1501 | { |
| 1502 | static constexpr auto L = level::ERR; |
| 1503 | using OFFSET = _Seek::OFFSET; |
| 1504 | using WHENCE = _Seek::WHENCE; |
| 1505 | using ERRNO = _Seek::ERRNO; |
| 1506 | using PATH = _Seek::PATH; |
| 1507 | using metadata_types = std::tuple<OFFSET, WHENCE, ERRNO, PATH>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1508 | }; |
| 1509 | |
| 1510 | } // namespace File |
| 1511 | } // namespace Common |
| 1512 | } // namespace openbmc_project |
| 1513 | } // namespace xyz |
| 1514 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1515 | namespace details |
| 1516 | { |
| 1517 | |
| 1518 | template <> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1519 | struct map_exception_type< |
| 1520 | sdbusplus::xyz::openbmc_project::Common::File::Error::Seek> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1521 | { |
| 1522 | using type = xyz::openbmc_project::Common::File::Seek; |
| 1523 | }; |
| 1524 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1525 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1526 | |
| 1527 | namespace xyz |
| 1528 | { |
| 1529 | namespace openbmc_project |
| 1530 | { |
| 1531 | namespace Common |
| 1532 | { |
| 1533 | namespace File |
| 1534 | { |
| 1535 | namespace _Write |
| 1536 | { |
| 1537 | |
| 1538 | struct ERRNO |
| 1539 | { |
| 1540 | static constexpr auto str = "ERRNO=%d"; |
| 1541 | static constexpr auto str_short = "ERRNO"; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1542 | using type = std::tuple<std::decay_t<decltype(str)>, int32_t>; |
| 1543 | explicit constexpr ERRNO(int32_t a) : _entry(entry(str, a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1544 | type _entry; |
| 1545 | }; |
| 1546 | struct PATH |
| 1547 | { |
| 1548 | static constexpr auto str = "PATH=%s"; |
| 1549 | static constexpr auto str_short = "PATH"; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1550 | using type = std::tuple<std::decay_t<decltype(str)>, const char*>; |
| 1551 | explicit constexpr PATH(const char* a) : _entry(entry(str, a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1552 | type _entry; |
| 1553 | }; |
| 1554 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1555 | } // namespace _Write |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1556 | |
| 1557 | struct Write |
| 1558 | { |
| 1559 | static constexpr auto L = level::ERR; |
| 1560 | using ERRNO = _Write::ERRNO; |
| 1561 | using PATH = _Write::PATH; |
| 1562 | using metadata_types = std::tuple<ERRNO, PATH>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1563 | }; |
| 1564 | |
| 1565 | } // namespace File |
| 1566 | } // namespace Common |
| 1567 | } // namespace openbmc_project |
| 1568 | } // namespace xyz |
| 1569 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1570 | namespace details |
| 1571 | { |
| 1572 | |
| 1573 | template <> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1574 | struct map_exception_type< |
| 1575 | sdbusplus::xyz::openbmc_project::Common::File::Error::Write> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1576 | { |
| 1577 | using type = xyz::openbmc_project::Common::File::Write; |
| 1578 | }; |
| 1579 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1580 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1581 | |
| 1582 | namespace org |
| 1583 | { |
| 1584 | namespace open_power |
| 1585 | { |
| 1586 | namespace Host |
| 1587 | { |
| 1588 | namespace Access |
| 1589 | { |
| 1590 | namespace _WriteCFAM |
| 1591 | { |
| 1592 | |
| 1593 | struct ADDRESS |
| 1594 | { |
| 1595 | static constexpr auto str = "ADDRESS=0x%X"; |
| 1596 | static constexpr auto str_short = "ADDRESS"; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1597 | using type = std::tuple<std::decay_t<decltype(str)>, uint32_t>; |
| 1598 | explicit constexpr ADDRESS(uint32_t a) : _entry(entry(str, a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1599 | type _entry; |
| 1600 | }; |
| 1601 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1602 | } // namespace _WriteCFAM |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1603 | |
| 1604 | struct WriteCFAM |
| 1605 | { |
| 1606 | static constexpr auto L = level::ERR; |
| 1607 | using ADDRESS = _WriteCFAM::ADDRESS; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1608 | using CALLOUT_ERRNO = |
| 1609 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO; |
| 1610 | using CALLOUT_DEVICE_PATH = |
| 1611 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH; |
| 1612 | using metadata_types = |
| 1613 | std::tuple<ADDRESS, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1614 | }; |
| 1615 | |
| 1616 | } // namespace Access |
| 1617 | } // namespace Host |
| 1618 | } // namespace open_power |
| 1619 | } // namespace org |
| 1620 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1621 | namespace details |
| 1622 | { |
| 1623 | |
| 1624 | template <> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1625 | struct map_exception_type< |
| 1626 | sdbusplus::org::open_power::Host::Access::Error::WriteCFAM> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1627 | { |
| 1628 | using type = org::open_power::Host::Access::WriteCFAM; |
| 1629 | }; |
| 1630 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1631 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1632 | |
| 1633 | namespace org |
| 1634 | { |
| 1635 | namespace open_power |
| 1636 | { |
| 1637 | namespace Host |
| 1638 | { |
| 1639 | namespace Access |
| 1640 | { |
| 1641 | namespace _ReadCFAM |
| 1642 | { |
| 1643 | |
| 1644 | struct ADDRESS |
| 1645 | { |
| 1646 | static constexpr auto str = "ADDRESS=0x%X"; |
| 1647 | static constexpr auto str_short = "ADDRESS"; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1648 | using type = std::tuple<std::decay_t<decltype(str)>, uint32_t>; |
| 1649 | explicit constexpr ADDRESS(uint32_t a) : _entry(entry(str, a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1650 | type _entry; |
| 1651 | }; |
| 1652 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1653 | } // namespace _ReadCFAM |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1654 | |
| 1655 | struct ReadCFAM |
| 1656 | { |
| 1657 | static constexpr auto L = level::ERR; |
| 1658 | using ADDRESS = _ReadCFAM::ADDRESS; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1659 | using CALLOUT_ERRNO = |
| 1660 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO; |
| 1661 | using CALLOUT_DEVICE_PATH = |
| 1662 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH; |
| 1663 | using metadata_types = |
| 1664 | std::tuple<ADDRESS, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1665 | }; |
| 1666 | |
| 1667 | } // namespace Access |
| 1668 | } // namespace Host |
| 1669 | } // namespace open_power |
| 1670 | } // namespace org |
| 1671 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1672 | namespace details |
| 1673 | { |
| 1674 | |
| 1675 | template <> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1676 | struct map_exception_type< |
| 1677 | sdbusplus::org::open_power::Host::Access::Error::ReadCFAM> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1678 | { |
| 1679 | using type = org::open_power::Host::Access::ReadCFAM; |
| 1680 | }; |
| 1681 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1682 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1683 | |
| 1684 | namespace xyz |
| 1685 | { |
| 1686 | namespace openbmc_project |
| 1687 | { |
| 1688 | namespace State |
| 1689 | { |
| 1690 | namespace Host |
| 1691 | { |
| 1692 | namespace _SoftOffTimeout |
| 1693 | { |
| 1694 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1695 | } // namespace _SoftOffTimeout |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1696 | |
| 1697 | struct SoftOffTimeout |
| 1698 | { |
| 1699 | static constexpr auto L = level::ERR; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1700 | using TIMEOUT_IN_MSEC = |
| 1701 | xyz::openbmc_project::Common::Timeout::TIMEOUT_IN_MSEC; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1702 | using metadata_types = std::tuple<TIMEOUT_IN_MSEC>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1703 | }; |
| 1704 | |
| 1705 | } // namespace Host |
| 1706 | } // namespace State |
| 1707 | } // namespace openbmc_project |
| 1708 | } // namespace xyz |
| 1709 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1710 | namespace details |
| 1711 | { |
| 1712 | |
| 1713 | template <> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1714 | struct map_exception_type< |
| 1715 | sdbusplus::xyz::openbmc_project::State::Host::Error::SoftOffTimeout> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1716 | { |
| 1717 | using type = xyz::openbmc_project::State::Host::SoftOffTimeout; |
| 1718 | }; |
| 1719 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1720 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1721 | |
| 1722 | namespace xyz |
| 1723 | { |
| 1724 | namespace openbmc_project |
| 1725 | { |
| 1726 | namespace Dump |
| 1727 | { |
| 1728 | namespace Create |
| 1729 | { |
| 1730 | namespace _Disabled |
| 1731 | { |
| 1732 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1733 | } // namespace _Disabled |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1734 | |
| 1735 | struct Disabled |
| 1736 | { |
| 1737 | static constexpr auto L = level::ERR; |
| 1738 | using metadata_types = std::tuple<>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1739 | }; |
| 1740 | |
| 1741 | } // namespace Create |
| 1742 | } // namespace Dump |
| 1743 | } // namespace openbmc_project |
| 1744 | } // namespace xyz |
| 1745 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1746 | namespace details |
| 1747 | { |
| 1748 | |
| 1749 | template <> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1750 | struct map_exception_type< |
| 1751 | sdbusplus::xyz::openbmc_project::Dump::Create::Error::Disabled> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1752 | { |
| 1753 | using type = xyz::openbmc_project::Dump::Create::Disabled; |
| 1754 | }; |
| 1755 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1756 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1757 | |
| 1758 | namespace xyz |
| 1759 | { |
| 1760 | namespace openbmc_project |
| 1761 | { |
| 1762 | namespace Dump |
| 1763 | { |
| 1764 | namespace Create |
| 1765 | { |
| 1766 | namespace _QuotaExceeded |
| 1767 | { |
| 1768 | |
Gunnar Mills | d8249ee | 2018-04-12 16:33:53 -0500 | [diff] [blame] | 1769 | struct REASON |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1770 | { |
| 1771 | static constexpr auto str = "REASON = %s"; |
| 1772 | static constexpr auto str_short = "REASON "; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1773 | using type = std::tuple<std::decay_t<decltype(str)>, const char*>; |
| 1774 | explicit constexpr REASON(const char* a) : _entry(entry(str, a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1775 | type _entry; |
| 1776 | }; |
| 1777 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1778 | } // namespace _QuotaExceeded |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1779 | |
| 1780 | struct QuotaExceeded |
| 1781 | { |
| 1782 | static constexpr auto L = level::ERR; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1783 | using REASON = _QuotaExceeded::REASON; |
| 1784 | using metadata_types = std::tuple<REASON>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1785 | }; |
| 1786 | |
| 1787 | } // namespace Create |
| 1788 | } // namespace Dump |
| 1789 | } // namespace openbmc_project |
| 1790 | } // namespace xyz |
| 1791 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1792 | namespace details |
| 1793 | { |
| 1794 | |
| 1795 | template <> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1796 | struct map_exception_type< |
| 1797 | sdbusplus::xyz::openbmc_project::Dump::Create::Error::QuotaExceeded> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1798 | { |
| 1799 | using type = xyz::openbmc_project::Dump::Create::QuotaExceeded; |
| 1800 | }; |
| 1801 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1802 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1803 | |
| 1804 | namespace xyz |
| 1805 | { |
| 1806 | namespace openbmc_project |
| 1807 | { |
| 1808 | namespace Control |
| 1809 | { |
| 1810 | namespace Host |
| 1811 | { |
| 1812 | namespace _CommandNotSupported |
| 1813 | { |
| 1814 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1815 | } // namespace _CommandNotSupported |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1816 | |
| 1817 | struct CommandNotSupported |
| 1818 | { |
| 1819 | static constexpr auto L = level::ERR; |
| 1820 | using metadata_types = std::tuple<>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1821 | }; |
| 1822 | |
| 1823 | } // namespace Host |
| 1824 | } // namespace Control |
| 1825 | } // namespace openbmc_project |
| 1826 | } // namespace xyz |
| 1827 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1828 | namespace details |
| 1829 | { |
| 1830 | |
| 1831 | template <> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1832 | struct map_exception_type< |
| 1833 | sdbusplus::xyz::openbmc_project::Control::Host::Error::CommandNotSupported> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1834 | { |
| 1835 | using type = xyz::openbmc_project::Control::Host::CommandNotSupported; |
| 1836 | }; |
| 1837 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1838 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1839 | |
| 1840 | namespace example |
| 1841 | { |
| 1842 | namespace xyz |
| 1843 | { |
| 1844 | namespace openbmc_project |
| 1845 | { |
| 1846 | namespace Example |
| 1847 | { |
| 1848 | namespace Elog |
| 1849 | { |
| 1850 | namespace _TestErrorOne |
| 1851 | { |
| 1852 | |
| 1853 | struct ERRNUM |
| 1854 | { |
| 1855 | static constexpr auto str = "ERRNUM=0x%.4X"; |
| 1856 | static constexpr auto str_short = "ERRNUM"; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1857 | using type = std::tuple<std::decay_t<decltype(str)>, uint16_t>; |
| 1858 | explicit constexpr ERRNUM(uint16_t a) : _entry(entry(str, a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1859 | type _entry; |
| 1860 | }; |
| 1861 | struct FILE_PATH |
| 1862 | { |
| 1863 | static constexpr auto str = "FILE_PATH=%s"; |
| 1864 | static constexpr auto str_short = "FILE_PATH"; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1865 | using type = std::tuple<std::decay_t<decltype(str)>, const char*>; |
| 1866 | explicit constexpr FILE_PATH(const char* a) : _entry(entry(str, a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1867 | type _entry; |
| 1868 | }; |
| 1869 | struct FILE_NAME |
| 1870 | { |
| 1871 | static constexpr auto str = "FILE_NAME=%s"; |
| 1872 | static constexpr auto str_short = "FILE_NAME"; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1873 | using type = std::tuple<std::decay_t<decltype(str)>, const char*>; |
| 1874 | explicit constexpr FILE_NAME(const char* a) : _entry(entry(str, a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1875 | type _entry; |
| 1876 | }; |
| 1877 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1878 | } // namespace _TestErrorOne |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1879 | |
| 1880 | struct TestErrorOne : public sdbusplus::exception_t |
| 1881 | { |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1882 | static constexpr auto errName = |
| 1883 | "example.xyz.openbmc_project.Example.Elog.TestErrorOne"; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1884 | static constexpr auto errDesc = "this is test error one"; |
| 1885 | static constexpr auto L = level::INFO; |
| 1886 | using ERRNUM = _TestErrorOne::ERRNUM; |
| 1887 | using FILE_PATH = _TestErrorOne::FILE_PATH; |
| 1888 | using FILE_NAME = _TestErrorOne::FILE_NAME; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1889 | using DEV_ADDR = |
| 1890 | example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ADDR; |
| 1891 | using DEV_ID = |
| 1892 | example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ID; |
| 1893 | using DEV_NAME = |
| 1894 | example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_NAME; |
| 1895 | using metadata_types = |
| 1896 | std::tuple<ERRNUM, FILE_PATH, FILE_NAME, DEV_ADDR, DEV_ID, DEV_NAME>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1897 | |
| 1898 | const char* name() const noexcept |
| 1899 | { |
| 1900 | return errName; |
| 1901 | } |
| 1902 | |
| 1903 | const char* description() const noexcept |
| 1904 | { |
| 1905 | return errDesc; |
| 1906 | } |
| 1907 | |
| 1908 | const char* what() const noexcept |
| 1909 | { |
| 1910 | return errName; |
| 1911 | } |
| 1912 | }; |
| 1913 | |
| 1914 | } // namespace Elog |
| 1915 | } // namespace Example |
| 1916 | } // namespace openbmc_project |
| 1917 | } // namespace xyz |
| 1918 | } // namespace example |
| 1919 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1920 | namespace example |
| 1921 | { |
| 1922 | namespace xyz |
| 1923 | { |
| 1924 | namespace openbmc_project |
| 1925 | { |
| 1926 | namespace Example |
| 1927 | { |
| 1928 | namespace Foo |
| 1929 | { |
| 1930 | namespace _Foo |
| 1931 | { |
| 1932 | |
| 1933 | struct FOO_DATA |
| 1934 | { |
| 1935 | static constexpr auto str = "FOO_DATA=%s"; |
| 1936 | static constexpr auto str_short = "FOO_DATA"; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1937 | using type = std::tuple<std::decay_t<decltype(str)>, const char*>; |
| 1938 | explicit constexpr FOO_DATA(const char* a) : _entry(entry(str, a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1939 | type _entry; |
| 1940 | }; |
| 1941 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1942 | } // namespace _Foo |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1943 | |
| 1944 | struct Foo : public sdbusplus::exception_t |
| 1945 | { |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1946 | static constexpr auto errName = |
| 1947 | "example.xyz.openbmc_project.Example.Foo.Foo"; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1948 | static constexpr auto errDesc = "this is test error Foo"; |
| 1949 | static constexpr auto L = level::INFO; |
| 1950 | using FOO_DATA = _Foo::FOO_DATA; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 1951 | using ERRNUM = |
| 1952 | example::xyz::openbmc_project::Example::Elog::TestErrorOne::ERRNUM; |
| 1953 | using FILE_PATH = |
| 1954 | example::xyz::openbmc_project::Example::Elog::TestErrorOne::FILE_PATH; |
| 1955 | using FILE_NAME = |
| 1956 | example::xyz::openbmc_project::Example::Elog::TestErrorOne::FILE_NAME; |
| 1957 | using DEV_ADDR = |
| 1958 | example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ADDR; |
| 1959 | using DEV_ID = |
| 1960 | example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ID; |
| 1961 | using DEV_NAME = |
| 1962 | example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_NAME; |
| 1963 | using metadata_types = std::tuple<FOO_DATA, ERRNUM, FILE_PATH, FILE_NAME, |
| 1964 | DEV_ADDR, DEV_ID, DEV_NAME>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1965 | |
| 1966 | const char* name() const noexcept |
| 1967 | { |
| 1968 | return errName; |
| 1969 | } |
| 1970 | |
| 1971 | const char* description() const noexcept |
| 1972 | { |
| 1973 | return errDesc; |
| 1974 | } |
| 1975 | |
| 1976 | const char* what() const noexcept |
| 1977 | { |
| 1978 | return errName; |
| 1979 | } |
| 1980 | }; |
| 1981 | |
| 1982 | } // namespace Foo |
| 1983 | } // namespace Example |
| 1984 | } // namespace openbmc_project |
| 1985 | } // namespace xyz |
| 1986 | } // namespace example |
| 1987 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1988 | namespace example |
| 1989 | { |
| 1990 | namespace xyz |
| 1991 | { |
| 1992 | namespace openbmc_project |
| 1993 | { |
| 1994 | namespace Example |
| 1995 | { |
| 1996 | namespace Bar |
| 1997 | { |
| 1998 | namespace _Bar |
| 1999 | { |
| 2000 | |
| 2001 | struct BAR_DATA |
| 2002 | { |
| 2003 | static constexpr auto str = "BAR_DATA=%s"; |
| 2004 | static constexpr auto str_short = "BAR_DATA"; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 2005 | using type = std::tuple<std::decay_t<decltype(str)>, const char*>; |
| 2006 | explicit constexpr BAR_DATA(const char* a) : _entry(entry(str, a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2007 | type _entry; |
| 2008 | }; |
| 2009 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 2010 | } // namespace _Bar |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2011 | |
| 2012 | struct Bar : public sdbusplus::exception_t |
| 2013 | { |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 2014 | static constexpr auto errName = |
| 2015 | "example.xyz.openbmc_project.Example.Bar.Bar"; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2016 | static constexpr auto errDesc = "this is test error Bar"; |
| 2017 | static constexpr auto L = level::INFO; |
| 2018 | using BAR_DATA = _Bar::BAR_DATA; |
| 2019 | using FOO_DATA = example::xyz::openbmc_project::Example::Foo::Foo::FOO_DATA; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame^] | 2020 | using ERRNUM = |
| 2021 | example::xyz::openbmc_project::Example::Elog::TestErrorOne::ERRNUM; |
| 2022 | using FILE_PATH = |
| 2023 | example::xyz::openbmc_project::Example::Elog::TestErrorOne::FILE_PATH; |
| 2024 | using FILE_NAME = |
| 2025 | example::xyz::openbmc_project::Example::Elog::TestErrorOne::FILE_NAME; |
| 2026 | using DEV_ADDR = |
| 2027 | example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ADDR; |
| 2028 | using DEV_ID = |
| 2029 | example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ID; |
| 2030 | using DEV_NAME = |
| 2031 | example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_NAME; |
| 2032 | using metadata_types = std::tuple<BAR_DATA, FOO_DATA, ERRNUM, FILE_PATH, |
| 2033 | FILE_NAME, DEV_ADDR, DEV_ID, DEV_NAME>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2034 | |
| 2035 | const char* name() const noexcept |
| 2036 | { |
| 2037 | return errName; |
| 2038 | } |
| 2039 | |
| 2040 | const char* description() const noexcept |
| 2041 | { |
| 2042 | return errDesc; |
| 2043 | } |
| 2044 | |
| 2045 | const char* what() const noexcept |
| 2046 | { |
| 2047 | return errName; |
| 2048 | } |
| 2049 | }; |
| 2050 | |
| 2051 | } // namespace Bar |
| 2052 | } // namespace Example |
| 2053 | } // namespace openbmc_project |
| 2054 | } // namespace xyz |
| 2055 | } // namespace example |
| 2056 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2057 | } // namespace logging |
| 2058 | |
| 2059 | } // namespace phosphor |