diff options
author | Dan Crowell <dcrowell@us.ibm.com> | 2015-03-03 09:03:43 -0600 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2015-03-26 07:58:56 -0500 |
commit | 0d7ec79752556d06069b37de26cd5aa8ea38e1de (patch) | |
tree | 8d5cece0f3d216e897481a7b51ad614434c94818 /src/include/runtime/interface.h | |
parent | 4c31ecf3b63f4f21e677d7359f64de22cd8fc1eb (diff) | |
download | talos-hostboot-0d7ec79752556d06069b37de26cd5aa8ea38e1de.tar.gz talos-hostboot-0d7ec79752556d06069b37de26cd5aa8ea38e1de.zip |
Modify hbrt pnor interfaces to handle different partition sizes
Change-Id: I8ea0d9fa603328bdafed97bd33d70ad3634b43a3
RTC: 125021
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/16139
Tested-by: Jenkins Server
Reviewed-by: Corey V. Swenson <cswenson@us.ibm.com>
Reviewed-by: PRACHI GUPTA <pragupta@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/runtime/interface.h')
-rw-r--r-- | src/include/runtime/interface.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/include/runtime/interface.h b/src/include/runtime/interface.h index 26d5f6b6a..ca62f2ea1 100644 --- a/src/include/runtime/interface.h +++ b/src/include/runtime/interface.h @@ -201,11 +201,12 @@ typedef struct hostInterfaces * @param[in] i_partitionName: name of the partition to read * @param[in] i_offset: offset within the partition * @param[out] o_data: pointer to the data read - * @param[in] i_sizeBytes: size of data to read - * @retval rc - non-zero on error + * @param[in] i_sizeBytes: size of o_data buffer, maximum number + * of bytes to read + * @retval rc - negative on error, else number of bytes actually read */ int (*pnor_read) (uint32_t i_proc, const char* i_partitionName, - uint64_t i_offset, void* o_data, size_t i_sizeBytes); + uint64_t i_offset, void* o_data, size_t i_sizeBytes); /** * @brief Write to Pnor @@ -213,11 +214,12 @@ typedef struct hostInterfaces * @param[in] i_partitionName: name of the partition to write * @param[in] i_offset: offset withing the partition * @param[in] i_data: pointer to the data to write - * @param[in] i_sizeBytes: size of data to write - * @retval rc - non-zero on error + * @param[in] i_sizeBytes: size of i_data buffer, maximum number + * of bytes to read + * @retval rc - negative on error, else number of bytes actually written */ int (*pnor_write) (uint32_t i_proc, const char* i_partitionName, - uint64_t i_offset, void* i_data, size_t i_sizeBytes); + uint64_t i_offset, void* i_data, size_t i_sizeBytes); /** |