• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (C) 2022 Beken Corporation
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 //     http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 /***********************************************************************************************************************************
16 * This file is generated from BK7256_ADDR_Mapping_MP2.xlsm automatically
17 * Modify it manually is not recommended
18 * CHIP ID:BK7256,GENARATE TIME:2022-07-16 15:30:25
19 ************************************************************************************************************************************/
20 
21 #pragma once
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 #include <soc/soc.h>
28 
29 #define REG_JPEG_DEC_BASE_ADDR              SOC_JPEG_DEC_REG_BASE
30 
31 
32 #define REG_JPEG_ACC_REG0               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x00 * 4)))
33 #define REG_JPEG_PIPO_REG0              (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x01 * 4)))
34 #define REG_JPEG_PIPO_REG1              (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x02 * 4)))
35 #define REG_JPEG_DCUV                   (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x03 * 4)))
36 #define REG_JPEG_CUR_MASK               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x04 * 4)))
37 #define REG_JPEG_MCUX                  (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x05 * 4)))
38 #define REG_JPEG_MCUY                   (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x06 * 4)))
39 #define REG_JPEG_CURBYTE                (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x07 * 4)))
40 
41 
42 #define REG_JPEG_CURRUN                 (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x09 * 4)))
43 #define REG_JPEG_XPIXEL                 (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x0a * 4)))
44 #define REG_JPEG_HUF_DATA               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x0b * 4)))
45 
46 #define REG_JPEG_STATE                   (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x0d * 4)))
47 
48 #define REG_JPED_DEC_RDY                 (REG_JPEG_STATE & 0x1)
49 #define REG_JPED_RRLOAD                  (REG_JPEG_STATE & 0x2)
50 #define REG_JPED_DEC_RELOAD              (REG_JPEG_STATE & 0x4)
51 #define REG_JPED_DEC_SEARCH              (REG_JPEG_STATE & 0x8)
52 #define REG_JPED_EXT_RELOAD              (REG_JPEG_STATE & 0x10)
53 #define REG_JPED_EXT_SEARCH              (REG_JPEG_STATE & 0x20)
54 #define REG_IDCT_BUSY                    (REG_JPEG_STATE & 0x40)
55 #define TMP_MEM_CLR_BUSY                 (REG_JPEG_STATE & 0x80)
56 #define REG_JPED_DEC_RDY2                (REG_JPEG_STATE & 0x100)
57 
58 #define REG_CUR_NBIT                     (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x0c * 4)))
59 #define REG_JPEG_EXT_DATA                (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x0e * 4)))
60 #define REG_JPEG_BLK                     (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x0f * 4)))
61 
62 #define REG_DEC_CMD                     (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x08 * 4)))
63 
64 #define REG_DEC_START                   (REG_DEC_CMD = 0x01);
65 #define REG_DEC_TMP_CLR                 (REG_DEC_CMD = 0x02);
66 #define REG_DC_CLR                      (REG_DEC_CMD = 0x04);
67 #define BASE_LOAD                       (REG_DEC_CMD = 0x08);
68 
69 #define REG_JPEG_BITS_DC00               addJPEG_DEC_Reg0x10
70 #define REG_JPEG_BITS_DC01               addJPEG_DEC_Reg0x11
71 #define REG_JPEG_BITS_DC02               addJPEG_DEC_Reg0x12
72 #define REG_JPEG_BITS_DC03               addJPEG_DEC_Reg0x13
73 #define REG_JPEG_BITS_DC04               addJPEG_DEC_Reg0x14
74 #define REG_JPEG_BITS_DC05               addJPEG_DEC_Reg0x15
75 #define REG_JPEG_BITS_DC06               addJPEG_DEC_Reg0x16
76 #define REG_JPEG_BITS_DC07               addJPEG_DEC_Reg0x17
77 #define REG_JPEG_BITS_DC08               addJPEG_DEC_Reg0x18
78 #define REG_JPEG_BITS_DC09               addJPEG_DEC_Reg0x19
79 #define REG_JPEG_BITS_DC0A               addJPEG_DEC_Reg0x1a
80 #define REG_JPEG_BITS_DC0B               addJPEG_DEC_Reg0x1b
81 #define REG_JPEG_BITS_DC0C               addJPEG_DEC_Reg0x1c
82 #define REG_JPEG_BITS_DC0D               addJPEG_DEC_Reg0x1d
83 #define REG_JPEG_BITS_DC0E               addJPEG_DEC_Reg0x1e
84 #define REG_JPEG_BITS_DC0F               addJPEG_DEC_Reg0x1f
85 
86 #define REG_JPEG_BITS_DC10               addJPEG_DEC_Reg0x20
87 #define REG_JPEG_BITS_DC11               addJPEG_DEC_Reg0x21
88 #define REG_JPEG_BITS_DC12               addJPEG_DEC_Reg0x22
89 #define REG_JPEG_BITS_DC13               addJPEG_DEC_Reg0x23
90 #define REG_JPEG_BITS_DC14               addJPEG_DEC_Reg0x24
91 #define REG_JPEG_BITS_DC15               addJPEG_DEC_Reg0x25
92 #define REG_JPEG_BITS_DC16               addJPEG_DEC_Reg0x26
93 #define REG_JPEG_BITS_DC17               addJPEG_DEC_Reg0x27
94 #define REG_JPEG_BITS_DC18               addJPEG_DEC_Reg0x28
95 #define REG_JPEG_BITS_DC19               addJPEG_DEC_Reg0x29
96 #define REG_JPEG_BITS_DC1A               addJPEG_DEC_Reg0x2a
97 #define REG_JPEG_BITS_DC1B               addJPEG_DEC_Reg0x2b
98 #define REG_JPEG_BITS_DC1C               addJPEG_DEC_Reg0x2c
99 #define REG_JPEG_BITS_DC1D               addJPEG_DEC_Reg0x2d
100 #define REG_JPEG_BITS_DC1E               addJPEG_DEC_Reg0x2e
101 #define REG_JPEG_BITS_DC1F               addJPEG_DEC_Reg0x2f
102 
103 
104 
105 #define REG_JPEG_BITS_AC00              addJPEG_DEC_Reg0x30
106 #define REG_JPEG_BITS_AC01              addJPEG_DEC_Reg0x31
107 #define REG_JPEG_BITS_AC02              addJPEG_DEC_Reg0x32
108 #define REG_JPEG_BITS_AC03              addJPEG_DEC_Reg0x33
109 #define REG_JPEG_BITS_AC04              addJPEG_DEC_Reg0x34
110 #define REG_JPEG_BITS_AC05              addJPEG_DEC_Reg0x35
111 #define REG_JPEG_BITS_AC06              addJPEG_DEC_Reg0x36
112 #define REG_JPEG_BITS_AC07              addJPEG_DEC_Reg0x37
113 #define REG_JPEG_BITS_AC08              addJPEG_DEC_Reg0x38
114 #define REG_JPEG_BITS_AC09              addJPEG_DEC_Reg0x39
115 #define REG_JPEG_BITS_AC0A              addJPEG_DEC_Reg0x3a
116 #define REG_JPEG_BITS_AC0B              addJPEG_DEC_Reg0x3b
117 #define REG_JPEG_BITS_AC0C              addJPEG_DEC_Reg0x3c
118 #define REG_JPEG_BITS_AC0D              addJPEG_DEC_Reg0x3d
119 #define REG_JPEG_BITS_AC0E              addJPEG_DEC_Reg0x3e
120 #define REG_JPEG_BITS_AC0F              addJPEG_DEC_Reg0x3f
121 
122 #define REG_JPEG_BITS_AC10              addJPEG_DEC_Reg0x40
123 #define REG_JPEG_BITS_AC11              addJPEG_DEC_Reg0x41
124 #define REG_JPEG_BITS_AC12              addJPEG_DEC_Reg0x42
125 #define REG_JPEG_BITS_AC13              addJPEG_DEC_Reg0x43
126 #define REG_JPEG_BITS_AC14              addJPEG_DEC_Reg0x44
127 #define REG_JPEG_BITS_AC15              addJPEG_DEC_Reg0x45
128 #define REG_JPEG_BITS_AC16              addJPEG_DEC_Reg0x46
129 #define REG_JPEG_BITS_AC17              addJPEG_DEC_Reg0x47
130 #define REG_JPEG_BITS_AC18              addJPEG_DEC_Reg0x48
131 #define REG_JPEG_BITS_AC19              addJPEG_DEC_Reg0x49
132 #define REG_JPEG_BITS_AC1A              addJPEG_DEC_Reg0x4a
133 #define REG_JPEG_BITS_AC1B              addJPEG_DEC_Reg0x4b
134 #define REG_JPEG_BITS_AC1C              addJPEG_DEC_Reg0x4c
135 #define REG_JPEG_BITS_AC1D              addJPEG_DEC_Reg0x4d
136 #define REG_JPEG_BITS_AC1E              addJPEG_DEC_Reg0x4e
137 #define REG_JPEG_BITS_AC1F              addJPEG_DEC_Reg0x4f
138 
139 #define TIME_STATE                       (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x50 * 4)))
140 #define DEBUG0                           (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x51 * 4)))
141 #define DEBUG1                           (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x52 * 4)))
142 #define DEBUG2                           (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x53 * 4)))
143 #define DEBUG3                           (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x54 * 4)))
144 #define DEBUG4                           (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x55 * 4)))
145 #define DEBUG5                           (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x56 * 4)))
146 #define BASE_RADDR                       (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x58 * 4)))
147 #define BASE_WADDR                       (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x59 * 4)))
148 #define BASE_RD_LEN                      (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x5a * 4)))
149 #define BASE_WR_LEN                      (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x5b * 4)))
150 #define BASE_FFDA                        (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x5c * 4)))
151 
152 #define JPEGDEC_INTEN                    (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x5e * 4)))
153 #define JPEGDEC_INTSTAT                  (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x5f * 4)))
154 
155 #define dec_busy_clr                     (JPEGDEC_INTSTAT = 0x01);
156 #define rrload_clr                       (JPEGDEC_INTSTAT = 0x02);
157 #define reload_clr                       (JPEGDEC_INTSTAT = 0x04);
158 #define search_clr                       (JPEGDEC_INTSTAT = 0x08);
159 #define ext_reload_clr                   (JPEGDEC_INTSTAT = 0x10);
160 #define ext_bit_clr                      (JPEGDEC_INTSTAT = 0x20);
161 #define dec_busy2_clr                    (JPEGDEC_INTSTAT = 0x40);
162 #define mcu_finish_clr                   (JPEGDEC_INTSTAT = 0x80);
163 
164 
165 #define REG_JPEG_HUF_TABLE00            *((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x80 * 4))
166 #define REG_JPEG_HUF_TABLE10            *((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0xc0 * 4))
167 #define REG_JPEG_HUF_TABLE01            *((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x100 * 4))
168 #define REG_JPEG_HUF_TABLE11            *((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x200 * 4))
169 #define REG_JPEG_Zig                    *((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x300 * 4))
170 #define REG_JPEG_TMP0                   *((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x340 * 4))
171 #define REG_JPEG_DQT_TABLE0             *((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x380 * 4))
172 #define REG_JPEG_DQT_TABLE1             *((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x3c0 * 4))
173 
174 /*
175 #define REG_JPEG_DEC_BASE_ADDR              (0x0080E000)
176 
177 #define REG_JPEG_BUF_POINT              (*((volatile unsigned long *)(REG_JPEG_DEC_BUF_ADDR + 0x00 * 4)))
178 
179 #define REG_JPEG_ACC_REG0               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x00 * 4)))
180 #define REG_JPEG_PIPO_REG0              (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x01 * 4)))
181 #define REG_JPEG_PIPO_REG1              (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x02 * 4)))
182 #define REG_JPEG_DCUV                   (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x03 * 4)))
183 #define REG_JPEG_CUR_MASK               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x04 * 4)))
184 #define REG_JPEG_TEST0                  (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x05 * 4)))
185 #define REG_JPEG_TEST1                  (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x06 * 4)))
186 #define REG_JPEG_CURBYTE                (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x07 * 4)))
187 #define REG_DEC_CMD                     (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x08 * 4)))
188 
189 #define REG_DEC_START                   (REG_DEC_CMD = 0x01);
190 #define REG_DEC_TMP_CLR                 (REG_DEC_CMD = 0x02);
191 #define REG_DC_CLR                      (REG_DEC_CMD = 0x04);
192 #define BASE_LOAD                       (REG_DEC_CMD = 0x08);
193 
194 #define REG_JPEG_CURRUN                 (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x09 * 4)))
195 #define REG_JPEG_XPIXEL                 (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x0a * 4)))
196 #define REG_JPEG_HUF_DATA               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x0b * 4)))
197 
198 #define REG_JPEG_STATE                   (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x0d * 4)))
199 
200 #define REG_JPED_DEC_RDY                 (REG_JPEG_STATE & 0x1)
201 #define REG_JPED_RRLOAD                  (REG_JPEG_STATE & 0x2)
202 #define REG_JPED_DEC_RELOAD              (REG_JPEG_STATE & 0x4)
203 #define REG_JPED_DEC_SEARCH              (REG_JPEG_STATE & 0x8)
204 #define REG_JPED_EXT_RELOAD              (REG_JPEG_STATE & 0x10)
205 #define REG_JPED_EXT_SEARCH              (REG_JPEG_STATE & 0x20)
206 #define REG_IDCT_BUSY                    (REG_JPEG_STATE & 0x40)
207 #define TMP_MEM_CLR_BUSY                 (REG_JPEG_STATE & 0x80)
208 
209 #define REG_CUR_NBIT                     (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x0c * 4)))
210 #define REG_JPEG_EXT_DATA                (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x0e * 4)))
211 #define REG_JPEG_BLK                     (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x0f * 4)))
212 //#define REG_JPEG_PIPO_EMPT0              REG_JPEG_PIPO_EMPT & 0x1;
213 //#define REG_JPEG_PIPO_EMPT1              REG_JPEG_PIPO_EMPT & 0x2;
214 
215 
216 #define REG_JPEG_BITS_DC00               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x10 * 4)))
217 #define REG_JPEG_BITS_DC01               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x11 * 4)))
218 #define REG_JPEG_BITS_DC02               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x12 * 4)))
219 #define REG_JPEG_BITS_DC03               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x13 * 4)))
220 #define REG_JPEG_BITS_DC04               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x14 * 4)))
221 #define REG_JPEG_BITS_DC05               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x15 * 4)))
222 #define REG_JPEG_BITS_DC06               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x16 * 4)))
223 #define REG_JPEG_BITS_DC07               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x17 * 4)))
224 #define REG_JPEG_BITS_DC08               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x18 * 4)))
225 #define REG_JPEG_BITS_DC09               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x19 * 4)))
226 #define REG_JPEG_BITS_DC0A               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x1a * 4)))
227 #define REG_JPEG_BITS_DC0B               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x1b * 4)))
228 #define REG_JPEG_BITS_DC0C               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x1c * 4)))
229 #define REG_JPEG_BITS_DC0D               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x1d * 4)))
230 #define REG_JPEG_BITS_DC0E               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x1e * 4)))
231 #define REG_JPEG_BITS_DC0F               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x1f * 4)))
232 
233 #define REG_JPEG_BITS_DC10               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x20 * 4)))
234 #define REG_JPEG_BITS_DC11               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x21 * 4)))
235 #define REG_JPEG_BITS_DC12               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x22 * 4)))
236 #define REG_JPEG_BITS_DC13               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x23 * 4)))
237 #define REG_JPEG_BITS_DC14               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x24 * 4)))
238 #define REG_JPEG_BITS_DC15               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x25 * 4)))
239 #define REG_JPEG_BITS_DC16               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x26 * 4)))
240 #define REG_JPEG_BITS_DC17               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x27 * 4)))
241 #define REG_JPEG_BITS_DC18               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x28 * 4)))
242 #define REG_JPEG_BITS_DC19               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x29 * 4)))
243 #define REG_JPEG_BITS_DC1A               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x2a * 4)))
244 #define REG_JPEG_BITS_DC1B               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x2b * 4)))
245 #define REG_JPEG_BITS_DC1C               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x2c * 4)))
246 #define REG_JPEG_BITS_DC1D               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x2d * 4)))
247 #define REG_JPEG_BITS_DC1E               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x2e * 4)))
248 #define REG_JPEG_BITS_DC1F               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x2f * 4)))
249 
250 
251 
252 #define REG_JPEG_BITS_AC00               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x30 * 4)))
253 #define REG_JPEG_BITS_AC01               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x31 * 4)))
254 #define REG_JPEG_BITS_AC02               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x32 * 4)))
255 #define REG_JPEG_BITS_AC03               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x33 * 4)))
256 #define REG_JPEG_BITS_AC04               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x34 * 4)))
257 #define REG_JPEG_BITS_AC05               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x35 * 4)))
258 #define REG_JPEG_BITS_AC06               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x36 * 4)))
259 #define REG_JPEG_BITS_AC07               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x37 * 4)))
260 #define REG_JPEG_BITS_AC08               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x38 * 4)))
261 #define REG_JPEG_BITS_AC09               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x39 * 4)))
262 #define REG_JPEG_BITS_AC0A               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x3a * 4)))
263 #define REG_JPEG_BITS_AC0B               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x3b * 4)))
264 #define REG_JPEG_BITS_AC0C               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x3c * 4)))
265 #define REG_JPEG_BITS_AC0D               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x3d * 4)))
266 #define REG_JPEG_BITS_AC0E               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x3e * 4)))
267 #define REG_JPEG_BITS_AC0F               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x3f * 4)))
268 
269 #define REG_JPEG_BITS_AC10               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x40 * 4)))
270 #define REG_JPEG_BITS_AC11               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x41 * 4)))
271 #define REG_JPEG_BITS_AC12               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x42 * 4)))
272 #define REG_JPEG_BITS_AC13               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x43 * 4)))
273 #define REG_JPEG_BITS_AC14               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x44 * 4)))
274 #define REG_JPEG_BITS_AC15               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x45 * 4)))
275 #define REG_JPEG_BITS_AC16               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x46 * 4)))
276 #define REG_JPEG_BITS_AC17               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x47 * 4)))
277 #define REG_JPEG_BITS_AC18               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x48 * 4)))
278 #define REG_JPEG_BITS_AC19               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x49 * 4)))
279 #define REG_JPEG_BITS_AC1A               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x4a * 4)))
280 #define REG_JPEG_BITS_AC1B               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x4b * 4)))
281 #define REG_JPEG_BITS_AC1C               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x4c * 4)))
282 #define REG_JPEG_BITS_AC1D               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x4d * 4)))
283 #define REG_JPEG_BITS_AC1E               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x4e * 4)))
284 #define REG_JPEG_BITS_AC1F               (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x4f * 4)))
285 
286 #define TIME_STATE                       (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x50 * 4)))
287 #define DEBUG0                           (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x51 * 4)))
288 #define DEBUG1                           (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x52 * 4)))
289 #define DEBUG2                           (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x53 * 4)))
290 #define DEBUG3                           (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x54 * 4)))
291 #define DEBUG4                           (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x55 * 4)))
292 #define DEBUG5                           (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x56 * 4)))
293 #define BASE_RADDR                       (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x58 * 4)))
294 #define BASE_WADDR                       (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x59 * 4)))
295 #define BASE_RD_LEN                      (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x5a * 4)))
296 #define BASE_WR_LEN                      (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x5b * 4)))
297 #define BASE_FFDA                        (*((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x5c * 4)))
298 
299 #define REG_JPEG_HUF_TABLE00            *((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x80 * 4))
300 #define REG_JPEG_HUF_TABLE10            *((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0xc0 * 4))
301 #define REG_JPEG_HUF_TABLE01            *((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x100 * 4))
302 #define REG_JPEG_HUF_TABLE11            *((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x200 * 4))
303 #define REG_JPEG_Zig                    *((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x300 * 4))
304 #define REG_JPEG_TMP0                   *((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x340 * 4))
305 #define REG_JPEG_DQT_TABLE0             *((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x380 * 4))
306 #define REG_JPEG_DQT_TABLE1             *((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x3c0 * 4))
307 //#define REG_JPEG_TMP1                   *((volatile unsigned long *)(REG_JPEG_DEC_BASE_ADDR + 0x3c0 * 4))
308 */
309 
310 
311 #ifdef __cplusplus
312 }
313 #endif
314