OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [hal/] [powerpc/] [mpc5xx/] [v2_0/] [include/] [var_regs.h] - Blame information for rev 565

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 unneback
#ifndef CYGONCE_HAL_VAR_REGS_H
2
#define CYGONCE_HAL_VAR_REGS_H
3
 
4
//==========================================================================
5
//
6
//      var_regs.h
7
//
8
//      PowerPC 5xx variant CPU definitions
9
//
10
//==========================================================================
11
//####ECOSGPLCOPYRIGHTBEGIN####
12
// -------------------------------------------
13
// This file is part of eCos, the Embedded Configurable Operating System.
14
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
15
//
16
// eCos is free software; you can redistribute it and/or modify it under
17
// the terms of the GNU General Public License as published by the Free
18
// Software Foundation; either version 2 or (at your option) any later version.
19
//
20
// eCos is distributed in the hope that it will be useful, but WITHOUT ANY
21
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
22
// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
23
// for more details.
24
//
25
// You should have received a copy of the GNU General Public License along
26
// with eCos; if not, write to the Free Software Foundation, Inc.,
27
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
28
//
29
// As a special exception, if other files instantiate templates or use macros
30
// or inline functions from this file, or you compile this file and link it
31
// with other works to produce a work based on this file, this file does not
32
// by itself cause the resulting work to be covered by the GNU General Public
33
// License. However the source code for this file must still be made available
34
// in accordance with section (3) of the GNU General Public License.
35
//
36
// This exception does not invalidate any other reasons why a work based on
37
// this file might be covered by the GNU General Public License.
38
//
39
// Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
40
// at http://sources.redhat.com/ecos/ecos-license/
41
// -------------------------------------------
42
//####ECOSGPLCOPYRIGHTEND####
43
//==========================================================================
44
//#####DESCRIPTIONBEGIN####
45
//
46
// Author(s):    Bob Koninckx
47
// Contributors: Bob Koninckx
48
// Date:         2001-09-12
49
// Purpose:      Provide MPC5xx register definitions
50
// Description:  Provide MPC5xx register definitions
51
//               The short difinitions (sans CYGARC_REG_) are exported only
52
//               if CYGARC_HAL_COMMON_EXPORT_CPU_MACROS is defined.
53
// Usage:        Included via the acrhitecture register header:
54
//               #include <cyg/hal/ppc_regs.h>
55
//               ...
56
//              
57
//
58
//####DESCRIPTIONEND####
59
//
60
//==========================================================================
61
 
62
//--------------------------------------------------------------------------
63
// Special purpose registers
64
// 
65
#define CYGARC_REG_XER          1
66
#define CYGARC_REG_LR           8
67
#define CYGARC_REG_CTR          9
68
#define CYGARC_REG_EIE          80
69
#define CYGARC_REG_EID          81
70
#define CYGARC_REG_NRI          82
71
#define CYGARC_REG_CMPA         144
72
#define CYGARC_REG_CMPB         145
73
#define CYGARC_REG_CMPC         146
74
#define CYGARC_REG_CMPD         147
75
#define CYGARC_REG_ECR          148
76
#define CYGARC_REG_DER          149
77
#define CYGARC_REG_COUNTA       150
78
#define CYGARC_REG_COUNTB       151
79
#define CYGARC_REG_CMPE         152
80
#define CYGARC_REG_CMPF         153
81
#define CYGARC_REG_CMPG         154
82
#define CYGARC_REG_CMPH         155
83
#define CYGARC_REG_LCTRL1       156
84
#define CYGARC_REG_LCTRL2       157
85
#define CYGARC_REG_ICTRL        158
86
#define CYGARC_REG_BAR          159
87
#define CYGARC_REG_MI_GRA       528
88
#define CYGARC_REG_L2U_GRA      536
89
#define CYGARC_REG_BBCMCR       560
90
#define CYGARC_REG_L2U_MCR      568
91
#define CYGARC_REG_DPDR         630
92
#define CYGARC_REG_IMMR         638
93
#define CYGARC_REG_MI_RBA0      784
94
#define CYGARC_REG_MI_RBA1      785
95
#define CYGARC_REG_MI_RBA2      786
96
#define CYGARC_REG_MI_RBA3      787
97
#define CYGARC_REG_L2U_RBA0     792
98
#define CYGARC_REG_L2U_RBA1     793
99
#define CYGARC_REG_L2U_RBA2     794
100
#define CYGARC_REG_L2U_RBA3     795
101
#define CYGARC_REG_MI_RA0       816
102
#define CYGARC_REG_MI_RA1       817
103
#define CYGARC_REG_MI_RA2       818
104
#define CYGARC_REG_MI_RA3       819
105
#define CYGARC_REG_L2U_RA0      824
106
#define CYGARC_REG_L2U_RA1      825
107
#define CYGARC_REG_L2U_RA2      826
108
#define CYGARC_REG_L2U_RA3      827
109
#define CYGARC_REG_FPECR        1022
110
 
111
#ifdef CYGARC_HAL_COMMON_EXPORT_CPU_MACROS
112
//# define XER                CYGARC_REG_XER // Leave these out, they conflict with GDB stubs
113
//# define LR                 CYGARC_REG_LR  // are not used anyway
114
# define CTR                CYGARC_REG_CTR
115
# define EIE                CYGARC_REG_EIE
116
# define EID                CYGARC_REG_EID  
117
# define NRI                CYGARC_REG_NRI
118
# define CMPA               CYGARC_REG_CMPA
119
# define CMPB               CYGARC_REG_CMPB
120
# define CMPC               CYGARC_REG_CMPC
121
# define CMPD               CYGARC_REG_CMPD
122
# define ECR                CYGARC_REG_ECR
123
# define DER                CYGARC_REG_DER
124
# define COUNTA             CYGARC_REG_COUNTA
125
# define COUNTB             CYGARC_REG_COUNTB
126
# define CMPE               CYGARC_REG_CMPE
127
# define CMPF               CYGARC_REG_CMPF
128
# define CMPG               CYGARC_REG_CMPG
129
# define CMPH               CYGARC_REG_CMPH
130
# define LCTRL1             CYGARC_REG_LCTRL1
131
# define LCTRL2             CYGARC_REG_LCTRL2
132
# define ICTRL              CYGARC_REG_ICTRL
133
# define BAR                CYGARC_REG_BAR
134
# define MI_GRA             CYGARC_REG_MI_GRA
135
# define L2U_GRA            CYGARC_REG_L2U_GRA
136
# define BBCMCR             CYGARC_REG_BBCMCR
137
# define L2U_MCR            CYGARC_REG_L2U_MCR
138
# define DPDR               CYGARC_REG_DPDR
139
# define IMMR               CYGARC_REG_IMMR
140
# define MI_RBA0            CYGARC_REG_MI_RBA0
141
# define MI_RBA1            CYGARC_REG_MI_RBA1
142
# define MI_RBA2            CYGARC_REG_MI_RBA2
143
# define MI_RBA3            CYGARC_REG_MI_RBA3
144
# define L2U_RBA0           CYGARC_REG_L2U_RBA0
145
# define L2U_RBA1           CYGARC_REG_L2U_RBA1
146
# define L2U_RBA2           CYGARC_REG_L2U_RBA2
147
# define L2U_RBA3           CYGARC_REG_L2U_RBA3
148
# define MI_RA0             CYGARC_REG_MI_RA0
149
# define MI_RA1             CYGARC_REG_MI_RA1
150
# define MI_RA2             CYGARC_REG_MI_RA2
151
# define MI_RA3             CYGARC_REG_MI_RA3
152
# define L2U_RA0            CYGARC_REG_L2U_RA0
153
# define L2U_RA1            CYGARC_REG_L2U_RA1
154
# define L2U_RA2            CYGARC_REG_L2U_RA2
155
# define L2U_RA3            CYGARC_REG_L2U_RA3
156
# define FPECR              CYGARC_REG_FPECR
157
#endif //#ifdef CYGARC_HAL_COMMON_EXPORT_CPU_MACROS
158
 
159
//-----------------------------------------------------------------------------
160
// Development Support.
161
#define CYGARC_REG_DER             149
162
 
163
#define CYGARC_REG_ICTRL           158  // instruction support control reg
164
#define CYGARC_REG_ICTRL_SERSHOW   0x00000000 // serialized, show cycles
165
#define CYGARC_REG_ICTRL_NOSERSHOW 0x00000007 //non-serialized&no show cycles
166
 
167
#ifdef CYGARC_HAL_COMMON_EXPORT_CPU_MACROS
168
#define DER             CYGARC_REG_DER
169
 
170
#define ICTRL           CYGARC_REG_ICTRL
171
#define ICTRL_SERSHOW   CYGARC_REG_ICTRL_SERSHOW
172
#define ICTRL_NOSERSHOW CYGARC_REG_ICTRL_NOSERSHOW
173
#endif // ifdef CYGARC_HAL_COMMON_EXPORT_CPU_MACROS
174
 
175
//-----------------------------------------------------------------------------
176
// Bit definitions
177
//-----------------------------------------------------------------------------
178
// The internal memory map register (IMMR)
179
#define CYGARC_REG_IMM_IMMR_PARTNUM    0xff000000  // part number mask (ro)
180
#define CYGARC_REG_IMM_IMMR_MASKNUM    0x00ff0000  // mask number mask (ro)
181
#define CYGARC_REG_IMM_IMMR_ISB        0x0000000e  // internal space base
182
#define CYGARC_REG_IMM_IMMR_CLES       0x00000100  // core little endian swap
183
#define CYGARC_REG_IMM_IMMR_FLEN       0x00000800  // flash enable
184
 
185
//-----------------------------------------------------------------------------
186
// System protection control (SYPCR)
187
#define CYGARC_REG_IMM_SYPR_SWTC_MASK  0xffff0000
188
#define CYGARC_REG_IMM_SYPR_BMT_MASK   0x0000ff00
189
#define CYGARC_REG_IMM_SYPR_BME        0x00000080
190
#define CYGARC_REG_IMM_SYPR_SWF        0x00000008
191
#define CYGARC_REG_IMM_SYPR_SWE        0x00000004
192
#define CYGARC_REG_IMM_SYPR_SWRI       0x00000002 
193
#define CYGARC_REG_IMM_SYPR_SWP        0x00000001
194
 
