diff options
author | Loic Pallardy <loic.pallardy@st.com> | 2018-07-27 15:14:40 +0200 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2018-10-09 22:39:06 -0700 |
commit | 72029c901a0244ca2e1eb09e1c453413a17f5787 (patch) | |
tree | 8f1a7f9591181a8c563c5a12cfc999fe540946fc /include/linux/remoteproc.h | |
parent | 3265230c5b05fe919291d09e266a8aedc85ebad0 (diff) | |
download | linux-72029c901a0244ca2e1eb09e1c453413a17f5787.tar.gz linux-72029c901a0244ca2e1eb09e1c453413a17f5787.tar.bz2 linux-72029c901a0244ca2e1eb09e1c453413a17f5787.zip |
remoteproc: add helper function to allocate and init rproc_mem_entry struct
This patch introduces rproc_mem_entry_init helper function to
simplify rproc_mem_entry structure allocation and filling by
client.
Signed-off-by: Loic Pallardy <loic.pallardy@st.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'include/linux/remoteproc.h')
-rw-r--r-- | include/linux/remoteproc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/remoteproc.h b/include/linux/remoteproc.h index 19908c930f47..9e2b84fa2efa 100644 --- a/include/linux/remoteproc.h +++ b/include/linux/remoteproc.h @@ -559,6 +559,12 @@ int rproc_add(struct rproc *rproc); int rproc_del(struct rproc *rproc); void rproc_free(struct rproc *rproc); +struct rproc_mem_entry * +rproc_mem_entry_init(struct device *dev, + void *va, dma_addr_t dma, int len, u32 da, + int (*release)(struct rproc *, struct rproc_mem_entry *), + const char *name, ...); + int rproc_boot(struct rproc *rproc); void rproc_shutdown(struct rproc *rproc); void rproc_report_crash(struct rproc *rproc, enum rproc_crash_type type); |