Ben Tyner | bcf65a8 | 2020-12-01 08:46:36 -0600 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | namespace attn |
| 4 | { |
| 5 | |
Ben Tyner | b833556 | 2021-07-16 12:43:52 -0500 | [diff] [blame] | 6 | /** @brief Attention handler return codes */ |
| 7 | enum ReturnCodes |
| 8 | { |
| 9 | RC_SUCCESS = 0, |
| 10 | RC_NOT_HANDLED = 1, |
| 11 | RC_ANALYZER_ERROR = 2, |
| 12 | RC_CFAM_ERROR = 3, |
| 13 | RC_DBUS_ERROR = 4 |
| 14 | }; |
| 15 | |
| 16 | /** @brief Code seciton for error reporing */ |
| 17 | enum class AttnSection |
| 18 | { |
| 19 | reserved = 0x0000, |
| 20 | attnHandler = 0x0100, |
| 21 | tiHandler = 0x0200, |
| 22 | handlePhypTi = 0x0300, |
| 23 | handleHbTi = 0x0400, |
| 24 | addHbStatusRegs = 0x0500 |
| 25 | }; |
| 26 | |
| 27 | /** @brief Attention handler error reason codes */ |
| 28 | enum AttnCodes |
| 29 | { |
| 30 | ATTN_NO_ERROR = 0, |
| 31 | ATTN_INFO_NULL = 1, |
| 32 | ATTN_PDBG_CFAM = 2, |
| 33 | ATTN_PDBG_SCOM = 3 |
| 34 | }; |
| 35 | |
Ben Tyner | b833556 | 2021-07-16 12:43:52 -0500 | [diff] [blame] | 36 | /** |
| 37 | * @brief Traces some regs for hostboot |
| 38 | * |
| 39 | * When we receive a Checkstop or special Attention Term Immediate, |
| 40 | * hostboot wants some regs added to the error log. We will do this |
| 41 | * by tracing them and then the traces will get added to the error |
| 42 | * log later. |
| 43 | * |
| 44 | * @return nothing |
| 45 | */ |
| 46 | void addHbStatusRegs(); |
| 47 | |
Ben Tyner | bcf65a8 | 2020-12-01 08:46:36 -0600 | [diff] [blame] | 48 | } // namespace attn |