195
//-----------------------------------------------------------------------------
196
// Interrupt pend register (SIPEND)
197
#define CYGARC_REG_IMM_SIPEND_IRQ0     0x80000000  // External interrupt priority 0
198
#define CYGARC_REG_IMM_SIPEND_LVL0     0x40000000  // Internal interrupt level 0
199
#define CYGARC_REG_IMM_SIPEND_IRQ1     0x20000000  // External interrupt priority 1
200
#define CYGARC_REG_IMM_SIPEND_LVL1     0x10000000  // Internal interrupt level 1
201
#define CYGARC_REG_IMM_SIPEND_IRQ2     0x08000000  // External interrupt priority 2
202
#define CYGARC_REG_IMM_SIPEND_LVL2     0x04000000  // Internal interrupt level 2
203
#define CYGARC_REG_IMM_SIPEND_IRQ3     0x02000000  // External interrupt priority 3
204
#define CYGARC_REG_IMM_SIPEND_LVL3     0x01000000  // Internal interrupt level 3
205
#define CYGARC_REG_IMM_SIPEND_IRQ4     0x00800000  // External interrupt prioeity 4
206
#define CYGARC_REG_IMM_SIPEND_LVL4     0x00400000  // Internal interrupt level 4
207
#define CYGARC_REG_IMM_SIPEND_IRQ5     0x00200000  // External interrupt priority 5
208
#define CYGARC_REG_IMM_SIPEND_LVL5     0x00100000  // Internal interrupt level 5
209
#define CYGARC_REG_IMM_SIPEND_IRQ6     0x00080000  // External interrupt priority 6
210
#define CYGARC_REG_IMM_SIPEND_LVL6     0x00040000  // Internal interrupt level 6
211
#define CYGARC_REG_IMM_SIPEND_IRQ7     0x00020000  // External interrupt priority 7
212
#define CYGARC_REG_IMM_SIPEND_LVL7     0x00010000  // Internal interrupt level 7
213
 
214
//-----------------------------------------------------------------------------
215
// Interrupt mask register (SIMASK)
216
#define CYGARC_REG_IMM_SIMASK_IRM0     0x80000000  // External interrupt priority 0
217
#define CYGARC_REG_IMM_SIMASK_LVM0     0x40000000  // Internal interrupt level 0
218
#define CYGARC_REG_IMM_SIMASK_IRM1     0x20000000  // External interrupt priority 1
219
#define CYGARC_REG_IMM_SIMASK_LVM1     0x10000000  // Internal interrupt level 1
220
#define CYGARC_REG_IMM_SIMASK_IRM2     0x08000000  // External interrupt priority 2
221
#define CYGARC_REG_IMM_SIMASK_LVM2     0x04000000  // Internal interrupt level 2
222
#define CYGARC_REG_IMM_SIMASK_IRM3     0x02000000  // External interrupt priority 3
223
#define CYGARC_REG_IMM_SIMASK_LVM3     0x01000000  // Internal interrupt level 3
224
#define CYGARC_REG_IMM_SIMASK_IRM4     0x00800000  // External interrupt priority 4
225
#define CYGARC_REG_IMM_SIMASK_LVM4     0x00400000  // Internal interrupt level 4
226
#define CYGARC_REG_IMM_SIMASK_IRM5     0x00200000  // External interrupt priority 5
227
#define CYGARC_REG_IMM_SIMASK_LVM5     0x00100000  // Internal interrupt level 5
228
#define CYGARC_REG_IMM_SIMASK_IRM6     0x00080000  // External interrupt priority 6
229
#define CYGARC_REG_IMM_SIMASK_LVM6     0x00040000  // Internal interrupt level 6
230
#define CYGARC_REG_IMM_SIMASK_IRM7     0x00020000  // External interrupt priority 7
231
#define CYGARC_REG_IMM_SIMASK_LVM7     0x00010000  // Internal interrupt level 7
232
 
233
//-----------------------------------------------------------------------------
234
// Interrupt edge level register (CIEL)
235
#define CYGARC_REG_IMM_SIEL_ED0        0x80000000  // Falling edge external interrupt priority 0
236
#define CYGARC_REG_IMM_SIEL_WM0        0x40000000  // Wake-up mask external interrupt priority 0
237
#define CYGARC_REG_IMM_SIEL_ED1        0x20000000  // Falling edge external interrupt priority 1
238
#define CYGARC_REG_IMM_SIEL_WM1        0x10000000  // Wake-up mask external interrupt priority 1
239
#define CYGARC_REG_IMM_SIEL_ED2        0x08000000  // Falling edge external interrupt priority 2
240
#define CYGARC_REG_IMM_SIEL_WM2        0x04000000  // Wake-up mask external interrupt priority 2
241
#define CYGARC_REG_IMM_SIEL_ED3        0x02000000  // Falling edge external interrupt priority 3
242
#define CYGARC_REG_IMM_SIEL_WM3        0x01000000  // Wake-up mask external interrupt priority 3
243
#define CYGARC_REG_IMM_SIEL_ED4        0x00800000  // Falling edge external interrupt prioriry 4
244
#define CYGARC_REG_IMM_SIEL_WM4        0x00400000  // Wake-up mask external interrupt priority 4
245
#define CYGARC_REG_IMM_SIEL_ED5        0x00200000  // Falling edge external interrupt priority 5
246
#define CYGARC_REG_IMM_SIEL_WM5        0x00100000  // Wake-up mask external interrupt priority 5
247
#define CYGARC_REG_IMM_SIEL_ED6        0x00080000  // Falling edge external interrupt priority 6
248
#define CYGARC_REG_IMM_SIEL_WM6        0x00040000  // Wake-up mask external interrupt priority 6
249
#define CYGARC_REG_IMM_SIEL_ED7        0x00020000  // Falling edge external interrupt priority 7
250
#define CYGARC_REG_IMM_SIEL_WM7        0x00010000  // Wake-up mask external interrupt priority 7
251
 
252
//-----------------------------------------------------------------------------
253
// Memory controller
254
#define CYGARC_REG_IMM_BR_BA_MASK      0xffff8000       // base address
255
#define CYGARC_REG_IMM_BR_AT_MASK      0x00007000       // address type
256
#define CYGARC_REG_IMM_BR_PS_8         0x00000400       // port size 8 bits
257
#define CYGARC_REG_IMM_BR_PS_16        0x00000800       // port size 16 bits
258
#define CYGARC_REG_IMM_BR_PS_32        0x00000000       // port size 32 bits
259
#define CYGARC_REG_IMM_BR_WP           0x00000100       // write protect
260
#define CYGARC_REG_IMM_BR_WEBS         0x00000020       // write enable byte select
261
#define CYGARC_REG_IMM_BR_TBDIP        0x00000010       // toggle burst data in progress
262
#define CYGARC_REG_IMM_BR_LBDIP        0x00000008       // late burst data in progress
263
#define CYGARC_REG_IMM_BR_SETA         0x00000004       // externam transfer acknowledge
264
#define CYGARC_REG_IMM_BR_BI           0x00000002       // burst inhibit
265
#define CYGARC_REG_IMM_BR_V            0x00000001       // valid bit
266
 
267
#define CYGARC_REG_IMM_OR_AM           0xffff8000       // address mask   
268
#define CYGARC_REG_IMM_OR_ATM          0x00007000       // address type mask
269
#define CYGARC_REG_IMM_OR_CSNT         0x00000800       // GPCM : chip select negatoion time
270
#define CYGARC_REG_IMM_OR_ACS_0        0x00000000       // GPCM : CS output immediately
271
#define CYGARC_REG_IMM_OR_ACS_4        0x00000400       // GPCM : CS output 1/4 clock cycle later
272
#define CYGARC_REG_IMM_OR_ACS_2        0x00000600       // GPCM : CS output 1/2 clock cycle later
273
#define CYGARC_REG_IMM_OR_SCY_MASK     0x000000f0       // cycle length in clocks
274
#define CYGARC_REG_IMM_OR_BSCY         0x0000000E       // burst cycle length in clocks
275
#define CYGARC_REG_IMM_OR_TRLX         0x00000001       // timing relaxed
276
#define CYGARC_REG_IMM_OR_EHTR         0x00000100       // extended hold time on read
277
#define CYGARC_REG_IMM_OR_SCY_SHIFT    4            
278
 
279
//-----------------------------------------------------------------------------
280
// Time base status and control (TBSCR)
281
#define CYGARC_REG_IMM_TBSCR_REFA      0x0080           // reference interrupt status A
282
#define CYGARC_REG_IMM_TBSCR_REFB      0x0040           // reference interrupt status B
283
#define CYGARC_REG_IMM_TBSCR_REFAE     0x0008           // reference interrupt enable A
284
#define CYGARC_REG_IMM_TBSCR_REFBE     0x0004           // reference interrupt enable B
285
#define CYGARC_REG_IMM_TBSCR_TBF       0x0002           // timebase freeze
286
#define CYGARC_REG_IMM_TBSCR_TBE       0x0001           // timebase enable
287
#define CYGARC_REG_IMM_TBSCR_IRQ0      0x8000           // highest interrupt level
288
#define CYGARC_REG_IMM_TBSCR_IRQMASK   0xff00           // irq priority mask
289
 
290
//-----------------------------------------------------------------------------
291
// Real time clock
292
#define CYGARC_REG_IMM_RTCSC_SEC       0x0080           // once per second interrupt
293
#define CYGARC_REG_IMM_RTCSC_ALR       0x0040           // alarm interrupt
294
#define CYGARC_REG_IMM_RTCSC_4M        0x0010           // source select
295
#define CYGARC_REG_IMM_RTCSC_SIE       0x0008           // second interrupt enable
296
#define CYGARC_REG_IMM_RTCSC_ALE       0x0004           // alarm interrupt enable
297
#define CYGARC_REG_IMM_RTCSC_RTF       0x0002           // real time clock freeze
298
#define CYGARC_REG_IMM_RTCSC_RTE       0x0001           // real time clock enable
299
#define CYGARC_REG_IMM_RTCSC_IRQ0      0x8000           // highest interrupt priority
300
#define CYGARC_REG_IMM_RTCSC_IRQMASK   0xff00           // irq priority mask
301
 
