aboutsummaryrefslogtreecommitdiff
path: root/core/pldm/pldm.h
diff options
context:
space:
mode:
authorChristophe Lombard <clombard@linux.ibm.com>2023-08-29 11:23:37 +0200
committerReza Arbab <arbab@linux.ibm.com>2023-09-12 14:22:11 -0500
commit0027d181c5f9e10824e9abe4b2e9d29f6b3c389f (patch)
tree1ffd67f77f146b6dfe1c40fca98ecfbd0eb1afce /core/pldm/pldm.h
parent09b7603c28b186e62359b836e3a076ce9531838e (diff)
downloadskiboot-0027d181c5f9e10824e9abe4b2e9d29f6b3c389f.zip
skiboot-0027d181c5f9e10824e9abe4b2e9d29f6b3c389f.tar.gz
skiboot-0027d181c5f9e10824e9abe4b2e9d29f6b3c389f.tar.bz2
core/pldm: Add file io write request
Send/receive a PLDM WriteFile request message. Due to maximum transfer size for PLDM protocol, we have to send several write requests, if necessary. Reviewed-by: Abhishek Singh Tomar <abhishek@linux.ibm.com> Signed-off-by: Christophe Lombard <clombard@linux.ibm.com> Signed-off-by: Reza Arbab <arbab@linux.ibm.com>
Diffstat (limited to 'core/pldm/pldm.h')
-rw-r--r--core/pldm/pldm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/pldm/pldm.h b/core/pldm/pldm.h
index ef01576..f1ff373 100644
--- a/core/pldm/pldm.h
+++ b/core/pldm/pldm.h
@@ -54,6 +54,8 @@ int pldm_responder_init(void);
/* Requester support */
int pldm_file_io_read_file(uint32_t file_handle, uint32_t file_length,
uint32_t pos, void *buf, uint64_t len);
+int pldm_file_io_write_file(uint32_t file_handle, uint32_t pos,
+ const void *buf, uint64_t len);
int pldm_file_io_init(void);
int pldm_fru_get_bmc_version(void *bv, int len);