aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/remoteproc.h
diff options
context:
space:
mode:
authorClement Leger <cleger@kalray.eu>2020-04-10 12:24:32 +0200
committerBjorn Andersson <bjorn.andersson@linaro.org>2020-04-19 22:53:02 -0700
commit418fd78771220f5e522d02676758ed824c349fd5 (patch)
treef9d8d3eb995dd481a573d5a4389fefd0a484d825 /include/linux/remoteproc.h
parentremoteproc: Simplify default name allocation (diff)
downloadwireguard-linux-418fd78771220f5e522d02676758ed824c349fd5.tar.xz
wireguard-linux-418fd78771220f5e522d02676758ed824c349fd5.zip
remoteproc: add rproc_coredump_set_elf_info
This function allows drivers to correctly setup the coredump output elf information. Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org> Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org> Signed-off-by: Clement Leger <cleger@kalray.eu> Link: https://lore.kernel.org/r/20200410102433.2672-2-cleger@kalray.eu Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'include/linux/remoteproc.h')
-rw-r--r--include/linux/remoteproc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/remoteproc.h b/include/linux/remoteproc.h
index 9c07d7958c53..0547676479d3 100644
--- a/include/linux/remoteproc.h
+++ b/include/linux/remoteproc.h
@@ -518,6 +518,7 @@ struct rproc {
struct list_head dump_segments;
int nb_vdev;
u8 elf_class;
+ u16 elf_machine;
};
/**
@@ -622,6 +623,7 @@ int rproc_coredump_add_custom_segment(struct rproc *rproc,
struct rproc_dump_segment *segment,
void *dest),
void *priv);
+int rproc_coredump_set_elf_info(struct rproc *rproc, u8 class, u16 machine);
static inline struct rproc_vdev *vdev_to_rvdev(struct virtio_device *vdev)
{