Ben Tyner | 7029e52 | 2021-08-09 19:18:24 -0500 | [diff] [blame] | 1 | #pragma once |
Ben Tyner | 135793a | 2021-10-27 09:18:41 -0500 | [diff] [blame] | 2 | #include <cstdint> |
Ben Tyner | 7029e52 | 2021-08-09 19:18:24 -0500 | [diff] [blame] | 3 | |
| 4 | namespace attn |
| 5 | { |
| 6 | |
| 7 | /** @brief Dump types supported by dump request */ |
| 8 | enum class DumpType |
| 9 | { |
| 10 | Hostboot, |
Ben Tyner | 7f6ce6a | 2021-08-17 19:40:00 -0500 | [diff] [blame] | 11 | Hardware, |
| 12 | SBE |
Ben Tyner | 7029e52 | 2021-08-09 19:18:24 -0500 | [diff] [blame] | 13 | }; |
| 14 | |
| 15 | /** @brief Structure for dump request parameters */ |
| 16 | class DumpParameters |
| 17 | { |
| 18 | public: |
Ben Tyner | 7029e52 | 2021-08-09 19:18:24 -0500 | [diff] [blame] | 19 | uint32_t unitId; |
| 20 | DumpType dumpType; |
| 21 | }; |
| 22 | |
| 23 | /** |
| 24 | * Request a dump from the dump manager |
| 25 | * |
| 26 | * Request a dump from the dump manager and register a monitor for observing |
| 27 | * the dump progress. |
| 28 | * |
Zane Shelley | 611b344 | 2021-11-19 16:02:01 -0600 | [diff] [blame] | 29 | * @param i_logId The platform log ID associated with the dump request. |
Ben Tyner | 7029e52 | 2021-08-09 19:18:24 -0500 | [diff] [blame] | 30 | * @param dumpParameters Parameters for the dump request |
| 31 | */ |
Zane Shelley | 611b344 | 2021-11-19 16:02:01 -0600 | [diff] [blame] | 32 | void requestDump(uint32_t i_logId, const DumpParameters& dumpParameters); |
Ben Tyner | 7029e52 | 2021-08-09 19:18:24 -0500 | [diff] [blame] | 33 | |
| 34 | } // namespace attn |