blob: 289aea564cdd848323b3987340a4be697f3f3015 [file] [log] [blame]
Ben Tyner7029e522021-08-09 19:18:24 -05001#pragma once
Ben Tyner135793a2021-10-27 09:18:41 -05002#include <cstdint>
Ben Tyner7029e522021-08-09 19:18:24 -05003
4namespace attn
5{
6
7/** @brief Dump types supported by dump request */
8enum class DumpType
9{
10 Hostboot,
Ben Tyner7f6ce6a2021-08-17 19:40:00 -050011 Hardware,
12 SBE
Ben Tyner7029e522021-08-09 19:18:24 -050013};
14
15/** @brief Structure for dump request parameters */
16class DumpParameters
17{
18 public:
Ben Tyner7029e522021-08-09 19:18:24 -050019 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 Shelley611b3442021-11-19 16:02:01 -060029 * @param i_logId The platform log ID associated with the dump request.
Ben Tyner7029e522021-08-09 19:18:24 -050030 * @param dumpParameters Parameters for the dump request
31 */
Zane Shelley611b3442021-11-19 16:02:01 -060032void requestDump(uint32_t i_logId, const DumpParameters& dumpParameters);
Ben Tyner7029e522021-08-09 19:18:24 -050033
34} // namespace attn