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