1 #ifndef _G_MEM_EXPORT_NVOC_H_
2 #define _G_MEM_EXPORT_NVOC_H_
3 #include "nvoc/runtime.h"
4
5 #ifdef __cplusplus
6 extern "C" {
7 #endif
8
9 /*
10 * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
11 * SPDX-License-Identifier: MIT
12 *
13 * Permission is hereby granted, free of charge, to any person obtaining a
14 * copy of this software and associated documentation files (the "Software"),
15 * to deal in the Software without restriction, including without limitation
16 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
17 * and/or sell copies of the Software, and to permit persons to whom the
18 * Software is furnished to do so, subject to the following conditions:
19 *
20 * The above copyright notice and this permission notice shall be included in
21 * all copies or substantial portions of the Software.
22 *
23 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
26 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
28 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
29 * DEALINGS IN THE SOFTWARE.
30 */
31
32 /******************************************************************************
33 *
34 * Description:
35 * This file contains the functions for exporting memory
36 *
37 *****************************************************************************/
38
39 #include "g_mem_export_nvoc.h"
40
41 #ifndef _MEMORYEXPORT_H_
42 #define _MEMORYEXPORT_H_
43
44 #include "core/core.h"
45 #include "rmapi/resource.h"
46
47 #include "class/cl00e0.h"
48 #include "ctrl/ctrl00e0.h"
49
50 // ****************************************************************************
51 // Type Definitions
52 // ****************************************************************************
53
54 typedef struct mem_export_info MEM_EXPORT_INFO;
55
56
57 // Private field names are wrapped in PRIVATE_FIELD, which does nothing for
58 // the matching C source file, but causes diagnostics to be issued if another
59 // source file references the field.
60 #ifdef NVOC_MEM_EXPORT_H_PRIVATE_ACCESS_ALLOWED
61 #define PRIVATE_FIELD(x) x
62 #else
63 #define PRIVATE_FIELD(x) NVOC_PRIVATE_FIELD(x)
64 #endif
65
66 struct MemoryExport {
67 const struct NVOC_RTTI *__nvoc_rtti;
68 struct RmResource __nvoc_base_RmResource;
69 struct Object *__nvoc_pbase_Object;
70 struct RsResource *__nvoc_pbase_RsResource;
71 struct RmResourceCommon *__nvoc_pbase_RmResourceCommon;
72 struct RmResource *__nvoc_pbase_RmResource;
73 struct MemoryExport *__nvoc_pbase_MemoryExport;
74 NvBool (*__memoryexportCanCopy__)(struct MemoryExport *);
75 NV_STATUS (*__memoryexportControl__)(struct MemoryExport *, struct CALL_CONTEXT *, struct RS_RES_CONTROL_PARAMS_INTERNAL *);
76 NV_STATUS (*__memoryexportCtrlExportMem__)(struct MemoryExport *, NV00E0_CTRL_EXPORT_MEM_PARAMS *);
77 NV_STATUS (*__memoryexportCtrlImportMem__)(struct MemoryExport *, NV00E0_CTRL_IMPORT_MEM_PARAMS *);
78 NV_STATUS (*__memoryexportCtrlGetInfo__)(struct MemoryExport *, NV00E0_CTRL_GET_INFO_PARAMS *);
79 NvBool (*__memoryexportShareCallback__)(struct MemoryExport *, struct RsClient *, struct RsResourceRef *, RS_SHARE_POLICY *);
80 NV_STATUS (*__memoryexportCheckMemInterUnmap__)(struct MemoryExport *, NvBool);
81 NV_STATUS (*__memoryexportGetMemInterMapParams__)(struct MemoryExport *, RMRES_MEM_INTER_MAP_PARAMS *);
82 NV_STATUS (*__memoryexportGetMemoryMappingDescriptor__)(struct MemoryExport *, struct MEMORY_DESCRIPTOR **);
83 NvU32 (*__memoryexportGetRefCount__)(struct MemoryExport *);
84 NV_STATUS (*__memoryexportControlFilter__)(struct MemoryExport *, struct CALL_CONTEXT *, struct RS_RES_CONTROL_PARAMS_INTERNAL *);
85 void (*__memoryexportAddAdditionalDependants__)(struct RsClient *, struct MemoryExport *, RsResourceRef *);
86 NV_STATUS (*__memoryexportControlSerialization_Prologue__)(struct MemoryExport *, struct CALL_CONTEXT *, struct RS_RES_CONTROL_PARAMS_INTERNAL *);
87 NV_STATUS (*__memoryexportControl_Prologue__)(struct MemoryExport *, struct CALL_CONTEXT *, struct RS_RES_CONTROL_PARAMS_INTERNAL *);
88 NV_STATUS (*__memoryexportUnmap__)(struct MemoryExport *, struct CALL_CONTEXT *, RsCpuMapping *);
89 NvBool (*__memoryexportIsPartialUnmapSupported__)(struct MemoryExport *);
90 void (*__memoryexportPreDestruct__)(struct MemoryExport *);
91 NV_STATUS (*__memoryexportMapTo__)(struct MemoryExport *, RS_RES_MAP_TO_PARAMS *);
92 NV_STATUS (*__memoryexportIsDuplicate__)(struct MemoryExport *, NvHandle, NvBool *);
93 void (*__memoryexportControlSerialization_Epilogue__)(struct MemoryExport *, struct CALL_CONTEXT *, struct RS_RES_CONTROL_PARAMS_INTERNAL *);
94 void (*__memoryexportControl_Epilogue__)(struct MemoryExport *, struct CALL_CONTEXT *, struct RS_RES_CONTROL_PARAMS_INTERNAL *);
95 NV_STATUS (*__memoryexportUnmapFrom__)(struct MemoryExport *, RS_RES_UNMAP_FROM_PARAMS *);
96 NV_STATUS (*__memoryexportMap__)(struct MemoryExport *, struct CALL_CONTEXT *, RS_CPU_MAP_PARAMS *, RsCpuMapping *);
97 NvBool (*__memoryexportAccessCallback__)(struct MemoryExport *, struct RsClient *, void *, RsAccessRight);
98 MEM_EXPORT_INFO *PRIVATE_FIELD(pExportInfo);
99 };
100
101 #ifndef __NVOC_CLASS_MemoryExport_TYPEDEF__
102 #define __NVOC_CLASS_MemoryExport_TYPEDEF__
103 typedef struct MemoryExport MemoryExport;
104 #endif /* __NVOC_CLASS_MemoryExport_TYPEDEF__ */
105
106 #ifndef __nvoc_class_id_MemoryExport
107 #define __nvoc_class_id_MemoryExport 0xe7ac53
108 #endif /* __nvoc_class_id_MemoryExport */
109
110 extern const struct NVOC_CLASS_DEF __nvoc_class_def_MemoryExport;
111
112 #define __staticCast_MemoryExport(pThis) \
113 ((pThis)->__nvoc_pbase_MemoryExport)
114
115 #ifdef __nvoc_mem_export_h_disabled
116 #define __dynamicCast_MemoryExport(pThis) ((MemoryExport*)NULL)
117 #else //__nvoc_mem_export_h_disabled
118 #define __dynamicCast_MemoryExport(pThis) \
119 ((MemoryExport*)__nvoc_dynamicCast(staticCast((pThis), Dynamic), classInfo(MemoryExport)))
120 #endif //__nvoc_mem_export_h_disabled
121
122
123 NV_STATUS __nvoc_objCreateDynamic_MemoryExport(MemoryExport**, Dynamic*, NvU32, va_list);
124
125 NV_STATUS __nvoc_objCreate_MemoryExport(MemoryExport**, Dynamic*, NvU32, struct CALL_CONTEXT * arg_pCallContext, struct RS_RES_ALLOC_PARAMS_INTERNAL * arg_pParams);
126 #define __objCreate_MemoryExport(ppNewObj, pParent, createFlags, arg_pCallContext, arg_pParams) \
127 __nvoc_objCreate_MemoryExport((ppNewObj), staticCast((pParent), Dynamic), (createFlags), arg_pCallContext, arg_pParams)
128
129 #define memoryexportCanCopy(pMemoryExport) memoryexportCanCopy_DISPATCH(pMemoryExport)
130 #define memoryexportControl(pMemoryExport, pCallContext, pParams) memoryexportControl_DISPATCH(pMemoryExport, pCallContext, pParams)
131 #define memoryexportCtrlExportMem(pMemoryExport, pParams) memoryexportCtrlExportMem_DISPATCH(pMemoryExport, pParams)
132 #define memoryexportCtrlImportMem(pMemoryExport, pParams) memoryexportCtrlImportMem_DISPATCH(pMemoryExport, pParams)
133 #define memoryexportCtrlGetInfo(pMemoryExport, pParams) memoryexportCtrlGetInfo_DISPATCH(pMemoryExport, pParams)
134 #define memoryexportShareCallback(pResource, pInvokingClient, pParentRef, pSharePolicy) memoryexportShareCallback_DISPATCH(pResource, pInvokingClient, pParentRef, pSharePolicy)
135 #define memoryexportCheckMemInterUnmap(pRmResource, bSubdeviceHandleProvided) memoryexportCheckMemInterUnmap_DISPATCH(pRmResource, bSubdeviceHandleProvided)
136 #define memoryexportGetMemInterMapParams(pRmResource, pParams) memoryexportGetMemInterMapParams_DISPATCH(pRmResource, pParams)
137 #define memoryexportGetMemoryMappingDescriptor(pRmResource, ppMemDesc) memoryexportGetMemoryMappingDescriptor_DISPATCH(pRmResource, ppMemDesc)
138 #define memoryexportGetRefCount(pResource) memoryexportGetRefCount_DISPATCH(pResource)
139 #define memoryexportControlFilter(pResource, pCallContext, pParams) memoryexportControlFilter_DISPATCH(pResource, pCallContext, pParams)
140 #define memoryexportAddAdditionalDependants(pClient, pResource, pReference) memoryexportAddAdditionalDependants_DISPATCH(pClient, pResource, pReference)
141 #define memoryexportControlSerialization_Prologue(pResource, pCallContext, pParams) memoryexportControlSerialization_Prologue_DISPATCH(pResource, pCallContext, pParams)
142 #define memoryexportControl_Prologue(pResource, pCallContext, pParams) memoryexportControl_Prologue_DISPATCH(pResource, pCallContext, pParams)
143 #define memoryexportUnmap(pResource, pCallContext, pCpuMapping) memoryexportUnmap_DISPATCH(pResource, pCallContext, pCpuMapping)
144 #define memoryexportIsPartialUnmapSupported(pResource) memoryexportIsPartialUnmapSupported_DISPATCH(pResource)
145 #define memoryexportPreDestruct(pResource) memoryexportPreDestruct_DISPATCH(pResource)
146 #define memoryexportMapTo(pResource, pParams) memoryexportMapTo_DISPATCH(pResource, pParams)
147 #define memoryexportIsDuplicate(pResource, hMemory, pDuplicate) memoryexportIsDuplicate_DISPATCH(pResource, hMemory, pDuplicate)
148 #define memoryexportControlSerialization_Epilogue(pResource, pCallContext, pParams) memoryexportControlSerialization_Epilogue_DISPATCH(pResource, pCallContext, pParams)
149 #define memoryexportControl_Epilogue(pResource, pCallContext, pParams) memoryexportControl_Epilogue_DISPATCH(pResource, pCallContext, pParams)
150 #define memoryexportUnmapFrom(pResource, pParams) memoryexportUnmapFrom_DISPATCH(pResource, pParams)
151 #define memoryexportMap(pResource, pCallContext, pParams, pCpuMapping) memoryexportMap_DISPATCH(pResource, pCallContext, pParams, pCpuMapping)
152 #define memoryexportAccessCallback(pResource, pInvokingClient, pAllocParams, accessRight) memoryexportAccessCallback_DISPATCH(pResource, pInvokingClient, pAllocParams, accessRight)
153 NvBool memoryexportCanCopy_IMPL(struct MemoryExport *pMemoryExport);
154
memoryexportCanCopy_DISPATCH(struct MemoryExport * pMemoryExport)155 static inline NvBool memoryexportCanCopy_DISPATCH(struct MemoryExport *pMemoryExport) {
156 return pMemoryExport->__memoryexportCanCopy__(pMemoryExport);
157 }
158
159 NV_STATUS memoryexportControl_IMPL(struct MemoryExport *pMemoryExport, struct CALL_CONTEXT *pCallContext, struct RS_RES_CONTROL_PARAMS_INTERNAL *pParams);
160
memoryexportControl_DISPATCH(struct MemoryExport * pMemoryExport,struct CALL_CONTEXT * pCallContext,struct RS_RES_CONTROL_PARAMS_INTERNAL * pParams)161 static inline NV_STATUS memoryexportControl_DISPATCH(struct MemoryExport *pMemoryExport, struct CALL_CONTEXT *pCallContext, struct RS_RES_CONTROL_PARAMS_INTERNAL *pParams) {
162 return pMemoryExport->__memoryexportControl__(pMemoryExport, pCallContext, pParams);
163 }
164
165 NV_STATUS memoryexportCtrlExportMem_IMPL(struct MemoryExport *pMemoryExport, NV00E0_CTRL_EXPORT_MEM_PARAMS *pParams);
166
memoryexportCtrlExportMem_DISPATCH(struct MemoryExport * pMemoryExport,NV00E0_CTRL_EXPORT_MEM_PARAMS * pParams)167 static inline NV_STATUS memoryexportCtrlExportMem_DISPATCH(struct MemoryExport *pMemoryExport, NV00E0_CTRL_EXPORT_MEM_PARAMS *pParams) {
168 return pMemoryExport->__memoryexportCtrlExportMem__(pMemoryExport, pParams);
169 }
170
171 NV_STATUS memoryexportCtrlImportMem_IMPL(struct MemoryExport *pMemoryExport, NV00E0_CTRL_IMPORT_MEM_PARAMS *pParams);
172
memoryexportCtrlImportMem_DISPATCH(struct MemoryExport * pMemoryExport,NV00E0_CTRL_IMPORT_MEM_PARAMS * pParams)173 static inline NV_STATUS memoryexportCtrlImportMem_DISPATCH(struct MemoryExport *pMemoryExport, NV00E0_CTRL_IMPORT_MEM_PARAMS *pParams) {
174 return pMemoryExport->__memoryexportCtrlImportMem__(pMemoryExport, pParams);
175 }
176
177 NV_STATUS memoryexportCtrlGetInfo_IMPL(struct MemoryExport *pMemoryExport, NV00E0_CTRL_GET_INFO_PARAMS *pParams);
178
memoryexportCtrlGetInfo_DISPATCH(struct MemoryExport * pMemoryExport,NV00E0_CTRL_GET_INFO_PARAMS * pParams)179 static inline NV_STATUS memoryexportCtrlGetInfo_DISPATCH(struct MemoryExport *pMemoryExport, NV00E0_CTRL_GET_INFO_PARAMS *pParams) {
180 return pMemoryExport->__memoryexportCtrlGetInfo__(pMemoryExport, pParams);
181 }
182
memoryexportShareCallback_DISPATCH(struct MemoryExport * pResource,struct RsClient * pInvokingClient,struct RsResourceRef * pParentRef,RS_SHARE_POLICY * pSharePolicy)183 static inline NvBool memoryexportShareCallback_DISPATCH(struct MemoryExport *pResource, struct RsClient *pInvokingClient, struct RsResourceRef *pParentRef, RS_SHARE_POLICY *pSharePolicy) {
184 return pResource->__memoryexportShareCallback__(pResource, pInvokingClient, pParentRef, pSharePolicy);
185 }
186
memoryexportCheckMemInterUnmap_DISPATCH(struct MemoryExport * pRmResource,NvBool bSubdeviceHandleProvided)187 static inline NV_STATUS memoryexportCheckMemInterUnmap_DISPATCH(struct MemoryExport *pRmResource, NvBool bSubdeviceHandleProvided) {
188 return pRmResource->__memoryexportCheckMemInterUnmap__(pRmResource, bSubdeviceHandleProvided);
189 }
190
memoryexportGetMemInterMapParams_DISPATCH(struct MemoryExport * pRmResource,RMRES_MEM_INTER_MAP_PARAMS * pParams)191 static inline NV_STATUS memoryexportGetMemInterMapParams_DISPATCH(struct MemoryExport *pRmResource, RMRES_MEM_INTER_MAP_PARAMS *pParams) {
192 return pRmResource->__memoryexportGetMemInterMapParams__(pRmResource, pParams);
193 }
194
memoryexportGetMemoryMappingDescriptor_DISPATCH(struct MemoryExport * pRmResource,struct MEMORY_DESCRIPTOR ** ppMemDesc)195 static inline NV_STATUS memoryexportGetMemoryMappingDescriptor_DISPATCH(struct MemoryExport *pRmResource, struct MEMORY_DESCRIPTOR **ppMemDesc) {
196 return pRmResource->__memoryexportGetMemoryMappingDescriptor__(pRmResource, ppMemDesc);
197 }
198
memoryexportGetRefCount_DISPATCH(struct MemoryExport * pResource)199 static inline NvU32 memoryexportGetRefCount_DISPATCH(struct MemoryExport *pResource) {
200 return pResource->__memoryexportGetRefCount__(pResource);
201 }
202
memoryexportControlFilter_DISPATCH(struct MemoryExport * pResource,struct CALL_CONTEXT * pCallContext,struct RS_RES_CONTROL_PARAMS_INTERNAL * pParams)203 static inline NV_STATUS memoryexportControlFilter_DISPATCH(struct MemoryExport *pResource, struct CALL_CONTEXT *pCallContext, struct RS_RES_CONTROL_PARAMS_INTERNAL *pParams) {
204 return pResource->__memoryexportControlFilter__(pResource, pCallContext, pParams);
205 }
206
memoryexportAddAdditionalDependants_DISPATCH(struct RsClient * pClient,struct MemoryExport * pResource,RsResourceRef * pReference)207 static inline void memoryexportAddAdditionalDependants_DISPATCH(struct RsClient *pClient, struct MemoryExport *pResource, RsResourceRef *pReference) {
208 pResource->__memoryexportAddAdditionalDependants__(pClient, pResource, pReference);
209 }
210
memoryexportControlSerialization_Prologue_DISPATCH(struct MemoryExport * pResource,struct CALL_CONTEXT * pCallContext,struct RS_RES_CONTROL_PARAMS_INTERNAL * pParams)211 static inline NV_STATUS memoryexportControlSerialization_Prologue_DISPATCH(struct MemoryExport *pResource, struct CALL_CONTEXT *pCallContext, struct RS_RES_CONTROL_PARAMS_INTERNAL *pParams) {
212 return pResource->__memoryexportControlSerialization_Prologue__(pResource, pCallContext, pParams);
213 }
214
memoryexportControl_Prologue_DISPATCH(struct MemoryExport * pResource,struct CALL_CONTEXT * pCallContext,struct RS_RES_CONTROL_PARAMS_INTERNAL * pParams)215 static inline NV_STATUS memoryexportControl_Prologue_DISPATCH(struct MemoryExport *pResource, struct CALL_CONTEXT *pCallContext, struct RS_RES_CONTROL_PARAMS_INTERNAL *pParams) {
216 return pResource->__memoryexportControl_Prologue__(pResource, pCallContext, pParams);
217 }
218
memoryexportUnmap_DISPATCH(struct MemoryExport * pResource,struct CALL_CONTEXT * pCallContext,RsCpuMapping * pCpuMapping)219 static inline NV_STATUS memoryexportUnmap_DISPATCH(struct MemoryExport *pResource, struct CALL_CONTEXT *pCallContext, RsCpuMapping *pCpuMapping) {
220 return pResource->__memoryexportUnmap__(pResource, pCallContext, pCpuMapping);
221 }
222
memoryexportIsPartialUnmapSupported_DISPATCH(struct MemoryExport * pResource)223 static inline NvBool memoryexportIsPartialUnmapSupported_DISPATCH(struct MemoryExport *pResource) {
224 return pResource->__memoryexportIsPartialUnmapSupported__(pResource);
225 }
226
memoryexportPreDestruct_DISPATCH(struct MemoryExport * pResource)227 static inline void memoryexportPreDestruct_DISPATCH(struct MemoryExport *pResource) {
228 pResource->__memoryexportPreDestruct__(pResource);
229 }
230
memoryexportMapTo_DISPATCH(struct MemoryExport * pResource,RS_RES_MAP_TO_PARAMS * pParams)231 static inline NV_STATUS memoryexportMapTo_DISPATCH(struct MemoryExport *pResource, RS_RES_MAP_TO_PARAMS *pParams) {
232 return pResource->__memoryexportMapTo__(pResource, pParams);
233 }
234
memoryexportIsDuplicate_DISPATCH(struct MemoryExport * pResource,NvHandle hMemory,NvBool * pDuplicate)235 static inline NV_STATUS memoryexportIsDuplicate_DISPATCH(struct MemoryExport *pResource, NvHandle hMemory, NvBool *pDuplicate) {
236 return pResource->__memoryexportIsDuplicate__(pResource, hMemory, pDuplicate);
237 }
238
memoryexportControlSerialization_Epilogue_DISPATCH(struct MemoryExport * pResource,struct CALL_CONTEXT * pCallContext,struct RS_RES_CONTROL_PARAMS_INTERNAL * pParams)239 static inline void memoryexportControlSerialization_Epilogue_DISPATCH(struct MemoryExport *pResource, struct CALL_CONTEXT *pCallContext, struct RS_RES_CONTROL_PARAMS_INTERNAL *pParams) {
240 pResource->__memoryexportControlSerialization_Epilogue__(pResource, pCallContext, pParams);
241 }
242
memoryexportControl_Epilogue_DISPATCH(struct MemoryExport * pResource,struct CALL_CONTEXT * pCallContext,struct RS_RES_CONTROL_PARAMS_INTERNAL * pParams)243 static inline void memoryexportControl_Epilogue_DISPATCH(struct MemoryExport *pResource, struct CALL_CONTEXT *pCallContext, struct RS_RES_CONTROL_PARAMS_INTERNAL *pParams) {
244 pResource->__memoryexportControl_Epilogue__(pResource, pCallContext, pParams);
245 }
246
memoryexportUnmapFrom_DISPATCH(struct MemoryExport * pResource,RS_RES_UNMAP_FROM_PARAMS * pParams)247 static inline NV_STATUS memoryexportUnmapFrom_DISPATCH(struct MemoryExport *pResource, RS_RES_UNMAP_FROM_PARAMS *pParams) {
248 return pResource->__memoryexportUnmapFrom__(pResource, pParams);
249 }
250
memoryexportMap_DISPATCH(struct MemoryExport * pResource,struct CALL_CONTEXT * pCallContext,RS_CPU_MAP_PARAMS * pParams,RsCpuMapping * pCpuMapping)251 static inline NV_STATUS memoryexportMap_DISPATCH(struct MemoryExport *pResource, struct CALL_CONTEXT *pCallContext, RS_CPU_MAP_PARAMS *pParams, RsCpuMapping *pCpuMapping) {
252 return pResource->__memoryexportMap__(pResource, pCallContext, pParams, pCpuMapping);
253 }
254
memoryexportAccessCallback_DISPATCH(struct MemoryExport * pResource,struct RsClient * pInvokingClient,void * pAllocParams,RsAccessRight accessRight)255 static inline NvBool memoryexportAccessCallback_DISPATCH(struct MemoryExport *pResource, struct RsClient *pInvokingClient, void *pAllocParams, RsAccessRight accessRight) {
256 return pResource->__memoryexportAccessCallback__(pResource, pInvokingClient, pAllocParams, accessRight);
257 }
258
259 NV_STATUS memoryexportConstruct_IMPL(struct MemoryExport *arg_pMemoryExport, struct CALL_CONTEXT *arg_pCallContext, struct RS_RES_ALLOC_PARAMS_INTERNAL *arg_pParams);
260
261 #define __nvoc_memoryexportConstruct(arg_pMemoryExport, arg_pCallContext, arg_pParams) memoryexportConstruct_IMPL(arg_pMemoryExport, arg_pCallContext, arg_pParams)
262 void memoryexportDestruct_IMPL(struct MemoryExport *pMemoryExport);
263
264 #define __nvoc_memoryexportDestruct(pMemoryExport) memoryexportDestruct_IMPL(pMemoryExport)
265 #undef PRIVATE_FIELD
266
267
268 void memoryexportClearCache(NvU16 nodeId);
269 NvU16 memoryExportGetNodeId(NV_EXPORT_MEM_PACKET *pExportPacket);
270
271 #endif /* _MEMORYEXPORT_H_ */
272
273 #ifdef __cplusplus
274 } // extern "C"
275 #endif
276
277 #endif // _G_MEM_EXPORT_NVOC_H_
278