ion: add test device for unit tests to interact with dma_bufs
authorColin Cross <ccross@android.com>
Sat, 9 Nov 2013 00:32:47 +0000 (16:32 -0800)
committerColin Cross <ccross@android.com>
Thu, 12 Dec 2013 23:26:36 +0000 (15:26 -0800)
commit5c31b87cef4e03eea5b417a6e3f7c9b781aacf96
treec92ee8106c236f3200339c697d0a71d86a893457
parente8f7f42cdcbe3ae4c4bf719847369ddac44219a9
ion: add test device for unit tests to interact with dma_bufs

Add a /dev/ion-test device that will be created if CONFIG_ION_TEST
is set.  The device accepts a dma_buf fd and allows reading and
writing to the backing memory using DMA-like apis or kernel mapping
apis.  Can be used to test the dma_buf mapping ops, including
the ion implementations, from userspace.

Change-Id: I30703ba69cd75bdfe7767ac642e5f0cacd8d0478
Signed-off-by: Colin Cross <ccross@android.com>
drivers/staging/android/ion/Kconfig
drivers/staging/android/ion/Makefile
drivers/staging/android/ion/ion_test.c [new file with mode: 0644]
drivers/staging/android/uapi/ion_test.h [new file with mode: 0644]