interplane.Get Omega
Read in your language

CUDApp

CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit.

Brought by drakestapleton

branch main Branches Tags History

CUDApp / third_party / nvidia-open-580.173.02 / kernel-open / nvidia-uvm / uvm_linux_ioctl.h

42 lines · 1962 bytes Raw Blame History
1/*******************************************************************************
2 Copyright (c) 2013 NVidia Corporation
3
4 Permission is hereby granted, free of charge, to any person obtaining a copy
5 of this software and associated documentation files (the "Software"), to
6 deal in the Software without restriction, including without limitation the
7 rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
8 sell copies of the Software, and to permit persons to whom the Software is
9 furnished to do so, subject to the following conditions:
10
11 The above copyright notice and this permission notice shall be
12 included in all copies or substantial portions of the Software.
13
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20 DEALINGS IN THE SOFTWARE.
21*******************************************************************************/
22
23#ifndef _UVM_LINUX_IOCTL_H
24#define _UVM_LINUX_IOCTL_H
25
26#include "uvm_ioctl.h"
27
28// This ioctl must be the first operation performed on the UVM file descriptor
29// after opening it. Until this ioctl is made, the UVM file descriptor is
30// inoperable: all other ioctls will return NV_ERR_ILLEGAL_ACTION and mmap will
31// return EBADFD.
32#define UVM_INITIALIZE 0x30000001
33
34typedef struct
35{
36 NvU64 flags NV_ALIGN_BYTES(8); // IN
37 NV_STATUS rmStatus; // OUT
38} UVM_INITIALIZE_PARAMS;
39
40#define UVM_DEINITIALIZE 0x30000002
41
42#endif // _UVM_LINUX_IOCTL_H