1 /*******************************************************************************
2     Copyright (c) 2019, 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 _cla0b5_h_
25 #define _cla0b5_h_
26 
27 #define NVA0B5_SET_SRC_PHYS_MODE                                                (0x00000260)
28 #define NVA0B5_SET_SRC_PHYS_MODE_TARGET                                         1:0
29 #define NVA0B5_SET_SRC_PHYS_MODE_TARGET_LOCAL_FB                                (0x00000000)
30 #define NVA0B5_SET_SRC_PHYS_MODE_TARGET_COHERENT_SYSMEM                         (0x00000001)
31 #define NVA0B5_SET_SRC_PHYS_MODE_TARGET_NONCOHERENT_SYSMEM                      (0x00000002)
32 #define NVA0B5_SET_DST_PHYS_MODE                                                (0x00000264)
33 #define NVA0B5_SET_DST_PHYS_MODE_TARGET                                         1:0
34 #define NVA0B5_SET_DST_PHYS_MODE_TARGET_LOCAL_FB                                (0x00000000)
35 #define NVA0B5_SET_DST_PHYS_MODE_TARGET_COHERENT_SYSMEM                         (0x00000001)
36 #define NVA0B5_SET_DST_PHYS_MODE_TARGET_NONCOHERENT_SYSMEM                      (0x00000002)
37 #define NVA0B5_LAUNCH_DMA                                                       (0x00000300)
38 #define NVA0B5_LAUNCH_DMA_DATA_TRANSFER_TYPE                                    1:0
39 #define NVA0B5_LAUNCH_DMA_DATA_TRANSFER_TYPE_NONE                               (0x00000000)
40 #define NVA0B5_LAUNCH_DMA_DATA_TRANSFER_TYPE_PIPELINED                          (0x00000001)
41 #define NVA0B5_LAUNCH_DMA_DATA_TRANSFER_TYPE_NON_PIPELINED                      (0x00000002)
42 #define NVA0B5_LAUNCH_DMA_FLUSH_ENABLE                                          2:2
43 #define NVA0B5_LAUNCH_DMA_FLUSH_ENABLE_FALSE                                    (0x00000000)
44 #define NVA0B5_LAUNCH_DMA_FLUSH_ENABLE_TRUE                                     (0x00000001)
45 #define NVA0B5_LAUNCH_DMA_SEMAPHORE_TYPE                                        4:3
46 #define NVA0B5_LAUNCH_DMA_SEMAPHORE_TYPE_NONE                                   (0x00000000)
47 #define NVA0B5_LAUNCH_DMA_SEMAPHORE_TYPE_RELEASE_ONE_WORD_SEMAPHORE             (0x00000001)
48 #define NVA0B5_LAUNCH_DMA_SEMAPHORE_TYPE_RELEASE_FOUR_WORD_SEMAPHORE            (0x00000002)
49 #define NVA0B5_LAUNCH_DMA_INTERRUPT_TYPE                                        6:5
50 #define NVA0B5_LAUNCH_DMA_INTERRUPT_TYPE_NONE                                   (0x00000000)
51 #define NVA0B5_LAUNCH_DMA_INTERRUPT_TYPE_BLOCKING                               (0x00000001)
52 #define NVA0B5_LAUNCH_DMA_INTERRUPT_TYPE_NON_BLOCKING                           (0x00000002)
53 #define NVA0B5_LAUNCH_DMA_SRC_MEMORY_LAYOUT                                     7:7
54 #define NVA0B5_LAUNCH_DMA_SRC_MEMORY_LAYOUT_BLOCKLINEAR                         (0x00000000)
55 #define NVA0B5_LAUNCH_DMA_SRC_MEMORY_LAYOUT_PITCH                               (0x00000001)
56 #define NVA0B5_LAUNCH_DMA_DST_MEMORY_LAYOUT                                     8:8
57 #define NVA0B5_LAUNCH_DMA_DST_MEMORY_LAYOUT_BLOCKLINEAR                         (0x00000000)
58 #define NVA0B5_LAUNCH_DMA_DST_MEMORY_LAYOUT_PITCH                               (0x00000001)
59 #define NVA0B5_LAUNCH_DMA_MULTI_LINE_ENABLE                                     9:9
60 #define NVA0B5_LAUNCH_DMA_MULTI_LINE_ENABLE_FALSE                               (0x00000000)
61 #define NVA0B5_LAUNCH_DMA_MULTI_LINE_ENABLE_TRUE                                (0x00000001)
62 #define NVA0B5_LAUNCH_DMA_REMAP_ENABLE                                          10:10
63 #define NVA0B5_LAUNCH_DMA_REMAP_ENABLE_FALSE                                    (0x00000000)
64 #define NVA0B5_LAUNCH_DMA_REMAP_ENABLE_TRUE                                     (0x00000001)
65 #define NVA0B5_LAUNCH_DMA_BYPASS_L2                                             11:11
66 #define NVA0B5_LAUNCH_DMA_BYPASS_L2_USE_PTE_SETTING                             (0x00000000)
67 #define NVA0B5_LAUNCH_DMA_BYPASS_L2_FORCE_VOLATILE                              (0x00000001)
68 #define NVA0B5_LAUNCH_DMA_SRC_TYPE                                              12:12
69 #define NVA0B5_LAUNCH_DMA_SRC_TYPE_VIRTUAL                                      (0x00000000)
70 #define NVA0B5_LAUNCH_DMA_SRC_TYPE_PHYSICAL                                     (0x00000001)
71 #define NVA0B5_LAUNCH_DMA_DST_TYPE                                              13:13
72 #define NVA0B5_LAUNCH_DMA_DST_TYPE_VIRTUAL                                      (0x00000000)
73 #define NVA0B5_LAUNCH_DMA_DST_TYPE_PHYSICAL                                     (0x00000001)
74 #define NVA0B5_LAUNCH_DMA_SEMAPHORE_REDUCTION                                   17:14
75 #define NVA0B5_LAUNCH_DMA_SEMAPHORE_REDUCTION_IMIN                              (0x00000000)
76 #define NVA0B5_LAUNCH_DMA_SEMAPHORE_REDUCTION_IMAX                              (0x00000001)
77 #define NVA0B5_LAUNCH_DMA_SEMAPHORE_REDUCTION_IXOR                              (0x00000002)
78 #define NVA0B5_LAUNCH_DMA_SEMAPHORE_REDUCTION_IAND                              (0x00000003)
79 #define NVA0B5_LAUNCH_DMA_SEMAPHORE_REDUCTION_IOR                               (0x00000004)
80 #define NVA0B5_LAUNCH_DMA_SEMAPHORE_REDUCTION_IADD                              (0x00000005)
81 #define NVA0B5_LAUNCH_DMA_SEMAPHORE_REDUCTION_INC                               (0x00000006)
82 #define NVA0B5_LAUNCH_DMA_SEMAPHORE_REDUCTION_DEC                               (0x00000007)
83 #define NVA0B5_LAUNCH_DMA_SEMAPHORE_REDUCTION_FADD                              (0x0000000A)
84 #define NVA0B5_LAUNCH_DMA_SEMAPHORE_REDUCTION_FMIN                              (0x0000000B)
85 #define NVA0B5_LAUNCH_DMA_SEMAPHORE_REDUCTION_FMAX                              (0x0000000C)
86 #define NVA0B5_LAUNCH_DMA_SEMAPHORE_REDUCTION_FMUL                              (0x0000000D)
87 #define NVA0B5_LAUNCH_DMA_SEMAPHORE_REDUCTION_IMUL                              (0x0000000E)
88 #define NVA0B5_LAUNCH_DMA_SEMAPHORE_REDUCTION_SIGN                              18:18
89 #define NVA0B5_LAUNCH_DMA_SEMAPHORE_REDUCTION_SIGN_SIGNED                       (0x00000000)
90 #define NVA0B5_LAUNCH_DMA_SEMAPHORE_REDUCTION_SIGN_UNSIGNED                     (0x00000001)
91 #define NVA0B5_LAUNCH_DMA_SEMAPHORE_REDUCTION_ENABLE                            19:19
92 #define NVA0B5_LAUNCH_DMA_SEMAPHORE_REDUCTION_ENABLE_FALSE                      (0x00000000)
93 #define NVA0B5_LAUNCH_DMA_SEMAPHORE_REDUCTION_ENABLE_TRUE                       (0x00000001)
94 #define NVA0B5_OFFSET_IN_UPPER                                                  (0x00000400)
95 #define NVA0B5_OFFSET_IN_UPPER_UPPER                                            7:0
96 #define NVA0B5_OFFSET_IN_LOWER                                                  (0x00000404)
97 #define NVA0B5_OFFSET_IN_LOWER_VALUE                                            31:0
98 #define NVA0B5_OFFSET_OUT_UPPER                                                 (0x00000408)
99 #define NVA0B5_OFFSET_OUT_UPPER_UPPER                                           7:0
100 #define NVA0B5_OFFSET_OUT_LOWER                                                 (0x0000040C)
101 #define NVA0B5_OFFSET_OUT_LOWER_VALUE                                           31:0
102 #define NVA0B5_PITCH_IN                                                         (0x00000410)
103 #define NVA0B5_PITCH_IN_VALUE                                                   31:0
104 #define NVA0B5_PITCH_OUT                                                        (0x00000414)
105 #define NVA0B5_PITCH_OUT_VALUE                                                  31:0
106 #define NVA0B5_LINE_LENGTH_IN                                                   (0x00000418)
107 #define NVA0B5_LINE_LENGTH_IN_VALUE                                             31:0
108 #define NVA0B5_LINE_COUNT                                                       (0x0000041C)
109 #define NVA0B5_LINE_COUNT_VALUE                                                 31:0
110 #define NVA0B5_SET_REMAP_CONST_A                                                (0x00000700)
111 #define NVA0B5_SET_REMAP_CONST_A_V                                              31:0
112 #define NVA0B5_SET_REMAP_CONST_B                                                (0x00000704)
113 #define NVA0B5_SET_REMAP_CONST_B_V                                              31:0
114 #define NVA0B5_SET_REMAP_COMPONENTS                                             (0x00000708)
115 #define NVA0B5_SET_REMAP_COMPONENTS_DST_X                                       2:0
116 #define NVA0B5_SET_REMAP_COMPONENTS_DST_X_SRC_X                                 (0x00000000)
117 #define NVA0B5_SET_REMAP_COMPONENTS_DST_X_SRC_Y                                 (0x00000001)
118 #define NVA0B5_SET_REMAP_COMPONENTS_DST_X_SRC_Z                                 (0x00000002)
119 #define NVA0B5_SET_REMAP_COMPONENTS_DST_X_SRC_W                                 (0x00000003)
120 #define NVA0B5_SET_REMAP_COMPONENTS_DST_X_CONST_A                               (0x00000004)
121 #define NVA0B5_SET_REMAP_COMPONENTS_DST_X_CONST_B                               (0x00000005)
122 #define NVA0B5_SET_REMAP_COMPONENTS_DST_X_NO_WRITE                              (0x00000006)
123 #define NVA0B5_SET_REMAP_COMPONENTS_DST_Y                                       6:4
124 #define NVA0B5_SET_REMAP_COMPONENTS_DST_Y_SRC_X                                 (0x00000000)
125 #define NVA0B5_SET_REMAP_COMPONENTS_DST_Y_SRC_Y                                 (0x00000001)
126 #define NVA0B5_SET_REMAP_COMPONENTS_DST_Y_SRC_Z                                 (0x00000002)
127 #define NVA0B5_SET_REMAP_COMPONENTS_DST_Y_SRC_W                                 (0x00000003)
128 #define NVA0B5_SET_REMAP_COMPONENTS_DST_Y_CONST_A                               (0x00000004)
129 #define NVA0B5_SET_REMAP_COMPONENTS_DST_Y_CONST_B                               (0x00000005)
130 #define NVA0B5_SET_REMAP_COMPONENTS_DST_Y_NO_WRITE                              (0x00000006)
131 #define NVA0B5_SET_REMAP_COMPONENTS_DST_Z                                       10:8
132 #define NVA0B5_SET_REMAP_COMPONENTS_DST_Z_SRC_X                                 (0x00000000)
133 #define NVA0B5_SET_REMAP_COMPONENTS_DST_Z_SRC_Y                                 (0x00000001)
134 #define NVA0B5_SET_REMAP_COMPONENTS_DST_Z_SRC_Z                                 (0x00000002)
135 #define NVA0B5_SET_REMAP_COMPONENTS_DST_Z_SRC_W                                 (0x00000003)
136 #define NVA0B5_SET_REMAP_COMPONENTS_DST_Z_CONST_A                               (0x00000004)
137 #define NVA0B5_SET_REMAP_COMPONENTS_DST_Z_CONST_B                               (0x00000005)
138 #define NVA0B5_SET_REMAP_COMPONENTS_DST_Z_NO_WRITE                              (0x00000006)
139 #define NVA0B5_SET_REMAP_COMPONENTS_DST_W                                       14:12
140 #define NVA0B5_SET_REMAP_COMPONENTS_DST_W_SRC_X                                 (0x00000000)
141 #define NVA0B5_SET_REMAP_COMPONENTS_DST_W_SRC_Y                                 (0x00000001)
142 #define NVA0B5_SET_REMAP_COMPONENTS_DST_W_SRC_Z                                 (0x00000002)
143 #define NVA0B5_SET_REMAP_COMPONENTS_DST_W_SRC_W                                 (0x00000003)
144 #define NVA0B5_SET_REMAP_COMPONENTS_DST_W_CONST_A                               (0x00000004)
145 #define NVA0B5_SET_REMAP_COMPONENTS_DST_W_CONST_B                               (0x00000005)
146 #define NVA0B5_SET_REMAP_COMPONENTS_DST_W_NO_WRITE                              (0x00000006)
147 #define NVA0B5_SET_REMAP_COMPONENTS_COMPONENT_SIZE                              17:16
148 #define NVA0B5_SET_REMAP_COMPONENTS_COMPONENT_SIZE_ONE                          (0x00000000)
149 #define NVA0B5_SET_REMAP_COMPONENTS_COMPONENT_SIZE_TWO                          (0x00000001)
150 #define NVA0B5_SET_REMAP_COMPONENTS_COMPONENT_SIZE_THREE                        (0x00000002)
151 #define NVA0B5_SET_REMAP_COMPONENTS_COMPONENT_SIZE_FOUR                         (0x00000003)
152 #define NVA0B5_SET_REMAP_COMPONENTS_NUM_SRC_COMPONENTS                          21:20
153 #define NVA0B5_SET_REMAP_COMPONENTS_NUM_SRC_COMPONENTS_ONE                      (0x00000000)
154 #define NVA0B5_SET_REMAP_COMPONENTS_NUM_SRC_COMPONENTS_TWO                      (0x00000001)
155 #define NVA0B5_SET_REMAP_COMPONENTS_NUM_SRC_COMPONENTS_THREE                    (0x00000002)
156 #define NVA0B5_SET_REMAP_COMPONENTS_NUM_SRC_COMPONENTS_FOUR                     (0x00000003)
157 #define NVA0B5_SET_REMAP_COMPONENTS_NUM_DST_COMPONENTS                          25:24
158 #define NVA0B5_SET_REMAP_COMPONENTS_NUM_DST_COMPONENTS_ONE                      (0x00000000)
159 #define NVA0B5_SET_REMAP_COMPONENTS_NUM_DST_COMPONENTS_TWO                      (0x00000001)
160 #define NVA0B5_SET_REMAP_COMPONENTS_NUM_DST_COMPONENTS_THREE                    (0x00000002)
161 #define NVA0B5_SET_REMAP_COMPONENTS_NUM_DST_COMPONENTS_FOUR                     (0x00000003)
162 #endif // _cla0b5_h
163