aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChristophe Lombard <clombard@linux.ibm.com>2023-08-29 11:23:18 +0200
committerReza Arbab <arbab@linux.ibm.com>2023-09-12 14:22:11 -0500
commit66c38f45e9fc079dc47c8865ee6a27da5e7cdc0f (patch)
tree52e5a6c14e04422037c8b9c29cb015acc5220574 /include
parent67064d0dbf8e6b825e94cc9a7bb9824a408fe9cd (diff)
downloadskiboot-66c38f45e9fc079dc47c8865ee6a27da5e7cdc0f.zip
skiboot-66c38f45e9fc079dc47c8865ee6a27da5e7cdc0f.tar.gz
skiboot-66c38f45e9fc079dc47c8865ee6a27da5e7cdc0f.tar.bz2
hw: Move lpc firmware space helpers
Add new lpc helpers for doing a bulk io to firmware space. 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 'include')
-rw-r--r--include/lpc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/lpc.h b/include/lpc.h
index b641aa4..ce9c33d 100644
--- a/include/lpc.h
+++ b/include/lpc.h
@@ -102,6 +102,12 @@ extern int64_t lpc_probe_write(enum OpalLPCAddressType addr_type, uint32_t addr,
extern int64_t lpc_probe_read(enum OpalLPCAddressType addr_type, uint32_t addr,
uint32_t *data, uint32_t sz);
+/*
+ * helpers for doing a bulk io to firmware space.
+ */
+extern int64_t lpc_fw_read(uint32_t addr, void *buf, uint32_t sz);
+extern int64_t lpc_fw_write(uint32_t addr, const void *buf, uint32_t sz);
+
/* Mark LPC bus as used by console */
extern void lpc_used_by_console(void);