blob: 61ff37caec4afa4dabb943fc5b370d60eff4508b [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