1 #ifndef _G_SW_TEST_NVOC_H_
2 #define _G_SW_TEST_NVOC_H_
3 #include "nvoc/runtime.h"
4
5 #ifdef __cplusplus
6 extern "C" {
7 #endif
8
9 /*
10 * SPDX-FileCopyrightText: Copyright (c) 2016-2022 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 #include "g_sw_test_nvoc.h"
33
34 #ifndef _SW_TEST_H_
35 #define _SW_TEST_H_
36
37 #include "core/core.h"
38 #include "kernel/gpu/fifo/channel_descendant.h"
39
40 /*!
41 * RM internal class representing NV04_SOFTWARE_TEST
42 */
43
44 // Private field names are wrapped in PRIVATE_FIELD, which does nothing for
45 // the matching C source file, but causes diagnostics to be issued if another
46 // source file references the field.
47 #ifdef NVOC_SW_TEST_H_PRIVATE_ACCESS_ALLOWED
48 #define PRIVATE_FIELD(x) x
49 #else
50 #define PRIVATE_FIELD(x) NVOC_PRIVATE_FIELD(x)
51 #endif
52
53 struct SoftwareMethodTest {
54 const struct NVOC_RTTI *__nvoc_rtti;
55 struct ChannelDescendant __nvoc_base_ChannelDescendant;
56 struct Object *__nvoc_pbase_Object;
57 struct RsResource *__nvoc_pbase_RsResource;
58 struct RmResourceCommon *__nvoc_pbase_RmResourceCommon;
59 struct RmResource *__nvoc_pbase_RmResource;
60 struct GpuResource *__nvoc_pbase_GpuResource;
61 struct INotifier *__nvoc_pbase_INotifier;
62 struct Notifier *__nvoc_pbase_Notifier;
63 struct ChannelDescendant *__nvoc_pbase_ChannelDescendant;
64 struct SoftwareMethodTest *__nvoc_pbase_SoftwareMethodTest;
65 NV_STATUS (*__swtestGetSwMethods__)(struct SoftwareMethodTest *, const METHOD **, NvU32 *);
66 NV_STATUS (*__swtestCheckMemInterUnmap__)(struct SoftwareMethodTest *, NvBool);
67 NvBool (*__swtestShareCallback__)(struct SoftwareMethodTest *, struct RsClient *, struct RsResourceRef *, RS_SHARE_POLICY *);
68 NvBool (*__swtestAccessCallback__)(struct SoftwareMethodTest *, struct RsClient *, void *, RsAccessRight);
69 NV_STATUS (*__swtestMapTo__)(struct SoftwareMethodTest *, RS_RES_MAP_TO_PARAMS *);
70 NV_STATUS (*__swtestGetMapAddrSpace__)(struct SoftwareMethodTest *, struct CALL_CONTEXT *, NvU32, NV_ADDRESS_SPACE *);
71 void (*__swtestSetNotificationShare__)(struct SoftwareMethodTest *, struct NotifShare *);
72 NvU32 (*__swtestGetRefCount__)(struct SoftwareMethodTest *);
73 void (*__swtestAddAdditionalDependants__)(struct RsClient *, struct SoftwareMethodTest *, RsResourceRef *);
74 NV_STATUS (*__swtestControl_Prologue__)(struct SoftwareMethodTest *, struct CALL_CONTEXT *, struct RS_RES_CONTROL_PARAMS_INTERNAL *);
75 NV_STATUS (*__swtestGetRegBaseOffsetAndSize__)(struct SoftwareMethodTest *, struct OBJGPU *, NvU32 *, NvU32 *);
76 NV_STATUS (*__swtestInternalControlForward__)(struct SoftwareMethodTest *, NvU32, void *, NvU32);
77 NV_STATUS (*__swtestUnmapFrom__)(struct SoftwareMethodTest *, RS_RES_UNMAP_FROM_PARAMS *);
78 void (*__swtestControl_Epilogue__)(struct SoftwareMethodTest *, struct CALL_CONTEXT *, struct RS_RES_CONTROL_PARAMS_INTERNAL *);
79 NvHandle (*__swtestGetInternalObjectHandle__)(struct SoftwareMethodTest *);
80 NV_STATUS (*__swtestControl__)(struct SoftwareMethodTest *, struct CALL_CONTEXT *, struct RS_RES_CONTROL_PARAMS_INTERNAL *);
81 NV_STATUS (*__swtestUnmap__)(struct SoftwareMethodTest *, struct CALL_CONTEXT *, struct RsCpuMapping *);
82 NV_STATUS (*__swtestGetMemInterMapParams__)(struct SoftwareMethodTest *, RMRES_MEM_INTER_MAP_PARAMS *);
83 NV_STATUS (*__swtestGetMemoryMappingDescriptor__)(struct SoftwareMethodTest *, struct MEMORY_DESCRIPTOR **);
84 NvBool (*__swtestIsSwMethodStalling__)(struct SoftwareMethodTest *, NvU32);
85 NV_STATUS (*__swtestControlFilter__)(struct SoftwareMethodTest *, struct CALL_CONTEXT *, struct RS_RES_CONTROL_PARAMS_INTERNAL *);
86 NV_STATUS (*__swtestUnregisterEvent__)(struct SoftwareMethodTest *, NvHandle, NvHandle, NvHandle, NvHandle);
87 NV_STATUS (*__swtestControlSerialization_Prologue__)(struct SoftwareMethodTest *, struct CALL_CONTEXT *, struct RS_RES_CONTROL_PARAMS_INTERNAL *);
88 NvBool (*__swtestCanCopy__)(struct SoftwareMethodTest *);
89 NvBool (*__swtestIsPartialUnmapSupported__)(struct SoftwareMethodTest *);
90 void (*__swtestPreDestruct__)(struct SoftwareMethodTest *);
91 NV_STATUS (*__swtestIsDuplicate__)(struct SoftwareMethodTest *, NvHandle, NvBool *);
92 void (*__swtestControlSerialization_Epilogue__)(struct SoftwareMethodTest *, struct CALL_CONTEXT *, struct RS_RES_CONTROL_PARAMS_INTERNAL *);
93 PEVENTNOTIFICATION *(*__swtestGetNotificationListPtr__)(struct SoftwareMethodTest *);
94 struct NotifShare *(*__swtestGetNotificationShare__)(struct SoftwareMethodTest *);
95 NV_STATUS (*__swtestMap__)(struct SoftwareMethodTest *, struct CALL_CONTEXT *, struct RS_CPU_MAP_PARAMS *, struct RsCpuMapping *);
96 NV_STATUS (*__swtestGetOrAllocNotifShare__)(struct SoftwareMethodTest *, NvHandle, NvHandle, struct NotifShare **);
97 };
98
99 #ifndef __NVOC_CLASS_SoftwareMethodTest_TYPEDEF__
100 #define __NVOC_CLASS_SoftwareMethodTest_TYPEDEF__
101 typedef struct SoftwareMethodTest SoftwareMethodTest;
102 #endif /* __NVOC_CLASS_SoftwareMethodTest_TYPEDEF__ */
103
104 #ifndef __nvoc_class_id_SoftwareMethodTest
105 #define __nvoc_class_id_SoftwareMethodTest 0xdea092
106 #endif /* __nvoc_class_id_SoftwareMethodTest */
107
108 extern const struct NVOC_CLASS_DEF __nvoc_class_def_SoftwareMethodTest;
109
110 #define __staticCast_SoftwareMethodTest(pThis) \
111 ((pThis)->__nvoc_pbase_SoftwareMethodTest)
112
113 #ifdef __nvoc_sw_test_h_disabled
114 #define __dynamicCast_SoftwareMethodTest(pThis) ((SoftwareMethodTest*)NULL)
115 #else //__nvoc_sw_test_h_disabled
116 #define __dynamicCast_SoftwareMethodTest(pThis) \
117 ((SoftwareMethodTest*)__nvoc_dynamicCast(staticCast((pThis), Dynamic), classInfo(SoftwareMethodTest)))
118 #endif //__nvoc_sw_test_h_disabled
119
120
121 NV_STATUS __nvoc_objCreateDynamic_SoftwareMethodTest(SoftwareMethodTest**, Dynamic*, NvU32, va_list);
122
123 NV_STATUS __nvoc_objCreate_SoftwareMethodTest(SoftwareMethodTest**, Dynamic*, NvU32, struct CALL_CONTEXT * arg_pCallContext, struct RS_RES_ALLOC_PARAMS_INTERNAL * arg_pParams);
124 #define __objCreate_SoftwareMethodTest(ppNewObj, pParent, createFlags, arg_pCallContext, arg_pParams) \
125 __nvoc_objCreate_SoftwareMethodTest((ppNewObj), staticCast((pParent), Dynamic), (createFlags), arg_pCallContext, arg_pParams)
126
127 #define swtestGetSwMethods(pSwTest, ppMethods, pNumMethods) swtestGetSwMethods_DISPATCH(pSwTest, ppMethods, pNumMethods)
128 #define swtestCheckMemInterUnmap(pChannelDescendant, bSubdeviceHandleProvided) swtestCheckMemInterUnmap_DISPATCH(pChannelDescendant, bSubdeviceHandleProvided)
129 #define swtestShareCallback(pGpuResource, pInvokingClient, pParentRef, pSharePolicy) swtestShareCallback_DISPATCH(pGpuResource, pInvokingClient, pParentRef, pSharePolicy)
130 #define swtestAccessCallback(pResource, pInvokingClient, pAllocParams, accessRight) swtestAccessCallback_DISPATCH(pResource, pInvokingClient, pAllocParams, accessRight)
131 #define swtestMapTo(pResource, pParams) swtestMapTo_DISPATCH(pResource, pParams)
132 #define swtestGetMapAddrSpace(pGpuResource, pCallContext, mapFlags, pAddrSpace) swtestGetMapAddrSpace_DISPATCH(pGpuResource, pCallContext, mapFlags, pAddrSpace)
133 #define swtestSetNotificationShare(pNotifier, pNotifShare) swtestSetNotificationShare_DISPATCH(pNotifier, pNotifShare)
134 #define swtestGetRefCount(pResource) swtestGetRefCount_DISPATCH(pResource)
135 #define swtestAddAdditionalDependants(pClient, pResource, pReference) swtestAddAdditionalDependants_DISPATCH(pClient, pResource, pReference)
136 #define swtestControl_Prologue(pResource, pCallContext, pParams) swtestControl_Prologue_DISPATCH(pResource, pCallContext, pParams)
137 #define swtestGetRegBaseOffsetAndSize(pGpuResource, pGpu, pOffset, pSize) swtestGetRegBaseOffsetAndSize_DISPATCH(pGpuResource, pGpu, pOffset, pSize)
138 #define swtestInternalControlForward(pGpuResource, command, pParams, size) swtestInternalControlForward_DISPATCH(pGpuResource, command, pParams, size)
139 #define swtestUnmapFrom(pResource, pParams) swtestUnmapFrom_DISPATCH(pResource, pParams)
140 #define swtestControl_Epilogue(pResource, pCallContext, pParams) swtestControl_Epilogue_DISPATCH(pResource, pCallContext, pParams)
141 #define swtestGetInternalObjectHandle(pGpuResource) swtestGetInternalObjectHandle_DISPATCH(pGpuResource)
142 #define swtestControl(pGpuResource, pCallContext, pParams) swtestControl_DISPATCH(pGpuResource, pCallContext, pParams)
143 #define swtestUnmap(pGpuResource, pCallContext, pCpuMapping) swtestUnmap_DISPATCH(pGpuResource, pCallContext, pCpuMapping)
144 #define swtestGetMemInterMapParams(pRmResource, pParams) swtestGetMemInterMapParams_DISPATCH(pRmResource, pParams)
145 #define swtestGetMemoryMappingDescriptor(pRmResource, ppMemDesc) swtestGetMemoryMappingDescriptor_DISPATCH(pRmResource, ppMemDesc)
146 #define swtestIsSwMethodStalling(pChannelDescendant, hHandle) swtestIsSwMethodStalling_DISPATCH(pChannelDescendant, hHandle)
147 #define swtestControlFilter(pResource, pCallContext, pParams) swtestControlFilter_DISPATCH(pResource, pCallContext, pParams)
148 #define swtestUnregisterEvent(pNotifier, hNotifierClient, hNotifierResource, hEventClient, hEvent) swtestUnregisterEvent_DISPATCH(pNotifier, hNotifierClient, hNotifierResource, hEventClient, hEvent)
149 #define swtestControlSerialization_Prologue(pResource, pCallContext, pParams) swtestControlSerialization_Prologue_DISPATCH(pResource, pCallContext, pParams)
150 #define swtestCanCopy(pResource) swtestCanCopy_DISPATCH(pResource)
151 #define swtestIsPartialUnmapSupported(pResource) swtestIsPartialUnmapSupported_DISPATCH(pResource)
152 #define swtestPreDestruct(pResource) swtestPreDestruct_DISPATCH(pResource)
153 #define swtestIsDuplicate(pResource, hMemory, pDuplicate) swtestIsDuplicate_DISPATCH(pResource, hMemory, pDuplicate)
154 #define swtestControlSerialization_Epilogue(pResource, pCallContext, pParams) swtestControlSerialization_Epilogue_DISPATCH(pResource, pCallContext, pParams)
155 #define swtestGetNotificationListPtr(pNotifier) swtestGetNotificationListPtr_DISPATCH(pNotifier)
156 #define swtestGetNotificationShare(pNotifier) swtestGetNotificationShare_DISPATCH(pNotifier)
157 #define swtestMap(pGpuResource, pCallContext, pParams, pCpuMapping) swtestMap_DISPATCH(pGpuResource, pCallContext, pParams, pCpuMapping)
158 #define swtestGetOrAllocNotifShare(pNotifier, hNotifierClient, hNotifierResource, ppNotifShare) swtestGetOrAllocNotifShare_DISPATCH(pNotifier, hNotifierClient, hNotifierResource, ppNotifShare)
159 NV_STATUS swtestGetSwMethods_IMPL(struct SoftwareMethodTest *pSwTest, const METHOD **ppMethods, NvU32 *pNumMethods);
160
swtestGetSwMethods_DISPATCH(struct SoftwareMethodTest * pSwTest,const METHOD ** ppMethods,NvU32 * pNumMethods)161 static inline NV_STATUS swtestGetSwMethods_DISPATCH(struct SoftwareMethodTest *pSwTest, const METHOD **ppMethods, NvU32 *pNumMethods) {
162 return pSwTest->__swtestGetSwMethods__(pSwTest, ppMethods, pNumMethods);
163 }
164
swtestCheckMemInterUnmap_DISPATCH(struct SoftwareMethodTest * pChannelDescendant,NvBool bSubdeviceHandleProvided)165 static inline NV_STATUS swtestCheckMemInterUnmap_DISPATCH(struct SoftwareMethodTest *pChannelDescendant, NvBool bSubdeviceHandleProvided) {
166 return pChannelDescendant->__swtestCheckMemInterUnmap__(pChannelDescendant, bSubdeviceHandleProvided);
167 }
168
swtestShareCallback_DISPATCH(struct SoftwareMethodTest * pGpuResource,struct RsClient * pInvokingClient,struct RsResourceRef * pParentRef,RS_SHARE_POLICY * pSharePolicy)169 static inline NvBool swtestShareCallback_DISPATCH(struct SoftwareMethodTest *pGpuResource, struct RsClient *pInvokingClient, struct RsResourceRef *pParentRef, RS_SHARE_POLICY *pSharePolicy) {
170 return pGpuResource->__swtestShareCallback__(pGpuResource, pInvokingClient, pParentRef, pSharePolicy);
171 }
172
swtestAccessCallback_DISPATCH(struct SoftwareMethodTest * pResource,struct RsClient * pInvokingClient,void * pAllocParams,RsAccessRight accessRight)173 static inline NvBool swtestAccessCallback_DISPATCH(struct SoftwareMethodTest *pResource, struct RsClient *pInvokingClient, void *pAllocParams, RsAccessRight accessRight) {
174 return pResource->__swtestAccessCallback__(pResource, pInvokingClient, pAllocParams, accessRight);
175 }
176
swtestMapTo_DISPATCH(struct SoftwareMethodTest * pResource,RS_RES_MAP_TO_PARAMS * pParams)177 static inline NV_STATUS swtestMapTo_DISPATCH(struct SoftwareMethodTest *pResource, RS_RES_MAP_TO_PARAMS *pParams) {
178 return pResource->__swtestMapTo__(pResource, pParams);
179 }
180
swtestGetMapAddrSpace_DISPATCH(struct SoftwareMethodTest * pGpuResource,struct CALL_CONTEXT * pCallContext,NvU32 mapFlags,NV_ADDRESS_SPACE * pAddrSpace)181 static inline NV_STATUS swtestGetMapAddrSpace_DISPATCH(struct SoftwareMethodTest *pGpuResource, struct CALL_CONTEXT *pCallContext, NvU32 mapFlags, NV_ADDRESS_SPACE *pAddrSpace) {
182 return pGpuResource->__swtestGetMapAddrSpace__(pGpuResource, pCallContext, mapFlags, pAddrSpace);
183 }
184
swtestSetNotificationShare_DISPATCH(struct SoftwareMethodTest * pNotifier,struct NotifShare * pNotifShare)185 static inline void swtestSetNotificationShare_DISPATCH(struct SoftwareMethodTest *pNotifier, struct NotifShare *pNotifShare) {
186 pNotifier->__swtestSetNotificationShare__(pNotifier, pNotifShare);
187 }
188
swtestGetRefCount_DISPATCH(struct SoftwareMethodTest * pResource)189 static inline NvU32 swtestGetRefCount_DISPATCH(struct SoftwareMethodTest *pResource) {
190 return pResource->__swtestGetRefCount__(pResource);
191 }
192
swtestAddAdditionalDependants_DISPATCH(struct RsClient * pClient,struct SoftwareMethodTest * pResource,RsResourceRef * pReference)193 static inline void swtestAddAdditionalDependants_DISPATCH(struct RsClient *pClient, struct SoftwareMethodTest *pResource, RsResourceRef *pReference) {
194 pResource->__swtestAddAdditionalDependants__(pClient, pResource, pReference);
195 }
196
swtestControl_Prologue_DISPATCH(struct SoftwareMethodTest * pResource,struct CALL_CONTEXT * pCallContext,struct RS_RES_CONTROL_PARAMS_INTERNAL * pParams)197 static inline NV_STATUS swtestControl_Prologue_DISPATCH(struct SoftwareMethodTest *pResource, struct CALL_CONTEXT *pCallContext, struct RS_RES_CONTROL_PARAMS_INTERNAL *pParams) {
198 return pResource->__swtestControl_Prologue__(pResource, pCallContext, pParams);
199 }
200
swtestGetRegBaseOffsetAndSize_DISPATCH(struct SoftwareMethodTest * pGpuResource,struct OBJGPU * pGpu,NvU32 * pOffset,NvU32 * pSize)201 static inline NV_STATUS swtestGetRegBaseOffsetAndSize_DISPATCH(struct SoftwareMethodTest *pGpuResource, struct OBJGPU *pGpu, NvU32 *pOffset, NvU32 *pSize) {
202 return pGpuResource->__swtestGetRegBaseOffsetAndSize__(pGpuResource, pGpu, pOffset, pSize);
203 }
204
swtestInternalControlForward_DISPATCH(struct SoftwareMethodTest * pGpuResource,NvU32 command,void * pParams,NvU32 size)205 static inline NV_STATUS swtestInternalControlForward_DISPATCH(struct SoftwareMethodTest *pGpuResource, NvU32 command, void *pParams, NvU32 size) {
206 return pGpuResource->__swtestInternalControlForward__(pGpuResource, command, pParams, size);
207 }
208
swtestUnmapFrom_DISPATCH(struct SoftwareMethodTest * pResource,RS_RES_UNMAP_FROM_PARAMS * pParams)209 static inline NV_STATUS swtestUnmapFrom_DISPATCH(struct SoftwareMethodTest *pResource, RS_RES_UNMAP_FROM_PARAMS *pParams) {
210 return pResource->__swtestUnmapFrom__(pResource, pParams);
211 }
212
swtestControl_Epilogue_DISPATCH(struct SoftwareMethodTest * pResource,struct CALL_CONTEXT * pCallContext,struct RS_RES_CONTROL_PARAMS_INTERNAL * pParams)213 static inline void swtestControl_Epilogue_DISPATCH(struct SoftwareMethodTest *pResource, struct CALL_CONTEXT *pCallContext, struct RS_RES_CONTROL_PARAMS_INTERNAL *pParams) {
214 pResource->__swtestControl_Epilogue__(pResource, pCallContext, pParams);
215 }
216
swtestGetInternalObjectHandle_DISPATCH(struct SoftwareMethodTest * pGpuResource)217 static inline NvHandle swtestGetInternalObjectHandle_DISPATCH(struct SoftwareMethodTest *pGpuResource) {
218 return pGpuResource->__swtestGetInternalObjectHandle__(pGpuResource);
219 }
220
swtestControl_DISPATCH(struct SoftwareMethodTest * pGpuResource,struct CALL_CONTEXT * pCallContext,struct RS_RES_CONTROL_PARAMS_INTERNAL * pParams)221 static inline NV_STATUS swtestControl_DISPATCH(struct SoftwareMethodTest *pGpuResource, struct CALL_CONTEXT *pCallContext, struct RS_RES_CONTROL_PARAMS_INTERNAL *pParams) {
222 return pGpuResource->__swtestControl__(pGpuResource, pCallContext, pParams);
223 }
224
swtestUnmap_DISPATCH(struct SoftwareMethodTest * pGpuResource,struct CALL_CONTEXT * pCallContext,struct RsCpuMapping * pCpuMapping)225 static inline NV_STATUS swtestUnmap_DISPATCH(struct SoftwareMethodTest *pGpuResource, struct CALL_CONTEXT *pCallContext, struct RsCpuMapping *pCpuMapping) {
226 return pGpuResource->__swtestUnmap__(pGpuResource, pCallContext, pCpuMapping);
227 }
228
swtestGetMemInterMapParams_DISPATCH(struct SoftwareMethodTest * pRmResource,RMRES_MEM_INTER_MAP_PARAMS * pParams)229 static inline NV_STATUS swtestGetMemInterMapParams_DISPATCH(struct SoftwareMethodTest *pRmResource, RMRES_MEM_INTER_MAP_PARAMS *pParams) {
230 return pRmResource->__swtestGetMemInterMapParams__(pRmResource, pParams);
231 }
232
swtestGetMemoryMappingDescriptor_DISPATCH(struct SoftwareMethodTest * pRmResource,struct MEMORY_DESCRIPTOR ** ppMemDesc)233 static inline NV_STATUS swtestGetMemoryMappingDescriptor_DISPATCH(struct SoftwareMethodTest *pRmResource, struct MEMORY_DESCRIPTOR **ppMemDesc) {
234 return pRmResource->__swtestGetMemoryMappingDescriptor__(pRmResource, ppMemDesc);
235 }
236
swtestIsSwMethodStalling_DISPATCH(struct SoftwareMethodTest * pChannelDescendant,NvU32 hHandle)237 static inline NvBool swtestIsSwMethodStalling_DISPATCH(struct SoftwareMethodTest *pChannelDescendant, NvU32 hHandle) {
238 return pChannelDescendant->__swtestIsSwMethodStalling__(pChannelDescendant, hHandle);
239 }
240
swtestControlFilter_DISPATCH(struct SoftwareMethodTest * pResource,struct CALL_CONTEXT * pCallContext,struct RS_RES_CONTROL_PARAMS_INTERNAL * pParams)241 static inline NV_STATUS swtestControlFilter_DISPATCH(struct SoftwareMethodTest *pResource, struct CALL_CONTEXT *pCallContext, struct RS_RES_CONTROL_PARAMS_INTERNAL *pParams) {
242 return pResource->__swtestControlFilter__(pResource, pCallContext, pParams);
243 }
244
swtestUnregisterEvent_DISPATCH(struct SoftwareMethodTest * pNotifier,NvHandle hNotifierClient,NvHandle hNotifierResource,NvHandle hEventClient,NvHandle hEvent)245 static inline NV_STATUS swtestUnregisterEvent_DISPATCH(struct SoftwareMethodTest *pNotifier, NvHandle hNotifierClient, NvHandle hNotifierResource, NvHandle hEventClient, NvHandle hEvent) {
246 return pNotifier->__swtestUnregisterEvent__(pNotifier, hNotifierClient, hNotifierResource, hEventClient, hEvent);
247 }
248
swtestControlSerialization_Prologue_DISPATCH(struct SoftwareMethodTest * pResource,struct CALL_CONTEXT * pCallContext,struct RS_RES_CONTROL_PARAMS_INTERNAL * pParams)249 static inline NV_STATUS swtestControlSerialization_Prologue_DISPATCH(struct SoftwareMethodTest *pResource, struct CALL_CONTEXT *pCallContext, struct RS_RES_CONTROL_PARAMS_INTERNAL *pParams) {
250 return pResource->__swtestControlSerialization_Prologue__(pResource, pCallContext, pParams);
251 }
252
swtestCanCopy_DISPATCH(struct SoftwareMethodTest * pResource)253 static inline NvBool swtestCanCopy_DISPATCH(struct SoftwareMethodTest *pResource) {
254 return pResource->__swtestCanCopy__(pResource);
255 }
256
swtestIsPartialUnmapSupported_DISPATCH(struct SoftwareMethodTest * pResource)257 static inline NvBool swtestIsPartialUnmapSupported_DISPATCH(struct SoftwareMethodTest *pResource) {
258 return pResource->__swtestIsPartialUnmapSupported__(pResource);
259 }
260
swtestPreDestruct_DISPATCH(struct SoftwareMethodTest * pResource)261 static inline void swtestPreDestruct_DISPATCH(struct SoftwareMethodTest *pResource) {
262 pResource->__swtestPreDestruct__(pResource);
263 }
264
swtestIsDuplicate_DISPATCH(struct SoftwareMethodTest * pResource,NvHandle hMemory,NvBool * pDuplicate)265 static inline NV_STATUS swtestIsDuplicate_DISPATCH(struct SoftwareMethodTest *pResource, NvHandle hMemory, NvBool *pDuplicate) {
266 return pResource->__swtestIsDuplicate__(pResource, hMemory, pDuplicate);
267 }
268
swtestControlSerialization_Epilogue_DISPATCH(struct SoftwareMethodTest * pResource,struct CALL_CONTEXT * pCallContext,struct RS_RES_CONTROL_PARAMS_INTERNAL * pParams)269 static inline void swtestControlSerialization_Epilogue_DISPATCH(struct SoftwareMethodTest *pResource, struct CALL_CONTEXT *pCallContext, struct RS_RES_CONTROL_PARAMS_INTERNAL *pParams) {
270 pResource->__swtestControlSerialization_Epilogue__(pResource, pCallContext, pParams);
271 }
272
swtestGetNotificationListPtr_DISPATCH(struct SoftwareMethodTest * pNotifier)273 static inline PEVENTNOTIFICATION *swtestGetNotificationListPtr_DISPATCH(struct SoftwareMethodTest *pNotifier) {
274 return pNotifier->__swtestGetNotificationListPtr__(pNotifier);
275 }
276
swtestGetNotificationShare_DISPATCH(struct SoftwareMethodTest * pNotifier)277 static inline struct NotifShare *swtestGetNotificationShare_DISPATCH(struct SoftwareMethodTest *pNotifier) {
278 return pNotifier->__swtestGetNotificationShare__(pNotifier);
279 }
280
swtestMap_DISPATCH(struct SoftwareMethodTest * pGpuResource,struct CALL_CONTEXT * pCallContext,struct RS_CPU_MAP_PARAMS * pParams,struct RsCpuMapping * pCpuMapping)281 static inline NV_STATUS swtestMap_DISPATCH(struct SoftwareMethodTest *pGpuResource, struct CALL_CONTEXT *pCallContext, struct RS_CPU_MAP_PARAMS *pParams, struct RsCpuMapping *pCpuMapping) {
282 return pGpuResource->__swtestMap__(pGpuResource, pCallContext, pParams, pCpuMapping);
283 }
284
swtestGetOrAllocNotifShare_DISPATCH(struct SoftwareMethodTest * pNotifier,NvHandle hNotifierClient,NvHandle hNotifierResource,struct NotifShare ** ppNotifShare)285 static inline NV_STATUS swtestGetOrAllocNotifShare_DISPATCH(struct SoftwareMethodTest *pNotifier, NvHandle hNotifierClient, NvHandle hNotifierResource, struct NotifShare **ppNotifShare) {
286 return pNotifier->__swtestGetOrAllocNotifShare__(pNotifier, hNotifierClient, hNotifierResource, ppNotifShare);
287 }
288
289 NV_STATUS swtestConstruct_IMPL(struct SoftwareMethodTest *arg_pSwTest, struct CALL_CONTEXT *arg_pCallContext, struct RS_RES_ALLOC_PARAMS_INTERNAL *arg_pParams);
290
291 #define __nvoc_swtestConstruct(arg_pSwTest, arg_pCallContext, arg_pParams) swtestConstruct_IMPL(arg_pSwTest, arg_pCallContext, arg_pParams)
292 void swtestDestruct_IMPL(struct SoftwareMethodTest *pSwTest);
293
294 #define __nvoc_swtestDestruct(pSwTest) swtestDestruct_IMPL(pSwTest)
295 #undef PRIVATE_FIELD
296
297
298 #endif // _SW_TEST_H_
299
300 #ifdef __cplusplus
301 } // extern "C"
302 #endif
303
304 #endif // _G_SW_TEST_NVOC_H_
305