Subversion Repositories freemyipod

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
85 theseven 1
//
2
//
3
//    Copyright 2010 TheSeven
4
//
5
//
6
//    This file is part of emBIOS.
7
//
8
//    emBIOS is free software: you can redistribute it and/or
9
//    modify it under the terms of the GNU General Public License as
10
//    published by the Free Software Foundation, either version 2 of the
11
//    License, or (at your option) any later version.
12
//
13
//    emBIOS is distributed in the hope that it will be useful,
14
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
15
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16
//    See the GNU General Public License for more details.
17
//
18
//    You should have received a copy of the GNU General Public License along
19
//    with emBIOS.  If not, see <http://www.gnu.org/licenses/>.
20
//
21
//
22
 
23
 
24
#ifndef __S5L8720_H__
25
#define __S5L8720_H__
26
 
27
#include "global.h"
28
 
29
 
30
/////CLKCON/////
31
#define CLKCON       (*((volatile uint32_t*)(0x3C500000)))
32
#define PLL0PMS      (*((volatile uint32_t*)(0x3C500004)))
33
#define PLL1PMS      (*((volatile uint32_t*)(0x3C500008)))
34
#define PLL2PMS      (*((volatile uint32_t*)(0x3C50000C)))
35
#define PLL0LCNT     (*((volatile uint32_t*)(0x3C500014)))
36
#define PLL1LCNT     (*((volatile uint32_t*)(0x3C500018)))
37
#define PLL2LCNT     (*((volatile uint32_t*)(0x3C50001C)))
38
#define PLLLOCK      (*((volatile uint32_t*)(0x3C500020)))
39
#define PLLCON       (*((volatile uint32_t*)(0x3C500024)))
40
#define PWRCON       (*((volatile uint32_t*)(0x3C500028)))
41
#define PWRMODE      (*((volatile uint32_t*)(0x3C50002C)))
42
#define SWRCON       (*((volatile uint32_t*)(0x3C500030)))
43
#define RSTSR        (*((volatile uint32_t*)(0x3C500034)))
44
#define DSPCLKMD     (*((volatile uint32_t*)(0x3C500038)))
45
#define CLKCON2      (*((volatile uint32_t*)(0x3C50003C)))
46
#define PWRCONEXT    (*((volatile uint32_t*)(0x3C500040)))
47
 
48
 
49
/////GPIO/////
50
#define PCON0        (*((volatile uint32_t*)(0x3CF00000)))
51
#define PDAT0        (*((volatile uint32_t*)(0x3CF00004)))
52
#define PCON1        (*((volatile uint32_t*)(0x3CF00010)))
53
#define PDAT1        (*((volatile uint32_t*)(0x3CF00014)))
54
#define PCON2        (*((volatile uint32_t*)(0x3CF00020)))
55
#define PDAT2        (*((volatile uint32_t*)(0x3CF00024)))
56
#define PCON3        (*((volatile uint32_t*)(0x3CF00030)))
57
#define PDAT3        (*((volatile uint32_t*)(0x3CF00034)))
58
#define PCON4        (*((volatile uint32_t*)(0x3CF00040)))
59
#define PDAT4        (*((volatile uint32_t*)(0x3CF00044)))
60
#define PCON5        (*((volatile uint32_t*)(0x3CF00050)))
61
#define PDAT5        (*((volatile uint32_t*)(0x3CF00054)))
62
#define PUNK5        (*((volatile uint32_t*)(0x3CF0005C)))
63
#define PCON6        (*((volatile uint32_t*)(0x3CF00060)))
64
#define PDAT6        (*((volatile uint32_t*)(0x3CF00064)))
65
#define PCON7        (*((volatile uint32_t*)(0x3CF00070)))
66
#define PDAT7        (*((volatile uint32_t*)(0x3CF00074)))
67
#define PCON10       (*((volatile uint32_t*)(0x3CF000A0)))
68
#define PDAT10       (*((volatile uint32_t*)(0x3CF000A4)))
69
#define PCON11       (*((volatile uint32_t*)(0x3CF000B0)))
70
#define PDAT11       (*((volatile uint32_t*)(0x3CF000B4)))
71
#define PCON15       (*((volatile uint32_t*)(0x3CF000F0)))
72
#define PUNK15       (*((volatile uint32_t*)(0x3CF000FC)))
73
 
74
 
