blob: b1d0a478302922ab0c5e0a2dd5398e73e2054b6c [file] [log] [blame]
Dhruvaraj Subhashchandran858d1aa2021-10-27 03:26:06 -05001#pragma once
2namespace openpower::dump::SBE
3{
4// Dump type to the sbe_dump chipop
5constexpr auto SBE_DUMP_TYPE_HOSTBOOT = 0x5;
6constexpr auto SBE_DUMP_TYPE_HARDWARE = 0x1;
Dhruvaraj Subhashchandran9098d8c2022-12-01 00:40:20 -06007constexpr auto SBE_DUMP_TYPE_PERFORMANCE = 0x3;
Dhruvaraj Subhashchandran858d1aa2021-10-27 03:26:06 -05008
Dhruvaraj Subhashchandran6f1be972024-04-01 00:42:38 -05009// SBE dump types
Dhruvaraj Subhashchandran858d1aa2021-10-27 03:26:06 -050010constexpr auto SBE_DUMP_TYPE_SBE = 0xA;
Dhruvaraj Subhashchandran6f1be972024-04-01 00:42:38 -050011constexpr auto SBE_DUMP_TYPE_MSBE = 0xB;
Dhruvaraj Subhashchandran858d1aa2021-10-27 03:26:06 -050012
13// Clock state requested
14// Collect the dump with clocks on
15constexpr auto SBE_CLOCK_ON = 0x1;
16
17// Collect the dumps with clock off
18constexpr auto SBE_CLOCK_OFF = 0x2;
19
Dhruvaraj Subhashchandran6feeebd2021-10-19 05:03:59 -050020// Dump command class
21constexpr auto SBEFIFO_CMD_CLASS_DUMP = 0xAA00;
22
23// Get dump method
24constexpr auto SBEFIFO_CMD_GET_DUMP = 0x01;
Dhruvaraj Subhashchandranf9f65b82022-10-13 06:46:43 -050025
26// Stop instruction command class
27constexpr auto SBEFIFO_CMD_CLASS_INSTRUCTION = 0xA700;
28
29// Stop instruction method
30constexpr auto SBEFIFO_CMD_CONTROL_INSN = 0x01;
Dhruvaraj Subhashchandran858d1aa2021-10-27 03:26:06 -050031} // namespace openpower::dump::SBE