blob: 1ab099ae43f7e3ca28e621cc7aaee3b6671b0d6d [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);
Ramesh Iyyar22793862020-12-04 04:03:03 -060018
19/**
20 * @brief Request to delete dump
21 *
22 * @param[in] id - The Dump Source ID.
23 * @return NULL
24 *
25 */
26void requestDelete(uint32_t id);
Ramesh Iyyar3af5c322020-12-04 00:38:42 -060027} // namespace host
28
Jayanth Othayothd31be2c2020-02-04 02:56:45 -060029namespace pldm
30{
31
32/**
33 * PLDMInterface
34 *
35 * Handles sending the SetNumericEffecterValue PLDM
36 * command to the host to start dump offload.
37 *
38 */
39
40/**
41 * @brief Kicks of the SetNumericEffecterValue command to
42 * start offload the dump
43 *
44 * @param[in] id - The Dump Source ID.
45 *
46 */
47
48void requestOffload(uint32_t id);
49
50/**
51 * @brief Reads the MCTP endpoint ID out of a file
52 */
53mctp_eid_t readEID();
54
Ramesh Iyyar22793862020-12-04 04:03:03 -060055/**
56 * @brief Request to delete dump
57 *
58 * @param[in] id - The Dump Source ID.
59 * @return NULL
60 *
61 */
62void requestDelete(uint32_t id);
Jayanth Othayothd31be2c2020-02-04 02:56:45 -060063} // namespace pldm
64} // namespace dump
65} // namespace phosphor