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