1 #pragma once
2 
3 #include <libipl.H>
4 
5 extern "C"
6 {
7 #include <libpdbg.h>
8 }
9 
10 namespace openpower
11 {
12 namespace phal
13 {
14 
15 /**
16  * @brief This function will initialize required phal
17  *        libraries.
18  * Throws an exception on error.
19  *
20  * @param[in] mode - IPL mode, default IPL_AUTOBOOT
21  *
22  */
23 void phal_init(enum ipl_mode mode = IPL_AUTOBOOT);
24 
25 /**
26  *  @brief  Check if primary processor or not
27  *
28  *  @param[in] procTarget - Processor target to check if primary or not
29  *
30  *  @return True/False
31  */
32 bool isPrimaryProc(struct pdbg_target* procTarget);
33 
34 } // namespace phal
35 } // namespace openpower
36