302
//-----------------------------------------------------------------------------
303
// Periodic interrupt status an control
304
#define CYGARC_REG_IMM_PISCR_PS        0x0080           // periodic interrupt status
305
#define CYGARC_REG_IMM_PISCR_PIE       0x0004           // periodic interrupt enable
306
#define CYGARC_REG_IMM_PISCR_PITF      0x0002           // periodic interrupt timer freeze
307
#define CYGARC_REG_IMM_PISCR_PTE       0x0001           // periodic timer enable
308
#define CYGARC_REG_IMM_PISCR_IRQ0      0x8000           // highest intetrupt priority
309
#define CYGARC_REG_IMM_PISCR_IRQMASK   0xff00           // irq priority mask
310
 
311
//-----------------------------------------------------------------------------
312
// Queued analog to digital convertor
313
#define CYGARC_REG_IMM_QUACR1_CIE1       0x8000
314
#define CYGARC_REG_IMM_QUACR1_PIE1       0x4000
315
#define CYGARC_REG_IMM_QUACR1_SSE1       0x2000
316
#define CYGARC_REG_IMM_QUACR1_MO1        0x1f00
317
#define CYGARC_REG_IMM_QUACR2_CIE2       0x8000
318
#define CYGARC_REG_IMM_QUACR2_PIE2       0x4000
319
#define CYGARC_REG_IMM_QUACR2_SSE2       0x2000
320
#define CYGARC_REG_IMM_QUACR2_MO2        0x1f00
321
#define CYGARC_REG_IMM_QUACR2_RESUME     0x0080
322
#define CYGARC_REG_IMM_QUACR2_BQ2        0x007f
323
#define CYGARC_REG_IMM_QUASR0_CF1        0x8000
324
#define CYGARC_REG_IMM_QUASR0_PF1        0x4000
325
#define CYGARC_REG_IMM_QUASR0_CF2        0x2000
326
#define CYGARC_REG_IMM_QUASR0_PF2        0x1000
327
#define CYGARC_REG_IMM_QUASR0_TOR1       0x0800
328
#define CYGARC_REG_IMM_QUASR0_TOR2       0x0400
329
#define CYGARC_REG_IMM_QUASR0_QS         0x03c0
330
#define CYGARC_REG_IMM_QUASR0_CWP        0x003f
331
#define CYGARC_REG_IMM_QUADC64INT_IRL1   0xf800
332
#define CYGARC_REG_IMM_QUADC64INT_IRL2   0x07c0
333
#define CYGARC_REG_IMM_QUADC64INT_IRL1_SHIFT 11
334
#define CYGARC_REG_IMM_QUADC64INT_IRL2_SHIFT  6
335
 
336
//-----------------------------------------------------------------------------
337
// PLL Change of lock
338
#define CYGARC_REG_IMM_COLIR_IRQ0      0x8000           // the highest interrupt priority
339
#define CYGARC_REG_IMM_COLIR_COLIRQ    0xff00           // interrupt priority mask
340
#define CYGARC_REG_IMM_COLIR_COLIS     0x0080           // change of lock detected
341
#define CYGARC_REG_IMM_COLIR_COLIE     0x0040           // change of lock interrupt enable
342
 
343
//-----------------------------------------------------------------------------
344
// SCI SPI registers
345
#define CYGARC_REG_IMM_SCCxR1_LOOPS     0x4000
346
#define CYGARC_REG_IMM_SCCxR1_WOMS      0x2000
347
#define CYGARC_REG_IMM_SCCxR1_ILT       0x1000
348
#define CYGARC_REG_IMM_SCCxR1_PT        0x0800
349
#define CYGARC_REG_IMM_SCCxR1_PE        0x0400
350
#define CYGARC_REG_IMM_SCCxR1_M         0x0200
351
#define CYGARC_REG_IMM_SCCxR1_WAKE      0x0100
352
#define CYGARC_REG_IMM_SCCxR1_TIE       0x0080
353
#define CYGARC_REG_IMM_SCCxR1_TCIE      0x0040
354
#define CYGARC_REG_IMM_SCCxR1_RIE       0x0020
355
#define CYGARC_REG_IMM_SCCxR1_ILIE      0x0010
356
#define CYGARC_REG_IMM_SCCxR1_TE        0x0008
357
#define CYGARC_REG_IMM_SCCxR1_RE        0x0004
358
#define CYGARC_REG_IMM_SCCxR1_RWU       0x0002
359
#define CYGARC_REG_IMM_SCCxR1_SBK       0x0001
360
#define CYGARC_REG_IMM_QSCI1CR_QTPNT    0xf000
361
#define CYGARC_REG_IMM_QSCI1CR_QTHFI    0x0800
362
#define CYGARC_REG_IMM_QSCI1CR_QBHFI    0x0400
363
#define CYGARC_REG_IMM_QSCI1CR_QTHEI    0x0200
364
#define CYGARC_REG_IMM_QSCI1CR_QBHEI    0x0100
365
#define CYGARC_REG_IMM_QSCI1CR_QTE      0x0040
366
#define CYGARC_REG_IMM_QSCI1CR_QRE      0x0020
367
#define CYGARC_REG_IMM_QSCI1CR_QTWE     0x0010
368
#define CYGARC_REG_IMM_QSCI1CR_QTSZ     0x000f
369
#define CYGARC_REG_IMM_SPCR1_SPE        0x8000
370
#define CYGARC_REG_IMM_SPCR1_DSCLK      0x7f00  
371
#define CYGARC_REG_IMM_SPCR1_DTL        0x00ff
372
#define CYGARC_REG_IMM_SPCR2_SPIFIE     0x8000
373
#define CYGARC_REG_IMM_SPCR2_WREN       0x4000
374
#define CYGARC_REG_IMM_SPCR2_WRT0       0x2000
375
#define CYGARC_REG_IMM_SPCR2_ENDQP      0x1f00
376
#define CYGARC_REG_IMM_SPCR2_NEWQP      0x001f
377
#define CYGARC_REG_IMM_SPCR3_LOOPQ      0x0400
378
#define CYGARC_REG_IMM_SPCR3_HMIE       0x0200
379
#define CYGARC_REG_IMM_SPCR3_HALT       0x0100
380
#define CYGARC_REG_IMM_SPCR3_SPSR       0x00ff
381
#define CYGARC_REG_IMM_SCxSR_TDRE       0x0100
382
#define CYGARC_REG_IMM_SCxSR_TC         0x0080
383
#define CYGARC_REG_IMM_SCxSR_RDRF       0x0040
384
#define CYGARC_REG_IMM_SCxSR_RAF        0x0020
385
#define CYGARC_REG_IMM_SCxSR_IDLE       0x0010
386
#define CYGARC_REG_IMM_SCxSR_OR         0x0008
387
#define CYGARC_REG_IMM_SCxSR_NF         0x0004
388
#define CYGARC_REG_IMM_SCxSR_FE         0x0002
389
#define CYGARC_REG_IMM_SCxSR_PF         0x0001
390
#define CYGARC_REG_IMM_QSCI1SR_QOR      0x1000
391
#define CYGARC_REG_IMM_QSCI1SR_QTHF     0x0800
392
#define CYGARC_REG_IMM_QSCI1SR_QBHF     0x0400
393
#define CYGARC_REG_IMM_QSCI1SR_QTHE     0x0200
394
#define CYGARC_REG_IMM_QSCI1SR_QBHE     0x0100
395
#define CYGARC_REG_IMM_QSCI1SR_QRPNT    0x00f0
396
#define CYGARC_REG_IMM_QSCI1SR_QRPEND   0x000f
397
#define CYGARC_REG_IMM_SPSR_SPCR3       0xff00
398
#define CYGARC_REG_IMM_SPSR_SPIF        0x0080
399
#define CYGARC_REG_IMM_SPSR_MODF        0x0040
400
#define CYGARC_REG_IMM_SPSR_HALTA       0x0020
401
#define CYGARC_REG_IMM_SPSR_CPTQ        0x001f
402
#define CYGARC_REG_IMM_QDSCI_IL_ILDSCI  0x1f00
403
#define CYGARC_REG_IMM_QDSCI_IL_ILDSCI_SHIFT 8
404
#define CYGARC_REG_IMM_QSPI_IL_ILQSPI   0x001f
405
#define CYGARC_REG_IMM_QSPI_IL_ILQSPI_SHIFT  0
406
 
407
//-----------------------------------------------------------------------------
408
// TPU register settings
409
#define CYGARC_REG_IMM_TICR_CIRL       0x0700
410
#define CYGARC_REG_IMM_TICR_CIRL_SHIFT      8
411
#define CYGARC_REG_IMM_TICR_ILBS       0x00c0
412
#define CYGARC_REG_IMM_TICR_ILBS_SHIFT      6
413
 
