mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-23 01:31:30 +03:00
- add support to unmap the previously mapped memory - updated the data structure to store the dma pointer in user space - taking dma buf pointer from user space while unmapping JIRA SS-4006 JIRA SS-4628 Bug 3855033 Change-Id: I8ca71d11076b64af33c32e6e30c7c056828fbf75 Signed-off-by: Rahul Bedarkar <rabedarkar@nvidia.com> Signed-off-by: Prashant Kumar Shaw <pshaw@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2819744 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
39 lines
924 B
C
39 lines
924 B
C
/* SPDX-License-Identifier: (GPL-2.0 WITH Linux-syscall-note)
|
|
*
|
|
* Copyright (c) 2021-2022, NVIDIA CORPORATION, All rights reserved.
|
|
*/
|
|
|
|
#ifndef _UAPI_TEGRA_FSICOM_H_
|
|
#define _UAPI_TEGRA_FSICOM_H_
|
|
|
|
#include <linux/ioctl.h>
|
|
|
|
struct rw_data {
|
|
uint32_t handle;
|
|
uint64_t pa;
|
|
uint64_t iova;
|
|
uint64_t dmabuf;
|
|
uint64_t attach;
|
|
uint64_t sgt;
|
|
};
|
|
|
|
/*Data type for sending the offset,IOVA and channel Id details to FSI */
|
|
struct iova_data {
|
|
uint32_t offset;
|
|
uint32_t iova;
|
|
uint32_t chid;
|
|
};
|
|
|
|
/* signal value */
|
|
#define SIG_DRIVER_RESUME 43
|
|
#define SIG_FSI_WRITE_EVENT 44
|
|
|
|
/* ioctl call macros */
|
|
#define NVMAP_SMMU_MAP _IOWR('q', 1, struct rw_data *)
|
|
#define NVMAP_SMMU_UNMAP _IOWR('q', 2, struct rw_data *)
|
|
#define TEGRA_HSP_WRITE _IOWR('q', 3, struct rw_data *)
|
|
#define TEGRA_SIGNAL_REG _IOWR('q', 4, struct rw_data *)
|
|
#define TEGRA_IOVA_DATA _IOWR('q', 5, struct iova_data *)
|
|
|
|
#endif /* _UAPI_TEGRA_FSICOM_H_ */
|