GVM User Suite
User tools for the GVM open source project.
nv0000.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2022 2666680 Ontario Inc.
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation; either version 2
7  * of the License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17  *
18  */
19 #ifndef GPU_NVIDIA_RESMAN_CLASSES_NV0000_H
20 #define GPU_NVIDIA_RESMAN_CLASSES_NV0000_H
21 
22 #include <stdint.h>
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
29 #define NV0000_GET_PROBED_IDS 0x00000214
30 
36  uint32_t gpu_ids[32];
37  uint32_t excluded_gpus[32];
38 };
39 
41 #define NV0000_GET_PCI_INFO 0x0000021B
42 
48  uint32_t gpu_id;
49  uint32_t domain;
50  uint16_t bus;
51  uint16_t slot;
52 };
53 
55 #define NV0000_ATTACH_IDS 0x00000215
56 
62  uint32_t gpu_ids[32];
63  uint32_t failed_gpu_id;
64 };
65 
67 #define NV0000_DEATTACH_IDS 0x00000216
68 
74  uint32_t gpu_ids[32];
75 };
76 
78 #define NV0000_GET_GPU_INFO 0x00000202
79 
85  uint32_t gpu_id;
86  uint32_t flags;
87  uint32_t dev_inst;
88  uint32_t sub_dev_inst;
89  char* sz_name;
90  uint32_t sli_status;
91  uint32_t board_id;
92  uint32_t gpu_inst;
93  uint32_t numa_id;
94 };
95 
96 #ifdef __cplusplus
97 };
98 #endif
99 
100 #endif
Attaches the following ids to the GPU driver.
Definition: nv0000.h:61
uint32_t gpu_ids[32]
List of GPU Ids to attach.
Definition: nv0000.h:62
uint32_t failed_gpu_id
Last failed GPU id.
Definition: nv0000.h:63
DeAttaches the following ids to the GPU driver.
Definition: nv0000.h:73
uint32_t gpu_ids[32]
List of GPU Ids to detach.
Definition: nv0000.h:74
Gets GPU specific information.
Definition: nv0000.h:84
uint32_t numa_id
Numa id.
Definition: nv0000.h:93
uint32_t sli_status
SLI Status.
Definition: nv0000.h:90
uint32_t gpu_inst
GPU Instance.
Definition: nv0000.h:92
uint32_t gpu_id
GPU Id to get the information from.
Definition: nv0000.h:85
uint32_t board_id
Board id.
Definition: nv0000.h:91
uint32_t flags
Flags for the GPU.
Definition: nv0000.h:86
uint32_t dev_inst
Device instance for the GPU.
Definition: nv0000.h:87
uint32_t sub_dev_inst
Sub device instance for the GPU.
Definition: nv0000.h:88
Gets the PCI info for a given gpu.
Definition: nv0000.h:47
uint16_t bus
Bus for the GPU.
Definition: nv0000.h:50
uint32_t gpu_id
GPU Id to get PCI info from.
Definition: nv0000.h:48
uint32_t domain
Domain for the GPU.
Definition: nv0000.h:49
uint16_t slot
Slot for the GPU.
Definition: nv0000.h:51
Gets a list of all probed Ids.
Definition: nv0000.h:35
uint32_t gpu_ids[32]
GPU IDs available.
Definition: nv0000.h:36
uint32_t excluded_gpus[32]
GPU IDs that were excluded.
Definition: nv0000.h:37