From ce80f21af85e733d2c9b4cc57fd64ca7dbf47d29 Mon Sep 17 00:00:00 2001 From: John Moser Date: Thu, 15 Sep 2016 17:40:29 -0700 Subject: tegra: ivc: add ivc mempool kernel driver This check-in adds an ivc mempool companion driver required by the userspace ivc library. The driver implements mempool support services that cannot be implemented inside lower-privileged userspace code, e.g. mapping ivc mempool memory to user-space. Jira VFND-2036 Change-Id: Ic85dbced933095b8de4ac0cb86b09e311e3b2a2e Signed-off-by: John Moser Reviewed-on: http://git-master/r/1221653 Reviewed-on: http://git-master/r/1245385 (cherry picked from commit 774439a50ac9d3c48e832b252b8e3b1f47a9acb1) Reviewed-on: http://git-master/r/1489074 Tested-by: Haley Teng GVS: Gerrit_Virtual_Submit Reviewed-by: Sachin Nikam --- include/linux/nvhvivc_mempool_ioctl.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 include/linux/nvhvivc_mempool_ioctl.h (limited to 'include/linux') diff --git a/include/linux/nvhvivc_mempool_ioctl.h b/include/linux/nvhvivc_mempool_ioctl.h new file mode 100644 index 000000000..4853b8863 --- /dev/null +++ b/include/linux/nvhvivc_mempool_ioctl.h @@ -0,0 +1,30 @@ +/* + * nvhvivc_mempool_ioctl.h + * + * Declarations for Tegra Hypervisor ivc mempool driver ioctls + * + * Copyright (c) 2016 NVIDIA CORPORATION. All rights reserved. + * + * This file is licensed under the terms of the GNU General Public License + * version 2. This program is licensed "as is" without any warranty of any + * kind, whether express or implied. + * + */ +#ifndef __NVHVIVC_MEMPOOL_IOCTL_H__ +#define __NVHVIVC_MEMPOOL_IOCTL_H__ + +#include + +/* ivc mempool IOCTL magic number */ +#define TEGRA_MPLUSERSPACE_IOCTL_MAGIC 0xA6 + + +/* IOCTL definitions */ + +/* query ivc mempool configuration data */ +#define TEGRA_MPLUSERSPACE_IOCTL_GET_INFO \ + _IOR(TEGRA_MPLUSERSPACE_IOCTL_MAGIC, 1, struct ivc_mempool) + +#define TEGRA_MPLUSERSPACE_IOCTL_NUMBER_MAX 1 + +#endif /* __NVHVIVC_MEMPOOL_IOCTL_H__ */ -- cgit v1.2.2