414
//-----------------------------------------------------------------------------
415
// TOUCAN registers
416
#define CYGARC_REG_IMM_CANCTRL0_BOFFMSK  0x8000
417
#define CYGARC_REG_IMM_CANCTRL0_ERRMSK   0x4000
418
#define CYGARC_REG_IMM_CANCTRL0_RXMOD    0x0c00
419
#define CYGARC_REG_IMM_CANCTRL0_TXMOD    0x0300
420
#define CYGARC_REG_IMM_CANCTRL0_CANCTLL1 0x00ff
421
#define CYGARC_REG_IMM_TCNMCR_STOP       0x8000
422
#define CYGARC_REG_IMM_TCNMCR_FRZ        0x4000
423
#define CYGARC_REG_IMM_TCNMCR_HALT       0x1000
424
#define CYGARC_REG_IMM_TCNMCR_NOTRDY     0x0800
425
#define CYGARC_REG_IMM_TCNMCR_WAKEMSK    0x0400
426
#define CYGARC_REG_IMM_TCNMCR_SOFTRST    0x0200
427
#define CYGARC_REG_IMM_TCNMCR_FRZACK     0x0100
428
#define CYGARC_REG_IMM_TCNMCR_SUPV       0x0080
429
#define CYGARC_REG_IMM_TCNMCR_SELFWAKE   0x0040
430
#define CYGARC_REG_IMM_TCNMCR_APS        0x0020
431
#define CYGARC_REG_IMM_TCNMCR_STOPACK    0x0010
432
#define CYGARC_REG_IMM_ESTAT_BOFFINT     0x0004
433
#define CYGARC_REG_IMM_ESTAT_ERRINT      0x0002
434
#define CYGARC_REG_IMM_ESTAT_WAKEINT     0x0001
435
#define CYGARC_REG_IMM_CANICR_IRL        0x0700
436
#define CYGARC_REG_IMM_CANICR_IRL_SHIFT       8
437
#define CYGARC_REG_IMM_CANICR_ILBS       0x00c0
438
#define CYGARC_REG_IMM_CANICR_ILBS_SHIFT      6
439
 
440
//-----------------------------------------------------------------------------
441
// MIOS registers
442
#define CYGARC_REG_IMM_MIOS1ER0_EN15     0x8000
443
#define CYGARC_REG_IMM_MIOS1ER0_EN14     0x4000
444
#define CYGARC_REG_IMM_MIOS1ER0_EN13     0x2000
445
#define CYGARC_REG_IMM_MIOS1ER0_EN12     0x1000
446
#define CYGARC_REG_IMM_MIOS1ER0_EN11     0x0800
447
#define CYGARC_REG_IMM_MIOS1ER0_EN6      0x0040
448
#define CYGARC_REG_IMM_MIOS1ER0_EN3      0x0008
449
#define CYGARC_REG_IMM_MIOS1ER0_EN2      0x0004
450
#define CYGARC_REG_IMM_MIOS1ER0_EN1      0x0002
451
#define CYGARC_REG_IMM_MIOS1ER0_EN0      0x0001
452
#define CYGARC_REG_IMM_MIOS1ER1_EN31     0x8000
453
#define CYGARC_REG_IMM_MIOS1ER1_EN30     0x4000
454
#define CYGARC_REG_IMM_MIOS1ER1_EN29     0x2000
455
#define CYGARC_REG_IMM_MIOS1ER1_EN28     0x1000
456
#define CYGARC_REG_IMM_MIOS1ER1_EN27     0x0800
457
#define CYGARC_REG_IMM_MIOS1ER1_EN22     0x0040
458
#define CYGARC_REG_IMM_MIOS1ER1_EN19     0x0008
459
#define CYGARC_REG_IMM_MIOS1ER1_EN18     0x0004
460
#define CYGARC_REG_IMM_MIOS1ER1_EN17     0x0002
461
#define CYGARC_REG_IMM_MIOS1ER1_EN16     0x0001
462
#define CYGARC_REG_IMM_MIOS1SR0_FL15     0x8000
463
#define CYGARC_REG_IMM_MIOS1SR0_FL14     0x4000
464
#define CYGARC_REG_IMM_MIOS1SR0_FL13     0x2000
465
#define CYGARC_REG_IMM_MIOS1SR0_FL12     0x1000
466
#define CYGARC_REG_IMM_MIOS1SR0_FL11     0x0800
467
#define CYGARC_REG_IMM_MIOS1SR0_FL6      0x0040
468
#define CYGARC_REG_IMM_MIOS1SR0_FL3      0x0008
469
#define CYGARC_REG_IMM_MIOS1SR0_FL2      0x0004
470
#define CYGARC_REG_IMM_MIOS1SR0_FL1      0x0002
471
#define CYGARC_REG_IMM_MIOS1SR0_FL0      0x0001
472
#define CYGARC_REG_IMM_MIOS1SR1_FL31     0x8000
473
#define CYGARC_REG_IMM_MIOS1SR1_FL30     0x4000
474
#define CYGARC_REG_IMM_MIOS1SR1_FL29     0x2000
475
#define CYGARC_REG_IMM_MIOS1SR1_FL28     0x1000
476
#define CYGARC_REG_IMM_MIOS1SR1_FL27     0x0800
477
#define CYGARC_REG_IMM_MIOS1SR1_FL22     0x0040
478
#define CYGARC_REG_IMM_MIOS1SR1_FL19     0x0008
479
#define CYGARC_REG_IMM_MIOS1SR1_FL18     0x0004
480
#define CYGARC_REG_IMM_MIOS1SR1_FL17     0x0002
481
#define CYGARC_REG_IMM_MIOS1SR1_FL16     0x0001
482
#define CYGARC_REG_IMM_MIOS1LVL_LVL      0x0700
483
#define CYGARC_REG_IMM_MIOS1LVL_LVL_SHIFT     8
484
#define CYGARC_REG_IMM_MIOS1LVL_TM       0x00c0
485
#define CYGARC_REG_IMM_MIOS1LVL_TM_SHIFT      6
486
 
487
//-----------------------------------------------------------------------------
488
// Periodic interrupt timer count
489
#define CYGARC_REG_IMM_PITC_COUNT_SHIFT 16              // count is stored in bits 0-15
490
 
491
//-----------------------------------------------------------------------------
492
// System clock control   
493
#define CYGARC_REG_IMM_SCCR_TBS         0x02000000      // Time base source
494
#define CYGARC_REG_IMM_SCCR_RTDIV       0x01000000      // rtc clock divide
495
#define CYGARC_REG_IMM_SCCR_RTSEL       0x00100000      // rtc clock select
496
 
497
//-------------------------------------
498
// TouCAN (CAN 2.0B Controller)
499
#define CYGARC_REG_IMM_CANICR_IRL                  0x0700
500
#define CYGARC_REG_IMM_CANICR_IRL_SHIFT            8
501
#define CYGARC_REG_IMM_CANICR_ILBS                 0x00c0
502
#define CYGARC_REG_IMM_CANICR_ILBS_SHIFT           6
503
 
504
#define CYGARC_REG_IMM_TCNMCR_STOP                 0x8000
505
#define CYGARC_REG_IMM_TCNMCR_FRZ                  0x4000
506
#define CYGARC_REG_IMM_TCNMCR_HALT                 0x1000
507
#define CYGARC_REG_IMM_TCNMCR_NOTRDY               0x0800
508
#define CYGARC_REG_IMM_TCNMCR_WAKEMSK              0x0400
509
#define CYGARC_REG_IMM_TCNMCR_SOFTRST              0x0200
510
#define CYGARC_REG_IMM_TCNMCR_FRZACK               0x0100
511
#define CYGARC_REG_IMM_TCNMCR_SUPV                 0x0080
512
#define CYGRAC_REG_IMM_TCNMCR_SELFWAKE             0x0040
513
#define CYGARC_REG_IMM_TCNMCR_APS                  0x0020
514
#define CYGARC_REG_IMM_TCNMCR_STOPACK              0x0010
515
 
516
#define CYGARC_REG_IMM_CANCTRL0_CANCTRL1_BOFFMSK   0x8000
517
#define CYGARC_REG_IMM_CANCTRL0_CANCTRL1_ERRMSK    0x4000
518
#define CYGARC_REG_IMM_CANCTRL0_CANCTRL1_RXMOD     0x0c00
519
#define CYGARC_REG_IMM_CANCTRL0_CANCTRL1_TXMOD     0x0300
520
#define CYGARC_REG_IMM_CANCTRL0_CANCTRL1_RXMOD_SHIFT   10
521
#define CYGARC_REG_IMM_CANCTRL0_CANCTRL1_TXMOD_SHIFT    8
522
 
523
#define CYGARC_REG_IMM_ESTAT_BITERR                0xc000
524
#define CYGARC_REG_IMM_ESTAT_ACKERR                0x2000
525
#define CYGARC_REG_IMM_ESTAT_CRCERR                0x1000
526
#define CYGARC_REG_IMM_ESTAT_FORMERR               0x0800
527
#define CYGARC_REG_IMM_ESTAT_STUFFERR              0x0400
528
#define CYGARC_REG_IMM_ESTAT_TXWARN                0x0200
529
#define CYGARC_REG_IMM_ESTAT_RXWARN                0x0100
530
#define CYGARC_REG_IMM_ESTAT_IDLE                  0x0080
531
#define CYGARC_REG_IMM_ESTAT_TX_RX                 0x0040
532
#define CYGARC_REG_IMM_ESTAT_FCS                   0x0030
533
#define CYGARC_REG_IMM_ESTAT_BOFFINT               0x0004
534
#define CYGARC_REG_IMM_ESTAT_ERRINT                0x0002
535
#define CYGARC_REG_IMM_ESTAT_WAKEINT               0x0001
536
#define CYGARC_REG_IMM_ESTAT_BITERR_SHIFT              14
537
#define CYGARC_REG_IMM_ESTAT_FCS_SHIFT                  4
538
 
539
//-----------------------------------------------------------------------------
540
// All registers in the internal memory map
541
#define CYGARC_REG_IMM_BASE                  0x002fc000
542
 
543
                        // General register definitions
