diff options
| author | Terry J. Opie <opiet@us.ibm.com> | 2012-01-03 15:06:17 -0600 |
|---|---|---|
| committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2012-01-31 13:06:56 -0600 |
| commit | e5908dd4c110595e7c11d46009b07aa068dc19cd (patch) | |
| tree | e0b7647123fbc87f4f459f909bb4f2be0da8f0dd /src/include/usr/devicefw | |
| parent | 39b01da0087097401dea4d9a9f4e483734e751d8 (diff) | |
| download | talos-hostboot-e5908dd4c110595e7c11d46009b07aa068dc19cd.tar.gz talos-hostboot-e5908dd4c110595e7c11d46009b07aa068dc19cd.zip | |
SPD Device Driver
- JEDEC format for DDR3
- Testcases
Change-Id: I8a9bf87335914d5cb824adb92f11546c37e5b423
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/610
Tested-by: Jenkins Server
Reviewed-by: Van H. Lee <vanlee@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/usr/devicefw')
| -rw-r--r-- | src/include/usr/devicefw/userif.H | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/src/include/usr/devicefw/userif.H b/src/include/usr/devicefw/userif.H index 836e468ca..0fbe63149 100644 --- a/src/include/usr/devicefw/userif.H +++ b/src/include/usr/devicefw/userif.H @@ -21,8 +21,8 @@ // // IBM_PROLOG_END /** @file userif.H - * @brief Provides the user application interfaces for performing device - * access. + * @brief Provides the user application interfaces for performing device + * access. * * @note These interfaces should not be used directly by device drivers. * Use driverif.H instead. @@ -47,16 +47,17 @@ namespace DeviceFW MAILBOX, PRESENT, FSI, + SPD, LAST_ACCESS_TYPE, }; - - /** Construct the device addressing parameters for SCOM device ops. + + /** Construct the device addressing parameters for SCOM device ops. * @param[in] i_address - Scom address to operate on. */ #define DEVICE_SCOM_ADDRESS(i_address) \ DeviceFW::SCOM, static_cast<uint64_t>((i_address)) - + /** Construct the device addressing parameters for the PRESENT device ops. */ #define DEVICE_PRESENT_ADDRESS() \ @@ -78,15 +79,23 @@ namespace DeviceFW */ #define DEVICE_PNOR_ADDRESS( i_chip, i_addr ) \ DeviceFW::PNOR, ((static_cast<uint64_t>(i_chip)<<32)|static_cast<uint64_t>(i_addr)) - + /** Construct the device addressing parameters for FSI device ops. * @param[in] i_address - FSI address to operate on. */ #define DEVICE_FSI_ADDRESS(i_address) \ DeviceFW::FSI, static_cast<uint64_t>((i_address)) + /** + * Construct the device addressing parameters for the SPD device ops. + * @param[in] i_keyword - The keyword enumeration value to be accessed + * by the device driver. + */ + #define DEVICE_SPD_ADDRESS( i_keyword )\ + DeviceFW::SPD, static_cast<uint64_t>(( i_keyword )) + - /** + /** * @brief Perform a hardware read operation. * * @param[in] i_target Device target to operate on. @@ -112,11 +121,11 @@ namespace DeviceFW * </PRE> * */ - errlHndl_t deviceRead(TARGETING::Target* i_target, + errlHndl_t deviceRead(TARGETING::Target* i_target, void* o_buffer, size_t& io_buflen, AccessType i_accessType, ...); - /** + /** * @brief Perform a hardware write operation. * * @param[in] i_target Device target to operate on. |

