GVM User Suite
User tools for the GVM open source project.
nvA081.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_NVA081_H
20 #define GPU_NVIDIA_RESMAN_CLASSES_NVA081_H
21 
22 #include <stdint.h>
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
29 #define NVA081_CLASS 0x0000A081
30 
32 #define NVA081_ADD_MDEV 0xA0810101
33 
35 #define NVA081_REG_MDEV 0xA0810109
36 
42 struct RmMdevConfig {
43  uint64_t discard;
44  uint32_t mdev_type;
45  char name[32];
46  char class[32];
47  char sign[128];
48  char pact[132];
49  uint32_t max_instances;
50  uint32_t num_heads;
51  uint32_t max_res_x;
52  uint32_t max_res_y;
53  uint32_t max_pixel;
54  uint32_t frl_config;
55  uint32_t cuda;
56  uint32_t ecc_support;
58  uint32_t multi_mdev;
59  uint64_t enc_cap;
60  uint64_t v_dev_id;
61  uint64_t p_dev_id;
62  uint64_t fb_len;
63  uint64_t map_video;
64  uint64_t fb_res;
65  uint64_t bar1_len;
66  uint32_t frl_enable;
67  uint32_t mdev_extra_params[1027];
68 };
69 
70 #ifdef __cplusplus
71 };
72 #endif
73 
74 #endif
Creates an MDev Config to be sent into the RM core.
Definition: nvA081.h:42
uint64_t p_dev_id
Definition: nvA081.h:61
uint32_t gpu_instance_size
Definition: nvA081.h:57
uint32_t max_res_y
Definition: nvA081.h:52
uint64_t bar1_len
Definition: nvA081.h:65
uint64_t fb_res
Definition: nvA081.h:64
char sign[128]
Definition: nvA081.h:47
uint64_t fb_len
Definition: nvA081.h:62
uint32_t max_instances
Definition: nvA081.h:49
uint32_t max_res_x
Definition: nvA081.h:51
uint64_t enc_cap
Definition: nvA081.h:59
uint32_t ecc_support
Definition: nvA081.h:56
uint64_t map_video
Definition: nvA081.h:63
uint64_t discard
Definition: nvA081.h:43
char pact[132]
Definition: nvA081.h:48
uint32_t mdev_extra_params[1027]
Definition: nvA081.h:67
char name[32]
Definition: nvA081.h:45
uint32_t cuda
Definition: nvA081.h:55
uint32_t mdev_type
Definition: nvA081.h:44
uint32_t multi_mdev
Definition: nvA081.h:58
uint32_t frl_config
Definition: nvA081.h:54
uint32_t frl_enable
Definition: nvA081.h:66
uint32_t num_heads
Definition: nvA081.h:50
uint32_t max_pixel
Definition: nvA081.h:53
uint64_t v_dev_id
Definition: nvA081.h:60