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> |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 6 | #include <sdbusplus/exception.hpp> |
Brandon Wyman | d1bc4ce | 2019-12-13 14:20:34 -0600 | [diff] [blame] | 7 | |
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 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 12 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 13 | { |
| 14 | struct ErrorCode0; |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 15 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 16 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 17 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 18 | struct ErrorCode1; |
| 19 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 20 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 21 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 22 | struct ErrorCode10; |
| 23 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 24 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 25 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 26 | struct ErrorCode11; |
| 27 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 28 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 29 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 30 | struct ErrorCode12; |
| 31 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 32 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 33 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 34 | struct ErrorCode13; |
| 35 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 36 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 37 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 38 | struct ErrorCode14; |
| 39 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 40 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 41 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 42 | struct ErrorCode15; |
| 43 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 44 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 45 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 46 | struct ErrorCode16; |
| 47 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 48 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 49 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 50 | struct ErrorCode17; |
| 51 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 52 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 53 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 54 | struct ErrorCode18; |
| 55 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 56 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 57 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 58 | struct ErrorCode19; |
| 59 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 60 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 61 | { |
| 62 | struct ErrorCode2; |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 63 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 64 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
Brandon Wyman | e0eb45c | 2017-10-06 12:58:42 -0500 | [diff] [blame] | 65 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 66 | struct ErrorCode20; |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 67 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 68 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 69 | { |
| 70 | struct ErrorCode21; |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 71 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 72 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 73 | { |
| 74 | struct ErrorCode22; |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 75 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 76 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 77 | { |
| 78 | struct ErrorCode23; |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 79 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 80 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 81 | { |
| 82 | struct ErrorCode24; |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 83 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 84 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 85 | { |
| 86 | struct ErrorCode25; |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 87 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 88 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 89 | { |
| 90 | struct ErrorCode26; |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 91 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 92 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 93 | { |
| 94 | struct ErrorCode27; |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 95 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 96 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 97 | { |
| 98 | struct ErrorCode28; |
| 99 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 100 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 101 | { |
| 102 | struct ErrorCode29; |
| 103 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 104 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 105 | { |
| 106 | struct ErrorCode3; |
| 107 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 108 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 109 | { |
| 110 | struct ErrorCode30; |
| 111 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 112 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 113 | { |
| 114 | struct ErrorCode31; |
| 115 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 116 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 117 | { |
| 118 | struct ErrorCode32; |
| 119 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 120 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 121 | { |
| 122 | struct ErrorCode33; |
| 123 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 124 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 125 | { |
| 126 | struct ErrorCode34; |
| 127 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 128 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 129 | { |
| 130 | struct ErrorCode35; |
| 131 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 132 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 133 | { |
| 134 | struct ErrorCode36; |
| 135 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 136 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 137 | { |
| 138 | struct ErrorCode4; |
| 139 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 140 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 141 | { |
| 142 | struct ErrorCode5; |
| 143 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 144 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 145 | { |
| 146 | struct ErrorCode6; |
| 147 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 148 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 149 | { |
| 150 | struct ErrorCode7; |
| 151 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 152 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 153 | { |
| 154 | struct ErrorCode8; |
| 155 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 156 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 157 | { |
| 158 | struct ErrorCode9; |
| 159 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 160 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 161 | { |
| 162 | struct GPUOverTemp; |
| 163 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 164 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 165 | { |
| 166 | struct GPUPowerFault; |
| 167 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 168 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 169 | { |
| 170 | struct MemoryPowerFault; |
| 171 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 172 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 173 | { |
| 174 | struct PowerOnFailure; |
| 175 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 176 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 177 | { |
| 178 | struct PowerSequencerFault; |
| 179 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 180 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 181 | { |
| 182 | struct PowerSequencerPGOODFault; |
| 183 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 184 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 185 | { |
| 186 | struct PowerSequencerVoltageFault; |
| 187 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 188 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 189 | { |
| 190 | struct PowerSupplyFanFault; |
| 191 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 192 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 193 | { |
| 194 | struct PowerSupplyInputFault; |
| 195 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 196 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 197 | { |
| 198 | struct PowerSupplyOutputOvercurrent; |
| 199 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 200 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 201 | { |
| 202 | struct PowerSupplyOutputOvervoltage; |
| 203 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 204 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 205 | { |
| 206 | struct PowerSupplyShouldBeOn; |
| 207 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 208 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 209 | { |
| 210 | struct PowerSupplyTemperatureFault; |
| 211 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 212 | namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 213 | { |
| 214 | struct Shutdown; |
| 215 | } // namespace sdbusplus::error::org::open_power::witherspoon::fault |
| 216 | namespace sdbusplus::error::xyz::openbmc_project::common::callout |
| 217 | { |
| 218 | struct Device; |
| 219 | } // namespace sdbusplus::error::xyz::openbmc_project::common::callout |
| 220 | namespace sdbusplus::error::xyz::openbmc_project::common::callout |
| 221 | { |
| 222 | struct GPIO; |
| 223 | } // namespace sdbusplus::error::xyz::openbmc_project::common::callout |
| 224 | namespace sdbusplus::error::xyz::openbmc_project::common::callout |
| 225 | { |
| 226 | struct IIC; |
| 227 | } // namespace sdbusplus::error::xyz::openbmc_project::common::callout |
| 228 | namespace sdbusplus::error::xyz::openbmc_project::common::callout |
| 229 | { |
| 230 | struct IPMISensor; |
| 231 | } // namespace sdbusplus::error::xyz::openbmc_project::common::callout |
| 232 | namespace sdbusplus::error::xyz::openbmc_project::common::callout |
| 233 | { |
| 234 | struct Inventory; |
| 235 | } // namespace sdbusplus::error::xyz::openbmc_project::common::callout |
Matt Spinler | 84cd0a5 | 2017-08-04 08:53:30 -0500 | [diff] [blame] | 236 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 237 | namespace phosphor::logging |
Matt Spinler | 84cd0a5 | 2017-08-04 08:53:30 -0500 | [diff] [blame] | 238 | { |
| 239 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 240 | namespace org::open_power::witherspoon::fault |
Matt Spinler | 84cd0a5 | 2017-08-04 08:53:30 -0500 | [diff] [blame] | 241 | { |
| 242 | |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 243 | struct Shutdown |
| 244 | { |
| 245 | static constexpr auto L = level::ERR; |
| 246 | using metadata_types = std::tuple<>; |
| 247 | }; |
| 248 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 249 | } // namespace org::open_power::witherspoon::fault |
| 250 | |
| 251 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 252 | namespace org::open_power::Witherspoon::Fault |
| 253 | { |
| 254 | using Shutdown = |
| 255 | phosphor::logging::org::open_power::witherspoon::fault::Shutdown; |
| 256 | } |
| 257 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 258 | |
| 259 | namespace details |
| 260 | { |
| 261 | |
| 262 | template <> |
| 263 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 264 | sdbusplus::error::org::open_power::witherspoon::fault::Shutdown> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 265 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 266 | using type = |
| 267 | phosphor::logging::org::open_power::witherspoon::fault::Shutdown; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 268 | }; |
| 269 | |
| 270 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 271 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 272 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 273 | |
| 274 | struct PowerOnFailure |
| 275 | { |
| 276 | static constexpr auto L = level::ERR; |
| 277 | using metadata_types = std::tuple<>; |
| 278 | }; |
| 279 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 280 | } // namespace org::open_power::witherspoon::fault |
| 281 | |
| 282 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 283 | namespace org::open_power::Witherspoon::Fault |
| 284 | { |
| 285 | using PowerOnFailure = |
| 286 | phosphor::logging::org::open_power::witherspoon::fault::PowerOnFailure; |
| 287 | } |
| 288 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 289 | |
| 290 | namespace details |
| 291 | { |
| 292 | |
| 293 | template <> |
| 294 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 295 | sdbusplus::error::org::open_power::witherspoon::fault::PowerOnFailure> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 296 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 297 | using type = |
| 298 | phosphor::logging::org::open_power::witherspoon::fault::PowerOnFailure; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 299 | }; |
| 300 | |
| 301 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 302 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 303 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 304 | |
| 305 | struct ErrorCode0 |
| 306 | { |
| 307 | static constexpr auto L = level::ERR; |
| 308 | using metadata_types = std::tuple<>; |
| 309 | }; |
| 310 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 311 | } // namespace org::open_power::witherspoon::fault |
| 312 | |
| 313 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 314 | namespace org::open_power::Witherspoon::Fault |
| 315 | { |
| 316 | using ErrorCode0 = |
| 317 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode0; |
| 318 | } |
| 319 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 320 | |
| 321 | namespace details |
| 322 | { |
| 323 | |
| 324 | template <> |
| 325 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 326 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode0> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 327 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 328 | using type = |
| 329 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode0; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 330 | }; |
| 331 | |
| 332 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 333 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 334 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 335 | |
| 336 | struct ErrorCode1 |
| 337 | { |
| 338 | static constexpr auto L = level::ERR; |
| 339 | using metadata_types = std::tuple<>; |
| 340 | }; |
| 341 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 342 | } // namespace org::open_power::witherspoon::fault |
| 343 | |
| 344 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 345 | namespace org::open_power::Witherspoon::Fault |
| 346 | { |
| 347 | using ErrorCode1 = |
| 348 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode1; |
| 349 | } |
| 350 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 351 | |
| 352 | namespace details |
| 353 | { |
| 354 | |
| 355 | template <> |
| 356 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 357 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode1> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 358 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 359 | using type = |
| 360 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode1; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 361 | }; |
| 362 | |
| 363 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 364 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 365 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 366 | |
| 367 | struct ErrorCode2 |
| 368 | { |
| 369 | static constexpr auto L = level::ERR; |
| 370 | using metadata_types = std::tuple<>; |
| 371 | }; |
| 372 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 373 | } // namespace org::open_power::witherspoon::fault |
| 374 | |
| 375 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 376 | namespace org::open_power::Witherspoon::Fault |
| 377 | { |
| 378 | using ErrorCode2 = |
| 379 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode2; |
| 380 | } |
| 381 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 382 | |
| 383 | namespace details |
| 384 | { |
| 385 | |
| 386 | template <> |
| 387 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 388 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode2> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 389 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 390 | using type = |
| 391 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode2; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 392 | }; |
| 393 | |
| 394 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 395 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 396 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 397 | |
| 398 | struct ErrorCode3 |
| 399 | { |
| 400 | static constexpr auto L = level::ERR; |
| 401 | using metadata_types = std::tuple<>; |
| 402 | }; |
| 403 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 404 | } // namespace org::open_power::witherspoon::fault |
| 405 | |
| 406 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 407 | namespace org::open_power::Witherspoon::Fault |
| 408 | { |
| 409 | using ErrorCode3 = |
| 410 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode3; |
| 411 | } |
| 412 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 413 | |
| 414 | namespace details |
| 415 | { |
| 416 | |
| 417 | template <> |
| 418 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 419 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode3> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 420 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 421 | using type = |
| 422 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode3; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 423 | }; |
| 424 | |
| 425 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 426 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 427 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 428 | |
| 429 | struct ErrorCode4 |
| 430 | { |
| 431 | static constexpr auto L = level::ERR; |
| 432 | using metadata_types = std::tuple<>; |
| 433 | }; |
| 434 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 435 | } // namespace org::open_power::witherspoon::fault |
| 436 | |
| 437 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 438 | namespace org::open_power::Witherspoon::Fault |
| 439 | { |
| 440 | using ErrorCode4 = |
| 441 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode4; |
| 442 | } |
| 443 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 444 | |
| 445 | namespace details |
| 446 | { |
| 447 | |
| 448 | template <> |
| 449 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 450 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode4> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 451 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 452 | using type = |
| 453 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode4; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 454 | }; |
| 455 | |
| 456 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 457 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 458 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 459 | |
| 460 | struct ErrorCode5 |
| 461 | { |
| 462 | static constexpr auto L = level::ERR; |
| 463 | using metadata_types = std::tuple<>; |
| 464 | }; |
| 465 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 466 | } // namespace org::open_power::witherspoon::fault |
| 467 | |
| 468 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 469 | namespace org::open_power::Witherspoon::Fault |
| 470 | { |
| 471 | using ErrorCode5 = |
| 472 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode5; |
| 473 | } |
| 474 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 475 | |
| 476 | namespace details |
| 477 | { |
| 478 | |
| 479 | template <> |
| 480 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 481 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode5> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 482 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 483 | using type = |
| 484 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode5; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 485 | }; |
| 486 | |
| 487 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 488 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 489 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 490 | |
| 491 | struct ErrorCode6 |
| 492 | { |
| 493 | static constexpr auto L = level::ERR; |
| 494 | using metadata_types = std::tuple<>; |
| 495 | }; |
| 496 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 497 | } // namespace org::open_power::witherspoon::fault |
| 498 | |
| 499 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 500 | namespace org::open_power::Witherspoon::Fault |
| 501 | { |
| 502 | using ErrorCode6 = |
| 503 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode6; |
| 504 | } |
| 505 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 506 | |
| 507 | namespace details |
| 508 | { |
| 509 | |
| 510 | template <> |
| 511 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 512 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode6> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 513 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 514 | using type = |
| 515 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode6; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 516 | }; |
| 517 | |
| 518 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 519 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 520 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 521 | |
| 522 | struct ErrorCode7 |
| 523 | { |
| 524 | static constexpr auto L = level::ERR; |
| 525 | using metadata_types = std::tuple<>; |
| 526 | }; |
| 527 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 528 | } // namespace org::open_power::witherspoon::fault |
| 529 | |
| 530 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 531 | namespace org::open_power::Witherspoon::Fault |
| 532 | { |
| 533 | using ErrorCode7 = |
| 534 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode7; |
| 535 | } |
| 536 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 537 | |
| 538 | namespace details |
| 539 | { |
| 540 | |
| 541 | template <> |
| 542 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 543 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode7> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 544 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 545 | using type = |
| 546 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode7; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 547 | }; |
| 548 | |
| 549 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 550 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 551 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 552 | |
| 553 | struct ErrorCode8 |
| 554 | { |
| 555 | static constexpr auto L = level::ERR; |
| 556 | using metadata_types = std::tuple<>; |
| 557 | }; |
| 558 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 559 | } // namespace org::open_power::witherspoon::fault |
| 560 | |
| 561 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 562 | namespace org::open_power::Witherspoon::Fault |
| 563 | { |
| 564 | using ErrorCode8 = |
| 565 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode8; |
| 566 | } |
| 567 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 568 | |
| 569 | namespace details |
| 570 | { |
| 571 | |
| 572 | template <> |
| 573 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 574 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode8> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 575 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 576 | using type = |
| 577 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode8; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 578 | }; |
| 579 | |
| 580 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 581 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 582 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 583 | |
| 584 | struct ErrorCode9 |
| 585 | { |
| 586 | static constexpr auto L = level::ERR; |
| 587 | using metadata_types = std::tuple<>; |
| 588 | }; |
| 589 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 590 | } // namespace org::open_power::witherspoon::fault |
| 591 | |
| 592 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 593 | namespace org::open_power::Witherspoon::Fault |
| 594 | { |
| 595 | using ErrorCode9 = |
| 596 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode9; |
| 597 | } |
| 598 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 599 | |
| 600 | namespace details |
| 601 | { |
| 602 | |
| 603 | template <> |
| 604 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 605 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode9> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 606 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 607 | using type = |
| 608 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode9; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 609 | }; |
| 610 | |
| 611 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 612 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 613 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 614 | |
| 615 | struct ErrorCode10 |
| 616 | { |
| 617 | static constexpr auto L = level::ERR; |
| 618 | using metadata_types = std::tuple<>; |
| 619 | }; |
| 620 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 621 | } // namespace org::open_power::witherspoon::fault |
| 622 | |
| 623 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 624 | namespace org::open_power::Witherspoon::Fault |
| 625 | { |
| 626 | using ErrorCode10 = |
| 627 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode10; |
| 628 | } |
| 629 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 630 | |
| 631 | namespace details |
| 632 | { |
| 633 | |
| 634 | template <> |
| 635 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 636 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode10> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 637 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 638 | using type = |
| 639 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode10; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 640 | }; |
| 641 | |
| 642 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 643 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 644 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 645 | |
| 646 | struct ErrorCode11 |
| 647 | { |
| 648 | static constexpr auto L = level::ERR; |
| 649 | using metadata_types = std::tuple<>; |
| 650 | }; |
| 651 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 652 | } // namespace org::open_power::witherspoon::fault |
| 653 | |
| 654 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 655 | namespace org::open_power::Witherspoon::Fault |
| 656 | { |
| 657 | using ErrorCode11 = |
| 658 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode11; |
| 659 | } |
| 660 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 661 | |
| 662 | namespace details |
| 663 | { |
| 664 | |
| 665 | template <> |
| 666 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 667 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode11> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 668 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 669 | using type = |
| 670 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode11; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 671 | }; |
| 672 | |
| 673 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 674 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 675 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 676 | |
| 677 | struct ErrorCode12 |
| 678 | { |
| 679 | static constexpr auto L = level::ERR; |
| 680 | using metadata_types = std::tuple<>; |
| 681 | }; |
| 682 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 683 | } // namespace org::open_power::witherspoon::fault |
| 684 | |
| 685 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 686 | namespace org::open_power::Witherspoon::Fault |
| 687 | { |
| 688 | using ErrorCode12 = |
| 689 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode12; |
| 690 | } |
| 691 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 692 | |
| 693 | namespace details |
| 694 | { |
| 695 | |
| 696 | template <> |
| 697 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 698 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode12> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 699 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 700 | using type = |
| 701 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode12; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 702 | }; |
| 703 | |
| 704 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 705 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 706 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 707 | |
| 708 | struct ErrorCode13 |
| 709 | { |
| 710 | static constexpr auto L = level::ERR; |
| 711 | using metadata_types = std::tuple<>; |
| 712 | }; |
| 713 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 714 | } // namespace org::open_power::witherspoon::fault |
| 715 | |
| 716 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 717 | namespace org::open_power::Witherspoon::Fault |
| 718 | { |
| 719 | using ErrorCode13 = |
| 720 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode13; |
| 721 | } |
| 722 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 723 | |
| 724 | namespace details |
| 725 | { |
| 726 | |
| 727 | template <> |
| 728 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 729 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode13> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 730 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 731 | using type = |
| 732 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode13; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 733 | }; |
| 734 | |
| 735 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 736 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 737 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 738 | |
| 739 | struct ErrorCode14 |
| 740 | { |
| 741 | static constexpr auto L = level::ERR; |
| 742 | using metadata_types = std::tuple<>; |
| 743 | }; |
| 744 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 745 | } // namespace org::open_power::witherspoon::fault |
| 746 | |
| 747 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 748 | namespace org::open_power::Witherspoon::Fault |
| 749 | { |
| 750 | using ErrorCode14 = |
| 751 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode14; |
| 752 | } |
| 753 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 754 | |
| 755 | namespace details |
| 756 | { |
| 757 | |
| 758 | template <> |
| 759 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 760 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode14> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 761 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 762 | using type = |
| 763 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode14; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 764 | }; |
| 765 | |
| 766 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 767 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 768 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 769 | |
| 770 | struct ErrorCode15 |
| 771 | { |
| 772 | static constexpr auto L = level::ERR; |
| 773 | using metadata_types = std::tuple<>; |
| 774 | }; |
| 775 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 776 | } // namespace org::open_power::witherspoon::fault |
| 777 | |
| 778 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 779 | namespace org::open_power::Witherspoon::Fault |
| 780 | { |
| 781 | using ErrorCode15 = |
| 782 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode15; |
| 783 | } |
| 784 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 785 | |
| 786 | namespace details |
| 787 | { |
| 788 | |
| 789 | template <> |
| 790 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 791 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode15> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 792 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 793 | using type = |
| 794 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode15; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 795 | }; |
| 796 | |
| 797 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 798 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 799 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 800 | |
| 801 | struct ErrorCode16 |
| 802 | { |
| 803 | static constexpr auto L = level::ERR; |
| 804 | using metadata_types = std::tuple<>; |
| 805 | }; |
| 806 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 807 | } // namespace org::open_power::witherspoon::fault |
| 808 | |
| 809 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 810 | namespace org::open_power::Witherspoon::Fault |
| 811 | { |
| 812 | using ErrorCode16 = |
| 813 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode16; |
| 814 | } |
| 815 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 816 | |
| 817 | namespace details |
| 818 | { |
| 819 | |
| 820 | template <> |
| 821 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 822 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode16> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 823 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 824 | using type = |
| 825 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode16; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 826 | }; |
| 827 | |
| 828 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 829 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 830 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 831 | |
| 832 | struct ErrorCode17 |
| 833 | { |
| 834 | static constexpr auto L = level::ERR; |
| 835 | using metadata_types = std::tuple<>; |
| 836 | }; |
| 837 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 838 | } // namespace org::open_power::witherspoon::fault |
| 839 | |
| 840 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 841 | namespace org::open_power::Witherspoon::Fault |
| 842 | { |
| 843 | using ErrorCode17 = |
| 844 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode17; |
| 845 | } |
| 846 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 847 | |
| 848 | namespace details |
| 849 | { |
| 850 | |
| 851 | template <> |
| 852 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 853 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode17> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 854 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 855 | using type = |
| 856 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode17; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 857 | }; |
| 858 | |
| 859 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 860 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 861 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 862 | |
| 863 | struct ErrorCode18 |
| 864 | { |
| 865 | static constexpr auto L = level::ERR; |
| 866 | using metadata_types = std::tuple<>; |
| 867 | }; |
| 868 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 869 | } // namespace org::open_power::witherspoon::fault |
| 870 | |
| 871 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 872 | namespace org::open_power::Witherspoon::Fault |
| 873 | { |
| 874 | using ErrorCode18 = |
| 875 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode18; |
| 876 | } |
| 877 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 878 | |
| 879 | namespace details |
| 880 | { |
| 881 | |
| 882 | template <> |
| 883 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 884 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode18> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 885 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 886 | using type = |
| 887 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode18; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 888 | }; |
| 889 | |
| 890 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 891 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 892 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 893 | |
| 894 | struct ErrorCode19 |
| 895 | { |
| 896 | static constexpr auto L = level::ERR; |
| 897 | using metadata_types = std::tuple<>; |
| 898 | }; |
| 899 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 900 | } // namespace org::open_power::witherspoon::fault |
| 901 | |
| 902 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 903 | namespace org::open_power::Witherspoon::Fault |
| 904 | { |
| 905 | using ErrorCode19 = |
| 906 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode19; |
| 907 | } |
| 908 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 909 | |
| 910 | namespace details |
| 911 | { |
| 912 | |
| 913 | template <> |
| 914 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 915 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode19> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 916 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 917 | using type = |
| 918 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode19; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 919 | }; |
| 920 | |
| 921 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 922 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 923 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 924 | |
| 925 | struct ErrorCode20 |
| 926 | { |
| 927 | static constexpr auto L = level::ERR; |
| 928 | using metadata_types = std::tuple<>; |
| 929 | }; |
| 930 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 931 | } // namespace org::open_power::witherspoon::fault |
| 932 | |
| 933 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 934 | namespace org::open_power::Witherspoon::Fault |
| 935 | { |
| 936 | using ErrorCode20 = |
| 937 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode20; |
| 938 | } |
| 939 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 940 | |
| 941 | namespace details |
| 942 | { |
| 943 | |
| 944 | template <> |
| 945 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 946 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode20> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 947 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 948 | using type = |
| 949 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode20; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 950 | }; |
| 951 | |
| 952 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 953 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 954 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 955 | |
| 956 | struct ErrorCode21 |
| 957 | { |
| 958 | static constexpr auto L = level::ERR; |
| 959 | using metadata_types = std::tuple<>; |
| 960 | }; |
| 961 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 962 | } // namespace org::open_power::witherspoon::fault |
| 963 | |
| 964 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 965 | namespace org::open_power::Witherspoon::Fault |
| 966 | { |
| 967 | using ErrorCode21 = |
| 968 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode21; |
| 969 | } |
| 970 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 971 | |
| 972 | namespace details |
| 973 | { |
| 974 | |
| 975 | template <> |
| 976 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 977 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode21> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 978 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 979 | using type = |
| 980 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode21; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 981 | }; |
| 982 | |
| 983 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 984 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 985 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 986 | |
| 987 | struct ErrorCode22 |
| 988 | { |
| 989 | static constexpr auto L = level::ERR; |
| 990 | using metadata_types = std::tuple<>; |
| 991 | }; |
| 992 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 993 | } // namespace org::open_power::witherspoon::fault |
| 994 | |
| 995 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 996 | namespace org::open_power::Witherspoon::Fault |
| 997 | { |
| 998 | using ErrorCode22 = |
| 999 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode22; |
| 1000 | } |
| 1001 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1002 | |
| 1003 | namespace details |
| 1004 | { |
| 1005 | |
| 1006 | template <> |
| 1007 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1008 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode22> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1009 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1010 | using type = |
| 1011 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode22; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1012 | }; |
| 1013 | |
| 1014 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1015 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1016 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1017 | |
| 1018 | struct ErrorCode23 |
| 1019 | { |
| 1020 | static constexpr auto L = level::ERR; |
| 1021 | using metadata_types = std::tuple<>; |
| 1022 | }; |
| 1023 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1024 | } // namespace org::open_power::witherspoon::fault |
| 1025 | |
| 1026 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 1027 | namespace org::open_power::Witherspoon::Fault |
| 1028 | { |
| 1029 | using ErrorCode23 = |
| 1030 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode23; |
| 1031 | } |
| 1032 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1033 | |
| 1034 | namespace details |
| 1035 | { |
| 1036 | |
| 1037 | template <> |
| 1038 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1039 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode23> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1040 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1041 | using type = |
| 1042 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode23; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1043 | }; |
| 1044 | |
| 1045 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1046 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1047 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1048 | |
| 1049 | struct ErrorCode24 |
| 1050 | { |
| 1051 | static constexpr auto L = level::ERR; |
| 1052 | using metadata_types = std::tuple<>; |
| 1053 | }; |
| 1054 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1055 | } // namespace org::open_power::witherspoon::fault |
| 1056 | |
| 1057 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 1058 | namespace org::open_power::Witherspoon::Fault |
| 1059 | { |
| 1060 | using ErrorCode24 = |
| 1061 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode24; |
| 1062 | } |
| 1063 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1064 | |
| 1065 | namespace details |
| 1066 | { |
| 1067 | |
| 1068 | template <> |
| 1069 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1070 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode24> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1071 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1072 | using type = |
| 1073 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode24; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1074 | }; |
| 1075 | |
| 1076 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1077 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1078 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1079 | |
| 1080 | struct ErrorCode25 |
| 1081 | { |
| 1082 | static constexpr auto L = level::ERR; |
| 1083 | using metadata_types = std::tuple<>; |
| 1084 | }; |
| 1085 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1086 | } // namespace org::open_power::witherspoon::fault |
| 1087 | |
| 1088 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 1089 | namespace org::open_power::Witherspoon::Fault |
| 1090 | { |
| 1091 | using ErrorCode25 = |
| 1092 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode25; |
| 1093 | } |
| 1094 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1095 | |
| 1096 | namespace details |
| 1097 | { |
| 1098 | |
| 1099 | template <> |
| 1100 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1101 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode25> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1102 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1103 | using type = |
| 1104 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode25; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1105 | }; |
| 1106 | |
| 1107 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1108 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1109 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1110 | |
| 1111 | struct ErrorCode26 |
| 1112 | { |
| 1113 | static constexpr auto L = level::ERR; |
| 1114 | using metadata_types = std::tuple<>; |
| 1115 | }; |
| 1116 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1117 | } // namespace org::open_power::witherspoon::fault |
| 1118 | |
| 1119 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 1120 | namespace org::open_power::Witherspoon::Fault |
| 1121 | { |
| 1122 | using ErrorCode26 = |
| 1123 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode26; |
| 1124 | } |
| 1125 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1126 | |
| 1127 | namespace details |
| 1128 | { |
| 1129 | |
| 1130 | template <> |
| 1131 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1132 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode26> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1133 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1134 | using type = |
| 1135 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode26; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1136 | }; |
| 1137 | |
| 1138 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1139 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1140 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1141 | |
| 1142 | struct ErrorCode27 |
| 1143 | { |
| 1144 | static constexpr auto L = level::ERR; |
| 1145 | using metadata_types = std::tuple<>; |
| 1146 | }; |
| 1147 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1148 | } // namespace org::open_power::witherspoon::fault |
| 1149 | |
| 1150 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 1151 | namespace org::open_power::Witherspoon::Fault |
| 1152 | { |
| 1153 | using ErrorCode27 = |
| 1154 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode27; |
| 1155 | } |
| 1156 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1157 | |
| 1158 | namespace details |
| 1159 | { |
| 1160 | |
| 1161 | template <> |
| 1162 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1163 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode27> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1164 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1165 | using type = |
| 1166 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode27; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1167 | }; |
| 1168 | |
| 1169 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1170 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1171 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1172 | |
| 1173 | struct ErrorCode28 |
| 1174 | { |
| 1175 | static constexpr auto L = level::ERR; |
| 1176 | using metadata_types = std::tuple<>; |
| 1177 | }; |
| 1178 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1179 | } // namespace org::open_power::witherspoon::fault |
| 1180 | |
| 1181 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 1182 | namespace org::open_power::Witherspoon::Fault |
| 1183 | { |
| 1184 | using ErrorCode28 = |
| 1185 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode28; |
| 1186 | } |
| 1187 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1188 | |
| 1189 | namespace details |
| 1190 | { |
| 1191 | |
| 1192 | template <> |
| 1193 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1194 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode28> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1195 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1196 | using type = |
| 1197 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode28; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1198 | }; |
| 1199 | |
| 1200 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1201 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1202 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1203 | |
| 1204 | struct ErrorCode29 |
| 1205 | { |
| 1206 | static constexpr auto L = level::ERR; |
| 1207 | using metadata_types = std::tuple<>; |
| 1208 | }; |
| 1209 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1210 | } // namespace org::open_power::witherspoon::fault |
| 1211 | |
| 1212 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 1213 | namespace org::open_power::Witherspoon::Fault |
| 1214 | { |
| 1215 | using ErrorCode29 = |
| 1216 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode29; |
| 1217 | } |
| 1218 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1219 | |
| 1220 | namespace details |
| 1221 | { |
| 1222 | |
| 1223 | template <> |
| 1224 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1225 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode29> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1226 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1227 | using type = |
| 1228 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode29; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1229 | }; |
| 1230 | |
| 1231 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1232 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1233 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1234 | |
| 1235 | struct ErrorCode30 |
| 1236 | { |
| 1237 | static constexpr auto L = level::ERR; |
| 1238 | using metadata_types = std::tuple<>; |
| 1239 | }; |
| 1240 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1241 | } // namespace org::open_power::witherspoon::fault |
| 1242 | |
| 1243 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 1244 | namespace org::open_power::Witherspoon::Fault |
| 1245 | { |
| 1246 | using ErrorCode30 = |
| 1247 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode30; |
| 1248 | } |
| 1249 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1250 | |
| 1251 | namespace details |
| 1252 | { |
| 1253 | |
| 1254 | template <> |
| 1255 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1256 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode30> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1257 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1258 | using type = |
| 1259 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode30; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1260 | }; |
| 1261 | |
| 1262 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1263 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1264 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1265 | |
| 1266 | struct ErrorCode31 |
| 1267 | { |
| 1268 | static constexpr auto L = level::ERR; |
| 1269 | using metadata_types = std::tuple<>; |
| 1270 | }; |
| 1271 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1272 | } // namespace org::open_power::witherspoon::fault |
| 1273 | |
| 1274 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 1275 | namespace org::open_power::Witherspoon::Fault |
| 1276 | { |
| 1277 | using ErrorCode31 = |
| 1278 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode31; |
| 1279 | } |
| 1280 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1281 | |
| 1282 | namespace details |
| 1283 | { |
| 1284 | |
| 1285 | template <> |
| 1286 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1287 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode31> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1288 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1289 | using type = |
| 1290 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode31; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1291 | }; |
| 1292 | |
| 1293 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1294 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1295 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1296 | |
| 1297 | struct ErrorCode32 |
| 1298 | { |
| 1299 | static constexpr auto L = level::ERR; |
| 1300 | using metadata_types = std::tuple<>; |
| 1301 | }; |
| 1302 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1303 | } // namespace org::open_power::witherspoon::fault |
| 1304 | |
| 1305 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 1306 | namespace org::open_power::Witherspoon::Fault |
| 1307 | { |
| 1308 | using ErrorCode32 = |
| 1309 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode32; |
| 1310 | } |
| 1311 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1312 | |
| 1313 | namespace details |
| 1314 | { |
| 1315 | |
| 1316 | template <> |
| 1317 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1318 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode32> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1319 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1320 | using type = |
| 1321 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode32; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1322 | }; |
| 1323 | |
| 1324 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1325 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1326 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1327 | |
| 1328 | struct ErrorCode33 |
| 1329 | { |
| 1330 | static constexpr auto L = level::ERR; |
| 1331 | using metadata_types = std::tuple<>; |
| 1332 | }; |
| 1333 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1334 | } // namespace org::open_power::witherspoon::fault |
| 1335 | |
| 1336 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 1337 | namespace org::open_power::Witherspoon::Fault |
| 1338 | { |
| 1339 | using ErrorCode33 = |
| 1340 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode33; |
| 1341 | } |
| 1342 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1343 | |
| 1344 | namespace details |
| 1345 | { |
| 1346 | |
| 1347 | template <> |
| 1348 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1349 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode33> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1350 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1351 | using type = |
| 1352 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode33; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1353 | }; |
| 1354 | |
| 1355 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1356 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1357 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1358 | |
| 1359 | struct ErrorCode34 |
| 1360 | { |
| 1361 | static constexpr auto L = level::ERR; |
| 1362 | using metadata_types = std::tuple<>; |
| 1363 | }; |
| 1364 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1365 | } // namespace org::open_power::witherspoon::fault |
| 1366 | |
| 1367 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 1368 | namespace org::open_power::Witherspoon::Fault |
| 1369 | { |
| 1370 | using ErrorCode34 = |
| 1371 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode34; |
| 1372 | } |
| 1373 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1374 | |
| 1375 | namespace details |
| 1376 | { |
| 1377 | |
| 1378 | template <> |
| 1379 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1380 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode34> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1381 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1382 | using type = |
| 1383 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode34; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1384 | }; |
| 1385 | |
| 1386 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1387 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1388 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1389 | |
| 1390 | struct ErrorCode35 |
| 1391 | { |
| 1392 | static constexpr auto L = level::ERR; |
| 1393 | using metadata_types = std::tuple<>; |
| 1394 | }; |
| 1395 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1396 | } // namespace org::open_power::witherspoon::fault |
| 1397 | |
| 1398 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 1399 | namespace org::open_power::Witherspoon::Fault |
| 1400 | { |
| 1401 | using ErrorCode35 = |
| 1402 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode35; |
| 1403 | } |
| 1404 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1405 | |
| 1406 | namespace details |
| 1407 | { |
| 1408 | |
| 1409 | template <> |
| 1410 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1411 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode35> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1412 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1413 | using type = |
| 1414 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode35; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1415 | }; |
| 1416 | |
| 1417 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1418 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1419 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1420 | |
| 1421 | struct ErrorCode36 |
| 1422 | { |
| 1423 | static constexpr auto L = level::ERR; |
| 1424 | using metadata_types = std::tuple<>; |
| 1425 | }; |
| 1426 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1427 | } // namespace org::open_power::witherspoon::fault |
| 1428 | |
| 1429 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 1430 | namespace org::open_power::Witherspoon::Fault |
| 1431 | { |
| 1432 | using ErrorCode36 = |
| 1433 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode36; |
| 1434 | } |
| 1435 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1436 | |
| 1437 | namespace details |
| 1438 | { |
| 1439 | |
| 1440 | template <> |
| 1441 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1442 | sdbusplus::error::org::open_power::witherspoon::fault::ErrorCode36> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1443 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1444 | using type = |
| 1445 | phosphor::logging::org::open_power::witherspoon::fault::ErrorCode36; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1446 | }; |
| 1447 | |
| 1448 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1449 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1450 | { |
| 1451 | namespace _PowerSequencerVoltageFault |
| 1452 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1453 | struct RAIL |
| 1454 | { |
| 1455 | /* |
| 1456 | * We can't use -fsanitize=undefined if we declare a |
| 1457 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 1458 | * mako template lookups. |
| 1459 | */ |
| 1460 | static constexpr auto str_short = "RAIL"; |
| 1461 | using type = std::tuple<std::decay_t<decltype("RAIL=%d")>, uint16_t>; |
Patrick Williams | f540219 | 2024-08-16 15:20:53 -0400 | [diff] [blame] | 1462 | explicit constexpr RAIL(uint16_t a) : _entry(entry("RAIL=%d", a)) {}; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1463 | type _entry; |
| 1464 | }; |
| 1465 | struct RAIL_NAME |
| 1466 | { |
| 1467 | /* |
| 1468 | * We can't use -fsanitize=undefined if we declare a |
| 1469 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 1470 | * mako template lookups. |
| 1471 | */ |
| 1472 | static constexpr auto str_short = "RAIL_NAME"; |
| 1473 | using type = |
| 1474 | std::tuple<std::decay_t<decltype("RAIL_NAME=%s")>, const char*>; |
| 1475 | explicit constexpr RAIL_NAME(const char* a) : |
Patrick Williams | f540219 | 2024-08-16 15:20:53 -0400 | [diff] [blame] | 1476 | _entry(entry("RAIL_NAME=%s", a)) {}; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1477 | type _entry; |
| 1478 | }; |
| 1479 | struct RAW_STATUS |
| 1480 | { |
| 1481 | /* |
| 1482 | * We can't use -fsanitize=undefined if we declare a |
| 1483 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 1484 | * mako template lookups. |
| 1485 | */ |
| 1486 | static constexpr auto str_short = "RAW_STATUS"; |
| 1487 | using type = |
| 1488 | std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>; |
| 1489 | explicit constexpr RAW_STATUS(const char* a) : |
Patrick Williams | f540219 | 2024-08-16 15:20:53 -0400 | [diff] [blame] | 1490 | _entry(entry("RAW_STATUS=%s", a)) {}; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1491 | type _entry; |
| 1492 | }; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1493 | } // namespace _PowerSequencerVoltageFault |
| 1494 | |
| 1495 | struct PowerSequencerVoltageFault |
| 1496 | { |
| 1497 | static constexpr auto L = level::ERR; |
| 1498 | using RAIL = _PowerSequencerVoltageFault::RAIL; |
| 1499 | using RAIL_NAME = _PowerSequencerVoltageFault::RAIL_NAME; |
| 1500 | using RAW_STATUS = _PowerSequencerVoltageFault::RAW_STATUS; |
| 1501 | using metadata_types = std::tuple<RAIL, RAIL_NAME, RAW_STATUS>; |
| 1502 | }; |
| 1503 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1504 | } // namespace org::open_power::witherspoon::fault |
| 1505 | |
| 1506 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 1507 | namespace org::open_power::Witherspoon::Fault |
| 1508 | { |
| 1509 | using PowerSequencerVoltageFault = phosphor::logging::org::open_power:: |
| 1510 | witherspoon::fault::PowerSequencerVoltageFault; |
| 1511 | } |
| 1512 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1513 | |
| 1514 | namespace details |
| 1515 | { |
| 1516 | |
| 1517 | template <> |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1518 | struct map_exception_type<sdbusplus::error::org::open_power::witherspoon:: |
| 1519 | fault::PowerSequencerVoltageFault> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1520 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1521 | using type = phosphor::logging::org::open_power::witherspoon::fault:: |
| 1522 | PowerSequencerVoltageFault; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1523 | }; |
| 1524 | |
| 1525 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1526 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1527 | { |
| 1528 | namespace _PowerSequencerPGOODFault |
| 1529 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1530 | struct INPUT_NUM |
| 1531 | { |
| 1532 | /* |
| 1533 | * We can't use -fsanitize=undefined if we declare a |
| 1534 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 1535 | * mako template lookups. |
| 1536 | */ |
| 1537 | static constexpr auto str_short = "INPUT_NUM"; |
| 1538 | using type = std::tuple<std::decay_t<decltype("INPUT_NUM=%d")>, uint16_t>; |
| 1539 | explicit constexpr INPUT_NUM(uint16_t a) : |
Patrick Williams | f540219 | 2024-08-16 15:20:53 -0400 | [diff] [blame] | 1540 | _entry(entry("INPUT_NUM=%d", a)) {}; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1541 | type _entry; |
| 1542 | }; |
| 1543 | struct INPUT_NAME |
| 1544 | { |
| 1545 | /* |
| 1546 | * We can't use -fsanitize=undefined if we declare a |
| 1547 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 1548 | * mako template lookups. |
| 1549 | */ |
| 1550 | static constexpr auto str_short = "INPUT_NAME"; |
| 1551 | using type = |
| 1552 | std::tuple<std::decay_t<decltype("INPUT_NAME=%s")>, const char*>; |
| 1553 | explicit constexpr INPUT_NAME(const char* a) : |
Patrick Williams | f540219 | 2024-08-16 15:20:53 -0400 | [diff] [blame] | 1554 | _entry(entry("INPUT_NAME=%s", a)) {}; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1555 | type _entry; |
| 1556 | }; |
| 1557 | struct RAW_STATUS |
| 1558 | { |
| 1559 | /* |
| 1560 | * We can't use -fsanitize=undefined if we declare a |
| 1561 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 1562 | * mako template lookups. |
| 1563 | */ |
| 1564 | static constexpr auto str_short = "RAW_STATUS"; |
| 1565 | using type = |
| 1566 | std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>; |
| 1567 | explicit constexpr RAW_STATUS(const char* a) : |
Patrick Williams | f540219 | 2024-08-16 15:20:53 -0400 | [diff] [blame] | 1568 | _entry(entry("RAW_STATUS=%s", a)) {}; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1569 | type _entry; |
| 1570 | }; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1571 | } // namespace _PowerSequencerPGOODFault |
| 1572 | |
| 1573 | struct PowerSequencerPGOODFault |
| 1574 | { |
| 1575 | static constexpr auto L = level::ERR; |
| 1576 | using INPUT_NUM = _PowerSequencerPGOODFault::INPUT_NUM; |
| 1577 | using INPUT_NAME = _PowerSequencerPGOODFault::INPUT_NAME; |
| 1578 | using RAW_STATUS = _PowerSequencerPGOODFault::RAW_STATUS; |
| 1579 | using metadata_types = std::tuple<INPUT_NUM, INPUT_NAME, RAW_STATUS>; |
| 1580 | }; |
| 1581 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1582 | } // namespace org::open_power::witherspoon::fault |
| 1583 | |
| 1584 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 1585 | namespace org::open_power::Witherspoon::Fault |
| 1586 | { |
| 1587 | using PowerSequencerPGOODFault = phosphor::logging::org::open_power:: |
| 1588 | witherspoon::fault::PowerSequencerPGOODFault; |
| 1589 | } |
| 1590 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1591 | |
| 1592 | namespace details |
| 1593 | { |
| 1594 | |
| 1595 | template <> |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1596 | struct map_exception_type<sdbusplus::error::org::open_power::witherspoon:: |
| 1597 | fault::PowerSequencerPGOODFault> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1598 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1599 | using type = phosphor::logging::org::open_power::witherspoon::fault:: |
| 1600 | PowerSequencerPGOODFault; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1601 | }; |
| 1602 | |
| 1603 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1604 | namespace org::open_power::witherspoon::fault |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1605 | { |
| 1606 | namespace _PowerSequencerFault |
| 1607 | { |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1608 | struct RAW_STATUS |
| 1609 | { |
| 1610 | /* |
| 1611 | * We can't use -fsanitize=undefined if we declare a |
| 1612 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 1613 | * mako template lookups. |
| 1614 | */ |
| 1615 | static constexpr auto str_short = "RAW_STATUS"; |
| 1616 | using type = |
| 1617 | std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>; |
| 1618 | explicit constexpr RAW_STATUS(const char* a) : |
Patrick Williams | f540219 | 2024-08-16 15:20:53 -0400 | [diff] [blame] | 1619 | _entry(entry("RAW_STATUS=%s", a)) {}; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1620 | type _entry; |
| 1621 | }; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1622 | } // namespace _PowerSequencerFault |
| 1623 | |
| 1624 | struct PowerSequencerFault |
| 1625 | { |
| 1626 | static constexpr auto L = level::ERR; |
| 1627 | using RAW_STATUS = _PowerSequencerFault::RAW_STATUS; |
| 1628 | using metadata_types = std::tuple<RAW_STATUS>; |
| 1629 | }; |
| 1630 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1631 | } // namespace org::open_power::witherspoon::fault |
| 1632 | |
| 1633 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 1634 | namespace org::open_power::Witherspoon::Fault |
| 1635 | { |
| 1636 | using PowerSequencerFault = |
| 1637 | phosphor::logging::org::open_power::witherspoon::fault::PowerSequencerFault; |
| 1638 | } |
| 1639 | #endif |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1640 | |
| 1641 | namespace details |
| 1642 | { |
| 1643 | |
| 1644 | template <> |
| 1645 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1646 | sdbusplus::error::org::open_power::witherspoon::fault::PowerSequencerFault> |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1647 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1648 | using type = phosphor::logging::org::open_power::witherspoon::fault:: |
| 1649 | PowerSequencerFault; |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1650 | }; |
| 1651 | |
| 1652 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1653 | namespace xyz::openbmc_project::common::callout |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1654 | { |
| 1655 | namespace _Device |
| 1656 | { |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1657 | struct CALLOUT_ERRNO |
| 1658 | { |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 1659 | /* |
| 1660 | * We can't use -fsanitize=undefined if we declare a |
| 1661 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 1662 | * mako template lookups. |
| 1663 | */ |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1664 | static constexpr auto str_short = "CALLOUT_ERRNO"; |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 1665 | using type = |
| 1666 | std::tuple<std::decay_t<decltype("CALLOUT_ERRNO=%d")>, int32_t>; |
| 1667 | explicit constexpr CALLOUT_ERRNO(int32_t a) : |
Patrick Williams | f540219 | 2024-08-16 15:20:53 -0400 | [diff] [blame] | 1668 | _entry(entry("CALLOUT_ERRNO=%d", a)) {}; |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1669 | type _entry; |
| 1670 | }; |
| 1671 | struct CALLOUT_DEVICE_PATH |
| 1672 | { |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 1673 | /* |
| 1674 | * We can't use -fsanitize=undefined if we declare a |
| 1675 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 1676 | * mako template lookups. |
| 1677 | */ |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1678 | static constexpr auto str_short = "CALLOUT_DEVICE_PATH"; |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 1679 | using type = std::tuple<std::decay_t<decltype("CALLOUT_DEVICE_PATH=%s")>, |
| 1680 | const char*>; |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 1681 | explicit constexpr CALLOUT_DEVICE_PATH(const char* a) : |
Patrick Williams | f540219 | 2024-08-16 15:20:53 -0400 | [diff] [blame] | 1682 | _entry(entry("CALLOUT_DEVICE_PATH=%s", a)) {}; |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1683 | type _entry; |
| 1684 | }; |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 1685 | } // namespace _Device |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1686 | |
| 1687 | struct Device |
| 1688 | { |
| 1689 | static constexpr auto L = level::ERR; |
| 1690 | using CALLOUT_ERRNO = _Device::CALLOUT_ERRNO; |
| 1691 | using CALLOUT_DEVICE_PATH = _Device::CALLOUT_DEVICE_PATH; |
| 1692 | using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1693 | }; |
| 1694 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1695 | } // namespace xyz::openbmc_project::common::callout |
| 1696 | |
| 1697 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 1698 | namespace xyz::openbmc_project::Common::Callout |
| 1699 | { |
| 1700 | using Device = phosphor::logging::xyz::openbmc_project::common::callout::Device; |
| 1701 | } |
| 1702 | #endif |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1703 | |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1704 | namespace details |
| 1705 | { |
| 1706 | |
| 1707 | template <> |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 1708 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1709 | sdbusplus::error::xyz::openbmc_project::common::callout::Device> |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1710 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1711 | using type = |
| 1712 | phosphor::logging::xyz::openbmc_project::common::callout::Device; |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1713 | }; |
| 1714 | |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 1715 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1716 | namespace xyz::openbmc_project::common::callout |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1717 | { |
| 1718 | namespace _GPIO |
| 1719 | { |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1720 | struct CALLOUT_GPIO_NUM |
| 1721 | { |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 1722 | /* |
| 1723 | * We can't use -fsanitize=undefined if we declare a |
| 1724 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 1725 | * mako template lookups. |
| 1726 | */ |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1727 | static constexpr auto str_short = "CALLOUT_GPIO_NUM"; |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 1728 | using type = |
| 1729 | std::tuple<std::decay_t<decltype("CALLOUT_GPIO_NUM=%u")>, uint32_t>; |
| 1730 | explicit constexpr CALLOUT_GPIO_NUM(uint32_t a) : |
Patrick Williams | f540219 | 2024-08-16 15:20:53 -0400 | [diff] [blame] | 1731 | _entry(entry("CALLOUT_GPIO_NUM=%u", a)) {}; |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1732 | type _entry; |
| 1733 | }; |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 1734 | } // namespace _GPIO |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1735 | |
| 1736 | struct GPIO |
| 1737 | { |
| 1738 | static constexpr auto L = level::ERR; |
| 1739 | using CALLOUT_GPIO_NUM = _GPIO::CALLOUT_GPIO_NUM; |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1740 | using CALLOUT_ERRNO = phosphor::logging::xyz::openbmc_project::common:: |
| 1741 | callout::Device::CALLOUT_ERRNO; |
| 1742 | using CALLOUT_DEVICE_PATH = phosphor::logging::xyz::openbmc_project:: |
| 1743 | common::callout::Device::CALLOUT_DEVICE_PATH; |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 1744 | using metadata_types = |
| 1745 | std::tuple<CALLOUT_GPIO_NUM, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1746 | }; |
| 1747 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1748 | } // namespace xyz::openbmc_project::common::callout |
| 1749 | |
| 1750 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 1751 | namespace xyz::openbmc_project::Common::Callout |
| 1752 | { |
| 1753 | using GPIO = phosphor::logging::xyz::openbmc_project::common::callout::GPIO; |
| 1754 | } |
| 1755 | #endif |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1756 | |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1757 | namespace details |
| 1758 | { |
| 1759 | |
| 1760 | template <> |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 1761 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1762 | sdbusplus::error::xyz::openbmc_project::common::callout::GPIO> |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1763 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1764 | using type = phosphor::logging::xyz::openbmc_project::common::callout::GPIO; |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1765 | }; |
| 1766 | |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 1767 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1768 | namespace xyz::openbmc_project::common::callout |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1769 | { |
| 1770 | namespace _IIC |
| 1771 | { |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1772 | struct CALLOUT_IIC_BUS |
| 1773 | { |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 1774 | /* |
| 1775 | * We can't use -fsanitize=undefined if we declare a |
| 1776 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 1777 | * mako template lookups. |
| 1778 | */ |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1779 | static constexpr auto str_short = "CALLOUT_IIC_BUS"; |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 1780 | using type = |
| 1781 | std::tuple<std::decay_t<decltype("CALLOUT_IIC_BUS=%s")>, const char*>; |
| 1782 | explicit constexpr CALLOUT_IIC_BUS(const char* a) : |
Patrick Williams | f540219 | 2024-08-16 15:20:53 -0400 | [diff] [blame] | 1783 | _entry(entry("CALLOUT_IIC_BUS=%s", a)) {}; |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1784 | type _entry; |
| 1785 | }; |
| 1786 | struct CALLOUT_IIC_ADDR |
| 1787 | { |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 1788 | /* |
| 1789 | * We can't use -fsanitize=undefined if we declare a |
| 1790 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 1791 | * mako template lookups. |
| 1792 | */ |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1793 | static constexpr auto str_short = "CALLOUT_IIC_ADDR"; |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 1794 | using type = |
| 1795 | std::tuple<std::decay_t<decltype("CALLOUT_IIC_ADDR=0x%hx")>, uint16_t>; |
| 1796 | explicit constexpr CALLOUT_IIC_ADDR(uint16_t a) : |
Patrick Williams | f540219 | 2024-08-16 15:20:53 -0400 | [diff] [blame] | 1797 | _entry(entry("CALLOUT_IIC_ADDR=0x%hx", a)) {}; |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1798 | type _entry; |
| 1799 | }; |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 1800 | } // namespace _IIC |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1801 | |
| 1802 | struct IIC |
| 1803 | { |
| 1804 | static constexpr auto L = level::ERR; |
| 1805 | using CALLOUT_IIC_BUS = _IIC::CALLOUT_IIC_BUS; |
| 1806 | using CALLOUT_IIC_ADDR = _IIC::CALLOUT_IIC_ADDR; |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1807 | using CALLOUT_ERRNO = phosphor::logging::xyz::openbmc_project::common:: |
| 1808 | callout::Device::CALLOUT_ERRNO; |
| 1809 | using CALLOUT_DEVICE_PATH = phosphor::logging::xyz::openbmc_project:: |
| 1810 | common::callout::Device::CALLOUT_DEVICE_PATH; |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 1811 | using metadata_types = std::tuple<CALLOUT_IIC_BUS, CALLOUT_IIC_ADDR, |
| 1812 | CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1813 | }; |
| 1814 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1815 | } // namespace xyz::openbmc_project::common::callout |
| 1816 | |
| 1817 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 1818 | namespace xyz::openbmc_project::Common::Callout |
| 1819 | { |
| 1820 | using IIC = phosphor::logging::xyz::openbmc_project::common::callout::IIC; |
| 1821 | } |
| 1822 | #endif |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1823 | |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1824 | namespace details |
| 1825 | { |
| 1826 | |
| 1827 | template <> |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 1828 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1829 | sdbusplus::error::xyz::openbmc_project::common::callout::IIC> |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1830 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1831 | using type = phosphor::logging::xyz::openbmc_project::common::callout::IIC; |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1832 | }; |
| 1833 | |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 1834 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1835 | namespace xyz::openbmc_project::common::callout |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1836 | { |
| 1837 | namespace _Inventory |
| 1838 | { |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1839 | struct CALLOUT_INVENTORY_PATH |
| 1840 | { |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 1841 | /* |
| 1842 | * We can't use -fsanitize=undefined if we declare a |
| 1843 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 1844 | * mako template lookups. |
| 1845 | */ |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1846 | static constexpr auto str_short = "CALLOUT_INVENTORY_PATH"; |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 1847 | using type = std::tuple<std::decay_t<decltype("CALLOUT_INVENTORY_PATH=%s")>, |
| 1848 | const char*>; |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 1849 | explicit constexpr CALLOUT_INVENTORY_PATH(const char* a) : |
Patrick Williams | f540219 | 2024-08-16 15:20:53 -0400 | [diff] [blame] | 1850 | _entry(entry("CALLOUT_INVENTORY_PATH=%s", a)) {}; |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1851 | type _entry; |
| 1852 | }; |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 1853 | } // namespace _Inventory |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1854 | |
| 1855 | struct Inventory |
| 1856 | { |
| 1857 | static constexpr auto L = level::ERR; |
| 1858 | using CALLOUT_INVENTORY_PATH = _Inventory::CALLOUT_INVENTORY_PATH; |
| 1859 | using metadata_types = std::tuple<CALLOUT_INVENTORY_PATH>; |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1860 | }; |
| 1861 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1862 | } // namespace xyz::openbmc_project::common::callout |
| 1863 | |
| 1864 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 1865 | namespace xyz::openbmc_project::Common::Callout |
| 1866 | { |
| 1867 | using Inventory = |
| 1868 | phosphor::logging::xyz::openbmc_project::common::callout::Inventory; |
| 1869 | } |
| 1870 | #endif |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1871 | |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1872 | namespace details |
| 1873 | { |
| 1874 | |
| 1875 | template <> |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 1876 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1877 | sdbusplus::error::xyz::openbmc_project::common::callout::Inventory> |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1878 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1879 | using type = |
| 1880 | phosphor::logging::xyz::openbmc_project::common::callout::Inventory; |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1881 | }; |
| 1882 | |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 1883 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1884 | namespace xyz::openbmc_project::common::callout |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1885 | { |
| 1886 | namespace _IPMISensor |
| 1887 | { |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1888 | struct CALLOUT_IPMI_SENSOR_NUM |
| 1889 | { |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 1890 | /* |
| 1891 | * We can't use -fsanitize=undefined if we declare a |
| 1892 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 1893 | * mako template lookups. |
| 1894 | */ |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1895 | static constexpr auto str_short = "CALLOUT_IPMI_SENSOR_NUM"; |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 1896 | using type = |
| 1897 | std::tuple<std::decay_t<decltype("CALLOUT_IPMI_SENSOR_NUM=%u")>, |
| 1898 | uint32_t>; |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 1899 | explicit constexpr CALLOUT_IPMI_SENSOR_NUM(uint32_t a) : |
Patrick Williams | f540219 | 2024-08-16 15:20:53 -0400 | [diff] [blame] | 1900 | _entry(entry("CALLOUT_IPMI_SENSOR_NUM=%u", a)) {}; |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1901 | type _entry; |
| 1902 | }; |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 1903 | } // namespace _IPMISensor |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1904 | |
| 1905 | struct IPMISensor |
| 1906 | { |
| 1907 | static constexpr auto L = level::ERR; |
| 1908 | using CALLOUT_IPMI_SENSOR_NUM = _IPMISensor::CALLOUT_IPMI_SENSOR_NUM; |
| 1909 | using metadata_types = std::tuple<CALLOUT_IPMI_SENSOR_NUM>; |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1910 | }; |
| 1911 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1912 | } // namespace xyz::openbmc_project::common::callout |
| 1913 | |
| 1914 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 1915 | namespace xyz::openbmc_project::Common::Callout |
| 1916 | { |
| 1917 | using IPMISensor = |
| 1918 | phosphor::logging::xyz::openbmc_project::common::callout::IPMISensor; |
| 1919 | } |
| 1920 | #endif |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1921 | |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1922 | namespace details |
| 1923 | { |
| 1924 | |
| 1925 | template <> |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 1926 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1927 | sdbusplus::error::xyz::openbmc_project::common::callout::IPMISensor> |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1928 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1929 | using type = |
| 1930 | phosphor::logging::xyz::openbmc_project::common::callout::IPMISensor; |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1931 | }; |
| 1932 | |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 1933 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1934 | namespace org::open_power::witherspoon::fault |
Brandon Wyman | 442035f | 2017-08-08 15:58:45 -0500 | [diff] [blame] | 1935 | { |
Brandon Wyman | 253dc9b | 2017-08-12 13:45:52 -0500 | [diff] [blame] | 1936 | namespace _PowerSupplyInputFault |
| 1937 | { |
Brandon Wyman | 253dc9b | 2017-08-12 13:45:52 -0500 | [diff] [blame] | 1938 | struct RAW_STATUS |
| 1939 | { |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 1940 | /* |
| 1941 | * We can't use -fsanitize=undefined if we declare a |
| 1942 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 1943 | * mako template lookups. |
| 1944 | */ |
Brandon Wyman | 253dc9b | 2017-08-12 13:45:52 -0500 | [diff] [blame] | 1945 | static constexpr auto str_short = "RAW_STATUS"; |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 1946 | using type = |
| 1947 | std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>; |
| 1948 | explicit constexpr RAW_STATUS(const char* a) : |
Patrick Williams | f540219 | 2024-08-16 15:20:53 -0400 | [diff] [blame] | 1949 | _entry(entry("RAW_STATUS=%s", a)) {}; |
Brandon Wyman | 253dc9b | 2017-08-12 13:45:52 -0500 | [diff] [blame] | 1950 | type _entry; |
| 1951 | }; |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 1952 | } // namespace _PowerSupplyInputFault |
Brandon Wyman | 253dc9b | 2017-08-12 13:45:52 -0500 | [diff] [blame] | 1953 | |
| 1954 | struct PowerSupplyInputFault |
| 1955 | { |
| 1956 | static constexpr auto L = level::ERR; |
| 1957 | using RAW_STATUS = _PowerSupplyInputFault::RAW_STATUS; |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1958 | using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project:: |
| 1959 | common::callout::Inventory::CALLOUT_INVENTORY_PATH; |
Brandon Wyman | ea358c9 | 2017-10-27 17:34:07 -0500 | [diff] [blame] | 1960 | using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; |
Brandon Wyman | 253dc9b | 2017-08-12 13:45:52 -0500 | [diff] [blame] | 1961 | }; |
| 1962 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1963 | } // namespace org::open_power::witherspoon::fault |
| 1964 | |
| 1965 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 1966 | namespace org::open_power::Witherspoon::Fault |
| 1967 | { |
| 1968 | using PowerSupplyInputFault = phosphor::logging::org::open_power::witherspoon:: |
| 1969 | fault::PowerSupplyInputFault; |
| 1970 | } |
| 1971 | #endif |
Brandon Wyman | 253dc9b | 2017-08-12 13:45:52 -0500 | [diff] [blame] | 1972 | |
Brandon Wyman | 253dc9b | 2017-08-12 13:45:52 -0500 | [diff] [blame] | 1973 | namespace details |
| 1974 | { |
| 1975 | |
| 1976 | template <> |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1977 | struct map_exception_type<sdbusplus::error::org::open_power::witherspoon:: |
| 1978 | fault::PowerSupplyInputFault> |
Brandon Wyman | 253dc9b | 2017-08-12 13:45:52 -0500 | [diff] [blame] | 1979 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1980 | using type = phosphor::logging::org::open_power::witherspoon::fault:: |
| 1981 | PowerSupplyInputFault; |
Brandon Wyman | 253dc9b | 2017-08-12 13:45:52 -0500 | [diff] [blame] | 1982 | }; |
| 1983 | |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 1984 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 1985 | namespace org::open_power::witherspoon::fault |
Brandon Wyman | 253dc9b | 2017-08-12 13:45:52 -0500 | [diff] [blame] | 1986 | { |
Brandon Wyman | 764c797 | 2017-08-22 17:05:36 -0500 | [diff] [blame] | 1987 | namespace _PowerSupplyShouldBeOn |
| 1988 | { |
Brandon Wyman | 764c797 | 2017-08-22 17:05:36 -0500 | [diff] [blame] | 1989 | struct RAW_STATUS |
| 1990 | { |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 1991 | /* |
| 1992 | * We can't use -fsanitize=undefined if we declare a |
| 1993 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 1994 | * mako template lookups. |
| 1995 | */ |
Brandon Wyman | 764c797 | 2017-08-22 17:05:36 -0500 | [diff] [blame] | 1996 | static constexpr auto str_short = "RAW_STATUS"; |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 1997 | using type = |
| 1998 | std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>; |
| 1999 | explicit constexpr RAW_STATUS(const char* a) : |
Patrick Williams | f540219 | 2024-08-16 15:20:53 -0400 | [diff] [blame] | 2000 | _entry(entry("RAW_STATUS=%s", a)) {}; |
Brandon Wyman | 764c797 | 2017-08-22 17:05:36 -0500 | [diff] [blame] | 2001 | type _entry; |
| 2002 | }; |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 2003 | } // namespace _PowerSupplyShouldBeOn |
Brandon Wyman | 764c797 | 2017-08-22 17:05:36 -0500 | [diff] [blame] | 2004 | |
| 2005 | struct PowerSupplyShouldBeOn |
| 2006 | { |
| 2007 | static constexpr auto L = level::ERR; |
| 2008 | using RAW_STATUS = _PowerSupplyShouldBeOn::RAW_STATUS; |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2009 | using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project:: |
| 2010 | common::callout::Inventory::CALLOUT_INVENTORY_PATH; |
Brandon Wyman | 764c797 | 2017-08-22 17:05:36 -0500 | [diff] [blame] | 2011 | using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; |
Brandon Wyman | 764c797 | 2017-08-22 17:05:36 -0500 | [diff] [blame] | 2012 | }; |
| 2013 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2014 | } // namespace org::open_power::witherspoon::fault |
| 2015 | |
| 2016 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 2017 | namespace org::open_power::Witherspoon::Fault |
| 2018 | { |
| 2019 | using PowerSupplyShouldBeOn = phosphor::logging::org::open_power::witherspoon:: |
| 2020 | fault::PowerSupplyShouldBeOn; |
| 2021 | } |
| 2022 | #endif |
Brandon Wyman | 764c797 | 2017-08-22 17:05:36 -0500 | [diff] [blame] | 2023 | |
Brandon Wyman | 764c797 | 2017-08-22 17:05:36 -0500 | [diff] [blame] | 2024 | namespace details |
| 2025 | { |
| 2026 | |
| 2027 | template <> |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2028 | struct map_exception_type<sdbusplus::error::org::open_power::witherspoon:: |
| 2029 | fault::PowerSupplyShouldBeOn> |
Brandon Wyman | 764c797 | 2017-08-22 17:05:36 -0500 | [diff] [blame] | 2030 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2031 | using type = phosphor::logging::org::open_power::witherspoon::fault:: |
| 2032 | PowerSupplyShouldBeOn; |
Brandon Wyman | 764c797 | 2017-08-22 17:05:36 -0500 | [diff] [blame] | 2033 | }; |
| 2034 | |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 2035 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2036 | namespace org::open_power::witherspoon::fault |
Brandon Wyman | 764c797 | 2017-08-22 17:05:36 -0500 | [diff] [blame] | 2037 | { |
Brandon Wyman | b165c25 | 2017-08-25 18:59:54 -0500 | [diff] [blame] | 2038 | namespace _PowerSupplyOutputOvercurrent |
| 2039 | { |
Brandon Wyman | b165c25 | 2017-08-25 18:59:54 -0500 | [diff] [blame] | 2040 | struct RAW_STATUS |
| 2041 | { |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 2042 | /* |
| 2043 | * We can't use -fsanitize=undefined if we declare a |
| 2044 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 2045 | * mako template lookups. |
| 2046 | */ |
Brandon Wyman | b165c25 | 2017-08-25 18:59:54 -0500 | [diff] [blame] | 2047 | static constexpr auto str_short = "RAW_STATUS"; |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 2048 | using type = |
| 2049 | std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>; |
| 2050 | explicit constexpr RAW_STATUS(const char* a) : |
Patrick Williams | f540219 | 2024-08-16 15:20:53 -0400 | [diff] [blame] | 2051 | _entry(entry("RAW_STATUS=%s", a)) {}; |
Brandon Wyman | b165c25 | 2017-08-25 18:59:54 -0500 | [diff] [blame] | 2052 | type _entry; |
| 2053 | }; |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 2054 | } // namespace _PowerSupplyOutputOvercurrent |
Brandon Wyman | b165c25 | 2017-08-25 18:59:54 -0500 | [diff] [blame] | 2055 | |
| 2056 | struct PowerSupplyOutputOvercurrent |
| 2057 | { |
| 2058 | static constexpr auto L = level::ERR; |
| 2059 | using RAW_STATUS = _PowerSupplyOutputOvercurrent::RAW_STATUS; |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2060 | using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project:: |
| 2061 | common::callout::Inventory::CALLOUT_INVENTORY_PATH; |
Brandon Wyman | b165c25 | 2017-08-25 18:59:54 -0500 | [diff] [blame] | 2062 | using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; |
Brandon Wyman | b165c25 | 2017-08-25 18:59:54 -0500 | [diff] [blame] | 2063 | }; |
| 2064 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2065 | } // namespace org::open_power::witherspoon::fault |
| 2066 | |
| 2067 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 2068 | namespace org::open_power::Witherspoon::Fault |
| 2069 | { |
| 2070 | using PowerSupplyOutputOvercurrent = phosphor::logging::org::open_power:: |
| 2071 | witherspoon::fault::PowerSupplyOutputOvercurrent; |
| 2072 | } |
| 2073 | #endif |
Brandon Wyman | b165c25 | 2017-08-25 18:59:54 -0500 | [diff] [blame] | 2074 | |
Brandon Wyman | b165c25 | 2017-08-25 18:59:54 -0500 | [diff] [blame] | 2075 | namespace details |
| 2076 | { |
| 2077 | |
| 2078 | template <> |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2079 | struct map_exception_type<sdbusplus::error::org::open_power::witherspoon:: |
| 2080 | fault::PowerSupplyOutputOvercurrent> |
Brandon Wyman | b165c25 | 2017-08-25 18:59:54 -0500 | [diff] [blame] | 2081 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2082 | using type = phosphor::logging::org::open_power::witherspoon::fault:: |
| 2083 | PowerSupplyOutputOvercurrent; |
Brandon Wyman | b165c25 | 2017-08-25 18:59:54 -0500 | [diff] [blame] | 2084 | }; |
| 2085 | |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 2086 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2087 | namespace org::open_power::witherspoon::fault |
Brandon Wyman | b165c25 | 2017-08-25 18:59:54 -0500 | [diff] [blame] | 2088 | { |
Brandon Wyman | ab05c07 | 2017-08-30 18:26:41 -0500 | [diff] [blame] | 2089 | namespace _PowerSupplyOutputOvervoltage |
| 2090 | { |
Brandon Wyman | ab05c07 | 2017-08-30 18:26:41 -0500 | [diff] [blame] | 2091 | struct RAW_STATUS |
| 2092 | { |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 2093 | /* |
| 2094 | * We can't use -fsanitize=undefined if we declare a |
| 2095 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 2096 | * mako template lookups. |
| 2097 | */ |
Brandon Wyman | ab05c07 | 2017-08-30 18:26:41 -0500 | [diff] [blame] | 2098 | static constexpr auto str_short = "RAW_STATUS"; |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 2099 | using type = |
| 2100 | std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>; |
| 2101 | explicit constexpr RAW_STATUS(const char* a) : |
Patrick Williams | f540219 | 2024-08-16 15:20:53 -0400 | [diff] [blame] | 2102 | _entry(entry("RAW_STATUS=%s", a)) {}; |
Brandon Wyman | ab05c07 | 2017-08-30 18:26:41 -0500 | [diff] [blame] | 2103 | type _entry; |
| 2104 | }; |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 2105 | } // namespace _PowerSupplyOutputOvervoltage |
Brandon Wyman | ab05c07 | 2017-08-30 18:26:41 -0500 | [diff] [blame] | 2106 | |
| 2107 | struct PowerSupplyOutputOvervoltage |
| 2108 | { |
| 2109 | static constexpr auto L = level::ERR; |
| 2110 | using RAW_STATUS = _PowerSupplyOutputOvervoltage::RAW_STATUS; |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2111 | using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project:: |
| 2112 | common::callout::Inventory::CALLOUT_INVENTORY_PATH; |
Brandon Wyman | ab05c07 | 2017-08-30 18:26:41 -0500 | [diff] [blame] | 2113 | using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; |
Brandon Wyman | ab05c07 | 2017-08-30 18:26:41 -0500 | [diff] [blame] | 2114 | }; |
| 2115 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2116 | } // namespace org::open_power::witherspoon::fault |
| 2117 | |
| 2118 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 2119 | namespace org::open_power::Witherspoon::Fault |
| 2120 | { |
| 2121 | using PowerSupplyOutputOvervoltage = phosphor::logging::org::open_power:: |
| 2122 | witherspoon::fault::PowerSupplyOutputOvervoltage; |
| 2123 | } |
| 2124 | #endif |
Brandon Wyman | ab05c07 | 2017-08-30 18:26:41 -0500 | [diff] [blame] | 2125 | |
Brandon Wyman | ab05c07 | 2017-08-30 18:26:41 -0500 | [diff] [blame] | 2126 | namespace details |
| 2127 | { |
| 2128 | |
| 2129 | template <> |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2130 | struct map_exception_type<sdbusplus::error::org::open_power::witherspoon:: |
| 2131 | fault::PowerSupplyOutputOvervoltage> |
Brandon Wyman | ab05c07 | 2017-08-30 18:26:41 -0500 | [diff] [blame] | 2132 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2133 | using type = phosphor::logging::org::open_power::witherspoon::fault:: |
| 2134 | PowerSupplyOutputOvervoltage; |
Brandon Wyman | ab05c07 | 2017-08-30 18:26:41 -0500 | [diff] [blame] | 2135 | }; |
| 2136 | |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 2137 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2138 | namespace org::open_power::witherspoon::fault |
Brandon Wyman | ab05c07 | 2017-08-30 18:26:41 -0500 | [diff] [blame] | 2139 | { |
Brandon Wyman | 12661f1 | 2017-08-31 15:28:21 -0500 | [diff] [blame] | 2140 | namespace _PowerSupplyFanFault |
| 2141 | { |
Brandon Wyman | 12661f1 | 2017-08-31 15:28:21 -0500 | [diff] [blame] | 2142 | struct RAW_STATUS |
| 2143 | { |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 2144 | /* |
| 2145 | * We can't use -fsanitize=undefined if we declare a |
| 2146 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 2147 | * mako template lookups. |
| 2148 | */ |
Brandon Wyman | 12661f1 | 2017-08-31 15:28:21 -0500 | [diff] [blame] | 2149 | static constexpr auto str_short = "RAW_STATUS"; |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 2150 | using type = |
| 2151 | std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>; |
| 2152 | explicit constexpr RAW_STATUS(const char* a) : |
Patrick Williams | f540219 | 2024-08-16 15:20:53 -0400 | [diff] [blame] | 2153 | _entry(entry("RAW_STATUS=%s", a)) {}; |
Brandon Wyman | 12661f1 | 2017-08-31 15:28:21 -0500 | [diff] [blame] | 2154 | type _entry; |
| 2155 | }; |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 2156 | } // namespace _PowerSupplyFanFault |
Brandon Wyman | 12661f1 | 2017-08-31 15:28:21 -0500 | [diff] [blame] | 2157 | |
| 2158 | struct PowerSupplyFanFault |
| 2159 | { |
| 2160 | static constexpr auto L = level::ERR; |
| 2161 | using RAW_STATUS = _PowerSupplyFanFault::RAW_STATUS; |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2162 | using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project:: |
| 2163 | common::callout::Inventory::CALLOUT_INVENTORY_PATH; |
Brandon Wyman | 12661f1 | 2017-08-31 15:28:21 -0500 | [diff] [blame] | 2164 | using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; |
Brandon Wyman | 12661f1 | 2017-08-31 15:28:21 -0500 | [diff] [blame] | 2165 | }; |
| 2166 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2167 | } // namespace org::open_power::witherspoon::fault |
| 2168 | |
| 2169 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 2170 | namespace org::open_power::Witherspoon::Fault |
| 2171 | { |
| 2172 | using PowerSupplyFanFault = |
| 2173 | phosphor::logging::org::open_power::witherspoon::fault::PowerSupplyFanFault; |
| 2174 | } |
| 2175 | #endif |
Brandon Wyman | 12661f1 | 2017-08-31 15:28:21 -0500 | [diff] [blame] | 2176 | |
Brandon Wyman | 12661f1 | 2017-08-31 15:28:21 -0500 | [diff] [blame] | 2177 | namespace details |
| 2178 | { |
| 2179 | |
| 2180 | template <> |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 2181 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2182 | sdbusplus::error::org::open_power::witherspoon::fault::PowerSupplyFanFault> |
Brandon Wyman | 12661f1 | 2017-08-31 15:28:21 -0500 | [diff] [blame] | 2183 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2184 | using type = phosphor::logging::org::open_power::witherspoon::fault:: |
| 2185 | PowerSupplyFanFault; |
Brandon Wyman | 12661f1 | 2017-08-31 15:28:21 -0500 | [diff] [blame] | 2186 | }; |
| 2187 | |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 2188 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2189 | namespace org::open_power::witherspoon::fault |
Brandon Wyman | 12661f1 | 2017-08-31 15:28:21 -0500 | [diff] [blame] | 2190 | { |
Brandon Wyman | 875b363 | 2017-09-13 18:46:03 -0500 | [diff] [blame] | 2191 | namespace _PowerSupplyTemperatureFault |
| 2192 | { |
Brandon Wyman | 875b363 | 2017-09-13 18:46:03 -0500 | [diff] [blame] | 2193 | struct RAW_STATUS |
| 2194 | { |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 2195 | /* |
| 2196 | * We can't use -fsanitize=undefined if we declare a |
| 2197 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 2198 | * mako template lookups. |
| 2199 | */ |
Brandon Wyman | 875b363 | 2017-09-13 18:46:03 -0500 | [diff] [blame] | 2200 | static constexpr auto str_short = "RAW_STATUS"; |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 2201 | using type = |
| 2202 | std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>; |
| 2203 | explicit constexpr RAW_STATUS(const char* a) : |
Patrick Williams | f540219 | 2024-08-16 15:20:53 -0400 | [diff] [blame] | 2204 | _entry(entry("RAW_STATUS=%s", a)) {}; |
Brandon Wyman | 875b363 | 2017-09-13 18:46:03 -0500 | [diff] [blame] | 2205 | type _entry; |
| 2206 | }; |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 2207 | } // namespace _PowerSupplyTemperatureFault |
Brandon Wyman | 875b363 | 2017-09-13 18:46:03 -0500 | [diff] [blame] | 2208 | |
| 2209 | struct PowerSupplyTemperatureFault |
| 2210 | { |
| 2211 | static constexpr auto L = level::ERR; |
| 2212 | using RAW_STATUS = _PowerSupplyTemperatureFault::RAW_STATUS; |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2213 | using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project:: |
| 2214 | common::callout::Inventory::CALLOUT_INVENTORY_PATH; |
Brandon Wyman | 875b363 | 2017-09-13 18:46:03 -0500 | [diff] [blame] | 2215 | using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; |
Brandon Wyman | 875b363 | 2017-09-13 18:46:03 -0500 | [diff] [blame] | 2216 | }; |
| 2217 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2218 | } // namespace org::open_power::witherspoon::fault |
| 2219 | |
| 2220 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 2221 | namespace org::open_power::Witherspoon::Fault |
| 2222 | { |
| 2223 | using PowerSupplyTemperatureFault = phosphor::logging::org::open_power:: |
| 2224 | witherspoon::fault::PowerSupplyTemperatureFault; |
| 2225 | } |
| 2226 | #endif |
Brandon Wyman | 875b363 | 2017-09-13 18:46:03 -0500 | [diff] [blame] | 2227 | |
Brandon Wyman | 875b363 | 2017-09-13 18:46:03 -0500 | [diff] [blame] | 2228 | namespace details |
| 2229 | { |
| 2230 | |
| 2231 | template <> |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2232 | struct map_exception_type<sdbusplus::error::org::open_power::witherspoon:: |
| 2233 | fault::PowerSupplyTemperatureFault> |
Brandon Wyman | 875b363 | 2017-09-13 18:46:03 -0500 | [diff] [blame] | 2234 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2235 | using type = phosphor::logging::org::open_power::witherspoon::fault:: |
| 2236 | PowerSupplyTemperatureFault; |
Brandon Wyman | 875b363 | 2017-09-13 18:46:03 -0500 | [diff] [blame] | 2237 | }; |
| 2238 | |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 2239 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2240 | namespace org::open_power::witherspoon::fault |
Brandon Wyman | 875b363 | 2017-09-13 18:46:03 -0500 | [diff] [blame] | 2241 | { |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 2242 | namespace _GPUPowerFault |
| 2243 | { |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 2244 | struct RAW_STATUS |
| 2245 | { |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 2246 | /* |
| 2247 | * We can't use -fsanitize=undefined if we declare a |
| 2248 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 2249 | * mako template lookups. |
| 2250 | */ |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 2251 | static constexpr auto str_short = "RAW_STATUS"; |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 2252 | using type = |
| 2253 | std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>; |
| 2254 | explicit constexpr RAW_STATUS(const char* a) : |
Patrick Williams | f540219 | 2024-08-16 15:20:53 -0400 | [diff] [blame] | 2255 | _entry(entry("RAW_STATUS=%s", a)) {}; |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 2256 | type _entry; |
| 2257 | }; |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 2258 | } // namespace _GPUPowerFault |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 2259 | |
| 2260 | struct GPUPowerFault |
| 2261 | { |
| 2262 | static constexpr auto L = level::ERR; |
| 2263 | using RAW_STATUS = _GPUPowerFault::RAW_STATUS; |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2264 | using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project:: |
| 2265 | common::callout::Inventory::CALLOUT_INVENTORY_PATH; |
Matt Spinler | 0e45ced | 2018-02-12 14:36:07 -0600 | [diff] [blame] | 2266 | using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 2267 | }; |
| 2268 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2269 | } // namespace org::open_power::witherspoon::fault |
| 2270 | |
| 2271 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 2272 | namespace org::open_power::Witherspoon::Fault |
| 2273 | { |
| 2274 | using GPUPowerFault = |
| 2275 | phosphor::logging::org::open_power::witherspoon::fault::GPUPowerFault; |
| 2276 | } |
| 2277 | #endif |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 2278 | |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 2279 | namespace details |
| 2280 | { |
| 2281 | |
| 2282 | template <> |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 2283 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2284 | sdbusplus::error::org::open_power::witherspoon::fault::GPUPowerFault> |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 2285 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2286 | using type = |
| 2287 | phosphor::logging::org::open_power::witherspoon::fault::GPUPowerFault; |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 2288 | }; |
| 2289 | |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 2290 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2291 | namespace org::open_power::witherspoon::fault |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 2292 | { |
| 2293 | namespace _GPUOverTemp |
| 2294 | { |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 2295 | struct RAW_STATUS |
| 2296 | { |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 2297 | /* |
| 2298 | * We can't use -fsanitize=undefined if we declare a |
| 2299 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 2300 | * mako template lookups. |
| 2301 | */ |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 2302 | static constexpr auto str_short = "RAW_STATUS"; |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 2303 | using type = |
| 2304 | std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>; |
| 2305 | explicit constexpr RAW_STATUS(const char* a) : |
Patrick Williams | f540219 | 2024-08-16 15:20:53 -0400 | [diff] [blame] | 2306 | _entry(entry("RAW_STATUS=%s", a)) {}; |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 2307 | type _entry; |
| 2308 | }; |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 2309 | } // namespace _GPUOverTemp |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 2310 | |
| 2311 | struct GPUOverTemp |
| 2312 | { |
| 2313 | static constexpr auto L = level::ERR; |
| 2314 | using RAW_STATUS = _GPUOverTemp::RAW_STATUS; |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2315 | using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project:: |
| 2316 | common::callout::Inventory::CALLOUT_INVENTORY_PATH; |
Matt Spinler | 0e45ced | 2018-02-12 14:36:07 -0600 | [diff] [blame] | 2317 | using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 2318 | }; |
| 2319 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2320 | } // namespace org::open_power::witherspoon::fault |
| 2321 | |
| 2322 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 2323 | namespace org::open_power::Witherspoon::Fault |
| 2324 | { |
| 2325 | using GPUOverTemp = |
| 2326 | phosphor::logging::org::open_power::witherspoon::fault::GPUOverTemp; |
| 2327 | } |
| 2328 | #endif |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 2329 | |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 2330 | namespace details |
| 2331 | { |
| 2332 | |
| 2333 | template <> |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 2334 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2335 | sdbusplus::error::org::open_power::witherspoon::fault::GPUOverTemp> |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 2336 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2337 | using type = |
| 2338 | phosphor::logging::org::open_power::witherspoon::fault::GPUOverTemp; |
Matt Spinler | 7b14db2 | 2017-09-19 10:57:54 -0500 | [diff] [blame] | 2339 | }; |
| 2340 | |
Matt Spinler | f0f02b9 | 2018-10-25 16:12:43 -0500 | [diff] [blame] | 2341 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2342 | namespace org::open_power::witherspoon::fault |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 2343 | { |
| 2344 | namespace _MemoryPowerFault |
| 2345 | { |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 2346 | struct RAW_STATUS |
| 2347 | { |
| 2348 | /* |
| 2349 | * We can't use -fsanitize=undefined if we declare a |
| 2350 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 2351 | * mako template lookups. |
| 2352 | */ |
| 2353 | static constexpr auto str_short = "RAW_STATUS"; |
| 2354 | using type = |
| 2355 | std::tuple<std::decay_t<decltype("RAW_STATUS=%s")>, const char*>; |
| 2356 | explicit constexpr RAW_STATUS(const char* a) : |
Patrick Williams | f540219 | 2024-08-16 15:20:53 -0400 | [diff] [blame] | 2357 | _entry(entry("RAW_STATUS=%s", a)) {}; |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 2358 | type _entry; |
| 2359 | }; |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 2360 | } // namespace _MemoryPowerFault |
| 2361 | |
| 2362 | struct MemoryPowerFault |
| 2363 | { |
| 2364 | static constexpr auto L = level::ERR; |
| 2365 | using RAW_STATUS = _MemoryPowerFault::RAW_STATUS; |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2366 | using CALLOUT_INVENTORY_PATH = phosphor::logging::xyz::openbmc_project:: |
| 2367 | common::callout::Inventory::CALLOUT_INVENTORY_PATH; |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 2368 | using metadata_types = std::tuple<RAW_STATUS, CALLOUT_INVENTORY_PATH>; |
| 2369 | }; |
| 2370 | |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2371 | } // namespace org::open_power::witherspoon::fault |
| 2372 | |
| 2373 | #ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE |
| 2374 | namespace org::open_power::Witherspoon::Fault |
| 2375 | { |
| 2376 | using MemoryPowerFault = |
| 2377 | phosphor::logging::org::open_power::witherspoon::fault::MemoryPowerFault; |
| 2378 | } |
| 2379 | #endif |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 2380 | |
| 2381 | namespace details |
| 2382 | { |
| 2383 | |
| 2384 | template <> |
| 2385 | struct map_exception_type< |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2386 | sdbusplus::error::org::open_power::witherspoon::fault::MemoryPowerFault> |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 2387 | { |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2388 | using type = phosphor::logging::org::open_power::witherspoon::fault:: |
| 2389 | MemoryPowerFault; |
Brandon Wyman | 03c19db | 2019-05-10 17:46:41 -0500 | [diff] [blame] | 2390 | }; |
| 2391 | |
| 2392 | } // namespace details |
Patrick Williams | 0859a17 | 2023-09-01 15:59:54 -0500 | [diff] [blame] | 2393 | } // namespace phosphor::logging |