diff options
Diffstat (limited to 'include/uapi/linux/nvgpu-t18x.h')
-rw-r--r-- | include/uapi/linux/nvgpu-t18x.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/include/uapi/linux/nvgpu-t18x.h b/include/uapi/linux/nvgpu-t18x.h new file mode 100644 index 00000000..59db77c7 --- /dev/null +++ b/include/uapi/linux/nvgpu-t18x.h | |||
@@ -0,0 +1,61 @@ | |||
1 | /* | ||
2 | * NVGPU Public Interface Header | ||
3 | * | ||
4 | * Copyright (c) 2011-2016, NVIDIA CORPORATION. All rights reserved. | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify it | ||
7 | * under the terms and conditions of the GNU General Public License, | ||
8 | * version 2, as published by the Free Software Foundation. | ||
9 | * | ||
10 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
11 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
12 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
13 | * more details. | ||
14 | */ | ||
15 | |||
16 | /* This file is meant to extend nvgpu.h, not replace it | ||
17 | * as such, be sure that nvgpu.h is actually the file performing the | ||
18 | * inclusion, to the extent that's possible. | ||
19 | */ | ||
20 | #ifndef _UAPI__LINUX_NVGPU_IOCTL_H | ||
21 | # error "This file is to be included within nvgpu.h only." | ||
22 | #endif | ||
23 | |||
24 | #ifndef _UAPI__LINUX_NVGPU_T18X_IOCTL_H_ | ||
25 | #define _UAPI__LINUX_NVGPU_T18X_IOCTL_H_ | ||
26 | |||
27 | /* | ||
28 | * this flag is used in struct nvgpu_alloc_gpfifo_args | ||
29 | * to enable re-playable faults for that channel | ||
30 | */ | ||
31 | #define NVGPU_ALLOC_GPFIFO_FLAGS_REPLAYABLE_FAULTS_ENABLE (1 << 2) | ||
32 | |||
33 | /* Flags in nvgpu_alloc_obj_ctx_args.flags */ | ||
34 | #define NVGPU_ALLOC_OBJ_FLAGS_GFXP (1 << 1) | ||
35 | #define NVGPU_ALLOC_OBJ_FLAGS_CILP (1 << 2) | ||
36 | |||
37 | /* Flags in nvgpu_preemption_mode_args.graphics_preempt_flags */ | ||
38 | #define NVGPU_GRAPHICS_PREEMPTION_MODE_GFXP (1 << 1) | ||
39 | /* Flags in nvgpu_preemption_mode_args.compute_preempt_flags */ | ||
40 | #define NVGPU_COMPUTE_PREEMPTION_MODE_CILP (1 << 2) | ||
41 | |||
42 | /* SM LRF ECC is enabled */ | ||
43 | #define NVGPU_GPU_FLAGS_ECC_ENABLED_SM_LRF (1ULL << 60) | ||
44 | /* SM SHM ECC is enabled */ | ||
45 | #define NVGPU_GPU_FLAGS_ECC_ENABLED_SM_SHM (1ULL << 61) | ||
46 | /* TEX ECC is enabled */ | ||
47 | #define NVGPU_GPU_FLAGS_ECC_ENABLED_TEX (1ULL << 62) | ||
48 | /* L2 ECC is enabled */ | ||
49 | #define NVGPU_GPU_FLAGS_ECC_ENABLED_LTC (1ULL << 63) | ||
50 | /* All types of ECC are enabled */ | ||
51 | #define NVGPU_GPU_FLAGS_ALL_ECC_ENABLED \ | ||
52 | (NVGPU_GPU_FLAGS_ECC_ENABLED_SM_LRF | \ | ||
53 | NVGPU_GPU_FLAGS_ECC_ENABLED_SM_SHM | \ | ||
54 | NVGPU_GPU_FLAGS_ECC_ENABLED_TEX | \ | ||
55 | NVGPU_GPU_FLAGS_ECC_ENABLED_LTC) | ||
56 | |||
57 | /* Channel event_id in nvgpu_channel_events_ctrl_ext_args */ | ||
58 | #define NVGPU_IOCTL_CHANNEL_EVENT_ID_CILP_PREEMPTION_STARTED 3 | ||
59 | #define NVGPU_IOCTL_CHANNEL_EVENT_ID_CILP_PREEMPTION_COMPLETE 4 | ||
60 | |||
61 | #endif /* _UAPI__LINUX_NVGPU_T18X_IOCTL_H_ */ | ||