mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
nvidia-oot: port tegra ivc-cdev driver
Using this patch we are adding support for tegra ivc-cdev driver in oot kernel. JIRA ESLC-6885 Signed-off-by: Manish Bhardwaj <mbhardwaj@nvidia.com> Change-Id: I7b9d7b46e7ee3ba221aa25f25f1eec72a314fb79 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2763832 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:
committed by
mobile promotions
parent
b791c2e35c
commit
b5bfbf41b4
41
include/uapi/linux/tegra-ivc-dev.h
Normal file
41
include/uapi/linux/tegra-ivc-dev.h
Normal file
@@ -0,0 +1,41 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef __UAPI_TEGRA_IVC_DEV_H
|
||||
#define __UAPI_TEGRA_IVC_DEV_H
|
||||
|
||||
#include <linux/ioctl.h>
|
||||
|
||||
struct nvipc_ivc_info {
|
||||
uint32_t nframes;
|
||||
uint32_t frame_size;
|
||||
uint32_t queue_offset;
|
||||
uint32_t queue_size;
|
||||
uint32_t area_size;
|
||||
bool rx_first;
|
||||
uint64_t noti_ipa;
|
||||
uint16_t noti_irq;
|
||||
};
|
||||
|
||||
/* IOCTL magic number */
|
||||
#define NVIPC_IVC_IOCTL_MAGIC 0xAA
|
||||
|
||||
/* query ivc info */
|
||||
#define NVIPC_IVC_IOCTL_GET_INFO \
|
||||
_IOWR(NVIPC_IVC_IOCTL_MAGIC, 1, struct nvipc_ivc_info)
|
||||
|
||||
/* notify remote */
|
||||
#define NVIPC_IVC_IOCTL_NOTIFY_REMOTE \
|
||||
_IO(NVIPC_IVC_IOCTL_MAGIC, 2)
|
||||
|
||||
/* query vmid */
|
||||
#define NVIPC_IVC_IOCTL_GET_VMID \
|
||||
_IOR(NVIPC_IVC_IOCTL_MAGIC, 3, uint32_t)
|
||||
|
||||
#define NVIPC_IVC_IOCTL_NUMBER_MAX 3
|
||||
|
||||
int ivc_cdev_get_peer_vmid(uint32_t qid, uint32_t *peer_vmid);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user