xref: /openbmc/openpower-debug-collector/watchdog/watchdog_main.hpp (revision 20a9d4375d2eb9d56d5f3e135bceb75884c2cc84)
1 #pragma once
2 #include <stdint.h>
3 
4 /**
5  * @brief Main function to initiate Hostboot dump
6  *
7  */
8 
9 namespace watchdog
10 {
11 namespace dump
12 {
13 
14 /**
15  * @brief Initiate Hostboot dump collection
16  *
17  * @param timeout - timeout interval in seconds
18  */
19 void triggerHostbootDump(const uint32_t timeout);
20 
21 /**
22  * @brief Handle SBE Boot Error
23  *
24  * @param procTarget - Processor target
25  * @param timeout - timeout interval in seconds
26  */
27 void handleSbeBootError(struct pdbg_target* procTarget, const uint32_t timeout);
28 
29 /**
30  * @brief creates a PEL and triggers System dump
31  *
32  * @details This function creates the PEL and then triggers System dump
33  *
34  */
35 void triggerSystemDump();
36 
37 } // namespace dump
38 } // namespace watchdog
39