You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/abi/nvgpu/classes.go
+43-3Lines changed: 43 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -35,10 +35,13 @@ func (id ClassID) String() string {
35
35
const (
36
36
NV01_ROOT=0x00000000
37
37
NV01_ROOT_NON_PRIV=0x00000001
38
+
NV01_EVENT=0x00000005
38
39
NV01_MEMORY_SYSTEM=0x0000003e
40
+
NV01_MEMORY_LOCAL_PRIVILEGED=0x0000003f
39
41
NV01_MEMORY_LOCAL_USER=0x00000040
40
42
NV01_ROOT_CLIENT=0x00000041
41
43
NV_MEMORY_EXTENDED_USER=0x00000042
44
+
NV01_MEMORY_VIRTUAL=0x00000070
42
45
NV01_MEMORY_SYSTEM_OS_DESCRIPTOR=0x00000071
43
46
NV01_EVENT_OS_EVENT=0x00000079
44
47
NV01_DEVICE_0=0x00000080
@@ -51,14 +54,20 @@ const (
51
54
NV50_THIRD_PARTY_P2P=0x0000503c
52
55
NV50_MEMORY_VIRTUAL=0x000050a0
53
56
GT200_DEBUGGER=0x000083de
57
+
FERMI_TWOD_A=0x0000902d
58
+
FERMI_CONTEXT_SHARE_A=0x00009067
59
+
GF100_DISP_SW=0x00009072
60
+
GF100_ZBC_CLEAR=0x00009096
54
61
GF100_PROFILER=0x000090cc
55
62
GF100_SUBDEVICE_MASTER=0x000090e6
56
-
FERMI_CONTEXT_SHARE_A=0x00009067
57
63
FERMI_VASPACE_A=0x000090f1
58
64
KEPLER_CHANNEL_GROUP_A=0x0000a06c
65
+
KEPLER_INLINE_TO_MEMORY_B=0x0000a140
66
+
VOLTA_USERMODE_A=0x0000c361
59
67
TURING_USERMODE_A=0x0000c461
60
68
TURING_CHANNEL_GPFIFO_A=0x0000c46f
61
69
AMPERE_CHANNEL_GPFIFO_A=0x0000c56f
70
+
TURING_A=0x0000c597
62
71
TURING_DMA_COPY_A=0x0000c5b5
63
72
TURING_COMPUTE_A=0x0000c5c0
64
73
HOPPER_USERMODE_A=0x0000c661
@@ -74,6 +83,11 @@ const (
74
83
HOPPER_COMPUTE_A=0x0000cbc0
75
84
)
76
85
86
+
// From src/common/sdk/nvidia/inc/class/cl0000.h:
87
+
const (
88
+
NV01_NULL_OBJECT=0x0
89
+
)
90
+
77
91
// NV2081_ALLOC_PARAMETERS is the alloc params type for NV2081_BINAPI, from
78
92
// src/common/sdk/nvidia/inc/class/cl2081.h.
79
93
//
@@ -82,18 +96,34 @@ type NV2081_ALLOC_PARAMETERS struct {
82
96
Reserveduint32`nvproxy:"same"`
83
97
}
84
98
85
-
// NV0005_ALLOC_PARAMETERS is the alloc params type for NV01_EVENT_OS_EVENT,
99
+
// NV0005_ALLOC_PARAMETERS is the alloc params type for NV01_EVENT* classes
86
100
// from src/common/sdk/nvidia/inc/class/cl0005.h.
87
101
//
88
102
// +marshal
89
103
typeNV0005_ALLOC_PARAMETERSstruct {
90
104
HParentClientHandle`nvproxy:"same"`
91
105
HSrcResourceHandle
92
-
HClassuint32
106
+
HClassClassID
93
107
NotifyIndexuint32
94
108
DataP64// actually FD for NV01_EVENT_OS_EVENT, see src/nvidia/src/kernel/rmapi/event.c:eventConstruct_IMPL() => src/nvidia/arch/nvalloc/unix/src/os.c:osUserHandleToKernelPtr()
0 commit comments