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 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 14 | namespace org |
Matt Spinler | 84cd0a5 | 2017-08-04 08:53:30 -0500 | [diff] [blame] | 15 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 16 | namespace open_power |
Matt Spinler | 84cd0a5 | 2017-08-04 08:53:30 -0500 | [diff] [blame] | 17 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 18 | namespace Witherspoon |
Matt Spinler | 84cd0a5 | 2017-08-04 08:53:30 -0500 | [diff] [blame] | 19 | { |
| 20 | namespace Fault |
| 21 | { |
| 22 | namespace Error |
| 23 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 24 | struct PowerSequencerPGOODFault; |
Matt Spinler | facfa90 | 2017-08-14 13:43:36 -0500 | [diff] [blame] | 25 | } // namespace Error |
| 26 | } // namespace Fault |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 27 | } // namespace Witherspoon |
| 28 | } // namespace open_power |
| 29 | } // namespace org |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 30 | } // namespace sdbusplus |
| 31 | |
| 32 | namespace sdbusplus |
| 33 | { |
| 34 | namespace xyz |
| 35 | { |
| 36 | namespace openbmc_project |
| 37 | { |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 38 | namespace Common |
| 39 | { |
| 40 | namespace Callout |
| 41 | { |
| 42 | namespace Error |
| 43 | { |
| 44 | struct GPIO; |
| 45 | } // namespace Error |
| 46 | } // namespace Callout |
| 47 | } // namespace Common |
| 48 | } // namespace openbmc_project |
| 49 | } // namespace xyz |
| 50 | } // namespace sdbusplus |
| 51 | |
| 52 | namespace sdbusplus |
| 53 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 54 | namespace org |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 55 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 56 | namespace open_power |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 57 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 58 | namespace Witherspoon |
Brandon Wyman | 875b363 | 2017-09-13 18:46:03 -0500 | [diff] [blame] | 59 | { |
| 60 | namespace Fault |
| 61 | { |
| 62 | namespace Error |
| 63 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 64 | struct PowerOnFailure; |
Brandon Wyman | 875b363 | 2017-09-13 18:46:03 -0500 | [diff] [blame] | 65 | } // namespace Error |
| 66 | } // namespace Fault |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 67 | } // namespace Witherspoon |
| 68 | } // namespace open_power |
| 69 | } // namespace org |
Brandon Wyman | 875b363 | 2017-09-13 18:46:03 -0500 | [diff] [blame] | 70 | } // namespace sdbusplus |
| 71 | |
| 72 | namespace sdbusplus |
| 73 | { |
| 74 | namespace xyz |
| 75 | { |
| 76 | namespace openbmc_project |
| 77 | { |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 78 | namespace Common |
| 79 | { |
| 80 | namespace Callout |
| 81 | { |
| 82 | namespace Error |
| 83 | { |
| 84 | struct Inventory; |
| 85 | } // namespace Error |
| 86 | } // namespace Callout |
| 87 | } // namespace Common |
| 88 | } // namespace openbmc_project |
| 89 | } // namespace xyz |
| 90 | } // namespace sdbusplus |
| 91 | |
| 92 | namespace sdbusplus |
| 93 | { |
| 94 | namespace xyz |
| 95 | { |
| 96 | namespace openbmc_project |
| 97 | { |
| 98 | namespace Common |
| 99 | { |
| 100 | namespace Callout |
| 101 | { |
| 102 | namespace Error |
| 103 | { |
| 104 | struct IIC; |
| 105 | } // namespace Error |
| 106 | } // namespace Callout |
| 107 | } // namespace Common |
| 108 | } // namespace openbmc_project |
| 109 | } // namespace xyz |
| 110 | } // namespace sdbusplus |
| 111 | |
| 112 | namespace sdbusplus |
| 113 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 114 | namespace org |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 115 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 116 | namespace open_power |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 117 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 118 | namespace Witherspoon |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 119 | { |
| 120 | namespace Fault |
| 121 | { |
| 122 | namespace Error |
| 123 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 124 | struct GPUPowerFault; |
Matt Spinler | ac4b52f | 2017-08-21 14:50:58 -0500 | [diff] [blame] | 125 | } // namespace Error |
| 126 | } // namespace Fault |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 127 | } // namespace Witherspoon |
| 128 | } // namespace open_power |
| 129 | } // namespace org |
Matt Spinler | ac4b52f | 2017-08-21 14:50:58 -0500 | [diff] [blame] | 130 | } // namespace sdbusplus |
| 131 | |
| 132 | namespace sdbusplus |
| 133 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 134 | namespace org |
Matt Spinler | ac4b52f | 2017-08-21 14:50:58 -0500 | [diff] [blame] | 135 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 136 | namespace open_power |
Matt Spinler | ac4b52f | 2017-08-21 14:50:58 -0500 | [diff] [blame] | 137 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 138 | namespace Witherspoon |
Brandon Wyman | 764c797 | 2017-08-22 17:05:36 -0500 | [diff] [blame] | 139 | { |
| 140 | namespace Fault |
| 141 | { |
| 142 | namespace Error |
| 143 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 144 | struct Shutdown; |
Brandon Wyman | 764c797 | 2017-08-22 17:05:36 -0500 | [diff] [blame] | 145 | } // namespace Error |
| 146 | } // namespace Fault |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 147 | } // namespace Witherspoon |
| 148 | } // namespace open_power |
| 149 | } // namespace org |
| 150 | } // namespace sdbusplus |
| 151 | |
| 152 | namespace sdbusplus |
| 153 | { |
| 154 | namespace org |
| 155 | { |
| 156 | namespace open_power |
| 157 | { |
| 158 | namespace Witherspoon |
| 159 | { |
| 160 | namespace Fault |
| 161 | { |
| 162 | namespace Error |
| 163 | { |
| 164 | struct PowerSupplyInputFault; |
| 165 | } // namespace Error |
| 166 | } // namespace Fault |
| 167 | } // namespace Witherspoon |
| 168 | } // namespace open_power |
| 169 | } // namespace org |
Brandon Wyman | 764c797 | 2017-08-22 17:05:36 -0500 | [diff] [blame] | 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 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 194 | namespace org |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 195 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 196 | namespace open_power |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 197 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 198 | namespace Witherspoon |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 199 | { |
| 200 | namespace Fault |
| 201 | { |
| 202 | namespace Error |
| 203 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 204 | struct PowerSequencerFault; |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 205 | } // namespace Error |
| 206 | } // namespace Fault |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 207 | } // namespace Witherspoon |
| 208 | } // namespace open_power |
| 209 | } // namespace org |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 210 | } // namespace sdbusplus |
| 211 | |
| 212 | namespace sdbusplus |
| 213 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 214 | namespace org |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 215 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 216 | namespace open_power |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 217 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 218 | namespace Witherspoon |
Brandon Wyman | ab05c07 | 2017-08-30 18:26:41 -0500 | [diff] [blame] | 219 | { |
| 220 | namespace Fault |
| 221 | { |
| 222 | namespace Error |
| 223 | { |
Brandon Wyman | b165c25 | 2017-08-25 18:59:54 -0500 | [diff] [blame] | 224 | struct PowerSupplyOutputOvercurrent; |
| 225 | } // namespace Error |
| 226 | } // namespace Fault |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 227 | } // namespace Witherspoon |
| 228 | } // namespace open_power |
| 229 | } // namespace org |
Brandon Wyman | b165c25 | 2017-08-25 18:59:54 -0500 | [diff] [blame] | 230 | } // namespace sdbusplus |
| 231 | |
| 232 | namespace sdbusplus |
| 233 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 234 | namespace org |
Brandon Wyman | b165c25 | 2017-08-25 18:59:54 -0500 | [diff] [blame] | 235 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 236 | namespace open_power |
Brandon Wyman | b165c25 | 2017-08-25 18:59:54 -0500 | [diff] [blame] | 237 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 238 | namespace Witherspoon |
Brandon Wyman | b165c25 | 2017-08-25 18:59:54 -0500 | [diff] [blame] | 239 | { |
| 240 | namespace Fault |
| 241 | { |
| 242 | namespace Error |
| 243 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 244 | struct PowerSupplyOutputOvervoltage; |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 245 | } // namespace Error |
| 246 | } // namespace Fault |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 247 | } // namespace Witherspoon |
| 248 | } // namespace open_power |
| 249 | } // namespace org |
| 250 | } // namespace sdbusplus |
| 251 | |
| 252 | namespace sdbusplus |
| 253 | { |
| 254 | namespace org |
| 255 | { |
| 256 | namespace open_power |
| 257 | { |
| 258 | namespace Witherspoon |
| 259 | { |
| 260 | namespace Fault |
| 261 | { |
| 262 | namespace Error |
| 263 | { |
| 264 | struct PowerSupplyFanFault; |
| 265 | } // namespace Error |
| 266 | } // namespace Fault |
| 267 | } // namespace Witherspoon |
| 268 | } // namespace open_power |
| 269 | } // namespace org |
| 270 | } // namespace sdbusplus |
| 271 | |
| 272 | namespace sdbusplus |
| 273 | { |
| 274 | namespace org |
| 275 | { |
| 276 | namespace open_power |
| 277 | { |
| 278 | namespace Witherspoon |
| 279 | { |
| 280 | namespace Fault |
| 281 | { |
| 282 | namespace Error |
| 283 | { |
| 284 | struct PowerSequencerVoltageFault; |
| 285 | } // namespace Error |
| 286 | } // namespace Fault |
| 287 | } // namespace Witherspoon |
| 288 | } // namespace open_power |
| 289 | } // namespace org |
| 290 | } // namespace sdbusplus |
| 291 | |
| 292 | namespace sdbusplus |
| 293 | { |
| 294 | namespace org |
| 295 | { |
| 296 | namespace open_power |
| 297 | { |
| 298 | namespace Witherspoon |
| 299 | { |
| 300 | namespace Fault |
| 301 | { |
| 302 | namespace Error |
| 303 | { |
| 304 | struct PowerSupplyUnderVoltageFault; |
| 305 | } // namespace Error |
| 306 | } // namespace Fault |
| 307 | } // namespace Witherspoon |
| 308 | } // namespace open_power |
| 309 | } // namespace org |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 310 | } // namespace sdbusplus |
| 311 | |
| 312 | namespace sdbusplus |
| 313 | { |
| 314 | namespace xyz |
| 315 | { |
| 316 | namespace openbmc_project |
| 317 | { |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 318 | namespace Common |
| 319 | { |
| 320 | namespace Callout |
| 321 | { |
| 322 | namespace Error |
| 323 | { |
| 324 | struct IPMISensor; |
| 325 | } // namespace Error |
| 326 | } // namespace Callout |
| 327 | } // namespace Common |
| 328 | } // namespace openbmc_project |
| 329 | } // namespace xyz |
| 330 | } // namespace sdbusplus |
| 331 | |
| 332 | namespace sdbusplus |
| 333 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 334 | namespace org |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 335 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 336 | namespace open_power |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 337 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 338 | namespace Witherspoon |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 339 | { |
| 340 | namespace Fault |
| 341 | { |
| 342 | namespace Error |
| 343 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 344 | struct PowerSupplyTemperatureFault; |
Matt Spinler | ac4b52f | 2017-08-21 14:50:58 -0500 | [diff] [blame] | 345 | } // namespace Error |
| 346 | } // namespace Fault |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 347 | } // namespace Witherspoon |
| 348 | } // namespace open_power |
| 349 | } // namespace org |
Matt Spinler | ac4b52f | 2017-08-21 14:50:58 -0500 | [diff] [blame] | 350 | } // namespace sdbusplus |
| 351 | |
| 352 | namespace sdbusplus |
| 353 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 354 | namespace org |
Matt Spinler | ac4b52f | 2017-08-21 14:50:58 -0500 | [diff] [blame] | 355 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 356 | namespace open_power |
Matt Spinler | ac4b52f | 2017-08-21 14:50:58 -0500 | [diff] [blame] | 357 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 358 | namespace Witherspoon |
Matt Spinler | ac4b52f | 2017-08-21 14:50:58 -0500 | [diff] [blame] | 359 | { |
| 360 | namespace Fault |
| 361 | { |
| 362 | namespace Error |
| 363 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 364 | struct PowerSupplyShouldBeOn; |
Matt Spinler | 84cd0a5 | 2017-08-04 08:53:30 -0500 | [diff] [blame] | 365 | } // namespace Error |
| 366 | } // namespace Fault |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 367 | } // namespace Witherspoon |
| 368 | } // namespace open_power |
| 369 | } // namespace org |
| 370 | } // namespace sdbusplus |
| 371 | |
| 372 | namespace sdbusplus |
| 373 | { |
| 374 | namespace org |
| 375 | { |
| 376 | namespace open_power |
| 377 | { |
| 378 | namespace Witherspoon |
| 379 | { |
| 380 | namespace Fault |
| 381 | { |
| 382 | namespace Error |
| 383 | { |
| 384 | struct GPUOverTemp; |
| 385 | } // namespace Error |
| 386 | } // namespace Fault |
| 387 | } // namespace Witherspoon |
| 388 | } // namespace open_power |
| 389 | } // namespace org |
Matt Spinler | 84cd0a5 | 2017-08-04 08:53:30 -0500 | [diff] [blame] | 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 | |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 656 | namespace org |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 657 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 658 | namespace open_power |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 659 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 660 | namespace Witherspoon |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 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; |
Brandon Wyman | ea358c9 | 2017-10-27 17:34:07 -0500 | [diff] [blame^] | 682 | using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::Inventory::CALLOUT_INVENTORY_PATH; |
| 683 | using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 684 | |
| 685 | }; |
| 686 | |
| 687 | } // namespace Fault |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 688 | } // namespace Witherspoon |
| 689 | } // namespace open_power |
| 690 | } // namespace org |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 691 | |
| 692 | |
| 693 | namespace details |
| 694 | { |
| 695 | |
| 696 | template <> |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 697 | struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::Error::PowerSupplyUnderVoltageFault> |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 698 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 699 | using type = org::open_power::Witherspoon::Fault::PowerSupplyUnderVoltageFault; |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 700 | }; |
| 701 | |
| 702 | } |
| 703 | |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 704 | namespace org |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 705 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 706 | namespace open_power |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 707 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 708 | namespace Witherspoon |
Matt Spinler | 84cd0a5 | 2017-08-04 08:53:30 -0500 | [diff] [blame] | 709 | { |
| 710 | namespace Fault |
| 711 | { |
Brandon Wyman | 253dc9b | 2017-08-12 13:45:52 -0500 | [diff] [blame] | 712 | namespace _PowerSupplyInputFault |
| 713 | { |
| 714 | |
| 715 | struct RAW_STATUS |
| 716 | { |
| 717 | static constexpr auto str = "RAW_STATUS=%s"; |
| 718 | static constexpr auto str_short = "RAW_STATUS"; |
| 719 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 720 | explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; |
| 721 | type _entry; |
| 722 | }; |
| 723 | |
| 724 | } // namespace _PowerSupplyInputFault |
| 725 | |
| 726 | struct PowerSupplyInputFault |
| 727 | { |
| 728 | static constexpr auto L = level::ERR; |
| 729 | using RAW_STATUS = _PowerSupplyInputFault::RAW_STATUS; |
Brandon Wyman | ea358c9 | 2017-10-27 17:34:07 -0500 | [diff] [blame^] | 730 | using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::Inventory::CALLOUT_INVENTORY_PATH; |
| 731 | using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; |
Brandon Wyman | 253dc9b | 2017-08-12 13:45:52 -0500 | [diff] [blame] | 732 | |
| 733 | }; |
| 734 | |
| 735 | } // namespace Fault |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 736 | } // namespace Witherspoon |
| 737 | } // namespace open_power |
| 738 | } // namespace org |
Brandon Wyman | 253dc9b | 2017-08-12 13:45:52 -0500 | [diff] [blame] | 739 | |
| 740 | |
| 741 | namespace details |
| 742 | { |
| 743 | |
| 744 | template <> |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 745 | struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::Error::PowerSupplyInputFault> |
Brandon Wyman | 253dc9b | 2017-08-12 13:45:52 -0500 | [diff] [blame] | 746 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 747 | using type = org::open_power::Witherspoon::Fault::PowerSupplyInputFault; |
Brandon Wyman | 253dc9b | 2017-08-12 13:45:52 -0500 | [diff] [blame] | 748 | }; |
| 749 | |
| 750 | } |
| 751 | |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 752 | namespace org |
Brandon Wyman | 253dc9b | 2017-08-12 13:45:52 -0500 | [diff] [blame] | 753 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 754 | namespace open_power |
Brandon Wyman | 253dc9b | 2017-08-12 13:45:52 -0500 | [diff] [blame] | 755 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 756 | namespace Witherspoon |
Brandon Wyman | 253dc9b | 2017-08-12 13:45:52 -0500 | [diff] [blame] | 757 | { |
| 758 | namespace Fault |
| 759 | { |
Brandon Wyman | 764c797 | 2017-08-22 17:05:36 -0500 | [diff] [blame] | 760 | namespace _PowerSupplyShouldBeOn |
| 761 | { |
| 762 | |
| 763 | struct RAW_STATUS |
| 764 | { |
| 765 | static constexpr auto str = "RAW_STATUS=%s"; |
| 766 | static constexpr auto str_short = "RAW_STATUS"; |
| 767 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 768 | explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; |
| 769 | type _entry; |
| 770 | }; |
| 771 | |
| 772 | } // namespace _PowerSupplyShouldBeOn |
| 773 | |
| 774 | struct PowerSupplyShouldBeOn |
| 775 | { |
| 776 | static constexpr auto L = level::ERR; |
| 777 | using RAW_STATUS = _PowerSupplyShouldBeOn::RAW_STATUS; |
| 778 | using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::Inventory::CALLOUT_INVENTORY_PATH; |
| 779 | using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; |
| 780 | |
| 781 | }; |
| 782 | |
| 783 | } // namespace Fault |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 784 | } // namespace Witherspoon |
| 785 | } // namespace open_power |
| 786 | } // namespace org |
Brandon Wyman | 764c797 | 2017-08-22 17:05:36 -0500 | [diff] [blame] | 787 | |
| 788 | |
| 789 | namespace details |
| 790 | { |
| 791 | |
| 792 | template <> |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 793 | struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::Error::PowerSupplyShouldBeOn> |
Brandon Wyman | 764c797 | 2017-08-22 17:05:36 -0500 | [diff] [blame] | 794 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 795 | using type = org::open_power::Witherspoon::Fault::PowerSupplyShouldBeOn; |
Brandon Wyman | 764c797 | 2017-08-22 17:05:36 -0500 | [diff] [blame] | 796 | }; |
| 797 | |
| 798 | } |
| 799 | |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 800 | namespace org |
Brandon Wyman | 764c797 | 2017-08-22 17:05:36 -0500 | [diff] [blame] | 801 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 802 | namespace open_power |
Brandon Wyman | 764c797 | 2017-08-22 17:05:36 -0500 | [diff] [blame] | 803 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 804 | namespace Witherspoon |
Brandon Wyman | 764c797 | 2017-08-22 17:05:36 -0500 | [diff] [blame] | 805 | { |
| 806 | namespace Fault |
| 807 | { |
Brandon Wyman | b165c25 | 2017-08-25 18:59:54 -0500 | [diff] [blame] | 808 | namespace _PowerSupplyOutputOvercurrent |
| 809 | { |
| 810 | |
| 811 | struct RAW_STATUS |
| 812 | { |
| 813 | static constexpr auto str = "RAW_STATUS=%s"; |
| 814 | static constexpr auto str_short = "RAW_STATUS"; |
| 815 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 816 | explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; |
| 817 | type _entry; |
| 818 | }; |
| 819 | |
| 820 | } // namespace _PowerSupplyOutputOvercurrent |
| 821 | |
| 822 | struct PowerSupplyOutputOvercurrent |
| 823 | { |
| 824 | static constexpr auto L = level::ERR; |
| 825 | using RAW_STATUS = _PowerSupplyOutputOvercurrent::RAW_STATUS; |
| 826 | using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::Inventory::CALLOUT_INVENTORY_PATH; |
| 827 | using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; |
| 828 | |
| 829 | }; |
| 830 | |
| 831 | } // namespace Fault |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 832 | } // namespace Witherspoon |
| 833 | } // namespace open_power |
| 834 | } // namespace org |
Brandon Wyman | b165c25 | 2017-08-25 18:59:54 -0500 | [diff] [blame] | 835 | |
| 836 | |
| 837 | namespace details |
| 838 | { |
| 839 | |
| 840 | template <> |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 841 | struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::Error::PowerSupplyOutputOvercurrent> |
Brandon Wyman | b165c25 | 2017-08-25 18:59:54 -0500 | [diff] [blame] | 842 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 843 | using type = org::open_power::Witherspoon::Fault::PowerSupplyOutputOvercurrent; |
Brandon Wyman | b165c25 | 2017-08-25 18:59:54 -0500 | [diff] [blame] | 844 | }; |
| 845 | |
| 846 | } |
| 847 | |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 848 | namespace org |
Brandon Wyman | b165c25 | 2017-08-25 18:59:54 -0500 | [diff] [blame] | 849 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 850 | namespace open_power |
Brandon Wyman | b165c25 | 2017-08-25 18:59:54 -0500 | [diff] [blame] | 851 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 852 | namespace Witherspoon |
Brandon Wyman | b165c25 | 2017-08-25 18:59:54 -0500 | [diff] [blame] | 853 | { |
| 854 | namespace Fault |
| 855 | { |
Brandon Wyman | ab05c07 | 2017-08-30 18:26:41 -0500 | [diff] [blame] | 856 | namespace _PowerSupplyOutputOvervoltage |
| 857 | { |
| 858 | |
| 859 | struct RAW_STATUS |
| 860 | { |
| 861 | static constexpr auto str = "RAW_STATUS=%s"; |
| 862 | static constexpr auto str_short = "RAW_STATUS"; |
| 863 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 864 | explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; |
| 865 | type _entry; |
| 866 | }; |
| 867 | |
| 868 | } // namespace _PowerSupplyOutputOvervoltage |
| 869 | |
| 870 | struct PowerSupplyOutputOvervoltage |
| 871 | { |
| 872 | static constexpr auto L = level::ERR; |
| 873 | using RAW_STATUS = _PowerSupplyOutputOvervoltage::RAW_STATUS; |
| 874 | using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::Inventory::CALLOUT_INVENTORY_PATH; |
| 875 | using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; |
| 876 | |
| 877 | }; |
| 878 | |
| 879 | } // namespace Fault |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 880 | } // namespace Witherspoon |
| 881 | } // namespace open_power |
| 882 | } // namespace org |
Brandon Wyman | ab05c07 | 2017-08-30 18:26:41 -0500 | [diff] [blame] | 883 | |
| 884 | |
| 885 | namespace details |
| 886 | { |
| 887 | |
| 888 | template <> |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 889 | struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::Error::PowerSupplyOutputOvervoltage> |
Brandon Wyman | ab05c07 | 2017-08-30 18:26:41 -0500 | [diff] [blame] | 890 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 891 | using type = org::open_power::Witherspoon::Fault::PowerSupplyOutputOvervoltage; |
Brandon Wyman | ab05c07 | 2017-08-30 18:26:41 -0500 | [diff] [blame] | 892 | }; |
| 893 | |
| 894 | } |
| 895 | |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 896 | namespace org |
Brandon Wyman | ab05c07 | 2017-08-30 18:26:41 -0500 | [diff] [blame] | 897 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 898 | namespace open_power |
Brandon Wyman | ab05c07 | 2017-08-30 18:26:41 -0500 | [diff] [blame] | 899 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 900 | namespace Witherspoon |
Brandon Wyman | ab05c07 | 2017-08-30 18:26:41 -0500 | [diff] [blame] | 901 | { |
| 902 | namespace Fault |
| 903 | { |
Brandon Wyman | 12661f1 | 2017-08-31 15:28:21 -0500 | [diff] [blame] | 904 | namespace _PowerSupplyFanFault |
| 905 | { |
| 906 | |
| 907 | struct RAW_STATUS |
| 908 | { |
| 909 | static constexpr auto str = "RAW_STATUS=%s"; |
| 910 | static constexpr auto str_short = "RAW_STATUS"; |
| 911 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 912 | explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; |
| 913 | type _entry; |
| 914 | }; |
| 915 | |
| 916 | } // namespace _PowerSupplyFanFault |
| 917 | |
| 918 | struct PowerSupplyFanFault |
| 919 | { |
| 920 | static constexpr auto L = level::ERR; |
| 921 | using RAW_STATUS = _PowerSupplyFanFault::RAW_STATUS; |
| 922 | using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::Inventory::CALLOUT_INVENTORY_PATH; |
| 923 | using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; |
| 924 | |
| 925 | }; |
| 926 | |
| 927 | } // namespace Fault |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 928 | } // namespace Witherspoon |
| 929 | } // namespace open_power |
| 930 | } // namespace org |
Brandon Wyman | 12661f1 | 2017-08-31 15:28:21 -0500 | [diff] [blame] | 931 | |
| 932 | |
| 933 | namespace details |
| 934 | { |
| 935 | |
| 936 | template <> |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 937 | struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::Error::PowerSupplyFanFault> |
Brandon Wyman | 12661f1 | 2017-08-31 15:28:21 -0500 | [diff] [blame] | 938 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 939 | using type = org::open_power::Witherspoon::Fault::PowerSupplyFanFault; |
Brandon Wyman | 12661f1 | 2017-08-31 15:28:21 -0500 | [diff] [blame] | 940 | }; |
| 941 | |
| 942 | } |
| 943 | |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 944 | namespace org |
Brandon Wyman | 12661f1 | 2017-08-31 15:28:21 -0500 | [diff] [blame] | 945 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 946 | namespace open_power |
Brandon Wyman | 12661f1 | 2017-08-31 15:28:21 -0500 | [diff] [blame] | 947 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 948 | namespace Witherspoon |
Brandon Wyman | 12661f1 | 2017-08-31 15:28:21 -0500 | [diff] [blame] | 949 | { |
| 950 | namespace Fault |
| 951 | { |
Brandon Wyman | 875b363 | 2017-09-13 18:46:03 -0500 | [diff] [blame] | 952 | namespace _PowerSupplyTemperatureFault |
| 953 | { |
| 954 | |
| 955 | struct RAW_STATUS |
| 956 | { |
| 957 | static constexpr auto str = "RAW_STATUS=%s"; |
| 958 | static constexpr auto str_short = "RAW_STATUS"; |
| 959 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 960 | explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; |
| 961 | type _entry; |
| 962 | }; |
| 963 | |
| 964 | } // namespace _PowerSupplyTemperatureFault |
| 965 | |
| 966 | struct PowerSupplyTemperatureFault |
| 967 | { |
| 968 | static constexpr auto L = level::ERR; |
| 969 | using RAW_STATUS = _PowerSupplyTemperatureFault::RAW_STATUS; |
| 970 | using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::Inventory::CALLOUT_INVENTORY_PATH; |
| 971 | using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; |
| 972 | |
| 973 | }; |
| 974 | |
| 975 | } // namespace Fault |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 976 | } // namespace Witherspoon |
| 977 | } // namespace open_power |
| 978 | } // namespace org |
Brandon Wyman | 875b363 | 2017-09-13 18:46:03 -0500 | [diff] [blame] | 979 | |
| 980 | |
| 981 | namespace details |
| 982 | { |
| 983 | |
| 984 | template <> |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 985 | struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::Error::PowerSupplyTemperatureFault> |
Brandon Wyman | 875b363 | 2017-09-13 18:46:03 -0500 | [diff] [blame] | 986 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 987 | using type = org::open_power::Witherspoon::Fault::PowerSupplyTemperatureFault; |
Brandon Wyman | 875b363 | 2017-09-13 18:46:03 -0500 | [diff] [blame] | 988 | }; |
| 989 | |
| 990 | } |
| 991 | |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 992 | namespace org |
Brandon Wyman | 875b363 | 2017-09-13 18:46:03 -0500 | [diff] [blame] | 993 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 994 | namespace open_power |
Brandon Wyman | 875b363 | 2017-09-13 18:46:03 -0500 | [diff] [blame] | 995 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 996 | namespace Witherspoon |
Brandon Wyman | 875b363 | 2017-09-13 18:46:03 -0500 | [diff] [blame] | 997 | { |
| 998 | namespace Fault |
| 999 | { |
Matt Spinler | 84cd0a5 | 2017-08-04 08:53:30 -0500 | [diff] [blame] | 1000 | namespace _Shutdown |
| 1001 | { |
| 1002 | |
| 1003 | |
| 1004 | } // namespace _Shutdown |
| 1005 | |
| 1006 | struct Shutdown |
| 1007 | { |
| 1008 | static constexpr auto L = level::ERR; |
| 1009 | using metadata_types = std::tuple<>; |
| 1010 | |
| 1011 | }; |
| 1012 | |
| 1013 | } // namespace Fault |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 1014 | } // namespace Witherspoon |
| 1015 | } // namespace open_power |
| 1016 | } // namespace org |
Matt Spinler | 84cd0a5 | 2017-08-04 08:53:30 -0500 | [diff] [blame] | 1017 | |
| 1018 | |
| 1019 | namespace details |
| 1020 | { |
| 1021 | |
| 1022 | template <> |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 1023 | struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::Error::Shutdown> |
Matt Spinler | 84cd0a5 | 2017-08-04 08:53:30 -0500 | [diff] [blame] | 1024 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 1025 | using type = org::open_power::Witherspoon::Fault::Shutdown; |
Matt Spinler | 84cd0a5 | 2017-08-04 08:53:30 -0500 | [diff] [blame] | 1026 | }; |
| 1027 | |
| 1028 | } |
| 1029 | |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 1030 | namespace org |
Matt Spinler | facfa90 | 2017-08-14 13:43:36 -0500 | [diff] [blame] | 1031 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 1032 | namespace open_power |
Matt Spinler | facfa90 | 2017-08-14 13:43:36 -0500 | [diff] [blame] | 1033 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 1034 | namespace Witherspoon |
Matt Spinler | facfa90 | 2017-08-14 13:43:36 -0500 | [diff] [blame] | 1035 | { |
| 1036 | namespace Fault |
| 1037 | { |
| 1038 | namespace _PowerOnFailure |
| 1039 | { |
| 1040 | |
| 1041 | |
| 1042 | } // namespace _PowerOnFailure |
| 1043 | |
| 1044 | struct PowerOnFailure |
| 1045 | { |
| 1046 | static constexpr auto L = level::ERR; |
| 1047 | using metadata_types = std::tuple<>; |
| 1048 | |
| 1049 | }; |
| 1050 | |
| 1051 | } // namespace Fault |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 1052 | } // namespace Witherspoon |
| 1053 | } // namespace open_power |
| 1054 | } // namespace org |
Matt Spinler | facfa90 | 2017-08-14 13:43:36 -0500 | [diff] [blame] | 1055 | |
| 1056 | |
| 1057 | namespace details |
| 1058 | { |
| 1059 | |
| 1060 | template <> |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 1061 | struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::Error::PowerOnFailure> |
Matt Spinler | facfa90 | 2017-08-14 13:43:36 -0500 | [diff] [blame] | 1062 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 1063 | using type = org::open_power::Witherspoon::Fault::PowerOnFailure; |
Matt Spinler | facfa90 | 2017-08-14 13:43:36 -0500 | [diff] [blame] | 1064 | }; |
| 1065 | |
| 1066 | } |
| 1067 | |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 1068 | namespace org |
Matt Spinler | ac4b52f | 2017-08-21 14:50:58 -0500 | [diff] [blame] | 1069 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 1070 | namespace open_power |
Matt Spinler | ac4b52f | 2017-08-21 14:50:58 -0500 | [diff] [blame] | 1071 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 1072 | namespace Witherspoon |
Matt Spinler | ac4b52f | 2017-08-21 14:50:58 -0500 | [diff] [blame] | 1073 | { |
| 1074 | namespace Fault |
| 1075 | { |
| 1076 | namespace _PowerSequencerVoltageFault |
| 1077 | { |
| 1078 | |
| 1079 | struct RAIL |
| 1080 | { |
| 1081 | static constexpr auto str = "RAIL=%d"; |
| 1082 | static constexpr auto str_short = "RAIL"; |
| 1083 | using type = std::tuple<std::decay_t<decltype(str)>,uint16_t>; |
| 1084 | explicit constexpr RAIL(uint16_t a) : _entry(entry(str, a)) {}; |
| 1085 | type _entry; |
| 1086 | }; |
| 1087 | struct RAIL_NAME |
| 1088 | { |
| 1089 | static constexpr auto str = "RAIL_NAME=%s"; |
| 1090 | static constexpr auto str_short = "RAIL_NAME"; |
| 1091 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 1092 | explicit constexpr RAIL_NAME(const char* a) : _entry(entry(str, a)) {}; |
| 1093 | type _entry; |
| 1094 | }; |
| 1095 | struct RAW_STATUS |
| 1096 | { |
| 1097 | static constexpr auto str = "RAW_STATUS=%s"; |
| 1098 | static constexpr auto str_short = "RAW_STATUS"; |
| 1099 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 1100 | explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; |
| 1101 | type _entry; |
| 1102 | }; |
| 1103 | |
| 1104 | } // namespace _PowerSequencerVoltageFault |
| 1105 | |
| 1106 | struct PowerSequencerVoltageFault |
| 1107 | { |
| 1108 | static constexpr auto L = level::ERR; |
| 1109 | using RAIL = _PowerSequencerVoltageFault::RAIL; |
| 1110 | using RAIL_NAME = _PowerSequencerVoltageFault::RAIL_NAME; |
| 1111 | using RAW_STATUS = _PowerSequencerVoltageFault::RAW_STATUS; |
| 1112 | using metadata_types = std::tuple<RAIL, RAIL_NAME, RAW_STATUS>; |
| 1113 | |
| 1114 | }; |
| 1115 | |
| 1116 | } // namespace Fault |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 1117 | } // namespace Witherspoon |
| 1118 | } // namespace open_power |
| 1119 | } // namespace org |
Matt Spinler | ac4b52f | 2017-08-21 14:50:58 -0500 | [diff] [blame] | 1120 | |
| 1121 | |
| 1122 | namespace details |
| 1123 | { |
| 1124 | |
| 1125 | template <> |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 1126 | struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::Error::PowerSequencerVoltageFault> |
Matt Spinler | ac4b52f | 2017-08-21 14:50:58 -0500 | [diff] [blame] | 1127 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 1128 | using type = org::open_power::Witherspoon::Fault::PowerSequencerVoltageFault; |
Matt Spinler | ac4b52f | 2017-08-21 14:50:58 -0500 | [diff] [blame] | 1129 | }; |
| 1130 | |
| 1131 | } |
| 1132 | |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 1133 | namespace org |
Matt Spinler | ac4b52f | 2017-08-21 14:50:58 -0500 | [diff] [blame] | 1134 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 1135 | namespace open_power |
Matt Spinler | ac4b52f | 2017-08-21 14:50:58 -0500 | [diff] [blame] | 1136 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 1137 | namespace Witherspoon |
Matt Spinler | ac4b52f | 2017-08-21 14:50:58 -0500 | [diff] [blame] | 1138 | { |
| 1139 | namespace Fault |
| 1140 | { |
| 1141 | namespace _PowerSequencerPGOODFault |
| 1142 | { |
| 1143 | |
| 1144 | struct INPUT_NUM |
| 1145 | { |
| 1146 | static constexpr auto str = "INPUT_NUM=%d"; |
| 1147 | static constexpr auto str_short = "INPUT_NUM"; |
| 1148 | using type = std::tuple<std::decay_t<decltype(str)>,uint16_t>; |
| 1149 | explicit constexpr INPUT_NUM(uint16_t a) : _entry(entry(str, a)) {}; |
| 1150 | type _entry; |
| 1151 | }; |
| 1152 | struct INPUT_NAME |
| 1153 | { |
| 1154 | static constexpr auto str = "INPUT_NAME=%s"; |
| 1155 | static constexpr auto str_short = "INPUT_NAME"; |
| 1156 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 1157 | explicit constexpr INPUT_NAME(const char* a) : _entry(entry(str, a)) {}; |
| 1158 | type _entry; |
| 1159 | }; |
| 1160 | struct RAW_STATUS |
| 1161 | { |
| 1162 | static constexpr auto str = "RAW_STATUS=%s"; |
| 1163 | static constexpr auto str_short = "RAW_STATUS"; |
| 1164 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 1165 | explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; |
| 1166 | type _entry; |
| 1167 | }; |
| 1168 | |
| 1169 | } // namespace _PowerSequencerPGOODFault |
| 1170 | |
| 1171 | struct PowerSequencerPGOODFault |
| 1172 | { |
| 1173 | static constexpr auto L = level::ERR; |
| 1174 | using INPUT_NUM = _PowerSequencerPGOODFault::INPUT_NUM; |
| 1175 | using INPUT_NAME = _PowerSequencerPGOODFault::INPUT_NAME; |
| 1176 | using RAW_STATUS = _PowerSequencerPGOODFault::RAW_STATUS; |
| 1177 | using metadata_types = std::tuple<INPUT_NUM, INPUT_NAME, RAW_STATUS>; |
| 1178 | |
| 1179 | }; |
| 1180 | |
| 1181 | } // namespace Fault |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 1182 | } // namespace Witherspoon |
| 1183 | } // namespace open_power |
| 1184 | } // namespace org |
Matt Spinler | ac4b52f | 2017-08-21 14:50:58 -0500 | [diff] [blame] | 1185 | |
| 1186 | |
| 1187 | namespace details |
| 1188 | { |
| 1189 | |
| 1190 | template <> |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 1191 | struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::Error::PowerSequencerPGOODFault> |
Matt Spinler | ac4b52f | 2017-08-21 14:50:58 -0500 | [diff] [blame] | 1192 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 1193 | using type = org::open_power::Witherspoon::Fault::PowerSequencerPGOODFault; |
Matt Spinler | ac4b52f | 2017-08-21 14:50:58 -0500 | [diff] [blame] | 1194 | }; |
| 1195 | |
| 1196 | } |
| 1197 | |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 1198 | namespace org |
Matt Spinler | ac4b52f | 2017-08-21 14:50:58 -0500 | [diff] [blame] | 1199 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 1200 | namespace open_power |
Matt Spinler | ac4b52f | 2017-08-21 14:50:58 -0500 | [diff] [blame] | 1201 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 1202 | namespace Witherspoon |
Matt Spinler | ac4b52f | 2017-08-21 14:50:58 -0500 | [diff] [blame] | 1203 | { |
| 1204 | namespace Fault |
| 1205 | { |
| 1206 | namespace _PowerSequencerFault |
| 1207 | { |
| 1208 | |
| 1209 | struct RAW_STATUS |
| 1210 | { |
| 1211 | static constexpr auto str = "RAW_STATUS=%s"; |
| 1212 | static constexpr auto str_short = "RAW_STATUS"; |
| 1213 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 1214 | explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; |
| 1215 | type _entry; |
| 1216 | }; |
| 1217 | |
| 1218 | } // namespace _PowerSequencerFault |
| 1219 | |
| 1220 | struct PowerSequencerFault |
| 1221 | { |
| 1222 | static constexpr auto L = level::ERR; |
| 1223 | using RAW_STATUS = _PowerSequencerFault::RAW_STATUS; |
| 1224 | using metadata_types = std::tuple<RAW_STATUS>; |
| 1225 | |
| 1226 | }; |
| 1227 | |
| 1228 | } // namespace Fault |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 1229 | } // namespace Witherspoon |
| 1230 | } // namespace open_power |
| 1231 | } // namespace org |
Matt Spinler | ac4b52f | 2017-08-21 14:50:58 -0500 | [diff] [blame] | 1232 | |
| 1233 | |
| 1234 | namespace details |
| 1235 | { |
| 1236 | |
| 1237 | template <> |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 1238 | struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::Error::PowerSequencerFault> |
Matt Spinler | ac4b52f | 2017-08-21 14:50:58 -0500 | [diff] [blame] | 1239 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 1240 | using type = org::open_power::Witherspoon::Fault::PowerSequencerFault; |
Matt Spinler | ac4b52f | 2017-08-21 14:50:58 -0500 | [diff] [blame] | 1241 | }; |
| 1242 | |
| 1243 | } |
| 1244 | |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 1245 | namespace org |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 1246 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 1247 | namespace open_power |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 1248 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 1249 | namespace Witherspoon |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 1250 | { |
| 1251 | namespace Fault |
| 1252 | { |
| 1253 | namespace _GPUPowerFault |
| 1254 | { |
| 1255 | |
| 1256 | struct RAW_STATUS |
| 1257 | { |
| 1258 | static constexpr auto str = "RAW_STATUS=%s"; |
| 1259 | static constexpr auto str_short = "RAW_STATUS"; |
| 1260 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 1261 | explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; |
| 1262 | type _entry; |
| 1263 | }; |
| 1264 | struct GPU |
| 1265 | { |
| 1266 | static constexpr auto str = "GPU=%s"; |
| 1267 | static constexpr auto str_short = "GPU"; |
| 1268 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 1269 | explicit constexpr GPU(const char* a) : _entry(entry(str, a)) {}; |
| 1270 | type _entry; |
| 1271 | }; |
| 1272 | |
| 1273 | } // namespace _GPUPowerFault |
| 1274 | |
| 1275 | struct GPUPowerFault |
| 1276 | { |
| 1277 | static constexpr auto L = level::ERR; |
| 1278 | using RAW_STATUS = _GPUPowerFault::RAW_STATUS; |
| 1279 | using GPU = _GPUPowerFault::GPU; |
| 1280 | using metadata_types = std::tuple<RAW_STATUS, GPU>; |
| 1281 | |
| 1282 | }; |
| 1283 | |
| 1284 | } // namespace Fault |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 1285 | } // namespace Witherspoon |
| 1286 | } // namespace open_power |
| 1287 | } // namespace org |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 1288 | |
| 1289 | |
| 1290 | namespace details |
| 1291 | { |
| 1292 | |
| 1293 | template <> |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 1294 | struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::Error::GPUPowerFault> |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 1295 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 1296 | using type = org::open_power::Witherspoon::Fault::GPUPowerFault; |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 1297 | }; |
| 1298 | |
| 1299 | } |
| 1300 | |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 1301 | namespace org |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 1302 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 1303 | namespace open_power |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 1304 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 1305 | namespace Witherspoon |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 1306 | { |
| 1307 | namespace Fault |
| 1308 | { |
| 1309 | namespace _GPUOverTemp |
| 1310 | { |
| 1311 | |
| 1312 | struct RAW_STATUS |
| 1313 | { |
| 1314 | static constexpr auto str = "RAW_STATUS=%s"; |
| 1315 | static constexpr auto str_short = "RAW_STATUS"; |
| 1316 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 1317 | explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; |
| 1318 | type _entry; |
| 1319 | }; |
| 1320 | struct GPU |
| 1321 | { |
| 1322 | static constexpr auto str = "GPU=%s"; |
| 1323 | static constexpr auto str_short = "GPU"; |
| 1324 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 1325 | explicit constexpr GPU(const char* a) : _entry(entry(str, a)) {}; |
| 1326 | type _entry; |
| 1327 | }; |
| 1328 | |
| 1329 | } // namespace _GPUOverTemp |
| 1330 | |
| 1331 | struct GPUOverTemp |
| 1332 | { |
| 1333 | static constexpr auto L = level::ERR; |
| 1334 | using RAW_STATUS = _GPUOverTemp::RAW_STATUS; |
| 1335 | using GPU = _GPUOverTemp::GPU; |
| 1336 | using metadata_types = std::tuple<RAW_STATUS, GPU>; |
| 1337 | |
| 1338 | }; |
| 1339 | |
| 1340 | } // namespace Fault |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 1341 | } // namespace Witherspoon |
| 1342 | } // namespace open_power |
| 1343 | } // namespace org |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 1344 | |
| 1345 | |
| 1346 | namespace details |
| 1347 | { |
| 1348 | |
| 1349 | template <> |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 1350 | struct map_exception_type<sdbusplus::org::open_power::Witherspoon::Fault::Error::GPUOverTemp> |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 1351 | { |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 1352 | using type = org::open_power::Witherspoon::Fault::GPUOverTemp; |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 1353 | }; |
| 1354 | |
| 1355 | } |
| 1356 | |
Matt Spinler | 84cd0a5 | 2017-08-04 08:53:30 -0500 | [diff] [blame] | 1357 | |
| 1358 | } // namespace logging |
| 1359 | |
| 1360 | } // namespace phosphor |