diff options
author | Lokesh Vutla | 2019-09-04 16:01:27 +0530 |
---|---|---|
committer | Tom Rini | 2019-10-11 10:07:33 -0400 |
commit | c08eb936263c67312cb55c354277f9dc3433b194 (patch) | |
tree | cae2475d85f59f2b8ba314c553b325e5d8b4bfe8 /include/remoteproc.h | |
parent | 240b93201007183d5fd651a210ddb4c50ee30980 (diff) |
remoteproc: ops: Add elf section size as input parameter to device_to_virt api
Introduce a new parameter "size" that accepts size of the region to
remoteproc ops callback device_to_virt(). This can enforce more checks
on the region that device_to_virt() is dealing with.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Tested-by: Fabien Dessenne <fabien.dessenne@st.com>
Reviewed-by: Fabien Dessenne <fabien.dessenne@st.com>
Diffstat (limited to 'include/remoteproc.h')
-rw-r--r-- | include/remoteproc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/remoteproc.h b/include/remoteproc.h index 49871949055..dbff1ce3cf4 100644 --- a/include/remoteproc.h +++ b/include/remoteproc.h @@ -122,9 +122,10 @@ struct dm_rproc_ops { * * @dev: Remote proc device * @da: Device address + * @size: Size of the memory region @da is pointing to * @return virtual address. */ - void * (*device_to_virt)(struct udevice *dev, ulong da); + void * (*device_to_virt)(struct udevice *dev, ulong da, ulong size); }; /* Accessor */ |