blob: 9b2fdb3648f44619dda31b037ba7e1f2bbfd0a96 [file] [log] [blame]
Jayanth Othayothd31be2c2020-02-04 02:56:45 -06001#pragma once
2
3#include <libpldm/pldm.h>
4
5namespace phosphor
6{
7namespace dump
8{
Ramesh Iyyar3af5c322020-12-04 00:38:42 -06009namespace host
10{
11/**
12 * @brief Initiate offload of the dump with provided id
13 *
14 * @param[in] id - The Dump Source ID.
15 *
16 */
17void requestOffload(uint32_t id);
18} // namespace host
19
Jayanth Othayothd31be2c2020-02-04 02:56:45 -060020namespace pldm
21{
22
23/**
24 * PLDMInterface
25 *
26 * Handles sending the SetNumericEffecterValue PLDM
27 * command to the host to start dump offload.
28 *
29 */
30
31/**
32 * @brief Kicks of the SetNumericEffecterValue command to
33 * start offload the dump
34 *
35 * @param[in] id - The Dump Source ID.
36 *
37 */
38
39void requestOffload(uint32_t id);
40
41/**
42 * @brief Reads the MCTP endpoint ID out of a file
43 */
44mctp_eid_t readEID();
45
Jayanth Othayothd31be2c2020-02-04 02:56:45 -060046} // namespace pldm
47} // namespace dump
48} // namespace phosphor