blob: ab3877e9ae3dc1e78a624228d6ca6f436ffcc10b [file] [log] [blame]
Murulidhar Natarajueb0a2972017-03-27 05:58:47 -05001#pragma once
2
3#include <stdint.h>
4
5namespace openpower
6{
7namespace sbe
8{
9namespace 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 */
21uint64_t read(const char* devPath,
22 uint64_t address);
23
24
25/**
26 * @brief Write processor SCOM register.
27 *
28 * Throws an exception on error.
29 *
30 * @param[in] FIFO device path associated with the SBE.
31 * @param[in] SCOM register address.
32 * @param[in] Data to be written into the register.
33 */
34void write(const char* devPath,
35 uint64_t address,
36 uint64_t data);
37
38}//namespace scom
39}//namespace sbe
40}//namespace openpower