544
#define CYGARC_REG_IMM_SIUMCR                (CYGARC_REG_IMM_BASE+0x0000)
545
#define CYGARC_REG_IMM_SYPCR                 (CYGARC_REG_IMM_BASE+0x0004)
546
#define CYGARC_REG_IMM_SWSR                  (CYGARC_REG_IMM_BASE+0x000e)
547
#define CYGARC_REG_IMM_SIPEND                (CYGARC_REG_IMM_BASE+0x0010)
548
#define CYGARC_REG_IMM_SIMASK                (CYGARC_REG_IMM_BASE+0x0014)
549
#define CYGARC_REG_IMM_SIEL                  (CYGARC_REG_IMM_BASE+0x0018)
550
#define CYGARC_REG_IMM_SIVEC                 (CYGARC_REG_IMM_BASE+0x001c)
551
#define CYGARC_REG_IMM_TESR                  (CYGARC_REG_IMM_BASE+0x0020)
552
#define CYGARC_REG_IMM_SGPIODT1              (CYGARC_REG_IMM_BASE+0x0024)
553
#define CYGARC_REG_IMM_SGPIODT2              (CYGARC_REG_IMM_BASE+0x0028)
554
#define CYGARC_REG_IMM_SGPIOCR               (CYGARC_REG_IMM_BASE+0x002c)
555
#define CYGARC_REG_IMM_EMCR                  (CYGARC_REG_IMM_BASE+0x0030)
556
#define CYGARC_REG_IMM_PDMCR                 (CYGARC_REG_IMM_BASE+0x003c)
557
 
558
                        // Memory controller registers
559
#define CYGARC_REG_IMM_BR0                   (CYGARC_REG_IMM_BASE+0x0100)
560
#define CYGARC_REG_IMM_OR0                   (CYGARC_REG_IMM_BASE+0x0104)
561
#define CYGARC_REG_IMM_BR1                   (CYGARC_REG_IMM_BASE+0x0108)
562
#define CYGARC_REG_IMM_OR1                   (CYGARC_REG_IMM_BASE+0x010c)
563
#define CYGARC_REG_IMM_BR2                   (CYGARC_REG_IMM_BASE+0x0110)
564
#define CYGARC_REG_IMM_OR2                   (CYGARC_REG_IMM_BASE+0x0114)
565
#define CYGARC_REG_IMM_BR3                   (CYGARC_REG_IMM_BASE+0x0118)
566
#define CYGARC_REG_IMM_OR3                   (CYGARC_REG_IMM_BASE+0x011c)
567
#define CYGARC_REG_IMM_DMBR                  (CYGARC_REG_IMM_BASE+0x0140)
568
#define CYGARC_REG_IMM_DMOR                  (CYGARC_REG_IMM_BASE+0x0144)
569
#define CYGARC_REG_IMM_MSTAT                 (CYGARC_REG_IMM_BASE+0x0178)
570
 
571
                        // System integration timers
572
#define CYGARC_REG_IMM_TBSCR                 (CYGARC_REG_IMM_BASE+0x0200)
573
#define CYGARC_REG_IMM_TBREF0                (CYGARC_REG_IMM_BASE+0x0204)
574
#define CYGARC_REG_IMM_TBREF1                (CYGARC_REG_IMM_BASE+0x0208)
575
#define CYGARC_REG_IMM_RTCSC                 (CYGARC_REG_IMM_BASE+0x0220)
576
#define CYGARC_REG_IMM_RTC                   (CYGARC_REG_IMM_BASE+0x0224)
577
#define CYGARC_REG_IMM_RTSEC                 (CYGARC_REG_IMM_BASE+0x0228)
578
#define CYGARC_REG_IMM_RTCAL                 (CYGARC_REG_IMM_BASE+0x022c)
579
#define CYGARC_REG_IMM_PISCR                 (CYGARC_REG_IMM_BASE+0x0240)
580
#define CYGARC_REG_IMM_PITC                  (CYGARC_REG_IMM_BASE+0x0244)
581
#define CYGARC_REG_IMM_PITR                  (CYGARC_REG_IMM_BASE+0x0248)
582
 
583
                        // Clocks and resets
584
#define CYGARC_REG_IMM_SCCR                  (CYGARC_REG_IMM_BASE+0x0280)
585
#define CYGARC_REG_IMM_PLPRCR                (CYGARC_REG_IMM_BASE+0x0284)
586
#define CYGARC_REG_IMM_RSR                   (CYGARC_REG_IMM_BASE+0x0288)
587
#define CYGARC_REG_IMM_COLIR                 (CYGARC_REG_IMM_BASE+0x028c)
588
#define CYGARC_REG_IMM_VSRMCR                (CYGARC_REG_IMM_BASE+0x0290)
589
 
590
                        // System IntegrationTimer Keys
591
#define CYGARC_REG_IMM_TBSCRK                (CYGARC_REG_IMM_BASE+0x0300)
592
#define CYGARC_REG_IMM_TBREF0K               (CYGARC_REG_IMM_BASE+0x0304)
593
#define CYGARC_REG_IMM_TBREF1K               (CYGARC_REG_IMM_BASE+0x0308)
594
#define CYGARC_REG_IMM_TBK                   (CYGARC_REG_IMM_BASE+0x030c)
595
#define CYGARC_REG_IMM_RTCSCK                (CYGARC_REG_IMM_BASE+0x0320)
596
#define CYGARC_REG_IMM_RTCK                  (CYGARC_REG_IMM_BASE+0x0324)
597
#define CYGARC_REG_IMM_RTSECK                (CYGARC_REG_IMM_BASE+0x0328)
598
#define CYGARC_REG_IMM_RTCALK                (CYGARC_REG_IMM_BASE+0x032c)
599
#define CYGARC_REG_IMM_PISCRK                (CYGARC_REG_IMM_BASE+0x0340)
600
#define CYGARC_REG_IMM_PITCK                 (CYGARC_REG_IMM_BASE+0x0344)
601
 
602
                        // Clocks and reset keys
603
#define CYGARC_REG_IMM_SCCRK                 (CYGARC_REG_IMM_BASE+0x0380)
604
#define CYGARC_REG_IMM_PLPRCRK               (CYGARC_REG_IMM_BASE+0x0384)
605
#define CYGARC_REG_IMM_RSRK                  (CYGARC_REG_IMM_BASE+0x0388)
606
 
607
                //-------------------------------------
608
                // CMF (CDR Mone T FLASH EEPROM)
609
                //-------------------------------------
610
                        // CMF_A
611
#define CYGARC_REG_IMM_CMFMCR_A              (CYGARC_REG_IMM_BASE+0x0800)
612
#define CYGARC_REG_IMM_CMFTST_A              (CYGARC_REG_IMM_BASE+0x0804)
613
#define CYGARC_REG_IMM_CMFCTL_A              (CYGARC_REG_IMM_BASE+0x0808)
614
 
615
                        // CMF_B
616
#define CYGARC_REG_IMM_CMFMCR_B              (CYGARC_REG_IMM_BASE+0x0840)
617
#define CYGARC_REG_IMM_CMFTST_B              (CYGARC_REG_IMM_BASE+0x0844)
618
#define CYGARC_REG_IMM_CMFCTL_B              (CYGARC_REG_IMM_BASE+0x0848)
619
 
620
                //-------------------------------------
621
                // DPTRAM (Dual-Port TPU RAM)
622
                //-------------------------------------
623
#define CYGARC_REG_IMM_DPTMCR                (CYGARC_REG_IMM_BASE+0x4000)
624
#define CYGARC_REG_IMM_RAMTST                (CYGARC_REG_IMM_BASE+0x4002)
625
#define CYGARC_REG_IMM_RAMBAR                (CYGARC_REG_IMM_BASE+0x4004)
626
#define CYGARC_REG_IMM_MISRH                 (CYGARC_REG_IMM_BASE+0x4006)
627
#define CYGARC_REG_IMM_MISRL                 (CYGARC_REG_IMM_BASE+0x4008)
628
#define CYGARC_REG_IMM_MISCNT                (CYGARC_REG_IMM_BASE+0x400a)
629
 
630
                //-------------------------------------
631
                // TPU3 (Time processing unit)
632
                //-------------------------------------
633
                        // TPU-A
634
#define CYGARC_REG_IMM_TPUMCR_A              (CYGARC_REG_IMM_BASE+0x8000)
635
#define CYGARC_REG_IMM_TCR_A                 (CYGARC_REG_IMM_BASE+0x8002)
636
#define CYGARC_REG_IMM_DSCR_A                (CYGARC_REG_IMM_BASE+0x8004)
637
#define CYGARC_REG_IMM_DSSR_A                (CYGARC_REG_IMM_BASE+0x8006)
638
#define CYGARC_REG_IMM_TICR_A                (CYGARC_REG_IMM_BASE+0x8008)
639
#define CYGARC_REG_IMM_CIER_A                (CYGARC_REG_IMM_BASE+0x800a)
640
#define CYGARC_REG_IMM_CFSR0_A               (CYGARC_REG_IMM_BASE+0x800c)
641
#define CYGARC_REG_IMM_CFSR1_A               (CYGARC_REG_IMM_BASE+0x800e)
642
#define CYGARC_REG_IMM_CFSR2_A               (CYGARC_REG_IMM_BASE+0x8010)
643
#define CYGARC_REG_IMM_CFSR3_A               (CYGARC_REG_IMM_BASE+0x8012)
644
#define CYGARC_REG_IMM_HSQR0_A               (CYGARC_REG_IMM_BASE+0x8014)
645
#define CYGARC_REG_IMM_HSQR1_A               (CYGARC_REG_IMM_BASE+0x8016)
646
#define CYGARC_REG_IMM_HSRR0_A               (CYGARC_REG_IMM_BASE+0x8018)
647
#define CYGARC_REG_IMM_HSRR1_A               (CYGARC_REG_IMM_BASE+0x801a)
648
#define CYGARC_REG_IMM_CPR0_A                (CYGARC_REG_IMM_BASE+0x801c)
649
#define CYGARC_REG_IMM_CPR1_A                (CYGARC_REG_IMM_BASE+0x801e)
650
#define CYGARC_REG_IMM_CISR_A                (CYGARC_REG_IMM_BASE+0x8020)
651
#define CYGARC_REG_IMM_LR_A                  (CYGARC_REG_IMM_BASE+0x8022)
652
#define CYGARC_REG_IMM_SGLR_A                (CYGARC_REG_IMM_BASE+0x8024)
653
#define CYGARC_REG_IMM_DCNR_A                (CYGARC_REG_IMM_BASE+0x8026)
654
#define CYGARC_REG_IMM_TPUMCR2_A             (CYGARC_REG_IMM_BASE+0x8028)
655
#define CYGARC_REG_IMM_TPUMCR3_A             (CYGARC_REG_IMM_BASE+0x802a)
656
#define CYGARC_REG_IMM_ISDR_A                (CYGARC_REG_IMM_BASE+0x802c)
657
#define CYGARC_REG_IMM_ISCR_A                (CYGARC_REG_IMM_BASE+0x802e)
658
 