75
/////IODMA/////
76
#define DMABASE0     (*((volatile uint32_t*)(0x38400000)))
77
#define DMACON0      (*((volatile uint32_t*)(0x38400004)))
78
#define DMATCNT0     (*((volatile uint32_t*)(0x38400008)))
79
#define DMACADDR0    (*((volatile uint32_t*)(0x3840000C)))
80
#define DMACTCNT0    (*((volatile uint32_t*)(0x38400010)))
81
#define DMACOM0      (*((volatile uint32_t*)(0x38400014)))
82
#define DMANOF0      (*((volatile uint32_t*)(0x38400018)))
83
#define DMABASE1     (*((volatile uint32_t*)(0x38400020)))
84
#define DMACON1      (*((volatile uint32_t*)(0x38400024)))
85
#define DMATCNT1     (*((volatile uint32_t*)(0x38400028)))
86
#define DMACADDR1    (*((volatile uint32_t*)(0x3840002C)))
87
#define DMACTCNT1    (*((volatile uint32_t*)(0x38400030)))
88
#define DMACOM1      (*((volatile uint32_t*)(0x38400034)))
89
#define DMABASE2     (*((volatile uint32_t*)(0x38400040)))
90
#define DMACON2      (*((volatile uint32_t*)(0x38400044)))
91
#define DMATCNT2     (*((volatile uint32_t*)(0x38400048)))
92
#define DMACADDR2    (*((volatile uint32_t*)(0x3840004C)))
93
#define DMACTCNT2    (*((volatile uint32_t*)(0x38400050)))
94
#define DMACOM2      (*((volatile uint32_t*)(0x38400054)))
95
#define DMABASE3     (*((volatile uint32_t*)(0x38400060)))
96
#define DMACON3      (*((volatile uint32_t*)(0x38400064)))
97
#define DMATCNT3     (*((volatile uint32_t*)(0x38400068)))
98
#define DMACADDR3    (*((volatile uint32_t*)(0x3840006C)))
99
#define DMACTCNT3    (*((volatile uint32_t*)(0x38400070)))
100
#define DMACOM3      (*((volatile uint32_t*)(0x38400074)))
101
#define DMABASE4     (*((volatile uint32_t*)(0x38400080)))
102
#define DMACON4      (*((volatile uint32_t*)(0x38400084)))
103
#define DMATCNT4     (*((volatile uint32_t*)(0x38400088)))
104
#define DMACADDR4    (*((volatile uint32_t*)(0x3840008C)))
105
#define DMACTCNT4    (*((volatile uint32_t*)(0x38400090)))
106
#define DMACOM4      (*((volatile uint32_t*)(0x38400094)))
107
#define DMABASE5     (*((volatile uint32_t*)(0x384000A0)))
108
#define DMACON5      (*((volatile uint32_t*)(0x384000A4)))
109
#define DMATCNT5     (*((volatile uint32_t*)(0x384000A8)))
110
#define DMACADDR5    (*((volatile uint32_t*)(0x384000AC)))
111
#define DMACTCNT5    (*((volatile uint32_t*)(0x384000B0)))
112
#define DMACOM5      (*((volatile uint32_t*)(0x384000B4)))
113
#define DMABASE6     (*((volatile uint32_t*)(0x384000C0)))
114
#define DMACON6      (*((volatile uint32_t*)(0x384000C4)))
115
#define DMATCNT6     (*((volatile uint32_t*)(0x384000C8)))
116
#define DMACADDR6    (*((volatile uint32_t*)(0x384000CC)))
117
#define DMACTCNT6    (*((volatile uint32_t*)(0x384000D0)))
118
#define DMACOM6      (*((volatile uint32_t*)(0x384000D4)))
119
#define DMABASE7     (*((volatile uint32_t*)(0x384000E0)))
120
#define DMACON7      (*((volatile uint32_t*)(0x384000E4)))
121
#define DMATCNT7     (*((volatile uint32_t*)(0x384000E8)))
122
#define DMACADDR7    (*((volatile uint32_t*)(0x384000EC)))
123
#define DMACTCNT7    (*((volatile uint32_t*)(0x384000F0)))
124
#define DMACOM7      (*((volatile uint32_t*)(0x384000F4)))
125
#define DMABASE8     (*((volatile uint32_t*)(0x38400100)))
126
#define DMACON8      (*((volatile uint32_t*)(0x38400104)))
127
#define DMATCNT8     (*((volatile uint32_t*)(0x38400108)))
128
#define DMACADDR8    (*((volatile uint32_t*)(0x3840010C)))
129
#define DMACTCNT8    (*((volatile uint32_t*)(0x38400110)))
130
#define DMACOM8      (*((volatile uint32_t*)(0x38400114)))
131
#define DMAALLST     (*((volatile uint32_t*)(0x38400180)))
132
#define DMAALLST2    (*((volatile uint32_t*)(0x38400184)))
133
#define DMACON_DEVICE_SHIFT    30
134
#define DMACON_DIRECTION_SHIFT 29
135
#define DMACON_DATA_SIZE_SHIFT 22
136
#define DMACON_BURST_LEN_SHIFT 19
137
#define DMACOM_START           4
138
#define DMACOM_CLEARBOTHDONE   7
139
#define DMAALLST_WCOM0         (1 << 0)
140
#define DMAALLST_HCOM0         (1 << 1)
141
#define DMAALLST_DMABUSY0      (1 << 2)
142
#define DMAALLST_HOLD_SKIP     (1 << 3)
143
#define DMAALLST_WCOM1         (1 << 4)
144
#define DMAALLST_HCOM1         (1 << 5)
145
#define DMAALLST_DMABUSY1      (1 << 6)
146
#define DMAALLST_WCOM2         (1 << 8)
147
#define DMAALLST_HCOM2         (1 << 9)
148
#define DMAALLST_DMABUSY2      (1 << 10)
149
#define DMAALLST_WCOM3         (1 << 12)
150
#define DMAALLST_HCOM3         (1 << 13)
151
#define DMAALLST_DMABUSY3      (1 << 14)
152
#define DMAALLST_CHAN0_MASK    (0xF << 0)
153
#define DMAALLST_CHAN1_MASK    (0xF << 4)
154
#define DMAALLST_CHAN2_MASK    (0xF << 8)
155
#define DMAALLST_CHAN3_MASK    (0xF << 12)
156
 
