summaryrefslogtreecommitdiff
path: root/drivers/staging/android/ion/Kconfig
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2013-12-14 02:25:04 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-14 20:57:19 +0400
commitceff95d49cc3e28c06c2352e8d94f56046271aeb (patch)
tree4dff74f65d36cf3ee3d4e3ad89b24290a25b39e7 /drivers/staging/android/ion/Kconfig
parentc13d1df947f1c312143eda77a754149d0043e4d3 (diff)
downloadlinux-ceff95d49cc3e28c06c2352e8d94f56046271aeb.tar.xz
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. Signed-off-by: Colin Cross <ccross@android.com> Signed-off-by: John Stultz <john.stultz@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/android/ion/Kconfig')
-rw-r--r--drivers/staging/android/ion/Kconfig7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/staging/android/ion/Kconfig b/drivers/staging/android/ion/Kconfig
index c62f2cbb9e89..6a5d8cfe7935 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