659
                        // TPU-B
660
#define CYGARC_REG_IMM_TPUMCR_B              (CYGARC_REG_IMM_BASE+0x8400)
661
#define CYGARC_REG_IMM_TCR_B                 (CYGARC_REG_IMM_BASE+0x8402)
662
#define CYGARC_REG_IMM_DSCR_B                (CYGARC_REG_IMM_BASE+0x8404)
663
#define CYGARC_REG_IMM_DSSR_B                (CYGARC_REG_IMM_BASE+0x8406)
664
#define CYGARC_REG_IMM_TICR_B                (CYGARC_REG_IMM_BASE+0x8408)
665
#define CYGARC_REG_IMM_CIER_B                (CYGARC_REG_IMM_BASE+0x840a)
666
#define CYGARC_REG_IMM_CFSR0_B               (CYGARC_REG_IMM_BASE+0x840c)
667
#define CYGARC_REG_IMM_CFSR1_B               (CYGARC_REG_IMM_BASE+0x840e)
668
#define CYGARC_REG_IMM_CFSR2_B               (CYGARC_REG_IMM_BASE+0x8410)
669
#define CYGARC_REG_IMM_CFSR3_B               (CYGARC_REG_IMM_BASE+0x8412)
670
#define CYGARC_REG_IMM_HSQR0_B               (CYGARC_REG_IMM_BASE+0x8414)
671
#define CYGARC_REG_IMM_HSQR1_B               (CYGARC_REG_IMM_BASE+0x8416)
672
#define CYGARC_REG_IMM_HSRR0_B               (CYGARC_REG_IMM_BASE+0x8418)
673
#define CYGARC_REG_IMM_HSRR1_B               (CYGARC_REG_IMM_BASE+0x841a)
674
#define CYGARC_REG_IMM_CPR0_B                (CYGARC_REG_IMM_BASE+0x841c)
675
#define CYGARC_REG_IMM_CPR1_B                (CYGARC_REG_IMM_BASE+0x841e)
676
#define CYGARC_REG_IMM_CISR_B                (CYGARC_REG_IMM_BASE+0x8420)
677
#define CYGARC_REG_IMM_LR_B                  (CYGARC_REG_IMM_BASE+0x8422)
678
#define CYGARC_REG_IMM_SGLR_B                (CYGARC_REG_IMM_BASE+0x8424)
679
#define CYGARC_REG_IMM_DCNR_B                (CYGARC_REG_IMM_BASE+0x8426)
680
#define CYGARC_REG_IMM_TPUMCR2_B             (CYGARC_REG_IMM_BASE+0x8428)
681
#define CYGARC_REG_IMM_TPUMCR3_B             (CYGARC_REG_IMM_BASE+0x842a)
682
#define CYGARC_REG_IMM_ISDR_B                (CYGARC_REG_IMM_BASE+0x842c)
683
#define CYGARC_REG_IMM_ISCR_B                (CYGARC_REG_IMM_BASE+0x842e)
684
 
685
 
686
                //-------------------------------------
687
                // QADC64 (Queued Analog-to-digital Converter)
688
                //-------------------------------------
689
                        // QUADC-A
690
#define CYGARC_REG_IMM_QUADC64MCR_A          (CYGARC_REG_IMM_BASE+0x8800)
691
#define CYGARC_REG_IMM_QUADC64TEST_A         (CYGARC_REG_IMM_BASE+0x8802)
692
#define CYGARC_REG_IMM_QUADC64INT_A          (CYGARC_REG_IMM_BASE+0x8804)
693
#define CYGARC_REG_IMM_PORTQA_A_PORTQB_A     (CYGARC_REG_IMM_BASE+0x8806)
694
#define CYGARC_REG_IMM_DDRQA_A_DDRQB_A       (CYGARC_REG_IMM_BASE+0x8808)
695
#define CYGARC_REG_IMM_QUACR0_A              (CYGARC_REG_IMM_BASE+0x880a)
696
#define CYGARC_REG_IMM_QUACR1_A              (CYGARC_REG_IMM_BASE+0x880c)
697
#define CYGARC_REG_IMM_QUACR2_A              (CYGARC_REG_IMM_BASE+0x880e)
698
#define CYGARC_REG_IMM_QUASR0_A              (CYGARC_REG_IMM_BASE+0x8810)
699
#define CYGARC_REG_IMM_QUASR1_A              (CYGARC_REG_IMM_BASE+0x8812)
700
#define CYGARC_REG_IMM_CCW_A                 (CYGARC_REG_IMM_BASE+0x8a00)
701
#define CYGARC_REG_IMM_RJURR_A               (CYGARC_REG_IMM_BASE+0x8a80)
702
#define CYGARC_REG_IMM_LJSRR_A               (CYGARC_REG_IMM_BASE+0x8b00)
703
#define CYGARC_REG_IMM_LJURR_A               (CYGARC_REG_IMM_BASE+0x8b80)
704
 
705
                        // QUADC-B
706
#define CYGARC_REG_IMM_QUADC64MCR_B          (CYGARC_REG_IMM_BASE+0x8c00)
707
#define CYGARC_REG_IMM_QUADC64TEST_B         (CYGARC_REG_IMM_BASE+0x8c02)
708
#define CYGARC_REG_IMM_QUADC64INT_B          (CYGARC_REG_IMM_BASE+0x8c04)
709
#define CYGARC_REG_IMM_PORTQA_B_PORTQB_B     (CYGARC_REG_IMM_BASE+0x8c06)
710
#define CYGARC_REG_IMM_DDRQA_B_DDRQB_B       (CYGARC_REG_IMM_BASE+0x8c08)
711
#define CYGARC_REG_IMM_QUACR0_B              (CYGARC_REG_IMM_BASE+0x8c0a)
712
#define CYGARC_REG_IMM_QUACR1_B              (CYGARC_REG_IMM_BASE+0x8c0c)
713
#define CYGARC_REG_IMM_QUACR2_B              (CYGARC_REG_IMM_BASE+0x8c0e)
714
#define CYGARC_REG_IMM_QUASR0_B              (CYGARC_REG_IMM_BASE+0x8c10)
715
#define CYGARC_REG_IMM_QUASR1_B              (CYGARC_REG_IMM_BASE+0x8c12)
716
#define CYGARC_REG_IMM_CCW_B                 (CYGARC_REG_IMM_BASE+0x8e00)
717
#define CYGARC_REG_IMM_RJURR_B               (CYGARC_REG_IMM_BASE+0x8e80)
718
#define CYGARC_REG_IMM_LJSRR_B               (CYGARC_REG_IMM_BASE+0x8f00)
719
#define CYGARC_REG_IMM_LJURR_B               (CYGARC_REG_IMM_BASE+0x8f80)
720
 
721
                //-------------------------------------
722
                // QSMCM (Queued Serial Multi-Channel Module)
723
                //-------------------------------------
724
#define CYGARC_REG_IMM_QSMCMMCR              (CYGARC_REG_IMM_BASE+0x9000)
725
#define CYGARC_REG_IMM_QTEST                 (CYGARC_REG_IMM_BASE+0x9002)
726
#define CYGARC_REG_IMM_QDSCI_IL              (CYGARC_REG_IMM_BASE+0x9004)
727
#define CYGARC_REG_IMM_QSPI_IL               (CYGARC_REG_IMM_BASE+0x9006)
728
#define CYGARC_REG_IMM_SCC1R0                (CYGARC_REG_IMM_BASE+0x9008)
729
#define CYGARC_REG_IMM_SCC1R1                (CYGARC_REG_IMM_BASE+0x900a)
730
#define CYGARC_REG_IMM_SC1SR                 (CYGARC_REG_IMM_BASE+0x900c)
731
#define CYGARC_REG_IMM_SC1DR                 (CYGARC_REG_IMM_BASE+0x900e)
732
#define CYGARC_REG_IMM_PORTQS                (CYGARC_REG_IMM_BASE+0x9014)
733
#define CYGARC_REG_IMM_PQSPAR_DDRQST         (CYGARC_REG_IMM_BASE+0x9016)
734
#define CYGARC_REG_IMM_SPCR0                 (CYGARC_REG_IMM_BASE+0x9018)
735
#define CYGARC_REG_IMM_SPCR1                 (CYGARC_REG_IMM_BASE+0x901a)
736
#define CYGARC_REG_IMM_SPCR2                 (CYGARC_REG_IMM_BASE+0x901c)
737
#define CYGARC_REG_IMM_SPCR3                 (CYGARC_REG_IMM_BASE+0x901e)
738
#define CYGARC_REG_IMM_SPSR                  (CYGARC_REG_IMM_BASE+0x901f)
739
#define CYGARC_REG_IMM_SCC2R0                (CYGARC_REG_IMM_BASE+0x9020)
740
#define CYGARC_REG_IMM_SCC2R1                (CYGARC_REG_IMM_BASE+0x9022)
741
#define CYGARC_REG_IMM_SC2SR                 (CYGARC_REG_IMM_BASE+0x9024)
742
#define CYGARC_REG_IMM_SC2DR                 (CYGARC_REG_IMM_BASE+0x9026)
743
#define CYGARC_REG_IMM_QSCI1CR               (CYGARC_REG_IMM_BASE+0x9028)
744
#define CYGARC_REG_IMM_QSCI1SR               (CYGARC_REG_IMM_BASE+0x902a)
745
#define CYGARC_REG_IMM_SCTQ                  (CYGARC_REG_IMM_BASE+0x902c)
746
#define CYGARC_REG_IMM_SCRQ                  (CYGARC_REG_IMM_BASE+0x904c)
747
#define CYGARC_REG_IMM_RECRAM                (CYGARC_REG_IMM_BASE+0x9140)
748
#define CYGARC_REG_IMM_TRAN_RAM              (CYGARC_REG_IMM_BASE+0x9180)
749
#define CYGARC_REG_IMM_COMD_RAM              (CYGARC_REG_IMM_BASE+0x91c0)
750
 
