Debian Codegraph @

src/nouveau/headers/nvidia/classes/cle7d0.h

raw
1 /*******************************************************************************
2 Copyright (c) 1993-2020, NVIDIA CORPORATION. All rights reserved.
3
4 Permission is hereby granted, free of charge, to any person obtaining a
5 copy of this software and associated documentation files (the "Software"),
6 to deal in the Software without restriction, including without limitation
7 the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 and/or sell copies of the Software, and to permit persons to whom the
9 Software is furnished to do so, subject to the following conditions:
10
11 The above copyright notice and this permission notice shall be included in
12 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
24 #ifndef _cle7d0_h_
25 #define _cle7d0_h_
26
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30
31 #define NVE7D0_VIDEO_NVJPG (0x0000E7D0)
32
33 #define NVE7D0_NOP (0x00000100)
34 #define NVE7D0_NOP_PARAMETER 31:0
35 #define NVE7D0_SET_APPLICATION_ID (0x00000200)
36 #define NVE7D0_SET_APPLICATION_ID_ID 31:0
37 #define NVE7D0_SET_APPLICATION_ID_ID_NVJPG_DECODER (0x00000001)
38 #define NVE7D0_SET_APPLICATION_ID_ID_NVJPG_ENCODER (0x00000002)
39 #define NVE7D0_SET_WATCHDOG_TIMER (0x00000204)
40 #define NVE7D0_SET_WATCHDOG_TIMER_TIMER 31:0
41 #define NVE7D0_SEMAPHORE_A (0x00000240)
42 #define NVE7D0_SEMAPHORE_A_UPPER 7:0
43 #define NVE7D0_SEMAPHORE_B (0x00000244)
44 #define NVE7D0_SEMAPHORE_B_LOWER 31:0
45 #define NVE7D0_SEMAPHORE_C (0x00000248)
46 #define NVE7D0_SEMAPHORE_C_PAYLOAD 31:0
47 #define NVE7D0_CTX_SAVE_AREA (0x0000024C)
48 #define NVE7D0_CTX_SAVE_AREA_OFFSET 27:0
49 #define NVE7D0_CTX_SAVE_AREA_CTX_VALID 31:28
50 #define NVE7D0_CTX_SWITCH (0x00000250)
51 #define NVE7D0_CTX_SWITCH_RESTORE 0:0
52 #define NVE7D0_CTX_SWITCH_RESTORE_FALSE (0x00000000)
53 #define NVE7D0_CTX_SWITCH_RESTORE_TRUE (0x00000001)
54 #define NVE7D0_CTX_SWITCH_RST_NOTIFY 1:1
55 #define NVE7D0_CTX_SWITCH_RST_NOTIFY_FALSE (0x00000000)
56 #define NVE7D0_CTX_SWITCH_RST_NOTIFY_TRUE (0x00000001)
57 #define NVE7D0_CTX_SWITCH_RESERVED 7:2
58 #define NVE7D0_CTX_SWITCH_ASID 23:8
59 #define NVE7D0_EXECUTE (0x00000300)
60 #define NVE7D0_EXECUTE_NOTIFY 0:0
61 #define NVE7D0_EXECUTE_NOTIFY_DISABLE (0x00000000)
62 #define NVE7D0_EXECUTE_NOTIFY_ENABLE (0x00000001)
63 #define NVE7D0_EXECUTE_NOTIFY_ON 1:1
64 #define NVE7D0_EXECUTE_NOTIFY_ON_END (0x00000000)
65 #define NVE7D0_EXECUTE_NOTIFY_ON_BEGIN (0x00000001)
66 #define NVE7D0_EXECUTE_AWAKEN 8:8
67 #define NVE7D0_EXECUTE_AWAKEN_DISABLE (0x00000000)
68 #define NVE7D0_EXECUTE_AWAKEN_ENABLE (0x00000001)
69 #define NVE7D0_SEMAPHORE_D (0x00000304)
70 #define NVE7D0_SEMAPHORE_D_STRUCTURE_SIZE 0:0
71 #define NVE7D0_SEMAPHORE_D_STRUCTURE_SIZE_ONE (0x00000000)
72 #define NVE7D0_SEMAPHORE_D_STRUCTURE_SIZE_FOUR (0x00000001)
73 #define NVE7D0_SEMAPHORE_D_AWAKEN_ENABLE 8:8
74 #define NVE7D0_SEMAPHORE_D_AWAKEN_ENABLE_FALSE (0x00000000)
75 #define NVE7D0_SEMAPHORE_D_AWAKEN_ENABLE_TRUE (0x00000001)
76 #define NVE7D0_SEMAPHORE_D_OPERATION 17:16
77 #define NVE7D0_SEMAPHORE_D_OPERATION_RELEASE (0x00000000)
78 #define NVE7D0_SEMAPHORE_D_OPERATION_RESERVED0 (0x00000001)
79 #define NVE7D0_SEMAPHORE_D_OPERATION_RESERVED1 (0x00000002)
80 #define NVE7D0_SEMAPHORE_D_OPERATION_TRAP (0x00000003)
81 #define NVE7D0_SEMAPHORE_D_FLUSH_DISABLE 21:21
82 #define NVE7D0_SEMAPHORE_D_FLUSH_DISABLE_FALSE (0x00000000)
83 #define NVE7D0_SEMAPHORE_D_FLUSH_DISABLE_TRUE (0x00000001)
84 #define NVE7D0_SET_CONTROL_PARAMS (0x00000700)
85 #define NVE7D0_SET_CONTROL_PARAMS_GPTIMER_ON 0:0
86 #define NVE7D0_SET_CONTROL_PARAMS_DUMP_CYCLE_COUNT 1:1
87 #define NVE7D0_SET_CONTROL_PARAMS_DEBUG_MODE 2:2
88 #define NVE7D0_SET_PICTURE_INDEX (0x00000704)
89 #define NVE7D0_SET_PICTURE_INDEX_INDEX 31:0
90 #define NVE7D0_SET_IN_DRV_PIC_SETUP (0x00000708)
91 #define NVE7D0_SET_IN_DRV_PIC_SETUP_OFFSET 31:0
92 #define NVE7D0_SET_OUT_STATUS (0x0000070C)
93 #define NVE7D0_SET_OUT_STATUS_OFFSET 31:0
94 #define NVE7D0_SET_BITSTREAM (0x00000710)
95 #define NVE7D0_SET_BITSTREAM_OFFSET 31:0
96 #define NVE7D0_SET_CUR_PIC (0x00000714)
97 #define NVE7D0_SET_CUR_PIC_OFFSET 31:0
98 #define NVE7D0_SET_CUR_PIC_CHROMA_U (0x00000718)
99 #define NVE7D0_SET_CUR_PIC_CHROMA_U_OFFSET 31:0
100 #define NVE7D0_SET_CUR_PIC_CHROMA_V (0x0000071C)
101 #define NVE7D0_SET_CUR_PIC_CHROMA_V_OFFSET 31:0
102
103 #define NVE7D0_ERROR_NONE (0x00000000)
104 #define NVE7D0_OS_ERROR_EXECUTE_INSUFFICIENT_DATA (0x00000001)
105 #define NVE7D0_OS_ERROR_SEMAPHORE_INSUFFICIENT_DATA (0x00000002)
106 #define NVE7D0_OS_ERROR_INVALID_METHOD (0x00000003)
107 #define NVE7D0_OS_ERROR_INVALID_DMA_PAGE (0x00000004)
108 #define NVE7D0_OS_ERROR_UNHANDLED_INTERRUPT (0x00000005)
109 #define NVE7D0_OS_ERROR_EXCEPTION (0x00000006)
110 #define NVE7D0_OS_ERROR_INVALID_CTXSW_REQUEST (0x00000007)
111 #define NVE7D0_OS_ERROR_APPLICATION (0x00000008)
112 #define NVE7D0_OS_INTERRUPT_EXECUTE_AWAKEN (0x00000100)
113 #define NVE7D0_OS_INTERRUPT_BACKEND_SEMAPHORE_AWAKEN (0x00000200)
114 #define NVE7D0_OS_INTERRUPT_CTX_ERROR_FBIF (0x00000300)
115 #define NVE7D0_OS_INTERRUPT_LIMIT_VIOLATION (0x00000400)
116 #define NVE7D0_OS_INTERRUPT_LIMIT_AND_FBIF_CTX_ERROR (0x00000500)
117 #define NVE7D0_OS_INTERRUPT_HALT_ENGINE (0x00000600)
118 #define NVE7D0_OS_INTERRUPT_TRAP_NONSTALL (0x00000700)
119 #define NVE7D0_OS_INTERRUPT_CTX_SAVE_DONE (0x00000800)
120 #define NVE7D0_OS_INTERRUPT_CTX_RESTORE_DONE (0x00000900)
121 #define NVE7D0_ERROR_JPGAPPTIMER_EXPIRED (0x30000001)
122 #define NVE7D0_ERROR_JPGINVALID_INPUT (0x30000002)
123 #define NVE7D0_ERROR_JPGHWERR_INTERRUPT (0x30000003)
124 #define NVE7D0_ERROR_JPGBAD_MAGIC (0x30000004)
125
126 #ifdef __cplusplus
127 }; /* extern "C" */
128 #endif
129 #endif // _cle7d0_h
130