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