751
                //-------------------------------------
752
                // MIOS1 (Modular Input/Output Subsystem)
753
                //-------------------------------------
754
                        // MPIOS Pulse width modulation submodule 0
755
#define CYGARC_REG_IMM_MPWMSMPERR_0          (CYGARC_REG_IMM_BASE+0xa000)
756
#define CYGARC_REG_IMM_MPWMSMPULR_0          (CYGARC_REG_IMM_BASE+0xa002)
757
#define CYGARC_REG_IMM_MPWMSMCNTR_0          (CYGARC_REG_IMM_BASE+0xa004)
758
#define CYGARC_REG_IMM_MPWMSMSCR_0           (CYGARC_REG_IMM_BASE+0xa006)
759
 
760
                        // MPIOS Pulse width modulation submodule 1
761
#define CYGARC_REG_IMM_MPWMSMPERR_1          (CYGARC_REG_IMM_BASE+0xa008)
762
#define CYGARC_REG_IMM_MPWMSMPULR_1          (CYGARC_REG_IMM_BASE+0xa00a)
763
#define CYGARC_REG_IMM_MPWMSMCNTR_1          (CYGARC_REG_IMM_BASE+0xa00c)
764
#define CYGARC_REG_IMM_MPWMSMSCR_1           (CYGARC_REG_IMM_BASE+0xa00e)
765
 
766
                        // MPIOS Pulse width modulation submodule 2
767
#define CYGARC_REG_IMM_MPWMSMPERR_2          (CYGARC_REG_IMM_BASE+0xa010)
768
#define CYGARC_REG_IMM_MPWMSMPULR_2          (CYGARC_REG_IMM_BASE+0xa012)
769
#define CYGARC_REG_IMM_MPWMSMCNTR_2          (CYGARC_REG_IMM_BASE+0xa014)
770
#define CYGARC_REG_IMM_MPWMSMSCR_2           (CYGARC_REG_IMM_BASE+0xa016)
771
 
772
                        // MPIOS Pulse width modulation submodule 3
773
#define CYGARC_REG_IMM_MPWMSMPERR_3          (CYGARC_REG_IMM_BASE+0xa018)
774
#define CYGARC_REG_IMM_MPWMSMPULR_3          (CYGARC_REG_IMM_BASE+0xa01a)
775
#define CYGARC_REG_IMM_MPWMSMCNTR_3          (CYGARC_REG_IMM_BASE+0xa01c)
776
#define CYGARC_REG_IMM_MPWMSMSCR_3           (CYGARC_REG_IMM_BASE+0xa01e)
777
 
778
                        // MIOS Modulus counter submodule 6
779
#define CYGARC_REG_IMM_MMCSMCNT_6            (CYGARC_REG_IMM_BASE+0xa030)
780
#define CYGARC_REG_IMM_MMCSMML_6             (CYGARC_REG_IMM_BASE+0xa032)
781
#define CYGARC_REG_IMM_MMCSMSCRD_6           (CYGARC_REG_IMM_BASE+0xa034)
782
#define CYGARC_REG_IMM_MMCSMSCR_6            (CYGARC_REG_IMM_BASE+0xa036)
783
 
784
                        // MIOS Double Action submodule 11
785
#define CYGARC_REG_IMM_MDASMAR_11            (CYGARC_REG_IMM_BASE+0xa058)
786
#define CYGARC_REG_IMM_MDASMBR_11            (CYGARC_REG_IMM_BASE+0xa05a)
787
#define CYGARC_REG_IMM_MDASMSCRD_11          (CYGARC_REG_IMM_BASE+0xa05c)
788
#define CYGARC_REG_IMM_MDASMSCR_11           (CYGARC_REG_IMM_BASE+0xa05e)
789
 
790
                        // MIOS Double Action submodule 12
791
#define CYGARC_REG_IMM_MDASMAR_12            (CYGARC_REG_IMM_BASE+0xa060)
792
#define CYGARC_REG_IMM_MDASMBR_12            (CYGARC_REG_IMM_BASE+0xa062)
793
#define CYGARC_REG_IMM_MDASMSCRD_12          (CYGARC_REG_IMM_BASE+0xa064)
794
#define CYGARC_REG_IMM_MDASMSCR_12           (CYGARC_REG_IMM_BASE+0xa066)
795
 
796
                        // MIOS Double Action submodule 13
797
#define CYGARC_REG_IMM_MDASMAR_13            (CYGARC_REG_IMM_BASE+0xa068)
798
#define CYGARC_REG_IMM_MDASMBR_13            (CYGARC_REG_IMM_BASE+0xa06a)
799
#define CYGARC_REG_IMM_MDASMSCRD_13          (CYGARC_REG_IMM_BASE+0xa06c)
800
#define CYGARC_REG_IMM_MDASMSCR_13           (CYGARC_REG_IMM_BASE+0xa06e)
801
 
802
                        // MIOS Double Action submodule 14
803
#define CYGARC_REG_IMM_MDASMAR_14            (CYGARC_REG_IMM_BASE+0xa070)
804
#define CYGARC_REG_IMM_MDASMBR_14            (CYGARC_REG_IMM_BASE+0xa072)
805
#define CYGARC_REG_IMM_MDASMSCRD_14          (CYGARC_REG_IMM_BASE+0xa074)
806
#define CYGARC_REG_IMM_MDASMSCR_14           (CYGARC_REG_IMM_BASE+0xa076)
807
 
808
                        // MIOS Double Action submodule 15
809
#define CYGARC_REG_IMM_MDASMAR_15            (CYGARC_REG_IMM_BASE+0xa078)
810
#define CYGARC_REG_IMM_MDASMBR_15            (CYGARC_REG_IMM_BASE+0xa07a)
811
#define CYGARC_REG_IMM_MDASMSCRD_15          (CYGARC_REG_IMM_BASE+0xa07c)
812
#define CYGARC_REG_IMM_MDASMSCR_15           (CYGARC_REG_IMM_BASE+0xa07e)
813
 
814
                        // MPIOS Pulse width modulation submodule 16
815
#define CYGARC_REG_IMM_MPWMSMPERR_16         (CYGARC_REG_IMM_BASE+0xa080)
816
#define CYGARC_REG_IMM_MPWMSMPULR_16         (CYGARC_REG_IMM_BASE+0xa082)
817
#define CYGARC_REG_IMM_MPWMSMCNTR_16         (CYGARC_REG_IMM_BASE+0xa084)
818
#define CYGARC_REG_IMM_MPWMSMSCR_16          (CYGARC_REG_IMM_BASE+0xa086)
819
 
820
                        // MPIOS Pulse width modulation submodule 17
821
#define CYGARC_REG_IMM_MPWMSMPERR_17         (CYGARC_REG_IMM_BASE+0xa088)
822
#define CYGARC_REG_IMM_MPWMSMPULR_17         (CYGARC_REG_IMM_BASE+0xa08a)
823
#define CYGARC_REG_IMM_MPWMSMCNTR_17         (CYGARC_REG_IMM_BASE+0xa08c)
824
#define CYGARC_REG_IMM_MPWMSMSCR_17          (CYGARC_REG_IMM_BASE+0xa08e)
825
 
826
                        // MPIOS Pulse width modulation submodule 18
827
#define CYGARC_REG_IMM_MPWMSMPERR_18         (CYGARC_REG_IMM_BASE+0xa090)
828
#define CYGARC_REG_IMM_MPWMSMPULR_18         (CYGARC_REG_IMM_BASE+0xa092)
829
#define CYGARC_REG_IMM_MPWMSMCNTR_18         (CYGARC_REG_IMM_BASE+0xa094)
830
#define CYGARC_REG_IMM_MPWMSMSCR_18          (CYGARC_REG_IMM_BASE+0xa096)
831
 
832
                        // MPIOS Pulse width modulation submodule 19
833
#define CYGARC_REG_IMM_MPWMSMPERR_19         (CYGARC_REG_IMM_BASE+0xa098)
834
#define CYGARC_REG_IMM_MPWMSMPULR_19         (CYGARC_REG_IMM_BASE+0xa09a)
835
#define CYGARC_REG_IMM_MPWMSMCNTR_19         (CYGARC_REG_IMM_BASE+0xa09c)
836
#define CYGARC_REG_IMM_MPWMSMSCR_19          (CYGARC_REG_IMM_BASE+0xa09e)
837
 
838
                        // MIOS Modulus counter submodule 22
839
#define CYGARC_REG_IMM_MMCSMCNT_22           (CYGARC_REG_IMM_BASE+0xa0b0)
840
#define CYGARC_REG_IMM_MMCSMML_22            (CYGARC_REG_IMM_BASE+0xa0b2)
841
#define CYGARC_REG_IMM_MMCSMSCRD_22          (CYGARC_REG_IMM_BASE+0xa0b4)
842
#define CYGARC_REG_IMM_MMCSMSCR_22           (CYGARC_REG_IMM_BASE+0xa0b6)
843
 
844
                        // MIOS Double action submodule 27
845
#define CYGARC_REG_IMM_MDASMAR_27            (CYGARC_REG_IMM_BASE+0xa0d8)
846
#define CYGARC_REG_IMM_MDASMBR_27            (CYGARC_REG_IMM_BASE+0xa0da)
847
#define CYGARC_REG_IMM_MDASMSCRD_27          (CYGARC_REG_IMM_BASE+0xa0dc)
848
#define CYGARC_REG_IMM_MDASMSCR_27           (CYGARC_REG_IMM_BASE+0xa0de)
849
 
850
                        // MIOS Double action submodule 28
