| 1 |
/* SPDX-License-Identifier: MIT */ |
| 2 |
|
| 3 |
/* Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved. */ |
| 4 |
|
| 5 |
#ifndef __NVRM_DEVICE_H__ |
| 6 |
#define __NVRM_DEVICE_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 |
#define NV01_DEVICE_0 (0x80U) /* finn: Evaluated from "NV0080_ALLOC_PARAMETERS_MESSAGE_ID" */ |
| 12 |
|
| 13 |
typedef struct NV0080_ALLOC_PARAMETERS { |
| 14 |
NvU32 deviceId; |
| 15 |
NvHandle hClientShare; |
| 16 |
NvHandle hTargetClient; |
| 17 |
NvHandle hTargetDevice; |
| 18 |
NvV32 flags; |
| 19 |
NV_DECLARE_ALIGNED(NvU64 vaSpaceSize, 8); |
| 20 |
NV_DECLARE_ALIGNED(NvU64 vaStartInternal, 8); |
| 21 |
NV_DECLARE_ALIGNED(NvU64 vaLimitInternal, 8); |
| 22 |
NvV32 vaMode; |
| 23 |
} NV0080_ALLOC_PARAMETERS; |
| 24 |
|
| 25 |
#define NV20_SUBDEVICE_0 (0x2080U) /* finn: Evaluated from "NV2080_ALLOC_PARAMETERS_MESSAGE_ID" */ |
| 26 |
|
| 27 |
typedef struct NV2080_ALLOC_PARAMETERS { |
| 28 |
NvU32 subDeviceId; |
| 29 |
} NV2080_ALLOC_PARAMETERS; |
| 30 |
#endif |