Files
Joshua Cha bb01f4bcf7 nvsciipc: removed unused CMDs and structure
removed NVIPC_IVC_IOCTL_NOTIFY_REMOTE and NVIPC_IVC_IOCTL_GET_VMID.
removed nvsciipc_get_db_by_id structure because they're not
used by stakeholders any more.
They're dead code.

JIRA NVIPC-3488

Change-Id: I4fae43456cf96d37e4502042aef9c67aa167db9d
Signed-off-by: Joshua Cha <joshuac@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3322035
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
2025-07-24 10:19:17 +00:00

38 lines
907 B
C

// SPDX-License-Identifier: GPL-2.0-only
// SPDX-FileCopyrightText: Copyright (c) 2022-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#ifndef __UAPI_TEGRA_IVC_DEV_H
#define __UAPI_TEGRA_IVC_DEV_H
#include <linux/ioctl.h>
#define IVC_INVALID_IPA 0U
#define IVC_TRAP_IPA 1U
#define IVC_MSI_IPA 2U
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;
uint16_t noti_type; /* IVC_TRAP_IPA, IVC_MSI_IPA */
};
/* 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)
#define NVIPC_IVC_IOCTL_NUMBER_MAX 1
int ivc_cdev_get_peer_vmid(uint32_t qid, uint32_t *peer_vmid);
int ivc_cdev_get_noti_type(uint32_t qid, uint32_t *noti_type);
#endif