File Index
Files and directories
Sign in
FILE

device.h

File preview with syntax highlighting.

linux-6.19.14/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/nvrm/device.h C
 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
13typedef 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
27typedef struct NV2080_ALLOC_PARAMETERS {
28    NvU32 subDeviceId;
29} NV2080_ALLOC_PARAMETERS;
30#endif
~/ Read-only file preview.