Matt Spinler | 1a94cc3 | 2019-09-11 13:32:12 -0500 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | namespace openpower |
| 4 | { |
| 5 | namespace pels |
| 6 | { |
| 7 | |
Matt Spinler | 289aa47 | 2019-09-20 12:33:29 -0500 | [diff] [blame] | 8 | /** |
| 9 | * @brief Useful component IDs |
| 10 | */ |
Matt Spinler | 09d6400 | 2019-09-11 14:29:46 -0500 | [diff] [blame] | 11 | enum class ComponentID |
| 12 | { |
| 13 | phosphorLogging = 0x2000 |
| 14 | }; |
| 15 | |
Matt Spinler | 1a94cc3 | 2019-09-11 13:32:12 -0500 | [diff] [blame] | 16 | /** |
| 17 | * @brief PEL section IDs |
| 18 | */ |
| 19 | enum class SectionID |
| 20 | { |
| 21 | privateHeader = 0x5048, // 'PH' |
| 22 | userHeader = 0x5548, // 'UH' |
| 23 | primarySRC = 0x5053, // 'PS' |
| 24 | secondarySRC = 0x5353, // 'SS' |
| 25 | extendedUserHeader = 0x4548, // 'EH' |
| 26 | failingMTMS = 0x4D54, // 'MT' |
| 27 | dumpLocation = 0x4448, // 'DH' |
| 28 | firmwareError = 0x5357, // 'SW' |
| 29 | impactedPart = 0x4C50, // 'LP' |
| 30 | logicalResource = 0x4C52, // 'LR' |
| 31 | hmcID = 0x484D, // 'HM' |
| 32 | epow = 0x4550, // 'EP' |
| 33 | ioEvent = 0x4945, // 'IE' |
| 34 | mfgInfo = 0x4D49, // 'MI' |
| 35 | callhome = 0x4348, // 'CH' |
| 36 | userData = 0x5544, // 'UD' |
| 37 | envInfo = 0x4549, // 'EI' |
| 38 | extUserData = 0x4544 // 'ED' |
| 39 | }; |
| 40 | |
Matt Spinler | 289aa47 | 2019-09-20 12:33:29 -0500 | [diff] [blame] | 41 | /** |
| 42 | * @brief Useful SRC types |
| 43 | */ |
Matt Spinler | 93e2932 | 2019-09-20 11:16:15 -0500 | [diff] [blame] | 44 | enum class SRCType |
| 45 | { |
| 46 | bmcError = 0xBD, |
| 47 | powerError = 0x11 |
| 48 | }; |
| 49 | |
Matt Spinler | 289aa47 | 2019-09-20 12:33:29 -0500 | [diff] [blame] | 50 | /** |
| 51 | * @brief Creator IDs |
| 52 | */ |
| 53 | enum class CreatorID |
| 54 | { |
| 55 | fsp = 'E', |
| 56 | hmc = 'C', |
| 57 | hostboot = 'B', |
| 58 | ioDrawer = 'M', |
| 59 | occ = 'T', |
| 60 | openBMC = 'O', |
| 61 | partFW = 'L', |
| 62 | phyp = 'H', |
| 63 | powerControl = 'W', |
| 64 | powerNV = 'P', |
| 65 | sapphire = 'K', |
| 66 | slic = 'S', |
| 67 | }; |
| 68 | |
Matt Spinler | fdb6a20 | 2019-09-20 14:09:20 -0500 | [diff] [blame] | 69 | /** |
| 70 | * @brief Useful event scope values |
| 71 | */ |
| 72 | enum class EventScope |
| 73 | { |
| 74 | entirePlatform = 0x03 |
| 75 | }; |
| 76 | |
| 77 | /** |
| 78 | * @brief Useful event type values |
| 79 | */ |
| 80 | enum class EventType |
| 81 | { |
| 82 | notApplicable = 0x00 |
| 83 | }; |
| 84 | |
Matt Spinler | a7525aa | 2019-11-01 11:11:07 -0500 | [diff] [blame] | 85 | /** |
| 86 | * @brief The major types of severity values, based on the |
| 87 | * the left nibble of the severity value. |
| 88 | */ |
| 89 | enum class SeverityType |
| 90 | { |
| 91 | nonError = 0x00, |
| 92 | recovered = 0x10, |
| 93 | predictive = 0x20, |
| 94 | unrecoverable = 0x40, |
| 95 | critical = 0x50, |
| 96 | diagnostic = 0x60, |
| 97 | symptom = 0x70 |
| 98 | }; |
| 99 | |
Matt Spinler | 1a94cc3 | 2019-09-11 13:32:12 -0500 | [diff] [blame] | 100 | } // namespace pels |
| 101 | } // namespace openpower |