851
#define CYGARC_REG_IMM_MDASMAR_28            (CYGARC_REG_IMM_BASE+0xa0e0)
852
#define CYGARC_REG_IMM_MDASMBR_28            (CYGARC_REG_IMM_BASE+0xa0e2)
853
#define CYGARC_REG_IMM_MDASMSCRD_28          (CYGARC_REG_IMM_BASE+0xa0e4)
854
#define CYGARC_REG_IMM_MDASMSCR_28           (CYGARC_REG_IMM_BASE+0xa0e6)
855
 
856
                        // MIOS Double action submodule 29
857
#define CYGARC_REG_IMM_MDASMAR_29            (CYGARC_REG_IMM_BASE+0xa0e8)
858
#define CYGARC_REG_IMM_MDASMBR_29            (CYGARC_REG_IMM_BASE+0xa0ea)
859
#define CYGARC_REG_IMM_MDASMSCRD_29          (CYGARC_REG_IMM_BASE+0xa0ec)
860
#define CYGARC_REG_IMM_MDASMSCR_29           (CYGARC_REG_IMM_BASE+0xa0ee)
861
 
862
                        // MIOS Double action submodule 30
863
#define CYGARC_REG_IMM_MDASMAR_30            (CYGARC_REG_IMM_BASE+0xa0f0)
864
#define CYGARC_REG_IMM_MDASMBR_30            (CYGARC_REG_IMM_BASE+0xa0f2)
865
#define CYGARC_REG_IMM_MDASMSCRD_30          (CYGARC_REG_IMM_BASE+0xa0f4)
866
#define CYGARC_REG_IMM_MDASMSCR_30           (CYGARC_REG_IMM_BASE+0xa0f6)
867
 
868
                        // MIOS Double action submodule 31
869
#define CYGARC_REG_IMM_MDASMAR_31            (CYGARC_REG_IMM_BASE+0x0af8)
870
#define CYGARC_REG_IMM_MDASMBR_31            (CYGARC_REG_IMM_BASE+0xa0fa)
871
#define CYGARC_REG_IMM_MDASMSCRD_31          (CYGARC_REG_IMM_BASE+0xa0fc)
872
#define CYGARC_REG_IMM_MDASMSCR_31           (CYGARC_REG_IMM_BASE+0xa0fe)
873
 
874
                        // MIOS Paralell port I/O submodule
875
#define CYGARC_REG_IMM_MPIOSMDR              (CYGARC_REG_IMM_BASE+0xa100)
876
#define CYGARC_REG_IMM_MPIOSMDDR             (CYGARC_REG_IMM_BASE+0xa102)
877
 
878
                        // MIOS Bus interface Submodule
879
#define CYGARC_REG_IMM_MIOS1TPCR             (CYGARC_REG_IMM_BASE+0xa800)
880
#define CYGARC_REG_IMM_MIOS1VNR              (CYGARC_REG_IMM_BASE+0xa802)
881
#define CYGARC_REG_IMM_MIOS1MCR              (CYGARC_REG_IMM_BASE+0xa806)
882
 
883
                        // MIOS Counter / Prescaler submodule
884
#define CYGARC_REG_IMM_MCPSMSCR              (CYGARC_REG_IMM_BASE+0xa816)
885
 
886
                        // MIOS Interrupt request submodule 0
887
#define CYGARC_REG_IMM_MIOS1SR0              (CYGARC_REG_IMM_BASE+0xac00)
888
#define CYGARC_REG_IMM_MIOS1ER0              (CYGARC_REG_IMM_BASE+0xac04)
889
#define CYGARC_REG_IMM_MIOS1RPR0             (CYGARC_REG_IMM_BASE+0xac06)
890
#define CYGARC_REG_IMM_MIOS1LVL0             (CYGARC_REG_IMM_BASE+0xac30)
891
 
892
                        // Mios Interrupt request submodule 1
893
#define CYGARC_REG_IMM_MIOS1SR1              (CYGARC_REG_IMM_BASE+0xac40)
894
#define CYGARC_REG_IMM_MIOS1ER1              (CYGARC_REG_IMM_BASE+0xac44)
895
#define CYGARC_REG_IMM_MIOS1RPR1             (CYGARC_REG_IMM_BASE+0xac46)
896
#define CYGARC_REG_IMM_MIOS1LVL1             (CYGARC_REG_IMM_BASE+0xac70)
897
 
898
                //-------------------------------------
899
                // TouCAN (CAN 2.0B Controller)
900
                //-------------------------------------
901
                        // TouCAN_A
902
#define CYGARC_REG_IMM_TCNMCR_A              (CYGARC_REG_IMM_BASE+0xb080)
903
#define CYGARC_REG_IMM_TTR_A                 (CYGARC_REG_IMM_BASE+0xb082)
904
#define CYGARC_REG_IMM_CANICR_A              (CYGARC_REG_IMM_BASE+0xb084)
905
#define CYGARC_REG_IMM_CANCTRL0_A_CANCTRL1_A (CYGARC_REG_IMM_BASE+0xb086)
906
#define CYGARC_REG_IMM_PRESDIV_A_CTRL2_A     (CYGARC_REG_IMM_BASE+0xb088)
907
#define CYGARC_REG_IMM_TIMER_A               (CYGARC_REG_IMM_BASE+0xb08a)
908
#define CYGARC_REG_IMM_RXGMASKHI_A           (CYGARC_REG_IMM_BASE+0xb090)
909
#define CYGARC_REG_IMM_RXGMASKLO_A           (CYGARC_REG_IMM_BASE+0xb092)
910
#define CYGARC_REG_IMM_RX14MASKHI_A          (CYGARC_REG_IMM_BASE+0xb094)
911
#define CYGARC_REG_IMM_RX14MASKLO_A          (CYGARC_REG_IMM_BASE+0xb096)
912
#define CYGARC_REG_IMM_RX15MASKHI_A          (CYGARC_REG_IMM_BASE+0xb098)
913
#define CYGARC_REG_IMM_RX15MASKLO_A          (CYGARC_REG_IMM_BASE+0xb09a)
914
#define CYGARC_REG_IMM_ESTAT_A               (CYGARC_REG_IMM_BASE+0xb0a0)
915
#define CYGARC_REG_IMM_IMASK_A               (CYGARC_REG_IMM_BASE+0xb0a2)
916
#define CYGARC_REG_IMM_IFLAG_A               (CYGARC_REG_IMM_BASE+0xb0a4)
917
#define CYGARC_REG_IMM_RXECTR_A_TXECTR_A     (CYGARC_REG_IMM_BASE+0xb0a6)
918
 
919
                        // TouCAN_B
920
#define CYGARC_REG_IMM_TCNMCR_B              (CYGARC_REG_IMM_BASE+0xb480)
921
#define CYGARC_REG_IMM_TTR_B                 (CYGARC_REG_IMM_BASE+0xb482)
922
#define CYGARC_REG_IMM_CANICR_B              (CYGARC_REG_IMM_BASE+0xb484)
923
#define CYGARC_REG_IMM_CANCTRL0_B_CANCTRL1_B (CYGARC_REG_IMM_BASE+0xb486)
924
#define CYGARC_REG_IMM_PRESDIV_B_CTRL2_B     (CYGARC_REG_IMM_BASE+0xb488)
925
#define CYGARC_REG_IMM_TIMER_B               (CYGARC_REG_IMM_BASE+0xb48a)
926
#define CYGARC_REG_IMM_RXGMASKHI_B           (CYGARC_REG_IMM_BASE+0xb490)
927
#define CYGARC_REG_IMM_RXGMASKLO_B           (CYGARC_REG_IMM_BASE+0xb492)
928
#define CYGARC_REG_IMM_RX14MASKHI_B          (CYGARC_REG_IMM_BASE+0xb494)
929
#define CYGARC_REG_IMM_RX14MASKLO_B          (CYGARC_REG_IMM_BASE+0xb496)
930
#define CYGARC_REG_IMM_RX15MASKHI_B          (CYGARC_REG_IMM_BASE+0xb498)
931
#define CYGARC_REG_IMM_RX15MASKLO_B          (CYGARC_REG_IMM_BASE+0xb49a)
932
#define CYGARC_REG_IMM_ESTAT_B               (CYGARC_REG_IMM_BASE+0xb4a0)
933
#define CYGARC_REG_IMM_IMASK_B               (CYGARC_REG_IMM_BASE+0xb4a2)
934
#define CYGARC_REG_IMM_IFLAG_B               (CYGARC_REG_IMM_BASE+0xb4a4)
935
#define CYGARC_REG_IMM_RXECTR_A_TXECTR_B     (CYGARC_REG_IMM_BASE+0xb4a6)
936
 
937
                //-------------------------------------
938
                // UIMB (U-Bus to IMB3 Bus Interface)
939
                //-------------------------------------
940
#define CYGARC_REG_IMM_UMCR                  (CYGARC_REG_IMM_BASE+0xbf80)
941
#define CYGARC_REG_IMM_UTSTCREG              (CYGARC_REG_IMM_BASE+0xbf90)
942
#define CYGARC_REG_IMM_UIPEND                (CYGARC_REG_IMM_BASE+0xbfa0)
943
 
944
                //-------------------------------------
945
                // SRAM (Static RAM Access memory)
946
                //-------------------------------------
947
#define CYGARC_REG_IMM_SRAMMCR_A             (CYGARC_REG_IMM_BASE+0x84000)
948
#define CYGARC_REG_IMM_SRAMTST_A             (CYGARC_REG_IMM_BASE+0x84004)
949
#define CYGARC_REG_IMM_SRAMMCR_B             (CYGARC_REG_IMM_BASE+0x84008)
950
#define CYGARC_REG_IMM_SRAMTST_B             (CYGARC_REG_IMM_BASE+0x8400c)
951
 
952
#ifdef CYGARC_HAL_COMMON_EXPORT_CPU_MACROS
953
// definitions without CYGARC_REG_ can come here. If there is a need for it ....
954
#endif
955
 
956
//-----------------------------------------------------------------------------
957
#endif // ifdef CYGONCE_HAL_VAR_REGS_H
958
// End of var_regs.h

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.