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