xref: /openbmc/openpower-sbe-interface/sbe_interfaces.hpp (revision da79c9ca20745373e25b442ea4c722e6eda996e3)
1 #pragma once
2 
3 #include <stdint.h>
4 
5 namespace openpower
6 {
7 namespace sbe
8 {
9 namespace scom
10 {
11 
12 /**
13  * @brief Read processor SCOM register.
14  *
15  * Throws an exception on error.
16  *
17  * @param[in] FIFO device path associated with the SBE.
18  * @param[in] SCOM register address.
19  * @return The register data
20  */
21 uint64_t read(const char* devPath, uint64_t address);
22 
23 /**
24  * @brief Write processor SCOM register.
25  *
26  * Throws an exception on error.
27  *
28  * @param[in] FIFO device path associated with the SBE.
29  * @param[in] SCOM register address.
30  * @param[in] Data to be written into the register.
31  */
32 void write(const char* devPath, uint64_t address, uint64_t data);
33 
34 } // namespace scom
35 } // namespace sbe
36 } // namespace openpower
37