IPC: Extend VirtQueue slave API
authorSuman Anna <s-anna@ti.com>
Thu, 3 May 2012 22:58:14 +0000 (17:58 -0500)
committerSuman Anna <s-anna@ti.com>
Wed, 23 May 2012 05:22:53 +0000 (00:22 -0500)
commit2a18339bd4662731346c3e3acbbd1d55e12f5ecf
tree2977aa26334313b81f8b81be68ea946babed012b
parentf5ad67e3d2308f26cdf70fc0e417a0ad6d65b50f
IPC: Extend VirtQueue slave API

The following changes have been made to the VirtQueue API used by
the slave:
  1. Add a vqId parameter to VirtQueue_create to make the index of
     the vq explicit and not depending on the invocation order.
  2. Add a len param to VirtQueue_addUsedBuf so users can control it.
  3. Add a *len param to VirtQueue_getAvailBuf so users are notified
     with the amount of received data

The MessageQCopy module which currently uses the VirtQueue API has
also been modified to adapt the new API

Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Signed-off-by: Juan Gutierrez <jgutierrez@ti.com>
Signed-off-by: Suman Anna <s-anna@ti.com>
src/ti/ipc/rpmsg/MessageQCopy.c
src/ti/ipc/rpmsg/VirtQueue.c
src/ti/ipc/rpmsg/VirtQueue.h
src/ti/ipc/rpmsg/VirtQueue_norouting.c