1 /* SPDX-License-Identifier: MIT */ 2 3 /* Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved. */ 4 5 #ifndef __NVRM_ALLOC_H__ 6 #define __NVRM_ALLOC_H__ 7 #include <nvrm/nvtypes.h> 8 9 /* Excerpt of RM headers from https://github.com/NVIDIA/open-gpu-kernel-modules/tree/535.113.01 */ 10 11 typedef struct rpc_gsp_rm_alloc_v03_00 12 { 13 NvHandle hClient; 14 NvHandle hParent; 15 NvHandle hObject; 16 NvU32 hClass; 17 NvU32 status; 18 NvU32 paramsSize; 19 NvU32 flags; 20 NvU8 reserved[4]; 21 NvU8 params[]; 22 } rpc_gsp_rm_alloc_v03_00; 23 24 typedef struct NVOS00_PARAMETERS_v03_00 25 { 26 NvHandle hRoot; 27 NvHandle hObjectParent; 28 NvHandle hObjectOld; 29 NvV32 status; 30 } NVOS00_PARAMETERS_v03_00; 31 32 typedef struct rpc_free_v03_00 33 { 34 NVOS00_PARAMETERS_v03_00 params; 35 } rpc_free_v03_00; 36 #endif 37