Files
linux-nv-oot/drivers/misc/nvscic2c-pcie/stream-extensions.h
dbadgaiyan 4adc5c8fb4 drivers: misc: add nvscic2c-pcie in OOT
nvscic2c enables xfer between two SoC connected over PCIe.
nvscic2c already available with K5.10

Major changes in nvscic2c-pcie for K5.15:
 Integrate with upstream PCIe endpoint function changes.

 Allocate new IOVA domain to be used for
 empty IOVA allocation.
 This IOVA range would be used in iommu_map() to map
 physical backing with IOMMU domain attached in PCIe device.

 Migrate from nvhost to host1x and tegra-drm interfaces.

Bug 3739487
Jira C2C-826
Jira C2C-830

Change-Id: Ic4d8ac680921807fb17247855ca7037623681cb7
Signed-off-by: dbadgaiyan <dbadgaiyan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2810806
Reviewed-by: Nagarjuna Kristam <nkristam@nvidia.com>
Reviewed-by: Arihant Jejani <ajejani@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2022-12-15 20:52:33 -08:00

52 lines
1.4 KiB
C

/* SPDX-License-Identifier: GPL-2.0+ */
/*
* Copyright (c) 2021-2022, NVIDIA CORPORATION. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*/
/*
* Internal to gos-nvscic2c module. This file is not supposed to be included
* by any other external modules.
*/
#ifndef __STREAM_EXTENSIONS_H__
#define __STREAM_EXTENSIONS_H__
#include <linux/types.h>
#include "common.h"
/* forward declaration. */
struct driver_ctx_t;
/* params to instantiate a stream-extension instance.*/
struct stream_ext_params {
struct node_info_t *local_node;
struct node_info_t *peer_node;
u32 ep_id;
char *ep_name;
struct platform_device *host1x_pdev;
enum drv_mode_t drv_mode;
void *pci_client_h;
void *comm_channel_h;
void *vmap_h;
void *edma_h;
};
int
stream_extension_ioctl(void *stream_ext_h, unsigned int cmd, void *arg);
int
stream_extension_init(struct stream_ext_params *params, void **handle);
void
stream_extension_deinit(void **handle);
#endif //__STREAM_EXTENSIONS_H__