blob: 04c51e7442c97202c32b5c1f9c34dcfea861e9af [file] [log] [blame]
Ben Tyner7029e522021-08-09 19:18:24 -05001#pragma once
2
3namespace attn
4{
5
6/** @brief Dump types supported by dump request */
7enum class DumpType
8{
9 Hostboot,
Ben Tyner7f6ce6a2021-08-17 19:40:00 -050010 Hardware,
11 SBE
Ben Tyner7029e522021-08-09 19:18:24 -050012};
13
14/** @brief Structure for dump request parameters */
15class DumpParameters
16{
17 public:
18 uint32_t logId;
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 *
29 * @param dumpParameters Parameters for the dump request
30 */
31void requestDump(const DumpParameters& dumpParameters);
32
33} // namespace attn