blob: 91377f29cb8290042d329c4cb608b2fcc9eda311 [file] [log] [blame]
Jayanth Othayoth21a889f2021-10-07 06:53:40 -05001#include <cstdint>
2
3#pragma once
4
5namespace openpower::phal::dump
6{
7
8constexpr auto SBE_DUMP_TIMEOUT = 4 * 60; // Timeout in seconds
9
10/** @brief Dump types supported by dump request */
11enum class DumpType
12{
13 SBE
14};
15
16/** @brief Structure for dump request parameters */
17struct DumpParameters
18{
19 uint32_t logId;
20 uint32_t unitId;
21 uint32_t timeout;
22 DumpType dumpType;
23};
24
25/**
26 * Request a dump from the dump manager
27 *
28 * Request a dump from the dump manager and register a monitor for observing
29 * the dump progress.
30 *
31 * @param dumpParameters Parameters for the dump request
32 */
33void requestDump(const DumpParameters& dumpParameters);
34
35} // namespace openpower::phal::dump