157
 
158
/////FMC/////
159
#define FMCTRL0      (*((volatile uint32_t*)(0x39400000)))
160
#define FMCTRL1      (*((volatile uint32_t*)(0x39400004)))
161
#define FMCMD        (*((volatile uint32_t*)(0x39400008)))
162
#define FMADDR0      (*((volatile uint32_t*)(0x3940000C)))
163
#define FMADDR1      (*((volatile uint32_t*)(0x39400010)))
164
#define FMANUM       (*((volatile uint32_t*)(0x3940002C)))
165
#define FMDNUM       (*((volatile uint32_t*)(0x39400030)))
166
#define FMCSTAT      (*((volatile uint32_t*)(0x39400048)))
167
#define FMFIFO       (*((volatile uint32_t*)(0x39400080)))
168
#define RS_ECC_CTRL  (*((volatile uint32_t*)(0x39400100)))
169
#define FMCTRL0_ENABLEDMA      (1 << 10)
170
#define FMCTRL0_UNK1           (1 << 11)
171
#define FMCTRL1_DOTRANSADDR    (1 << 0)
172
#define FMCTRL1_DOREADDATA     (1 << 1)
173
#define FMCTRL1_DOWRITEDATA    (1 << 2)
174
#define FMCTRL1_CLEARWFIFO     (1 << 6)
175
#define FMCTRL1_CLEARRFIFO     (1 << 7)
176
#define FMCSTAT_RBB            (1 << 0)
177
#define FMCSTAT_RBBDONE        (1 << 1)
178
#define FMCSTAT_CMDDONE        (1 << 2)
179
#define FMCSTAT_ADDRDONE       (1 << 3)
180
#define FMCSTAT_BANK0READY     (1 << 4)
181
#define FMCSTAT_BANK1READY     (1 << 5)
182
#define FMCSTAT_BANK2READY     (1 << 6)
183
#define FMCSTAT_BANK3READY     (1 << 7)
184
 
185
 
186
/////ECC/////
187
#define ECC_DATA_PTR  (*((volatile uint32_t*)(0x39E00004)))
188
#define ECC_SPARE_PTR (*((volatile uint32_t*)(0x39E00008)))
189
#define ECC_CTRL      (*((volatile uint32_t*)(0x39E0000C)))
190
#define ECC_RESULT    (*((volatile uint32_t*)(0x39E00010)))
191
#define ECC_UNK1      (*((volatile uint32_t*)(0x39E00014)))
192
#define ECC_INT_CLR   (*((volatile uint32_t*)(0x39E00040)))
193
#define ECCCTRL_STARTDECODING  (1 << 0)
194
#define ECCCTRL_STARTENCODING  (1 << 1)
195
#define ECCCTRL_STARTDECNOSYND (1 << 2)
196
 
197
 
198
/////CLICKWHEEL/////
199
#define WHEEL00      (*((volatile uint32_t*)(0x3C200000)))
200
#define WHEEL04      (*((volatile uint32_t*)(0x3C200004)))
201
#define WHEEL08      (*((volatile uint32_t*)(0x3C200008)))
202
#define WHEEL0C      (*((volatile uint32_t*)(0x3C20000C)))
203
#define WHEEL10      (*((volatile uint32_t*)(0x3C200010)))
204
#define WHEELINT     (*((volatile uint32_t*)(0x3C200014)))
205
#define WHEELRX      (*((volatile uint32_t*)(0x3C200018)))
206
#define WHEELTX      (*((volatile uint32_t*)(0x3C20001C)))
207
 
208
 
