1 #ifndef __src_nvidia_inc_kernel_gpu_gpu_engine_type_h__ 2 #define __src_nvidia_inc_kernel_gpu_gpu_engine_type_h__ 3 4 /* Excerpt of RM headers from https://github.com/NVIDIA/open-gpu-kernel-modules/tree/535.113.01 */ 5 6 /* 7 * SPDX-FileCopyrightText: Copyright (c) 2021-2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved. 8 * SPDX-License-Identifier: MIT 9 * 10 * Permission is hereby granted, free of charge, to any person obtaining a 11 * copy of this software and associated documentation files (the "Software"), 12 * to deal in the Software without restriction, including without limitation 13 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 14 * and/or sell copies of the Software, and to permit persons to whom the 15 * Software is furnished to do so, subject to the following conditions: 16 * 17 * The above copyright notice and this permission notice shall be included in 18 * all copies or substantial portions of the Software. 19 * 20 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 21 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 22 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 23 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 24 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 25 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 26 * DEALINGS IN THE SOFTWARE. 27 */ 28 29 typedef enum 30 { 31 RM_ENGINE_TYPE_NULL = (0x00000000), 32 RM_ENGINE_TYPE_GR0 = (0x00000001), 33 RM_ENGINE_TYPE_GR1 = (0x00000002), 34 RM_ENGINE_TYPE_GR2 = (0x00000003), 35 RM_ENGINE_TYPE_GR3 = (0x00000004), 36 RM_ENGINE_TYPE_GR4 = (0x00000005), 37 RM_ENGINE_TYPE_GR5 = (0x00000006), 38 RM_ENGINE_TYPE_GR6 = (0x00000007), 39 RM_ENGINE_TYPE_GR7 = (0x00000008), 40 RM_ENGINE_TYPE_COPY0 = (0x00000009), 41 RM_ENGINE_TYPE_COPY1 = (0x0000000a), 42 RM_ENGINE_TYPE_COPY2 = (0x0000000b), 43 RM_ENGINE_TYPE_COPY3 = (0x0000000c), 44 RM_ENGINE_TYPE_COPY4 = (0x0000000d), 45 RM_ENGINE_TYPE_COPY5 = (0x0000000e), 46 RM_ENGINE_TYPE_COPY6 = (0x0000000f), 47 RM_ENGINE_TYPE_COPY7 = (0x00000010), 48 RM_ENGINE_TYPE_COPY8 = (0x00000011), 49 RM_ENGINE_TYPE_COPY9 = (0x00000012), 50 RM_ENGINE_TYPE_NVDEC0 = (0x0000001d), 51 RM_ENGINE_TYPE_NVDEC1 = (0x0000001e), 52 RM_ENGINE_TYPE_NVDEC2 = (0x0000001f), 53 RM_ENGINE_TYPE_NVDEC3 = (0x00000020), 54 RM_ENGINE_TYPE_NVDEC4 = (0x00000021), 55 RM_ENGINE_TYPE_NVDEC5 = (0x00000022), 56 RM_ENGINE_TYPE_NVDEC6 = (0x00000023), 57 RM_ENGINE_TYPE_NVDEC7 = (0x00000024), 58 RM_ENGINE_TYPE_NVENC0 = (0x00000025), 59 RM_ENGINE_TYPE_NVENC1 = (0x00000026), 60 RM_ENGINE_TYPE_NVENC2 = (0x00000027), 61 RM_ENGINE_TYPE_VP = (0x00000028), 62 RM_ENGINE_TYPE_ME = (0x00000029), 63 RM_ENGINE_TYPE_PPP = (0x0000002a), 64 RM_ENGINE_TYPE_MPEG = (0x0000002b), 65 RM_ENGINE_TYPE_SW = (0x0000002c), 66 RM_ENGINE_TYPE_TSEC = (0x0000002d), 67 RM_ENGINE_TYPE_VIC = (0x0000002e), 68 RM_ENGINE_TYPE_MP = (0x0000002f), 69 RM_ENGINE_TYPE_SEC2 = (0x00000030), 70 RM_ENGINE_TYPE_HOST = (0x00000031), 71 RM_ENGINE_TYPE_DPU = (0x00000032), 72 RM_ENGINE_TYPE_PMU = (0x00000033), 73 RM_ENGINE_TYPE_FBFLCN = (0x00000034), 74 RM_ENGINE_TYPE_NVJPEG0 = (0x00000035), 75 RM_ENGINE_TYPE_NVJPEG1 = (0x00000036), 76 RM_ENGINE_TYPE_NVJPEG2 = (0x00000037), 77 RM_ENGINE_TYPE_NVJPEG3 = (0x00000038), 78 RM_ENGINE_TYPE_NVJPEG4 = (0x00000039), 79 RM_ENGINE_TYPE_NVJPEG5 = (0x0000003a), 80 RM_ENGINE_TYPE_NVJPEG6 = (0x0000003b), 81 RM_ENGINE_TYPE_NVJPEG7 = (0x0000003c), 82 RM_ENGINE_TYPE_OFA = (0x0000003d), 83 RM_ENGINE_TYPE_LAST = (0x0000003e), 84 } RM_ENGINE_TYPE; 85 86 #endif 87