• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2021 Rockchip Electronics Co., Ltd.
3  * Authors:
4  *  Cerf Yu <cerf.yu@rock-chips.com>
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  *      http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18 
19 #ifndef _RGA_IM2D_HARDWARE_H_
20 #define _RGA_IM2D_HARDWARE_H_
21 
22 #include "rga.h"
23 
24 typedef enum {
25     IM_RGA_HW_VERSION_RGA_V_ERR_INDEX = 0x0,
26     IM_RGA_HW_VERSION_RGA_1_INDEX,
27     IM_RGA_HW_VERSION_RGA_1_PLUS_INDEX,
28     IM_RGA_HW_VERSION_RGA_2_INDEX,
29     IM_RGA_HW_VERSION_RGA_2_LITE0_INDEX,
30     IM_RGA_HW_VERSION_RGA_2_LITE1_INDEX,
31     IM_RGA_HW_VERSION_RGA_2_ENHANCE_INDEX,
32     IM_RGA_HW_VERSION_RGA_3_INDEX,
33     IM_RGA_HW_VERSION_MASK_INDEX,
34 } IM_RGA_HW_VERSION_INDEX;
35 
36 typedef enum {
37     IM_RGA_HW_VERSION_RGA_V_ERR     = 1 << IM_RGA_HW_VERSION_RGA_V_ERR_INDEX,
38     IM_RGA_HW_VERSION_RGA_1         = 1 << IM_RGA_HW_VERSION_RGA_1_INDEX,
39     IM_RGA_HW_VERSION_RGA_1_PLUS    = 1 << IM_RGA_HW_VERSION_RGA_1_PLUS_INDEX,
40     IM_RGA_HW_VERSION_RGA_2         = 1 << IM_RGA_HW_VERSION_RGA_2_INDEX,
41     IM_RGA_HW_VERSION_RGA_2_LITE0   = 1 << IM_RGA_HW_VERSION_RGA_2_LITE0_INDEX,
42     IM_RGA_HW_VERSION_RGA_2_LITE1   = 1 << IM_RGA_HW_VERSION_RGA_2_LITE1_INDEX,
43     IM_RGA_HW_VERSION_RGA_2_ENHANCE = 1 << IM_RGA_HW_VERSION_RGA_2_ENHANCE_INDEX,
44     IM_RGA_HW_VERSION_RGA_3         = 1 << IM_RGA_HW_VERSION_RGA_3_INDEX,
45     IM_RGA_HW_VERSION_MASK          = ~((~(unsigned int)0x0 << IM_RGA_HW_VERSION_MASK_INDEX) | 1),
46 }IM_RGA_HW_VERSION;
47 
48 typedef enum {
49     IM_RGA_SUPPORT_FORMAT_ERROR_INDEX = 0,
50     IM_RGA_SUPPORT_FORMAT_RGB_INDEX,
51     IM_RGA_SUPPORT_FORMAT_RGB_OTHER_INDEX,
52     IM_RGA_SUPPORT_FORMAT_BPP_INDEX,
53     IM_RGA_SUPPORT_FORMAT_YUV_420_SEMI_PLANNER_8_BIT_INDEX,
54     IM_RGA_SUPPORT_FORMAT_YUV_420_SEMI_PLANNER_10_BIT_INDEX,
55     IM_RGA_SUPPORT_FORMAT_YUV_420_PLANNER_8_BIT_INDEX,
56     IM_RGA_SUPPORT_FORMAT_YUV_420_PLANNER_10_BIT_INDEX,
57     IM_RGA_SUPPORT_FORMAT_YUV_422_SEMI_PLANNER_8_BIT_INDEX,
58     IM_RGA_SUPPORT_FORMAT_YUV_422_SEMI_PLANNER_10_BIT_INDEX,
59     IM_RGA_SUPPORT_FORMAT_YUV_422_PLANNER_8_BIT_INDEX,
60     IM_RGA_SUPPORT_FORMAT_YUV_422_PLANNER_10_BIT_INDEX,
61     IM_RGA_SUPPORT_FORMAT_YUYV_420_INDEX,
62     IM_RGA_SUPPORT_FORMAT_YUYV_422_INDEX,
63     IM_RGA_SUPPORT_FORMAT_YUV_400_INDEX,
64     IM_RGA_SUPPORT_FORMAT_Y4_INDEX,
65     IM_RGA_SUPPORT_FORMAT_RGBA2BPP_INDEX,
66     IM_RGA_SUPPORT_FORMAT_MASK_INDEX,
67 } IM_RGA_SUPPORT_FORMAT_INDEX;
68 
69 typedef enum {
70     IM_RGA_SUPPORT_FORMAT_ERROR                         = 1 << IM_RGA_SUPPORT_FORMAT_ERROR_INDEX,
71     IM_RGA_SUPPORT_FORMAT_RGB                           = 1 << IM_RGA_SUPPORT_FORMAT_RGB_INDEX,
72     IM_RGA_SUPPORT_FORMAT_RGB_OTHER                     = 1 << IM_RGA_SUPPORT_FORMAT_RGB_OTHER_INDEX,
73     IM_RGA_SUPPORT_FORMAT_BPP                           = 1 << IM_RGA_SUPPORT_FORMAT_BPP_INDEX,
74     IM_RGA_SUPPORT_FORMAT_YUV_420_SEMI_PLANNER_8_BIT    = 1 << IM_RGA_SUPPORT_FORMAT_YUV_420_SEMI_PLANNER_8_BIT_INDEX,
75     IM_RGA_SUPPORT_FORMAT_YUV_420_SEMI_PLANNER_10_BIT   = 1 << IM_RGA_SUPPORT_FORMAT_YUV_420_SEMI_PLANNER_10_BIT_INDEX,
76     IM_RGA_SUPPORT_FORMAT_YUV_420_PLANNER_8_BIT         = 1 << IM_RGA_SUPPORT_FORMAT_YUV_420_PLANNER_8_BIT_INDEX,
77     IM_RGA_SUPPORT_FORMAT_YUV_420_PLANNER_10_BIT        = 1 << IM_RGA_SUPPORT_FORMAT_YUV_420_PLANNER_10_BIT_INDEX,
78     IM_RGA_SUPPORT_FORMAT_YUV_422_SEMI_PLANNER_8_BIT    = 1 << IM_RGA_SUPPORT_FORMAT_YUV_422_SEMI_PLANNER_8_BIT_INDEX,
79     IM_RGA_SUPPORT_FORMAT_YUV_422_SEMI_PLANNER_10_BIT   = 1 << IM_RGA_SUPPORT_FORMAT_YUV_422_SEMI_PLANNER_10_BIT_INDEX,
80     IM_RGA_SUPPORT_FORMAT_YUV_422_PLANNER_8_BIT         = 1 << IM_RGA_SUPPORT_FORMAT_YUV_422_PLANNER_8_BIT_INDEX,
81     IM_RGA_SUPPORT_FORMAT_YUV_422_PLANNER_10_BIT        = 1 << IM_RGA_SUPPORT_FORMAT_YUV_422_PLANNER_10_BIT_INDEX,
82     IM_RGA_SUPPORT_FORMAT_YUYV_420                      = 1 << IM_RGA_SUPPORT_FORMAT_YUYV_420_INDEX,
83     IM_RGA_SUPPORT_FORMAT_YUYV_422                      = 1 << IM_RGA_SUPPORT_FORMAT_YUYV_422_INDEX,
84     IM_RGA_SUPPORT_FORMAT_YUV_400                       = 1 << IM_RGA_SUPPORT_FORMAT_YUV_400_INDEX,
85     IM_RGA_SUPPORT_FORMAT_Y4                            = 1 << IM_RGA_SUPPORT_FORMAT_Y4_INDEX,
86     IM_RGA_SUPPORT_FORMAT_RGBA2BPP                      = 1 << IM_RGA_SUPPORT_FORMAT_RGBA2BPP_INDEX,
87     IM_RGA_SUPPORT_FORMAT_MASK                          = ~((~(unsigned int)0x0 << IM_RGA_SUPPORT_FORMAT_MASK_INDEX) | 1),
88 } IM_RGA_SUPPORT_FORMAT;
89 
90 typedef enum {
91     IM_RGA_SUPPORT_FEATURE_ERROR_INDEX = 0,
92     IM_RGA_SUPPORT_FEATURE_COLOR_FILL_INDEX,
93     IM_RGA_SUPPORT_FEATURE_COLOR_PALETTE_INDEX,
94     IM_RGA_SUPPORT_FEATURE_ROP_INDEX,
95     IM_RGA_SUPPORT_FEATURE_QUANTIZE_INDEX,
96     IM_RGA_SUPPORT_FEATURE_SRC1_R2Y_CSC_INDEX,
97     IM_RGA_SUPPORT_FEATURE_DST_FULL_CSC_INDEX,
98     IM_RGA_SUPPORT_FEATURE_FBC_INDEX,
99     IM_RGA_SUPPORT_FEATURE_BLEND_YUV_INDEX,
100     IM_RGA_SUPPORT_FEATURE_BT2020_INDEX,
101     IM_RGA_SUPPORT_FEATURE_MOSAIC_INDEX,
102     IM_RGA_SUPPORT_FEATURE_OSD_INDEX,
103     IM_RGA_SUPPORT_FEATURE_PRE_INTR_INDEX,
104     IM_RGA_SUPPORT_FEATURE_MASK_INDEX,
105 } IM_RGA_SUPPORT_FEATURE_INDEX;
106 
107 typedef enum {
108     IM_RGA_SUPPORT_FEATURE_ERROR          = 1 << IM_RGA_SUPPORT_FEATURE_ERROR_INDEX,
109     IM_RGA_SUPPORT_FEATURE_COLOR_FILL     = 1 << IM_RGA_SUPPORT_FEATURE_COLOR_FILL_INDEX,
110     IM_RGA_SUPPORT_FEATURE_COLOR_PALETTE  = 1 << IM_RGA_SUPPORT_FEATURE_COLOR_PALETTE_INDEX,
111     IM_RGA_SUPPORT_FEATURE_ROP            = 1 << IM_RGA_SUPPORT_FEATURE_ROP_INDEX,
112     IM_RGA_SUPPORT_FEATURE_QUANTIZE       = 1 << IM_RGA_SUPPORT_FEATURE_QUANTIZE_INDEX,
113     IM_RGA_SUPPORT_FEATURE_SRC1_R2Y_CSC   = 1 << IM_RGA_SUPPORT_FEATURE_SRC1_R2Y_CSC_INDEX,
114     IM_RGA_SUPPORT_FEATURE_DST_FULL_CSC   = 1 << IM_RGA_SUPPORT_FEATURE_DST_FULL_CSC_INDEX,
115     IM_RGA_SUPPORT_FEATURE_FBC            = 1 << IM_RGA_SUPPORT_FEATURE_FBC_INDEX,
116     IM_RGA_SUPPORT_FEATURE_BLEND_YUV      = 1 << IM_RGA_SUPPORT_FEATURE_BLEND_YUV_INDEX,
117     IM_RGA_SUPPORT_FEATURE_BT2020         = 1 << IM_RGA_SUPPORT_FEATURE_BT2020_INDEX,
118     IM_RGA_SUPPORT_FEATURE_MOSAIC         = 1 << IM_RGA_SUPPORT_FEATURE_MOSAIC_INDEX,
119     IM_RGA_SUPPORT_FEATURE_OSD            = 1 << IM_RGA_SUPPORT_FEATURE_OSD_INDEX,
120     IM_RGA_SUPPORT_FEATURE_PRE_INTR       = 1 << IM_RGA_SUPPORT_FEATURE_PRE_INTR_INDEX,
121     IM_RGA_SUPPORT_FEATURE_MASK           = ~((~(unsigned int)0x0 << IM_RGA_SUPPORT_FEATURE_MASK_INDEX) | 1),
122 } IM_RGA_SUPPORT_FEATURE;
123 
124 typedef struct {
125     unsigned int version;
126     unsigned int input_resolution;
127     unsigned int output_resolution;
128     unsigned int byte_stride;
129     unsigned int scale_limit;
130     unsigned int performance;
131     unsigned int input_format;
132     unsigned int output_format;
133     unsigned int feature;
134     char reserved[24];
135 } rga_info_table_entry;
136 
137 typedef struct {
138     struct rga_version_t user;
139     struct rga_version_t driver;
140 } rga_dirver_bind_table_entry;
141 
142 const rga_info_table_entry hw_info_table[] = {
143     { IM_RGA_HW_VERSION_RGA_V_ERR       ,    0,    0, 0, 0, 0,   0, 0, 0, {0} },
144     {   IM_RGA_HW_VERSION_RGA_1         , 8192, 2048, 4, 8, 1,
145                                         /* input format */
146                                         IM_RGA_SUPPORT_FORMAT_RGB |
147                                         IM_RGA_SUPPORT_FORMAT_RGB_OTHER |
148                                         IM_RGA_SUPPORT_FORMAT_BPP |
149                                         IM_RGA_SUPPORT_FORMAT_YUV_420_SEMI_PLANNER_8_BIT |
150                                         IM_RGA_SUPPORT_FORMAT_YUV_420_PLANNER_8_BIT |
151                                         IM_RGA_SUPPORT_FORMAT_YUV_422_SEMI_PLANNER_8_BIT |
152                                         IM_RGA_SUPPORT_FORMAT_YUV_422_PLANNER_8_BIT,
153                                         /* output format */
154                                         IM_RGA_SUPPORT_FORMAT_RGB |
155                                         IM_RGA_SUPPORT_FORMAT_RGB_OTHER |
156                                         IM_RGA_SUPPORT_FORMAT_YUV_420_SEMI_PLANNER_8_BIT |
157                                         IM_RGA_SUPPORT_FORMAT_YUV_420_PLANNER_8_BIT |
158                                         IM_RGA_SUPPORT_FORMAT_YUV_422_SEMI_PLANNER_8_BIT |
159                                         IM_RGA_SUPPORT_FORMAT_YUV_422_PLANNER_8_BIT,
160                                         /* feature */
161                                         IM_RGA_SUPPORT_FEATURE_COLOR_FILL |
162                                         IM_RGA_SUPPORT_FEATURE_COLOR_PALETTE |
163                                         IM_RGA_SUPPORT_FEATURE_ROP,
164                                         /* reserved */
165                                         {0} },
166     { IM_RGA_HW_VERSION_RGA_1_PLUS      , 8192, 2048, 4, 8, 1,
167                                         /* input format */
168                                         IM_RGA_SUPPORT_FORMAT_RGB |
169                                         IM_RGA_SUPPORT_FORMAT_RGB_OTHER |
170                                         IM_RGA_SUPPORT_FORMAT_BPP |
171                                         IM_RGA_SUPPORT_FORMAT_YUV_420_SEMI_PLANNER_8_BIT |
172                                         IM_RGA_SUPPORT_FORMAT_YUV_420_PLANNER_8_BIT |
173                                         IM_RGA_SUPPORT_FORMAT_YUV_422_SEMI_PLANNER_8_BIT |
174                                         IM_RGA_SUPPORT_FORMAT_YUV_422_PLANNER_8_BIT,
175                                         /* output format */
176                                         IM_RGA_SUPPORT_FORMAT_RGB |
177                                         IM_RGA_SUPPORT_FORMAT_RGB_OTHER |
178                                         IM_RGA_SUPPORT_FORMAT_YUV_420_SEMI_PLANNER_8_BIT |
179                                         IM_RGA_SUPPORT_FORMAT_YUV_420_PLANNER_8_BIT |
180                                         IM_RGA_SUPPORT_FORMAT_YUV_422_SEMI_PLANNER_8_BIT |
181                                         IM_RGA_SUPPORT_FORMAT_YUV_422_PLANNER_8_BIT,
182                                         /* feature */
183                                         IM_RGA_SUPPORT_FEATURE_COLOR_FILL |
184                                         IM_RGA_SUPPORT_FEATURE_COLOR_PALETTE,
185                                         /* reserved */
186                                         {0} },
187     { IM_RGA_HW_VERSION_RGA_2           , 8192, 4096, 4, 16, 2,
188                                         /* input format */
189                                         IM_RGA_SUPPORT_FORMAT_RGB |
190                                         IM_RGA_SUPPORT_FORMAT_RGB_OTHER |
191                                         IM_RGA_SUPPORT_FORMAT_YUV_420_SEMI_PLANNER_8_BIT |
192                                         IM_RGA_SUPPORT_FORMAT_YUV_420_PLANNER_8_BIT |
193                                         IM_RGA_SUPPORT_FORMAT_YUV_422_SEMI_PLANNER_8_BIT |
194                                         IM_RGA_SUPPORT_FORMAT_YUV_422_PLANNER_8_BIT,
195                                         /* output format */
196                                         IM_RGA_SUPPORT_FORMAT_RGB |
197                                         IM_RGA_SUPPORT_FORMAT_RGB_OTHER |
198                                         IM_RGA_SUPPORT_FORMAT_YUV_420_SEMI_PLANNER_8_BIT |
199                                         IM_RGA_SUPPORT_FORMAT_YUV_420_PLANNER_8_BIT |
200                                         IM_RGA_SUPPORT_FORMAT_YUV_422_SEMI_PLANNER_8_BIT |
201                                         IM_RGA_SUPPORT_FORMAT_YUV_422_PLANNER_8_BIT,
202                                         /* feature */
203                                         IM_RGA_SUPPORT_FEATURE_COLOR_FILL |
204                                         IM_RGA_SUPPORT_FEATURE_COLOR_PALETTE |
205                                         IM_RGA_SUPPORT_FEATURE_ROP,
206                                         /* reserved */
207                                         {0} },
208     { IM_RGA_HW_VERSION_RGA_2_LITE0     , 8192, 4096, 4, 8, 2,
209                                         /* input format */
210                                         IM_RGA_SUPPORT_FORMAT_RGB |
211                                         IM_RGA_SUPPORT_FORMAT_RGB_OTHER |
212                                         IM_RGA_SUPPORT_FORMAT_YUV_420_SEMI_PLANNER_8_BIT |
213                                         IM_RGA_SUPPORT_FORMAT_YUV_420_PLANNER_8_BIT |
214                                         IM_RGA_SUPPORT_FORMAT_YUV_422_SEMI_PLANNER_8_BIT |
215                                         IM_RGA_SUPPORT_FORMAT_YUV_422_PLANNER_8_BIT,
216                                         /* output format */
217                                         IM_RGA_SUPPORT_FORMAT_RGB |
218                                         IM_RGA_SUPPORT_FORMAT_RGB_OTHER |
219                                         IM_RGA_SUPPORT_FORMAT_YUV_420_SEMI_PLANNER_8_BIT |
220                                         IM_RGA_SUPPORT_FORMAT_YUV_420_PLANNER_8_BIT |
221                                         IM_RGA_SUPPORT_FORMAT_YUV_422_SEMI_PLANNER_8_BIT |
222                                         IM_RGA_SUPPORT_FORMAT_YUV_422_PLANNER_8_BIT,
223                                         /* feature */
224                                         IM_RGA_SUPPORT_FEATURE_COLOR_FILL |
225                                         IM_RGA_SUPPORT_FEATURE_COLOR_PALETTE |
226                                         IM_RGA_SUPPORT_FEATURE_ROP,
227                                         /* reserved */
228                                         {0} },
229     { IM_RGA_HW_VERSION_RGA_2_LITE1     , 8192, 4096, 4, 8, 2,
230                                         /* input format */
231                                         IM_RGA_SUPPORT_FORMAT_RGB |
232                                         IM_RGA_SUPPORT_FORMAT_RGB_OTHER |
233                                         IM_RGA_SUPPORT_FORMAT_YUV_420_SEMI_PLANNER_8_BIT |
234                                         IM_RGA_SUPPORT_FORMAT_YUV_420_PLANNER_8_BIT |
235                                         IM_RGA_SUPPORT_FORMAT_YUV_422_SEMI_PLANNER_8_BIT |
236                                         IM_RGA_SUPPORT_FORMAT_YUV_422_PLANNER_8_BIT |
237                                         IM_RGA_SUPPORT_FORMAT_YUV_420_SEMI_PLANNER_10_BIT |
238                                         IM_RGA_SUPPORT_FORMAT_YUV_420_PLANNER_10_BIT |
239                                         IM_RGA_SUPPORT_FORMAT_YUV_422_SEMI_PLANNER_10_BIT |
240                                         IM_RGA_SUPPORT_FORMAT_YUV_422_PLANNER_10_BIT,
241                                         /* output format */
242                                         IM_RGA_SUPPORT_FORMAT_RGB |
243                                         IM_RGA_SUPPORT_FORMAT_RGB_OTHER |
244                                         IM_RGA_SUPPORT_FORMAT_YUV_420_SEMI_PLANNER_8_BIT |
245                                         IM_RGA_SUPPORT_FORMAT_YUV_420_PLANNER_8_BIT |
246                                         IM_RGA_SUPPORT_FORMAT_YUV_422_SEMI_PLANNER_8_BIT |
247                                         IM_RGA_SUPPORT_FORMAT_YUV_422_PLANNER_8_BIT,
248                                         /* feature */
249                                         IM_RGA_SUPPORT_FEATURE_COLOR_FILL |
250                                         IM_RGA_SUPPORT_FEATURE_COLOR_PALETTE,
251                                         /* reserved */
252                                         {0} },
253     { IM_RGA_HW_VERSION_RGA_2_ENHANCE   , 8192, 4096, 4, 16,  2,
254                                         /* input format */
255                                         IM_RGA_SUPPORT_FORMAT_RGB |
256                                         IM_RGA_SUPPORT_FORMAT_RGB_OTHER |
257                                         IM_RGA_SUPPORT_FORMAT_YUV_420_SEMI_PLANNER_8_BIT |
258                                         IM_RGA_SUPPORT_FORMAT_YUV_420_PLANNER_8_BIT |
259                                         IM_RGA_SUPPORT_FORMAT_YUV_422_SEMI_PLANNER_8_BIT |
260                                         IM_RGA_SUPPORT_FORMAT_YUV_422_PLANNER_8_BIT |
261                                         IM_RGA_SUPPORT_FORMAT_YUV_420_SEMI_PLANNER_10_BIT |
262                                         IM_RGA_SUPPORT_FORMAT_YUV_420_PLANNER_10_BIT |
263                                         IM_RGA_SUPPORT_FORMAT_YUV_422_SEMI_PLANNER_10_BIT |
264                                         IM_RGA_SUPPORT_FORMAT_YUV_422_PLANNER_10_BIT,
265                                         /* output format */
266                                         IM_RGA_SUPPORT_FORMAT_RGB |
267                                         IM_RGA_SUPPORT_FORMAT_RGB_OTHER |
268                                         IM_RGA_SUPPORT_FORMAT_YUV_420_SEMI_PLANNER_8_BIT |
269                                         IM_RGA_SUPPORT_FORMAT_YUV_420_PLANNER_8_BIT |
270                                         IM_RGA_SUPPORT_FORMAT_YUV_422_SEMI_PLANNER_8_BIT |
271                                         IM_RGA_SUPPORT_FORMAT_YUV_422_PLANNER_8_BIT |
272                                         IM_RGA_SUPPORT_FORMAT_YUYV_420 |
273                                         IM_RGA_SUPPORT_FORMAT_YUYV_422,
274                                         /* feature */
275                                         IM_RGA_SUPPORT_FEATURE_COLOR_FILL |
276                                         IM_RGA_SUPPORT_FEATURE_COLOR_PALETTE |
277                                         IM_RGA_SUPPORT_FEATURE_ROP,
278                                         /* reserved */
279                                         {0} },
280     { IM_RGA_HW_VERSION_RGA_3           , 8176, 8128, 16, 8,  4,
281                                         /* input format */
282                                         IM_RGA_SUPPORT_FORMAT_RGB |
283                                         IM_RGA_SUPPORT_FORMAT_YUV_420_SEMI_PLANNER_8_BIT |
284                                         IM_RGA_SUPPORT_FORMAT_YUV_422_SEMI_PLANNER_8_BIT |
285                                         IM_RGA_SUPPORT_FORMAT_YUV_420_SEMI_PLANNER_10_BIT |
286                                         IM_RGA_SUPPORT_FORMAT_YUV_422_SEMI_PLANNER_10_BIT |
287                                         IM_RGA_SUPPORT_FORMAT_YUYV_422,
288                                         /* output format */
289                                         IM_RGA_SUPPORT_FORMAT_RGB |
290                                         IM_RGA_SUPPORT_FORMAT_YUV_420_SEMI_PLANNER_8_BIT |
291                                         IM_RGA_SUPPORT_FORMAT_YUV_422_SEMI_PLANNER_8_BIT |
292                                         IM_RGA_SUPPORT_FORMAT_YUV_420_SEMI_PLANNER_10_BIT |
293                                         IM_RGA_SUPPORT_FORMAT_YUV_422_SEMI_PLANNER_10_BIT |
294                                         IM_RGA_SUPPORT_FORMAT_YUYV_422,
295                                         /* feature */
296                                         IM_RGA_SUPPORT_FEATURE_FBC |
297                                         IM_RGA_SUPPORT_FEATURE_BLEND_YUV |
298                                         IM_RGA_SUPPORT_FEATURE_BT2020,
299                                         /* reserved */
300                                         {0} },
301 };
302 
303 /* The range of the version is [min, max), that is version >= min, version < max. */
304 const rga_dirver_bind_table_entry driver_bind_table[] = {
305     { { 0, 0, 0, "0.0.0" }, {0, 0, 0, "0.0.0" } },
306     { { 1, 0, 3, "1.0.3" }, {0, 0, 0, "0.0.0" } },
307     { { 1, 6, 0, "1.6.0" }, {1, 1, 5, "1.1.5" } },
308     { { 1, 7, 2, "1.7.2" }, {1, 2, 0, "1.2.0" } },
309     { { 1, 7, 3, "1.7.3" }, {1, 2, 4, "1.2.4" } },
310 };
311 
312 #endif
313