209
/////AES/////
210
#define AESCONTROL   (*((volatile uint32_t*)(0x39800000)))
211
#define AESGO        (*((volatile uint32_t*)(0x39800004)))
212
#define AESUNKREG0   (*((volatile uint32_t*)(0x39800008)))
213
#define AESSTATUS    (*((volatile uint32_t*)(0x3980000C)))
214
#define AESUNKREG1   (*((volatile uint32_t*)(0x39800010)))
215
#define AESKEYLEN    (*((volatile uint32_t*)(0x39800014)))
216
#define AESOUTSIZE   (*((volatile uint32_t*)(0x39800018)))
217
#define AESOUTADDR   (*((volatile uint32_t*)(0x39800020)))
218
#define AESINSIZE    (*((volatile uint32_t*)(0x39800024)))
219
#define AESINADDR    (*((volatile uint32_t*)(0x39800028)))
220
#define AESAUXSIZE   (*((volatile uint32_t*)(0x3980002C)))
221
#define AESAUXADDR   (*((volatile uint32_t*)(0x39800030)))
222
#define AESSIZE3     (*((volatile uint32_t*)(0x39800034)))
223
#define AESKEY         ((volatile uint32_t*)(0x3980004C))
224
#define AESTYPE      (*((volatile uint32_t*)(0x3980006C)))
225
#define AESIV          ((volatile uint32_t*)(0x39800074))
226
#define AESTYPE2     (*((volatile uint32_t*)(0x39800088)))
227
#define AESUNKREG2   (*((volatile uint32_t*)(0x3980008C)))
228
 
229
/////HASH/////
230
#define HASHCTRL     (*((volatile uint32_t*)(0x3C600000)))
231
#define HASHRESULT     ((volatile uint32_t*)(0x3C600020))
232
#define HASHDATAIN     ((volatile uint32_t*)(0x3C600040))
233
 
234
 
235
/////TIMER/////
236
#define TACON        (*((volatile uint32_t*)(0x3C700000)))
237
#define TACMD        (*((volatile uint32_t*)(0x3C700004)))
238
#define TADATA0      (*((volatile uint32_t*)(0x3C700008)))
239
#define TADATA1      (*((volatile uint32_t*)(0x3C70000C)))
240
#define TAPRE        (*((volatile uint32_t*)(0x3C700010)))
241
#define TACNT        (*((volatile uint32_t*)(0x3C700014)))
242
#define TBCON        (*((volatile uint32_t*)(0x3C700020)))
243
#define TBCMD        (*((volatile uint32_t*)(0x3C700024)))
244
#define TBDATA0      (*((volatile uint32_t*)(0x3C700028)))
245
#define TBDATA1      (*((volatile uint32_t*)(0x3C70002C)))
246
#define TBPRE        (*((volatile uint32_t*)(0x3C700030)))
247
#define TBCNT        (*((volatile uint32_t*)(0x3C700034)))
248
#define TCCON        (*((volatile uint32_t*)(0x3C700040)))
249
#define TCCMD        (*((volatile uint32_t*)(0x3C700044)))
250
#define TCDATA0      (*((volatile uint32_t*)(0x3C700048)))
251
#define TCDATA1      (*((volatile uint32_t*)(0x3C70004C)))
252
#define TCPRE        (*((volatile uint32_t*)(0x3C700050)))
253
#define TCCNT        (*((volatile uint32_t*)(0x3C700054)))
254
#define TDCON        (*((volatile uint32_t*)(0x3C700060)))
255
#define TDCMD        (*((volatile uint32_t*)(0x3C700064)))
256
#define TDDATA0      (*((volatile uint32_t*)(0x3C700068)))
257
#define TDDATA1      (*((volatile uint32_t*)(0x3C70006C)))
258
#define TDPRE        (*((volatile uint32_t*)(0x3C700070)))
259
#define TDCNT        (*((volatile uint32_t*)(0x3C700074)))
260
#define TECON        (*((volatile uint32_t*)(0x3C7000A0)))
261
#define TECMD        (*((volatile uint32_t*)(0x3C7000A4)))
262
#define TEDATA0      (*((volatile uint32_t*)(0x3C7000A8)))
263
#define TEDATA1      (*((volatile uint32_t*)(0x3C7000AC)))
264
#define TEPRE        (*((volatile uint32_t*)(0x3C7000B0)))
265
#define TECNT        (*((volatile uint32_t*)(0x3C7000B4)))
266
#define TFCON        (*((volatile uint32_t*)(0x3C7000C0)))
267
#define TFCMD        (*((volatile uint32_t*)(0x3C7000C4)))
268
#define TFDATA0      (*((volatile uint32_t*)(0x3C7000C8)))
269
#define TFDATA1      (*((volatile uint32_t*)(0x3C7000CC)))
270
#define TFPRE        (*((volatile uint32_t*)(0x3C7000D0)))
271
#define TFCNT        (*((volatile uint32_t*)(0x3C7000D4)))
272
#define TGCON        (*((volatile uint32_t*)(0x3C7000E0)))
273
#define TGCMD        (*((volatile uint32_t*)(0x3C7000E4)))
274
#define TGDATA0      (*((volatile uint32_t*)(0x3C7000E8)))
275
#define TGDATA1      (*((volatile uint32_t*)(0x3C7000EC)))
276
#define TGPRE        (*((volatile uint32_t*)(0x3C7000F0)))
277
#define TGCNT        (*((volatile uint32_t*)(0x3C7000F4)))
278
#define THCON        (*((volatile uint32_t*)(0x3C700100)))
279
#define THCMD        (*((volatile uint32_t*)(0x3C700104)))
280
#define THDATA0      (*((volatile uint32_t*)(0x3C700108)))
281
#define THDATA1      (*((volatile uint32_t*)(0x3C70010C)))
282
#define THPRE        (*((volatile uint32_t*)(0x3C700110)))
283
#define THCNT        (*((volatile uint32_t*)(0x3C700114)))
284
uint64_t read_42nsec_timer();
285
#define FOURTYTWO_NSEC_TIMER (read_42nsec_timer()) /* 64bit 24MHz timer */
286
 
