diff options
author | Colin Cross <ccross@android.com> | 2013-11-08 16:32:47 -0800 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2013-12-12 15:26:36 -0800 |
commit | 5c31b87cef4e03eea5b417a6e3f7c9b781aacf96 (patch) | |
tree | c92ee8106c236f3200339c697d0a71d86a893457 /drivers/staging/android/ion/Kconfig | |
parent | e8f7f42cdcbe3ae4c4bf719847369ddac44219a9 (diff) |
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>
Diffstat (limited to 'drivers/staging/android/ion/Kconfig')
-rw-r--r-- | drivers/staging/android/ion/Kconfig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/staging/android/ion/Kconfig b/drivers/staging/android/ion/Kconfig index c62f2cbb9e8..6a5d8cfe793 100644 --- a/drivers/staging/android/ion/Kconfig +++ b/drivers/staging/android/ion/Kconfig @@ -6,6 +6,13 @@ menuconfig ION help Chose this option to enable the ION Memory Manager. +config ION_TEST + tristate "Ion Test Device" + depends on ION + help + Choose this option to create a device that can be used to test the + kernel and device side ION functions. + config ION_TEGRA tristate "Ion for Tegra" depends on ARCH_TEGRA && ION |