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 | */ |
Patrick Venture | da79c9c | 2018-11-01 15:35:52 -0700 | [diff] [blame^] | 21 | uint64_t read(const char* devPath, uint64_t address); |
Murulidhar Nataraju | eb0a297 | 2017-03-27 05:58:47 -0500 | [diff] [blame] | 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 | */ |
Patrick Venture | da79c9c | 2018-11-01 15:35:52 -0700 | [diff] [blame^] | 32 | void write(const char* devPath, uint64_t address, uint64_t data); |
Murulidhar Nataraju | eb0a297 | 2017-03-27 05:58:47 -0500 | [diff] [blame] | 33 | |
Patrick Venture | da79c9c | 2018-11-01 15:35:52 -0700 | [diff] [blame^] | 34 | } // namespace scom |
| 35 | } // namespace sbe |
| 36 | } // namespace openpower |