xref: /aosp_15_r20/external/mesa3d/src/nouveau/headers/nvidia/classes/clc56f.h (revision 6104692788411f58d303aa86923a9ff6ecaded22)
1 /*******************************************************************************
2     Copyright (c) 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 #ifndef _clc56f_h_
24 #define _clc56f_h_
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 #include "nvtypes.h"
31 
32 /* class AMPERE_CHANNEL_GPFIFO  */
33 /*
34  * Documentation for AMPERE_CHANNEL_GPFIFO can be found in dev_pbdma.ref,
35  * chapter "User Control Registers". It is documented as device NV_UDMA.
36  * The GPFIFO format itself is also documented in dev_pbdma.ref,
37  * NV_PPBDMA_GP_ENTRY_*. The pushbuffer format is documented in dev_ram.ref,
38  * chapter "FIFO DMA RAM", NV_FIFO_DMA_*.
39  *
40  * Note there is no .mfs file for this class.
41  */
42 #define  AMPERE_CHANNEL_GPFIFO_A                           (0x0000C56F)
43 
44 #define NVC56F_TYPEDEF                             AMPERE_CHANNELChannelGPFifoA
45 
46 /* dma flow control data structure */
47 typedef volatile struct Nvc56fControl_struct {
48  NvU32 Ignored00[0x010];        /*                                  0000-003f*/
49  NvU32 Put;                     /* put offset, read/write           0040-0043*/
50  NvU32 Get;                     /* get offset, read only            0044-0047*/
51  NvU32 Reference;               /* reference value, read only       0048-004b*/
52  NvU32 PutHi;                   /* high order put offset bits       004c-004f*/
53  NvU32 Ignored01[0x002];        /*                                  0050-0057*/
54  NvU32 TopLevelGet;             /* top level get offset, read only  0058-005b*/
55  NvU32 TopLevelGetHi;           /* high order top level get bits    005c-005f*/
56  NvU32 GetHi;                   /* high order get offset bits       0060-0063*/
57  NvU32 Ignored02[0x007];        /*                                  0064-007f*/
58  NvU32 Ignored03;               /* used to be engine yield          0080-0083*/
59  NvU32 Ignored04[0x001];        /*                                  0084-0087*/
60  NvU32 GPGet;                   /* GP FIFO get offset, read only    0088-008b*/
61  NvU32 GPPut;                   /* GP FIFO put offset               008c-008f*/
62  NvU32 Ignored05[0x5c];
63 } Nvc56fControl, AmpereAControlGPFifo;
64 
65 /* fields and values */
66 #define NVC56F_NUMBER_OF_SUBCHANNELS                               (8)
67 #define NVC56F_SET_OBJECT                                          (0x00000000)
68 #define NVC56F_SET_OBJECT_NVCLASS                                         15:0
69 #define NVC56F_SET_OBJECT_ENGINE                                         20:16
70 #define NVC56F_SET_OBJECT_ENGINE_SW                                 0x0000001f
71 #define NVC56F_ILLEGAL                                             (0x00000004)
72 #define NVC56F_ILLEGAL_HANDLE                                             31:0
73 #define NVC56F_NOP                                                 (0x00000008)
74 #define NVC56F_NOP_HANDLE                                                 31:0
75 #define NVC56F_SEMAPHOREA                                          (0x00000010)
76 #define NVC56F_SEMAPHOREA_OFFSET_UPPER                                     7:0
77 #define NVC56F_SEMAPHOREB                                          (0x00000014)
78 #define NVC56F_SEMAPHOREB_OFFSET_LOWER                                    31:2
79 #define NVC56F_SEMAPHOREC                                          (0x00000018)
80 #define NVC56F_SEMAPHOREC_PAYLOAD                                         31:0
81 #define NVC56F_SEMAPHORED                                          (0x0000001C)
82 #define NVC56F_SEMAPHORED_OPERATION                                        4:0
83 #define NVC56F_SEMAPHORED_OPERATION_ACQUIRE                         0x00000001
84 #define NVC56F_SEMAPHORED_OPERATION_RELEASE                         0x00000002
85 #define NVC56F_SEMAPHORED_OPERATION_ACQ_GEQ                         0x00000004
86 #define NVC56F_SEMAPHORED_OPERATION_ACQ_AND                         0x00000008
87 #define NVC56F_SEMAPHORED_OPERATION_REDUCTION                       0x00000010
88 #define NVC56F_SEMAPHORED_ACQUIRE_SWITCH                                 12:12
89 #define NVC56F_SEMAPHORED_ACQUIRE_SWITCH_DISABLED                   0x00000000
90 #define NVC56F_SEMAPHORED_ACQUIRE_SWITCH_ENABLED                    0x00000001
91 #define NVC56F_SEMAPHORED_RELEASE_WFI                                    20:20
92 #define NVC56F_SEMAPHORED_RELEASE_WFI_EN                            0x00000000
93 #define NVC56F_SEMAPHORED_RELEASE_WFI_DIS                           0x00000001
94 #define NVC56F_SEMAPHORED_RELEASE_SIZE                                   24:24
95 #define NVC56F_SEMAPHORED_RELEASE_SIZE_16BYTE                       0x00000000
96 #define NVC56F_SEMAPHORED_RELEASE_SIZE_4BYTE                        0x00000001
97 #define NVC56F_SEMAPHORED_REDUCTION                                      30:27
98 #define NVC56F_SEMAPHORED_REDUCTION_MIN                             0x00000000
99 #define NVC56F_SEMAPHORED_REDUCTION_MAX                             0x00000001
100 #define NVC56F_SEMAPHORED_REDUCTION_XOR                             0x00000002
101 #define NVC56F_SEMAPHORED_REDUCTION_AND                             0x00000003
102 #define NVC56F_SEMAPHORED_REDUCTION_OR                              0x00000004
103 #define NVC56F_SEMAPHORED_REDUCTION_ADD                             0x00000005
104 #define NVC56F_SEMAPHORED_REDUCTION_INC                             0x00000006
105 #define NVC56F_SEMAPHORED_REDUCTION_DEC                             0x00000007
106 #define NVC56F_SEMAPHORED_FORMAT                                         31:31
107 #define NVC56F_SEMAPHORED_FORMAT_SIGNED                             0x00000000
108 #define NVC56F_SEMAPHORED_FORMAT_UNSIGNED                           0x00000001
109 #define NVC56F_NON_STALL_INTERRUPT                                 (0x00000020)
110 #define NVC56F_NON_STALL_INTERRUPT_HANDLE                                 31:0
111 #define NVC56F_FB_FLUSH                                            (0x00000024) // Deprecated - use MEMBAR TYPE SYS_MEMBAR
112 #define NVC56F_FB_FLUSH_HANDLE                                            31:0
113 // NOTE - MEM_OP_A and MEM_OP_B have been replaced in gp100 with methods for
114 // specifying the page address for a targeted TLB invalidate and the uTLB for
115 // a targeted REPLAY_CANCEL for UVM.
116 // The previous MEM_OP_A/B functionality is in MEM_OP_C/D, with slightly
117 // rearranged fields.
118 #define NVC56F_MEM_OP_A                                            (0x00000028)
119 #define NVC56F_MEM_OP_A_TLB_INVALIDATE_CANCEL_TARGET_CLIENT_UNIT_ID        5:0  // only relevant for REPLAY_CANCEL_TARGETED
120 #define NVC56F_MEM_OP_A_TLB_INVALIDATE_INVALIDATION_SIZE                   5:0  // Used to specify size of invalidate, used for invalidates which are not of the REPLAY_CANCEL_TARGETED type
121 #define NVC56F_MEM_OP_A_TLB_INVALIDATE_CANCEL_TARGET_GPC_ID               10:6  // only relevant for REPLAY_CANCEL_TARGETED
122 #define NVC56F_MEM_OP_A_TLB_INVALIDATE_INVAL_SCOPE                         7:6  // only relevant for invalidates with NVC56F_MEM_OP_C_TLB_INVALIDATE_REPLAY_NONE for invalidating  link TLB only, or non-link TLB only or all TLBs
123 #define NVC56F_MEM_OP_A_TLB_INVALIDATE_INVAL_SCOPE_ALL_TLBS                  0
124 #define NVC56F_MEM_OP_A_TLB_INVALIDATE_INVAL_SCOPE_LINK_TLBS                 1
125 #define NVC56F_MEM_OP_A_TLB_INVALIDATE_INVAL_SCOPE_NON_LINK_TLBS             2
126 #define NVC56F_MEM_OP_A_TLB_INVALIDATE_INVAL_SCOPE_RSVRVD                    3
127 #define NVC56F_MEM_OP_A_TLB_INVALIDATE_CANCEL_MMU_ENGINE_ID                6:0  // only relevant for REPLAY_CANCEL_VA_GLOBAL
128 #define NVC56F_MEM_OP_A_TLB_INVALIDATE_SYSMEMBAR                         11:11
129 #define NVC56F_MEM_OP_A_TLB_INVALIDATE_SYSMEMBAR_EN                 0x00000001
130 #define NVC56F_MEM_OP_A_TLB_INVALIDATE_SYSMEMBAR_DIS                0x00000000
131 #define NVC56F_MEM_OP_A_TLB_INVALIDATE_TARGET_ADDR_LO                    31:12
132 #define NVC56F_MEM_OP_B                                            (0x0000002c)
133 #define NVC56F_MEM_OP_B_TLB_INVALIDATE_TARGET_ADDR_HI                     31:0
134 #define NVC56F_MEM_OP_C                                            (0x00000030)
135 #define NVC56F_MEM_OP_C_MEMBAR_TYPE                                        2:0
136 #define NVC56F_MEM_OP_C_MEMBAR_TYPE_SYS_MEMBAR                      0x00000000
137 #define NVC56F_MEM_OP_C_MEMBAR_TYPE_MEMBAR                          0x00000001
138 #define NVC56F_MEM_OP_C_TLB_INVALIDATE_PDB                                 0:0
139 #define NVC56F_MEM_OP_C_TLB_INVALIDATE_PDB_ONE                      0x00000000
140 #define NVC56F_MEM_OP_C_TLB_INVALIDATE_PDB_ALL                      0x00000001  // Probably nonsensical for MMU_TLB_INVALIDATE_TARGETED
141 #define NVC56F_MEM_OP_C_TLB_INVALIDATE_GPC                                 1:1
142 #define NVC56F_MEM_OP_C_TLB_INVALIDATE_GPC_ENABLE                   0x00000000
143 #define NVC56F_MEM_OP_C_TLB_INVALIDATE_GPC_DISABLE                  0x00000001
144 #define NVC56F_MEM_OP_C_TLB_INVALIDATE_REPLAY                              4:2  // only relevant if GPC ENABLE
145 #define NVC56F_MEM_OP_C_TLB_INVALIDATE_REPLAY_NONE                  0x00000000
146 #define NVC56F_MEM_OP_C_TLB_INVALIDATE_REPLAY_START                 0x00000001
147 #define NVC56F_MEM_OP_C_TLB_INVALIDATE_REPLAY_START_ACK_ALL         0x00000002
148 #define NVC56F_MEM_OP_C_TLB_INVALIDATE_REPLAY_CANCEL_TARGETED       0x00000003
149 #define NVC56F_MEM_OP_C_TLB_INVALIDATE_REPLAY_CANCEL_GLOBAL         0x00000004
150 #define NVC56F_MEM_OP_C_TLB_INVALIDATE_REPLAY_CANCEL_VA_GLOBAL      0x00000005
151 #define NVC56F_MEM_OP_C_TLB_INVALIDATE_ACK_TYPE                            6:5  // only relevant if GPC ENABLE
152 #define NVC56F_MEM_OP_C_TLB_INVALIDATE_ACK_TYPE_NONE                0x00000000
153 #define NVC56F_MEM_OP_C_TLB_INVALIDATE_ACK_TYPE_GLOBALLY            0x00000001
154 #define NVC56F_MEM_OP_C_TLB_INVALIDATE_ACK_TYPE_INTRANODE           0x00000002
155 #define NVC56F_MEM_OP_C_TLB_INVALIDATE_ACCESS_TYPE                         9:7 //only relevant for REPLAY_CANCEL_VA_GLOBAL
156 #define NVC56F_MEM_OP_C_TLB_INVALIDATE_ACCESS_TYPE_VIRT_READ                 0
157 #define NVC56F_MEM_OP_C_TLB_INVALIDATE_ACCESS_TYPE_VIRT_WRITE                1
158 #define NVC56F_MEM_OP_C_TLB_INVALIDATE_ACCESS_TYPE_VIRT_ATOMIC_STRONG        2
159 #define NVC56F_MEM_OP_C_TLB_INVALIDATE_ACCESS_TYPE_VIRT_RSVRVD               3
160 #define NVC56F_MEM_OP_C_TLB_INVALIDATE_ACCESS_TYPE_VIRT_ATOMIC_WEAK          4
161 #define NVC56F_MEM_OP_C_TLB_INVALIDATE_ACCESS_TYPE_VIRT_ATOMIC_ALL           5
162 #define NVC56F_MEM_OP_C_TLB_INVALIDATE_ACCESS_TYPE_VIRT_WRITE_AND_ATOMIC     6
163 #define NVC56F_MEM_OP_C_TLB_INVALIDATE_ACCESS_TYPE_VIRT_ALL                  7
164 #define NVC56F_MEM_OP_C_TLB_INVALIDATE_PAGE_TABLE_LEVEL                    9:7  // Invalidate affects this level and all below
165 #define NVC56F_MEM_OP_C_TLB_INVALIDATE_PAGE_TABLE_LEVEL_ALL         0x00000000  // Invalidate tlb caches at all levels of the page table
166 #define NVC56F_MEM_OP_C_TLB_INVALIDATE_PAGE_TABLE_LEVEL_PTE_ONLY    0x00000001
167 #define NVC56F_MEM_OP_C_TLB_INVALIDATE_PAGE_TABLE_LEVEL_UP_TO_PDE0  0x00000002
168 #define NVC56F_MEM_OP_C_TLB_INVALIDATE_PAGE_TABLE_LEVEL_UP_TO_PDE1  0x00000003
169 #define NVC56F_MEM_OP_C_TLB_INVALIDATE_PAGE_TABLE_LEVEL_UP_TO_PDE2  0x00000004
170 #define NVC56F_MEM_OP_C_TLB_INVALIDATE_PAGE_TABLE_LEVEL_UP_TO_PDE3  0x00000005
171 #define NVC56F_MEM_OP_C_TLB_INVALIDATE_PAGE_TABLE_LEVEL_UP_TO_PDE4  0x00000006
172 #define NVC56F_MEM_OP_C_TLB_INVALIDATE_PAGE_TABLE_LEVEL_UP_TO_PDE5  0x00000007
173 #define NVC56F_MEM_OP_C_TLB_INVALIDATE_PDB_APERTURE                          11:10  // only relevant if PDB_ONE
174 #define NVC56F_MEM_OP_C_TLB_INVALIDATE_PDB_APERTURE_VID_MEM             0x00000000
175 #define NVC56F_MEM_OP_C_TLB_INVALIDATE_PDB_APERTURE_SYS_MEM_COHERENT    0x00000002
176 #define NVC56F_MEM_OP_C_TLB_INVALIDATE_PDB_APERTURE_SYS_MEM_NONCOHERENT 0x00000003
177 #define NVC56F_MEM_OP_C_TLB_INVALIDATE_PDB_ADDR_LO                       31:12  // only relevant if PDB_ONE
178 #define NVC56F_MEM_OP_C_ACCESS_COUNTER_CLR_TARGETED_NOTIFY_TAG            19:0
179 // MEM_OP_D MUST be preceded by MEM_OPs A-C.
180 #define NVC56F_MEM_OP_D                                            (0x00000034)
181 #define NVC56F_MEM_OP_D_TLB_INVALIDATE_PDB_ADDR_HI                        26:0  // only relevant if PDB_ONE
182 #define NVC56F_MEM_OP_D_OPERATION                                        31:27
183 #define NVC56F_MEM_OP_D_OPERATION_MEMBAR                            0x00000005
184 #define NVC56F_MEM_OP_D_OPERATION_MMU_TLB_INVALIDATE                0x00000009
185 #define NVC56F_MEM_OP_D_OPERATION_MMU_TLB_INVALIDATE_TARGETED       0x0000000a
186 #define NVC56F_MEM_OP_D_OPERATION_L2_PEERMEM_INVALIDATE             0x0000000d
187 #define NVC56F_MEM_OP_D_OPERATION_L2_SYSMEM_INVALIDATE              0x0000000e
188 // CLEAN_LINES is an alias for Tegra/GPU IP usage
189 #define NVC56F_MEM_OP_B_OPERATION_L2_INVALIDATE_CLEAN_LINES         0x0000000e
190 #define NVC56F_MEM_OP_D_OPERATION_L2_CLEAN_COMPTAGS                 0x0000000f
191 #define NVC56F_MEM_OP_D_OPERATION_L2_FLUSH_DIRTY                    0x00000010
192 #define NVC56F_MEM_OP_D_OPERATION_L2_WAIT_FOR_SYS_PENDING_READS     0x00000015
193 #define NVC56F_MEM_OP_D_OPERATION_ACCESS_COUNTER_CLR                0x00000016
194 #define NVC56F_MEM_OP_D_ACCESS_COUNTER_CLR_TYPE                            1:0
195 #define NVC56F_MEM_OP_D_ACCESS_COUNTER_CLR_TYPE_MIMC                0x00000000
196 #define NVC56F_MEM_OP_D_ACCESS_COUNTER_CLR_TYPE_MOMC                0x00000001
197 #define NVC56F_MEM_OP_D_ACCESS_COUNTER_CLR_TYPE_ALL                 0x00000002
198 #define NVC56F_MEM_OP_D_ACCESS_COUNTER_CLR_TYPE_TARGETED            0x00000003
199 #define NVC56F_MEM_OP_D_ACCESS_COUNTER_CLR_TARGETED_TYPE                   2:2
200 #define NVC56F_MEM_OP_D_ACCESS_COUNTER_CLR_TARGETED_TYPE_MIMC       0x00000000
201 #define NVC56F_MEM_OP_D_ACCESS_COUNTER_CLR_TARGETED_TYPE_MOMC       0x00000001
202 #define NVC56F_MEM_OP_D_ACCESS_COUNTER_CLR_TARGETED_BANK                   6:3
203 #define NVC56F_SET_REFERENCE                                       (0x00000050)
204 #define NVC56F_SET_REFERENCE_COUNT                                        31:0
205 #define NVC56F_SEM_ADDR_LO                                         (0x0000005c)
206 #define NVC56F_SEM_ADDR_LO_OFFSET                                         31:2
207 #define NVC56F_SEM_ADDR_HI                                         (0x00000060)
208 #define NVC56F_SEM_ADDR_HI_OFFSET                                          7:0
209 #define NVC56F_SEM_PAYLOAD_LO                                      (0x00000064)
210 #define NVC56F_SEM_PAYLOAD_LO_PAYLOAD                                     31:0
211 #define NVC56F_SEM_PAYLOAD_HI                                      (0x00000068)
212 #define NVC56F_SEM_PAYLOAD_HI_PAYLOAD                                     31:0
213 #define NVC56F_SEM_EXECUTE                                         (0x0000006c)
214 #define NVC56F_SEM_EXECUTE_OPERATION                                       2:0
215 #define NVC56F_SEM_EXECUTE_OPERATION_ACQUIRE                        0x00000000
216 #define NVC56F_SEM_EXECUTE_OPERATION_RELEASE                        0x00000001
217 #define NVC56F_SEM_EXECUTE_OPERATION_ACQ_STRICT_GEQ                 0x00000002
218 #define NVC56F_SEM_EXECUTE_OPERATION_ACQ_CIRC_GEQ                   0x00000003
219 #define NVC56F_SEM_EXECUTE_OPERATION_ACQ_AND                        0x00000004
220 #define NVC56F_SEM_EXECUTE_OPERATION_ACQ_NOR                        0x00000005
221 #define NVC56F_SEM_EXECUTE_OPERATION_REDUCTION                      0x00000006
222 #define NVC56F_SEM_EXECUTE_ACQUIRE_SWITCH_TSG                            12:12
223 #define NVC56F_SEM_EXECUTE_ACQUIRE_SWITCH_TSG_DIS                   0x00000000
224 #define NVC56F_SEM_EXECUTE_ACQUIRE_SWITCH_TSG_EN                    0x00000001
225 #define NVC56F_SEM_EXECUTE_RELEASE_WFI                                   20:20
226 #define NVC56F_SEM_EXECUTE_RELEASE_WFI_DIS                          0x00000000
227 #define NVC56F_SEM_EXECUTE_RELEASE_WFI_EN                           0x00000001
228 #define NVC56F_SEM_EXECUTE_PAYLOAD_SIZE                                  24:24
229 #define NVC56F_SEM_EXECUTE_PAYLOAD_SIZE_32BIT                       0x00000000
230 #define NVC56F_SEM_EXECUTE_PAYLOAD_SIZE_64BIT                       0x00000001
231 #define NVC56F_SEM_EXECUTE_RELEASE_TIMESTAMP                             25:25
232 #define NVC56F_SEM_EXECUTE_RELEASE_TIMESTAMP_DIS                    0x00000000
233 #define NVC56F_SEM_EXECUTE_RELEASE_TIMESTAMP_EN                     0x00000001
234 #define NVC56F_SEM_EXECUTE_REDUCTION                                     30:27
235 #define NVC56F_SEM_EXECUTE_REDUCTION_IMIN                           0x00000000
236 #define NVC56F_SEM_EXECUTE_REDUCTION_IMAX                           0x00000001
237 #define NVC56F_SEM_EXECUTE_REDUCTION_IXOR                           0x00000002
238 #define NVC56F_SEM_EXECUTE_REDUCTION_IAND                           0x00000003
239 #define NVC56F_SEM_EXECUTE_REDUCTION_IOR                            0x00000004
240 #define NVC56F_SEM_EXECUTE_REDUCTION_IADD                           0x00000005
241 #define NVC56F_SEM_EXECUTE_REDUCTION_INC                            0x00000006
242 #define NVC56F_SEM_EXECUTE_REDUCTION_DEC                            0x00000007
243 #define NVC56F_SEM_EXECUTE_REDUCTION_FORMAT                              31:31
244 #define NVC56F_SEM_EXECUTE_REDUCTION_FORMAT_SIGNED                  0x00000000
245 #define NVC56F_SEM_EXECUTE_REDUCTION_FORMAT_UNSIGNED                0x00000001
246 #define NVC56F_WFI                                                 (0x00000078)
247 #define NVC56F_WFI_SCOPE                                                   0:0
248 #define NVC56F_WFI_SCOPE_CURRENT_SCG_TYPE                           0x00000000
249 #define NVC56F_WFI_SCOPE_CURRENT_VEID                               0x00000000
250 #define NVC56F_WFI_SCOPE_ALL                                        0x00000001
251 #define NVC56F_YIELD                                               (0x00000080)
252 #define NVC56F_YIELD_OP                                                    1:0
253 #define NVC56F_YIELD_OP_NOP                                         0x00000000
254 #define NVC56F_YIELD_OP_TSG                                         0x00000003
255 #define NVC56F_CLEAR_FAULTED                                       (0x00000084)
256 // Note: RM provides the HANDLE as an opaque value; the internal detail fields
257 // are intentionally not exposed to the driver through these defines.
258 #define NVC56F_CLEAR_FAULTED_HANDLE                                       30:0
259 #define NVC56F_CLEAR_FAULTED_TYPE                                        31:31
260 #define NVC56F_CLEAR_FAULTED_TYPE_PBDMA_FAULTED                     0x00000000
261 #define NVC56F_CLEAR_FAULTED_TYPE_ENG_FAULTED                       0x00000001
262 
263 
264 /* GPFIFO entry format */
265 #define NVC56F_GP_ENTRY__SIZE                                   8
266 #define NVC56F_GP_ENTRY0_FETCH                                0:0
267 #define NVC56F_GP_ENTRY0_FETCH_UNCONDITIONAL           0x00000000
268 #define NVC56F_GP_ENTRY0_FETCH_CONDITIONAL             0x00000001
269 #define NVC56F_GP_ENTRY0_GET                                 31:2
270 #define NVC56F_GP_ENTRY0_OPERAND                             31:0
271 #define NVC56F_GP_ENTRY1_GET_HI                               7:0
272 #define NVC56F_GP_ENTRY1_LEVEL                                9:9
273 #define NVC56F_GP_ENTRY1_LEVEL_MAIN                    0x00000000
274 #define NVC56F_GP_ENTRY1_LEVEL_SUBROUTINE              0x00000001
275 #define NVC56F_GP_ENTRY1_LENGTH                             30:10
276 #define NVC56F_GP_ENTRY1_SYNC                               31:31
277 #define NVC56F_GP_ENTRY1_SYNC_PROCEED                  0x00000000
278 #define NVC56F_GP_ENTRY1_SYNC_WAIT                     0x00000001
279 #define NVC56F_GP_ENTRY1_OPCODE                               7:0
280 #define NVC56F_GP_ENTRY1_OPCODE_NOP                    0x00000000
281 #define NVC56F_GP_ENTRY1_OPCODE_ILLEGAL                0x00000001
282 #define NVC56F_GP_ENTRY1_OPCODE_GP_CRC                 0x00000002
283 #define NVC56F_GP_ENTRY1_OPCODE_PB_CRC                 0x00000003
284 
285 /* dma method formats */
286 #define NVC56F_DMA_METHOD_ADDRESS_OLD                              12:2
287 #define NVC56F_DMA_METHOD_ADDRESS                                  11:0
288 #define NVC56F_DMA_SUBDEVICE_MASK                                  15:4
289 #define NVC56F_DMA_METHOD_SUBCHANNEL                               15:13
290 #define NVC56F_DMA_TERT_OP                                         17:16
291 #define NVC56F_DMA_TERT_OP_GRP0_INC_METHOD                         (0x00000000)
292 #define NVC56F_DMA_TERT_OP_GRP0_SET_SUB_DEV_MASK                   (0x00000001)
293 #define NVC56F_DMA_TERT_OP_GRP0_STORE_SUB_DEV_MASK                 (0x00000002)
294 #define NVC56F_DMA_TERT_OP_GRP0_USE_SUB_DEV_MASK                   (0x00000003)
295 #define NVC56F_DMA_TERT_OP_GRP2_NON_INC_METHOD                     (0x00000000)
296 #define NVC56F_DMA_METHOD_COUNT_OLD                                28:18
297 #define NVC56F_DMA_METHOD_COUNT                                    28:16
298 #define NVC56F_DMA_IMMD_DATA                                       28:16
299 #define NVC56F_DMA_SEC_OP                                          31:29
300 #define NVC56F_DMA_SEC_OP_GRP0_USE_TERT                            (0x00000000)
301 #define NVC56F_DMA_SEC_OP_INC_METHOD                               (0x00000001)
302 #define NVC56F_DMA_SEC_OP_GRP2_USE_TERT                            (0x00000002)
303 #define NVC56F_DMA_SEC_OP_NON_INC_METHOD                           (0x00000003)
304 #define NVC56F_DMA_SEC_OP_IMMD_DATA_METHOD                         (0x00000004)
305 #define NVC56F_DMA_SEC_OP_ONE_INC                                  (0x00000005)
306 #define NVC56F_DMA_SEC_OP_RESERVED6                                (0x00000006)
307 #define NVC56F_DMA_SEC_OP_END_PB_SEGMENT                           (0x00000007)
308 /* dma incrementing method format */
309 #define NVC56F_DMA_INCR_ADDRESS                                    11:0
310 #define NVC56F_DMA_INCR_SUBCHANNEL                                 15:13
311 #define NVC56F_DMA_INCR_COUNT                                      28:16
312 #define NVC56F_DMA_INCR_OPCODE                                     31:29
313 #define NVC56F_DMA_INCR_OPCODE_VALUE                               (0x00000001)
314 #define NVC56F_DMA_INCR_DATA                                       31:0
315 /* dma non-incrementing method format */
316 #define NVC56F_DMA_NONINCR_ADDRESS                                 11:0
317 #define NVC56F_DMA_NONINCR_SUBCHANNEL                              15:13
318 #define NVC56F_DMA_NONINCR_COUNT                                   28:16
319 #define NVC56F_DMA_NONINCR_OPCODE                                  31:29
320 #define NVC56F_DMA_NONINCR_OPCODE_VALUE                            (0x00000003)
321 #define NVC56F_DMA_NONINCR_DATA                                    31:0
322 /* dma increment-once method format */
323 #define NVC56F_DMA_ONEINCR_ADDRESS                                 11:0
324 #define NVC56F_DMA_ONEINCR_SUBCHANNEL                              15:13
325 #define NVC56F_DMA_ONEINCR_COUNT                                   28:16
326 #define NVC56F_DMA_ONEINCR_OPCODE                                  31:29
327 #define NVC56F_DMA_ONEINCR_OPCODE_VALUE                            (0x00000005)
328 #define NVC56F_DMA_ONEINCR_DATA                                    31:0
329 /* dma no-operation format */
330 #define NVC56F_DMA_NOP                                             (0x00000000)
331 /* dma immediate-data format */
332 #define NVC56F_DMA_IMMD_ADDRESS                                    11:0
333 #define NVC56F_DMA_IMMD_SUBCHANNEL                                 15:13
334 #define NVC56F_DMA_IMMD_DATA                                       28:16
335 #define NVC56F_DMA_IMMD_OPCODE                                     31:29
336 #define NVC56F_DMA_IMMD_OPCODE_VALUE                               (0x00000004)
337 /* dma set sub-device mask format */
338 #define NVC56F_DMA_SET_SUBDEVICE_MASK_VALUE                        15:4
339 #define NVC56F_DMA_SET_SUBDEVICE_MASK_OPCODE                       31:16
340 #define NVC56F_DMA_SET_SUBDEVICE_MASK_OPCODE_VALUE                 (0x00000001)
341 /* dma store sub-device mask format */
342 #define NVC56F_DMA_STORE_SUBDEVICE_MASK_VALUE                      15:4
343 #define NVC56F_DMA_STORE_SUBDEVICE_MASK_OPCODE                     31:16
344 #define NVC56F_DMA_STORE_SUBDEVICE_MASK_OPCODE_VALUE               (0x00000002)
345 /* dma use sub-device mask format */
346 #define NVC56F_DMA_USE_SUBDEVICE_MASK_OPCODE                       31:16
347 #define NVC56F_DMA_USE_SUBDEVICE_MASK_OPCODE_VALUE                 (0x00000003)
348 /* dma end-segment format */
349 #define NVC56F_DMA_ENDSEG_OPCODE                                   31:29
350 #define NVC56F_DMA_ENDSEG_OPCODE_VALUE                             (0x00000007)
351 /* dma legacy incrementing/non-incrementing formats */
352 #define NVC56F_DMA_ADDRESS                                         12:2
353 #define NVC56F_DMA_SUBCH                                           15:13
354 #define NVC56F_DMA_OPCODE3                                         17:16
355 #define NVC56F_DMA_OPCODE3_NONE                                    (0x00000000)
356 #define NVC56F_DMA_COUNT                                           28:18
357 #define NVC56F_DMA_OPCODE                                          31:29
358 #define NVC56F_DMA_OPCODE_METHOD                                   (0x00000000)
359 #define NVC56F_DMA_OPCODE_NONINC_METHOD                            (0x00000002)
360 #define NVC56F_DMA_DATA                                            31:0
361 
362 #ifdef __cplusplus
363 };     /* extern "C" */
364 #endif
365 
366 #endif /* _clc56f_h_ */
367