From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lokesh Vutla Date: Mon, 3 Jun 2019 11:02:25 +0530 Subject: [U-Boot] [PATCH v3 3/7] remoteproc: add device_to_virt ops In-Reply-To: <1559308296-17027-4-git-send-email-fabien.dessenne@st.com> References: <1559308296-17027-1-git-send-email-fabien.dessenne@st.com> <1559308296-17027-4-git-send-email-fabien.dessenne@st.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 31/05/19 6:41 PM, Fabien Dessenne wrote: > Introduce the device_to_virt function to allow translation between > device address (remote processor view) and virtual address (main > processor view). > > Signed-off-by: Loic Pallardy > Signed-off-by: Fabien Dessenne Reviewed-by: Lokesh Vutla Thanks and regards, Lokesh > --- > include/remoteproc.h | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/include/remoteproc.h b/include/remoteproc.h > index aa90a67..aef6ff2 100644 > --- a/include/remoteproc.h > +++ b/include/remoteproc.h > @@ -113,6 +113,18 @@ struct dm_rproc_ops { > * @return 0 on success, 1 if not responding, -ve on other errors. > */ > int (*ping)(struct udevice *dev); > + > + /** > + * device_to_virt() - Return translated virtual address (optional) > + * > + * Translate a device address (remote processor view) to virtual > + * address (main processor view). > + * > + * @dev: Remote proc device > + * @da: Device address > + * @return virtual address. > + */ > + void * (*device_to_virt)(struct udevice *dev, ulong da); > }; > > /* Accessor */ >