287
 
288
/////USB/////
289
#define OTGBASE 0x38400000
290
#define PHYBASE 0x3C400000
291
 
292
 
293
/////I2C/////
294
#define IICCON       (*((volatile uint32_t*)(0x3C900000)))
295
#define IICSTAT      (*((volatile uint32_t*)(0x3C900004)))
296
#define IICADD       (*((volatile uint32_t*)(0x3C900008)))
297
#define IICDS        (*((volatile uint32_t*)(0x3C90000C)))
298
 
299
 
300
/////INTERRUPTS/////
301
#define VICIRQSTATUS(v)       (*((volatile uint32_t*)(0x38E00000 + 0x1000 * (v))))
302
#define VICFIQSTATUS(v)       (*((volatile uint32_t*)(0x38E00004 + 0x1000 * (v))))
303
#define VICRAWINTR(v)         (*((volatile uint32_t*)(0x38E00008 + 0x1000 * (v))))
304
#define VICINTSELECT(v)       (*((volatile uint32_t*)(0x38E0000C + 0x1000 * (v))))
305
#define VICINTENABLE(v)       (*((volatile uint32_t*)(0x38E00010 + 0x1000 * (v))))
306
#define VICINTENCLEAR(v)      (*((volatile uint32_t*)(0x38E00014 + 0x1000 * (v))))
307
#define VICSOFTINT(v)         (*((volatile uint32_t*)(0x38E00018 + 0x1000 * (v))))
308
#define VICSOFTINTCLEAR(v)    (*((volatile uint32_t*)(0x38E0001C + 0x1000 * (v))))
309
#define VICPROTECTION(v)      (*((volatile uint32_t*)(0x38E00020 + 0x1000 * (v))))
310
#define VICSWPRIORITYMASK(v)  (*((volatile uint32_t*)(0x38E00024 + 0x1000 * (v))))
311
#define VICPRIORITYDAISY(v)   (*((volatile uint32_t*)(0x38E00028 + 0x1000 * (v))))
312
#define VICVECTADDR(v, i)     (*((volatile uint32_t*)(0x38E00100 + 0x1000 * (v) + 4 * (i))))
313
#define VICVECTPRIORITY(v, i) (*((volatile uint32_t*)(0x38E00200 + 0x1000 * (v) + 4 * (i))))
314
#define VICADDRESS(v)         (*((volatile uint32_t*)(0x38E00F00 + 0x1000 * (v))))
315
#define VIC0IRQSTATUS         (*((volatile uint32_t*)(0x38E00000)))
316
#define VIC0FIQSTATUS         (*((volatile uint32_t*)(0x38E00004)))
317
#define VIC0RAWINTR           (*((volatile uint32_t*)(0x38E00008)))
318
#define VIC0INTSELECT         (*((volatile uint32_t*)(0x38E0000C)))
319
#define VIC0INTENABLE         (*((volatile uint32_t*)(0x38E00010)))
320
#define VIC0INTENCLEAR        (*((volatile uint32_t*)(0x38E00014)))
321
#define VIC0SOFTINT           (*((volatile uint32_t*)(0x38E00018)))
322
#define VIC0SOFTINTCLEAR      (*((volatile uint32_t*)(0x38E0001C)))
323
#define VIC0PROTECTION        (*((volatile uint32_t*)(0x38E00020)))
324
#define VIC0SWPRIORITYMASK    (*((volatile uint32_t*)(0x38E00024)))
325
#define VIC0PRIORITYDAISY     (*((volatile uint32_t*)(0x38E00028)))
326
#define VIC0VECTADDR(i)       (*((volatile uint32_t*)(0x38E00100 + 4 * (i))))
327
#define VIC0VECTADDR0         (*((volatile uint32_t*)(0x38E00100)))
328
#define VIC0VECTADDR1         (*((volatile uint32_t*)(0x38E00104)))
329
#define VIC0VECTADDR2         (*((volatile uint32_t*)(0x38E00108)))
330
#define VIC0VECTADDR3         (*((volatile uint32_t*)(0x38E0010C)))
331
#define VIC0VECTADDR4         (*((volatile uint32_t*)(0x38E00110)))
332
#define VIC0VECTADDR5         (*((volatile uint32_t*)(0x38E00114)))
333
#define VIC0VECTADDR6         (*((volatile uint32_t*)(0x38E00118)))
334
#define VIC0VECTADDR7         (*((volatile uint32_t*)(0x38E0011C)))
335
#define VIC0VECTADDR8         (*((volatile uint32_t*)(0x38E00120)))
336
#define VIC0VECTADDR9         (*((volatile uint32_t*)(0x38E00124)))
337
#define VIC0VECTADDR10        (*((volatile uint32_t*)(0x38E00128)))
338
#define VIC0VECTADDR11        (*((volatile uint32_t*)(0x38E0012C)))
339
#define VIC0VECTADDR12        (*((volatile uint32_t*)(0x38E00130)))
340
#define VIC0VECTADDR13        (*((volatile uint32_t*)(0x38E00134)))
341
#define VIC0VECTADDR14        (*((volatile uint32_t*)(0x38E00138)))
342
#define VIC0VECTADDR15        (*((volatile uint32_t*)(0x38E0013C)))
343
#define VIC0VECTADDR16        (*((volatile uint32_t*)(0x38E00140)))
344
#define VIC0VECTADDR17        (*((volatile uint32_t*)(0x38E00144)))
345
#define VIC0VECTADDR18        (*((volatile uint32_t*)(0x38E00148)))
346
#define VIC0VECTADDR19        (*((volatile uint32_t*)(0x38E0014C)))
347
#define VIC0VECTADDR20        (*((volatile uint32_t*)(0x38E00150)))
348
#define VIC0VECTADDR21        (*((volatile uint32_t*)(0x38E00154)))
349
#define VIC0VECTADDR22        (*((volatile uint32_t*)(0x38E00158)))
350
#define VIC0VECTADDR23        (*((volatile uint32_t*)(0x38E0015C)))
351
#define VIC0VECTADDR24        (*((volatile uint32_t*)(0x38E00160)))
352
#define VIC0VECTADDR25        (*((volatile uint32_t*)(0x38E00164)))
353
#define VIC0VECTADDR26        (*((volatile uint32_t*)(0x38E00168)))
354
#define VIC0VECTADDR27        (*((volatile uint32_t*)(0x38E0016C)))
355
#define VIC0VECTADDR28        (*((volatile uint32_t*)(0x38E00170)))
356
#define VIC0VECTADDR29        (*((volatile uint32_t*)(0x38E00174)))
357
#define VIC0VECTADDR30        (*((volatile uint32_t*)(0x38E00178)))
358
#define VIC0VECTADDR31        (*((volatile uint32_t*)(0x38E0017C)))
359
#define VIC0VECTPRIORITY(i)   (*((volatile uint32_t*)(0x38E00200 + 4 * (i))))
360
#define VIC0VECTPRIORITY0     (*((volatile uint32_t*)(0x38E00200)))
361
#define VIC0VECTPRIORITY1     (*((volatile uint32_t*)(0x38E00204)))
362
#define VIC0VECTPRIORITY2     (*((volatile uint32_t*)(0x38E00208)))
363
#define VIC0VECTPRIORITY3     (*((volatile uint32_t*)(0x38E0020C)))
364
#define VIC0VECTPRIORITY4     (*((volatile uint32_t*)(0x38E00210)))
365
#define VIC0VECTPRIORITY5     (*((volatile uint32_t*)(0x38E00214)))
366
#define VIC0VECTPRIORITY6     (*((volatile uint32_t*)(0x38E00218)))
367
#define VIC0VECTPRIORITY7     (*((volatile uint32_t*)(0x38E0021C)))
368
#define VIC0VECTPRIORITY8     (*((volatile uint32_t*)(0x38E00220)))
369
#define VIC0VECTPRIORITY9     (*((volatile uint32_t*)(0x38E00224)))
370
#define VIC0VECTPRIORITY10    (*((volatile uint32_t*)(0x38E00228)))
371
#define VIC0VECTPRIORITY11    (*((volatile uint32_t*)(0x38E0022C)))
372
#define VIC0VECTPRIORITY12    (*((volatile uint32_t*)(0x38E00230)))
373
#define VIC0VECTPRIORITY13    (*((volatile uint32_t*)(0x38E00234)))
374
#define VIC0VECTPRIORITY14    (*((volatile uint32_t*)(0x38E00238)))
375
#define VIC0VECTPRIORITY15    (*((volatile uint32_t*)(0x38E0023C)))
376
#define VIC0VECTPRIORITY16    (*((volatile uint32_t*)(0x38E00240)))
377
#define VIC0VECTPRIORITY17    (*((volatile uint32_t*)(0x38E00244)))
378
#define VIC0VECTPRIORITY18    (*((volatile uint32_t*)(0x38E00248)))
379
#define VIC0VECTPRIORITY19    (*((volatile uint32_t*)(0x38E0024C)))
380
#define VIC0VECTPRIORITY20    (*((volatile uint32_t*)(0x38E00250)))
381
#define VIC0VECTPRIORITY21    (*((volatile uint32_t*)(0x38E00254)))
382
#define VIC0VECTPRIORITY22    (*((volatile uint32_t*)(0x38E00258)))
383
#define VIC0VECTPRIORITY23    (*((volatile uint32_t*)(0x38E0025C)))
384
#define VIC0VECTPRIORITY24    (*((volatile uint32_t*)(0x38E00260)))
385
#define VIC0VECTPRIORITY25    (*((volatile uint32_t*)(0x38E00264)))
386
#define VIC0VECTPRIORITY26    (*((volatile uint32_t*)(0x38E00268)))
387
#define VIC0VECTPRIORITY27    (*((volatile uint32_t*)(0x38E0026C)))
388
#define VIC0VECTPRIORITY28    (*((volatile uint32_t*)(0x38E00270)))
389
#define VIC0VECTPRIORITY29    (*((volatile uint32_t*)(0x38E00274)))
390
#define VIC0VECTPRIORITY30    (*((volatile uint32_t*)(0x38E00278)))
391
#define VIC0VECTPRIORITY31    (*((volatile uint32_t*)(0x38E0027C)))
392
#define VIC0ADDRESS           (*((volatile uint32_t*)(0x38E00F00)))
393
#define VIC1IRQSTATUS         (*((volatile uint32_t*)(0x38E01000)))
394
#define VIC1FIQSTATUS         (*((volatile uint32_t*)(0x38E01004)))
395
#define VIC1RAWINTR           (*((volatile uint32_t*)(0x38E01008)))
396
#define VIC1INTSELECT         (*((volatile uint32_t*)(0x38E0100C)))
397
#define VIC1INTENABLE         (*((volatile uint32_t*)(0x38E01010)))
398
#define VIC1INTENCLEAR        (*((volatile uint32_t*)(0x38E01014)))
399
#define VIC1SOFTINT           (*((volatile uint32_t*)(0x38E01018)))
400
#define VIC1SOFTINTCLEAR      (*((volatile uint32_t*)(0x38E0101C)))
401
#define VIC1PROTECTION        (*((volatile uint32_t*)(0x38E01020)))
402
#define VIC1SWPRIORITYMASK    (*((volatile uint32_t*)(0x38E01024)))
403
#define VIC1PRIORITYDAISY     (*((volatile uint32_t*)(0x38E01028)))
404
#define VIC1VECTADDR(i)       (*((volatile uint32_t*)(0x38E01100 + 4 * (i))))
405
#define VIC1VECTADDR0         (*((volatile uint32_t*)(0x38E01100)))
406
#define VIC1VECTADDR1         (*((volatile uint32_t*)(0x38E01104)))
407
#define VIC1VECTADDR2         (*((volatile uint32_t*)(0x38E01108)))
408
#define VIC1VECTADDR3         (*((volatile uint32_t*)(0x38E0110C)))
409
#define VIC1VECTADDR4         (*((volatile uint32_t*)(0x38E01110)))
410
#define VIC1VECTADDR5         (*((volatile uint32_t*)(0x38E01114)))
411
#define VIC1VECTADDR6         (*((volatile uint32_t*)(0x38E01118)))
412
#define VIC1VECTADDR7         (*((volatile uint32_t*)(0x38E0111C)))
413
#define VIC1VECTADDR8         (*((volatile uint32_t*)(0x38E01120)))
414
#define VIC1VECTADDR9         (*((volatile uint32_t*)(0x38E01124)))
415
#define VIC1VECTADDR10        (*((volatile uint32_t*)(0x38E01128)))
416
#define VIC1VECTADDR11        (*((volatile uint32_t*)(0x38E0112C)))
417
#define VIC1VECTADDR12        (*((volatile uint32_t*)(0x38E01130)))
418
#define VIC1VECTADDR13        (*((volatile uint32_t*)(0x38E01134)))
419
#define VIC1VECTADDR14        (*((volatile uint32_t*)(0x38E01138)))
420
#define VIC1VECTADDR15        (*((volatile uint32_t*)(0x38E0113C)))
421
#define VIC1VECTADDR16        (*((volatile uint32_t*)(0x38E01140)))
422
#define VIC1VECTADDR17        (*((volatile uint32_t*)(0x38E01144)))
423
#define VIC1VECTADDR18        (*((volatile uint32_t*)(0x38E01148)))
424
#define VIC1VECTADDR19        (*((volatile uint32_t*)(0x38E0114C)))
425
#define VIC1VECTADDR20        (*((volatile uint32_t*)(0x38E01150)))
426
#define VIC1VECTADDR21        (*((volatile uint32_t*)(0x38E01154)))
427
#define VIC1VECTADDR22        (*((volatile uint32_t*)(0x38E01158)))
428
#define VIC1VECTADDR23        (*((volatile uint32_t*)(0x38E0115C)))
429
#define VIC1VECTADDR24        (*((volatile uint32_t*)(0x38E01160)))
430
#define VIC1VECTADDR25        (*((volatile uint32_t*)(0x38E01164)))
431
#define VIC1VECTADDR26        (*((volatile uint32_t*)(0x38E01168)))
432
#define VIC1VECTADDR27        (*((volatile uint32_t*)(0x38E0116C)))
433
#define VIC1VECTADDR28        (*((volatile uint32_t*)(0x38E01170)))
434
#define VIC1VECTADDR29        (*((volatile uint32_t*)(0x38E01174)))
435
#define VIC1VECTADDR30        (*((volatile uint32_t*)(0x38E01178)))
436
#define VIC1VECTADDR31        (*((volatile uint32_t*)(0x38E0117C)))
437
#define VIC1VECTPRIORITY(i)   (*((volatile uint32_t*)(0x38E01200 + 4 * (i))))
438
#define VIC1VECTPRIORITY0     (*((volatile uint32_t*)(0x38E01200)))
439
#define VIC1VECTPRIORITY1     (*((volatile uint32_t*)(0x38E01204)))
440
#define VIC1VECTPRIORITY2     (*((volatile uint32_t*)(0x38E01208)))
441
#define VIC1VECTPRIORITY3     (*((volatile uint32_t*)(0x38E0120C)))
442
#define VIC1VECTPRIORITY4     (*((volatile uint32_t*)(0x38E01210)))
443
#define VIC1VECTPRIORITY5     (*((volatile uint32_t*)(0x38E01214)))
444
#define VIC1VECTPRIORITY6     (*((volatile uint32_t*)(0x38E01218)))
445
#define VIC1VECTPRIORITY7     (*((volatile uint32_t*)(0x38E0121C)))
446
#define VIC1VECTPRIORITY8     (*((volatile uint32_t*)(0x38E01220)))
447
#define VIC1VECTPRIORITY9     (*((volatile uint32_t*)(0x38E01224)))
448
#define VIC1VECTPRIORITY10    (*((volatile uint32_t*)(0x38E01228)))
449
#define VIC1VECTPRIORITY11    (*((volatile uint32_t*)(0x38E0122C)))
450
#define VIC1VECTPRIORITY12    (*((volatile uint32_t*)(0x38E01230)))
451
#define VIC1VECTPRIORITY13    (*((volatile uint32_t*)(0x38E01234)))
452
#define VIC1VECTPRIORITY14    (*((volatile uint32_t*)(0x38E01238)))
453
#define VIC1VECTPRIORITY15    (*((volatile uint32_t*)(0x38E0123C)))
454
#define VIC1VECTPRIORITY16    (*((volatile uint32_t*)(0x38E01240)))
455
#define VIC1VECTPRIORITY17    (*((volatile uint32_t*)(0x38E01244)))
456
#define VIC1VECTPRIORITY18    (*((volatile uint32_t*)(0x38E01248)))
457
#define VIC1VECTPRIORITY19    (*((volatile uint32_t*)(0x38E0124C)))
458
#define VIC1VECTPRIORITY20    (*((volatile uint32_t*)(0x38E01250)))
459
#define VIC1VECTPRIORITY21    (*((volatile uint32_t*)(0x38E01254)))
460
#define VIC1VECTPRIORITY22    (*((volatile uint32_t*)(0x38E01258)))
461
#define VIC1VECTPRIORITY23    (*((volatile uint32_t*)(0x38E0125C)))
462
#define VIC1VECTPRIORITY24    (*((volatile uint32_t*)(0x38E01260)))
463
#define VIC1VECTPRIORITY25    (*((volatile uint32_t*)(0x38E01264)))
464
#define VIC1VECTPRIORITY26    (*((volatile uint32_t*)(0x38E01268)))
465
#define VIC1VECTPRIORITY27    (*((volatile uint32_t*)(0x38E0126C)))
466
#define VIC1VECTPRIORITY28    (*((volatile uint32_t*)(0x38E01270)))
467
#define VIC1VECTPRIORITY29    (*((volatile uint32_t*)(0x38E01274)))
468
#define VIC1VECTPRIORITY30    (*((volatile uint32_t*)(0x38E01278)))
469
#define VIC1VECTPRIORITY31    (*((volatile uint32_t*)(0x38E0127C)))
470
#define VIC1ADDRESS           (*((volatile uint32_t*)(0x38E01F00)))
471
#define IRQ_TIMER 8
472
#define IRQ_USB_FUNC 19
473
#define IRQ_IIC 0
474
 
475
 
476
#endif