aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/remoteproc.h
diff options
context:
space:
mode:
authorSibi Sankar <sibis@codeaurora.org>2018-10-17 19:25:23 +0530
committerBjorn Andersson <bjorn.andersson@linaro.org>2018-10-19 11:14:16 -0700
commit3952105df4723abbd36b57e88c8dad42cf6c8b59 (patch)
treece9b4e551a7faffe953c929aab75deb68c34f0e8 /include/linux/remoteproc.h
parentremoteproc: modify vring allocation to rely on centralized carveout allocator (diff)
downloadwireguard-linux-3952105df4723abbd36b57e88c8dad42cf6c8b59.tar.xz
wireguard-linux-3952105df4723abbd36b57e88c8dad42cf6c8b59.zip
remoteproc: Introduce custom dump function for each remoteproc segment
Introduce custom dump function and private data per remoteproc dump segment. The dump function is responsible for filling the device memory segment associated with coredump Signed-off-by: Sibi Sankar <sibis@codeaurora.org> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'include/linux/remoteproc.h')
-rw-r--r--include/linux/remoteproc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/remoteproc.h b/include/linux/remoteproc.h
index 8bb0cf0416f1..2d036adab7ff 100644
--- a/include/linux/remoteproc.h
+++ b/include/linux/remoteproc.h
@@ -412,6 +412,9 @@ enum rproc_crash_type {
* @node: list node related to the rproc segment list
* @da: device address of the segment
* @size: size of the segment
+ * @priv: private data associated with the dump_segment
+ * @dump: custom dump function to fill device memory segment associated
+ * with coredump
*/
struct rproc_dump_segment {
struct list_head node;
@@ -419,6 +422,9 @@ struct rproc_dump_segment {
dma_addr_t da;
size_t size;
+ void *priv;
+ void (*dump)(struct rproc *rproc, struct rproc_dump_segment *segment,
+ void *dest);
loff_t offset;
};