Dhruvaraj Subhashchandran | 858d1aa | 2021-10-27 03:26:06 -0500 | [diff] [blame] | 1 | #pragma once |
Dhruvaraj Subhashchandran | f229889 | 2024-04-21 04:42:55 -0500 | [diff] [blame] | 2 | #include <cstdint> |
| 3 | |
Dhruvaraj Subhashchandran | 858d1aa | 2021-10-27 03:26:06 -0500 | [diff] [blame] | 4 | namespace openpower::dump::SBE |
| 5 | { |
| 6 | // Dump type to the sbe_dump chipop |
| 7 | constexpr auto SBE_DUMP_TYPE_HOSTBOOT = 0x5; |
| 8 | constexpr auto SBE_DUMP_TYPE_HARDWARE = 0x1; |
Dhruvaraj Subhashchandran | 9098d8c | 2022-12-01 00:40:20 -0600 | [diff] [blame] | 9 | constexpr auto SBE_DUMP_TYPE_PERFORMANCE = 0x3; |
Dhruvaraj Subhashchandran | 858d1aa | 2021-10-27 03:26:06 -0500 | [diff] [blame] | 10 | |
Dhruvaraj Subhashchandran | 6f1be97 | 2024-04-01 00:42:38 -0500 | [diff] [blame] | 11 | // SBE dump types |
Dhruvaraj Subhashchandran | 858d1aa | 2021-10-27 03:26:06 -0500 | [diff] [blame] | 12 | constexpr auto SBE_DUMP_TYPE_SBE = 0xA; |
Dhruvaraj Subhashchandran | 6f1be97 | 2024-04-01 00:42:38 -0500 | [diff] [blame] | 13 | constexpr auto SBE_DUMP_TYPE_MSBE = 0xB; |
Dhruvaraj Subhashchandran | 858d1aa | 2021-10-27 03:26:06 -0500 | [diff] [blame] | 14 | |
| 15 | // Clock state requested |
| 16 | // Collect the dump with clocks on |
| 17 | constexpr auto SBE_CLOCK_ON = 0x1; |
| 18 | |
| 19 | // Collect the dumps with clock off |
| 20 | constexpr auto SBE_CLOCK_OFF = 0x2; |
| 21 | |
Dhruvaraj Subhashchandran | 6feeebd | 2021-10-19 05:03:59 -0500 | [diff] [blame] | 22 | // Dump command class |
| 23 | constexpr auto SBEFIFO_CMD_CLASS_DUMP = 0xAA00; |
| 24 | |
| 25 | // Get dump method |
| 26 | constexpr auto SBEFIFO_CMD_GET_DUMP = 0x01; |
Dhruvaraj Subhashchandran | f9f65b8 | 2022-10-13 06:46:43 -0500 | [diff] [blame] | 27 | |
| 28 | // Stop instruction command class |
| 29 | constexpr auto SBEFIFO_CMD_CLASS_INSTRUCTION = 0xA700; |
| 30 | |
| 31 | // Stop instruction method |
| 32 | constexpr auto SBEFIFO_CMD_CONTROL_INSN = 0x01; |
Dhruvaraj Subhashchandran | f229889 | 2024-04-21 04:42:55 -0500 | [diff] [blame] | 33 | |
| 34 | // FFDC Format details |
| 35 | constexpr uint8_t FFDC_FORMAT_SUBTYPE = 0xCB; |
| 36 | constexpr uint8_t FFDC_FORMAT_VERSION = 0x01; |
Dhruvaraj Subhashchandran | 858d1aa | 2021-10-27 03:26:06 -0500 | [diff] [blame] | 37 | } // namespace openpower::dump::SBE |