rpmsg: omx: buffer integration and transmission for ion and sgx
authorSubramaniam C.A <subramaniam.ca@ti.com>
Fri, 6 May 2011 03:23:41 +0000 (22:23 -0500)
committerSubramaniam C.A <subramaniam.ca@ti.com>
Thu, 10 May 2012 00:36:04 +0000 (19:36 -0500)
commit4b396de0ed8a8d9c4e53a050aae65bcae98d020c
tree8846227defd8e4baa23e312fd1906945346aa523
parent61cd8d6716cf5d8357251a971295e76bf4c11cd3
rpmsg: omx: buffer integration and transmission for ion and sgx

The user buffers passed via the write call can be PVR buffer
or an ion buffer. This patch adds support to inspect the
omx packet, get the phys addr using ion and pvr APIs, replace
the buffer addresses in place, before transmitting them
across to the remote processor.

Depending on the type of buffer we support, upto 3 buffers
could be passed across to the remote processor in a single
omx write call.

This also adds register/unregister functionality for
ion handles with an ion client created during driver open.

The patch is essentially based on work done for ics on kernel 3.0.

Signed-off-by: Subramaniam C.A <subramaniam.ca@ti.com>
Signed-off-by: Aditya Monga <admonga@ti.com>
Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
drivers/rpmsg/rpmsg_omx.c
include/linux/rpmsg_omx.h