blob: ab3877e9ae3dc1e78a624228d6ca6f436ffcc10b [file] [log] [blame]
#pragma once
#include <stdint.h>
namespace openpower
{
namespace sbe
{
namespace scom
{
/**
* @brief Read processor SCOM register.
*
* Throws an exception on error.
*
* @param[in] FIFO device path associated with the SBE.
* @param[in] SCOM register address.
* @return The register data
*/
uint64_t read(const char* devPath,
uint64_t address);
/**
* @brief Write processor SCOM register.
*
* Throws an exception on error.
*
* @param[in] FIFO device path associated with the SBE.
* @param[in] SCOM register address.
* @param[in] Data to be written into the register.
*/
void write(const char* devPath,
uint64_t address,
uint64_t data);
}//namespace scom
}//namespace sbe
}//namespace openpower