blob: f4e35960c58e65b4d459d6e638d9260e84d89333 [file] [log] [blame]
Chirag Sharmaa2576932020-12-05 23:17:41 -06001#pragma once
2
3#include <libipl.H>
4
Andrew Geissler5c3f9252021-06-10 10:53:05 -05005extern "C"
6{
7#include <libpdbg.h>
8}
9
Chirag Sharmaa2576932020-12-05 23:17:41 -060010namespace openpower
11{
12namespace 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 */
23void phal_init(enum ipl_mode mode = IPL_AUTOBOOT);
24
Andrew Geissler5c3f9252021-06-10 10:53:05 -050025/**
26 * @brief Check if primary processor or not
27 *
Andrew Geissleraf48bed2021-06-24 10:01:35 -050028 * @param[in] procTarget - Processor target to check if primary or not
Andrew Geissler5c3f9252021-06-10 10:53:05 -050029 *
30 * @return True/False
31 */
32bool isPrimaryProc(struct pdbg_target* procTarget);
33
Chirag Sharmaa2576932020-12-05 23:17:41 -060034} // namespace phal
35} // namespace openpower