Murulidhar Nataraju | eb0a297 | 2017-03-27 05:58:47 -0500 | [diff] [blame] | 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, |
| 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 | */ |
| 34 | void write(const char* devPath, |
| 35 | uint64_t address, |
| 36 | uint64_t data); |
| 37 | |
| 38 | }//namespace scom |
| 39 | }//namespace sbe |
| 40 | }//namespace openpower |