nvidia-oot: port tegra ivc-mempool driver

Using this patch we are adding support for
tegra ivc-mempool driver in oot kernel.

JIRA ESLC-6885

Signed-off-by: Manish Bhardwaj <mbhardwaj@nvidia.com>
Change-Id: Iaaae26f581264b2d9b792bd26937da5f852dba8e
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2763833
Reviewed-by: Suresh Venkatachalam <skathirampat@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Manish Bhardwaj
2022-09-30 01:33:18 +05:30
committed by mobile promotions
parent b5bfbf41b4
commit d313ef2285
3 changed files with 414 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
*/
#ifndef __UAPI_NVHVIVC_MEMPOOL_IOCTL_H__
#define __UAPI_NVHVIVC_MEMPOOL_IOCTL_H__
#include <linux/ioctl.h>
/* 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 /* __UAPI_NVHVIVC_MEMPOOL_IOCTL_H__ */