Files
linux-nv-oot/drivers/misc/nvscic2c-pcie/endpoint.h
dbadgaiyan f2088fd15d misc: nvscic2c-pcie: Update nvscic2c-pcie license
Modify nvscic2c-pcie files to use updated licenses
as per nvidia-oot.

Bug 3739487
Jira C2C-826

Change-Id: I819b459fdb0743d37bc08b4c9b92097d87e62884
Signed-off-by: dbadgaiyan <dbadgaiyan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2830686
Reviewed-by: svcacv <svcacv@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-22 20:29:46 -08:00

29 lines
792 B
C

/* SPDX-License-Identifier: GPL-2.0-only */
/* Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved. */
#ifndef __ENDPOINT_H__
#define __ENDPOINT_H__
#include "common.h"
/* forward declaration. */
struct driver_ctx_t;
/*
* Entry point for the endpoint(s) char device sub-module/abstraction.
*
* On successful return (0), devices would have been created and ready to
* accept ioctls from user-space application.
*/
int
endpoints_setup(struct driver_ctx_t *drv_ctx, void **endpoints_h);
/* Exit point for nvscic2c-pcie endpoints: Wait for all endpoints to close.*/
int
endpoints_waitfor_close(void *endpoints_h);
/* exit point for nvscic2c-pcie endpoints char device sub-module/abstraction.*/
int
endpoints_release(void **endpoints_h);
#endif /*__ENDPOINT_H__ */