summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/include/nvhw/class/cl5039.h
blob: 5b2ca337cf2b606c0f075ba28b89378838cc055f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
/*
 * Copyright (c) 2003-2004, NVIDIA CORPORATION. All rights reserved.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 * and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 * DEALINGS IN THE SOFTWARE.
 */

#ifndef _cl_nv50_memory_to_memory_format_h_
#define _cl_nv50_memory_to_memory_format_h_

#define NV5039_SET_OBJECT                                                                                  0x0000
#define NV5039_SET_OBJECT_POINTER                                                                            15:0

#define NV5039_NO_OPERATION                                                                                0x0100
#define NV5039_NO_OPERATION_V                                                                                31:0

#define NV5039_SET_CONTEXT_DMA_NOTIFY                                                                      0x0180
#define NV5039_SET_CONTEXT_DMA_NOTIFY_HANDLE                                                                 31:0

#define NV5039_SET_CONTEXT_DMA_BUFFER_IN                                                                   0x0184
#define NV5039_SET_CONTEXT_DMA_BUFFER_IN_HANDLE                                                              31:0

#define NV5039_SET_CONTEXT_DMA_BUFFER_OUT                                                                  0x0188
#define NV5039_SET_CONTEXT_DMA_BUFFER_OUT_HANDLE                                                             31:0

#define NV5039_SET_SRC_MEMORY_LAYOUT                                                                       0x0200
#define NV5039_SET_SRC_MEMORY_LAYOUT_V                                                                        0:0
#define NV5039_SET_SRC_MEMORY_LAYOUT_V_BLOCKLINEAR                                                     0x00000000
#define NV5039_SET_SRC_MEMORY_LAYOUT_V_PITCH                                                           0x00000001

#define NV5039_SET_SRC_BLOCK_SIZE                                                                          0x0204
#define NV5039_SET_SRC_BLOCK_SIZE_WIDTH                                                                       3:0
#define NV5039_SET_SRC_BLOCK_SIZE_WIDTH_ONE_GOB                                                        0x00000000
#define NV5039_SET_SRC_BLOCK_SIZE_HEIGHT                                                                      7:4
#define NV5039_SET_SRC_BLOCK_SIZE_HEIGHT_ONE_GOB                                                       0x00000000
#define NV5039_SET_SRC_BLOCK_SIZE_HEIGHT_TWO_GOBS                                                      0x00000001
#define NV5039_SET_SRC_BLOCK_SIZE_HEIGHT_FOUR_GOBS                                                     0x00000002
#define NV5039_SET_SRC_BLOCK_SIZE_HEIGHT_EIGHT_GOBS                                                    0x00000003
#define NV5039_SET_SRC_BLOCK_SIZE_HEIGHT_SIXTEEN_GOBS                                                  0x00000004
#define NV5039_SET_SRC_BLOCK_SIZE_HEIGHT_THIRTYTWO_GOBS                                                0x00000005
#define NV5039_SET_SRC_BLOCK_SIZE_DEPTH                                                                      11:8
#define NV5039_SET_SRC_BLOCK_SIZE_DEPTH_ONE_GOB                                                        0x00000000
#define NV5039_SET_SRC_BLOCK_SIZE_DEPTH_TWO_GOBS                                                       0x00000001
#define NV5039_SET_SRC_BLOCK_SIZE_DEPTH_FOUR_GOBS                                                      0x00000002
#define NV5039_SET_SRC_BLOCK_SIZE_DEPTH_EIGHT_GOBS                                                     0x00000003
#define NV5039_SET_SRC_BLOCK_SIZE_DEPTH_SIXTEEN_GOBS                                                   0x00000004
#define NV5039_SET_SRC_BLOCK_SIZE_DEPTH_THIRTYTWO_GOBS                                                 0x00000005

#define NV5039_SET_SRC_WIDTH                                                                               0x0208
#define NV5039_SET_SRC_WIDTH_V                                                                               31:0

#define NV5039_SET_SRC_HEIGHT                                                                              0x020c
#define NV5039_SET_SRC_HEIGHT_V                                                                              31:0

#define NV5039_SET_SRC_DEPTH                                                                               0x0210
#define NV5039_SET_SRC_DEPTH_V                                                                               31:0

#define NV5039_SET_SRC_LAYER                                                                               0x0214
#define NV5039_SET_SRC_LAYER_V                                                                               31:0

#define NV5039_SET_SRC_ORIGIN                                                                              0x0218
#define NV5039_SET_SRC_ORIGIN_X                                                                              15:0
#define NV5039_SET_SRC_ORIGIN_Y                                                                             31:16

#define NV5039_SET_DST_MEMORY_LAYOUT                                                                       0x021c
#define NV5039_SET_DST_MEMORY_LAYOUT_V                                                                        0:0
#define NV5039_SET_DST_MEMORY_LAYOUT_V_BLOCKLINEAR                                                     0x00000000
#define NV5039_SET_DST_MEMORY_LAYOUT_V_PITCH                                                           0x00000001

