diff options
| author | John Moser <jmoser@nvidia.com> | 2016-09-15 20:40:29 -0400 |
|---|---|---|
| committer | Enrico Cadorin <ecadorin@nvidia.com> | 2018-08-27 19:55:04 -0400 |
| commit | ce80f21af85e733d2c9b4cc57fd64ca7dbf47d29 (patch) | |
| tree | fc8b433933ccf585e6b25bbe6f0d6bba09d78c3e /include/linux | |
| parent | 9f8d12e246c78c87c8a00be5004fbc27690779a5 (diff) | |
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 <jmoser@nvidia.com>
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 <hteng@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/nvhvivc_mempool_ioctl.h | 30 |
1 files changed, 30 insertions, 0 deletions
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 @@ | |||
| 1 | /* | ||
| 2 | * nvhvivc_mempool_ioctl.h | ||
| 3 | * | ||
| 4 | * Declarations for Tegra Hypervisor ivc mempool driver ioctls | ||
| 5 | * | ||
| 6 | * Copyright (c) 2016 NVIDIA CORPORATION. All rights reserved. | ||
| 7 | * | ||
| 8 | * This file is licensed under the terms of the GNU General Public License | ||
| 9 | * version 2. This program is licensed "as is" without any warranty of any | ||
| 10 | * kind, whether express or implied. | ||
| 11 | * | ||
| 12 | */ | ||
| 13 | #ifndef __NVHVIVC_MEMPOOL_IOCTL_H__ | ||
| 14 | #define __NVHVIVC_MEMPOOL_IOCTL_H__ | ||
| 15 | |||
| 16 | #include <linux/ioctl.h> | ||
| 17 | |||
| 18 | /* ivc mempool IOCTL magic number */ | ||
| 19 | #define TEGRA_MPLUSERSPACE_IOCTL_MAGIC 0xA6 | ||
| 20 | |||
| 21 | |||
| 22 | /* IOCTL definitions */ | ||
| 23 | |||
| 24 | /* query ivc mempool configuration data */ | ||
| 25 | #define TEGRA_MPLUSERSPACE_IOCTL_GET_INFO \ | ||
| 26 | _IOR(TEGRA_MPLUSERSPACE_IOCTL_MAGIC, 1, struct ivc_mempool) | ||
| 27 | |||
| 28 | #define TEGRA_MPLUSERSPACE_IOCTL_NUMBER_MAX 1 | ||
| 29 | |||
| 30 | #endif /* __NVHVIVC_MEMPOOL_IOCTL_H__ */ | ||
