diff options
author | Rick Ward <rward15@us.ibm.com> | 2018-11-06 16:51:42 -0600 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2018-11-09 13:27:04 -0600 |
commit | 8351efdb3b65ed4fc5472e78efd5db315663e42f (patch) | |
tree | c12686656b0e9c54d017232b8681b3ee5e9ecac5 /src/include/usr/devicefw | |
parent | 7d4f360d16e2c8f734d361486e7334f2d31f9a20 (diff) | |
download | talos-hostboot-8351efdb3b65ed4fc5472e78efd5db315663e42f.tar.gz talos-hostboot-8351efdb3b65ed4fc5472e78efd5db315663e42f.zip |
Inband MMIO access to OCMB (skeleton)
This is a skeleton version of the new MMIO device driver that
will give access to the OCMB. It is being pushed to allow related
development to progress.
Change-Id: Iefec0677e63db6af29d81389c630584ba9dff16c
RTC: 189447
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/68489
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Matt Derksen <mderkse1@us.ibm.com>
Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/usr/devicefw')
-rw-r--r-- | src/include/usr/devicefw/userif.H | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/include/usr/devicefw/userif.H b/src/include/usr/devicefw/userif.H index 25d355ccf..a6c7f26b0 100644 --- a/src/include/usr/devicefw/userif.H +++ b/src/include/usr/devicefw/userif.H @@ -71,6 +71,7 @@ namespace DeviceFW NODECOMM, NVDIMM, FAPI_I2C, + MMIO, LAST_ACCESS_TYPE, }; @@ -394,6 +395,17 @@ namespace DeviceFW DEVICE_FAPI_I2C_ADDRESS_WCONFIG( 0, NULL ) /** + * @brief Additional device addressing parameters for MMIO ops. + * @param[in] i_offset - offset (bytes) into the device + * @param[in] i_accessLimit - number of bytes to read/write at a + * time (device limitation) + */ + #define DEVICE_MMIO_ADDRESS(i_offset, i_accessLimit) \ + DeviceFW::MMIO, \ + static_cast<uint64_t>((i_offset)), \ + static_cast<uint64_t>((i_accessLimit)) + + /** * @brief Perform a hardware read operation. * * @param[in] i_target Device target to operate on. |