Jayanth Othayoth | d31be2c | 2020-02-04 02:56:45 -0600 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include <libpldm/pldm.h> |
| 4 | |
| 5 | namespace phosphor |
| 6 | { |
| 7 | namespace dump |
| 8 | { |
Ramesh Iyyar | 3af5c32 | 2020-12-04 00:38:42 -0600 | [diff] [blame] | 9 | namespace host |
| 10 | { |
| 11 | /** |
| 12 | * @brief Initiate offload of the dump with provided id |
| 13 | * |
| 14 | * @param[in] id - The Dump Source ID. |
| 15 | * |
| 16 | */ |
| 17 | void requestOffload(uint32_t id); |
Ramesh Iyyar | 2279386 | 2020-12-04 04:03:03 -0600 | [diff] [blame^] | 18 | |
| 19 | /** |
| 20 | * @brief Request to delete dump |
| 21 | * |
| 22 | * @param[in] id - The Dump Source ID. |
| 23 | * @return NULL |
| 24 | * |
| 25 | */ |
| 26 | void requestDelete(uint32_t id); |
Ramesh Iyyar | 3af5c32 | 2020-12-04 00:38:42 -0600 | [diff] [blame] | 27 | } // namespace host |
| 28 | |
Jayanth Othayoth | d31be2c | 2020-02-04 02:56:45 -0600 | [diff] [blame] | 29 | namespace 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 | |
| 48 | void requestOffload(uint32_t id); |
| 49 | |
| 50 | /** |
| 51 | * @brief Reads the MCTP endpoint ID out of a file |
| 52 | */ |
| 53 | mctp_eid_t readEID(); |
| 54 | |
Ramesh Iyyar | 2279386 | 2020-12-04 04:03:03 -0600 | [diff] [blame^] | 55 | /** |
| 56 | * @brief Request to delete dump |
| 57 | * |
| 58 | * @param[in] id - The Dump Source ID. |
| 59 | * @return NULL |
| 60 | * |
| 61 | */ |
| 62 | void requestDelete(uint32_t id); |
Jayanth Othayoth | d31be2c | 2020-02-04 02:56:45 -0600 | [diff] [blame] | 63 | } // namespace pldm |
| 64 | } // namespace dump |
| 65 | } // namespace phosphor |