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