#define NV5039_SET_DST_BLOCK_SIZE                                                                          0x0220
#define NV5039_SET_DST_BLOCK_SIZE_WIDTH                                                                       3:0
#define NV5039_SET_DST_BLOCK_SIZE_WIDTH_ONE_GOB                                                        0x00000000
#define NV5039_SET_DST_BLOCK_SIZE_HEIGHT                                                                      7:4
#define NV5039_SET_DST_BLOCK_SIZE_HEIGHT_ONE_GOB                                                       0x00000000
#define NV5039_SET_DST_BLOCK_SIZE_HEIGHT_TWO_GOBS                                                      0x00000001
#define NV5039_SET_DST_BLOCK_SIZE_HEIGHT_FOUR_GOBS                                                     0x00000002
#define NV5039_SET_DST_BLOCK_SIZE_HEIGHT_EIGHT_GOBS                                                    0x00000003
#define NV5039_SET_DST_BLOCK_SIZE_HEIGHT_SIXTEEN_GOBS                                                  0x00000004
#define NV5039_SET_DST_BLOCK_SIZE_HEIGHT_THIRTYTWO_GOBS                                                0x00000005
#define NV5039_SET_DST_BLOCK_SIZE_DEPTH                                                                      11:8
#define NV5039_SET_DST_BLOCK_SIZE_DEPTH_ONE_GOB                                                        0x00000000
#define NV5039_SET_DST_BLOCK_SIZE_DEPTH_TWO_GOBS                                                       0x00000001
#define NV5039_SET_DST_BLOCK_SIZE_DEPTH_FOUR_GOBS                                                      0x00000002
#define NV5039_SET_DST_BLOCK_SIZE_DEPTH_EIGHT_GOBS                                                     0x00000003
#define NV5039_SET_DST_BLOCK_SIZE_DEPTH_SIXTEEN_GOBS                                                   0x00000004
#define NV5039_SET_DST_BLOCK_SIZE_DEPTH_THIRTYTWO_GOBS                                                 0x00000005

#define NV5039_SET_DST_WIDTH                                                                               0x0224
#define NV5039_SET_DST_WIDTH_V                                                                               31:0

#define NV5039_SET_DST_HEIGHT                                                                              0x0228
#define NV5039_SET_DST_HEIGHT_V                                                                              31:0

#define NV5039_SET_DST_DEPTH                                                                               0x022c
#define NV5039_SET_DST_DEPTH_V                                                                               31:0

#define NV5039_SET_DST_LAYER                                                                               0x0230
#define NV5039_SET_DST_LAYER_V                                                                               31:0

#define NV5039_SET_DST_ORIGIN                                                                              0x0234
#define NV5039_SET_DST_ORIGIN_X                                                                              15:0
#define NV5039_SET_DST_ORIGIN_Y                                                                             31:16

#define NV5039_OFFSET_IN_UPPER                                                                             0x0238
#define NV5039_OFFSET_IN_UPPER_VALUE                                                                          7:0

#define NV5039_OFFSET_OUT_UPPER                                                                            0x023c
#define NV5039_OFFSET_OUT_UPPER_VALUE                                                                         7:0

#define NV5039_OFFSET_IN                                                                                   0x030c
#define NV5039_OFFSET_IN_VALUE                                                                               31:0

#define NV5039_OFFSET_OUT                                                                                  0x0310
#define NV5039_OFFSET_OUT_VALUE                                                                              31:0

#define NV5039_PITCH_IN                                                                                    0x0314
#define NV5039_PITCH_IN_VALUE                                                                                31:0

#define NV5039_PITCH_OUT                                                                                   0x0318
#define NV5039_PITCH_OUT_VALUE                                                                               31:0

#define NV5039_LINE_LENGTH_IN                                                                              0x031c
#define NV5039_LINE_LENGTH_IN_VALUE                                                                          31:0

#define NV5039_LINE_COUNT                                                                                  0x0320
#define NV5039_LINE_COUNT_VALUE                                                                              31:0

#define NV5039_FORMAT                                                                                      0x0324
#define NV5039_FORMAT_IN                                                                                      7:0
#define NV5039_FORMAT_IN_ONE                                                                           0x00000001
#define NV5039_FORMAT_OUT                                                                                    15:8
#define NV5039_FORMAT_OUT_ONE                                                                          0x00000001

#define NV5039_BUFFER_NOTIFY                                                                               0x0328
#define NV5039_BUFFER_NOTIFY_TYPE                                                                            31:0
#define NV5039_BUFFER_NOTIFY_TYPE_WRITE_ONLY                                                           0x00000000
#define NV5039_BUFFER_NOTIFY_TYPE_WRITE_THEN_AWAKEN                                                    0x00000001
#endif /* _cl_nv50_memory_to_memory_format_h_ */