Files
linux-nv-oot/drivers/misc/nvscic2c-pcie/stream-extensions.h
Janardhan Reddy cfaad9cd6d nvscic2c-pcie: Add Buffer limts per endpoint
Address security ARR: DOS60-REQ-7169 in streaming mode.
Add per endpoint streaming mode buffer limits.

Bug 4883175
JIRA NVIPC-2453

Change-Id: I31edb2bacf4a8af560e7e6da7d378da874d105bd
Signed-off-by: Janardhan Reddy <jreddya@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3196300
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2025-07-24 10:19:07 +00:00

46 lines
1.1 KiB
C

/* SPDX-License-Identifier: GPL-2.0-only */
/*
* SPDX-FileCopyrightText: Copyright (c) 2022-2024, NVIDIA CORPORATION & AFFILIATES.
* All rights reserved.
*/
/*
* 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;
/* Streaming mode per endpoint PCIe aperture mapping limit */
uint64_t aperture_limit;
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__