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 | |
Deepa Karthikeyan | a92dc02 | 2024-04-16 03:45:57 -0500 | [diff] [blame] | 34 | /** |
| 35 | * Enable or disable host watchdog dbus property |
| 36 | * |
| 37 | * This property is used in enabling/ disabling host watchdog. |
| 38 | * |
| 39 | * @param enable Whether to enable (True) or disable (False) the watchdog |
| 40 | */ |
| 41 | void enableWatchdog(bool enable); |
| 42 | |
Ben Tyner | 7029e52 | 2021-08-09 19:18:24 -0500 | [diff] [blame] | 43 | } // namespace attn |