Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1 | // This file was autogenerated. Do not edit! |
| 2 | // See elog-gen.py for more details |
| 3 | #pragma once |
| 4 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 5 | #include <phosphor-logging/elog.hpp> |
| 6 | #include <phosphor-logging/log.hpp> |
| 7 | #include <sdbusplus/exception.hpp> |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 8 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 9 | #include <string> |
| 10 | #include <tuple> |
| 11 | #include <type_traits> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 12 | |
| 13 | namespace sdbusplus |
| 14 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 15 | namespace com |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 16 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 17 | namespace ibm |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 18 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 19 | namespace VPD |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 20 | { |
| 21 | namespace Error |
| 22 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 23 | struct BlankSystemVPD; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 24 | } // namespace Error |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 25 | } // namespace VPD |
| 26 | } // namespace ibm |
| 27 | } // namespace com |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 28 | } // namespace sdbusplus |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 29 | namespace sdbusplus |
| 30 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 31 | namespace com |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 32 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 33 | namespace ibm |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 34 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 35 | namespace VPD |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 36 | { |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 37 | namespace Error |
| 38 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 39 | struct DbusFailure; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 40 | } // namespace Error |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 41 | } // namespace VPD |
| 42 | } // namespace ibm |
| 43 | } // namespace com |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 44 | } // namespace sdbusplus |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 45 | namespace sdbusplus |
| 46 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 47 | namespace com |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 48 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 49 | namespace ibm |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 50 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 51 | namespace VPD |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 52 | { |
| 53 | namespace Error |
| 54 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 55 | struct EccCheckFailed; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 56 | } // namespace Error |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 57 | } // namespace VPD |
| 58 | } // namespace ibm |
| 59 | } // namespace com |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 60 | } // namespace sdbusplus |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 61 | namespace sdbusplus |
| 62 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 63 | namespace com |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 64 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 65 | namespace ibm |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 66 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 67 | namespace VPD |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 68 | { |
| 69 | namespace Error |
| 70 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 71 | struct InvalidEepromPath; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 72 | } // namespace Error |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 73 | } // namespace VPD |
| 74 | } // namespace ibm |
| 75 | } // namespace com |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 76 | } // namespace sdbusplus |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 77 | namespace sdbusplus |
| 78 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 79 | namespace com |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 80 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 81 | namespace ibm |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 82 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 83 | namespace VPD |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 84 | { |
| 85 | namespace Error |
| 86 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 87 | struct InvalidJson; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 88 | } // namespace Error |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 89 | } // namespace VPD |
| 90 | } // namespace ibm |
| 91 | } // namespace com |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 92 | } // namespace sdbusplus |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 93 | namespace sdbusplus |
| 94 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 95 | namespace com |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 96 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 97 | namespace ibm |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 98 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 99 | namespace VPD |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 100 | { |
| 101 | namespace Error |
| 102 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 103 | struct InvalidVPD; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 104 | } // namespace Error |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 105 | } // namespace VPD |
| 106 | } // namespace ibm |
| 107 | } // namespace com |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 108 | } // namespace sdbusplus |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 109 | namespace sdbusplus |
| 110 | { |
| 111 | namespace com |
| 112 | { |
| 113 | namespace ibm |
| 114 | { |
| 115 | namespace VPD |
| 116 | { |
| 117 | namespace Error |
| 118 | { |
| 119 | struct KeywordNotFound; |
| 120 | } // namespace Error |
| 121 | } // namespace VPD |
| 122 | } // namespace ibm |
| 123 | } // namespace com |
| 124 | } // namespace sdbusplus |
| 125 | namespace sdbusplus |
| 126 | { |
| 127 | namespace com |
| 128 | { |
| 129 | namespace ibm |
| 130 | { |
| 131 | namespace VPD |
| 132 | { |
| 133 | namespace Error |
| 134 | { |
| 135 | struct LocationNotFound; |
| 136 | } // namespace Error |
| 137 | } // namespace VPD |
| 138 | } // namespace ibm |
| 139 | } // namespace com |
| 140 | } // namespace sdbusplus |
| 141 | namespace sdbusplus |
| 142 | { |
| 143 | namespace com |
| 144 | { |
| 145 | namespace ibm |
| 146 | { |
| 147 | namespace VPD |
| 148 | { |
| 149 | namespace Error |
| 150 | { |
| 151 | struct NodeNotFound; |
| 152 | } // namespace Error |
| 153 | } // namespace VPD |
| 154 | } // namespace ibm |
| 155 | } // namespace com |
| 156 | } // namespace sdbusplus |
| 157 | namespace sdbusplus |
| 158 | { |
| 159 | namespace com |
| 160 | { |
| 161 | namespace ibm |
| 162 | { |
| 163 | namespace VPD |
| 164 | { |
| 165 | namespace Error |
| 166 | { |
| 167 | struct PathNotFound; |
| 168 | } // namespace Error |
| 169 | } // namespace VPD |
| 170 | } // namespace ibm |
| 171 | } // namespace com |
| 172 | } // namespace sdbusplus |
| 173 | namespace sdbusplus |
| 174 | { |
| 175 | namespace com |
| 176 | { |
| 177 | namespace ibm |
| 178 | { |
| 179 | namespace VPD |
| 180 | { |
| 181 | namespace Error |
| 182 | { |
| 183 | struct RecordNotFound; |
| 184 | } // namespace Error |
| 185 | } // namespace VPD |
| 186 | } // namespace ibm |
| 187 | } // namespace com |
| 188 | } // namespace sdbusplus |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 189 | namespace sdbusplus |
| 190 | { |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 191 | namespace org |
| 192 | { |
| 193 | namespace open_power |
| 194 | { |
| 195 | namespace Common |
| 196 | { |
| 197 | namespace Callout |
| 198 | { |
| 199 | namespace Error |
| 200 | { |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 201 | struct Procedure; |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 202 | } // namespace Error |
| 203 | } // namespace Callout |
| 204 | } // namespace Common |
| 205 | } // namespace open_power |
| 206 | } // namespace org |
| 207 | } // namespace sdbusplus |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 208 | namespace sdbusplus |
| 209 | { |
| 210 | namespace org |
| 211 | { |
| 212 | namespace open_power |
| 213 | { |
| 214 | namespace Host |
| 215 | { |
| 216 | namespace Access |
| 217 | { |
| 218 | namespace Error |
| 219 | { |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 220 | struct ReadCFAM; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 221 | } // namespace Error |
| 222 | } // namespace Access |
| 223 | } // namespace Host |
| 224 | } // namespace open_power |
| 225 | } // namespace org |
| 226 | } // namespace sdbusplus |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 227 | namespace sdbusplus |
| 228 | { |
| 229 | namespace org |
| 230 | { |
| 231 | namespace open_power |
| 232 | { |
| 233 | namespace Host |
| 234 | { |
| 235 | namespace Access |
| 236 | { |
| 237 | namespace Error |
| 238 | { |
| 239 | struct WriteCFAM; |
| 240 | } // namespace Error |
| 241 | } // namespace Access |
| 242 | } // namespace Host |
| 243 | } // namespace open_power |
| 244 | } // namespace org |
| 245 | } // namespace sdbusplus |
| 246 | namespace sdbusplus |
| 247 | { |
| 248 | namespace org |
| 249 | { |
| 250 | namespace open_power |
| 251 | { |
| 252 | namespace Host |
| 253 | { |
| 254 | namespace Error |
| 255 | { |
| 256 | struct Event; |
| 257 | } // namespace Error |
| 258 | } // namespace Host |
| 259 | } // namespace open_power |
| 260 | } // namespace org |
| 261 | } // namespace sdbusplus |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 262 | namespace sdbusplus |
| 263 | { |
| 264 | namespace org |
| 265 | { |
| 266 | namespace open_power |
| 267 | { |
| 268 | namespace Host |
| 269 | { |
| 270 | namespace Error |
| 271 | { |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 272 | struct MaintenanceProcedure; |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 273 | } // namespace Error |
| 274 | } // namespace Host |
| 275 | } // namespace open_power |
| 276 | } // namespace org |
| 277 | } // namespace sdbusplus |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 278 | namespace sdbusplus |
| 279 | { |
| 280 | namespace org |
| 281 | { |
| 282 | namespace open_power |
| 283 | { |
| 284 | namespace Proc |
| 285 | { |
| 286 | namespace FSI |
| 287 | { |
| 288 | namespace Error |
| 289 | { |
| 290 | struct MasterDetectionFailure; |
| 291 | } // namespace Error |
| 292 | } // namespace FSI |
| 293 | } // namespace Proc |
| 294 | } // namespace open_power |
| 295 | } // namespace org |
| 296 | } // namespace sdbusplus |
| 297 | namespace sdbusplus |
| 298 | { |
| 299 | namespace org |
| 300 | { |
| 301 | namespace open_power |
| 302 | { |
| 303 | namespace Proc |
| 304 | { |
| 305 | namespace FSI |
| 306 | { |
| 307 | namespace Error |
| 308 | { |
| 309 | struct SlaveDetectionFailure; |
| 310 | } // namespace Error |
| 311 | } // namespace FSI |
| 312 | } // namespace Proc |
| 313 | } // namespace open_power |
| 314 | } // namespace org |
| 315 | } // namespace sdbusplus |
| 316 | namespace sdbusplus |
| 317 | { |
| 318 | namespace xyz |
| 319 | { |
| 320 | namespace openbmc_project |
| 321 | { |
| 322 | namespace BIOSConfig |
| 323 | { |
| 324 | namespace Common |
| 325 | { |
| 326 | namespace Error |
| 327 | { |
| 328 | struct AttributeNotFound; |
| 329 | } // namespace Error |
| 330 | } // namespace Common |
| 331 | } // namespace BIOSConfig |
| 332 | } // namespace openbmc_project |
| 333 | } // namespace xyz |
| 334 | } // namespace sdbusplus |
| 335 | namespace sdbusplus |
| 336 | { |
| 337 | namespace xyz |
| 338 | { |
| 339 | namespace openbmc_project |
| 340 | { |
| 341 | namespace BIOSConfig |
| 342 | { |
| 343 | namespace Common |
| 344 | { |
| 345 | namespace Error |
| 346 | { |
| 347 | struct AttributeReadOnly; |
| 348 | } // namespace Error |
| 349 | } // namespace Common |
| 350 | } // namespace BIOSConfig |
| 351 | } // namespace openbmc_project |
| 352 | } // namespace xyz |
| 353 | } // namespace sdbusplus |
| 354 | namespace sdbusplus |
| 355 | { |
| 356 | namespace xyz |
| 357 | { |
| 358 | namespace openbmc_project |
| 359 | { |
| 360 | namespace BIOSConfig |
| 361 | { |
| 362 | namespace Common |
| 363 | { |
| 364 | namespace Error |
| 365 | { |
| 366 | struct InvalidCurrentPassword; |
| 367 | } // namespace Error |
| 368 | } // namespace Common |
| 369 | } // namespace BIOSConfig |
| 370 | } // namespace openbmc_project |
| 371 | } // namespace xyz |
| 372 | } // namespace sdbusplus |
| 373 | namespace sdbusplus |
| 374 | { |
| 375 | namespace xyz |
| 376 | { |
| 377 | namespace openbmc_project |
| 378 | { |
| 379 | namespace BIOSConfig |
| 380 | { |
| 381 | namespace Common |
| 382 | { |
| 383 | namespace Error |
| 384 | { |
| 385 | struct PasswordNotSettable; |
| 386 | } // namespace Error |
| 387 | } // namespace Common |
| 388 | } // namespace BIOSConfig |
| 389 | } // namespace openbmc_project |
| 390 | } // namespace xyz |
| 391 | } // namespace sdbusplus |
| 392 | namespace sdbusplus |
| 393 | { |
| 394 | namespace xyz |
| 395 | { |
| 396 | namespace openbmc_project |
| 397 | { |
| 398 | namespace Certs |
| 399 | { |
| 400 | namespace Error |
| 401 | { |
| 402 | struct InvalidCertificate; |
| 403 | } // namespace Error |
| 404 | } // namespace Certs |
| 405 | } // namespace openbmc_project |
| 406 | } // namespace xyz |
| 407 | } // namespace sdbusplus |
| 408 | namespace sdbusplus |
| 409 | { |
| 410 | namespace xyz |
| 411 | { |
| 412 | namespace openbmc_project |
| 413 | { |
| 414 | namespace Chassis |
| 415 | { |
| 416 | namespace Common |
| 417 | { |
| 418 | namespace Error |
| 419 | { |
| 420 | struct IOError; |
| 421 | } // namespace Error |
| 422 | } // namespace Common |
| 423 | } // namespace Chassis |
| 424 | } // namespace openbmc_project |
| 425 | } // namespace xyz |
| 426 | } // namespace sdbusplus |
| 427 | namespace sdbusplus |
| 428 | { |
| 429 | namespace xyz |
| 430 | { |
| 431 | namespace openbmc_project |
| 432 | { |
| 433 | namespace Chassis |
| 434 | { |
| 435 | namespace Common |
| 436 | { |
| 437 | namespace Error |
| 438 | { |
| 439 | struct UnsupportedCommand; |
| 440 | } // namespace Error |
| 441 | } // namespace Common |
| 442 | } // namespace Chassis |
| 443 | } // namespace openbmc_project |
| 444 | } // namespace xyz |
| 445 | } // namespace sdbusplus |
| 446 | namespace sdbusplus |
| 447 | { |
| 448 | namespace xyz |
| 449 | { |
| 450 | namespace openbmc_project |
| 451 | { |
| 452 | namespace Common |
| 453 | { |
| 454 | namespace Callout |
| 455 | { |
| 456 | namespace Error |
| 457 | { |
| 458 | struct Device; |
| 459 | } // namespace Error |
| 460 | } // namespace Callout |
| 461 | } // namespace Common |
| 462 | } // namespace openbmc_project |
| 463 | } // namespace xyz |
| 464 | } // namespace sdbusplus |
| 465 | namespace sdbusplus |
| 466 | { |
| 467 | namespace xyz |
| 468 | { |
| 469 | namespace openbmc_project |
| 470 | { |
| 471 | namespace Common |
| 472 | { |
| 473 | namespace Callout |
| 474 | { |
| 475 | namespace Error |
| 476 | { |
| 477 | struct GPIO; |
| 478 | } // namespace Error |
| 479 | } // namespace Callout |
| 480 | } // namespace Common |
| 481 | } // namespace openbmc_project |
| 482 | } // namespace xyz |
| 483 | } // namespace sdbusplus |
| 484 | namespace sdbusplus |
| 485 | { |
| 486 | namespace xyz |
| 487 | { |
| 488 | namespace openbmc_project |
| 489 | { |
| 490 | namespace Common |
| 491 | { |
| 492 | namespace Callout |
| 493 | { |
| 494 | namespace Error |
| 495 | { |
| 496 | struct IIC; |
| 497 | } // namespace Error |
| 498 | } // namespace Callout |
| 499 | } // namespace Common |
| 500 | } // namespace openbmc_project |
| 501 | } // namespace xyz |
| 502 | } // namespace sdbusplus |
| 503 | namespace sdbusplus |
| 504 | { |
| 505 | namespace xyz |
| 506 | { |
| 507 | namespace openbmc_project |
| 508 | { |
| 509 | namespace Common |
| 510 | { |
| 511 | namespace Callout |
| 512 | { |
| 513 | namespace Error |
| 514 | { |
| 515 | struct IPMISensor; |
| 516 | } // namespace Error |
| 517 | } // namespace Callout |
| 518 | } // namespace Common |
| 519 | } // namespace openbmc_project |
| 520 | } // namespace xyz |
| 521 | } // namespace sdbusplus |
| 522 | namespace sdbusplus |
| 523 | { |
| 524 | namespace xyz |
| 525 | { |
| 526 | namespace openbmc_project |
| 527 | { |
| 528 | namespace Common |
| 529 | { |
| 530 | namespace Callout |
| 531 | { |
| 532 | namespace Error |
| 533 | { |
| 534 | struct Inventory; |
| 535 | } // namespace Error |
| 536 | } // namespace Callout |
| 537 | } // namespace Common |
| 538 | } // namespace openbmc_project |
| 539 | } // namespace xyz |
| 540 | } // namespace sdbusplus |
| 541 | namespace sdbusplus |
| 542 | { |
| 543 | namespace xyz |
| 544 | { |
| 545 | namespace openbmc_project |
| 546 | { |
| 547 | namespace Common |
| 548 | { |
| 549 | namespace Device |
| 550 | { |
| 551 | namespace Error |
| 552 | { |
| 553 | struct ReadFailure; |
| 554 | } // namespace Error |
| 555 | } // namespace Device |
| 556 | } // namespace Common |
| 557 | } // namespace openbmc_project |
| 558 | } // namespace xyz |
| 559 | } // namespace sdbusplus |
| 560 | namespace sdbusplus |
| 561 | { |
| 562 | namespace xyz |
| 563 | { |
| 564 | namespace openbmc_project |
| 565 | { |
| 566 | namespace Common |
| 567 | { |
| 568 | namespace Device |
| 569 | { |
| 570 | namespace Error |
| 571 | { |
| 572 | struct WriteFailure; |
| 573 | } // namespace Error |
| 574 | } // namespace Device |
| 575 | } // namespace Common |
| 576 | } // namespace openbmc_project |
| 577 | } // namespace xyz |
| 578 | } // namespace sdbusplus |
| 579 | namespace sdbusplus |
| 580 | { |
| 581 | namespace xyz |
| 582 | { |
| 583 | namespace openbmc_project |
| 584 | { |
| 585 | namespace Common |
| 586 | { |
| 587 | namespace Error |
| 588 | { |
| 589 | struct InsufficientPermission; |
| 590 | } // namespace Error |
| 591 | } // namespace Common |
| 592 | } // namespace openbmc_project |
| 593 | } // namespace xyz |
| 594 | } // namespace sdbusplus |
| 595 | namespace sdbusplus |
| 596 | { |
| 597 | namespace xyz |
| 598 | { |
| 599 | namespace openbmc_project |
| 600 | { |
| 601 | namespace Common |
| 602 | { |
| 603 | namespace Error |
| 604 | { |
| 605 | struct InternalFailure; |
| 606 | } // namespace Error |
| 607 | } // namespace Common |
| 608 | } // namespace openbmc_project |
| 609 | } // namespace xyz |
| 610 | } // namespace sdbusplus |
| 611 | namespace sdbusplus |
| 612 | { |
| 613 | namespace xyz |
| 614 | { |
| 615 | namespace openbmc_project |
| 616 | { |
| 617 | namespace Common |
| 618 | { |
| 619 | namespace Error |
| 620 | { |
| 621 | struct InvalidArgument; |
| 622 | } // namespace Error |
| 623 | } // namespace Common |
| 624 | } // namespace openbmc_project |
| 625 | } // namespace xyz |
| 626 | } // namespace sdbusplus |
| 627 | namespace sdbusplus |
| 628 | { |
| 629 | namespace xyz |
| 630 | { |
| 631 | namespace openbmc_project |
| 632 | { |
| 633 | namespace Common |
| 634 | { |
| 635 | namespace Error |
| 636 | { |
| 637 | struct NoCACertificate; |
| 638 | } // namespace Error |
| 639 | } // namespace Common |
| 640 | } // namespace openbmc_project |
| 641 | } // namespace xyz |
| 642 | } // namespace sdbusplus |
| 643 | namespace sdbusplus |
| 644 | { |
| 645 | namespace xyz |
| 646 | { |
| 647 | namespace openbmc_project |
| 648 | { |
| 649 | namespace Common |
| 650 | { |
| 651 | namespace Error |
| 652 | { |
| 653 | struct NotAllowed; |
| 654 | } // namespace Error |
| 655 | } // namespace Common |
| 656 | } // namespace openbmc_project |
| 657 | } // namespace xyz |
| 658 | } // namespace sdbusplus |
| 659 | namespace sdbusplus |
| 660 | { |
| 661 | namespace xyz |
| 662 | { |
| 663 | namespace openbmc_project |
| 664 | { |
| 665 | namespace Common |
| 666 | { |
| 667 | namespace Error |
| 668 | { |
| 669 | struct ResourceNotFound; |
| 670 | } // namespace Error |
| 671 | } // namespace Common |
| 672 | } // namespace openbmc_project |
| 673 | } // namespace xyz |
| 674 | } // namespace sdbusplus |
| 675 | namespace sdbusplus |
| 676 | { |
| 677 | namespace xyz |
| 678 | { |
| 679 | namespace openbmc_project |
| 680 | { |
| 681 | namespace Common |
| 682 | { |
| 683 | namespace Error |
| 684 | { |
| 685 | struct Timeout; |
| 686 | } // namespace Error |
| 687 | } // namespace Common |
| 688 | } // namespace openbmc_project |
| 689 | } // namespace xyz |
| 690 | } // namespace sdbusplus |
| 691 | namespace sdbusplus |
| 692 | { |
| 693 | namespace xyz |
| 694 | { |
| 695 | namespace openbmc_project |
| 696 | { |
| 697 | namespace Common |
| 698 | { |
| 699 | namespace Error |
| 700 | { |
| 701 | struct TooManyResources; |
| 702 | } // namespace Error |
| 703 | } // namespace Common |
| 704 | } // namespace openbmc_project |
| 705 | } // namespace xyz |
| 706 | } // namespace sdbusplus |
| 707 | namespace sdbusplus |
| 708 | { |
| 709 | namespace xyz |
| 710 | { |
| 711 | namespace openbmc_project |
| 712 | { |
| 713 | namespace Common |
| 714 | { |
| 715 | namespace Error |
| 716 | { |
| 717 | struct Unavailable; |
| 718 | } // namespace Error |
| 719 | } // namespace Common |
| 720 | } // namespace openbmc_project |
| 721 | } // namespace xyz |
| 722 | } // namespace sdbusplus |
| 723 | namespace sdbusplus |
| 724 | { |
| 725 | namespace xyz |
| 726 | { |
| 727 | namespace openbmc_project |
| 728 | { |
| 729 | namespace Common |
| 730 | { |
| 731 | namespace Error |
| 732 | { |
| 733 | struct UnsupportedRequest; |
| 734 | } // namespace Error |
| 735 | } // namespace Common |
| 736 | } // namespace openbmc_project |
| 737 | } // namespace xyz |
| 738 | } // namespace sdbusplus |
| 739 | namespace sdbusplus |
| 740 | { |
| 741 | namespace xyz |
| 742 | { |
| 743 | namespace openbmc_project |
| 744 | { |
| 745 | namespace Common |
| 746 | { |
| 747 | namespace File |
| 748 | { |
| 749 | namespace Error |
| 750 | { |
| 751 | struct Open; |
| 752 | } // namespace Error |
| 753 | } // namespace File |
| 754 | } // namespace Common |
| 755 | } // namespace openbmc_project |
| 756 | } // namespace xyz |
| 757 | } // namespace sdbusplus |
| 758 | namespace sdbusplus |
| 759 | { |
| 760 | namespace xyz |
| 761 | { |
| 762 | namespace openbmc_project |
| 763 | { |
| 764 | namespace Common |
| 765 | { |
| 766 | namespace File |
| 767 | { |
| 768 | namespace Error |
| 769 | { |
| 770 | struct Read; |
| 771 | } // namespace Error |
| 772 | } // namespace File |
| 773 | } // namespace Common |
| 774 | } // namespace openbmc_project |
| 775 | } // namespace xyz |
| 776 | } // namespace sdbusplus |
| 777 | namespace sdbusplus |
| 778 | { |
| 779 | namespace xyz |
| 780 | { |
| 781 | namespace openbmc_project |
| 782 | { |
| 783 | namespace Common |
| 784 | { |
| 785 | namespace File |
| 786 | { |
| 787 | namespace Error |
| 788 | { |
| 789 | struct Seek; |
| 790 | } // namespace Error |
| 791 | } // namespace File |
| 792 | } // namespace Common |
| 793 | } // namespace openbmc_project |
| 794 | } // namespace xyz |
| 795 | } // namespace sdbusplus |
| 796 | namespace sdbusplus |
| 797 | { |
| 798 | namespace xyz |
| 799 | { |
| 800 | namespace openbmc_project |
| 801 | { |
| 802 | namespace Common |
| 803 | { |
| 804 | namespace File |
| 805 | { |
| 806 | namespace Error |
| 807 | { |
| 808 | struct Write; |
| 809 | } // namespace Error |
| 810 | } // namespace File |
| 811 | } // namespace Common |
| 812 | } // namespace openbmc_project |
| 813 | } // namespace xyz |
| 814 | } // namespace sdbusplus |
| 815 | namespace sdbusplus |
| 816 | { |
| 817 | namespace xyz |
| 818 | { |
| 819 | namespace openbmc_project |
| 820 | { |
| 821 | namespace Control |
| 822 | { |
| 823 | namespace Device |
| 824 | { |
| 825 | namespace Error |
| 826 | { |
| 827 | struct WriteFailure; |
| 828 | } // namespace Error |
| 829 | } // namespace Device |
| 830 | } // namespace Control |
| 831 | } // namespace openbmc_project |
| 832 | } // namespace xyz |
| 833 | } // namespace sdbusplus |
| 834 | namespace sdbusplus |
| 835 | { |
| 836 | namespace xyz |
| 837 | { |
| 838 | namespace openbmc_project |
| 839 | { |
| 840 | namespace Control |
| 841 | { |
| 842 | namespace Host |
| 843 | { |
| 844 | namespace Error |
| 845 | { |
| 846 | struct CommandNotSupported; |
| 847 | } // namespace Error |
| 848 | } // namespace Host |
| 849 | } // namespace Control |
| 850 | } // namespace openbmc_project |
| 851 | } // namespace xyz |
| 852 | } // namespace sdbusplus |
| 853 | namespace sdbusplus |
| 854 | { |
| 855 | namespace xyz |
| 856 | { |
| 857 | namespace openbmc_project |
| 858 | { |
| 859 | namespace Dump |
| 860 | { |
| 861 | namespace Create |
| 862 | { |
| 863 | namespace Error |
| 864 | { |
| 865 | struct Disabled; |
| 866 | } // namespace Error |
| 867 | } // namespace Create |
| 868 | } // namespace Dump |
| 869 | } // namespace openbmc_project |
| 870 | } // namespace xyz |
| 871 | } // namespace sdbusplus |
| 872 | namespace sdbusplus |
| 873 | { |
| 874 | namespace xyz |
| 875 | { |
| 876 | namespace openbmc_project |
| 877 | { |
| 878 | namespace Dump |
| 879 | { |
| 880 | namespace Create |
| 881 | { |
| 882 | namespace Error |
| 883 | { |
| 884 | struct QuotaExceeded; |
| 885 | } // namespace Error |
| 886 | } // namespace Create |
| 887 | } // namespace Dump |
| 888 | } // namespace openbmc_project |
| 889 | } // namespace xyz |
| 890 | } // namespace sdbusplus |
| 891 | namespace sdbusplus |
| 892 | { |
| 893 | namespace xyz |
| 894 | { |
| 895 | namespace openbmc_project |
| 896 | { |
| 897 | namespace HardwareIsolation |
| 898 | { |
| 899 | namespace Error |
| 900 | { |
| 901 | struct IsolatedAlready; |
| 902 | } // namespace Error |
| 903 | } // namespace HardwareIsolation |
| 904 | } // namespace openbmc_project |
| 905 | } // namespace xyz |
| 906 | } // namespace sdbusplus |
| 907 | namespace sdbusplus |
| 908 | { |
| 909 | namespace xyz |
| 910 | { |
| 911 | namespace openbmc_project |
| 912 | { |
| 913 | namespace Inventory |
| 914 | { |
| 915 | namespace Error |
| 916 | { |
| 917 | struct Nonfunctional; |
| 918 | } // namespace Error |
| 919 | } // namespace Inventory |
| 920 | } // namespace openbmc_project |
| 921 | } // namespace xyz |
| 922 | } // namespace sdbusplus |
| 923 | namespace sdbusplus |
| 924 | { |
| 925 | namespace xyz |
| 926 | { |
| 927 | namespace openbmc_project |
| 928 | { |
| 929 | namespace Inventory |
| 930 | { |
| 931 | namespace Error |
| 932 | { |
| 933 | struct NotPresent; |
| 934 | } // namespace Error |
| 935 | } // namespace Inventory |
| 936 | } // namespace openbmc_project |
| 937 | } // namespace xyz |
| 938 | } // namespace sdbusplus |
| 939 | namespace sdbusplus |
| 940 | { |
| 941 | namespace xyz |
| 942 | { |
| 943 | namespace openbmc_project |
| 944 | { |
| 945 | namespace Logging |
| 946 | { |
| 947 | namespace SEL |
| 948 | { |
| 949 | namespace Error |
| 950 | { |
| 951 | struct Created; |
| 952 | } // namespace Error |
| 953 | } // namespace SEL |
| 954 | } // namespace Logging |
| 955 | } // namespace openbmc_project |
| 956 | } // namespace xyz |
| 957 | } // namespace sdbusplus |
| 958 | namespace sdbusplus |
| 959 | { |
| 960 | namespace xyz |
| 961 | { |
| 962 | namespace openbmc_project |
| 963 | { |
| 964 | namespace Memory |
| 965 | { |
| 966 | namespace MemoryECC |
| 967 | { |
| 968 | namespace Error |
| 969 | { |
| 970 | struct ceCount; |
| 971 | } // namespace Error |
| 972 | } // namespace MemoryECC |
| 973 | } // namespace Memory |
| 974 | } // namespace openbmc_project |
| 975 | } // namespace xyz |
| 976 | } // namespace sdbusplus |
| 977 | namespace sdbusplus |
| 978 | { |
| 979 | namespace xyz |
| 980 | { |
| 981 | namespace openbmc_project |
| 982 | { |
| 983 | namespace Memory |
| 984 | { |
| 985 | namespace MemoryECC |
| 986 | { |
| 987 | namespace Error |
| 988 | { |
| 989 | struct isLoggingLimitReached; |
| 990 | } // namespace Error |
| 991 | } // namespace MemoryECC |
| 992 | } // namespace Memory |
| 993 | } // namespace openbmc_project |
| 994 | } // namespace xyz |
| 995 | } // namespace sdbusplus |
| 996 | namespace sdbusplus |
| 997 | { |
| 998 | namespace xyz |
| 999 | { |
| 1000 | namespace openbmc_project |
| 1001 | { |
| 1002 | namespace Memory |
| 1003 | { |
| 1004 | namespace MemoryECC |
| 1005 | { |
| 1006 | namespace Error |
| 1007 | { |
| 1008 | struct ueCount; |
| 1009 | } // namespace Error |
| 1010 | } // namespace MemoryECC |
| 1011 | } // namespace Memory |
| 1012 | } // namespace openbmc_project |
| 1013 | } // namespace xyz |
| 1014 | } // namespace sdbusplus |
| 1015 | namespace sdbusplus |
| 1016 | { |
| 1017 | namespace xyz |
| 1018 | { |
| 1019 | namespace openbmc_project |
| 1020 | { |
| 1021 | namespace Nvme |
| 1022 | { |
| 1023 | namespace Status |
| 1024 | { |
| 1025 | namespace Error |
| 1026 | { |
| 1027 | struct BackupDeviceFault; |
| 1028 | } // namespace Error |
| 1029 | } // namespace Status |
| 1030 | } // namespace Nvme |
| 1031 | } // namespace openbmc_project |
| 1032 | } // namespace xyz |
| 1033 | } // namespace sdbusplus |
| 1034 | namespace sdbusplus |
| 1035 | { |
| 1036 | namespace xyz |
| 1037 | { |
| 1038 | namespace openbmc_project |
| 1039 | { |
| 1040 | namespace Nvme |
| 1041 | { |
| 1042 | namespace Status |
| 1043 | { |
| 1044 | namespace Error |
| 1045 | { |
| 1046 | struct CapacityFault; |
| 1047 | } // namespace Error |
| 1048 | } // namespace Status |
| 1049 | } // namespace Nvme |
| 1050 | } // namespace openbmc_project |
| 1051 | } // namespace xyz |
| 1052 | } // namespace sdbusplus |
| 1053 | namespace sdbusplus |
| 1054 | { |
| 1055 | namespace xyz |
| 1056 | { |
| 1057 | namespace openbmc_project |
| 1058 | { |
| 1059 | namespace Nvme |
| 1060 | { |
| 1061 | namespace Status |
| 1062 | { |
| 1063 | namespace Error |
| 1064 | { |
| 1065 | struct DegradesFault; |
| 1066 | } // namespace Error |
| 1067 | } // namespace Status |
| 1068 | } // namespace Nvme |
| 1069 | } // namespace openbmc_project |
| 1070 | } // namespace xyz |
| 1071 | } // namespace sdbusplus |
| 1072 | namespace sdbusplus |
| 1073 | { |
| 1074 | namespace xyz |
| 1075 | { |
| 1076 | namespace openbmc_project |
| 1077 | { |
| 1078 | namespace Nvme |
| 1079 | { |
| 1080 | namespace Status |
| 1081 | { |
| 1082 | namespace Error |
| 1083 | { |
| 1084 | struct MediaFault; |
| 1085 | } // namespace Error |
| 1086 | } // namespace Status |
| 1087 | } // namespace Nvme |
| 1088 | } // namespace openbmc_project |
| 1089 | } // namespace xyz |
| 1090 | } // namespace sdbusplus |
| 1091 | namespace sdbusplus |
| 1092 | { |
| 1093 | namespace xyz |
| 1094 | { |
| 1095 | namespace openbmc_project |
| 1096 | { |
| 1097 | namespace Nvme |
| 1098 | { |
| 1099 | namespace Status |
| 1100 | { |
| 1101 | namespace Error |
| 1102 | { |
| 1103 | struct TemperatureFault; |
| 1104 | } // namespace Error |
| 1105 | } // namespace Status |
| 1106 | } // namespace Nvme |
| 1107 | } // namespace openbmc_project |
| 1108 | } // namespace xyz |
| 1109 | } // namespace sdbusplus |
| 1110 | namespace sdbusplus |
| 1111 | { |
| 1112 | namespace xyz |
| 1113 | { |
| 1114 | namespace openbmc_project |
| 1115 | { |
| 1116 | namespace ScheduledTime |
| 1117 | { |
| 1118 | namespace Error |
| 1119 | { |
| 1120 | struct InvalidTime; |
| 1121 | } // namespace Error |
| 1122 | } // namespace ScheduledTime |
| 1123 | } // namespace openbmc_project |
| 1124 | } // namespace xyz |
| 1125 | } // namespace sdbusplus |
| 1126 | namespace sdbusplus |
| 1127 | { |
| 1128 | namespace xyz |
| 1129 | { |
| 1130 | namespace openbmc_project |
| 1131 | { |
| 1132 | namespace Sensor |
| 1133 | { |
| 1134 | namespace Device |
| 1135 | { |
| 1136 | namespace Error |
| 1137 | { |
| 1138 | struct ReadFailure; |
| 1139 | } // namespace Error |
| 1140 | } // namespace Device |
| 1141 | } // namespace Sensor |
| 1142 | } // namespace openbmc_project |
| 1143 | } // namespace xyz |
| 1144 | } // namespace sdbusplus |
| 1145 | namespace sdbusplus |
| 1146 | { |
| 1147 | namespace xyz |
| 1148 | { |
| 1149 | namespace openbmc_project |
| 1150 | { |
| 1151 | namespace Sensor |
| 1152 | { |
| 1153 | namespace Threshold |
| 1154 | { |
| 1155 | namespace Error |
| 1156 | { |
| 1157 | struct CriticalHigh; |
| 1158 | } // namespace Error |
| 1159 | } // namespace Threshold |
| 1160 | } // namespace Sensor |
| 1161 | } // namespace openbmc_project |
| 1162 | } // namespace xyz |
| 1163 | } // namespace sdbusplus |
| 1164 | namespace sdbusplus |
| 1165 | { |
| 1166 | namespace xyz |
| 1167 | { |
| 1168 | namespace openbmc_project |
| 1169 | { |
| 1170 | namespace Sensor |
| 1171 | { |
| 1172 | namespace Threshold |
| 1173 | { |
| 1174 | namespace Error |
| 1175 | { |
| 1176 | struct CriticalLow; |
| 1177 | } // namespace Error |
| 1178 | } // namespace Threshold |
| 1179 | } // namespace Sensor |
| 1180 | } // namespace openbmc_project |
| 1181 | } // namespace xyz |
| 1182 | } // namespace sdbusplus |
| 1183 | namespace sdbusplus |
| 1184 | { |
| 1185 | namespace xyz |
| 1186 | { |
| 1187 | namespace openbmc_project |
| 1188 | { |
| 1189 | namespace Smbios |
| 1190 | { |
| 1191 | namespace MDR_V2 |
| 1192 | { |
| 1193 | namespace Error |
| 1194 | { |
| 1195 | struct InvalidId; |
| 1196 | } // namespace Error |
| 1197 | } // namespace MDR_V2 |
| 1198 | } // namespace Smbios |
| 1199 | } // namespace openbmc_project |
| 1200 | } // namespace xyz |
| 1201 | } // namespace sdbusplus |
| 1202 | namespace sdbusplus |
| 1203 | { |
| 1204 | namespace xyz |
| 1205 | { |
| 1206 | namespace openbmc_project |
| 1207 | { |
| 1208 | namespace Smbios |
| 1209 | { |
| 1210 | namespace MDR_V2 |
| 1211 | { |
| 1212 | namespace Error |
| 1213 | { |
| 1214 | struct InvalidParameter; |
| 1215 | } // namespace Error |
| 1216 | } // namespace MDR_V2 |
| 1217 | } // namespace Smbios |
| 1218 | } // namespace openbmc_project |
| 1219 | } // namespace xyz |
| 1220 | } // namespace sdbusplus |
| 1221 | namespace sdbusplus |
| 1222 | { |
| 1223 | namespace xyz |
| 1224 | { |
| 1225 | namespace openbmc_project |
| 1226 | { |
| 1227 | namespace Smbios |
| 1228 | { |
| 1229 | namespace MDR_V2 |
| 1230 | { |
| 1231 | namespace Error |
| 1232 | { |
| 1233 | struct UpdateInProgress; |
| 1234 | } // namespace Error |
| 1235 | } // namespace MDR_V2 |
| 1236 | } // namespace Smbios |
| 1237 | } // namespace openbmc_project |
| 1238 | } // namespace xyz |
| 1239 | } // namespace sdbusplus |
| 1240 | namespace sdbusplus |
| 1241 | { |
| 1242 | namespace xyz |
| 1243 | { |
| 1244 | namespace openbmc_project |
| 1245 | { |
| 1246 | namespace Software |
| 1247 | { |
| 1248 | namespace Version |
| 1249 | { |
| 1250 | namespace Error |
| 1251 | { |
| 1252 | struct AlreadyExists; |
| 1253 | } // namespace Error |
| 1254 | } // namespace Version |
| 1255 | } // namespace Software |
| 1256 | } // namespace openbmc_project |
| 1257 | } // namespace xyz |
| 1258 | } // namespace sdbusplus |
| 1259 | namespace sdbusplus |
| 1260 | { |
| 1261 | namespace xyz |
| 1262 | { |
| 1263 | namespace openbmc_project |
| 1264 | { |
| 1265 | namespace Software |
| 1266 | { |
| 1267 | namespace Version |
| 1268 | { |
| 1269 | namespace Error |
| 1270 | { |
| 1271 | struct Incompatible; |
| 1272 | } // namespace Error |
| 1273 | } // namespace Version |
| 1274 | } // namespace Software |
| 1275 | } // namespace openbmc_project |
| 1276 | } // namespace xyz |
| 1277 | } // namespace sdbusplus |
| 1278 | namespace sdbusplus |
| 1279 | { |
| 1280 | namespace xyz |
| 1281 | { |
| 1282 | namespace openbmc_project |
| 1283 | { |
| 1284 | namespace State |
| 1285 | { |
| 1286 | namespace BMC |
| 1287 | { |
| 1288 | namespace Error |
| 1289 | { |
| 1290 | struct MultiUserTargetFailure; |
| 1291 | } // namespace Error |
| 1292 | } // namespace BMC |
| 1293 | } // namespace State |
| 1294 | } // namespace openbmc_project |
| 1295 | } // namespace xyz |
| 1296 | } // namespace sdbusplus |
| 1297 | namespace sdbusplus |
| 1298 | { |
| 1299 | namespace xyz |
| 1300 | { |
| 1301 | namespace openbmc_project |
| 1302 | { |
| 1303 | namespace State |
| 1304 | { |
| 1305 | namespace Chassis |
| 1306 | { |
| 1307 | namespace Error |
| 1308 | { |
| 1309 | struct PowerOffFailure; |
| 1310 | } // namespace Error |
| 1311 | } // namespace Chassis |
| 1312 | } // namespace State |
| 1313 | } // namespace openbmc_project |
| 1314 | } // namespace xyz |
| 1315 | } // namespace sdbusplus |
| 1316 | namespace sdbusplus |
| 1317 | { |
| 1318 | namespace xyz |
| 1319 | { |
| 1320 | namespace openbmc_project |
| 1321 | { |
| 1322 | namespace State |
| 1323 | { |
| 1324 | namespace Chassis |
| 1325 | { |
| 1326 | namespace Error |
| 1327 | { |
| 1328 | struct PowerOnFailure; |
| 1329 | } // namespace Error |
| 1330 | } // namespace Chassis |
| 1331 | } // namespace State |
| 1332 | } // namespace openbmc_project |
| 1333 | } // namespace xyz |
| 1334 | } // namespace sdbusplus |
| 1335 | namespace sdbusplus |
| 1336 | { |
| 1337 | namespace xyz |
| 1338 | { |
| 1339 | namespace openbmc_project |
| 1340 | { |
| 1341 | namespace State |
| 1342 | { |
| 1343 | namespace Host |
| 1344 | { |
| 1345 | namespace Error |
| 1346 | { |
| 1347 | struct HostMinStartFailure; |
| 1348 | } // namespace Error |
| 1349 | } // namespace Host |
| 1350 | } // namespace State |
| 1351 | } // namespace openbmc_project |
| 1352 | } // namespace xyz |
| 1353 | } // namespace sdbusplus |
| 1354 | namespace sdbusplus |
| 1355 | { |
| 1356 | namespace xyz |
| 1357 | { |
| 1358 | namespace openbmc_project |
| 1359 | { |
| 1360 | namespace State |
| 1361 | { |
| 1362 | namespace Host |
| 1363 | { |
| 1364 | namespace Error |
| 1365 | { |
| 1366 | struct HostRebootFailure; |
| 1367 | } // namespace Error |
| 1368 | } // namespace Host |
| 1369 | } // namespace State |
| 1370 | } // namespace openbmc_project |
| 1371 | } // namespace xyz |
| 1372 | } // namespace sdbusplus |
| 1373 | namespace sdbusplus |
| 1374 | { |
| 1375 | namespace xyz |
| 1376 | { |
| 1377 | namespace openbmc_project |
| 1378 | { |
| 1379 | namespace State |
| 1380 | { |
| 1381 | namespace Host |
| 1382 | { |
| 1383 | namespace Error |
| 1384 | { |
| 1385 | struct HostShutdownFailure; |
| 1386 | } // namespace Error |
| 1387 | } // namespace Host |
| 1388 | } // namespace State |
| 1389 | } // namespace openbmc_project |
| 1390 | } // namespace xyz |
| 1391 | } // namespace sdbusplus |
| 1392 | namespace sdbusplus |
| 1393 | { |
| 1394 | namespace xyz |
| 1395 | { |
| 1396 | namespace openbmc_project |
| 1397 | { |
| 1398 | namespace State |
| 1399 | { |
| 1400 | namespace Host |
| 1401 | { |
| 1402 | namespace Error |
| 1403 | { |
| 1404 | struct HostStartFailure; |
| 1405 | } // namespace Error |
| 1406 | } // namespace Host |
| 1407 | } // namespace State |
| 1408 | } // namespace openbmc_project |
| 1409 | } // namespace xyz |
| 1410 | } // namespace sdbusplus |
| 1411 | namespace sdbusplus |
| 1412 | { |
| 1413 | namespace xyz |
| 1414 | { |
| 1415 | namespace openbmc_project |
| 1416 | { |
| 1417 | namespace State |
| 1418 | { |
| 1419 | namespace Host |
| 1420 | { |
| 1421 | namespace Error |
| 1422 | { |
| 1423 | struct HostStopFailure; |
| 1424 | } // namespace Error |
| 1425 | } // namespace Host |
| 1426 | } // namespace State |
| 1427 | } // namespace openbmc_project |
| 1428 | } // namespace xyz |
| 1429 | } // namespace sdbusplus |
| 1430 | namespace sdbusplus |
| 1431 | { |
| 1432 | namespace xyz |
| 1433 | { |
| 1434 | namespace openbmc_project |
| 1435 | { |
| 1436 | namespace State |
| 1437 | { |
| 1438 | namespace Host |
| 1439 | { |
| 1440 | namespace Error |
| 1441 | { |
| 1442 | struct SoftOffTimeout; |
| 1443 | } // namespace Error |
| 1444 | } // namespace Host |
| 1445 | } // namespace State |
| 1446 | } // namespace openbmc_project |
| 1447 | } // namespace xyz |
| 1448 | } // namespace sdbusplus |
| 1449 | namespace sdbusplus |
| 1450 | { |
| 1451 | namespace xyz |
| 1452 | { |
| 1453 | namespace openbmc_project |
| 1454 | { |
| 1455 | namespace State |
| 1456 | { |
| 1457 | namespace Shutdown |
| 1458 | { |
| 1459 | namespace Inventory |
| 1460 | { |
| 1461 | namespace Error |
| 1462 | { |
| 1463 | struct Fan; |
| 1464 | } // namespace Error |
| 1465 | } // namespace Inventory |
| 1466 | } // namespace Shutdown |
| 1467 | } // namespace State |
| 1468 | } // namespace openbmc_project |
| 1469 | } // namespace xyz |
| 1470 | } // namespace sdbusplus |
| 1471 | namespace sdbusplus |
| 1472 | { |
| 1473 | namespace xyz |
| 1474 | { |
| 1475 | namespace openbmc_project |
| 1476 | { |
| 1477 | namespace State |
| 1478 | { |
| 1479 | namespace Shutdown |
| 1480 | { |
| 1481 | namespace Power |
| 1482 | { |
| 1483 | namespace Error |
| 1484 | { |
| 1485 | struct Blackout; |
| 1486 | } // namespace Error |
| 1487 | } // namespace Power |
| 1488 | } // namespace Shutdown |
| 1489 | } // namespace State |
| 1490 | } // namespace openbmc_project |
| 1491 | } // namespace xyz |
| 1492 | } // namespace sdbusplus |
| 1493 | namespace sdbusplus |
| 1494 | { |
| 1495 | namespace xyz |
| 1496 | { |
| 1497 | namespace openbmc_project |
| 1498 | { |
| 1499 | namespace State |
| 1500 | { |
| 1501 | namespace Shutdown |
| 1502 | { |
| 1503 | namespace Power |
| 1504 | { |
| 1505 | namespace Error |
| 1506 | { |
| 1507 | struct Fault; |
| 1508 | } // namespace Error |
| 1509 | } // namespace Power |
| 1510 | } // namespace Shutdown |
| 1511 | } // namespace State |
| 1512 | } // namespace openbmc_project |
| 1513 | } // namespace xyz |
| 1514 | } // namespace sdbusplus |
| 1515 | namespace sdbusplus |
| 1516 | { |
| 1517 | namespace xyz |
| 1518 | { |
| 1519 | namespace openbmc_project |
| 1520 | { |
| 1521 | namespace State |
| 1522 | { |
| 1523 | namespace Shutdown |
| 1524 | { |
| 1525 | namespace Power |
| 1526 | { |
| 1527 | namespace Error |
| 1528 | { |
| 1529 | struct Regulator; |
| 1530 | } // namespace Error |
| 1531 | } // namespace Power |
| 1532 | } // namespace Shutdown |
| 1533 | } // namespace State |
| 1534 | } // namespace openbmc_project |
| 1535 | } // namespace xyz |
| 1536 | } // namespace sdbusplus |
| 1537 | namespace sdbusplus |
| 1538 | { |
| 1539 | namespace xyz |
| 1540 | { |
| 1541 | namespace openbmc_project |
| 1542 | { |
| 1543 | namespace State |
| 1544 | { |
| 1545 | namespace Shutdown |
| 1546 | { |
| 1547 | namespace ThermalEvent |
| 1548 | { |
| 1549 | namespace Error |
| 1550 | { |
| 1551 | struct Ambient; |
| 1552 | } // namespace Error |
| 1553 | } // namespace ThermalEvent |
| 1554 | } // namespace Shutdown |
| 1555 | } // namespace State |
| 1556 | } // namespace openbmc_project |
| 1557 | } // namespace xyz |
| 1558 | } // namespace sdbusplus |
| 1559 | namespace sdbusplus |
| 1560 | { |
| 1561 | namespace xyz |
| 1562 | { |
| 1563 | namespace openbmc_project |
| 1564 | { |
| 1565 | namespace State |
| 1566 | { |
| 1567 | namespace Shutdown |
| 1568 | { |
| 1569 | namespace ThermalEvent |
| 1570 | { |
| 1571 | namespace Error |
| 1572 | { |
| 1573 | struct GPU; |
| 1574 | } // namespace Error |
| 1575 | } // namespace ThermalEvent |
| 1576 | } // namespace Shutdown |
| 1577 | } // namespace State |
| 1578 | } // namespace openbmc_project |
| 1579 | } // namespace xyz |
| 1580 | } // namespace sdbusplus |
| 1581 | namespace sdbusplus |
| 1582 | { |
| 1583 | namespace xyz |
| 1584 | { |
| 1585 | namespace openbmc_project |
| 1586 | { |
| 1587 | namespace State |
| 1588 | { |
| 1589 | namespace Shutdown |
| 1590 | { |
| 1591 | namespace ThermalEvent |
| 1592 | { |
| 1593 | namespace Error |
| 1594 | { |
| 1595 | struct Processor; |
| 1596 | } // namespace Error |
| 1597 | } // namespace ThermalEvent |
| 1598 | } // namespace Shutdown |
| 1599 | } // namespace State |
| 1600 | } // namespace openbmc_project |
| 1601 | } // namespace xyz |
| 1602 | } // namespace sdbusplus |
| 1603 | namespace sdbusplus |
| 1604 | { |
| 1605 | namespace xyz |
| 1606 | { |
| 1607 | namespace openbmc_project |
| 1608 | { |
| 1609 | namespace State |
| 1610 | { |
| 1611 | namespace SystemdTarget |
| 1612 | { |
| 1613 | namespace Error |
| 1614 | { |
| 1615 | struct Failure; |
| 1616 | } // namespace Error |
| 1617 | } // namespace SystemdTarget |
| 1618 | } // namespace State |
| 1619 | } // namespace openbmc_project |
| 1620 | } // namespace xyz |
| 1621 | } // namespace sdbusplus |
| 1622 | namespace sdbusplus |
| 1623 | { |
| 1624 | namespace xyz |
| 1625 | { |
| 1626 | namespace openbmc_project |
| 1627 | { |
| 1628 | namespace Time |
| 1629 | { |
| 1630 | namespace Error |
| 1631 | { |
| 1632 | struct Failed; |
| 1633 | } // namespace Error |
| 1634 | } // namespace Time |
| 1635 | } // namespace openbmc_project |
| 1636 | } // namespace xyz |
| 1637 | } // namespace sdbusplus |
| 1638 | namespace sdbusplus |
| 1639 | { |
| 1640 | namespace xyz |
| 1641 | { |
| 1642 | namespace openbmc_project |
| 1643 | { |
| 1644 | namespace Time |
| 1645 | { |
| 1646 | namespace Error |
| 1647 | { |
| 1648 | struct NotAllowed; |
| 1649 | } // namespace Error |
| 1650 | } // namespace Time |
| 1651 | } // namespace openbmc_project |
| 1652 | } // namespace xyz |
| 1653 | } // namespace sdbusplus |
| 1654 | namespace sdbusplus |
| 1655 | { |
| 1656 | namespace xyz |
| 1657 | { |
| 1658 | namespace openbmc_project |
| 1659 | { |
| 1660 | namespace User |
| 1661 | { |
| 1662 | namespace Common |
| 1663 | { |
| 1664 | namespace Error |
| 1665 | { |
| 1666 | struct NoResource; |
| 1667 | } // namespace Error |
| 1668 | } // namespace Common |
| 1669 | } // namespace User |
| 1670 | } // namespace openbmc_project |
| 1671 | } // namespace xyz |
| 1672 | } // namespace sdbusplus |
| 1673 | namespace sdbusplus |
| 1674 | { |
| 1675 | namespace xyz |
| 1676 | { |
| 1677 | namespace openbmc_project |
| 1678 | { |
| 1679 | namespace User |
| 1680 | { |
| 1681 | namespace Common |
| 1682 | { |
| 1683 | namespace Error |
| 1684 | { |
| 1685 | struct PrivilegeMappingExists; |
| 1686 | } // namespace Error |
| 1687 | } // namespace Common |
| 1688 | } // namespace User |
| 1689 | } // namespace openbmc_project |
| 1690 | } // namespace xyz |
| 1691 | } // namespace sdbusplus |
| 1692 | namespace sdbusplus |
| 1693 | { |
| 1694 | namespace xyz |
| 1695 | { |
| 1696 | namespace openbmc_project |
| 1697 | { |
| 1698 | namespace User |
| 1699 | { |
| 1700 | namespace Common |
| 1701 | { |
| 1702 | namespace Error |
| 1703 | { |
| 1704 | struct UserNameDoesNotExist; |
| 1705 | } // namespace Error |
| 1706 | } // namespace Common |
| 1707 | } // namespace User |
| 1708 | } // namespace openbmc_project |
| 1709 | } // namespace xyz |
| 1710 | } // namespace sdbusplus |
| 1711 | namespace sdbusplus |
| 1712 | { |
| 1713 | namespace xyz |
| 1714 | { |
| 1715 | namespace openbmc_project |
| 1716 | { |
| 1717 | namespace User |
| 1718 | { |
| 1719 | namespace Common |
| 1720 | { |
| 1721 | namespace Error |
| 1722 | { |
| 1723 | struct UserNameExists; |
| 1724 | } // namespace Error |
| 1725 | } // namespace Common |
| 1726 | } // namespace User |
| 1727 | } // namespace openbmc_project |
| 1728 | } // namespace xyz |
| 1729 | } // namespace sdbusplus |
| 1730 | namespace sdbusplus |
| 1731 | { |
| 1732 | namespace xyz |
| 1733 | { |
| 1734 | namespace openbmc_project |
| 1735 | { |
| 1736 | namespace User |
| 1737 | { |
| 1738 | namespace Common |
| 1739 | { |
| 1740 | namespace Error |
| 1741 | { |
| 1742 | struct UserNameGroupFail; |
| 1743 | } // namespace Error |
| 1744 | } // namespace Common |
| 1745 | } // namespace User |
| 1746 | } // namespace openbmc_project |
| 1747 | } // namespace xyz |
| 1748 | } // namespace sdbusplus |
| 1749 | namespace sdbusplus |
| 1750 | { |
| 1751 | namespace xyz |
| 1752 | { |
| 1753 | namespace openbmc_project |
| 1754 | { |
| 1755 | namespace User |
| 1756 | { |
| 1757 | namespace Common |
| 1758 | { |
| 1759 | namespace Error |
| 1760 | { |
| 1761 | struct UserNamePrivFail; |
| 1762 | } // namespace Error |
| 1763 | } // namespace Common |
| 1764 | } // namespace User |
| 1765 | } // namespace openbmc_project |
| 1766 | } // namespace xyz |
| 1767 | } // namespace sdbusplus |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1768 | |
| 1769 | namespace phosphor |
| 1770 | { |
| 1771 | |
| 1772 | namespace logging |
| 1773 | { |
| 1774 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1775 | namespace com |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1776 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1777 | namespace ibm |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1778 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1779 | namespace VPD |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1780 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1781 | namespace _LocationNotFound |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 1782 | {} // namespace _LocationNotFound |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1783 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1784 | struct LocationNotFound |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1785 | { |
| 1786 | static constexpr auto L = level::ERR; |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1787 | using metadata_types = std::tuple<>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1788 | }; |
| 1789 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1790 | } // namespace VPD |
| 1791 | } // namespace ibm |
| 1792 | } // namespace com |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1793 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1794 | namespace details |
| 1795 | { |
| 1796 | |
| 1797 | template <> |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1798 | struct map_exception_type<sdbusplus::com::ibm::VPD::Error::LocationNotFound> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1799 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1800 | using type = com::ibm::VPD::LocationNotFound; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1801 | }; |
| 1802 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 1803 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1804 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1805 | namespace com |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1806 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1807 | namespace ibm |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1808 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1809 | namespace VPD |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1810 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1811 | namespace _NodeNotFound |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 1812 | {} // namespace _NodeNotFound |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1813 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1814 | struct NodeNotFound |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1815 | { |
| 1816 | static constexpr auto L = level::ERR; |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1817 | using metadata_types = std::tuple<>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1818 | }; |
| 1819 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1820 | } // namespace VPD |
| 1821 | } // namespace ibm |
| 1822 | } // namespace com |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1823 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1824 | namespace details |
| 1825 | { |
| 1826 | |
| 1827 | template <> |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1828 | struct map_exception_type<sdbusplus::com::ibm::VPD::Error::NodeNotFound> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1829 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1830 | using type = com::ibm::VPD::NodeNotFound; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1831 | }; |
| 1832 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 1833 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1834 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1835 | namespace com |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1836 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1837 | namespace ibm |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1838 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1839 | namespace VPD |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1840 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1841 | namespace _PathNotFound |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 1842 | {} // namespace _PathNotFound |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1843 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1844 | struct PathNotFound |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1845 | { |
| 1846 | static constexpr auto L = level::ERR; |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1847 | using metadata_types = std::tuple<>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1848 | }; |
| 1849 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1850 | } // namespace VPD |
| 1851 | } // namespace ibm |
| 1852 | } // namespace com |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1853 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1854 | namespace details |
| 1855 | { |
| 1856 | |
| 1857 | template <> |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1858 | struct map_exception_type<sdbusplus::com::ibm::VPD::Error::PathNotFound> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1859 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1860 | using type = com::ibm::VPD::PathNotFound; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1861 | }; |
| 1862 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 1863 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1864 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1865 | namespace com |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1866 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1867 | namespace ibm |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1868 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1869 | namespace VPD |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1870 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1871 | namespace _RecordNotFound |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 1872 | {} // namespace _RecordNotFound |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1873 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1874 | struct RecordNotFound |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1875 | { |
| 1876 | static constexpr auto L = level::ERR; |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1877 | using metadata_types = std::tuple<>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1878 | }; |
| 1879 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1880 | } // namespace VPD |
| 1881 | } // namespace ibm |
| 1882 | } // namespace com |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1883 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1884 | namespace details |
| 1885 | { |
| 1886 | |
| 1887 | template <> |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1888 | struct map_exception_type<sdbusplus::com::ibm::VPD::Error::RecordNotFound> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1889 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1890 | using type = com::ibm::VPD::RecordNotFound; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1891 | }; |
| 1892 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 1893 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1894 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1895 | namespace com |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1896 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1897 | namespace ibm |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1898 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1899 | namespace VPD |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1900 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1901 | namespace _KeywordNotFound |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 1902 | {} // namespace _KeywordNotFound |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1903 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1904 | struct KeywordNotFound |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1905 | { |
| 1906 | static constexpr auto L = level::ERR; |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1907 | using metadata_types = std::tuple<>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1908 | }; |
| 1909 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1910 | } // namespace VPD |
| 1911 | } // namespace ibm |
| 1912 | } // namespace com |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1913 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1914 | namespace details |
| 1915 | { |
| 1916 | |
| 1917 | template <> |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1918 | struct map_exception_type<sdbusplus::com::ibm::VPD::Error::KeywordNotFound> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 1919 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1920 | using type = com::ibm::VPD::KeywordNotFound; |
| 1921 | }; |
| 1922 | |
| 1923 | } // namespace details |
| 1924 | |
| 1925 | namespace com |
| 1926 | { |
| 1927 | namespace ibm |
| 1928 | { |
| 1929 | namespace VPD |
| 1930 | { |
| 1931 | namespace _BlankSystemVPD |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 1932 | {} // namespace _BlankSystemVPD |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1933 | |
| 1934 | struct BlankSystemVPD |
| 1935 | { |
| 1936 | static constexpr auto L = level::ERR; |
| 1937 | using metadata_types = std::tuple<>; |
| 1938 | }; |
| 1939 | |
| 1940 | } // namespace VPD |
| 1941 | } // namespace ibm |
| 1942 | } // namespace com |
| 1943 | |
| 1944 | namespace details |
| 1945 | { |
| 1946 | |
| 1947 | template <> |
| 1948 | struct map_exception_type<sdbusplus::com::ibm::VPD::Error::BlankSystemVPD> |
| 1949 | { |
| 1950 | using type = com::ibm::VPD::BlankSystemVPD; |
| 1951 | }; |
| 1952 | |
| 1953 | } // namespace details |
| 1954 | |
| 1955 | namespace com |
| 1956 | { |
| 1957 | namespace ibm |
| 1958 | { |
| 1959 | namespace VPD |
| 1960 | { |
| 1961 | namespace _InvalidEepromPath |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 1962 | {} // namespace _InvalidEepromPath |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1963 | |
| 1964 | struct InvalidEepromPath |
| 1965 | { |
| 1966 | static constexpr auto L = level::ERR; |
| 1967 | using metadata_types = std::tuple<>; |
| 1968 | }; |
| 1969 | |
| 1970 | } // namespace VPD |
| 1971 | } // namespace ibm |
| 1972 | } // namespace com |
| 1973 | |
| 1974 | namespace details |
| 1975 | { |
| 1976 | |
| 1977 | template <> |
| 1978 | struct map_exception_type<sdbusplus::com::ibm::VPD::Error::InvalidEepromPath> |
| 1979 | { |
| 1980 | using type = com::ibm::VPD::InvalidEepromPath; |
| 1981 | }; |
| 1982 | |
| 1983 | } // namespace details |
| 1984 | |
| 1985 | namespace com |
| 1986 | { |
| 1987 | namespace ibm |
| 1988 | { |
| 1989 | namespace VPD |
| 1990 | { |
| 1991 | namespace _InvalidVPD |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 1992 | {} // namespace _InvalidVPD |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 1993 | |
| 1994 | struct InvalidVPD |
| 1995 | { |
| 1996 | static constexpr auto L = level::ERR; |
| 1997 | using metadata_types = std::tuple<>; |
| 1998 | }; |
| 1999 | |
| 2000 | } // namespace VPD |
| 2001 | } // namespace ibm |
| 2002 | } // namespace com |
| 2003 | |
| 2004 | namespace details |
| 2005 | { |
| 2006 | |
| 2007 | template <> |
| 2008 | struct map_exception_type<sdbusplus::com::ibm::VPD::Error::InvalidVPD> |
| 2009 | { |
| 2010 | using type = com::ibm::VPD::InvalidVPD; |
| 2011 | }; |
| 2012 | |
| 2013 | } // namespace details |
| 2014 | |
| 2015 | namespace com |
| 2016 | { |
| 2017 | namespace ibm |
| 2018 | { |
| 2019 | namespace VPD |
| 2020 | { |
| 2021 | namespace _EccCheckFailed |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 2022 | {} // namespace _EccCheckFailed |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 2023 | |
| 2024 | struct EccCheckFailed |
| 2025 | { |
| 2026 | static constexpr auto L = level::ERR; |
| 2027 | using metadata_types = std::tuple<>; |
| 2028 | }; |
| 2029 | |
| 2030 | } // namespace VPD |
| 2031 | } // namespace ibm |
| 2032 | } // namespace com |
| 2033 | |
| 2034 | namespace details |
| 2035 | { |
| 2036 | |
| 2037 | template <> |
| 2038 | struct map_exception_type<sdbusplus::com::ibm::VPD::Error::EccCheckFailed> |
| 2039 | { |
| 2040 | using type = com::ibm::VPD::EccCheckFailed; |
| 2041 | }; |
| 2042 | |
| 2043 | } // namespace details |
| 2044 | |
| 2045 | namespace com |
| 2046 | { |
| 2047 | namespace ibm |
| 2048 | { |
| 2049 | namespace VPD |
| 2050 | { |
| 2051 | namespace _InvalidJson |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 2052 | {} // namespace _InvalidJson |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 2053 | |
| 2054 | struct InvalidJson |
| 2055 | { |
| 2056 | static constexpr auto L = level::ERR; |
| 2057 | using metadata_types = std::tuple<>; |
| 2058 | }; |
| 2059 | |
| 2060 | } // namespace VPD |
| 2061 | } // namespace ibm |
| 2062 | } // namespace com |
| 2063 | |
| 2064 | namespace details |
| 2065 | { |
| 2066 | |
| 2067 | template <> |
| 2068 | struct map_exception_type<sdbusplus::com::ibm::VPD::Error::InvalidJson> |
| 2069 | { |
| 2070 | using type = com::ibm::VPD::InvalidJson; |
| 2071 | }; |
| 2072 | |
| 2073 | } // namespace details |
| 2074 | |
| 2075 | namespace com |
| 2076 | { |
| 2077 | namespace ibm |
| 2078 | { |
| 2079 | namespace VPD |
| 2080 | { |
| 2081 | namespace _DbusFailure |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 2082 | {} // namespace _DbusFailure |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 2083 | |
| 2084 | struct DbusFailure |
| 2085 | { |
| 2086 | static constexpr auto L = level::ERR; |
| 2087 | using metadata_types = std::tuple<>; |
| 2088 | }; |
| 2089 | |
| 2090 | } // namespace VPD |
| 2091 | } // namespace ibm |
| 2092 | } // namespace com |
| 2093 | |
| 2094 | namespace details |
| 2095 | { |
| 2096 | |
| 2097 | template <> |
| 2098 | struct map_exception_type<sdbusplus::com::ibm::VPD::Error::DbusFailure> |
| 2099 | { |
| 2100 | using type = com::ibm::VPD::DbusFailure; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2101 | }; |
| 2102 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 2103 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2104 | |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 2105 | namespace org |
| 2106 | { |
| 2107 | namespace open_power |
| 2108 | { |
| 2109 | namespace Common |
| 2110 | { |
| 2111 | namespace Callout |
| 2112 | { |
| 2113 | namespace _Procedure |
| 2114 | { |
| 2115 | |
| 2116 | struct PROCEDURE |
| 2117 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 2118 | /* |
| 2119 | * We can't use -fsanitize=undefined if we declare a |
| 2120 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 2121 | * mako template lookups. |
| 2122 | */ |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 2123 | static constexpr auto str_short = "PROCEDURE"; |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 2124 | using type = std::tuple<std::decay_t<decltype("PROCEDURE=%u")>, uint32_t>; |
| 2125 | explicit constexpr PROCEDURE(uint32_t a) : |
| 2126 | _entry(entry("PROCEDURE=%u", a)){}; |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 2127 | type _entry; |
| 2128 | }; |
| 2129 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 2130 | } // namespace _Procedure |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 2131 | |
| 2132 | struct Procedure |
| 2133 | { |
| 2134 | static constexpr auto L = level::ERR; |
| 2135 | using PROCEDURE = _Procedure::PROCEDURE; |
| 2136 | using metadata_types = std::tuple<PROCEDURE>; |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 2137 | }; |
| 2138 | |
| 2139 | } // namespace Callout |
| 2140 | } // namespace Common |
| 2141 | } // namespace open_power |
| 2142 | } // namespace org |
| 2143 | |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 2144 | namespace details |
| 2145 | { |
| 2146 | |
| 2147 | template <> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 2148 | struct map_exception_type< |
| 2149 | sdbusplus::org::open_power::Common::Callout::Error::Procedure> |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 2150 | { |
| 2151 | using type = org::open_power::Common::Callout::Procedure; |
| 2152 | }; |
| 2153 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 2154 | } // namespace details |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 2155 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 2156 | namespace org |
| 2157 | { |
| 2158 | namespace open_power |
| 2159 | { |
| 2160 | namespace Proc |
| 2161 | { |
| 2162 | namespace FSI |
| 2163 | { |
| 2164 | namespace _SlaveDetectionFailure |
| 2165 | { |
| 2166 | |
| 2167 | struct ERRNO |
| 2168 | { |
| 2169 | /* |
| 2170 | * We can't use -fsanitize=undefined if we declare a |
| 2171 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 2172 | * mako template lookups. |
| 2173 | */ |
| 2174 | static constexpr auto str_short = "ERRNO"; |
| 2175 | using type = std::tuple<std::decay_t<decltype("ERRNO=%d")>, int32_t>; |
| 2176 | explicit constexpr ERRNO(int32_t a) : _entry(entry("ERRNO=%d", a)){}; |
| 2177 | type _entry; |
| 2178 | }; |
| 2179 | |
| 2180 | } // namespace _SlaveDetectionFailure |
| 2181 | |
| 2182 | struct SlaveDetectionFailure |
| 2183 | { |
| 2184 | static constexpr auto L = level::ERR; |
| 2185 | using ERRNO = _SlaveDetectionFailure::ERRNO; |
| 2186 | using metadata_types = std::tuple<ERRNO>; |
| 2187 | }; |
| 2188 | |
| 2189 | } // namespace FSI |
| 2190 | } // namespace Proc |
| 2191 | } // namespace open_power |
| 2192 | } // namespace org |
| 2193 | |
| 2194 | namespace details |
| 2195 | { |
| 2196 | |
| 2197 | template <> |
| 2198 | struct map_exception_type< |
| 2199 | sdbusplus::org::open_power::Proc::FSI::Error::SlaveDetectionFailure> |
| 2200 | { |
| 2201 | using type = org::open_power::Proc::FSI::SlaveDetectionFailure; |
| 2202 | }; |
| 2203 | |
| 2204 | } // namespace details |
| 2205 | |
| 2206 | namespace xyz |
| 2207 | { |
| 2208 | namespace openbmc_project |
| 2209 | { |
| 2210 | namespace Certs |
| 2211 | { |
| 2212 | namespace _InvalidCertificate |
| 2213 | { |
| 2214 | |
| 2215 | struct REASON |
| 2216 | { |
| 2217 | /* |
| 2218 | * We can't use -fsanitize=undefined if we declare a |
| 2219 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 2220 | * mako template lookups. |
| 2221 | */ |
| 2222 | static constexpr auto str_short = "REASON "; |
| 2223 | using type = std::tuple<std::decay_t<decltype("REASON = %s")>, const char*>; |
| 2224 | explicit constexpr REASON(const char* a) : |
| 2225 | _entry(entry("REASON = %s", a)){}; |
| 2226 | type _entry; |
| 2227 | }; |
| 2228 | |
| 2229 | } // namespace _InvalidCertificate |
| 2230 | |
| 2231 | struct InvalidCertificate |
| 2232 | { |
| 2233 | static constexpr auto L = level::ERR; |
| 2234 | using REASON = _InvalidCertificate::REASON; |
| 2235 | using metadata_types = std::tuple<REASON>; |
| 2236 | }; |
| 2237 | |
| 2238 | } // namespace Certs |
| 2239 | } // namespace openbmc_project |
| 2240 | } // namespace xyz |
| 2241 | |
| 2242 | namespace details |
| 2243 | { |
| 2244 | |
| 2245 | template <> |
| 2246 | struct map_exception_type< |
| 2247 | sdbusplus::xyz::openbmc_project::Certs::Error::InvalidCertificate> |
| 2248 | { |
| 2249 | using type = xyz::openbmc_project::Certs::InvalidCertificate; |
| 2250 | }; |
| 2251 | |
| 2252 | } // namespace details |
| 2253 | |
| 2254 | namespace xyz |
| 2255 | { |
| 2256 | namespace openbmc_project |
| 2257 | { |
| 2258 | namespace ScheduledTime |
| 2259 | { |
| 2260 | namespace _InvalidTime |
| 2261 | { |
| 2262 | |
| 2263 | struct REASON |
| 2264 | { |
| 2265 | /* |
| 2266 | * We can't use -fsanitize=undefined if we declare a |
| 2267 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 2268 | * mako template lookups. |
| 2269 | */ |
| 2270 | static constexpr auto str_short = "REASON"; |
| 2271 | using type = std::tuple<std::decay_t<decltype("REASON=%s")>, const char*>; |
| 2272 | explicit constexpr REASON(const char* a) : _entry(entry("REASON=%s", a)){}; |
| 2273 | type _entry; |
| 2274 | }; |
| 2275 | |
| 2276 | } // namespace _InvalidTime |
| 2277 | |
| 2278 | struct InvalidTime |
| 2279 | { |
| 2280 | static constexpr auto L = level::ERR; |
| 2281 | using REASON = _InvalidTime::REASON; |
| 2282 | using metadata_types = std::tuple<REASON>; |
| 2283 | }; |
| 2284 | |
| 2285 | } // namespace ScheduledTime |
| 2286 | } // namespace openbmc_project |
| 2287 | } // namespace xyz |
| 2288 | |
| 2289 | namespace details |
| 2290 | { |
| 2291 | |
| 2292 | template <> |
| 2293 | struct map_exception_type< |
| 2294 | sdbusplus::xyz::openbmc_project::ScheduledTime::Error::InvalidTime> |
| 2295 | { |
| 2296 | using type = xyz::openbmc_project::ScheduledTime::InvalidTime; |
| 2297 | }; |
| 2298 | |
| 2299 | } // namespace details |
| 2300 | |
| 2301 | namespace xyz |
| 2302 | { |
| 2303 | namespace openbmc_project |
| 2304 | { |
| 2305 | namespace HardwareIsolation |
| 2306 | { |
| 2307 | namespace _IsolatedAlready |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 2308 | {} // namespace _IsolatedAlready |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 2309 | |
| 2310 | struct IsolatedAlready |
| 2311 | { |
| 2312 | static constexpr auto L = level::ERR; |
| 2313 | using metadata_types = std::tuple<>; |
| 2314 | }; |
| 2315 | |
| 2316 | } // namespace HardwareIsolation |
| 2317 | } // namespace openbmc_project |
| 2318 | } // namespace xyz |
| 2319 | |
| 2320 | namespace details |
| 2321 | { |
| 2322 | |
| 2323 | template <> |
| 2324 | struct map_exception_type< |
| 2325 | sdbusplus::xyz::openbmc_project::HardwareIsolation::Error::IsolatedAlready> |
| 2326 | { |
| 2327 | using type = xyz::openbmc_project::HardwareIsolation::IsolatedAlready; |
| 2328 | }; |
| 2329 | |
| 2330 | } // namespace details |
| 2331 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2332 | namespace xyz |
| 2333 | { |
| 2334 | namespace openbmc_project |
| 2335 | { |
| 2336 | namespace Common |
| 2337 | { |
| 2338 | namespace _Timeout |
| 2339 | { |
| 2340 | |
| 2341 | struct TIMEOUT_IN_MSEC |
| 2342 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 2343 | /* |
| 2344 | * We can't use -fsanitize=undefined if we declare a |
| 2345 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 2346 | * mako template lookups. |
| 2347 | */ |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2348 | static constexpr auto str_short = "TIMEOUT_IN_MSEC"; |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 2349 | using type = |
| 2350 | std::tuple<std::decay_t<decltype("TIMEOUT_IN_MSEC=%llu")>, uint64_t>; |
| 2351 | explicit constexpr TIMEOUT_IN_MSEC(uint64_t a) : |
| 2352 | _entry(entry("TIMEOUT_IN_MSEC=%llu", a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2353 | type _entry; |
| 2354 | }; |
| 2355 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 2356 | } // namespace _Timeout |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2357 | |
| 2358 | struct Timeout |
| 2359 | { |
| 2360 | static constexpr auto L = level::ERR; |
| 2361 | using TIMEOUT_IN_MSEC = _Timeout::TIMEOUT_IN_MSEC; |
| 2362 | using metadata_types = std::tuple<TIMEOUT_IN_MSEC>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2363 | }; |
| 2364 | |
| 2365 | } // namespace Common |
| 2366 | } // namespace openbmc_project |
| 2367 | } // namespace xyz |
| 2368 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2369 | namespace details |
| 2370 | { |
| 2371 | |
| 2372 | template <> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 2373 | struct map_exception_type< |
| 2374 | sdbusplus::xyz::openbmc_project::Common::Error::Timeout> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2375 | { |
| 2376 | using type = xyz::openbmc_project::Common::Timeout; |
| 2377 | }; |
| 2378 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 2379 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2380 | |
| 2381 | namespace xyz |
| 2382 | { |
| 2383 | namespace openbmc_project |
| 2384 | { |
| 2385 | namespace Common |
| 2386 | { |
| 2387 | namespace _InternalFailure |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 2388 | {} // namespace _InternalFailure |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2389 | |
| 2390 | struct InternalFailure |
| 2391 | { |
| 2392 | static constexpr auto L = level::ERR; |
| 2393 | using metadata_types = std::tuple<>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2394 | }; |
| 2395 | |
| 2396 | } // namespace Common |
| 2397 | } // namespace openbmc_project |
| 2398 | } // namespace xyz |
| 2399 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2400 | namespace details |
| 2401 | { |
| 2402 | |
| 2403 | template <> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 2404 | struct map_exception_type< |
| 2405 | sdbusplus::xyz::openbmc_project::Common::Error::InternalFailure> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2406 | { |
| 2407 | using type = xyz::openbmc_project::Common::InternalFailure; |
| 2408 | }; |
| 2409 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 2410 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2411 | |
| 2412 | namespace xyz |
| 2413 | { |
| 2414 | namespace openbmc_project |
| 2415 | { |
| 2416 | namespace Common |
| 2417 | { |
| 2418 | namespace _InvalidArgument |
| 2419 | { |
| 2420 | |
| 2421 | struct ARGUMENT_NAME |
| 2422 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 2423 | /* |
| 2424 | * We can't use -fsanitize=undefined if we declare a |
| 2425 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 2426 | * mako template lookups. |
| 2427 | */ |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2428 | static constexpr auto str_short = "ARGUMENT_NAME"; |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 2429 | using type = |
| 2430 | std::tuple<std::decay_t<decltype("ARGUMENT_NAME=%s")>, const char*>; |
| 2431 | explicit constexpr ARGUMENT_NAME(const char* a) : |
| 2432 | _entry(entry("ARGUMENT_NAME=%s", a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2433 | type _entry; |
| 2434 | }; |
| 2435 | struct ARGUMENT_VALUE |
| 2436 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 2437 | /* |
| 2438 | * We can't use -fsanitize=undefined if we declare a |
| 2439 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 2440 | * mako template lookups. |
| 2441 | */ |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2442 | static constexpr auto str_short = "ARGUMENT_VALUE"; |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 2443 | using type = |
| 2444 | std::tuple<std::decay_t<decltype("ARGUMENT_VALUE=%s")>, const char*>; |
| 2445 | explicit constexpr ARGUMENT_VALUE(const char* a) : |
| 2446 | _entry(entry("ARGUMENT_VALUE=%s", a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2447 | type _entry; |
| 2448 | }; |
| 2449 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 2450 | } // namespace _InvalidArgument |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2451 | |
| 2452 | struct InvalidArgument |
| 2453 | { |
| 2454 | static constexpr auto L = level::ERR; |
| 2455 | using ARGUMENT_NAME = _InvalidArgument::ARGUMENT_NAME; |
| 2456 | using ARGUMENT_VALUE = _InvalidArgument::ARGUMENT_VALUE; |
| 2457 | using metadata_types = std::tuple<ARGUMENT_NAME, ARGUMENT_VALUE>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2458 | }; |
| 2459 | |
| 2460 | } // namespace Common |
| 2461 | } // namespace openbmc_project |
| 2462 | } // namespace xyz |
| 2463 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2464 | namespace details |
| 2465 | { |
| 2466 | |
| 2467 | template <> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 2468 | struct map_exception_type< |
| 2469 | sdbusplus::xyz::openbmc_project::Common::Error::InvalidArgument> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2470 | { |
| 2471 | using type = xyz::openbmc_project::Common::InvalidArgument; |
| 2472 | }; |
| 2473 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 2474 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2475 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2476 | namespace xyz |
| 2477 | { |
| 2478 | namespace openbmc_project |
| 2479 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 2480 | namespace Common |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2481 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 2482 | namespace _InsufficientPermission |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 2483 | {} // namespace _InsufficientPermission |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 2484 | |
| 2485 | struct InsufficientPermission |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2486 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 2487 | static constexpr auto L = level::INFO; |
| 2488 | using metadata_types = std::tuple<>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2489 | }; |
| 2490 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 2491 | } // namespace Common |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2492 | } // namespace openbmc_project |
| 2493 | } // namespace xyz |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 2494 | |
| 2495 | namespace details |
| 2496 | { |
| 2497 | |
| 2498 | template <> |
| 2499 | struct map_exception_type< |
| 2500 | sdbusplus::xyz::openbmc_project::Common::Error::InsufficientPermission> |
| 2501 | { |
| 2502 | using type = xyz::openbmc_project::Common::InsufficientPermission; |
| 2503 | }; |
| 2504 | |
| 2505 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2506 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 2507 | namespace xyz |
| 2508 | { |
| 2509 | namespace openbmc_project |
| 2510 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 2511 | namespace Common |
| 2512 | { |
| 2513 | namespace _NotAllowed |
| 2514 | { |
| 2515 | |
| 2516 | struct REASON |
| 2517 | { |
| 2518 | /* |
| 2519 | * We can't use -fsanitize=undefined if we declare a |
| 2520 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 2521 | * mako template lookups. |
| 2522 | */ |
| 2523 | static constexpr auto str_short = "REASON"; |
| 2524 | using type = std::tuple<std::decay_t<decltype("REASON=%s")>, const char*>; |
| 2525 | explicit constexpr REASON(const char* a) : _entry(entry("REASON=%s", a)){}; |
| 2526 | type _entry; |
| 2527 | }; |
| 2528 | |
| 2529 | } // namespace _NotAllowed |
| 2530 | |
| 2531 | struct NotAllowed |
| 2532 | { |
| 2533 | static constexpr auto L = level::INFO; |
| 2534 | using REASON = _NotAllowed::REASON; |
| 2535 | using metadata_types = std::tuple<REASON>; |
| 2536 | }; |
| 2537 | |
| 2538 | } // namespace Common |
| 2539 | } // namespace openbmc_project |
| 2540 | } // namespace xyz |
| 2541 | |
| 2542 | namespace details |
| 2543 | { |
| 2544 | |
| 2545 | template <> |
| 2546 | struct map_exception_type< |
| 2547 | sdbusplus::xyz::openbmc_project::Common::Error::NotAllowed> |
| 2548 | { |
| 2549 | using type = xyz::openbmc_project::Common::NotAllowed; |
| 2550 | }; |
| 2551 | |
| 2552 | } // namespace details |
| 2553 | |
| 2554 | namespace xyz |
| 2555 | { |
| 2556 | namespace openbmc_project |
| 2557 | { |
| 2558 | namespace Common |
| 2559 | { |
| 2560 | namespace _NoCACertificate |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 2561 | {} // namespace _NoCACertificate |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 2562 | |
| 2563 | struct NoCACertificate |
| 2564 | { |
| 2565 | static constexpr auto L = level::ERR; |
| 2566 | using metadata_types = std::tuple<>; |
| 2567 | }; |
| 2568 | |
| 2569 | } // namespace Common |
| 2570 | } // namespace openbmc_project |
| 2571 | } // namespace xyz |
| 2572 | |
| 2573 | namespace details |
| 2574 | { |
| 2575 | |
| 2576 | template <> |
| 2577 | struct map_exception_type< |
| 2578 | sdbusplus::xyz::openbmc_project::Common::Error::NoCACertificate> |
| 2579 | { |
| 2580 | using type = xyz::openbmc_project::Common::NoCACertificate; |
| 2581 | }; |
| 2582 | |
| 2583 | } // namespace details |
| 2584 | |
| 2585 | namespace xyz |
| 2586 | { |
| 2587 | namespace openbmc_project |
| 2588 | { |
| 2589 | namespace Common |
| 2590 | { |
| 2591 | namespace _TooManyResources |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 2592 | {} // namespace _TooManyResources |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 2593 | |
| 2594 | struct TooManyResources |
| 2595 | { |
| 2596 | static constexpr auto L = level::INFO; |
| 2597 | using metadata_types = std::tuple<>; |
| 2598 | }; |
| 2599 | |
| 2600 | } // namespace Common |
| 2601 | } // namespace openbmc_project |
| 2602 | } // namespace xyz |
| 2603 | |
| 2604 | namespace details |
| 2605 | { |
| 2606 | |
| 2607 | template <> |
| 2608 | struct map_exception_type< |
| 2609 | sdbusplus::xyz::openbmc_project::Common::Error::TooManyResources> |
| 2610 | { |
| 2611 | using type = xyz::openbmc_project::Common::TooManyResources; |
| 2612 | }; |
| 2613 | |
| 2614 | } // namespace details |
| 2615 | |
| 2616 | namespace xyz |
| 2617 | { |
| 2618 | namespace openbmc_project |
| 2619 | { |
| 2620 | namespace Common |
| 2621 | { |
| 2622 | namespace _ResourceNotFound |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 2623 | {} // namespace _ResourceNotFound |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 2624 | |
| 2625 | struct ResourceNotFound |
| 2626 | { |
| 2627 | static constexpr auto L = level::INFO; |
| 2628 | using metadata_types = std::tuple<>; |
| 2629 | }; |
| 2630 | |
| 2631 | } // namespace Common |
| 2632 | } // namespace openbmc_project |
| 2633 | } // namespace xyz |
| 2634 | |
| 2635 | namespace details |
| 2636 | { |
| 2637 | |
| 2638 | template <> |
| 2639 | struct map_exception_type< |
| 2640 | sdbusplus::xyz::openbmc_project::Common::Error::ResourceNotFound> |
| 2641 | { |
| 2642 | using type = xyz::openbmc_project::Common::ResourceNotFound; |
| 2643 | }; |
| 2644 | |
| 2645 | } // namespace details |
| 2646 | |
| 2647 | namespace xyz |
| 2648 | { |
| 2649 | namespace openbmc_project |
| 2650 | { |
| 2651 | namespace Common |
| 2652 | { |
| 2653 | namespace _Unavailable |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 2654 | {} // namespace _Unavailable |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 2655 | |
| 2656 | struct Unavailable |
| 2657 | { |
| 2658 | static constexpr auto L = level::ERR; |
| 2659 | using metadata_types = std::tuple<>; |
| 2660 | }; |
| 2661 | |
| 2662 | } // namespace Common |
| 2663 | } // namespace openbmc_project |
| 2664 | } // namespace xyz |
| 2665 | |
| 2666 | namespace details |
| 2667 | { |
| 2668 | |
| 2669 | template <> |
| 2670 | struct map_exception_type< |
| 2671 | sdbusplus::xyz::openbmc_project::Common::Error::Unavailable> |
| 2672 | { |
| 2673 | using type = xyz::openbmc_project::Common::Unavailable; |
| 2674 | }; |
| 2675 | |
| 2676 | } // namespace details |
| 2677 | |
| 2678 | namespace xyz |
| 2679 | { |
| 2680 | namespace openbmc_project |
| 2681 | { |
| 2682 | namespace Common |
| 2683 | { |
| 2684 | namespace _UnsupportedRequest |
| 2685 | { |
| 2686 | |
| 2687 | struct REASON |
| 2688 | { |
| 2689 | /* |
| 2690 | * We can't use -fsanitize=undefined if we declare a |
| 2691 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 2692 | * mako template lookups. |
| 2693 | */ |
| 2694 | static constexpr auto str_short = "REASON"; |
| 2695 | using type = std::tuple<std::decay_t<decltype("REASON=%s")>, const char*>; |
| 2696 | explicit constexpr REASON(const char* a) : _entry(entry("REASON=%s", a)){}; |
| 2697 | type _entry; |
| 2698 | }; |
| 2699 | |
| 2700 | } // namespace _UnsupportedRequest |
| 2701 | |
| 2702 | struct UnsupportedRequest |
| 2703 | { |
| 2704 | static constexpr auto L = level::INFO; |
| 2705 | using REASON = _UnsupportedRequest::REASON; |
| 2706 | using metadata_types = std::tuple<REASON>; |
| 2707 | }; |
| 2708 | |
| 2709 | } // namespace Common |
| 2710 | } // namespace openbmc_project |
| 2711 | } // namespace xyz |
| 2712 | |
| 2713 | namespace details |
| 2714 | { |
| 2715 | |
| 2716 | template <> |
| 2717 | struct map_exception_type< |
| 2718 | sdbusplus::xyz::openbmc_project::Common::Error::UnsupportedRequest> |
| 2719 | { |
| 2720 | using type = xyz::openbmc_project::Common::UnsupportedRequest; |
| 2721 | }; |
| 2722 | |
| 2723 | } // namespace details |
| 2724 | |
| 2725 | namespace xyz |
| 2726 | { |
| 2727 | namespace openbmc_project |
| 2728 | { |
| 2729 | namespace BIOSConfig |
| 2730 | { |
| 2731 | namespace Common |
| 2732 | { |
| 2733 | namespace _AttributeNotFound |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 2734 | {} // namespace _AttributeNotFound |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 2735 | |
| 2736 | struct AttributeNotFound |
| 2737 | { |
| 2738 | static constexpr auto L = level::ERR; |
| 2739 | using metadata_types = std::tuple<>; |
| 2740 | }; |
| 2741 | |
| 2742 | } // namespace Common |
| 2743 | } // namespace BIOSConfig |
| 2744 | } // namespace openbmc_project |
| 2745 | } // namespace xyz |
| 2746 | |
| 2747 | namespace details |
| 2748 | { |
| 2749 | |
| 2750 | template <> |
| 2751 | struct map_exception_type<sdbusplus::xyz::openbmc_project::BIOSConfig::Common:: |
| 2752 | Error::AttributeNotFound> |
| 2753 | { |
| 2754 | using type = xyz::openbmc_project::BIOSConfig::Common::AttributeNotFound; |
| 2755 | }; |
| 2756 | |
| 2757 | } // namespace details |
| 2758 | |
| 2759 | namespace xyz |
| 2760 | { |
| 2761 | namespace openbmc_project |
| 2762 | { |
| 2763 | namespace BIOSConfig |
| 2764 | { |
| 2765 | namespace Common |
| 2766 | { |
| 2767 | namespace _AttributeReadOnly |
| 2768 | { |
| 2769 | |
| 2770 | struct REASON |
| 2771 | { |
| 2772 | /* |
| 2773 | * We can't use -fsanitize=undefined if we declare a |
| 2774 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 2775 | * mako template lookups. |
| 2776 | */ |
| 2777 | static constexpr auto str_short = "REASON"; |
| 2778 | using type = std::tuple<std::decay_t<decltype("REASON=%s")>, const char*>; |
| 2779 | explicit constexpr REASON(const char* a) : _entry(entry("REASON=%s", a)){}; |
| 2780 | type _entry; |
| 2781 | }; |
| 2782 | |
| 2783 | } // namespace _AttributeReadOnly |
| 2784 | |
| 2785 | struct AttributeReadOnly |
| 2786 | { |
| 2787 | static constexpr auto L = level::ERR; |
| 2788 | using REASON = _AttributeReadOnly::REASON; |
| 2789 | using metadata_types = std::tuple<REASON>; |
| 2790 | }; |
| 2791 | |
| 2792 | } // namespace Common |
| 2793 | } // namespace BIOSConfig |
| 2794 | } // namespace openbmc_project |
| 2795 | } // namespace xyz |
| 2796 | |
| 2797 | namespace details |
| 2798 | { |
| 2799 | |
| 2800 | template <> |
| 2801 | struct map_exception_type<sdbusplus::xyz::openbmc_project::BIOSConfig::Common:: |
| 2802 | Error::AttributeReadOnly> |
| 2803 | { |
| 2804 | using type = xyz::openbmc_project::BIOSConfig::Common::AttributeReadOnly; |
| 2805 | }; |
| 2806 | |
| 2807 | } // namespace details |
| 2808 | |
| 2809 | namespace xyz |
| 2810 | { |
| 2811 | namespace openbmc_project |
| 2812 | { |
| 2813 | namespace BIOSConfig |
| 2814 | { |
| 2815 | namespace Common |
| 2816 | { |
| 2817 | namespace _InvalidCurrentPassword |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 2818 | {} // namespace _InvalidCurrentPassword |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 2819 | |
| 2820 | struct InvalidCurrentPassword |
| 2821 | { |
| 2822 | static constexpr auto L = level::ERR; |
| 2823 | using metadata_types = std::tuple<>; |
| 2824 | }; |
| 2825 | |
| 2826 | } // namespace Common |
| 2827 | } // namespace BIOSConfig |
| 2828 | } // namespace openbmc_project |
| 2829 | } // namespace xyz |
| 2830 | |
| 2831 | namespace details |
| 2832 | { |
| 2833 | |
| 2834 | template <> |
| 2835 | struct map_exception_type<sdbusplus::xyz::openbmc_project::BIOSConfig::Common:: |
| 2836 | Error::InvalidCurrentPassword> |
| 2837 | { |
| 2838 | using type = |
| 2839 | xyz::openbmc_project::BIOSConfig::Common::InvalidCurrentPassword; |
| 2840 | }; |
| 2841 | |
| 2842 | } // namespace details |
| 2843 | |
| 2844 | namespace xyz |
| 2845 | { |
| 2846 | namespace openbmc_project |
| 2847 | { |
| 2848 | namespace BIOSConfig |
| 2849 | { |
| 2850 | namespace Common |
| 2851 | { |
| 2852 | namespace _PasswordNotSettable |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 2853 | {} // namespace _PasswordNotSettable |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 2854 | |
| 2855 | struct PasswordNotSettable |
| 2856 | { |
| 2857 | static constexpr auto L = level::ERR; |
| 2858 | using metadata_types = std::tuple<>; |
| 2859 | }; |
| 2860 | |
| 2861 | } // namespace Common |
| 2862 | } // namespace BIOSConfig |
| 2863 | } // namespace openbmc_project |
| 2864 | } // namespace xyz |
| 2865 | |
| 2866 | namespace details |
| 2867 | { |
| 2868 | |
| 2869 | template <> |
| 2870 | struct map_exception_type<sdbusplus::xyz::openbmc_project::BIOSConfig::Common:: |
| 2871 | Error::PasswordNotSettable> |
| 2872 | { |
| 2873 | using type = xyz::openbmc_project::BIOSConfig::Common::PasswordNotSettable; |
| 2874 | }; |
| 2875 | |
| 2876 | } // namespace details |
| 2877 | |
| 2878 | namespace xyz |
| 2879 | { |
| 2880 | namespace openbmc_project |
| 2881 | { |
| 2882 | namespace Chassis |
| 2883 | { |
| 2884 | namespace Common |
| 2885 | { |
| 2886 | namespace _UnsupportedCommand |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 2887 | {} // namespace _UnsupportedCommand |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 2888 | |
| 2889 | struct UnsupportedCommand |
| 2890 | { |
| 2891 | static constexpr auto L = level::ERR; |
| 2892 | using metadata_types = std::tuple<>; |
| 2893 | }; |
| 2894 | |
| 2895 | } // namespace Common |
| 2896 | } // namespace Chassis |
| 2897 | } // namespace openbmc_project |
| 2898 | } // namespace xyz |
| 2899 | |
| 2900 | namespace details |
| 2901 | { |
| 2902 | |
| 2903 | template <> |
| 2904 | struct map_exception_type< |
| 2905 | sdbusplus::xyz::openbmc_project::Chassis::Common::Error::UnsupportedCommand> |
| 2906 | { |
| 2907 | using type = xyz::openbmc_project::Chassis::Common::UnsupportedCommand; |
| 2908 | }; |
| 2909 | |
| 2910 | } // namespace details |
| 2911 | |
| 2912 | namespace xyz |
| 2913 | { |
| 2914 | namespace openbmc_project |
| 2915 | { |
| 2916 | namespace Chassis |
| 2917 | { |
| 2918 | namespace Common |
| 2919 | { |
| 2920 | namespace _IOError |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 2921 | {} // namespace _IOError |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 2922 | |
| 2923 | struct IOError |
| 2924 | { |
| 2925 | static constexpr auto L = level::ERR; |
| 2926 | using metadata_types = std::tuple<>; |
| 2927 | }; |
| 2928 | |
| 2929 | } // namespace Common |
| 2930 | } // namespace Chassis |
| 2931 | } // namespace openbmc_project |
| 2932 | } // namespace xyz |
| 2933 | |
| 2934 | namespace details |
| 2935 | { |
| 2936 | |
| 2937 | template <> |
| 2938 | struct map_exception_type< |
| 2939 | sdbusplus::xyz::openbmc_project::Chassis::Common::Error::IOError> |
| 2940 | { |
| 2941 | using type = xyz::openbmc_project::Chassis::Common::IOError; |
| 2942 | }; |
| 2943 | |
| 2944 | } // namespace details |
| 2945 | |
| 2946 | namespace xyz |
| 2947 | { |
| 2948 | namespace openbmc_project |
| 2949 | { |
| 2950 | namespace Common |
| 2951 | { |
| 2952 | namespace Callout |
| 2953 | { |
| 2954 | namespace _Device |
| 2955 | { |
| 2956 | |
| 2957 | struct CALLOUT_ERRNO |
| 2958 | { |
| 2959 | /* |
| 2960 | * We can't use -fsanitize=undefined if we declare a |
| 2961 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 2962 | * mako template lookups. |
| 2963 | */ |
| 2964 | static constexpr auto str_short = "CALLOUT_ERRNO"; |
| 2965 | using type = |
| 2966 | std::tuple<std::decay_t<decltype("CALLOUT_ERRNO=%d")>, int32_t>; |
| 2967 | explicit constexpr CALLOUT_ERRNO(int32_t a) : |
| 2968 | _entry(entry("CALLOUT_ERRNO=%d", a)){}; |
| 2969 | type _entry; |
| 2970 | }; |
| 2971 | struct CALLOUT_DEVICE_PATH |
| 2972 | { |
| 2973 | /* |
| 2974 | * We can't use -fsanitize=undefined if we declare a |
| 2975 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 2976 | * mako template lookups. |
| 2977 | */ |
| 2978 | static constexpr auto str_short = "CALLOUT_DEVICE_PATH"; |
| 2979 | using type = std::tuple<std::decay_t<decltype("CALLOUT_DEVICE_PATH=%s")>, |
| 2980 | const char*>; |
| 2981 | explicit constexpr CALLOUT_DEVICE_PATH(const char* a) : |
| 2982 | _entry(entry("CALLOUT_DEVICE_PATH=%s", a)){}; |
| 2983 | type _entry; |
| 2984 | }; |
| 2985 | |
| 2986 | } // namespace _Device |
| 2987 | |
| 2988 | struct Device |
| 2989 | { |
| 2990 | static constexpr auto L = level::ERR; |
| 2991 | using CALLOUT_ERRNO = _Device::CALLOUT_ERRNO; |
| 2992 | using CALLOUT_DEVICE_PATH = _Device::CALLOUT_DEVICE_PATH; |
| 2993 | using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
| 2994 | }; |
| 2995 | |
| 2996 | } // namespace Callout |
| 2997 | } // namespace Common |
| 2998 | } // namespace openbmc_project |
| 2999 | } // namespace xyz |
| 3000 | |
| 3001 | namespace details |
| 3002 | { |
| 3003 | |
| 3004 | template <> |
| 3005 | struct map_exception_type< |
| 3006 | sdbusplus::xyz::openbmc_project::Common::Callout::Error::Device> |
| 3007 | { |
| 3008 | using type = xyz::openbmc_project::Common::Callout::Device; |
| 3009 | }; |
| 3010 | |
| 3011 | } // namespace details |
| 3012 | |
| 3013 | namespace xyz |
| 3014 | { |
| 3015 | namespace openbmc_project |
| 3016 | { |
| 3017 | namespace Common |
| 3018 | { |
| 3019 | namespace Callout |
| 3020 | { |
| 3021 | namespace _GPIO |
| 3022 | { |
| 3023 | |
| 3024 | struct CALLOUT_GPIO_NUM |
| 3025 | { |
| 3026 | /* |
| 3027 | * We can't use -fsanitize=undefined if we declare a |
| 3028 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 3029 | * mako template lookups. |
| 3030 | */ |
| 3031 | static constexpr auto str_short = "CALLOUT_GPIO_NUM"; |
| 3032 | using type = |
| 3033 | std::tuple<std::decay_t<decltype("CALLOUT_GPIO_NUM=%u")>, uint32_t>; |
| 3034 | explicit constexpr CALLOUT_GPIO_NUM(uint32_t a) : |
| 3035 | _entry(entry("CALLOUT_GPIO_NUM=%u", a)){}; |
| 3036 | type _entry; |
| 3037 | }; |
| 3038 | |
| 3039 | } // namespace _GPIO |
| 3040 | |
| 3041 | struct GPIO |
| 3042 | { |
| 3043 | static constexpr auto L = level::ERR; |
| 3044 | using CALLOUT_GPIO_NUM = _GPIO::CALLOUT_GPIO_NUM; |
| 3045 | using CALLOUT_ERRNO = |
| 3046 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO; |
| 3047 | using CALLOUT_DEVICE_PATH = |
| 3048 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH; |
| 3049 | using metadata_types = |
| 3050 | std::tuple<CALLOUT_GPIO_NUM, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
| 3051 | }; |
| 3052 | |
| 3053 | } // namespace Callout |
| 3054 | } // namespace Common |
| 3055 | } // namespace openbmc_project |
| 3056 | } // namespace xyz |
| 3057 | |
| 3058 | namespace details |
| 3059 | { |
| 3060 | |
| 3061 | template <> |
| 3062 | struct map_exception_type< |
| 3063 | sdbusplus::xyz::openbmc_project::Common::Callout::Error::GPIO> |
| 3064 | { |
| 3065 | using type = xyz::openbmc_project::Common::Callout::GPIO; |
| 3066 | }; |
| 3067 | |
| 3068 | } // namespace details |
| 3069 | |
| 3070 | namespace xyz |
| 3071 | { |
| 3072 | namespace openbmc_project |
| 3073 | { |
| 3074 | namespace Common |
| 3075 | { |
| 3076 | namespace Callout |
| 3077 | { |
| 3078 | namespace _IIC |
| 3079 | { |
| 3080 | |
| 3081 | struct CALLOUT_IIC_BUS |
| 3082 | { |
| 3083 | /* |
| 3084 | * We can't use -fsanitize=undefined if we declare a |
| 3085 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 3086 | * mako template lookups. |
| 3087 | */ |
| 3088 | static constexpr auto str_short = "CALLOUT_IIC_BUS"; |
| 3089 | using type = |
| 3090 | std::tuple<std::decay_t<decltype("CALLOUT_IIC_BUS=%s")>, const char*>; |
| 3091 | explicit constexpr CALLOUT_IIC_BUS(const char* a) : |
| 3092 | _entry(entry("CALLOUT_IIC_BUS=%s", a)){}; |
| 3093 | type _entry; |
| 3094 | }; |
| 3095 | struct CALLOUT_IIC_ADDR |
| 3096 | { |
| 3097 | /* |
| 3098 | * We can't use -fsanitize=undefined if we declare a |
| 3099 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 3100 | * mako template lookups. |
| 3101 | */ |
| 3102 | static constexpr auto str_short = "CALLOUT_IIC_ADDR"; |
| 3103 | using type = |
| 3104 | std::tuple<std::decay_t<decltype("CALLOUT_IIC_ADDR=0x%hx")>, uint16_t>; |
| 3105 | explicit constexpr CALLOUT_IIC_ADDR(uint16_t a) : |
| 3106 | _entry(entry("CALLOUT_IIC_ADDR=0x%hx", a)){}; |
| 3107 | type _entry; |
| 3108 | }; |
| 3109 | |
| 3110 | } // namespace _IIC |
| 3111 | |
| 3112 | struct IIC |
| 3113 | { |
| 3114 | static constexpr auto L = level::ERR; |
| 3115 | using CALLOUT_IIC_BUS = _IIC::CALLOUT_IIC_BUS; |
| 3116 | using CALLOUT_IIC_ADDR = _IIC::CALLOUT_IIC_ADDR; |
| 3117 | using CALLOUT_ERRNO = |
| 3118 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO; |
| 3119 | using CALLOUT_DEVICE_PATH = |
| 3120 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH; |
| 3121 | using metadata_types = std::tuple<CALLOUT_IIC_BUS, CALLOUT_IIC_ADDR, |
| 3122 | CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
| 3123 | }; |
| 3124 | |
| 3125 | } // namespace Callout |
| 3126 | } // namespace Common |
| 3127 | } // namespace openbmc_project |
| 3128 | } // namespace xyz |
| 3129 | |
| 3130 | namespace details |
| 3131 | { |
| 3132 | |
| 3133 | template <> |
| 3134 | struct map_exception_type< |
| 3135 | sdbusplus::xyz::openbmc_project::Common::Callout::Error::IIC> |
| 3136 | { |
| 3137 | using type = xyz::openbmc_project::Common::Callout::IIC; |
| 3138 | }; |
| 3139 | |
| 3140 | } // namespace details |
| 3141 | |
| 3142 | namespace xyz |
| 3143 | { |
| 3144 | namespace openbmc_project |
| 3145 | { |
| 3146 | namespace Common |
| 3147 | { |
| 3148 | namespace Callout |
| 3149 | { |
| 3150 | namespace _Inventory |
| 3151 | { |
| 3152 | |
| 3153 | struct CALLOUT_INVENTORY_PATH |
| 3154 | { |
| 3155 | /* |
| 3156 | * We can't use -fsanitize=undefined if we declare a |
| 3157 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 3158 | * mako template lookups. |
| 3159 | */ |
| 3160 | static constexpr auto str_short = "CALLOUT_INVENTORY_PATH"; |
| 3161 | using type = std::tuple<std::decay_t<decltype("CALLOUT_INVENTORY_PATH=%s")>, |
| 3162 | const char*>; |
| 3163 | explicit constexpr CALLOUT_INVENTORY_PATH(const char* a) : |
| 3164 | _entry(entry("CALLOUT_INVENTORY_PATH=%s", a)){}; |
| 3165 | type _entry; |
| 3166 | }; |
| 3167 | |
| 3168 | } // namespace _Inventory |
| 3169 | |
| 3170 | struct Inventory |
| 3171 | { |
| 3172 | static constexpr auto L = level::ERR; |
| 3173 | using CALLOUT_INVENTORY_PATH = _Inventory::CALLOUT_INVENTORY_PATH; |
| 3174 | using metadata_types = std::tuple<CALLOUT_INVENTORY_PATH>; |
| 3175 | }; |
| 3176 | |
| 3177 | } // namespace Callout |
| 3178 | } // namespace Common |
| 3179 | } // namespace openbmc_project |
| 3180 | } // namespace xyz |
| 3181 | |
| 3182 | namespace details |
| 3183 | { |
| 3184 | |
| 3185 | template <> |
| 3186 | struct map_exception_type< |
| 3187 | sdbusplus::xyz::openbmc_project::Common::Callout::Error::Inventory> |
| 3188 | { |
| 3189 | using type = xyz::openbmc_project::Common::Callout::Inventory; |
| 3190 | }; |
| 3191 | |
| 3192 | } // namespace details |
| 3193 | |
| 3194 | namespace xyz |
| 3195 | { |
| 3196 | namespace openbmc_project |
| 3197 | { |
| 3198 | namespace Common |
| 3199 | { |
| 3200 | namespace Callout |
| 3201 | { |
| 3202 | namespace _IPMISensor |
| 3203 | { |
| 3204 | |
| 3205 | struct CALLOUT_IPMI_SENSOR_NUM |
| 3206 | { |
| 3207 | /* |
| 3208 | * We can't use -fsanitize=undefined if we declare a |
| 3209 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 3210 | * mako template lookups. |
| 3211 | */ |
| 3212 | static constexpr auto str_short = "CALLOUT_IPMI_SENSOR_NUM"; |
| 3213 | using type = |
| 3214 | std::tuple<std::decay_t<decltype("CALLOUT_IPMI_SENSOR_NUM=%u")>, |
| 3215 | uint32_t>; |
| 3216 | explicit constexpr CALLOUT_IPMI_SENSOR_NUM(uint32_t a) : |
| 3217 | _entry(entry("CALLOUT_IPMI_SENSOR_NUM=%u", a)){}; |
| 3218 | type _entry; |
| 3219 | }; |
| 3220 | |
| 3221 | } // namespace _IPMISensor |
| 3222 | |
| 3223 | struct IPMISensor |
| 3224 | { |
| 3225 | static constexpr auto L = level::ERR; |
| 3226 | using CALLOUT_IPMI_SENSOR_NUM = _IPMISensor::CALLOUT_IPMI_SENSOR_NUM; |
| 3227 | using metadata_types = std::tuple<CALLOUT_IPMI_SENSOR_NUM>; |
| 3228 | }; |
| 3229 | |
| 3230 | } // namespace Callout |
| 3231 | } // namespace Common |
| 3232 | } // namespace openbmc_project |
| 3233 | } // namespace xyz |
| 3234 | |
| 3235 | namespace details |
| 3236 | { |
| 3237 | |
| 3238 | template <> |
| 3239 | struct map_exception_type< |
| 3240 | sdbusplus::xyz::openbmc_project::Common::Callout::Error::IPMISensor> |
| 3241 | { |
| 3242 | using type = xyz::openbmc_project::Common::Callout::IPMISensor; |
| 3243 | }; |
| 3244 | |
| 3245 | } // namespace details |
| 3246 | |
| 3247 | namespace xyz |
| 3248 | { |
| 3249 | namespace openbmc_project |
| 3250 | { |
| 3251 | namespace Common |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3252 | { |
| 3253 | namespace Device |
| 3254 | { |
| 3255 | namespace _ReadFailure |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 3256 | {} // namespace _ReadFailure |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3257 | |
| 3258 | struct ReadFailure |
| 3259 | { |
| 3260 | static constexpr auto L = level::ERR; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 3261 | using CALLOUT_ERRNO = |
| 3262 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO; |
| 3263 | using CALLOUT_DEVICE_PATH = |
| 3264 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3265 | using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3266 | }; |
| 3267 | |
| 3268 | } // namespace Device |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3269 | } // namespace Common |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3270 | } // namespace openbmc_project |
| 3271 | } // namespace xyz |
| 3272 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3273 | namespace details |
| 3274 | { |
| 3275 | |
| 3276 | template <> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 3277 | struct map_exception_type< |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3278 | sdbusplus::xyz::openbmc_project::Common::Device::Error::ReadFailure> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3279 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3280 | using type = xyz::openbmc_project::Common::Device::ReadFailure; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3281 | }; |
| 3282 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 3283 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3284 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3285 | namespace xyz |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3286 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3287 | namespace openbmc_project |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3288 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3289 | namespace Common |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3290 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3291 | namespace Device |
| 3292 | { |
| 3293 | namespace _WriteFailure |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 3294 | {} // namespace _WriteFailure |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3295 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3296 | struct WriteFailure |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3297 | { |
| 3298 | static constexpr auto L = level::ERR; |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3299 | using CALLOUT_ERRNO = |
| 3300 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO; |
| 3301 | using CALLOUT_DEVICE_PATH = |
| 3302 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH; |
| 3303 | using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3304 | }; |
| 3305 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3306 | } // namespace Device |
| 3307 | } // namespace Common |
| 3308 | } // namespace openbmc_project |
| 3309 | } // namespace xyz |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3310 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3311 | namespace details |
| 3312 | { |
| 3313 | |
| 3314 | template <> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 3315 | struct map_exception_type< |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3316 | sdbusplus::xyz::openbmc_project::Common::Device::Error::WriteFailure> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3317 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3318 | using type = xyz::openbmc_project::Common::Device::WriteFailure; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3319 | }; |
| 3320 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 3321 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3322 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3323 | namespace xyz |
| 3324 | { |
| 3325 | namespace openbmc_project |
| 3326 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3327 | namespace Common |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3328 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3329 | namespace File |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3330 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3331 | namespace _Open |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3332 | { |
| 3333 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3334 | struct ERRNO |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3335 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3336 | /* |
| 3337 | * We can't use -fsanitize=undefined if we declare a |
| 3338 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 3339 | * mako template lookups. |
| 3340 | */ |
| 3341 | static constexpr auto str_short = "ERRNO"; |
| 3342 | using type = std::tuple<std::decay_t<decltype("ERRNO=%d")>, int32_t>; |
| 3343 | explicit constexpr ERRNO(int32_t a) : _entry(entry("ERRNO=%d", a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3344 | type _entry; |
| 3345 | }; |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3346 | struct PATH |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3347 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3348 | /* |
| 3349 | * We can't use -fsanitize=undefined if we declare a |
| 3350 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 3351 | * mako template lookups. |
| 3352 | */ |
| 3353 | static constexpr auto str_short = "PATH"; |
| 3354 | using type = std::tuple<std::decay_t<decltype("PATH=%s")>, const char*>; |
| 3355 | explicit constexpr PATH(const char* a) : _entry(entry("PATH=%s", a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3356 | type _entry; |
| 3357 | }; |
| 3358 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3359 | } // namespace _Open |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3360 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3361 | struct Open |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3362 | { |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3363 | static constexpr auto L = level::ERR; |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3364 | using ERRNO = _Open::ERRNO; |
| 3365 | using PATH = _Open::PATH; |
| 3366 | using metadata_types = std::tuple<ERRNO, PATH>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3367 | }; |
| 3368 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3369 | } // namespace File |
| 3370 | } // namespace Common |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3371 | } // namespace openbmc_project |
| 3372 | } // namespace xyz |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 3373 | |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 3374 | namespace details |
| 3375 | { |
| 3376 | |
| 3377 | template <> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 3378 | struct map_exception_type< |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3379 | sdbusplus::xyz::openbmc_project::Common::File::Error::Open> |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 3380 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3381 | using type = xyz::openbmc_project::Common::File::Open; |
| 3382 | }; |
| 3383 | |
| 3384 | } // namespace details |
| 3385 | |
| 3386 | namespace xyz |
| 3387 | { |
| 3388 | namespace openbmc_project |
| 3389 | { |
| 3390 | namespace Common |
| 3391 | { |
| 3392 | namespace File |
| 3393 | { |
| 3394 | namespace _Seek |
| 3395 | { |
| 3396 | |
| 3397 | struct OFFSET |
| 3398 | { |
| 3399 | /* |
| 3400 | * We can't use -fsanitize=undefined if we declare a |
| 3401 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 3402 | * mako template lookups. |
| 3403 | */ |
| 3404 | static constexpr auto str_short = "OFFSET"; |
| 3405 | using type = std::tuple<std::decay_t<decltype("OFFSET=%ll")>, int64_t>; |
| 3406 | explicit constexpr OFFSET(int64_t a) : _entry(entry("OFFSET=%ll", a)){}; |
| 3407 | type _entry; |
| 3408 | }; |
| 3409 | struct WHENCE |
| 3410 | { |
| 3411 | /* |
| 3412 | * We can't use -fsanitize=undefined if we declare a |
| 3413 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 3414 | * mako template lookups. |
| 3415 | */ |
| 3416 | static constexpr auto str_short = "WHENCE"; |
| 3417 | using type = std::tuple<std::decay_t<decltype("WHENCE=%d")>, int32_t>; |
| 3418 | explicit constexpr WHENCE(int32_t a) : _entry(entry("WHENCE=%d", a)){}; |
| 3419 | type _entry; |
| 3420 | }; |
| 3421 | struct ERRNO |
| 3422 | { |
| 3423 | /* |
| 3424 | * We can't use -fsanitize=undefined if we declare a |
| 3425 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 3426 | * mako template lookups. |
| 3427 | */ |
| 3428 | static constexpr auto str_short = "ERRNO"; |
| 3429 | using type = std::tuple<std::decay_t<decltype("ERRNO=%d")>, int32_t>; |
| 3430 | explicit constexpr ERRNO(int32_t a) : _entry(entry("ERRNO=%d", a)){}; |
| 3431 | type _entry; |
| 3432 | }; |
| 3433 | struct PATH |
| 3434 | { |
| 3435 | /* |
| 3436 | * We can't use -fsanitize=undefined if we declare a |
| 3437 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 3438 | * mako template lookups. |
| 3439 | */ |
| 3440 | static constexpr auto str_short = "PATH"; |
| 3441 | using type = std::tuple<std::decay_t<decltype("PATH=%s")>, const char*>; |
| 3442 | explicit constexpr PATH(const char* a) : _entry(entry("PATH=%s", a)){}; |
| 3443 | type _entry; |
| 3444 | }; |
| 3445 | |
| 3446 | } // namespace _Seek |
| 3447 | |
| 3448 | struct Seek |
| 3449 | { |
| 3450 | static constexpr auto L = level::ERR; |
| 3451 | using OFFSET = _Seek::OFFSET; |
| 3452 | using WHENCE = _Seek::WHENCE; |
| 3453 | using ERRNO = _Seek::ERRNO; |
| 3454 | using PATH = _Seek::PATH; |
| 3455 | using metadata_types = std::tuple<OFFSET, WHENCE, ERRNO, PATH>; |
| 3456 | }; |
| 3457 | |
| 3458 | } // namespace File |
| 3459 | } // namespace Common |
| 3460 | } // namespace openbmc_project |
| 3461 | } // namespace xyz |
| 3462 | |
| 3463 | namespace details |
| 3464 | { |
| 3465 | |
| 3466 | template <> |
| 3467 | struct map_exception_type< |
| 3468 | sdbusplus::xyz::openbmc_project::Common::File::Error::Seek> |
| 3469 | { |
| 3470 | using type = xyz::openbmc_project::Common::File::Seek; |
| 3471 | }; |
| 3472 | |
| 3473 | } // namespace details |
| 3474 | |
| 3475 | namespace xyz |
| 3476 | { |
| 3477 | namespace openbmc_project |
| 3478 | { |
| 3479 | namespace Common |
| 3480 | { |
| 3481 | namespace File |
| 3482 | { |
| 3483 | namespace _Write |
| 3484 | { |
| 3485 | |
| 3486 | struct ERRNO |
| 3487 | { |
| 3488 | /* |
| 3489 | * We can't use -fsanitize=undefined if we declare a |
| 3490 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 3491 | * mako template lookups. |
| 3492 | */ |
| 3493 | static constexpr auto str_short = "ERRNO"; |
| 3494 | using type = std::tuple<std::decay_t<decltype("ERRNO=%d")>, int32_t>; |
| 3495 | explicit constexpr ERRNO(int32_t a) : _entry(entry("ERRNO=%d", a)){}; |
| 3496 | type _entry; |
| 3497 | }; |
| 3498 | struct PATH |
| 3499 | { |
| 3500 | /* |
| 3501 | * We can't use -fsanitize=undefined if we declare a |
| 3502 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 3503 | * mako template lookups. |
| 3504 | */ |
| 3505 | static constexpr auto str_short = "PATH"; |
| 3506 | using type = std::tuple<std::decay_t<decltype("PATH=%s")>, const char*>; |
| 3507 | explicit constexpr PATH(const char* a) : _entry(entry("PATH=%s", a)){}; |
| 3508 | type _entry; |
| 3509 | }; |
| 3510 | |
| 3511 | } // namespace _Write |
| 3512 | |
| 3513 | struct Write |
| 3514 | { |
| 3515 | static constexpr auto L = level::ERR; |
| 3516 | using ERRNO = _Write::ERRNO; |
| 3517 | using PATH = _Write::PATH; |
| 3518 | using metadata_types = std::tuple<ERRNO, PATH>; |
| 3519 | }; |
| 3520 | |
| 3521 | } // namespace File |
| 3522 | } // namespace Common |
| 3523 | } // namespace openbmc_project |
| 3524 | } // namespace xyz |
| 3525 | |
| 3526 | namespace details |
| 3527 | { |
| 3528 | |
| 3529 | template <> |
| 3530 | struct map_exception_type< |
| 3531 | sdbusplus::xyz::openbmc_project::Common::File::Error::Write> |
| 3532 | { |
| 3533 | using type = xyz::openbmc_project::Common::File::Write; |
| 3534 | }; |
| 3535 | |
| 3536 | } // namespace details |
| 3537 | |
| 3538 | namespace xyz |
| 3539 | { |
| 3540 | namespace openbmc_project |
| 3541 | { |
| 3542 | namespace Common |
| 3543 | { |
| 3544 | namespace File |
| 3545 | { |
| 3546 | namespace _Read |
| 3547 | { |
| 3548 | |
| 3549 | struct ERRNO |
| 3550 | { |
| 3551 | /* |
| 3552 | * We can't use -fsanitize=undefined if we declare a |
| 3553 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 3554 | * mako template lookups. |
| 3555 | */ |
| 3556 | static constexpr auto str_short = "ERRNO"; |
| 3557 | using type = std::tuple<std::decay_t<decltype("ERRNO=%d")>, int32_t>; |
| 3558 | explicit constexpr ERRNO(int32_t a) : _entry(entry("ERRNO=%d", a)){}; |
| 3559 | type _entry; |
| 3560 | }; |
| 3561 | struct PATH |
| 3562 | { |
| 3563 | /* |
| 3564 | * We can't use -fsanitize=undefined if we declare a |
| 3565 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 3566 | * mako template lookups. |
| 3567 | */ |
| 3568 | static constexpr auto str_short = "PATH"; |
| 3569 | using type = std::tuple<std::decay_t<decltype("PATH=%s")>, const char*>; |
| 3570 | explicit constexpr PATH(const char* a) : _entry(entry("PATH=%s", a)){}; |
| 3571 | type _entry; |
| 3572 | }; |
| 3573 | |
| 3574 | } // namespace _Read |
| 3575 | |
| 3576 | struct Read |
| 3577 | { |
| 3578 | static constexpr auto L = level::ERR; |
| 3579 | using ERRNO = _Read::ERRNO; |
| 3580 | using PATH = _Read::PATH; |
| 3581 | using metadata_types = std::tuple<ERRNO, PATH>; |
| 3582 | }; |
| 3583 | |
| 3584 | } // namespace File |
| 3585 | } // namespace Common |
| 3586 | } // namespace openbmc_project |
| 3587 | } // namespace xyz |
| 3588 | |
| 3589 | namespace details |
| 3590 | { |
| 3591 | |
| 3592 | template <> |
| 3593 | struct map_exception_type< |
| 3594 | sdbusplus::xyz::openbmc_project::Common::File::Error::Read> |
| 3595 | { |
| 3596 | using type = xyz::openbmc_project::Common::File::Read; |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 3597 | }; |
| 3598 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 3599 | } // namespace details |
Tom Joseph | b647d5b | 2017-10-31 17:25:33 +0530 | [diff] [blame] | 3600 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3601 | namespace xyz |
| 3602 | { |
| 3603 | namespace openbmc_project |
| 3604 | { |
| 3605 | namespace Control |
| 3606 | { |
| 3607 | namespace Device |
| 3608 | { |
| 3609 | namespace _WriteFailure |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 3610 | {} // namespace _WriteFailure |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3611 | |
| 3612 | struct WriteFailure |
| 3613 | { |
| 3614 | static constexpr auto L = level::ERR; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 3615 | using CALLOUT_ERRNO = |
| 3616 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO; |
| 3617 | using CALLOUT_DEVICE_PATH = |
| 3618 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3619 | using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3620 | }; |
| 3621 | |
| 3622 | } // namespace Device |
| 3623 | } // namespace Control |
| 3624 | } // namespace openbmc_project |
| 3625 | } // namespace xyz |
| 3626 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3627 | namespace details |
| 3628 | { |
| 3629 | |
| 3630 | template <> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 3631 | struct map_exception_type< |
| 3632 | sdbusplus::xyz::openbmc_project::Control::Device::Error::WriteFailure> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3633 | { |
| 3634 | using type = xyz::openbmc_project::Control::Device::WriteFailure; |
| 3635 | }; |
| 3636 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 3637 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3638 | |
| 3639 | namespace xyz |
| 3640 | { |
| 3641 | namespace openbmc_project |
| 3642 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3643 | namespace Control |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3644 | { |
| 3645 | namespace Host |
| 3646 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3647 | namespace _CommandNotSupported |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 3648 | {} // namespace _CommandNotSupported |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3649 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3650 | struct CommandNotSupported |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3651 | { |
| 3652 | static constexpr auto L = level::ERR; |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3653 | using metadata_types = std::tuple<>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3654 | }; |
| 3655 | |
| 3656 | } // namespace Host |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3657 | } // namespace Control |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3658 | } // namespace openbmc_project |
| 3659 | } // namespace xyz |
| 3660 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3661 | namespace details |
| 3662 | { |
| 3663 | |
| 3664 | template <> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 3665 | struct map_exception_type< |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3666 | sdbusplus::xyz::openbmc_project::Control::Host::Error::CommandNotSupported> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3667 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3668 | using type = xyz::openbmc_project::Control::Host::CommandNotSupported; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3669 | }; |
| 3670 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 3671 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3672 | |
| 3673 | namespace xyz |
| 3674 | { |
| 3675 | namespace openbmc_project |
| 3676 | { |
| 3677 | namespace Dump |
| 3678 | { |
| 3679 | namespace Create |
| 3680 | { |
| 3681 | namespace _Disabled |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 3682 | {} // namespace _Disabled |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3683 | |
| 3684 | struct Disabled |
| 3685 | { |
| 3686 | static constexpr auto L = level::ERR; |
| 3687 | using metadata_types = std::tuple<>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3688 | }; |
| 3689 | |
| 3690 | } // namespace Create |
| 3691 | } // namespace Dump |
| 3692 | } // namespace openbmc_project |
| 3693 | } // namespace xyz |
| 3694 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3695 | namespace details |
| 3696 | { |
| 3697 | |
| 3698 | template <> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 3699 | struct map_exception_type< |
| 3700 | sdbusplus::xyz::openbmc_project::Dump::Create::Error::Disabled> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3701 | { |
| 3702 | using type = xyz::openbmc_project::Dump::Create::Disabled; |
| 3703 | }; |
| 3704 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 3705 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3706 | |
| 3707 | namespace xyz |
| 3708 | { |
| 3709 | namespace openbmc_project |
| 3710 | { |
| 3711 | namespace Dump |
| 3712 | { |
| 3713 | namespace Create |
| 3714 | { |
| 3715 | namespace _QuotaExceeded |
| 3716 | { |
| 3717 | |
Gunnar Mills | d8249ee | 2018-04-12 16:33:53 -0500 | [diff] [blame] | 3718 | struct REASON |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3719 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3720 | /* |
| 3721 | * We can't use -fsanitize=undefined if we declare a |
| 3722 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 3723 | * mako template lookups. |
| 3724 | */ |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3725 | static constexpr auto str_short = "REASON "; |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3726 | using type = std::tuple<std::decay_t<decltype("REASON = %s")>, const char*>; |
| 3727 | explicit constexpr REASON(const char* a) : |
| 3728 | _entry(entry("REASON = %s", a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3729 | type _entry; |
| 3730 | }; |
| 3731 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 3732 | } // namespace _QuotaExceeded |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3733 | |
| 3734 | struct QuotaExceeded |
| 3735 | { |
| 3736 | static constexpr auto L = level::ERR; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 3737 | using REASON = _QuotaExceeded::REASON; |
| 3738 | using metadata_types = std::tuple<REASON>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3739 | }; |
| 3740 | |
| 3741 | } // namespace Create |
| 3742 | } // namespace Dump |
| 3743 | } // namespace openbmc_project |
| 3744 | } // namespace xyz |
| 3745 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3746 | namespace details |
| 3747 | { |
| 3748 | |
| 3749 | template <> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 3750 | struct map_exception_type< |
| 3751 | sdbusplus::xyz::openbmc_project::Dump::Create::Error::QuotaExceeded> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3752 | { |
| 3753 | using type = xyz::openbmc_project::Dump::Create::QuotaExceeded; |
| 3754 | }; |
| 3755 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 3756 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3757 | |
| 3758 | namespace xyz |
| 3759 | { |
| 3760 | namespace openbmc_project |
| 3761 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3762 | namespace Logging |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3763 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3764 | namespace SEL |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3765 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3766 | namespace _Created |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3767 | { |
| 3768 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3769 | struct RECORD_TYPE |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3770 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3771 | /* |
| 3772 | * We can't use -fsanitize=undefined if we declare a |
| 3773 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 3774 | * mako template lookups. |
| 3775 | */ |
| 3776 | static constexpr auto str_short = "RECORD_TYPE"; |
| 3777 | using type = std::tuple<std::decay_t<decltype("RECORD_TYPE=%u")>, uint8_t>; |
| 3778 | explicit constexpr RECORD_TYPE(uint8_t a) : |
| 3779 | _entry(entry("RECORD_TYPE=%u", a)){}; |
| 3780 | type _entry; |
| 3781 | }; |
| 3782 | struct GENERATOR_ID |
| 3783 | { |
| 3784 | /* |
| 3785 | * We can't use -fsanitize=undefined if we declare a |
| 3786 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 3787 | * mako template lookups. |
| 3788 | */ |
| 3789 | static constexpr auto str_short = "GENERATOR_ID"; |
| 3790 | using type = |
| 3791 | std::tuple<std::decay_t<decltype("GENERATOR_ID=%u")>, uint16_t>; |
| 3792 | explicit constexpr GENERATOR_ID(uint16_t a) : |
| 3793 | _entry(entry("GENERATOR_ID=%u", a)){}; |
| 3794 | type _entry; |
| 3795 | }; |
| 3796 | struct SENSOR_DATA |
| 3797 | { |
| 3798 | /* |
| 3799 | * We can't use -fsanitize=undefined if we declare a |
| 3800 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 3801 | * mako template lookups. |
| 3802 | */ |
| 3803 | static constexpr auto str_short = "SENSOR_DATA"; |
| 3804 | using type = |
| 3805 | std::tuple<std::decay_t<decltype("SENSOR_DATA=%s")>, const char*>; |
| 3806 | explicit constexpr SENSOR_DATA(const char* a) : |
| 3807 | _entry(entry("SENSOR_DATA=%s", a)){}; |
| 3808 | type _entry; |
| 3809 | }; |
| 3810 | struct EVENT_DIR |
| 3811 | { |
| 3812 | /* |
| 3813 | * We can't use -fsanitize=undefined if we declare a |
| 3814 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 3815 | * mako template lookups. |
| 3816 | */ |
| 3817 | static constexpr auto str_short = "EVENT_DIR"; |
| 3818 | using type = std::tuple<std::decay_t<decltype("EVENT_DIR=%u")>, uint8_t>; |
| 3819 | explicit constexpr EVENT_DIR(uint8_t a) : |
| 3820 | _entry(entry("EVENT_DIR=%u", a)){}; |
| 3821 | type _entry; |
| 3822 | }; |
| 3823 | struct SENSOR_PATH |
| 3824 | { |
| 3825 | /* |
| 3826 | * We can't use -fsanitize=undefined if we declare a |
| 3827 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 3828 | * mako template lookups. |
| 3829 | */ |
| 3830 | static constexpr auto str_short = "SENSOR_PATH"; |
| 3831 | using type = |
| 3832 | std::tuple<std::decay_t<decltype("SENSOR_PATH=%s")>, const char*>; |
| 3833 | explicit constexpr SENSOR_PATH(const char* a) : |
| 3834 | _entry(entry("SENSOR_PATH=%s", a)){}; |
| 3835 | type _entry; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3836 | }; |
| 3837 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3838 | } // namespace _Created |
| 3839 | |
| 3840 | struct Created |
| 3841 | { |
| 3842 | static constexpr auto L = level::INFO; |
| 3843 | using RECORD_TYPE = _Created::RECORD_TYPE; |
| 3844 | using GENERATOR_ID = _Created::GENERATOR_ID; |
| 3845 | using SENSOR_DATA = _Created::SENSOR_DATA; |
| 3846 | using EVENT_DIR = _Created::EVENT_DIR; |
| 3847 | using SENSOR_PATH = _Created::SENSOR_PATH; |
| 3848 | using metadata_types = std::tuple<RECORD_TYPE, GENERATOR_ID, SENSOR_DATA, |
| 3849 | EVENT_DIR, SENSOR_PATH>; |
| 3850 | }; |
| 3851 | |
| 3852 | } // namespace SEL |
| 3853 | } // namespace Logging |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3854 | } // namespace openbmc_project |
| 3855 | } // namespace xyz |
| 3856 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3857 | namespace details |
| 3858 | { |
| 3859 | |
| 3860 | template <> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 3861 | struct map_exception_type< |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3862 | sdbusplus::xyz::openbmc_project::Logging::SEL::Error::Created> |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 3863 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3864 | using type = xyz::openbmc_project::Logging::SEL::Created; |
| 3865 | }; |
| 3866 | |
| 3867 | } // namespace details |
| 3868 | |
| 3869 | namespace xyz |
| 3870 | { |
| 3871 | namespace openbmc_project |
| 3872 | { |
| 3873 | namespace Memory |
| 3874 | { |
| 3875 | namespace MemoryECC |
| 3876 | { |
| 3877 | namespace _isLoggingLimitReached |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 3878 | {} // namespace _isLoggingLimitReached |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3879 | |
| 3880 | struct isLoggingLimitReached |
| 3881 | { |
| 3882 | static constexpr auto L = level::ERR; |
| 3883 | using metadata_types = std::tuple<>; |
| 3884 | }; |
| 3885 | |
| 3886 | } // namespace MemoryECC |
| 3887 | } // namespace Memory |
| 3888 | } // namespace openbmc_project |
| 3889 | } // namespace xyz |
| 3890 | |
| 3891 | namespace details |
| 3892 | { |
| 3893 | |
| 3894 | template <> |
| 3895 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Memory::MemoryECC:: |
| 3896 | Error::isLoggingLimitReached> |
| 3897 | { |
| 3898 | using type = xyz::openbmc_project::Memory::MemoryECC::isLoggingLimitReached; |
| 3899 | }; |
| 3900 | |
| 3901 | } // namespace details |
| 3902 | |
| 3903 | namespace xyz |
| 3904 | { |
| 3905 | namespace openbmc_project |
| 3906 | { |
| 3907 | namespace Memory |
| 3908 | { |
| 3909 | namespace MemoryECC |
| 3910 | { |
| 3911 | namespace _ceCount |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 3912 | {} // namespace _ceCount |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3913 | |
| 3914 | struct ceCount |
| 3915 | { |
| 3916 | static constexpr auto L = level::ERR; |
| 3917 | using metadata_types = std::tuple<>; |
| 3918 | }; |
| 3919 | |
| 3920 | } // namespace MemoryECC |
| 3921 | } // namespace Memory |
| 3922 | } // namespace openbmc_project |
| 3923 | } // namespace xyz |
| 3924 | |
| 3925 | namespace details |
| 3926 | { |
| 3927 | |
| 3928 | template <> |
| 3929 | struct map_exception_type< |
| 3930 | sdbusplus::xyz::openbmc_project::Memory::MemoryECC::Error::ceCount> |
| 3931 | { |
| 3932 | using type = xyz::openbmc_project::Memory::MemoryECC::ceCount; |
| 3933 | }; |
| 3934 | |
| 3935 | } // namespace details |
| 3936 | |
| 3937 | namespace xyz |
| 3938 | { |
| 3939 | namespace openbmc_project |
| 3940 | { |
| 3941 | namespace Memory |
| 3942 | { |
| 3943 | namespace MemoryECC |
| 3944 | { |
| 3945 | namespace _ueCount |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 3946 | {} // namespace _ueCount |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3947 | |
| 3948 | struct ueCount |
| 3949 | { |
| 3950 | static constexpr auto L = level::ERR; |
| 3951 | using metadata_types = std::tuple<>; |
| 3952 | }; |
| 3953 | |
| 3954 | } // namespace MemoryECC |
| 3955 | } // namespace Memory |
| 3956 | } // namespace openbmc_project |
| 3957 | } // namespace xyz |
| 3958 | |
| 3959 | namespace details |
| 3960 | { |
| 3961 | |
| 3962 | template <> |
| 3963 | struct map_exception_type< |
| 3964 | sdbusplus::xyz::openbmc_project::Memory::MemoryECC::Error::ueCount> |
| 3965 | { |
| 3966 | using type = xyz::openbmc_project::Memory::MemoryECC::ueCount; |
| 3967 | }; |
| 3968 | |
| 3969 | } // namespace details |
| 3970 | |
| 3971 | namespace xyz |
| 3972 | { |
| 3973 | namespace openbmc_project |
| 3974 | { |
| 3975 | namespace Nvme |
| 3976 | { |
| 3977 | namespace Status |
| 3978 | { |
| 3979 | namespace _CapacityFault |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 3980 | {} // namespace _CapacityFault |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 3981 | |
| 3982 | struct CapacityFault |
| 3983 | { |
| 3984 | static constexpr auto L = level::ERR; |
| 3985 | using metadata_types = std::tuple<>; |
| 3986 | }; |
| 3987 | |
| 3988 | } // namespace Status |
| 3989 | } // namespace Nvme |
| 3990 | } // namespace openbmc_project |
| 3991 | } // namespace xyz |
| 3992 | |
| 3993 | namespace details |
| 3994 | { |
| 3995 | |
| 3996 | template <> |
| 3997 | struct map_exception_type< |
| 3998 | sdbusplus::xyz::openbmc_project::Nvme::Status::Error::CapacityFault> |
| 3999 | { |
| 4000 | using type = xyz::openbmc_project::Nvme::Status::CapacityFault; |
| 4001 | }; |
| 4002 | |
| 4003 | } // namespace details |
| 4004 | |
| 4005 | namespace xyz |
| 4006 | { |
| 4007 | namespace openbmc_project |
| 4008 | { |
| 4009 | namespace Nvme |
| 4010 | { |
| 4011 | namespace Status |
| 4012 | { |
| 4013 | namespace _TemperatureFault |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 4014 | {} // namespace _TemperatureFault |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 4015 | |
| 4016 | struct TemperatureFault |
| 4017 | { |
| 4018 | static constexpr auto L = level::ERR; |
| 4019 | using metadata_types = std::tuple<>; |
| 4020 | }; |
| 4021 | |
| 4022 | } // namespace Status |
| 4023 | } // namespace Nvme |
| 4024 | } // namespace openbmc_project |
| 4025 | } // namespace xyz |
| 4026 | |
| 4027 | namespace details |
| 4028 | { |
| 4029 | |
| 4030 | template <> |
| 4031 | struct map_exception_type< |
| 4032 | sdbusplus::xyz::openbmc_project::Nvme::Status::Error::TemperatureFault> |
| 4033 | { |
| 4034 | using type = xyz::openbmc_project::Nvme::Status::TemperatureFault; |
| 4035 | }; |
| 4036 | |
| 4037 | } // namespace details |
| 4038 | |
| 4039 | namespace xyz |
| 4040 | { |
| 4041 | namespace openbmc_project |
| 4042 | { |
| 4043 | namespace Nvme |
| 4044 | { |
| 4045 | namespace Status |
| 4046 | { |
| 4047 | namespace _DegradesFault |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 4048 | {} // namespace _DegradesFault |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 4049 | |
| 4050 | struct DegradesFault |
| 4051 | { |
| 4052 | static constexpr auto L = level::ERR; |
| 4053 | using metadata_types = std::tuple<>; |
| 4054 | }; |
| 4055 | |
| 4056 | } // namespace Status |
| 4057 | } // namespace Nvme |
| 4058 | } // namespace openbmc_project |
| 4059 | } // namespace xyz |
| 4060 | |
| 4061 | namespace details |
| 4062 | { |
| 4063 | |
| 4064 | template <> |
| 4065 | struct map_exception_type< |
| 4066 | sdbusplus::xyz::openbmc_project::Nvme::Status::Error::DegradesFault> |
| 4067 | { |
| 4068 | using type = xyz::openbmc_project::Nvme::Status::DegradesFault; |
| 4069 | }; |
| 4070 | |
| 4071 | } // namespace details |
| 4072 | |
| 4073 | namespace xyz |
| 4074 | { |
| 4075 | namespace openbmc_project |
| 4076 | { |
| 4077 | namespace Nvme |
| 4078 | { |
| 4079 | namespace Status |
| 4080 | { |
| 4081 | namespace _MediaFault |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 4082 | {} // namespace _MediaFault |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 4083 | |
| 4084 | struct MediaFault |
| 4085 | { |
| 4086 | static constexpr auto L = level::ERR; |
| 4087 | using metadata_types = std::tuple<>; |
| 4088 | }; |
| 4089 | |
| 4090 | } // namespace Status |
| 4091 | } // namespace Nvme |
| 4092 | } // namespace openbmc_project |
| 4093 | } // namespace xyz |
| 4094 | |
| 4095 | namespace details |
| 4096 | { |
| 4097 | |
| 4098 | template <> |
| 4099 | struct map_exception_type< |
| 4100 | sdbusplus::xyz::openbmc_project::Nvme::Status::Error::MediaFault> |
| 4101 | { |
| 4102 | using type = xyz::openbmc_project::Nvme::Status::MediaFault; |
| 4103 | }; |
| 4104 | |
| 4105 | } // namespace details |
| 4106 | |
| 4107 | namespace xyz |
| 4108 | { |
| 4109 | namespace openbmc_project |
| 4110 | { |
| 4111 | namespace Nvme |
| 4112 | { |
| 4113 | namespace Status |
| 4114 | { |
| 4115 | namespace _BackupDeviceFault |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 4116 | {} // namespace _BackupDeviceFault |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 4117 | |
| 4118 | struct BackupDeviceFault |
| 4119 | { |
| 4120 | static constexpr auto L = level::ERR; |
| 4121 | using metadata_types = std::tuple<>; |
| 4122 | }; |
| 4123 | |
| 4124 | } // namespace Status |
| 4125 | } // namespace Nvme |
| 4126 | } // namespace openbmc_project |
| 4127 | } // namespace xyz |
| 4128 | |
| 4129 | namespace details |
| 4130 | { |
| 4131 | |
| 4132 | template <> |
| 4133 | struct map_exception_type< |
| 4134 | sdbusplus::xyz::openbmc_project::Nvme::Status::Error::BackupDeviceFault> |
| 4135 | { |
| 4136 | using type = xyz::openbmc_project::Nvme::Status::BackupDeviceFault; |
| 4137 | }; |
| 4138 | |
| 4139 | } // namespace details |
| 4140 | |
| 4141 | namespace xyz |
| 4142 | { |
| 4143 | namespace openbmc_project |
| 4144 | { |
| 4145 | namespace Sensor |
| 4146 | { |
| 4147 | namespace Device |
| 4148 | { |
| 4149 | namespace _ReadFailure |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 4150 | {} // namespace _ReadFailure |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 4151 | |
| 4152 | struct ReadFailure |
| 4153 | { |
| 4154 | static constexpr auto L = level::ERR; |
| 4155 | using CALLOUT_ERRNO = |
| 4156 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO; |
| 4157 | using CALLOUT_DEVICE_PATH = |
| 4158 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH; |
| 4159 | using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
| 4160 | }; |
| 4161 | |
| 4162 | } // namespace Device |
| 4163 | } // namespace Sensor |
| 4164 | } // namespace openbmc_project |
| 4165 | } // namespace xyz |
| 4166 | |
| 4167 | namespace details |
| 4168 | { |
| 4169 | |
| 4170 | template <> |
| 4171 | struct map_exception_type< |
| 4172 | sdbusplus::xyz::openbmc_project::Sensor::Device::Error::ReadFailure> |
| 4173 | { |
| 4174 | using type = xyz::openbmc_project::Sensor::Device::ReadFailure; |
| 4175 | }; |
| 4176 | |
| 4177 | } // namespace details |
| 4178 | |
| 4179 | namespace xyz |
| 4180 | { |
| 4181 | namespace openbmc_project |
| 4182 | { |
| 4183 | namespace Sensor |
| 4184 | { |
| 4185 | namespace Threshold |
| 4186 | { |
| 4187 | namespace _CriticalHigh |
| 4188 | { |
| 4189 | |
| 4190 | struct SENSOR_DATA |
| 4191 | { |
| 4192 | /* |
| 4193 | * We can't use -fsanitize=undefined if we declare a |
| 4194 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 4195 | * mako template lookups. |
| 4196 | */ |
| 4197 | static constexpr auto str_short = "SENSOR_DATA"; |
| 4198 | using type = |
| 4199 | std::tuple<std::decay_t<decltype("SENSOR_DATA=%s")>, const char*>; |
| 4200 | explicit constexpr SENSOR_DATA(const char* a) : |
| 4201 | _entry(entry("SENSOR_DATA=%s", a)){}; |
| 4202 | type _entry; |
| 4203 | }; |
| 4204 | |
| 4205 | } // namespace _CriticalHigh |
| 4206 | |
| 4207 | struct CriticalHigh |
| 4208 | { |
| 4209 | static constexpr auto L = level::ERR; |
| 4210 | using SENSOR_DATA = _CriticalHigh::SENSOR_DATA; |
| 4211 | using metadata_types = std::tuple<SENSOR_DATA>; |
| 4212 | }; |
| 4213 | |
| 4214 | } // namespace Threshold |
| 4215 | } // namespace Sensor |
| 4216 | } // namespace openbmc_project |
| 4217 | } // namespace xyz |
| 4218 | |
| 4219 | namespace details |
| 4220 | { |
| 4221 | |
| 4222 | template <> |
| 4223 | struct map_exception_type< |
| 4224 | sdbusplus::xyz::openbmc_project::Sensor::Threshold::Error::CriticalHigh> |
| 4225 | { |
| 4226 | using type = xyz::openbmc_project::Sensor::Threshold::CriticalHigh; |
| 4227 | }; |
| 4228 | |
| 4229 | } // namespace details |
| 4230 | |
| 4231 | namespace xyz |
| 4232 | { |
| 4233 | namespace openbmc_project |
| 4234 | { |
| 4235 | namespace Sensor |
| 4236 | { |
| 4237 | namespace Threshold |
| 4238 | { |
| 4239 | namespace _CriticalLow |
| 4240 | { |
| 4241 | |
| 4242 | struct SENSOR_DATA |
| 4243 | { |
| 4244 | /* |
| 4245 | * We can't use -fsanitize=undefined if we declare a |
| 4246 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 4247 | * mako template lookups. |
| 4248 | */ |
| 4249 | static constexpr auto str_short = "SENSOR_DATA"; |
| 4250 | using type = |
| 4251 | std::tuple<std::decay_t<decltype("SENSOR_DATA=%s")>, const char*>; |
| 4252 | explicit constexpr SENSOR_DATA(const char* a) : |
| 4253 | _entry(entry("SENSOR_DATA=%s", a)){}; |
| 4254 | type _entry; |
| 4255 | }; |
| 4256 | |
| 4257 | } // namespace _CriticalLow |
| 4258 | |
| 4259 | struct CriticalLow |
| 4260 | { |
| 4261 | static constexpr auto L = level::ERR; |
| 4262 | using SENSOR_DATA = _CriticalLow::SENSOR_DATA; |
| 4263 | using metadata_types = std::tuple<SENSOR_DATA>; |
| 4264 | }; |
| 4265 | |
| 4266 | } // namespace Threshold |
| 4267 | } // namespace Sensor |
| 4268 | } // namespace openbmc_project |
| 4269 | } // namespace xyz |
| 4270 | |
| 4271 | namespace details |
| 4272 | { |
| 4273 | |
| 4274 | template <> |
| 4275 | struct map_exception_type< |
| 4276 | sdbusplus::xyz::openbmc_project::Sensor::Threshold::Error::CriticalLow> |
| 4277 | { |
| 4278 | using type = xyz::openbmc_project::Sensor::Threshold::CriticalLow; |
| 4279 | }; |
| 4280 | |
| 4281 | } // namespace details |
| 4282 | |
| 4283 | namespace xyz |
| 4284 | { |
| 4285 | namespace openbmc_project |
| 4286 | { |
| 4287 | namespace Smbios |
| 4288 | { |
| 4289 | namespace MDR_V2 |
| 4290 | { |
| 4291 | namespace _InvalidParameter |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 4292 | {} // namespace _InvalidParameter |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 4293 | |
| 4294 | struct InvalidParameter |
| 4295 | { |
| 4296 | static constexpr auto L = level::ERR; |
| 4297 | using metadata_types = std::tuple<>; |
| 4298 | }; |
| 4299 | |
| 4300 | } // namespace MDR_V2 |
| 4301 | } // namespace Smbios |
| 4302 | } // namespace openbmc_project |
| 4303 | } // namespace xyz |
| 4304 | |
| 4305 | namespace details |
| 4306 | { |
| 4307 | |
| 4308 | template <> |
| 4309 | struct map_exception_type< |
| 4310 | sdbusplus::xyz::openbmc_project::Smbios::MDR_V2::Error::InvalidParameter> |
| 4311 | { |
| 4312 | using type = xyz::openbmc_project::Smbios::MDR_V2::InvalidParameter; |
| 4313 | }; |
| 4314 | |
| 4315 | } // namespace details |
| 4316 | |
| 4317 | namespace xyz |
| 4318 | { |
| 4319 | namespace openbmc_project |
| 4320 | { |
| 4321 | namespace Smbios |
| 4322 | { |
| 4323 | namespace MDR_V2 |
| 4324 | { |
| 4325 | namespace _UpdateInProgress |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 4326 | {} // namespace _UpdateInProgress |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 4327 | |
| 4328 | struct UpdateInProgress |
| 4329 | { |
| 4330 | static constexpr auto L = level::ERR; |
| 4331 | using metadata_types = std::tuple<>; |
| 4332 | }; |
| 4333 | |
| 4334 | } // namespace MDR_V2 |
| 4335 | } // namespace Smbios |
| 4336 | } // namespace openbmc_project |
| 4337 | } // namespace xyz |
| 4338 | |
| 4339 | namespace details |
| 4340 | { |
| 4341 | |
| 4342 | template <> |
| 4343 | struct map_exception_type< |
| 4344 | sdbusplus::xyz::openbmc_project::Smbios::MDR_V2::Error::UpdateInProgress> |
| 4345 | { |
| 4346 | using type = xyz::openbmc_project::Smbios::MDR_V2::UpdateInProgress; |
| 4347 | }; |
| 4348 | |
| 4349 | } // namespace details |
| 4350 | |
| 4351 | namespace xyz |
| 4352 | { |
| 4353 | namespace openbmc_project |
| 4354 | { |
| 4355 | namespace Smbios |
| 4356 | { |
| 4357 | namespace MDR_V2 |
| 4358 | { |
| 4359 | namespace _InvalidId |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 4360 | {} // namespace _InvalidId |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 4361 | |
| 4362 | struct InvalidId |
| 4363 | { |
| 4364 | static constexpr auto L = level::ERR; |
| 4365 | using metadata_types = std::tuple<>; |
| 4366 | }; |
| 4367 | |
| 4368 | } // namespace MDR_V2 |
| 4369 | } // namespace Smbios |
| 4370 | } // namespace openbmc_project |
| 4371 | } // namespace xyz |
| 4372 | |
| 4373 | namespace details |
| 4374 | { |
| 4375 | |
| 4376 | template <> |
| 4377 | struct map_exception_type< |
| 4378 | sdbusplus::xyz::openbmc_project::Smbios::MDR_V2::Error::InvalidId> |
| 4379 | { |
| 4380 | using type = xyz::openbmc_project::Smbios::MDR_V2::InvalidId; |
| 4381 | }; |
| 4382 | |
| 4383 | } // namespace details |
| 4384 | |
| 4385 | namespace xyz |
| 4386 | { |
| 4387 | namespace openbmc_project |
| 4388 | { |
| 4389 | namespace Software |
| 4390 | { |
| 4391 | namespace Version |
| 4392 | { |
| 4393 | namespace _Incompatible |
| 4394 | { |
| 4395 | |
| 4396 | struct MIN_VERSION |
| 4397 | { |
| 4398 | /* |
| 4399 | * We can't use -fsanitize=undefined if we declare a |
| 4400 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 4401 | * mako template lookups. |
| 4402 | */ |
| 4403 | static constexpr auto str_short = "MIN_VERSION"; |
| 4404 | using type = |
| 4405 | std::tuple<std::decay_t<decltype("MIN_VERSION=%s")>, const char*>; |
| 4406 | explicit constexpr MIN_VERSION(const char* a) : |
| 4407 | _entry(entry("MIN_VERSION=%s", a)){}; |
| 4408 | type _entry; |
| 4409 | }; |
| 4410 | struct ACTUAL_VERSION |
| 4411 | { |
| 4412 | /* |
| 4413 | * We can't use -fsanitize=undefined if we declare a |
| 4414 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 4415 | * mako template lookups. |
| 4416 | */ |
| 4417 | static constexpr auto str_short = "ACTUAL_VERSION"; |
| 4418 | using type = |
| 4419 | std::tuple<std::decay_t<decltype("ACTUAL_VERSION=%s")>, const char*>; |
| 4420 | explicit constexpr ACTUAL_VERSION(const char* a) : |
| 4421 | _entry(entry("ACTUAL_VERSION=%s", a)){}; |
| 4422 | type _entry; |
| 4423 | }; |
| 4424 | struct VERSION_PURPOSE |
| 4425 | { |
| 4426 | /* |
| 4427 | * We can't use -fsanitize=undefined if we declare a |
| 4428 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 4429 | * mako template lookups. |
| 4430 | */ |
| 4431 | static constexpr auto str_short = "VERSION_PURPOSE"; |
| 4432 | using type = |
| 4433 | std::tuple<std::decay_t<decltype("VERSION_PURPOSE=%s")>, const char*>; |
| 4434 | explicit constexpr VERSION_PURPOSE(const char* a) : |
| 4435 | _entry(entry("VERSION_PURPOSE=%s", a)){}; |
| 4436 | type _entry; |
| 4437 | }; |
| 4438 | |
| 4439 | } // namespace _Incompatible |
| 4440 | |
| 4441 | struct Incompatible |
| 4442 | { |
| 4443 | static constexpr auto L = level::ERR; |
| 4444 | using MIN_VERSION = _Incompatible::MIN_VERSION; |
| 4445 | using ACTUAL_VERSION = _Incompatible::ACTUAL_VERSION; |
| 4446 | using VERSION_PURPOSE = _Incompatible::VERSION_PURPOSE; |
| 4447 | using metadata_types = |
| 4448 | std::tuple<MIN_VERSION, ACTUAL_VERSION, VERSION_PURPOSE>; |
| 4449 | }; |
| 4450 | |
| 4451 | } // namespace Version |
| 4452 | } // namespace Software |
| 4453 | } // namespace openbmc_project |
| 4454 | } // namespace xyz |
| 4455 | |
| 4456 | namespace details |
| 4457 | { |
| 4458 | |
| 4459 | template <> |
| 4460 | struct map_exception_type< |
| 4461 | sdbusplus::xyz::openbmc_project::Software::Version::Error::Incompatible> |
| 4462 | { |
| 4463 | using type = xyz::openbmc_project::Software::Version::Incompatible; |
| 4464 | }; |
| 4465 | |
| 4466 | } // namespace details |
| 4467 | |
| 4468 | namespace xyz |
| 4469 | { |
| 4470 | namespace openbmc_project |
| 4471 | { |
| 4472 | namespace Software |
| 4473 | { |
| 4474 | namespace Version |
| 4475 | { |
| 4476 | namespace _AlreadyExists |
| 4477 | { |
| 4478 | |
| 4479 | struct IMAGE_VERSION |
| 4480 | { |
| 4481 | /* |
| 4482 | * We can't use -fsanitize=undefined if we declare a |
| 4483 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 4484 | * mako template lookups. |
| 4485 | */ |
| 4486 | static constexpr auto str_short = "IMAGE_VERSION"; |
| 4487 | using type = |
| 4488 | std::tuple<std::decay_t<decltype("IMAGE_VERSION=%s")>, const char*>; |
| 4489 | explicit constexpr IMAGE_VERSION(const char* a) : |
| 4490 | _entry(entry("IMAGE_VERSION=%s", a)){}; |
| 4491 | type _entry; |
| 4492 | }; |
| 4493 | |
| 4494 | } // namespace _AlreadyExists |
| 4495 | |
| 4496 | struct AlreadyExists |
| 4497 | { |
| 4498 | static constexpr auto L = level::ERR; |
| 4499 | using IMAGE_VERSION = _AlreadyExists::IMAGE_VERSION; |
| 4500 | using metadata_types = std::tuple<IMAGE_VERSION>; |
| 4501 | }; |
| 4502 | |
| 4503 | } // namespace Version |
| 4504 | } // namespace Software |
| 4505 | } // namespace openbmc_project |
| 4506 | } // namespace xyz |
| 4507 | |
| 4508 | namespace details |
| 4509 | { |
| 4510 | |
| 4511 | template <> |
| 4512 | struct map_exception_type< |
| 4513 | sdbusplus::xyz::openbmc_project::Software::Version::Error::AlreadyExists> |
| 4514 | { |
| 4515 | using type = xyz::openbmc_project::Software::Version::AlreadyExists; |
| 4516 | }; |
| 4517 | |
| 4518 | } // namespace details |
| 4519 | |
| 4520 | namespace xyz |
| 4521 | { |
| 4522 | namespace openbmc_project |
| 4523 | { |
| 4524 | namespace State |
| 4525 | { |
| 4526 | namespace Host |
| 4527 | { |
| 4528 | namespace _SoftOffTimeout |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 4529 | {} // namespace _SoftOffTimeout |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 4530 | |
| 4531 | struct SoftOffTimeout |
| 4532 | { |
| 4533 | static constexpr auto L = level::ERR; |
| 4534 | using TIMEOUT_IN_MSEC = |
| 4535 | xyz::openbmc_project::Common::Timeout::TIMEOUT_IN_MSEC; |
| 4536 | using metadata_types = std::tuple<TIMEOUT_IN_MSEC>; |
| 4537 | }; |
| 4538 | |
| 4539 | } // namespace Host |
| 4540 | } // namespace State |
| 4541 | } // namespace openbmc_project |
| 4542 | } // namespace xyz |
| 4543 | |
| 4544 | namespace details |
| 4545 | { |
| 4546 | |
| 4547 | template <> |
| 4548 | struct map_exception_type< |
| 4549 | sdbusplus::xyz::openbmc_project::State::Host::Error::SoftOffTimeout> |
| 4550 | { |
| 4551 | using type = xyz::openbmc_project::State::Host::SoftOffTimeout; |
| 4552 | }; |
| 4553 | |
| 4554 | } // namespace details |
| 4555 | |
| 4556 | namespace xyz |
| 4557 | { |
| 4558 | namespace openbmc_project |
| 4559 | { |
| 4560 | namespace State |
| 4561 | { |
| 4562 | namespace SystemdTarget |
| 4563 | { |
| 4564 | namespace _Failure |
| 4565 | { |
| 4566 | |
| 4567 | struct SYSTEMD_RESULT |
| 4568 | { |
| 4569 | /* |
| 4570 | * We can't use -fsanitize=undefined if we declare a |
| 4571 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 4572 | * mako template lookups. |
| 4573 | */ |
| 4574 | static constexpr auto str_short = "SYSTEMD_RESULT"; |
| 4575 | using type = |
| 4576 | std::tuple<std::decay_t<decltype("SYSTEMD_RESULT=%s")>, const char*>; |
| 4577 | explicit constexpr SYSTEMD_RESULT(const char* a) : |
| 4578 | _entry(entry("SYSTEMD_RESULT=%s", a)){}; |
| 4579 | type _entry; |
| 4580 | }; |
| 4581 | |
| 4582 | } // namespace _Failure |
| 4583 | |
| 4584 | struct Failure |
| 4585 | { |
| 4586 | static constexpr auto L = level::ERR; |
| 4587 | using SYSTEMD_RESULT = _Failure::SYSTEMD_RESULT; |
| 4588 | using metadata_types = std::tuple<SYSTEMD_RESULT>; |
| 4589 | }; |
| 4590 | |
| 4591 | } // namespace SystemdTarget |
| 4592 | } // namespace State |
| 4593 | } // namespace openbmc_project |
| 4594 | } // namespace xyz |
| 4595 | |
| 4596 | namespace details |
| 4597 | { |
| 4598 | |
| 4599 | template <> |
| 4600 | struct map_exception_type< |
| 4601 | sdbusplus::xyz::openbmc_project::State::SystemdTarget::Error::Failure> |
| 4602 | { |
| 4603 | using type = xyz::openbmc_project::State::SystemdTarget::Failure; |
| 4604 | }; |
| 4605 | |
| 4606 | } // namespace details |
| 4607 | |
| 4608 | namespace xyz |
| 4609 | { |
| 4610 | namespace openbmc_project |
| 4611 | { |
| 4612 | namespace State |
| 4613 | { |
| 4614 | namespace Shutdown |
| 4615 | { |
| 4616 | namespace Inventory |
| 4617 | { |
| 4618 | namespace _Fan |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 4619 | {} // namespace _Fan |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 4620 | |
| 4621 | struct Fan |
| 4622 | { |
| 4623 | static constexpr auto L = level::ERR; |
| 4624 | using metadata_types = std::tuple<>; |
| 4625 | }; |
| 4626 | |
| 4627 | } // namespace Inventory |
| 4628 | } // namespace Shutdown |
| 4629 | } // namespace State |
| 4630 | } // namespace openbmc_project |
| 4631 | } // namespace xyz |
| 4632 | |
| 4633 | namespace details |
| 4634 | { |
| 4635 | |
| 4636 | template <> |
| 4637 | struct map_exception_type< |
| 4638 | sdbusplus::xyz::openbmc_project::State::Shutdown::Inventory::Error::Fan> |
| 4639 | { |
| 4640 | using type = xyz::openbmc_project::State::Shutdown::Inventory::Fan; |
| 4641 | }; |
| 4642 | |
| 4643 | } // namespace details |
| 4644 | |
| 4645 | namespace xyz |
| 4646 | { |
| 4647 | namespace openbmc_project |
| 4648 | { |
| 4649 | namespace State |
| 4650 | { |
| 4651 | namespace Shutdown |
| 4652 | { |
| 4653 | namespace ThermalEvent |
| 4654 | { |
| 4655 | namespace _Processor |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 4656 | {} // namespace _Processor |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 4657 | |
| 4658 | struct Processor |
| 4659 | { |
| 4660 | static constexpr auto L = level::ERR; |
| 4661 | using metadata_types = std::tuple<>; |
| 4662 | }; |
| 4663 | |
| 4664 | } // namespace ThermalEvent |
| 4665 | } // namespace Shutdown |
| 4666 | } // namespace State |
| 4667 | } // namespace openbmc_project |
| 4668 | } // namespace xyz |
| 4669 | |
| 4670 | namespace details |
| 4671 | { |
| 4672 | |
| 4673 | template <> |
| 4674 | struct map_exception_type<sdbusplus::xyz::openbmc_project::State::Shutdown:: |
| 4675 | ThermalEvent::Error::Processor> |
| 4676 | { |
| 4677 | using type = xyz::openbmc_project::State::Shutdown::ThermalEvent::Processor; |
| 4678 | }; |
| 4679 | |
| 4680 | } // namespace details |
| 4681 | |
| 4682 | namespace xyz |
| 4683 | { |
| 4684 | namespace openbmc_project |
| 4685 | { |
| 4686 | namespace State |
| 4687 | { |
| 4688 | namespace Shutdown |
| 4689 | { |
| 4690 | namespace ThermalEvent |
| 4691 | { |
| 4692 | namespace _GPU |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 4693 | {} // namespace _GPU |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 4694 | |
| 4695 | struct GPU |
| 4696 | { |
| 4697 | static constexpr auto L = level::ERR; |
| 4698 | using metadata_types = std::tuple<>; |
| 4699 | }; |
| 4700 | |
| 4701 | } // namespace ThermalEvent |
| 4702 | } // namespace Shutdown |
| 4703 | } // namespace State |
| 4704 | } // namespace openbmc_project |
| 4705 | } // namespace xyz |
| 4706 | |
| 4707 | namespace details |
| 4708 | { |
| 4709 | |
| 4710 | template <> |
| 4711 | struct map_exception_type< |
| 4712 | sdbusplus::xyz::openbmc_project::State::Shutdown::ThermalEvent::Error::GPU> |
| 4713 | { |
| 4714 | using type = xyz::openbmc_project::State::Shutdown::ThermalEvent::GPU; |
| 4715 | }; |
| 4716 | |
| 4717 | } // namespace details |
| 4718 | |
| 4719 | namespace xyz |
| 4720 | { |
| 4721 | namespace openbmc_project |
| 4722 | { |
| 4723 | namespace State |
| 4724 | { |
| 4725 | namespace Shutdown |
| 4726 | { |
| 4727 | namespace ThermalEvent |
| 4728 | { |
| 4729 | namespace _Ambient |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 4730 | {} // namespace _Ambient |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 4731 | |
| 4732 | struct Ambient |
| 4733 | { |
| 4734 | static constexpr auto L = level::ERR; |
| 4735 | using metadata_types = std::tuple<>; |
| 4736 | }; |
| 4737 | |
| 4738 | } // namespace ThermalEvent |
| 4739 | } // namespace Shutdown |
| 4740 | } // namespace State |
| 4741 | } // namespace openbmc_project |
| 4742 | } // namespace xyz |
| 4743 | |
| 4744 | namespace details |
| 4745 | { |
| 4746 | |
| 4747 | template <> |
| 4748 | struct map_exception_type<sdbusplus::xyz::openbmc_project::State::Shutdown:: |
| 4749 | ThermalEvent::Error::Ambient> |
| 4750 | { |
| 4751 | using type = xyz::openbmc_project::State::Shutdown::ThermalEvent::Ambient; |
| 4752 | }; |
| 4753 | |
| 4754 | } // namespace details |
| 4755 | |
| 4756 | namespace xyz |
| 4757 | { |
| 4758 | namespace openbmc_project |
| 4759 | { |
| 4760 | namespace State |
| 4761 | { |
| 4762 | namespace Shutdown |
| 4763 | { |
| 4764 | namespace Power |
| 4765 | { |
| 4766 | namespace _Fault |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 4767 | {} // namespace _Fault |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 4768 | |
| 4769 | struct Fault |
| 4770 | { |
| 4771 | static constexpr auto L = level::ERR; |
| 4772 | using metadata_types = std::tuple<>; |
| 4773 | }; |
| 4774 | |
| 4775 | } // namespace Power |
| 4776 | } // namespace Shutdown |
| 4777 | } // namespace State |
| 4778 | } // namespace openbmc_project |
| 4779 | } // namespace xyz |
| 4780 | |
| 4781 | namespace details |
| 4782 | { |
| 4783 | |
| 4784 | template <> |
| 4785 | struct map_exception_type< |
| 4786 | sdbusplus::xyz::openbmc_project::State::Shutdown::Power::Error::Fault> |
| 4787 | { |
| 4788 | using type = xyz::openbmc_project::State::Shutdown::Power::Fault; |
| 4789 | }; |
| 4790 | |
| 4791 | } // namespace details |
| 4792 | |
| 4793 | namespace xyz |
| 4794 | { |
| 4795 | namespace openbmc_project |
| 4796 | { |
| 4797 | namespace State |
| 4798 | { |
| 4799 | namespace Shutdown |
| 4800 | { |
| 4801 | namespace Power |
| 4802 | { |
| 4803 | namespace _Blackout |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 4804 | {} // namespace _Blackout |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 4805 | |
| 4806 | struct Blackout |
| 4807 | { |
| 4808 | static constexpr auto L = level::ERR; |
| 4809 | using metadata_types = std::tuple<>; |
| 4810 | }; |
| 4811 | |
| 4812 | } // namespace Power |
| 4813 | } // namespace Shutdown |
| 4814 | } // namespace State |
| 4815 | } // namespace openbmc_project |
| 4816 | } // namespace xyz |
| 4817 | |
| 4818 | namespace details |
| 4819 | { |
| 4820 | |
| 4821 | template <> |
| 4822 | struct map_exception_type< |
| 4823 | sdbusplus::xyz::openbmc_project::State::Shutdown::Power::Error::Blackout> |
| 4824 | { |
| 4825 | using type = xyz::openbmc_project::State::Shutdown::Power::Blackout; |
| 4826 | }; |
| 4827 | |
| 4828 | } // namespace details |
| 4829 | |
| 4830 | namespace xyz |
| 4831 | { |
| 4832 | namespace openbmc_project |
| 4833 | { |
| 4834 | namespace State |
| 4835 | { |
| 4836 | namespace Shutdown |
| 4837 | { |
| 4838 | namespace Power |
| 4839 | { |
| 4840 | namespace _Regulator |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 4841 | {} // namespace _Regulator |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 4842 | |
| 4843 | struct Regulator |
| 4844 | { |
| 4845 | static constexpr auto L = level::ERR; |
| 4846 | using metadata_types = std::tuple<>; |
| 4847 | }; |
| 4848 | |
| 4849 | } // namespace Power |
| 4850 | } // namespace Shutdown |
| 4851 | } // namespace State |
| 4852 | } // namespace openbmc_project |
| 4853 | } // namespace xyz |
| 4854 | |
| 4855 | namespace details |
| 4856 | { |
| 4857 | |
| 4858 | template <> |
| 4859 | struct map_exception_type< |
| 4860 | sdbusplus::xyz::openbmc_project::State::Shutdown::Power::Error::Regulator> |
| 4861 | { |
| 4862 | using type = xyz::openbmc_project::State::Shutdown::Power::Regulator; |
| 4863 | }; |
| 4864 | |
| 4865 | } // namespace details |
| 4866 | |
| 4867 | namespace xyz |
| 4868 | { |
| 4869 | namespace openbmc_project |
| 4870 | { |
| 4871 | namespace User |
| 4872 | { |
| 4873 | namespace Common |
| 4874 | { |
| 4875 | namespace _UserNameExists |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 4876 | {} // namespace _UserNameExists |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 4877 | |
| 4878 | struct UserNameExists |
| 4879 | { |
| 4880 | static constexpr auto L = level::ERR; |
| 4881 | using metadata_types = std::tuple<>; |
| 4882 | }; |
| 4883 | |
| 4884 | } // namespace Common |
| 4885 | } // namespace User |
| 4886 | } // namespace openbmc_project |
| 4887 | } // namespace xyz |
| 4888 | |
| 4889 | namespace details |
| 4890 | { |
| 4891 | |
| 4892 | template <> |
| 4893 | struct map_exception_type< |
| 4894 | sdbusplus::xyz::openbmc_project::User::Common::Error::UserNameExists> |
| 4895 | { |
| 4896 | using type = xyz::openbmc_project::User::Common::UserNameExists; |
| 4897 | }; |
| 4898 | |
| 4899 | } // namespace details |
| 4900 | |
| 4901 | namespace xyz |
| 4902 | { |
| 4903 | namespace openbmc_project |
| 4904 | { |
| 4905 | namespace User |
| 4906 | { |
| 4907 | namespace Common |
| 4908 | { |
| 4909 | namespace _UserNameDoesNotExist |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 4910 | {} // namespace _UserNameDoesNotExist |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 4911 | |
| 4912 | struct UserNameDoesNotExist |
| 4913 | { |
| 4914 | static constexpr auto L = level::ERR; |
| 4915 | using metadata_types = std::tuple<>; |
| 4916 | }; |
| 4917 | |
| 4918 | } // namespace Common |
| 4919 | } // namespace User |
| 4920 | } // namespace openbmc_project |
| 4921 | } // namespace xyz |
| 4922 | |
| 4923 | namespace details |
| 4924 | { |
| 4925 | |
| 4926 | template <> |
| 4927 | struct map_exception_type< |
| 4928 | sdbusplus::xyz::openbmc_project::User::Common::Error::UserNameDoesNotExist> |
| 4929 | { |
| 4930 | using type = xyz::openbmc_project::User::Common::UserNameDoesNotExist; |
| 4931 | }; |
| 4932 | |
| 4933 | } // namespace details |
| 4934 | |
| 4935 | namespace xyz |
| 4936 | { |
| 4937 | namespace openbmc_project |
| 4938 | { |
| 4939 | namespace User |
| 4940 | { |
| 4941 | namespace Common |
| 4942 | { |
| 4943 | namespace _UserNameGroupFail |
| 4944 | { |
| 4945 | |
| 4946 | struct REASON |
| 4947 | { |
| 4948 | /* |
| 4949 | * We can't use -fsanitize=undefined if we declare a |
| 4950 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 4951 | * mako template lookups. |
| 4952 | */ |
| 4953 | static constexpr auto str_short = "REASON "; |
| 4954 | using type = std::tuple<std::decay_t<decltype("REASON = %s")>, const char*>; |
| 4955 | explicit constexpr REASON(const char* a) : |
| 4956 | _entry(entry("REASON = %s", a)){}; |
| 4957 | type _entry; |
| 4958 | }; |
| 4959 | |
| 4960 | } // namespace _UserNameGroupFail |
| 4961 | |
| 4962 | struct UserNameGroupFail |
| 4963 | { |
| 4964 | static constexpr auto L = level::ERR; |
| 4965 | using REASON = _UserNameGroupFail::REASON; |
| 4966 | using metadata_types = std::tuple<REASON>; |
| 4967 | }; |
| 4968 | |
| 4969 | } // namespace Common |
| 4970 | } // namespace User |
| 4971 | } // namespace openbmc_project |
| 4972 | } // namespace xyz |
| 4973 | |
| 4974 | namespace details |
| 4975 | { |
| 4976 | |
| 4977 | template <> |
| 4978 | struct map_exception_type< |
| 4979 | sdbusplus::xyz::openbmc_project::User::Common::Error::UserNameGroupFail> |
| 4980 | { |
| 4981 | using type = xyz::openbmc_project::User::Common::UserNameGroupFail; |
| 4982 | }; |
| 4983 | |
| 4984 | } // namespace details |
| 4985 | |
| 4986 | namespace xyz |
| 4987 | { |
| 4988 | namespace openbmc_project |
| 4989 | { |
| 4990 | namespace User |
| 4991 | { |
| 4992 | namespace Common |
| 4993 | { |
| 4994 | namespace _UserNamePrivFail |
| 4995 | { |
| 4996 | |
| 4997 | struct REASON |
| 4998 | { |
| 4999 | /* |
| 5000 | * We can't use -fsanitize=undefined if we declare a |
| 5001 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 5002 | * mako template lookups. |
| 5003 | */ |
| 5004 | static constexpr auto str_short = "REASON "; |
| 5005 | using type = std::tuple<std::decay_t<decltype("REASON = %s")>, const char*>; |
| 5006 | explicit constexpr REASON(const char* a) : |
| 5007 | _entry(entry("REASON = %s", a)){}; |
| 5008 | type _entry; |
| 5009 | }; |
| 5010 | |
| 5011 | } // namespace _UserNamePrivFail |
| 5012 | |
| 5013 | struct UserNamePrivFail |
| 5014 | { |
| 5015 | static constexpr auto L = level::ERR; |
| 5016 | using REASON = _UserNamePrivFail::REASON; |
| 5017 | using metadata_types = std::tuple<REASON>; |
| 5018 | }; |
| 5019 | |
| 5020 | } // namespace Common |
| 5021 | } // namespace User |
| 5022 | } // namespace openbmc_project |
| 5023 | } // namespace xyz |
| 5024 | |
| 5025 | namespace details |
| 5026 | { |
| 5027 | |
| 5028 | template <> |
| 5029 | struct map_exception_type< |
| 5030 | sdbusplus::xyz::openbmc_project::User::Common::Error::UserNamePrivFail> |
| 5031 | { |
| 5032 | using type = xyz::openbmc_project::User::Common::UserNamePrivFail; |
| 5033 | }; |
| 5034 | |
| 5035 | } // namespace details |
| 5036 | |
| 5037 | namespace xyz |
| 5038 | { |
| 5039 | namespace openbmc_project |
| 5040 | { |
| 5041 | namespace User |
| 5042 | { |
| 5043 | namespace Common |
| 5044 | { |
| 5045 | namespace _NoResource |
| 5046 | { |
| 5047 | |
| 5048 | struct REASON |
| 5049 | { |
| 5050 | /* |
| 5051 | * We can't use -fsanitize=undefined if we declare a |
| 5052 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 5053 | * mako template lookups. |
| 5054 | */ |
| 5055 | static constexpr auto str_short = "REASON "; |
| 5056 | using type = std::tuple<std::decay_t<decltype("REASON = %s")>, const char*>; |
| 5057 | explicit constexpr REASON(const char* a) : |
| 5058 | _entry(entry("REASON = %s", a)){}; |
| 5059 | type _entry; |
| 5060 | }; |
| 5061 | |
| 5062 | } // namespace _NoResource |
| 5063 | |
| 5064 | struct NoResource |
| 5065 | { |
| 5066 | static constexpr auto L = level::ERR; |
| 5067 | using REASON = _NoResource::REASON; |
| 5068 | using metadata_types = std::tuple<REASON>; |
| 5069 | }; |
| 5070 | |
| 5071 | } // namespace Common |
| 5072 | } // namespace User |
| 5073 | } // namespace openbmc_project |
| 5074 | } // namespace xyz |
| 5075 | |
| 5076 | namespace details |
| 5077 | { |
| 5078 | |
| 5079 | template <> |
| 5080 | struct map_exception_type< |
| 5081 | sdbusplus::xyz::openbmc_project::User::Common::Error::NoResource> |
| 5082 | { |
| 5083 | using type = xyz::openbmc_project::User::Common::NoResource; |
| 5084 | }; |
| 5085 | |
| 5086 | } // namespace details |
| 5087 | |
| 5088 | namespace xyz |
| 5089 | { |
| 5090 | namespace openbmc_project |
| 5091 | { |
| 5092 | namespace User |
| 5093 | { |
| 5094 | namespace Common |
| 5095 | { |
| 5096 | namespace _PrivilegeMappingExists |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 5097 | {} // namespace _PrivilegeMappingExists |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 5098 | |
| 5099 | struct PrivilegeMappingExists |
| 5100 | { |
| 5101 | static constexpr auto L = level::ERR; |
| 5102 | using metadata_types = std::tuple<>; |
| 5103 | }; |
| 5104 | |
| 5105 | } // namespace Common |
| 5106 | } // namespace User |
| 5107 | } // namespace openbmc_project |
| 5108 | } // namespace xyz |
| 5109 | |
| 5110 | namespace details |
| 5111 | { |
| 5112 | |
| 5113 | template <> |
| 5114 | struct map_exception_type<sdbusplus::xyz::openbmc_project::User::Common::Error:: |
| 5115 | PrivilegeMappingExists> |
| 5116 | { |
| 5117 | using type = xyz::openbmc_project::User::Common::PrivilegeMappingExists; |
| 5118 | }; |
| 5119 | |
| 5120 | } // namespace details |
| 5121 | |
| 5122 | namespace example |
| 5123 | { |
| 5124 | namespace xyz |
| 5125 | { |
| 5126 | namespace openbmc_project |
| 5127 | { |
| 5128 | namespace Example |
| 5129 | { |
| 5130 | namespace Device |
| 5131 | { |
| 5132 | namespace _Callout |
| 5133 | { |
| 5134 | |
| 5135 | struct CALLOUT_ERRNO_TEST |
| 5136 | { |
| 5137 | /* |
| 5138 | * We can't use -fsanitize=undefined if we declare a |
| 5139 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 5140 | * mako template lookups. |
| 5141 | */ |
| 5142 | static constexpr auto str_short = "CALLOUT_ERRNO_TEST"; |
| 5143 | using type = |
| 5144 | std::tuple<std::decay_t<decltype("CALLOUT_ERRNO_TEST=%d")>, int32_t>; |
| 5145 | explicit constexpr CALLOUT_ERRNO_TEST(int32_t a) : |
| 5146 | _entry(entry("CALLOUT_ERRNO_TEST=%d", a)){}; |
| 5147 | type _entry; |
| 5148 | }; |
| 5149 | struct CALLOUT_DEVICE_PATH_TEST |
| 5150 | { |
| 5151 | /* |
| 5152 | * We can't use -fsanitize=undefined if we declare a |
| 5153 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 5154 | * mako template lookups. |
| 5155 | */ |
| 5156 | static constexpr auto str_short = "CALLOUT_DEVICE_PATH_TEST"; |
| 5157 | using type = |
| 5158 | std::tuple<std::decay_t<decltype("CALLOUT_DEVICE_PATH_TEST=%s")>, |
| 5159 | const char*>; |
| 5160 | explicit constexpr CALLOUT_DEVICE_PATH_TEST(const char* a) : |
| 5161 | _entry(entry("CALLOUT_DEVICE_PATH_TEST=%s", a)){}; |
| 5162 | type _entry; |
| 5163 | }; |
| 5164 | |
| 5165 | } // namespace _Callout |
| 5166 | |
| 5167 | struct Callout : public sdbusplus::exception_t |
| 5168 | { |
| 5169 | static constexpr auto errName = |
| 5170 | "example.xyz.openbmc_project.Example.Device.Callout"; |
| 5171 | static constexpr auto errDesc = "Generic device callout"; |
| 5172 | static constexpr auto L = level::ERR; |
| 5173 | using CALLOUT_ERRNO_TEST = _Callout::CALLOUT_ERRNO_TEST; |
| 5174 | using CALLOUT_DEVICE_PATH_TEST = _Callout::CALLOUT_DEVICE_PATH_TEST; |
| 5175 | using metadata_types = |
| 5176 | std::tuple<CALLOUT_ERRNO_TEST, CALLOUT_DEVICE_PATH_TEST>; |
| 5177 | |
| 5178 | const char* name() const noexcept override |
| 5179 | { |
| 5180 | return errName; |
| 5181 | } |
| 5182 | |
| 5183 | const char* description() const noexcept override |
| 5184 | { |
| 5185 | return errDesc; |
| 5186 | } |
| 5187 | |
| 5188 | const char* what() const noexcept override |
| 5189 | { |
| 5190 | return errName; |
| 5191 | } |
| 5192 | |
| 5193 | int get_errno() const noexcept override |
| 5194 | { |
| 5195 | return EIO; |
| 5196 | } |
| 5197 | }; |
| 5198 | |
| 5199 | } // namespace Device |
| 5200 | } // namespace Example |
| 5201 | } // namespace openbmc_project |
| 5202 | } // namespace xyz |
| 5203 | } // namespace example |
| 5204 | |
| 5205 | namespace example |
| 5206 | { |
| 5207 | namespace xyz |
| 5208 | { |
| 5209 | namespace openbmc_project |
| 5210 | { |
| 5211 | namespace Example |
| 5212 | { |
| 5213 | namespace Elog |
| 5214 | { |
| 5215 | namespace _TestErrorTwo |
| 5216 | { |
| 5217 | |
| 5218 | struct DEV_ADDR |
| 5219 | { |
| 5220 | /* |
| 5221 | * We can't use -fsanitize=undefined if we declare a |
| 5222 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 5223 | * mako template lookups. |
| 5224 | */ |
| 5225 | static constexpr auto str_short = "DEV_ADDR"; |
| 5226 | using type = |
| 5227 | std::tuple<std::decay_t<decltype("DEV_ADDR=0x%.8X")>, uint32_t>; |
| 5228 | explicit constexpr DEV_ADDR(uint32_t a) : |
| 5229 | _entry(entry("DEV_ADDR=0x%.8X", a)){}; |
| 5230 | type _entry; |
| 5231 | }; |
| 5232 | struct DEV_ID |
| 5233 | { |
| 5234 | /* |
| 5235 | * We can't use -fsanitize=undefined if we declare a |
| 5236 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 5237 | * mako template lookups. |
| 5238 | */ |
| 5239 | static constexpr auto str_short = "DEV_ID"; |
| 5240 | using type = std::tuple<std::decay_t<decltype("DEV_ID=%u")>, uint32_t>; |
| 5241 | explicit constexpr DEV_ID(uint32_t a) : _entry(entry("DEV_ID=%u", a)){}; |
| 5242 | type _entry; |
| 5243 | }; |
| 5244 | struct DEV_NAME |
| 5245 | { |
| 5246 | /* |
| 5247 | * We can't use -fsanitize=undefined if we declare a |
| 5248 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 5249 | * mako template lookups. |
| 5250 | */ |
| 5251 | static constexpr auto str_short = "DEV_NAME"; |
| 5252 | using type = std::tuple<std::decay_t<decltype("DEV_NAME=%s")>, const char*>; |
| 5253 | explicit constexpr DEV_NAME(const char* a) : |
| 5254 | _entry(entry("DEV_NAME=%s", a)){}; |
| 5255 | type _entry; |
| 5256 | }; |
| 5257 | |
| 5258 | } // namespace _TestErrorTwo |
| 5259 | |
| 5260 | struct TestErrorTwo : public sdbusplus::exception_t |
| 5261 | { |
| 5262 | static constexpr auto errName = |
| 5263 | "example.xyz.openbmc_project.Example.Elog.TestErrorTwo"; |
| 5264 | static constexpr auto errDesc = "This is test error two"; |
| 5265 | static constexpr auto L = level::ERR; |
| 5266 | using DEV_ADDR = _TestErrorTwo::DEV_ADDR; |
| 5267 | using DEV_ID = _TestErrorTwo::DEV_ID; |
| 5268 | using DEV_NAME = _TestErrorTwo::DEV_NAME; |
| 5269 | using metadata_types = std::tuple<DEV_ADDR, DEV_ID, DEV_NAME>; |
| 5270 | |
| 5271 | const char* name() const noexcept override |
| 5272 | { |
| 5273 | return errName; |
| 5274 | } |
| 5275 | |
| 5276 | const char* description() const noexcept override |
| 5277 | { |
| 5278 | return errDesc; |
| 5279 | } |
| 5280 | |
| 5281 | const char* what() const noexcept override |
| 5282 | { |
| 5283 | return errName; |
| 5284 | } |
| 5285 | |
| 5286 | int get_errno() const noexcept override |
| 5287 | { |
| 5288 | return EIO; |
| 5289 | } |
| 5290 | }; |
| 5291 | |
| 5292 | } // namespace Elog |
| 5293 | } // namespace Example |
| 5294 | } // namespace openbmc_project |
| 5295 | } // namespace xyz |
| 5296 | } // namespace example |
| 5297 | |
| 5298 | namespace example |
| 5299 | { |
| 5300 | namespace xyz |
| 5301 | { |
| 5302 | namespace openbmc_project |
| 5303 | { |
| 5304 | namespace Example |
| 5305 | { |
| 5306 | namespace Elog |
| 5307 | { |
| 5308 | namespace _AutoTestSimple |
| 5309 | { |
| 5310 | |
| 5311 | struct STRING |
| 5312 | { |
| 5313 | /* |
| 5314 | * We can't use -fsanitize=undefined if we declare a |
| 5315 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 5316 | * mako template lookups. |
| 5317 | */ |
| 5318 | static constexpr auto str_short = "STRING"; |
| 5319 | using type = std::tuple<std::decay_t<decltype("STRING=%s")>, const char*>; |
| 5320 | explicit constexpr STRING(const char* a) : _entry(entry("STRING=%s", a)){}; |
| 5321 | type _entry; |
| 5322 | }; |
| 5323 | |
| 5324 | } // namespace _AutoTestSimple |
| 5325 | |
| 5326 | struct AutoTestSimple : public sdbusplus::exception_t |
| 5327 | { |
| 5328 | static constexpr auto errName = |
| 5329 | "example.xyz.openbmc_project.Example.Elog.AutoTestSimple"; |
| 5330 | static constexpr auto errDesc = "This is a simple test error."; |
| 5331 | static constexpr auto L = level::ERR; |
| 5332 | using STRING = _AutoTestSimple::STRING; |
| 5333 | using metadata_types = std::tuple<STRING>; |
| 5334 | |
| 5335 | const char* name() const noexcept override |
| 5336 | { |
| 5337 | return errName; |
| 5338 | } |
| 5339 | |
| 5340 | const char* description() const noexcept override |
| 5341 | { |
| 5342 | return errDesc; |
| 5343 | } |
| 5344 | |
| 5345 | const char* what() const noexcept override |
| 5346 | { |
| 5347 | return errName; |
| 5348 | } |
| 5349 | |
| 5350 | int get_errno() const noexcept override |
| 5351 | { |
| 5352 | return EIO; |
| 5353 | } |
| 5354 | }; |
| 5355 | |
| 5356 | } // namespace Elog |
| 5357 | } // namespace Example |
| 5358 | } // namespace openbmc_project |
| 5359 | } // namespace xyz |
| 5360 | } // namespace example |
| 5361 | |
| 5362 | namespace example |
| 5363 | { |
| 5364 | namespace xyz |
| 5365 | { |
| 5366 | namespace openbmc_project |
| 5367 | { |
| 5368 | namespace Example |
| 5369 | { |
| 5370 | namespace Elog |
| 5371 | { |
| 5372 | namespace _TestCallout |
| 5373 | { |
| 5374 | |
| 5375 | struct DEV_ADDR |
| 5376 | { |
| 5377 | /* |
| 5378 | * We can't use -fsanitize=undefined if we declare a |
| 5379 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 5380 | * mako template lookups. |
| 5381 | */ |
| 5382 | static constexpr auto str_short = "DEV_ADDR"; |
| 5383 | using type = |
| 5384 | std::tuple<std::decay_t<decltype("DEV_ADDR=0x%.8X")>, uint32_t>; |
| 5385 | explicit constexpr DEV_ADDR(uint32_t a) : |
| 5386 | _entry(entry("DEV_ADDR=0x%.8X", a)){}; |
| 5387 | type _entry; |
| 5388 | }; |
| 5389 | |
| 5390 | } // namespace _TestCallout |
| 5391 | |
| 5392 | struct TestCallout : public sdbusplus::exception_t |
| 5393 | { |
| 5394 | static constexpr auto errName = |
| 5395 | "example.xyz.openbmc_project.Example.Elog.TestCallout"; |
| 5396 | static constexpr auto errDesc = "This is test error TestCallout"; |
| 5397 | static constexpr auto L = level::ERR; |
| 5398 | using DEV_ADDR = _TestCallout::DEV_ADDR; |
| 5399 | using CALLOUT_ERRNO_TEST = example::xyz::openbmc_project::Example::Device:: |
| 5400 | Callout::CALLOUT_ERRNO_TEST; |
| 5401 | using CALLOUT_DEVICE_PATH_TEST = example::xyz::openbmc_project::Example:: |
| 5402 | Device::Callout::CALLOUT_DEVICE_PATH_TEST; |
| 5403 | using metadata_types = |
| 5404 | std::tuple<DEV_ADDR, CALLOUT_ERRNO_TEST, CALLOUT_DEVICE_PATH_TEST>; |
| 5405 | |
| 5406 | const char* name() const noexcept override |
| 5407 | { |
| 5408 | return errName; |
| 5409 | } |
| 5410 | |
| 5411 | const char* description() const noexcept override |
| 5412 | { |
| 5413 | return errDesc; |
| 5414 | } |
| 5415 | |
| 5416 | const char* what() const noexcept override |
| 5417 | { |
| 5418 | return errName; |
| 5419 | } |
| 5420 | |
| 5421 | int get_errno() const noexcept override |
| 5422 | { |
| 5423 | return EIO; |
| 5424 | } |
| 5425 | }; |
| 5426 | |
| 5427 | } // namespace Elog |
| 5428 | } // namespace Example |
| 5429 | } // namespace openbmc_project |
| 5430 | } // namespace xyz |
| 5431 | } // namespace example |
| 5432 | |
| 5433 | namespace org |
| 5434 | { |
| 5435 | namespace open_power |
| 5436 | { |
| 5437 | namespace Host |
| 5438 | { |
| 5439 | namespace _Event |
| 5440 | { |
| 5441 | |
| 5442 | struct ESEL |
| 5443 | { |
| 5444 | /* |
| 5445 | * We can't use -fsanitize=undefined if we declare a |
| 5446 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 5447 | * mako template lookups. |
| 5448 | */ |
| 5449 | static constexpr auto str_short = "ESEL"; |
| 5450 | using type = std::tuple<std::decay_t<decltype("ESEL=%s")>, const char*>; |
| 5451 | explicit constexpr ESEL(const char* a) : _entry(entry("ESEL=%s", a)){}; |
| 5452 | type _entry; |
| 5453 | }; |
| 5454 | |
| 5455 | } // namespace _Event |
| 5456 | |
| 5457 | struct Event |
| 5458 | { |
| 5459 | static constexpr auto L = level::ERR; |
| 5460 | using ESEL = _Event::ESEL; |
| 5461 | using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout:: |
| 5462 | Inventory::CALLOUT_INVENTORY_PATH; |
| 5463 | using metadata_types = std::tuple<ESEL, CALLOUT_INVENTORY_PATH>; |
| 5464 | }; |
| 5465 | |
| 5466 | } // namespace Host |
| 5467 | } // namespace open_power |
| 5468 | } // namespace org |
| 5469 | |
| 5470 | namespace details |
| 5471 | { |
| 5472 | |
| 5473 | template <> |
| 5474 | struct map_exception_type<sdbusplus::org::open_power::Host::Error::Event> |
| 5475 | { |
| 5476 | using type = org::open_power::Host::Event; |
| 5477 | }; |
| 5478 | |
| 5479 | } // namespace details |
| 5480 | |
| 5481 | namespace org |
| 5482 | { |
| 5483 | namespace open_power |
| 5484 | { |
| 5485 | namespace Host |
| 5486 | { |
| 5487 | namespace _MaintenanceProcedure |
| 5488 | { |
| 5489 | |
| 5490 | struct ESEL |
| 5491 | { |
| 5492 | /* |
| 5493 | * We can't use -fsanitize=undefined if we declare a |
| 5494 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 5495 | * mako template lookups. |
| 5496 | */ |
| 5497 | static constexpr auto str_short = "ESEL"; |
| 5498 | using type = std::tuple<std::decay_t<decltype("ESEL=%s")>, const char*>; |
| 5499 | explicit constexpr ESEL(const char* a) : _entry(entry("ESEL=%s", a)){}; |
| 5500 | type _entry; |
| 5501 | }; |
| 5502 | |
| 5503 | } // namespace _MaintenanceProcedure |
| 5504 | |
| 5505 | struct MaintenanceProcedure |
| 5506 | { |
| 5507 | static constexpr auto L = level::ERR; |
| 5508 | using ESEL = _MaintenanceProcedure::ESEL; |
| 5509 | using PROCEDURE = org::open_power::Common::Callout::Procedure::PROCEDURE; |
| 5510 | using metadata_types = std::tuple<ESEL, PROCEDURE>; |
| 5511 | }; |
| 5512 | |
| 5513 | } // namespace Host |
| 5514 | } // namespace open_power |
| 5515 | } // namespace org |
| 5516 | |
| 5517 | namespace details |
| 5518 | { |
| 5519 | |
| 5520 | template <> |
| 5521 | struct map_exception_type< |
| 5522 | sdbusplus::org::open_power::Host::Error::MaintenanceProcedure> |
| 5523 | { |
| 5524 | using type = org::open_power::Host::MaintenanceProcedure; |
| 5525 | }; |
| 5526 | |
| 5527 | } // namespace details |
| 5528 | |
| 5529 | namespace org |
| 5530 | { |
| 5531 | namespace open_power |
| 5532 | { |
| 5533 | namespace Host |
| 5534 | { |
| 5535 | namespace Access |
| 5536 | { |
| 5537 | namespace _WriteCFAM |
| 5538 | { |
| 5539 | |
| 5540 | struct ADDRESS |
| 5541 | { |
| 5542 | /* |
| 5543 | * We can't use -fsanitize=undefined if we declare a |
| 5544 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 5545 | * mako template lookups. |
| 5546 | */ |
| 5547 | static constexpr auto str_short = "ADDRESS"; |
| 5548 | using type = std::tuple<std::decay_t<decltype("ADDRESS=0x%X")>, uint32_t>; |
| 5549 | explicit constexpr ADDRESS(uint32_t a) : _entry(entry("ADDRESS=0x%X", a)){}; |
| 5550 | type _entry; |
| 5551 | }; |
| 5552 | |
| 5553 | } // namespace _WriteCFAM |
| 5554 | |
| 5555 | struct WriteCFAM |
| 5556 | { |
| 5557 | static constexpr auto L = level::ERR; |
| 5558 | using ADDRESS = _WriteCFAM::ADDRESS; |
| 5559 | using CALLOUT_ERRNO = |
| 5560 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO; |
| 5561 | using CALLOUT_DEVICE_PATH = |
| 5562 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH; |
| 5563 | using metadata_types = |
| 5564 | std::tuple<ADDRESS, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
| 5565 | }; |
| 5566 | |
| 5567 | } // namespace Access |
| 5568 | } // namespace Host |
| 5569 | } // namespace open_power |
| 5570 | } // namespace org |
| 5571 | |
| 5572 | namespace details |
| 5573 | { |
| 5574 | |
| 5575 | template <> |
| 5576 | struct map_exception_type< |
| 5577 | sdbusplus::org::open_power::Host::Access::Error::WriteCFAM> |
| 5578 | { |
| 5579 | using type = org::open_power::Host::Access::WriteCFAM; |
| 5580 | }; |
| 5581 | |
| 5582 | } // namespace details |
| 5583 | |
| 5584 | namespace org |
| 5585 | { |
| 5586 | namespace open_power |
| 5587 | { |
| 5588 | namespace Host |
| 5589 | { |
| 5590 | namespace Access |
| 5591 | { |
| 5592 | namespace _ReadCFAM |
| 5593 | { |
| 5594 | |
| 5595 | struct ADDRESS |
| 5596 | { |
| 5597 | /* |
| 5598 | * We can't use -fsanitize=undefined if we declare a |
| 5599 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 5600 | * mako template lookups. |
| 5601 | */ |
| 5602 | static constexpr auto str_short = "ADDRESS"; |
| 5603 | using type = std::tuple<std::decay_t<decltype("ADDRESS=0x%X")>, uint32_t>; |
| 5604 | explicit constexpr ADDRESS(uint32_t a) : _entry(entry("ADDRESS=0x%X", a)){}; |
| 5605 | type _entry; |
| 5606 | }; |
| 5607 | |
| 5608 | } // namespace _ReadCFAM |
| 5609 | |
| 5610 | struct ReadCFAM |
| 5611 | { |
| 5612 | static constexpr auto L = level::ERR; |
| 5613 | using ADDRESS = _ReadCFAM::ADDRESS; |
| 5614 | using CALLOUT_ERRNO = |
| 5615 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO; |
| 5616 | using CALLOUT_DEVICE_PATH = |
| 5617 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH; |
| 5618 | using metadata_types = |
| 5619 | std::tuple<ADDRESS, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
| 5620 | }; |
| 5621 | |
| 5622 | } // namespace Access |
| 5623 | } // namespace Host |
| 5624 | } // namespace open_power |
| 5625 | } // namespace org |
| 5626 | |
| 5627 | namespace details |
| 5628 | { |
| 5629 | |
| 5630 | template <> |
| 5631 | struct map_exception_type< |
| 5632 | sdbusplus::org::open_power::Host::Access::Error::ReadCFAM> |
| 5633 | { |
| 5634 | using type = org::open_power::Host::Access::ReadCFAM; |
| 5635 | }; |
| 5636 | |
| 5637 | } // namespace details |
| 5638 | |
| 5639 | namespace org |
| 5640 | { |
| 5641 | namespace open_power |
| 5642 | { |
| 5643 | namespace Proc |
| 5644 | { |
| 5645 | namespace FSI |
| 5646 | { |
| 5647 | namespace _MasterDetectionFailure |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 5648 | {} // namespace _MasterDetectionFailure |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 5649 | |
| 5650 | struct MasterDetectionFailure |
| 5651 | { |
| 5652 | static constexpr auto L = level::ERR; |
| 5653 | using CALLOUT_ERRNO = |
| 5654 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO; |
| 5655 | using CALLOUT_DEVICE_PATH = |
| 5656 | xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH; |
| 5657 | using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>; |
| 5658 | }; |
| 5659 | |
| 5660 | } // namespace FSI |
| 5661 | } // namespace Proc |
| 5662 | } // namespace open_power |
| 5663 | } // namespace org |
| 5664 | |
| 5665 | namespace details |
| 5666 | { |
| 5667 | |
| 5668 | template <> |
| 5669 | struct map_exception_type< |
| 5670 | sdbusplus::org::open_power::Proc::FSI::Error::MasterDetectionFailure> |
| 5671 | { |
| 5672 | using type = org::open_power::Proc::FSI::MasterDetectionFailure; |
| 5673 | }; |
| 5674 | |
| 5675 | } // namespace details |
| 5676 | |
| 5677 | namespace xyz |
| 5678 | { |
| 5679 | namespace openbmc_project |
| 5680 | { |
| 5681 | namespace Inventory |
| 5682 | { |
| 5683 | namespace _NotPresent |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 5684 | {} // namespace _NotPresent |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 5685 | |
| 5686 | struct NotPresent |
| 5687 | { |
| 5688 | static constexpr auto L = level::ERR; |
| 5689 | using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout:: |
| 5690 | Inventory::CALLOUT_INVENTORY_PATH; |
| 5691 | using metadata_types = std::tuple<CALLOUT_INVENTORY_PATH>; |
| 5692 | }; |
| 5693 | |
| 5694 | } // namespace Inventory |
| 5695 | } // namespace openbmc_project |
| 5696 | } // namespace xyz |
| 5697 | |
| 5698 | namespace details |
| 5699 | { |
| 5700 | |
| 5701 | template <> |
| 5702 | struct map_exception_type< |
| 5703 | sdbusplus::xyz::openbmc_project::Inventory::Error::NotPresent> |
| 5704 | { |
| 5705 | using type = xyz::openbmc_project::Inventory::NotPresent; |
| 5706 | }; |
| 5707 | |
| 5708 | } // namespace details |
| 5709 | |
| 5710 | namespace xyz |
| 5711 | { |
| 5712 | namespace openbmc_project |
| 5713 | { |
| 5714 | namespace Inventory |
| 5715 | { |
| 5716 | namespace _Nonfunctional |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 5717 | {} // namespace _Nonfunctional |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 5718 | |
| 5719 | struct Nonfunctional |
| 5720 | { |
| 5721 | static constexpr auto L = level::ERR; |
| 5722 | using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout:: |
| 5723 | Inventory::CALLOUT_INVENTORY_PATH; |
| 5724 | using metadata_types = std::tuple<CALLOUT_INVENTORY_PATH>; |
| 5725 | }; |
| 5726 | |
| 5727 | } // namespace Inventory |
| 5728 | } // namespace openbmc_project |
| 5729 | } // namespace xyz |
| 5730 | |
| 5731 | namespace details |
| 5732 | { |
| 5733 | |
| 5734 | template <> |
| 5735 | struct map_exception_type< |
| 5736 | sdbusplus::xyz::openbmc_project::Inventory::Error::Nonfunctional> |
| 5737 | { |
| 5738 | using type = xyz::openbmc_project::Inventory::Nonfunctional; |
| 5739 | }; |
| 5740 | |
| 5741 | } // namespace details |
| 5742 | |
| 5743 | namespace xyz |
| 5744 | { |
| 5745 | namespace openbmc_project |
| 5746 | { |
| 5747 | namespace Time |
| 5748 | { |
| 5749 | namespace _NotAllowed |
| 5750 | { |
| 5751 | |
| 5752 | struct OWNER |
| 5753 | { |
| 5754 | /* |
| 5755 | * We can't use -fsanitize=undefined if we declare a |
| 5756 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 5757 | * mako template lookups. |
| 5758 | */ |
| 5759 | static constexpr auto str_short = "OWNER"; |
| 5760 | using type = std::tuple<std::decay_t<decltype("OWNER=%s")>, const char*>; |
| 5761 | explicit constexpr OWNER(const char* a) : _entry(entry("OWNER=%s", a)){}; |
| 5762 | type _entry; |
| 5763 | }; |
| 5764 | struct SYNC_METHOD |
| 5765 | { |
| 5766 | /* |
| 5767 | * We can't use -fsanitize=undefined if we declare a |
| 5768 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 5769 | * mako template lookups. |
| 5770 | */ |
| 5771 | static constexpr auto str_short = "SYNC_METHOD"; |
| 5772 | using type = |
| 5773 | std::tuple<std::decay_t<decltype("SYNC_METHOD=%s")>, const char*>; |
| 5774 | explicit constexpr SYNC_METHOD(const char* a) : |
| 5775 | _entry(entry("SYNC_METHOD=%s", a)){}; |
| 5776 | type _entry; |
| 5777 | }; |
| 5778 | |
| 5779 | } // namespace _NotAllowed |
| 5780 | |
| 5781 | struct NotAllowed |
| 5782 | { |
| 5783 | static constexpr auto L = level::ERR; |
| 5784 | using OWNER = _NotAllowed::OWNER; |
| 5785 | using SYNC_METHOD = _NotAllowed::SYNC_METHOD; |
| 5786 | using REASON = xyz::openbmc_project::Common::NotAllowed::REASON; |
| 5787 | using metadata_types = std::tuple<OWNER, SYNC_METHOD, REASON>; |
| 5788 | }; |
| 5789 | |
| 5790 | } // namespace Time |
| 5791 | } // namespace openbmc_project |
| 5792 | } // namespace xyz |
| 5793 | |
| 5794 | namespace details |
| 5795 | { |
| 5796 | |
| 5797 | template <> |
| 5798 | struct map_exception_type< |
| 5799 | sdbusplus::xyz::openbmc_project::Time::Error::NotAllowed> |
| 5800 | { |
| 5801 | using type = xyz::openbmc_project::Time::NotAllowed; |
| 5802 | }; |
| 5803 | |
| 5804 | } // namespace details |
| 5805 | |
| 5806 | namespace xyz |
| 5807 | { |
| 5808 | namespace openbmc_project |
| 5809 | { |
| 5810 | namespace Time |
| 5811 | { |
| 5812 | namespace _Failed |
| 5813 | { |
| 5814 | |
| 5815 | struct REASON |
| 5816 | { |
| 5817 | /* |
| 5818 | * We can't use -fsanitize=undefined if we declare a |
| 5819 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 5820 | * mako template lookups. |
| 5821 | */ |
| 5822 | static constexpr auto str_short = "REASON"; |
| 5823 | using type = std::tuple<std::decay_t<decltype("REASON=%s")>, const char*>; |
| 5824 | explicit constexpr REASON(const char* a) : _entry(entry("REASON=%s", a)){}; |
| 5825 | type _entry; |
| 5826 | }; |
| 5827 | |
| 5828 | } // namespace _Failed |
| 5829 | |
| 5830 | struct Failed |
| 5831 | { |
| 5832 | static constexpr auto L = level::ERR; |
| 5833 | using REASON = _Failed::REASON; |
| 5834 | using metadata_types = std::tuple<REASON>; |
| 5835 | }; |
| 5836 | |
| 5837 | } // namespace Time |
| 5838 | } // namespace openbmc_project |
| 5839 | } // namespace xyz |
| 5840 | |
| 5841 | namespace details |
| 5842 | { |
| 5843 | |
| 5844 | template <> |
| 5845 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Time::Error::Failed> |
| 5846 | { |
| 5847 | using type = xyz::openbmc_project::Time::Failed; |
| 5848 | }; |
| 5849 | |
| 5850 | } // namespace details |
| 5851 | |
| 5852 | namespace xyz |
| 5853 | { |
| 5854 | namespace openbmc_project |
| 5855 | { |
| 5856 | namespace State |
| 5857 | { |
| 5858 | namespace BMC |
| 5859 | { |
| 5860 | namespace _MultiUserTargetFailure |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 5861 | {} // namespace _MultiUserTargetFailure |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 5862 | |
| 5863 | struct MultiUserTargetFailure |
| 5864 | { |
| 5865 | static constexpr auto L = level::ERR; |
| 5866 | using SYSTEMD_RESULT = |
| 5867 | xyz::openbmc_project::State::SystemdTarget::Failure::SYSTEMD_RESULT; |
| 5868 | using metadata_types = std::tuple<SYSTEMD_RESULT>; |
| 5869 | }; |
| 5870 | |
| 5871 | } // namespace BMC |
| 5872 | } // namespace State |
| 5873 | } // namespace openbmc_project |
| 5874 | } // namespace xyz |
| 5875 | |
| 5876 | namespace details |
| 5877 | { |
| 5878 | |
| 5879 | template <> |
| 5880 | struct map_exception_type< |
| 5881 | sdbusplus::xyz::openbmc_project::State::BMC::Error::MultiUserTargetFailure> |
| 5882 | { |
| 5883 | using type = xyz::openbmc_project::State::BMC::MultiUserTargetFailure; |
| 5884 | }; |
| 5885 | |
| 5886 | } // namespace details |
| 5887 | |
| 5888 | namespace xyz |
| 5889 | { |
| 5890 | namespace openbmc_project |
| 5891 | { |
| 5892 | namespace State |
| 5893 | { |
| 5894 | namespace Chassis |
| 5895 | { |
| 5896 | namespace _PowerOnFailure |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 5897 | {} // namespace _PowerOnFailure |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 5898 | |
| 5899 | struct PowerOnFailure |
| 5900 | { |
| 5901 | static constexpr auto L = level::ERR; |
| 5902 | using SYSTEMD_RESULT = |
| 5903 | xyz::openbmc_project::State::SystemdTarget::Failure::SYSTEMD_RESULT; |
| 5904 | using metadata_types = std::tuple<SYSTEMD_RESULT>; |
| 5905 | }; |
| 5906 | |
| 5907 | } // namespace Chassis |
| 5908 | } // namespace State |
| 5909 | } // namespace openbmc_project |
| 5910 | } // namespace xyz |
| 5911 | |
| 5912 | namespace details |
| 5913 | { |
| 5914 | |
| 5915 | template <> |
| 5916 | struct map_exception_type< |
| 5917 | sdbusplus::xyz::openbmc_project::State::Chassis::Error::PowerOnFailure> |
| 5918 | { |
| 5919 | using type = xyz::openbmc_project::State::Chassis::PowerOnFailure; |
| 5920 | }; |
| 5921 | |
| 5922 | } // namespace details |
| 5923 | |
| 5924 | namespace xyz |
| 5925 | { |
| 5926 | namespace openbmc_project |
| 5927 | { |
| 5928 | namespace State |
| 5929 | { |
| 5930 | namespace Chassis |
| 5931 | { |
| 5932 | namespace _PowerOffFailure |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 5933 | {} // namespace _PowerOffFailure |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 5934 | |
| 5935 | struct PowerOffFailure |
| 5936 | { |
| 5937 | static constexpr auto L = level::ERR; |
| 5938 | using SYSTEMD_RESULT = |
| 5939 | xyz::openbmc_project::State::SystemdTarget::Failure::SYSTEMD_RESULT; |
| 5940 | using metadata_types = std::tuple<SYSTEMD_RESULT>; |
| 5941 | }; |
| 5942 | |
| 5943 | } // namespace Chassis |
| 5944 | } // namespace State |
| 5945 | } // namespace openbmc_project |
| 5946 | } // namespace xyz |
| 5947 | |
| 5948 | namespace details |
| 5949 | { |
| 5950 | |
| 5951 | template <> |
| 5952 | struct map_exception_type< |
| 5953 | sdbusplus::xyz::openbmc_project::State::Chassis::Error::PowerOffFailure> |
| 5954 | { |
| 5955 | using type = xyz::openbmc_project::State::Chassis::PowerOffFailure; |
| 5956 | }; |
| 5957 | |
| 5958 | } // namespace details |
| 5959 | |
| 5960 | namespace xyz |
| 5961 | { |
| 5962 | namespace openbmc_project |
| 5963 | { |
| 5964 | namespace State |
| 5965 | { |
| 5966 | namespace Host |
| 5967 | { |
| 5968 | namespace _HostStartFailure |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 5969 | {} // namespace _HostStartFailure |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 5970 | |
| 5971 | struct HostStartFailure |
| 5972 | { |
| 5973 | static constexpr auto L = level::ERR; |
| 5974 | using SYSTEMD_RESULT = |
| 5975 | xyz::openbmc_project::State::SystemdTarget::Failure::SYSTEMD_RESULT; |
| 5976 | using metadata_types = std::tuple<SYSTEMD_RESULT>; |
| 5977 | }; |
| 5978 | |
| 5979 | } // namespace Host |
| 5980 | } // namespace State |
| 5981 | } // namespace openbmc_project |
| 5982 | } // namespace xyz |
| 5983 | |
| 5984 | namespace details |
| 5985 | { |
| 5986 | |
| 5987 | template <> |
| 5988 | struct map_exception_type< |
| 5989 | sdbusplus::xyz::openbmc_project::State::Host::Error::HostStartFailure> |
| 5990 | { |
| 5991 | using type = xyz::openbmc_project::State::Host::HostStartFailure; |
| 5992 | }; |
| 5993 | |
| 5994 | } // namespace details |
| 5995 | |
| 5996 | namespace xyz |
| 5997 | { |
| 5998 | namespace openbmc_project |
| 5999 | { |
| 6000 | namespace State |
| 6001 | { |
| 6002 | namespace Host |
| 6003 | { |
| 6004 | namespace _HostMinStartFailure |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 6005 | {} // namespace _HostMinStartFailure |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6006 | |
| 6007 | struct HostMinStartFailure |
| 6008 | { |
| 6009 | static constexpr auto L = level::ERR; |
| 6010 | using SYSTEMD_RESULT = |
| 6011 | xyz::openbmc_project::State::SystemdTarget::Failure::SYSTEMD_RESULT; |
| 6012 | using metadata_types = std::tuple<SYSTEMD_RESULT>; |
| 6013 | }; |
| 6014 | |
| 6015 | } // namespace Host |
| 6016 | } // namespace State |
| 6017 | } // namespace openbmc_project |
| 6018 | } // namespace xyz |
| 6019 | |
| 6020 | namespace details |
| 6021 | { |
| 6022 | |
| 6023 | template <> |
| 6024 | struct map_exception_type< |
| 6025 | sdbusplus::xyz::openbmc_project::State::Host::Error::HostMinStartFailure> |
| 6026 | { |
| 6027 | using type = xyz::openbmc_project::State::Host::HostMinStartFailure; |
| 6028 | }; |
| 6029 | |
| 6030 | } // namespace details |
| 6031 | |
| 6032 | namespace xyz |
| 6033 | { |
| 6034 | namespace openbmc_project |
| 6035 | { |
| 6036 | namespace State |
| 6037 | { |
| 6038 | namespace Host |
| 6039 | { |
| 6040 | namespace _HostShutdownFailure |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 6041 | {} // namespace _HostShutdownFailure |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6042 | |
| 6043 | struct HostShutdownFailure |
| 6044 | { |
| 6045 | static constexpr auto L = level::ERR; |
| 6046 | using SYSTEMD_RESULT = |
| 6047 | xyz::openbmc_project::State::SystemdTarget::Failure::SYSTEMD_RESULT; |
| 6048 | using metadata_types = std::tuple<SYSTEMD_RESULT>; |
| 6049 | }; |
| 6050 | |
| 6051 | } // namespace Host |
| 6052 | } // namespace State |
| 6053 | } // namespace openbmc_project |
| 6054 | } // namespace xyz |
| 6055 | |
| 6056 | namespace details |
| 6057 | { |
| 6058 | |
| 6059 | template <> |
| 6060 | struct map_exception_type< |
| 6061 | sdbusplus::xyz::openbmc_project::State::Host::Error::HostShutdownFailure> |
| 6062 | { |
| 6063 | using type = xyz::openbmc_project::State::Host::HostShutdownFailure; |
| 6064 | }; |
| 6065 | |
| 6066 | } // namespace details |
| 6067 | |
| 6068 | namespace xyz |
| 6069 | { |
| 6070 | namespace openbmc_project |
| 6071 | { |
| 6072 | namespace State |
| 6073 | { |
| 6074 | namespace Host |
| 6075 | { |
| 6076 | namespace _HostStopFailure |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 6077 | {} // namespace _HostStopFailure |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6078 | |
| 6079 | struct HostStopFailure |
| 6080 | { |
| 6081 | static constexpr auto L = level::ERR; |
| 6082 | using SYSTEMD_RESULT = |
| 6083 | xyz::openbmc_project::State::SystemdTarget::Failure::SYSTEMD_RESULT; |
| 6084 | using metadata_types = std::tuple<SYSTEMD_RESULT>; |
| 6085 | }; |
| 6086 | |
| 6087 | } // namespace Host |
| 6088 | } // namespace State |
| 6089 | } // namespace openbmc_project |
| 6090 | } // namespace xyz |
| 6091 | |
| 6092 | namespace details |
| 6093 | { |
| 6094 | |
| 6095 | template <> |
| 6096 | struct map_exception_type< |
| 6097 | sdbusplus::xyz::openbmc_project::State::Host::Error::HostStopFailure> |
| 6098 | { |
| 6099 | using type = xyz::openbmc_project::State::Host::HostStopFailure; |
| 6100 | }; |
| 6101 | |
| 6102 | } // namespace details |
| 6103 | |
| 6104 | namespace xyz |
| 6105 | { |
| 6106 | namespace openbmc_project |
| 6107 | { |
| 6108 | namespace State |
| 6109 | { |
| 6110 | namespace Host |
| 6111 | { |
| 6112 | namespace _HostRebootFailure |
Patrick Williams | fbc6c9d | 2023-05-10 07:50:16 -0500 | [diff] [blame] | 6113 | {} // namespace _HostRebootFailure |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6114 | |
| 6115 | struct HostRebootFailure |
| 6116 | { |
| 6117 | static constexpr auto L = level::ERR; |
| 6118 | using SYSTEMD_RESULT = |
| 6119 | xyz::openbmc_project::State::SystemdTarget::Failure::SYSTEMD_RESULT; |
| 6120 | using metadata_types = std::tuple<SYSTEMD_RESULT>; |
| 6121 | }; |
| 6122 | |
| 6123 | } // namespace Host |
| 6124 | } // namespace State |
| 6125 | } // namespace openbmc_project |
| 6126 | } // namespace xyz |
| 6127 | |
| 6128 | namespace details |
| 6129 | { |
| 6130 | |
| 6131 | template <> |
| 6132 | struct map_exception_type< |
| 6133 | sdbusplus::xyz::openbmc_project::State::Host::Error::HostRebootFailure> |
| 6134 | { |
| 6135 | using type = xyz::openbmc_project::State::Host::HostRebootFailure; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6136 | }; |
| 6137 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 6138 | } // namespace details |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6139 | |
| 6140 | namespace example |
| 6141 | { |
| 6142 | namespace xyz |
| 6143 | { |
| 6144 | namespace openbmc_project |
| 6145 | { |
| 6146 | namespace Example |
| 6147 | { |
| 6148 | namespace Elog |
| 6149 | { |
| 6150 | namespace _TestErrorOne |
| 6151 | { |
| 6152 | |
| 6153 | struct ERRNUM |
| 6154 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6155 | /* |
| 6156 | * We can't use -fsanitize=undefined if we declare a |
| 6157 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 6158 | * mako template lookups. |
| 6159 | */ |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6160 | static constexpr auto str_short = "ERRNUM"; |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6161 | using type = std::tuple<std::decay_t<decltype("ERRNUM=0x%.4X")>, uint16_t>; |
| 6162 | explicit constexpr ERRNUM(uint16_t a) : _entry(entry("ERRNUM=0x%.4X", a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6163 | type _entry; |
| 6164 | }; |
| 6165 | struct FILE_PATH |
| 6166 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6167 | /* |
| 6168 | * We can't use -fsanitize=undefined if we declare a |
| 6169 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 6170 | * mako template lookups. |
| 6171 | */ |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6172 | static constexpr auto str_short = "FILE_PATH"; |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6173 | using type = |
| 6174 | std::tuple<std::decay_t<decltype("FILE_PATH=%s")>, const char*>; |
| 6175 | explicit constexpr FILE_PATH(const char* a) : |
| 6176 | _entry(entry("FILE_PATH=%s", a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6177 | type _entry; |
| 6178 | }; |
| 6179 | struct FILE_NAME |
| 6180 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6181 | /* |
| 6182 | * We can't use -fsanitize=undefined if we declare a |
| 6183 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 6184 | * mako template lookups. |
| 6185 | */ |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6186 | static constexpr auto str_short = "FILE_NAME"; |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6187 | using type = |
| 6188 | std::tuple<std::decay_t<decltype("FILE_NAME=%s")>, const char*>; |
| 6189 | explicit constexpr FILE_NAME(const char* a) : |
| 6190 | _entry(entry("FILE_NAME=%s", a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6191 | type _entry; |
| 6192 | }; |
| 6193 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 6194 | } // namespace _TestErrorOne |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6195 | |
| 6196 | struct TestErrorOne : public sdbusplus::exception_t |
| 6197 | { |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 6198 | static constexpr auto errName = |
| 6199 | "example.xyz.openbmc_project.Example.Elog.TestErrorOne"; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6200 | static constexpr auto errDesc = "this is test error one"; |
| 6201 | static constexpr auto L = level::INFO; |
| 6202 | using ERRNUM = _TestErrorOne::ERRNUM; |
| 6203 | using FILE_PATH = _TestErrorOne::FILE_PATH; |
| 6204 | using FILE_NAME = _TestErrorOne::FILE_NAME; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 6205 | using DEV_ADDR = |
| 6206 | example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ADDR; |
| 6207 | using DEV_ID = |
| 6208 | example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ID; |
| 6209 | using DEV_NAME = |
| 6210 | example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_NAME; |
| 6211 | using metadata_types = |
| 6212 | std::tuple<ERRNUM, FILE_PATH, FILE_NAME, DEV_ADDR, DEV_ID, DEV_NAME>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6213 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6214 | const char* name() const noexcept override |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6215 | { |
| 6216 | return errName; |
| 6217 | } |
| 6218 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6219 | const char* description() const noexcept override |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6220 | { |
| 6221 | return errDesc; |
| 6222 | } |
| 6223 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6224 | const char* what() const noexcept override |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6225 | { |
| 6226 | return errName; |
| 6227 | } |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6228 | |
| 6229 | int get_errno() const noexcept override |
| 6230 | { |
| 6231 | return EIO; |
| 6232 | } |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6233 | }; |
| 6234 | |
| 6235 | } // namespace Elog |
| 6236 | } // namespace Example |
| 6237 | } // namespace openbmc_project |
| 6238 | } // namespace xyz |
| 6239 | } // namespace example |
| 6240 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6241 | namespace example |
| 6242 | { |
| 6243 | namespace xyz |
| 6244 | { |
| 6245 | namespace openbmc_project |
| 6246 | { |
| 6247 | namespace Example |
| 6248 | { |
| 6249 | namespace Foo |
| 6250 | { |
| 6251 | namespace _Foo |
| 6252 | { |
| 6253 | |
| 6254 | struct FOO_DATA |
| 6255 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6256 | /* |
| 6257 | * We can't use -fsanitize=undefined if we declare a |
| 6258 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 6259 | * mako template lookups. |
| 6260 | */ |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6261 | static constexpr auto str_short = "FOO_DATA"; |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6262 | using type = std::tuple<std::decay_t<decltype("FOO_DATA=%s")>, const char*>; |
| 6263 | explicit constexpr FOO_DATA(const char* a) : |
| 6264 | _entry(entry("FOO_DATA=%s", a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6265 | type _entry; |
| 6266 | }; |
| 6267 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 6268 | } // namespace _Foo |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6269 | |
| 6270 | struct Foo : public sdbusplus::exception_t |
| 6271 | { |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 6272 | static constexpr auto errName = |
| 6273 | "example.xyz.openbmc_project.Example.Foo.Foo"; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6274 | static constexpr auto errDesc = "this is test error Foo"; |
| 6275 | static constexpr auto L = level::INFO; |
| 6276 | using FOO_DATA = _Foo::FOO_DATA; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 6277 | using ERRNUM = |
| 6278 | example::xyz::openbmc_project::Example::Elog::TestErrorOne::ERRNUM; |
| 6279 | using FILE_PATH = |
| 6280 | example::xyz::openbmc_project::Example::Elog::TestErrorOne::FILE_PATH; |
| 6281 | using FILE_NAME = |
| 6282 | example::xyz::openbmc_project::Example::Elog::TestErrorOne::FILE_NAME; |
| 6283 | using DEV_ADDR = |
| 6284 | example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ADDR; |
| 6285 | using DEV_ID = |
| 6286 | example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ID; |
| 6287 | using DEV_NAME = |
| 6288 | example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_NAME; |
| 6289 | using metadata_types = std::tuple<FOO_DATA, ERRNUM, FILE_PATH, FILE_NAME, |
| 6290 | DEV_ADDR, DEV_ID, DEV_NAME>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6291 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6292 | const char* name() const noexcept override |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6293 | { |
| 6294 | return errName; |
| 6295 | } |
| 6296 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6297 | const char* description() const noexcept override |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6298 | { |
| 6299 | return errDesc; |
| 6300 | } |
| 6301 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6302 | const char* what() const noexcept override |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6303 | { |
| 6304 | return errName; |
| 6305 | } |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6306 | |
| 6307 | int get_errno() const noexcept override |
| 6308 | { |
| 6309 | return EIO; |
| 6310 | } |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6311 | }; |
| 6312 | |
| 6313 | } // namespace Foo |
| 6314 | } // namespace Example |
| 6315 | } // namespace openbmc_project |
| 6316 | } // namespace xyz |
| 6317 | } // namespace example |
| 6318 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6319 | namespace example |
| 6320 | { |
| 6321 | namespace xyz |
| 6322 | { |
| 6323 | namespace openbmc_project |
| 6324 | { |
| 6325 | namespace Example |
| 6326 | { |
| 6327 | namespace Bar |
| 6328 | { |
| 6329 | namespace _Bar |
| 6330 | { |
| 6331 | |
| 6332 | struct BAR_DATA |
| 6333 | { |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6334 | /* |
| 6335 | * We can't use -fsanitize=undefined if we declare a |
| 6336 | * 'static constexpr auto str' member, so don't. Instead, open-code the |
| 6337 | * mako template lookups. |
| 6338 | */ |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6339 | static constexpr auto str_short = "BAR_DATA"; |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6340 | using type = std::tuple<std::decay_t<decltype("BAR_DATA=%s")>, const char*>; |
| 6341 | explicit constexpr BAR_DATA(const char* a) : |
| 6342 | _entry(entry("BAR_DATA=%s", a)){}; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6343 | type _entry; |
| 6344 | }; |
| 6345 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 6346 | } // namespace _Bar |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6347 | |
| 6348 | struct Bar : public sdbusplus::exception_t |
| 6349 | { |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 6350 | static constexpr auto errName = |
| 6351 | "example.xyz.openbmc_project.Example.Bar.Bar"; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6352 | static constexpr auto errDesc = "this is test error Bar"; |
| 6353 | static constexpr auto L = level::INFO; |
| 6354 | using BAR_DATA = _Bar::BAR_DATA; |
| 6355 | using FOO_DATA = example::xyz::openbmc_project::Example::Foo::Foo::FOO_DATA; |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 6356 | using ERRNUM = |
| 6357 | example::xyz::openbmc_project::Example::Elog::TestErrorOne::ERRNUM; |
| 6358 | using FILE_PATH = |
| 6359 | example::xyz::openbmc_project::Example::Elog::TestErrorOne::FILE_PATH; |
| 6360 | using FILE_NAME = |
| 6361 | example::xyz::openbmc_project::Example::Elog::TestErrorOne::FILE_NAME; |
| 6362 | using DEV_ADDR = |
| 6363 | example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ADDR; |
| 6364 | using DEV_ID = |
| 6365 | example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_ID; |
| 6366 | using DEV_NAME = |
| 6367 | example::xyz::openbmc_project::Example::Elog::TestErrorTwo::DEV_NAME; |
| 6368 | using metadata_types = std::tuple<BAR_DATA, FOO_DATA, ERRNUM, FILE_PATH, |
| 6369 | FILE_NAME, DEV_ADDR, DEV_ID, DEV_NAME>; |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6370 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6371 | const char* name() const noexcept override |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6372 | { |
| 6373 | return errName; |
| 6374 | } |
| 6375 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6376 | const char* description() const noexcept override |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6377 | { |
| 6378 | return errDesc; |
| 6379 | } |
| 6380 | |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6381 | const char* what() const noexcept override |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6382 | { |
| 6383 | return errName; |
| 6384 | } |
Patrick Williams | df32909 | 2021-09-08 16:05:08 -0500 | [diff] [blame] | 6385 | |
| 6386 | int get_errno() const noexcept override |
| 6387 | { |
| 6388 | return EIO; |
| 6389 | } |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6390 | }; |
| 6391 | |
| 6392 | } // namespace Bar |
| 6393 | } // namespace Example |
| 6394 | } // namespace openbmc_project |
| 6395 | } // namespace xyz |
| 6396 | } // namespace example |
| 6397 | |
Tom Joseph | 448e74e | 2017-07-24 23:08:56 +0530 | [diff] [blame] | 6398 | } // namespace logging |
| 6399 | |
| 6400 | } // namespace phosphor |