diff options
author | Jesper Nilsson <jesper.nilsson@axis.com> | 2008-10-21 11:45:58 -0400 |
---|---|---|
committer | Jesper Nilsson <jesper.nilsson@axis.com> | 2008-10-29 12:29:44 -0400 |
commit | 556dcee7b829e5c350c3ffdbdb87a8b15aa3c5d3 (patch) | |
tree | 26485b0d92eedcba6c0c96d4069469041aaf7106 /arch/cris/include/arch-v32/mach-fs | |
parent | 242bfafc8e42da4697c1e2dea108049d14dbac4b (diff) |
[CRIS] Move header files from include to arch/cris/include.
Change all users of header files to correct path.
Remove some unneeded headers for arch-v32.
Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
Diffstat (limited to 'arch/cris/include/arch-v32/mach-fs')
22 files changed, 5072 insertions, 0 deletions
diff --git a/arch/cris/include/arch-v32/mach-fs/mach/arbiter.h b/arch/cris/include/arch-v32/mach-fs/mach/arbiter.h new file mode 100644 index 000000000000..a2e0ec8faa7d --- /dev/null +++ b/arch/cris/include/arch-v32/mach-fs/mach/arbiter.h | |||
@@ -0,0 +1,28 @@ | |||
1 | #ifndef _ASM_CRIS_ARCH_ARBITER_H | ||
2 | #define _ASM_CRIS_ARCH_ARBITER_H | ||
3 | |||
4 | #define EXT_REGION 0 | ||
5 | #define INT_REGION 1 | ||
6 | |||
7 | typedef void (watch_callback)(void); | ||
8 | |||
9 | enum { | ||
10 | arbiter_all_dmas = 0x3ff, | ||
11 | arbiter_cpu = 0xc00, | ||
12 | arbiter_all_clients = 0x3fff | ||
13 | }; | ||
14 | |||
15 | enum { | ||
16 | arbiter_all_read = 0x55, | ||
17 | arbiter_all_write = 0xaa, | ||
18 | arbiter_all_accesses = 0xff | ||
19 | }; | ||
20 | |||
21 | int crisv32_arbiter_allocate_bandwidth(int client, int region, | ||
22 | unsigned long bandwidth); | ||
23 | int crisv32_arbiter_watch(unsigned long start, unsigned long size, | ||
24 | unsigned long clients, unsigned long accesses, | ||
25 | watch_callback * cb); | ||
26 | int crisv32_arbiter_unwatch(int id); | ||
27 | |||
28 | #endif | ||
diff --git a/arch/cris/include/arch-v32/mach-fs/mach/hwregs/asm/bif_core_defs_asm.h b/arch/cris/include/arch-v32/mach-fs/mach/hwregs/asm/bif_core_defs_asm.h new file mode 100644 index 000000000000..0a409c92837e --- /dev/null +++ b/arch/cris/include/arch-v32/mach-fs/mach/hwregs/asm/bif_core_defs_asm.h | |||
@@ -0,0 +1,319 @@ | |||
1 | #ifndef __bif_core_defs_asm_h | ||
2 | #define __bif_core_defs_asm_h | ||
3 | |||
4 | /* | ||
5 | * This file is autogenerated from | ||
6 | * file: ../../inst/bif/rtl/bif_core_regs.r | ||
7 | * id: bif_core_regs.r,v 1.17 2005/02/04 13:28:22 np Exp | ||
8 | * last modfied: Mon Apr 11 16:06:33 2005 | ||
9 | * | ||
10 | * by /n/asic/design/tools/rdesc/src/rdes2c -asm --outfile asm/bif_core_defs_asm.h ../../inst/bif/rtl/bif_core_regs.r | ||
11 | * id: $Id: bif_core_defs_asm.h,v 1.1 2007/02/13 11:55:30 starvik Exp $ | ||
12 | * Any changes here will be lost. | ||
13 | * | ||
14 | * -*- buffer-read-only: t -*- | ||
15 | */ | ||
16 | |||
17 | #ifndef REG_FIELD | ||
18 | #define REG_FIELD( scope, reg, field, value ) \ | ||
19 | REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) | ||
20 | #define REG_FIELD_X_( value, shift ) ((value) << shift) | ||
21 | #endif | ||
22 | |||
23 | #ifndef REG_STATE | ||
24 | #define REG_STATE( scope, reg, field, symbolic_value ) \ | ||
25 | REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) | ||
26 | #define REG_STATE_X_( k, shift ) (k << shift) | ||
27 | #endif | ||
28 | |||
29 | #ifndef REG_MASK | ||
30 | #define REG_MASK( scope, reg, field ) \ | ||
31 | REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) | ||
32 | #define REG_MASK_X_( width, lsb ) (((1 << width)-1) << lsb) | ||
33 | #endif | ||
34 | |||
35 | #ifndef REG_LSB | ||
36 | #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb | ||
37 | #endif | ||
38 | |||
39 | #ifndef REG_BIT | ||
40 | #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit | ||
41 | #endif | ||
42 | |||
43 | #ifndef REG_ADDR | ||
44 | #define REG_ADDR( scope, inst, reg ) REG_ADDR_X_(inst, reg_##scope##_##reg##_offset) | ||
45 | #define REG_ADDR_X_( inst, offs ) ((inst) + offs) | ||
46 | #endif | ||
47 | |||
48 | #ifndef REG_ADDR_VECT | ||
49 | #define REG_ADDR_VECT( scope, inst, reg, index ) \ | ||
50 | REG_ADDR_VECT_X_(inst, reg_##scope##_##reg##_offset, index, \ | ||
51 | STRIDE_##scope##_##reg ) | ||
52 | #define REG_ADDR_VECT_X_( inst, offs, index, stride ) \ | ||
53 | ((inst) + offs + (index) * stride) | ||
54 | #endif | ||
55 | |||
56 | /* Register rw_grp1_cfg, scope bif_core, type rw */ | ||
57 | #define reg_bif_core_rw_grp1_cfg___lw___lsb 0 | ||
58 | #define reg_bif_core_rw_grp1_cfg___lw___width 6 | ||
59 | #define reg_bif_core_rw_grp1_cfg___ew___lsb 6 | ||
60 | #define reg_bif_core_rw_grp1_cfg___ew___width 3 | ||
61 | #define reg_bif_core_rw_grp1_cfg___zw___lsb 9 | ||
62 | #define reg_bif_core_rw_grp1_cfg___zw___width 3 | ||
63 | #define reg_bif_core_rw_grp1_cfg___aw___lsb 12 | ||
64 | #define reg_bif_core_rw_grp1_cfg___aw___width 2 | ||
65 | #define reg_bif_core_rw_grp1_cfg___dw___lsb 14 | ||
66 | #define reg_bif_core_rw_grp1_cfg___dw___width 2 | ||
67 | #define reg_bif_core_rw_grp1_cfg___ewb___lsb 16 | ||
68 | #define reg_bif_core_rw_grp1_cfg___ewb___width 2 | ||
69 | #define reg_bif_core_rw_grp1_cfg___bw___lsb 18 | ||
70 | #define reg_bif_core_rw_grp1_cfg___bw___width 1 | ||
71 | #define reg_bif_core_rw_grp1_cfg___bw___bit 18 | ||
72 | #define reg_bif_core_rw_grp1_cfg___wr_extend___lsb 19 | ||
73 | #define reg_bif_core_rw_grp1_cfg___wr_extend___width 1 | ||
74 | #define reg_bif_core_rw_grp1_cfg___wr_extend___bit 19 | ||
75 | #define reg_bif_core_rw_grp1_cfg___erc_en___lsb 20 | ||
76 | #define reg_bif_core_rw_grp1_cfg___erc_en___width 1 | ||
77 | #define reg_bif_core_rw_grp1_cfg___erc_en___bit 20 | ||
78 | #define reg_bif_core_rw_grp1_cfg___mode___lsb 21 | ||
79 | #define reg_bif_core_rw_grp1_cfg___mode___width 1 | ||
80 | #define reg_bif_core_rw_grp1_cfg___mode___bit 21 | ||
81 | #define reg_bif_core_rw_grp1_cfg_offset 0 | ||
82 | |||
83 | /* Register rw_grp2_cfg, scope bif_core, type rw */ | ||
84 | #define reg_bif_core_rw_grp2_cfg___lw___lsb 0 | ||
85 | #define reg_bif_core_rw_grp2_cfg___lw___width 6 | ||
86 | #define reg_bif_core_rw_grp2_cfg___ew___lsb 6 | ||
87 | #define reg_bif_core_rw_grp2_cfg___ew___width 3 | ||
88 | #define reg_bif_core_rw_grp2_cfg___zw___lsb 9 | ||
89 | #define reg_bif_core_rw_grp2_cfg___zw___width 3 | ||
90 | #define reg_bif_core_rw_grp2_cfg___aw___lsb 12 | ||
91 | #define reg_bif_core_rw_grp2_cfg___aw___width 2 | ||
92 | #define reg_bif_core_rw_grp2_cfg___dw___lsb 14 | ||
93 | #define reg_bif_core_rw_grp2_cfg___dw___width 2 | ||
94 | #define reg_bif_core_rw_grp2_cfg___ewb___lsb 16 | ||
95 | #define reg_bif_core_rw_grp2_cfg___ewb___width 2 | ||
96 | #define reg_bif_core_rw_grp2_cfg___bw___lsb 18 | ||
97 | #define reg_bif_core_rw_grp2_cfg___bw___width 1 | ||
98 | #define reg_bif_core_rw_grp2_cfg___bw___bit 18 | ||
99 | #define reg_bif_core_rw_grp2_cfg___wr_extend___lsb 19 | ||
100 | #define reg_bif_core_rw_grp2_cfg___wr_extend___width 1 | ||
101 | #define reg_bif_core_rw_grp2_cfg___wr_extend___bit 19 | ||
102 | #define reg_bif_core_rw_grp2_cfg___erc_en___lsb 20 | ||
103 | #define reg_bif_core_rw_grp2_cfg___erc_en___width 1 | ||
104 | #define reg_bif_core_rw_grp2_cfg___erc_en___bit 20 | ||
105 | #define reg_bif_core_rw_grp2_cfg___mode___lsb 21 | ||
106 | #define reg_bif_core_rw_grp2_cfg___mode___width 1 | ||
107 | #define reg_bif_core_rw_grp2_cfg___mode___bit 21 | ||
108 | #define reg_bif_core_rw_grp2_cfg_offset 4 | ||
109 | |||
110 | /* Register rw_grp3_cfg, scope bif_core, type rw */ | ||
111 | #define reg_bif_core_rw_grp3_cfg___lw___lsb 0 | ||
112 | #define reg_bif_core_rw_grp3_cfg___lw___width 6 | ||
113 | #define reg_bif_core_rw_grp3_cfg___ew___lsb 6 | ||
114 | #define reg_bif_core_rw_grp3_cfg___ew___width 3 | ||
115 | #define reg_bif_core_rw_grp3_cfg___zw___lsb 9 | ||
116 | #define reg_bif_core_rw_grp3_cfg___zw___width 3 | ||
117 | #define reg_bif_core_rw_grp3_cfg___aw___lsb 12 | ||
118 | #define reg_bif_core_rw_grp3_cfg___aw___width 2 | ||
119 | #define reg_bif_core_rw_grp3_cfg___dw___lsb 14 | ||
120 | #define reg_bif_core_rw_grp3_cfg___dw___width 2 | ||
121 | #define reg_bif_core_rw_grp3_cfg___ewb___lsb 16 | ||
122 | #define reg_bif_core_rw_grp3_cfg___ewb___width 2 | ||
123 | #define reg_bif_core_rw_grp3_cfg___bw___lsb 18 | ||
124 | #define reg_bif_core_rw_grp3_cfg___bw___width 1 | ||
125 | #define reg_bif_core_rw_grp3_cfg___bw___bit 18 | ||
126 | #define reg_bif_core_rw_grp3_cfg___wr_extend___lsb 19 | ||
127 | #define reg_bif_core_rw_grp3_cfg___wr_extend___width 1 | ||
128 | #define reg_bif_core_rw_grp3_cfg___wr_extend___bit 19 | ||
129 | #define reg_bif_core_rw_grp3_cfg___erc_en___lsb 20 | ||
130 | #define reg_bif_core_rw_grp3_cfg___erc_en___width 1 | ||
131 | #define reg_bif_core_rw_grp3_cfg___erc_en___bit 20 | ||
132 | #define reg_bif_core_rw_grp3_cfg___mode___lsb 21 | ||
133 | #define reg_bif_core_rw_grp3_cfg___mode___width 1 | ||
134 | #define reg_bif_core_rw_grp3_cfg___mode___bit 21 | ||
135 | #define reg_bif_core_rw_grp3_cfg___gated_csp0___lsb 24 | ||
136 | #define reg_bif_core_rw_grp3_cfg___gated_csp0___width 2 | ||
137 | #define reg_bif_core_rw_grp3_cfg___gated_csp1___lsb 26 | ||
138 | #define reg_bif_core_rw_grp3_cfg___gated_csp1___width 2 | ||
139 | #define reg_bif_core_rw_grp3_cfg___gated_csp2___lsb 28 | ||
140 | #define reg_bif_core_rw_grp3_cfg___gated_csp2___width 2 | ||
141 | #define reg_bif_core_rw_grp3_cfg___gated_csp3___lsb 30 | ||
142 | #define reg_bif_core_rw_grp3_cfg___gated_csp3___width 2 | ||
143 | #define reg_bif_core_rw_grp3_cfg_offset 8 | ||
144 | |||
145 | /* Register rw_grp4_cfg, scope bif_core, type rw */ | ||
146 | #define reg_bif_core_rw_grp4_cfg___lw___lsb 0 | ||
147 | #define reg_bif_core_rw_grp4_cfg___lw___width 6 | ||
148 | #define reg_bif_core_rw_grp4_cfg___ew___lsb 6 | ||
149 | #define reg_bif_core_rw_grp4_cfg___ew___width 3 | ||
150 | #define reg_bif_core_rw_grp4_cfg___zw___lsb 9 | ||
151 | #define reg_bif_core_rw_grp4_cfg___zw___width 3 | ||
152 | #define reg_bif_core_rw_grp4_cfg___aw___lsb 12 | ||
153 | #define reg_bif_core_rw_grp4_cfg___aw___width 2 | ||
154 | #define reg_bif_core_rw_grp4_cfg___dw___lsb 14 | ||
155 | #define reg_bif_core_rw_grp4_cfg___dw___width 2 | ||
156 | #define reg_bif_core_rw_grp4_cfg___ewb___lsb 16 | ||
157 | #define reg_bif_core_rw_grp4_cfg___ewb___width 2 | ||
158 | #define reg_bif_core_rw_grp4_cfg___bw___lsb 18 | ||
159 | #define reg_bif_core_rw_grp4_cfg___bw___width 1 | ||
160 | #define reg_bif_core_rw_grp4_cfg___bw___bit 18 | ||
161 | #define reg_bif_core_rw_grp4_cfg___wr_extend___lsb 19 | ||
162 | #define reg_bif_core_rw_grp4_cfg___wr_extend___width 1 | ||
163 | #define reg_bif_core_rw_grp4_cfg___wr_extend___bit 19 | ||
164 | #define reg_bif_core_rw_grp4_cfg___erc_en___lsb 20 | ||
165 | #define reg_bif_core_rw_grp4_cfg___erc_en___width 1 | ||
166 | #define reg_bif_core_rw_grp4_cfg___erc_en___bit 20 | ||
167 | #define reg_bif_core_rw_grp4_cfg___mode___lsb 21 | ||
168 | #define reg_bif_core_rw_grp4_cfg___mode___width 1 | ||
169 | #define reg_bif_core_rw_grp4_cfg___mode___bit 21 | ||
170 | #define reg_bif_core_rw_grp4_cfg___gated_csp4___lsb 26 | ||
171 | #define reg_bif_core_rw_grp4_cfg___gated_csp4___width 2 | ||
172 | #define reg_bif_core_rw_grp4_cfg___gated_csp5___lsb 28 | ||
173 | #define reg_bif_core_rw_grp4_cfg___gated_csp5___width 2 | ||
174 | #define reg_bif_core_rw_grp4_cfg___gated_csp6___lsb 30 | ||
175 | #define reg_bif_core_rw_grp4_cfg___gated_csp6___width 2 | ||
176 | #define reg_bif_core_rw_grp4_cfg_offset 12 | ||
177 | |||
178 | /* Register rw_sdram_cfg_grp0, scope bif_core, type rw */ | ||
179 | #define reg_bif_core_rw_sdram_cfg_grp0___bank_sel___lsb 0 | ||
180 | #define reg_bif_core_rw_sdram_cfg_grp0___bank_sel___width 5 | ||
181 | #define reg_bif_core_rw_sdram_cfg_grp0___ca___lsb 5 | ||
182 | #define reg_bif_core_rw_sdram_cfg_grp0___ca___width 3 | ||
183 | #define reg_bif_core_rw_sdram_cfg_grp0___type___lsb 8 | ||
184 | #define reg_bif_core_rw_sdram_cfg_grp0___type___width 1 | ||
185 | #define reg_bif_core_rw_sdram_cfg_grp0___type___bit 8 | ||
186 | #define reg_bif_core_rw_sdram_cfg_grp0___bw___lsb 9 | ||
187 | #define reg_bif_core_rw_sdram_cfg_grp0___bw___width 1 | ||
188 | #define reg_bif_core_rw_sdram_cfg_grp0___bw___bit 9 | ||
189 | #define reg_bif_core_rw_sdram_cfg_grp0___sh___lsb 10 | ||
190 | #define reg_bif_core_rw_sdram_cfg_grp0___sh___width 3 | ||
191 | #define reg_bif_core_rw_sdram_cfg_grp0___wmm___lsb 13 | ||
192 | #define reg_bif_core_rw_sdram_cfg_grp0___wmm___width 1 | ||
193 | #define reg_bif_core_rw_sdram_cfg_grp0___wmm___bit 13 | ||
194 | #define reg_bif_core_rw_sdram_cfg_grp0___sh16___lsb 14 | ||
195 | #define reg_bif_core_rw_sdram_cfg_grp0___sh16___width 1 | ||
196 | #define reg_bif_core_rw_sdram_cfg_grp0___sh16___bit 14 | ||
197 | #define reg_bif_core_rw_sdram_cfg_grp0___grp_sel___lsb 15 | ||
198 | #define reg_bif_core_rw_sdram_cfg_grp0___grp_sel___width 5 | ||
199 | #define reg_bif_core_rw_sdram_cfg_grp0_offset 16 | ||
200 | |||
201 | /* Register rw_sdram_cfg_grp1, scope bif_core, type rw */ | ||
202 | #define reg_bif_core_rw_sdram_cfg_grp1___bank_sel___lsb 0 | ||
203 | #define reg_bif_core_rw_sdram_cfg_grp1___bank_sel___width 5 | ||
204 | #define reg_bif_core_rw_sdram_cfg_grp1___ca___lsb 5 | ||
205 | #define reg_bif_core_rw_sdram_cfg_grp1___ca___width 3 | ||
206 | #define reg_bif_core_rw_sdram_cfg_grp1___type___lsb 8 | ||
207 | #define reg_bif_core_rw_sdram_cfg_grp1___type___width 1 | ||
208 | #define reg_bif_core_rw_sdram_cfg_grp1___type___bit 8 | ||
209 | #define reg_bif_core_rw_sdram_cfg_grp1___bw___lsb 9 | ||
210 | #define reg_bif_core_rw_sdram_cfg_grp1___bw___width 1 | ||
211 | #define reg_bif_core_rw_sdram_cfg_grp1___bw___bit 9 | ||
212 | #define reg_bif_core_rw_sdram_cfg_grp1___sh___lsb 10 | ||
213 | #define reg_bif_core_rw_sdram_cfg_grp1___sh___width 3 | ||
214 | #define reg_bif_core_rw_sdram_cfg_grp1___wmm___lsb 13 | ||
215 | #define reg_bif_core_rw_sdram_cfg_grp1___wmm___width 1 | ||
216 | #define reg_bif_core_rw_sdram_cfg_grp1___wmm___bit 13 | ||
217 | #define reg_bif_core_rw_sdram_cfg_grp1___sh16___lsb 14 | ||
218 | #define reg_bif_core_rw_sdram_cfg_grp1___sh16___width 1 | ||
219 | #define reg_bif_core_rw_sdram_cfg_grp1___sh16___bit 14 | ||
220 | #define reg_bif_core_rw_sdram_cfg_grp1_offset 20 | ||
221 | |||
222 | /* Register rw_sdram_timing, scope bif_core, type rw */ | ||
223 | #define reg_bif_core_rw_sdram_timing___cl___lsb 0 | ||
224 | #define reg_bif_core_rw_sdram_timing___cl___width 3 | ||
225 | #define reg_bif_core_rw_sdram_timing___rcd___lsb 3 | ||
226 | #define reg_bif_core_rw_sdram_timing___rcd___width 3 | ||
227 | #define reg_bif_core_rw_sdram_timing___rp___lsb 6 | ||
228 | #define reg_bif_core_rw_sdram_timing___rp___width 3 | ||
229 | #define reg_bif_core_rw_sdram_timing___rc___lsb 9 | ||
230 | #define reg_bif_core_rw_sdram_timing___rc___width 2 | ||
231 | #define reg_bif_core_rw_sdram_timing___dpl___lsb 11 | ||
232 | #define reg_bif_core_rw_sdram_timing___dpl___width 2 | ||
233 | #define reg_bif_core_rw_sdram_timing___pde___lsb 13 | ||
234 | #define reg_bif_core_rw_sdram_timing___pde___width 1 | ||
235 | #define reg_bif_core_rw_sdram_timing___pde___bit 13 | ||
236 | #define reg_bif_core_rw_sdram_timing___ref___lsb 14 | ||
237 | #define reg_bif_core_rw_sdram_timing___ref___width 2 | ||
238 | #define reg_bif_core_rw_sdram_timing___cpd___lsb 16 | ||
239 | #define reg_bif_core_rw_sdram_timing___cpd___width 1 | ||
240 | #define reg_bif_core_rw_sdram_timing___cpd___bit 16 | ||
241 | #define reg_bif_core_rw_sdram_timing___sdcke___lsb 17 | ||
242 | #define reg_bif_core_rw_sdram_timing___sdcke___width 1 | ||
243 | #define reg_bif_core_rw_sdram_timing___sdcke___bit 17 | ||
244 | #define reg_bif_core_rw_sdram_timing___sdclk___lsb 18 | ||
245 | #define reg_bif_core_rw_sdram_timing___sdclk___width 1 | ||
246 | #define reg_bif_core_rw_sdram_timing___sdclk___bit 18 | ||
247 | #define reg_bif_core_rw_sdram_timing_offset 24 | ||
248 | |||
249 | /* Register rw_sdram_cmd, scope bif_core, type rw */ | ||
250 | #define reg_bif_core_rw_sdram_cmd___cmd___lsb 0 | ||
251 | #define reg_bif_core_rw_sdram_cmd___cmd___width 3 | ||
252 | #define reg_bif_core_rw_sdram_cmd___mrs_data___lsb 3 | ||
253 | #define reg_bif_core_rw_sdram_cmd___mrs_data___width 15 | ||
254 | #define reg_bif_core_rw_sdram_cmd_offset 28 | ||
255 | |||
256 | /* Register rs_sdram_ref_stat, scope bif_core, type rs */ | ||
257 | #define reg_bif_core_rs_sdram_ref_stat___ok___lsb 0 | ||
258 | #define reg_bif_core_rs_sdram_ref_stat___ok___width 1 | ||
259 | #define reg_bif_core_rs_sdram_ref_stat___ok___bit 0 | ||
260 | #define reg_bif_core_rs_sdram_ref_stat_offset 32 | ||
261 | |||
262 | /* Register r_sdram_ref_stat, scope bif_core, type r */ | ||
263 | #define reg_bif_core_r_sdram_ref_stat___ok___lsb 0 | ||
264 | #define reg_bif_core_r_sdram_ref_stat___ok___width 1 | ||
265 | #define reg_bif_core_r_sdram_ref_stat___ok___bit 0 | ||
266 | #define reg_bif_core_r_sdram_ref_stat_offset 36 | ||
267 | |||
268 | |||
269 | /* Constants */ | ||
270 | #define regk_bif_core_bank2 0x00000000 | ||
271 | #define regk_bif_core_bank4 0x00000001 | ||
272 | #define regk_bif_core_bit10 0x0000000a | ||
273 | #define regk_bif_core_bit11 0x0000000b | ||
274 | #define regk_bif_core_bit12 0x0000000c | ||
275 | #define regk_bif_core_bit13 0x0000000d | ||
276 | #define regk_bif_core_bit14 0x0000000e | ||
277 | #define regk_bif_core_bit15 0x0000000f | ||
278 | #define regk_bif_core_bit16 0x00000010 | ||
279 | #define regk_bif_core_bit17 0x00000011 | ||
280 | #define regk_bif_core_bit18 0x00000012 | ||
281 | #define regk_bif_core_bit19 0x00000013 | ||
282 | #define regk_bif_core_bit20 0x00000014 | ||
283 | #define regk_bif_core_bit21 0x00000015 | ||
284 | #define regk_bif_core_bit22 0x00000016 | ||
285 | #define regk_bif_core_bit23 0x00000017 | ||
286 | #define regk_bif_core_bit24 0x00000018 | ||
287 | #define regk_bif_core_bit25 0x00000019 | ||
288 | #define regk_bif_core_bit26 0x0000001a | ||
289 | #define regk_bif_core_bit27 0x0000001b | ||
290 | #define regk_bif_core_bit28 0x0000001c | ||
291 | #define regk_bif_core_bit29 0x0000001d | ||
292 | #define regk_bif_core_bit9 0x00000009 | ||
293 | #define regk_bif_core_bw16 0x00000001 | ||
294 | #define regk_bif_core_bw32 0x00000000 | ||
295 | #define regk_bif_core_bwe 0x00000000 | ||
296 | #define regk_bif_core_cwe 0x00000001 | ||
297 | #define regk_bif_core_e15us 0x00000001 | ||
298 | #define regk_bif_core_e7800ns 0x00000002 | ||
299 | #define regk_bif_core_grp0 0x00000000 | ||
300 | #define regk_bif_core_grp1 0x00000001 | ||
301 | #define regk_bif_core_mrs 0x00000003 | ||
302 | #define regk_bif_core_no 0x00000000 | ||
303 | #define regk_bif_core_none 0x00000000 | ||
304 | #define regk_bif_core_nop 0x00000000 | ||
305 | #define regk_bif_core_off 0x00000000 | ||
306 | #define regk_bif_core_pre 0x00000002 | ||
307 | #define regk_bif_core_r_sdram_ref_stat_default 0x00000001 | ||
308 | #define regk_bif_core_rd 0x00000002 | ||
309 | #define regk_bif_core_ref 0x00000001 | ||
310 | #define regk_bif_core_rs_sdram_ref_stat_default 0x00000001 | ||
311 | #define regk_bif_core_rw_grp1_cfg_default 0x000006cf | ||
312 | #define regk_bif_core_rw_grp2_cfg_default 0x000006cf | ||
313 | #define regk_bif_core_rw_grp3_cfg_default 0x000006cf | ||
314 | #define regk_bif_core_rw_grp4_cfg_default 0x000006cf | ||
315 | #define regk_bif_core_rw_sdram_cfg_grp1_default 0x00000000 | ||
316 | #define regk_bif_core_slf 0x00000004 | ||
317 | #define regk_bif_core_wr 0x00000001 | ||
318 | #define regk_bif_core_yes 0x00000001 | ||
319 | #endif /* __bif_core_defs_asm_h */ | ||
diff --git a/arch/cris/include/arch-v32/mach-fs/mach/hwregs/asm/config_defs_asm.h b/arch/cris/include/arch-v32/mach-fs/mach/hwregs/asm/config_defs_asm.h new file mode 100644 index 000000000000..a9908dfc2937 --- /dev/null +++ b/arch/cris/include/arch-v32/mach-fs/mach/hwregs/asm/config_defs_asm.h | |||
@@ -0,0 +1,131 @@ | |||
1 | #ifndef __config_defs_asm_h | ||
2 | #define __config_defs_asm_h | ||
3 | |||
4 | /* | ||
5 | * This file is autogenerated from | ||
6 | * file: ../../rtl/config_regs.r | ||
7 | * id: config_regs.r,v 1.23 2004/03/04 11:34:42 mikaeln Exp | ||
8 | * last modfied: Thu Mar 4 12:34:39 2004 | ||
9 | * | ||
10 | * by /n/asic/design/tools/rdesc/src/rdes2c -asm --outfile asm/config_defs_asm.h ../../rtl/config_regs.r | ||
11 | * id: $Id: config_defs_asm.h,v 1.1 2007/02/13 11:55:30 starvik Exp $ | ||
12 | * Any changes here will be lost. | ||
13 | * | ||
14 | * -*- buffer-read-only: t -*- | ||
15 | */ | ||
16 | |||
17 | #ifndef REG_FIELD | ||
18 | #define REG_FIELD( scope, reg, field, value ) \ | ||
19 | REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) | ||
20 | #define REG_FIELD_X_( value, shift ) ((value) << shift) | ||
21 | #endif | ||
22 | |||
23 | #ifndef REG_STATE | ||
24 | #define REG_STATE( scope, reg, field, symbolic_value ) \ | ||
25 | REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) | ||
26 | #define REG_STATE_X_( k, shift ) (k << shift) | ||
27 | #endif | ||
28 | |||
29 | #ifndef REG_MASK | ||
30 | #define REG_MASK( scope, reg, field ) \ | ||
31 | REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) | ||
32 | #define REG_MASK_X_( width, lsb ) (((1 << width)-1) << lsb) | ||
33 | #endif | ||
34 | |||
35 | #ifndef REG_LSB | ||
36 | #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb | ||
37 | #endif | ||
38 | |||
39 | #ifndef REG_BIT | ||
40 | #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit | ||
41 | #endif | ||
42 | |||
43 | #ifndef REG_ADDR | ||
44 | #define REG_ADDR( scope, inst, reg ) REG_ADDR_X_(inst, reg_##scope##_##reg##_offset) | ||
45 | #define REG_ADDR_X_( inst, offs ) ((inst) + offs) | ||
46 | #endif | ||
47 | |||
48 | #ifndef REG_ADDR_VECT | ||
49 | #define REG_ADDR_VECT( scope, inst, reg, index ) \ | ||
50 | REG_ADDR_VECT_X_(inst, reg_##scope##_##reg##_offset, index, \ | ||
51 | STRIDE_##scope##_##reg ) | ||
52 | #define REG_ADDR_VECT_X_( inst, offs, index, stride ) \ | ||
53 | ((inst) + offs + (index) * stride) | ||
54 | #endif | ||
55 | |||
56 | /* Register r_bootsel, scope config, type r */ | ||
57 | #define reg_config_r_bootsel___boot_mode___lsb 0 | ||
58 | #define reg_config_r_bootsel___boot_mode___width 3 | ||
59 | #define reg_config_r_bootsel___full_duplex___lsb 3 | ||
60 | #define reg_config_r_bootsel___full_duplex___width 1 | ||
61 | #define reg_config_r_bootsel___full_duplex___bit 3 | ||
62 | #define reg_config_r_bootsel___user___lsb 4 | ||
63 | #define reg_config_r_bootsel___user___width 1 | ||
64 | #define reg_config_r_bootsel___user___bit 4 | ||
65 | #define reg_config_r_bootsel___pll___lsb 5 | ||
66 | #define reg_config_r_bootsel___pll___width 1 | ||
67 | #define reg_config_r_bootsel___pll___bit 5 | ||
68 | #define reg_config_r_bootsel___flash_bw___lsb 6 | ||
69 | #define reg_config_r_bootsel___flash_bw___width 1 | ||
70 | #define reg_config_r_bootsel___flash_bw___bit 6 | ||
71 | #define reg_config_r_bootsel_offset 0 | ||
72 | |||
73 | /* Register rw_clk_ctrl, scope config, type rw */ | ||
74 | #define reg_config_rw_clk_ctrl___pll___lsb 0 | ||
75 | #define reg_config_rw_clk_ctrl___pll___width 1 | ||
76 | #define reg_config_rw_clk_ctrl___pll___bit 0 | ||
77 | #define reg_config_rw_clk_ctrl___cpu___lsb 1 | ||
78 | #define reg_config_rw_clk_ctrl___cpu___width 1 | ||
79 | #define reg_config_rw_clk_ctrl___cpu___bit 1 | ||
80 | #define reg_config_rw_clk_ctrl___iop___lsb 2 | ||
81 | #define reg_config_rw_clk_ctrl___iop___width 1 | ||
82 | #define reg_config_rw_clk_ctrl___iop___bit 2 | ||
83 | #define reg_config_rw_clk_ctrl___dma01_eth0___lsb 3 | ||
84 | #define reg_config_rw_clk_ctrl___dma01_eth0___width 1 | ||
85 | #define reg_config_rw_clk_ctrl___dma01_eth0___bit 3 | ||
86 | #define reg_config_rw_clk_ctrl___dma23___lsb 4 | ||
87 | #define reg_config_rw_clk_ctrl___dma23___width 1 | ||
88 | #define reg_config_rw_clk_ctrl___dma23___bit 4 | ||
89 | #define reg_config_rw_clk_ctrl___dma45___lsb 5 | ||
90 | #define reg_config_rw_clk_ctrl___dma45___width 1 | ||
91 | #define reg_config_rw_clk_ctrl___dma45___bit 5 | ||
92 | #define reg_config_rw_clk_ctrl___dma67___lsb 6 | ||
93 | #define reg_config_rw_clk_ctrl___dma67___width 1 | ||
94 | #define reg_config_rw_clk_ctrl___dma67___bit 6 | ||
95 | #define reg_config_rw_clk_ctrl___dma89_strcop___lsb 7 | ||
96 | #define reg_config_rw_clk_ctrl___dma89_strcop___width 1 | ||
97 | #define reg_config_rw_clk_ctrl___dma89_strcop___bit 7 | ||
98 | #define reg_config_rw_clk_ctrl___bif___lsb 8 | ||
99 | #define reg_config_rw_clk_ctrl___bif___width 1 | ||
100 | #define reg_config_rw_clk_ctrl___bif___bit 8 | ||
101 | #define reg_config_rw_clk_ctrl___fix_io___lsb 9 | ||
102 | #define reg_config_rw_clk_ctrl___fix_io___width 1 | ||
103 | #define reg_config_rw_clk_ctrl___fix_io___bit 9 | ||
104 | #define reg_config_rw_clk_ctrl_offset 4 | ||
105 | |||
106 | /* Register rw_pad_ctrl, scope config, type rw */ | ||
107 | #define reg_config_rw_pad_ctrl___usb_susp___lsb 0 | ||
108 | #define reg_config_rw_pad_ctrl___usb_susp___width 1 | ||
109 | #define reg_config_rw_pad_ctrl___usb_susp___bit 0 | ||
110 | #define reg_config_rw_pad_ctrl___phyrst_n___lsb 1 | ||
111 | #define reg_config_rw_pad_ctrl___phyrst_n___width 1 | ||
112 | #define reg_config_rw_pad_ctrl___phyrst_n___bit 1 | ||
113 | #define reg_config_rw_pad_ctrl_offset 8 | ||
114 | |||
115 | |||
116 | /* Constants */ | ||
117 | #define regk_config_bw16 0x00000000 | ||
118 | #define regk_config_bw32 0x00000001 | ||
119 | #define regk_config_master 0x00000005 | ||
120 | #define regk_config_nand 0x00000003 | ||
121 | #define regk_config_net_rx 0x00000001 | ||
122 | #define regk_config_net_tx_rx 0x00000002 | ||
123 | #define regk_config_no 0x00000000 | ||
124 | #define regk_config_none 0x00000007 | ||
125 | #define regk_config_nor 0x00000000 | ||
126 | #define regk_config_rw_clk_ctrl_default 0x00000002 | ||
127 | #define regk_config_rw_pad_ctrl_default 0x00000000 | ||
128 | #define regk_config_ser 0x00000004 | ||
129 | #define regk_config_slave 0x00000006 | ||
130 | #define regk_config_yes 0x00000001 | ||
131 | #endif /* __config_defs_asm_h */ | ||
diff --git a/arch/cris/include/arch-v32/mach-fs/mach/hwregs/asm/gio_defs_asm.h b/arch/cris/include/arch-v32/mach-fs/mach/hwregs/asm/gio_defs_asm.h new file mode 100644 index 000000000000..be4c63936d90 --- /dev/null +++ b/arch/cris/include/arch-v32/mach-fs/mach/hwregs/asm/gio_defs_asm.h | |||
@@ -0,0 +1,276 @@ | |||
1 | #ifndef __gio_defs_asm_h | ||
2 | #define __gio_defs_asm_h | ||
3 | |||
4 | /* | ||
5 | * This file is autogenerated from | ||
6 | * file: ../../inst/gio/rtl/gio_regs.r | ||
7 | * id: gio_regs.r,v 1.5 2005/02/04 09:43:21 perz Exp | ||
8 | * last modfied: Mon Apr 11 16:07:47 2005 | ||
9 | * | ||
10 | * by /n/asic/design/tools/rdesc/src/rdes2c -asm --outfile asm/gio_defs_asm.h ../../inst/gio/rtl/gio_regs.r | ||
11 | * id: $Id: gio_defs_asm.h,v 1.1 2007/02/13 11:55:30 starvik Exp $ | ||
12 | * Any changes here will be lost. | ||
13 | * | ||
14 | * -*- buffer-read-only: t -*- | ||
15 | */ | ||
16 | |||
17 | #ifndef REG_FIELD | ||
18 | #define REG_FIELD( scope, reg, field, value ) \ | ||
19 | REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) | ||
20 | #define REG_FIELD_X_( value, shift ) ((value) << shift) | ||
21 | #endif | ||
22 | |||
23 | #ifndef REG_STATE | ||
24 | #define REG_STATE( scope, reg, field, symbolic_value ) \ | ||
25 | REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) | ||
26 | #define REG_STATE_X_( k, shift ) (k << shift) | ||
27 | #endif | ||
28 | |||
29 | #ifndef REG_MASK | ||
30 | #define REG_MASK( scope, reg, field ) \ | ||
31 | REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) | ||
32 | #define REG_MASK_X_( width, lsb ) (((1 << width)-1) << lsb) | ||
33 | #endif | ||
34 | |||
35 | #ifndef REG_LSB | ||
36 | #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb | ||
37 | #endif | ||
38 | |||
39 | #ifndef REG_BIT | ||
40 | #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit | ||
41 | #endif | ||
42 | |||
43 | #ifndef REG_ADDR | ||
44 | #define REG_ADDR( scope, inst, reg ) REG_ADDR_X_(inst, reg_##scope##_##reg##_offset) | ||
45 | #define REG_ADDR_X_( inst, offs ) ((inst) + offs) | ||
46 | #endif | ||
47 | |||
48 | #ifndef REG_ADDR_VECT | ||
49 | #define REG_ADDR_VECT( scope, inst, reg, index ) \ | ||
50 | REG_ADDR_VECT_X_(inst, reg_##scope##_##reg##_offset, index, \ | ||
51 | STRIDE_##scope##_##reg ) | ||
52 | #define REG_ADDR_VECT_X_( inst, offs, index, stride ) \ | ||
53 | ((inst) + offs + (index) * stride) | ||
54 | #endif | ||
55 | |||
56 | /* Register rw_pa_dout, scope gio, type rw */ | ||
57 | #define reg_gio_rw_pa_dout___data___lsb 0 | ||
58 | #define reg_gio_rw_pa_dout___data___width 8 | ||
59 | #define reg_gio_rw_pa_dout_offset 0 | ||
60 | |||
61 | /* Register r_pa_din, scope gio, type r */ | ||
62 | #define reg_gio_r_pa_din___data___lsb 0 | ||
63 | #define reg_gio_r_pa_din___data___width 8 | ||
64 | #define reg_gio_r_pa_din_offset 4 | ||
65 | |||
66 | /* Register rw_pa_oe, scope gio, type rw */ | ||
67 | #define reg_gio_rw_pa_oe___oe___lsb 0 | ||
68 | #define reg_gio_rw_pa_oe___oe___width 8 | ||
69 | #define reg_gio_rw_pa_oe_offset 8 | ||
70 | |||
71 | /* Register rw_intr_cfg, scope gio, type rw */ | ||
72 | #define reg_gio_rw_intr_cfg___pa0___lsb 0 | ||
73 | #define reg_gio_rw_intr_cfg___pa0___width 3 | ||
74 | #define reg_gio_rw_intr_cfg___pa1___lsb 3 | ||
75 | #define reg_gio_rw_intr_cfg___pa1___width 3 | ||
76 | #define reg_gio_rw_intr_cfg___pa2___lsb 6 | ||
77 | #define reg_gio_rw_intr_cfg___pa2___width 3 | ||
78 | #define reg_gio_rw_intr_cfg___pa3___lsb 9 | ||
79 | #define reg_gio_rw_intr_cfg___pa3___width 3 | ||
80 | #define reg_gio_rw_intr_cfg___pa4___lsb 12 | ||
81 | #define reg_gio_rw_intr_cfg___pa4___width 3 | ||
82 | #define reg_gio_rw_intr_cfg___pa5___lsb 15 | ||
83 | #define reg_gio_rw_intr_cfg___pa5___width 3 | ||
84 | #define reg_gio_rw_intr_cfg___pa6___lsb 18 | ||
85 | #define reg_gio_rw_intr_cfg___pa6___width 3 | ||
86 | #define reg_gio_rw_intr_cfg___pa7___lsb 21 | ||
87 | #define reg_gio_rw_intr_cfg___pa7___width 3 | ||
88 | #define reg_gio_rw_intr_cfg_offset 12 | ||
89 | |||
90 | /* Register rw_intr_mask, scope gio, type rw */ | ||
91 | #define reg_gio_rw_intr_mask___pa0___lsb 0 | ||
92 | #define reg_gio_rw_intr_mask___pa0___width 1 | ||
93 | #define reg_gio_rw_intr_mask___pa0___bit 0 | ||
94 | #define reg_gio_rw_intr_mask___pa1___lsb 1 | ||
95 | #define reg_gio_rw_intr_mask___pa1___width 1 | ||
96 | #define reg_gio_rw_intr_mask___pa1___bit 1 | ||
97 | #define reg_gio_rw_intr_mask___pa2___lsb 2 | ||
98 | #define reg_gio_rw_intr_mask___pa2___width 1 | ||
99 | #define reg_gio_rw_intr_mask___pa2___bit 2 | ||
100 | #define reg_gio_rw_intr_mask___pa3___lsb 3 | ||
101 | #define reg_gio_rw_intr_mask___pa3___width 1 | ||
102 | #define reg_gio_rw_intr_mask___pa3___bit 3 | ||
103 | #define reg_gio_rw_intr_mask___pa4___lsb 4 | ||
104 | #define reg_gio_rw_intr_mask___pa4___width 1 | ||
105 | #define reg_gio_rw_intr_mask___pa4___bit 4 | ||
106 | #define reg_gio_rw_intr_mask___pa5___lsb 5 | ||
107 | #define reg_gio_rw_intr_mask___pa5___width 1 | ||
108 | #define reg_gio_rw_intr_mask___pa5___bit 5 | ||
109 | #define reg_gio_rw_intr_mask___pa6___lsb 6 | ||
110 | #define reg_gio_rw_intr_mask___pa6___width 1 | ||
111 | #define reg_gio_rw_intr_mask___pa6___bit 6 | ||
112 | #define reg_gio_rw_intr_mask___pa7___lsb 7 | ||
113 | #define reg_gio_rw_intr_mask___pa7___width 1 | ||
114 | #define reg_gio_rw_intr_mask___pa7___bit 7 | ||
115 | #define reg_gio_rw_intr_mask_offset 16 | ||
116 | |||
117 | /* Register rw_ack_intr, scope gio, type rw */ | ||
118 | #define reg_gio_rw_ack_intr___pa0___lsb 0 | ||
119 | #define reg_gio_rw_ack_intr___pa0___width 1 | ||
120 | #define reg_gio_rw_ack_intr___pa0___bit 0 | ||
121 | #define reg_gio_rw_ack_intr___pa1___lsb 1 | ||
122 | #define reg_gio_rw_ack_intr___pa1___width 1 | ||
123 | #define reg_gio_rw_ack_intr___pa1___bit 1 | ||
124 | #define reg_gio_rw_ack_intr___pa2___lsb 2 | ||
125 | #define reg_gio_rw_ack_intr___pa2___width 1 | ||
126 | #define reg_gio_rw_ack_intr___pa2___bit 2 | ||
127 | #define reg_gio_rw_ack_intr___pa3___lsb 3 | ||
128 | #define reg_gio_rw_ack_intr___pa3___width 1 | ||
129 | #define reg_gio_rw_ack_intr___pa3___bit 3 | ||
130 | #define reg_gio_rw_ack_intr___pa4___lsb 4 | ||
131 | #define reg_gio_rw_ack_intr___pa4___width 1 | ||
132 | #define reg_gio_rw_ack_intr___pa4___bit 4 | ||
133 | #define reg_gio_rw_ack_intr___pa5___lsb 5 | ||
134 | #define reg_gio_rw_ack_intr___pa5___width 1 | ||
135 | #define reg_gio_rw_ack_intr___pa5___bit 5 | ||
136 | #define reg_gio_rw_ack_intr___pa6___lsb 6 | ||
137 | #define reg_gio_rw_ack_intr___pa6___width 1 | ||
138 | #define reg_gio_rw_ack_intr___pa6___bit 6 | ||
139 | #define reg_gio_rw_ack_intr___pa7___lsb 7 | ||
140 | #define reg_gio_rw_ack_intr___pa7___width 1 | ||
141 | #define reg_gio_rw_ack_intr___pa7___bit 7 | ||
142 | #define reg_gio_rw_ack_intr_offset 20 | ||
143 | |||
144 | /* Register r_intr, scope gio, type r */ | ||
145 | #define reg_gio_r_intr___pa0___lsb 0 | ||
146 | #define reg_gio_r_intr___pa0___width 1 | ||
147 | #define reg_gio_r_intr___pa0___bit 0 | ||
148 | #define reg_gio_r_intr___pa1___lsb 1 | ||
149 | #define reg_gio_r_intr___pa1___width 1 | ||
150 | #define reg_gio_r_intr___pa1___bit 1 | ||
151 | #define reg_gio_r_intr___pa2___lsb 2 | ||
152 | #define reg_gio_r_intr___pa2___width 1 | ||
153 | #define reg_gio_r_intr___pa2___bit 2 | ||
154 | #define reg_gio_r_intr___pa3___lsb 3 | ||
155 | #define reg_gio_r_intr___pa3___width 1 | ||
156 | #define reg_gio_r_intr___pa3___bit 3 | ||
157 | #define reg_gio_r_intr___pa4___lsb 4 | ||
158 | #define reg_gio_r_intr___pa4___width 1 | ||
159 | #define reg_gio_r_intr___pa4___bit 4 | ||
160 | #define reg_gio_r_intr___pa5___lsb 5 | ||
161 | #define reg_gio_r_intr___pa5___width 1 | ||
162 | #define reg_gio_r_intr___pa5___bit 5 | ||
163 | #define reg_gio_r_intr___pa6___lsb 6 | ||
164 | #define reg_gio_r_intr___pa6___width 1 | ||
165 | #define reg_gio_r_intr___pa6___bit 6 | ||
166 | #define reg_gio_r_intr___pa7___lsb 7 | ||
167 | #define reg_gio_r_intr___pa7___width 1 | ||
168 | #define reg_gio_r_intr___pa7___bit 7 | ||
169 | #define reg_gio_r_intr_offset 24 | ||
170 | |||
171 | /* Register r_masked_intr, scope gio, type r */ | ||
172 | #define reg_gio_r_masked_intr___pa0___lsb 0 | ||
173 | #define reg_gio_r_masked_intr___pa0___width 1 | ||
174 | #define reg_gio_r_masked_intr___pa0___bit 0 | ||
175 | #define reg_gio_r_masked_intr___pa1___lsb 1 | ||
176 | #define reg_gio_r_masked_intr___pa1___width 1 | ||
177 | #define reg_gio_r_masked_intr___pa1___bit 1 | ||
178 | #define reg_gio_r_masked_intr___pa2___lsb 2 | ||
179 | #define reg_gio_r_masked_intr___pa2___width 1 | ||
180 | #define reg_gio_r_masked_intr___pa2___bit 2 | ||
181 | #define reg_gio_r_masked_intr___pa3___lsb 3 | ||
182 | #define reg_gio_r_masked_intr___pa3___width 1 | ||
183 | #define reg_gio_r_masked_intr___pa3___bit 3 | ||
184 | #define reg_gio_r_masked_intr___pa4___lsb 4 | ||
185 | #define reg_gio_r_masked_intr___pa4___width 1 | ||
186 | #define reg_gio_r_masked_intr___pa4___bit 4 | ||
187 | #define reg_gio_r_masked_intr___pa5___lsb 5 | ||
188 | #define reg_gio_r_masked_intr___pa5___width 1 | ||
189 | #define reg_gio_r_masked_intr___pa5___bit 5 | ||
190 | #define reg_gio_r_masked_intr___pa6___lsb 6 | ||
191 | #define reg_gio_r_masked_intr___pa6___width 1 | ||
192 | #define reg_gio_r_masked_intr___pa6___bit 6 | ||
193 | #define reg_gio_r_masked_intr___pa7___lsb 7 | ||
194 | #define reg_gio_r_masked_intr___pa7___width 1 | ||
195 | #define reg_gio_r_masked_intr___pa7___bit 7 | ||
196 | #define reg_gio_r_masked_intr_offset 28 | ||
197 | |||
198 | /* Register rw_pb_dout, scope gio, type rw */ | ||
199 | #define reg_gio_rw_pb_dout___data___lsb 0 | ||
200 | #define reg_gio_rw_pb_dout___data___width 18 | ||
201 | #define reg_gio_rw_pb_dout_offset 32 | ||
202 | |||
203 | /* Register r_pb_din, scope gio, type r */ | ||
204 | #define reg_gio_r_pb_din___data___lsb 0 | ||
205 | #define reg_gio_r_pb_din___data___width 18 | ||
206 | #define reg_gio_r_pb_din_offset 36 | ||
207 | |||
208 | /* Register rw_pb_oe, scope gio, type rw */ | ||
209 | #define reg_gio_rw_pb_oe___oe___lsb 0 | ||
210 | #define reg_gio_rw_pb_oe___oe___width 18 | ||
211 | #define reg_gio_rw_pb_oe_offset 40 | ||
212 | |||
213 | /* Register rw_pc_dout, scope gio, type rw */ | ||
214 | #define reg_gio_rw_pc_dout___data___lsb 0 | ||
215 | #define reg_gio_rw_pc_dout___data___width 18 | ||
216 | #define reg_gio_rw_pc_dout_offset 48 | ||
217 | |||
218 | /* Register r_pc_din, scope gio, type r */ | ||
219 | #define reg_gio_r_pc_din___data___lsb 0 | ||
220 | #define reg_gio_r_pc_din___data___width 18 | ||
221 | #define reg_gio_r_pc_din_offset 52 | ||
222 | |||
223 | /* Register rw_pc_oe, scope gio, type rw */ | ||
224 | #define reg_gio_rw_pc_oe___oe___lsb 0 | ||
225 | #define reg_gio_rw_pc_oe___oe___width 18 | ||
226 | #define reg_gio_rw_pc_oe_offset 56 | ||
227 | |||
228 | /* Register rw_pd_dout, scope gio, type rw */ | ||
229 | #define reg_gio_rw_pd_dout___data___lsb 0 | ||
230 | #define reg_gio_rw_pd_dout___data___width 18 | ||
231 | #define reg_gio_rw_pd_dout_offset 64 | ||
232 | |||
233 | /* Register r_pd_din, scope gio, type r */ | ||
234 | #define reg_gio_r_pd_din___data___lsb 0 | ||
235 | #define reg_gio_r_pd_din___data___width 18 | ||
236 | #define reg_gio_r_pd_din_offset 68 | ||
237 | |||
238 | /* Register rw_pd_oe, scope gio, type rw */ | ||
239 | #define reg_gio_rw_pd_oe___oe___lsb 0 | ||
240 | #define reg_gio_rw_pd_oe___oe___width 18 | ||
241 | #define reg_gio_rw_pd_oe_offset 72 | ||
242 | |||
243 | /* Register rw_pe_dout, scope gio, type rw */ | ||
244 | #define reg_gio_rw_pe_dout___data___lsb 0 | ||
245 | #define reg_gio_rw_pe_dout___data___width 18 | ||
246 | #define reg_gio_rw_pe_dout_offset 80 | ||
247 | |||
248 | /* Register r_pe_din, scope gio, type r */ | ||
249 | #define reg_gio_r_pe_din___data___lsb 0 | ||
250 | #define reg_gio_r_pe_din___data___width 18 | ||
251 | #define reg_gio_r_pe_din_offset 84 | ||
252 | |||
253 | /* Register rw_pe_oe, scope gio, type rw */ | ||
254 | #define reg_gio_rw_pe_oe___oe___lsb 0 | ||
255 | #define reg_gio_rw_pe_oe___oe___width 18 | ||
256 | #define reg_gio_rw_pe_oe_offset 88 | ||
257 | |||
258 | |||
259 | /* Constants */ | ||
260 | #define regk_gio_anyedge 0x00000007 | ||
261 | #define regk_gio_hi 0x00000001 | ||
262 | #define regk_gio_lo 0x00000002 | ||
263 | #define regk_gio_negedge 0x00000006 | ||
264 | #define regk_gio_no 0x00000000 | ||
265 | #define regk_gio_off 0x00000000 | ||
266 | #define regk_gio_posedge 0x00000005 | ||
267 | #define regk_gio_rw_intr_cfg_default 0x00000000 | ||
268 | #define regk_gio_rw_intr_mask_default 0x00000000 | ||
269 | #define regk_gio_rw_pa_oe_default 0x00000000 | ||
270 | #define regk_gio_rw_pb_oe_default 0x00000000 | ||
271 | #define regk_gio_rw_pc_oe_default 0x00000000 | ||
272 | #define regk_gio_rw_pd_oe_default 0x00000000 | ||
273 | #define regk_gio_rw_pe_oe_default 0x00000000 | ||
274 | #define regk_gio_set 0x00000003 | ||
275 | #define regk_gio_yes 0x00000001 | ||
276 | #endif /* __gio_defs_asm_h */ | ||
diff --git a/arch/cris/include/arch-v32/mach-fs/mach/hwregs/asm/pinmux_defs_asm.h b/arch/cris/include/arch-v32/mach-fs/mach/hwregs/asm/pinmux_defs_asm.h new file mode 100644 index 000000000000..30cf5a936b64 --- /dev/null +++ b/arch/cris/include/arch-v32/mach-fs/mach/hwregs/asm/pinmux_defs_asm.h | |||
@@ -0,0 +1,632 @@ | |||
1 | #ifndef __pinmux_defs_asm_h | ||
2 | #define __pinmux_defs_asm_h | ||
3 | |||
4 | /* | ||
5 | * This file is autogenerated from | ||
6 | * file: ../../inst/pinmux/rtl/guinness/pinmux_regs.r | ||
7 | * id: pinmux_regs.r,v 1.40 2005/02/09 16:22:59 perz Exp | ||
8 | * last modfied: Mon Apr 11 16:09:11 2005 | ||
9 | * | ||
10 | * by /n/asic/design/tools/rdesc/src/rdes2c -asm --outfile asm/pinmux_defs_asm.h ../../inst/pinmux/rtl/guinness/pinmux_regs.r | ||
11 | * id: $Id: pinmux_defs_asm.h,v 1.1 2007/04/11 11:00:39 ricardw Exp $ | ||
12 | * Any changes here will be lost. | ||
13 | * | ||
14 | * -*- buffer-read-only: t -*- | ||
15 | */ | ||
16 | |||
17 | #ifndef REG_FIELD | ||
18 | #define REG_FIELD( scope, reg, field, value ) \ | ||
19 | REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) | ||
20 | #define REG_FIELD_X_( value, shift ) ((value) << shift) | ||
21 | #endif | ||
22 | |||
23 | #ifndef REG_STATE | ||
24 | #define REG_STATE( scope, reg, field, symbolic_value ) \ | ||
25 | REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) | ||
26 | #define REG_STATE_X_( k, shift ) (k << shift) | ||
27 | #endif | ||
28 | |||
29 | #ifndef REG_MASK | ||
30 | #define REG_MASK( scope, reg, field ) \ | ||
31 | REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) | ||
32 | #define REG_MASK_X_( width, lsb ) (((1 << width)-1) << lsb) | ||
33 | #endif | ||
34 | |||
35 | #ifndef REG_LSB | ||
36 | #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb | ||
37 | #endif | ||
38 | |||
39 | #ifndef REG_BIT | ||
40 | #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit | ||
41 | #endif | ||
42 | |||
43 | #ifndef REG_ADDR | ||
44 | #define REG_ADDR( scope, inst, reg ) REG_ADDR_X_(inst, reg_##scope##_##reg##_offset) | ||
45 | #define REG_ADDR_X_( inst, offs ) ((inst) + offs) | ||
46 | #endif | ||
47 | |||
48 | #ifndef REG_ADDR_VECT | ||
49 | #define REG_ADDR_VECT( scope, inst, reg, index ) \ | ||
50 | REG_ADDR_VECT_X_(inst, reg_##scope##_##reg##_offset, index, \ | ||
51 | STRIDE_##scope##_##reg ) | ||
52 | #define REG_ADDR_VECT_X_( inst, offs, index, stride ) \ | ||
53 | ((inst) + offs + (index) * stride) | ||
54 | #endif | ||
55 | |||
56 | /* Register rw_pa, scope pinmux, type rw */ | ||
57 | #define reg_pinmux_rw_pa___pa0___lsb 0 | ||
58 | #define reg_pinmux_rw_pa___pa0___width 1 | ||
59 | #define reg_pinmux_rw_pa___pa0___bit 0 | ||
60 | #define reg_pinmux_rw_pa___pa1___lsb 1 | ||
61 | #define reg_pinmux_rw_pa___pa1___width 1 | ||
62 | #define reg_pinmux_rw_pa___pa1___bit 1 | ||
63 | #define reg_pinmux_rw_pa___pa2___lsb 2 | ||
64 | #define reg_pinmux_rw_pa___pa2___width 1 | ||
65 | #define reg_pinmux_rw_pa___pa2___bit 2 | ||
66 | #define reg_pinmux_rw_pa___pa3___lsb 3 | ||
67 | #define reg_pinmux_rw_pa___pa3___width 1 | ||
68 | #define reg_pinmux_rw_pa___pa3___bit 3 | ||
69 | #define reg_pinmux_rw_pa___pa4___lsb 4 | ||
70 | #define reg_pinmux_rw_pa___pa4___width 1 | ||
71 | #define reg_pinmux_rw_pa___pa4___bit 4 | ||
72 | #define reg_pinmux_rw_pa___pa5___lsb 5 | ||
73 | #define reg_pinmux_rw_pa___pa5___width 1 | ||
74 | #define reg_pinmux_rw_pa___pa5___bit 5 | ||
75 | #define reg_pinmux_rw_pa___pa6___lsb 6 | ||
76 | #define reg_pinmux_rw_pa___pa6___width 1 | ||
77 | #define reg_pinmux_rw_pa___pa6___bit 6 | ||
78 | #define reg_pinmux_rw_pa___pa7___lsb 7 | ||
79 | #define reg_pinmux_rw_pa___pa7___width 1 | ||
80 | #define reg_pinmux_rw_pa___pa7___bit 7 | ||
81 | #define reg_pinmux_rw_pa___csp2_n___lsb 8 | ||
82 | #define reg_pinmux_rw_pa___csp2_n___width 1 | ||
83 | #define reg_pinmux_rw_pa___csp2_n___bit 8 | ||
84 | #define reg_pinmux_rw_pa___csp3_n___lsb 9 | ||
85 | #define reg_pinmux_rw_pa___csp3_n___width 1 | ||
86 | #define reg_pinmux_rw_pa___csp3_n___bit 9 | ||
87 | #define reg_pinmux_rw_pa___csp5_n___lsb 10 | ||
88 | #define reg_pinmux_rw_pa___csp5_n___width 1 | ||
89 | #define reg_pinmux_rw_pa___csp5_n___bit 10 | ||
90 | #define reg_pinmux_rw_pa___csp6_n___lsb 11 | ||
91 | #define reg_pinmux_rw_pa___csp6_n___width 1 | ||
92 | #define reg_pinmux_rw_pa___csp6_n___bit 11 | ||
93 | #define reg_pinmux_rw_pa___hsh4___lsb 12 | ||
94 | #define reg_pinmux_rw_pa___hsh4___width 1 | ||
95 | #define reg_pinmux_rw_pa___hsh4___bit 12 | ||
96 | #define reg_pinmux_rw_pa___hsh5___lsb 13 | ||
97 | #define reg_pinmux_rw_pa___hsh5___width 1 | ||
98 | #define reg_pinmux_rw_pa___hsh5___bit 13 | ||
99 | #define reg_pinmux_rw_pa___hsh6___lsb 14 | ||
100 | #define reg_pinmux_rw_pa___hsh6___width 1 | ||
101 | #define reg_pinmux_rw_pa___hsh6___bit 14 | ||
102 | #define reg_pinmux_rw_pa___hsh7___lsb 15 | ||
103 | #define reg_pinmux_rw_pa___hsh7___width 1 | ||
104 | #define reg_pinmux_rw_pa___hsh7___bit 15 | ||
105 | #define reg_pinmux_rw_pa_offset 0 | ||
106 | |||
107 | /* Register rw_hwprot, scope pinmux, type rw */ | ||
108 | #define reg_pinmux_rw_hwprot___ser1___lsb 0 | ||
109 | #define reg_pinmux_rw_hwprot___ser1___width 1 | ||
110 | #define reg_pinmux_rw_hwprot___ser1___bit 0 | ||
111 | #define reg_pinmux_rw_hwprot___ser2___lsb 1 | ||
112 | #define reg_pinmux_rw_hwprot___ser2___width 1 | ||
113 | #define reg_pinmux_rw_hwprot___ser2___bit 1 | ||
114 | #define reg_pinmux_rw_hwprot___ser3___lsb 2 | ||
115 | #define reg_pinmux_rw_hwprot___ser3___width 1 | ||
116 | #define reg_pinmux_rw_hwprot___ser3___bit 2 | ||
117 | #define reg_pinmux_rw_hwprot___sser0___lsb 3 | ||
118 | #define reg_pinmux_rw_hwprot___sser0___width 1 | ||
119 | #define reg_pinmux_rw_hwprot___sser0___bit 3 | ||
120 | #define reg_pinmux_rw_hwprot___sser1___lsb 4 | ||
121 | #define reg_pinmux_rw_hwprot___sser1___width 1 | ||
122 | #define reg_pinmux_rw_hwprot___sser1___bit 4 | ||
123 | #define reg_pinmux_rw_hwprot___ata0___lsb 5 | ||
124 | #define reg_pinmux_rw_hwprot___ata0___width 1 | ||
125 | #define reg_pinmux_rw_hwprot___ata0___bit 5 | ||
126 | #define reg_pinmux_rw_hwprot___ata1___lsb 6 | ||
127 | #define reg_pinmux_rw_hwprot___ata1___width 1 | ||
128 | #define reg_pinmux_rw_hwprot___ata1___bit 6 | ||
129 | #define reg_pinmux_rw_hwprot___ata2___lsb 7 | ||
130 | #define reg_pinmux_rw_hwprot___ata2___width 1 | ||
131 | #define reg_pinmux_rw_hwprot___ata2___bit 7 | ||
132 | #define reg_pinmux_rw_hwprot___ata3___lsb 8 | ||
133 | #define reg_pinmux_rw_hwprot___ata3___width 1 | ||
134 | #define reg_pinmux_rw_hwprot___ata3___bit 8 | ||
135 | #define reg_pinmux_rw_hwprot___ata___lsb 9 | ||
136 | #define reg_pinmux_rw_hwprot___ata___width 1 | ||
137 | #define reg_pinmux_rw_hwprot___ata___bit 9 | ||
138 | #define reg_pinmux_rw_hwprot___eth1___lsb 10 | ||
139 | #define reg_pinmux_rw_hwprot___eth1___width 1 | ||
140 | #define reg_pinmux_rw_hwprot___eth1___bit 10 | ||
141 | #define reg_pinmux_rw_hwprot___eth1_mgm___lsb 11 | ||
142 | #define reg_pinmux_rw_hwprot___eth1_mgm___width 1 | ||
143 | #define reg_pinmux_rw_hwprot___eth1_mgm___bit 11 | ||
144 | #define reg_pinmux_rw_hwprot___timer___lsb 12 | ||
145 | #define reg_pinmux_rw_hwprot___timer___width 1 | ||
146 | #define reg_pinmux_rw_hwprot___timer___bit 12 | ||
147 | #define reg_pinmux_rw_hwprot___p21___lsb 13 | ||
148 | #define reg_pinmux_rw_hwprot___p21___width 1 | ||
149 | #define reg_pinmux_rw_hwprot___p21___bit 13 | ||
150 | #define reg_pinmux_rw_hwprot_offset 4 | ||
151 | |||
152 | /* Register rw_pb_gio, scope pinmux, type rw */ | ||
153 | #define reg_pinmux_rw_pb_gio___pb0___lsb 0 | ||
154 | #define reg_pinmux_rw_pb_gio___pb0___width 1 | ||
155 | #define reg_pinmux_rw_pb_gio___pb0___bit 0 | ||
156 | #define reg_pinmux_rw_pb_gio___pb1___lsb 1 | ||
157 | #define reg_pinmux_rw_pb_gio___pb1___width 1 | ||
158 | #define reg_pinmux_rw_pb_gio___pb1___bit 1 | ||
159 | #define reg_pinmux_rw_pb_gio___pb2___lsb 2 | ||
160 | #define reg_pinmux_rw_pb_gio___pb2___width 1 | ||
161 | #define reg_pinmux_rw_pb_gio___pb2___bit 2 | ||
162 | #define reg_pinmux_rw_pb_gio___pb3___lsb 3 | ||
163 | #define reg_pinmux_rw_pb_gio___pb3___width 1 | ||
164 | #define reg_pinmux_rw_pb_gio___pb3___bit 3 | ||
165 | #define reg_pinmux_rw_pb_gio___pb4___lsb 4 | ||
166 | #define reg_pinmux_rw_pb_gio___pb4___width 1 | ||
167 | #define reg_pinmux_rw_pb_gio___pb4___bit 4 | ||
168 | #define reg_pinmux_rw_pb_gio___pb5___lsb 5 | ||
169 | #define reg_pinmux_rw_pb_gio___pb5___width 1 | ||
170 | #define reg_pinmux_rw_pb_gio___pb5___bit 5 | ||
171 | #define reg_pinmux_rw_pb_gio___pb6___lsb 6 | ||
172 | #define reg_pinmux_rw_pb_gio___pb6___width 1 | ||
173 | #define reg_pinmux_rw_pb_gio___pb6___bit 6 | ||
174 | #define reg_pinmux_rw_pb_gio___pb7___lsb 7 | ||
175 | #define reg_pinmux_rw_pb_gio___pb7___width 1 | ||
176 | #define reg_pinmux_rw_pb_gio___pb7___bit 7 | ||
177 | #define reg_pinmux_rw_pb_gio___pb8___lsb 8 | ||
178 | #define reg_pinmux_rw_pb_gio___pb8___width 1 | ||
179 | #define reg_pinmux_rw_pb_gio___pb8___bit 8 | ||
180 | #define reg_pinmux_rw_pb_gio___pb9___lsb 9 | ||
181 | #define reg_pinmux_rw_pb_gio___pb9___width 1 | ||
182 | #define reg_pinmux_rw_pb_gio___pb9___bit 9 | ||
183 | #define reg_pinmux_rw_pb_gio___pb10___lsb 10 | ||
184 | #define reg_pinmux_rw_pb_gio___pb10___width 1 | ||
185 | #define reg_pinmux_rw_pb_gio___pb10___bit 10 | ||
186 | #define reg_pinmux_rw_pb_gio___pb11___lsb 11 | ||
187 | #define reg_pinmux_rw_pb_gio___pb11___width 1 | ||
188 | #define reg_pinmux_rw_pb_gio___pb11___bit 11 | ||
189 | #define reg_pinmux_rw_pb_gio___pb12___lsb 12 | ||
190 | #define reg_pinmux_rw_pb_gio___pb12___width 1 | ||
191 | #define reg_pinmux_rw_pb_gio___pb12___bit 12 | ||
192 | #define reg_pinmux_rw_pb_gio___pb13___lsb 13 | ||
193 | #define reg_pinmux_rw_pb_gio___pb13___width 1 | ||
194 | #define reg_pinmux_rw_pb_gio___pb13___bit 13 | ||
195 | #define reg_pinmux_rw_pb_gio___pb14___lsb 14 | ||
196 | #define reg_pinmux_rw_pb_gio___pb14___width 1 | ||
197 | #define reg_pinmux_rw_pb_gio___pb14___bit 14 | ||
198 | #define reg_pinmux_rw_pb_gio___pb15___lsb 15 | ||
199 | #define reg_pinmux_rw_pb_gio___pb15___width 1 | ||
200 | #define reg_pinmux_rw_pb_gio___pb15___bit 15 | ||
201 | #define reg_pinmux_rw_pb_gio___pb16___lsb 16 | ||
202 | #define reg_pinmux_rw_pb_gio___pb16___width 1 | ||
203 | #define reg_pinmux_rw_pb_gio___pb16___bit 16 | ||
204 | #define reg_pinmux_rw_pb_gio___pb17___lsb 17 | ||
205 | #define reg_pinmux_rw_pb_gio___pb17___width 1 | ||
206 | #define reg_pinmux_rw_pb_gio___pb17___bit 17 | ||
207 | #define reg_pinmux_rw_pb_gio_offset 8 | ||
208 | |||
209 | /* Register rw_pb_iop, scope pinmux, type rw */ | ||
210 | #define reg_pinmux_rw_pb_iop___pb0___lsb 0 | ||
211 | #define reg_pinmux_rw_pb_iop___pb0___width 1 | ||
212 | #define reg_pinmux_rw_pb_iop___pb0___bit 0 | ||
213 | #define reg_pinmux_rw_pb_iop___pb1___lsb 1 | ||
214 | #define reg_pinmux_rw_pb_iop___pb1___width 1 | ||
215 | #define reg_pinmux_rw_pb_iop___pb1___bit 1 | ||
216 | #define reg_pinmux_rw_pb_iop___pb2___lsb 2 | ||
217 | #define reg_pinmux_rw_pb_iop___pb2___width 1 | ||
218 | #define reg_pinmux_rw_pb_iop___pb2___bit 2 | ||
219 | #define reg_pinmux_rw_pb_iop___pb3___lsb 3 | ||
220 | #define reg_pinmux_rw_pb_iop___pb3___width 1 | ||
221 | #define reg_pinmux_rw_pb_iop___pb3___bit 3 | ||
222 | #define reg_pinmux_rw_pb_iop___pb4___lsb 4 | ||
223 | #define reg_pinmux_rw_pb_iop___pb4___width 1 | ||
224 | #define reg_pinmux_rw_pb_iop___pb4___bit 4 | ||
225 | #define reg_pinmux_rw_pb_iop___pb5___lsb 5 | ||
226 | #define reg_pinmux_rw_pb_iop___pb5___width 1 | ||
227 | #define reg_pinmux_rw_pb_iop___pb5___bit 5 | ||
228 | #define reg_pinmux_rw_pb_iop___pb6___lsb 6 | ||
229 | #define reg_pinmux_rw_pb_iop___pb6___width 1 | ||
230 | #define reg_pinmux_rw_pb_iop___pb6___bit 6 | ||
231 | #define reg_pinmux_rw_pb_iop___pb7___lsb 7 | ||
232 | #define reg_pinmux_rw_pb_iop___pb7___width 1 | ||
233 | #define reg_pinmux_rw_pb_iop___pb7___bit 7 | ||
234 | #define reg_pinmux_rw_pb_iop___pb8___lsb 8 | ||
235 | #define reg_pinmux_rw_pb_iop___pb8___width 1 | ||
236 | #define reg_pinmux_rw_pb_iop___pb8___bit 8 | ||
237 | #define reg_pinmux_rw_pb_iop___pb9___lsb 9 | ||
238 | #define reg_pinmux_rw_pb_iop___pb9___width 1 | ||
239 | #define reg_pinmux_rw_pb_iop___pb9___bit 9 | ||
240 | #define reg_pinmux_rw_pb_iop___pb10___lsb 10 | ||
241 | #define reg_pinmux_rw_pb_iop___pb10___width 1 | ||
242 | #define reg_pinmux_rw_pb_iop___pb10___bit 10 | ||
243 | #define reg_pinmux_rw_pb_iop___pb11___lsb 11 | ||
244 | #define reg_pinmux_rw_pb_iop___pb11___width 1 | ||
245 | #define reg_pinmux_rw_pb_iop___pb11___bit 11 | ||
246 | #define reg_pinmux_rw_pb_iop___pb12___lsb 12 | ||
247 | #define reg_pinmux_rw_pb_iop___pb12___width 1 | ||
248 | #define reg_pinmux_rw_pb_iop___pb12___bit 12 | ||
249 | #define reg_pinmux_rw_pb_iop___pb13___lsb 13 | ||
250 | #define reg_pinmux_rw_pb_iop___pb13___width 1 | ||
251 | #define reg_pinmux_rw_pb_iop___pb13___bit 13 | ||
252 | #define reg_pinmux_rw_pb_iop___pb14___lsb 14 | ||
253 | #define reg_pinmux_rw_pb_iop___pb14___width 1 | ||
254 | #define reg_pinmux_rw_pb_iop___pb14___bit 14 | ||
255 | #define reg_pinmux_rw_pb_iop___pb15___lsb 15 | ||
256 | #define reg_pinmux_rw_pb_iop___pb15___width 1 | ||
257 | #define reg_pinmux_rw_pb_iop___pb15___bit 15 | ||
258 | #define reg_pinmux_rw_pb_iop___pb16___lsb 16 | ||
259 | #define reg_pinmux_rw_pb_iop___pb16___width 1 | ||
260 | #define reg_pinmux_rw_pb_iop___pb16___bit 16 | ||
261 | #define reg_pinmux_rw_pb_iop___pb17___lsb 17 | ||
262 | #define reg_pinmux_rw_pb_iop___pb17___width 1 | ||
263 | #define reg_pinmux_rw_pb_iop___pb17___bit 17 | ||
264 | #define reg_pinmux_rw_pb_iop_offset 12 | ||
265 | |||
266 | /* Register rw_pc_gio, scope pinmux, type rw */ | ||
267 | #define reg_pinmux_rw_pc_gio___pc0___lsb 0 | ||
268 | #define reg_pinmux_rw_pc_gio___pc0___width 1 | ||
269 | #define reg_pinmux_rw_pc_gio___pc0___bit 0 | ||
270 | #define reg_pinmux_rw_pc_gio___pc1___lsb 1 | ||
271 | #define reg_pinmux_rw_pc_gio___pc1___width 1 | ||
272 | #define reg_pinmux_rw_pc_gio___pc1___bit 1 | ||
273 | #define reg_pinmux_rw_pc_gio___pc2___lsb 2 | ||
274 | #define reg_pinmux_rw_pc_gio___pc2___width 1 | ||
275 | #define reg_pinmux_rw_pc_gio___pc2___bit 2 | ||
276 | #define reg_pinmux_rw_pc_gio___pc3___lsb 3 | ||
277 | #define reg_pinmux_rw_pc_gio___pc3___width 1 | ||
278 | #define reg_pinmux_rw_pc_gio___pc3___bit 3 | ||
279 | #define reg_pinmux_rw_pc_gio___pc4___lsb 4 | ||
280 | #define reg_pinmux_rw_pc_gio___pc4___width 1 | ||
281 | #define reg_pinmux_rw_pc_gio___pc4___bit 4 | ||
282 | #define reg_pinmux_rw_pc_gio___pc5___lsb 5 | ||
283 | #define reg_pinmux_rw_pc_gio___pc5___width 1 | ||
284 | #define reg_pinmux_rw_pc_gio___pc5___bit 5 | ||
285 | #define reg_pinmux_rw_pc_gio___pc6___lsb 6 | ||
286 | #define reg_pinmux_rw_pc_gio___pc6___width 1 | ||
287 | #define reg_pinmux_rw_pc_gio___pc6___bit 6 | ||
288 | #define reg_pinmux_rw_pc_gio___pc7___lsb 7 | ||
289 | #define reg_pinmux_rw_pc_gio___pc7___width 1 | ||
290 | #define reg_pinmux_rw_pc_gio___pc7___bit 7 | ||
291 | #define reg_pinmux_rw_pc_gio___pc8___lsb 8 | ||
292 | #define reg_pinmux_rw_pc_gio___pc8___width 1 | ||
293 | #define reg_pinmux_rw_pc_gio___pc8___bit 8 | ||
294 | #define reg_pinmux_rw_pc_gio___pc9___lsb 9 | ||
295 | #define reg_pinmux_rw_pc_gio___pc9___width 1 | ||
296 | #define reg_pinmux_rw_pc_gio___pc9___bit 9 | ||
297 | #define reg_pinmux_rw_pc_gio___pc10___lsb 10 | ||
298 | #define reg_pinmux_rw_pc_gio___pc10___width 1 | ||
299 | #define reg_pinmux_rw_pc_gio___pc10___bit 10 | ||
300 | #define reg_pinmux_rw_pc_gio___pc11___lsb 11 | ||
301 | #define reg_pinmux_rw_pc_gio___pc11___width 1 | ||
302 | #define reg_pinmux_rw_pc_gio___pc11___bit 11 | ||
303 | #define reg_pinmux_rw_pc_gio___pc12___lsb 12 | ||
304 | #define reg_pinmux_rw_pc_gio___pc12___width 1 | ||
305 | #define reg_pinmux_rw_pc_gio___pc12___bit 12 | ||
306 | #define reg_pinmux_rw_pc_gio___pc13___lsb 13 | ||
307 | #define reg_pinmux_rw_pc_gio___pc13___width 1 | ||
308 | #define reg_pinmux_rw_pc_gio___pc13___bit 13 | ||
309 | #define reg_pinmux_rw_pc_gio___pc14___lsb 14 | ||
310 | #define reg_pinmux_rw_pc_gio___pc14___width 1 | ||
311 | #define reg_pinmux_rw_pc_gio___pc14___bit 14 | ||
312 | #define reg_pinmux_rw_pc_gio___pc15___lsb 15 | ||
313 | #define reg_pinmux_rw_pc_gio___pc15___width 1 | ||
314 | #define reg_pinmux_rw_pc_gio___pc15___bit 15 | ||
315 | #define reg_pinmux_rw_pc_gio___pc16___lsb 16 | ||
316 | #define reg_pinmux_rw_pc_gio___pc16___width 1 | ||
317 | #define reg_pinmux_rw_pc_gio___pc16___bit 16 | ||
318 | #define reg_pinmux_rw_pc_gio___pc17___lsb 17 | ||
319 | #define reg_pinmux_rw_pc_gio___pc17___width 1 | ||
320 | #define reg_pinmux_rw_pc_gio___pc17___bit 17 | ||
321 | #define reg_pinmux_rw_pc_gio_offset 16 | ||
322 | |||
323 | /* Register rw_pc_iop, scope pinmux, type rw */ | ||
324 | #define reg_pinmux_rw_pc_iop___pc0___lsb 0 | ||
325 | #define reg_pinmux_rw_pc_iop___pc0___width 1 | ||
326 | #define reg_pinmux_rw_pc_iop___pc0___bit 0 | ||
327 | #define reg_pinmux_rw_pc_iop___pc1___lsb 1 | ||
328 | #define reg_pinmux_rw_pc_iop___pc1___width 1 | ||
329 | #define reg_pinmux_rw_pc_iop___pc1___bit 1 | ||
330 | #define reg_pinmux_rw_pc_iop___pc2___lsb 2 | ||
331 | #define reg_pinmux_rw_pc_iop___pc2___width 1 | ||
332 | #define reg_pinmux_rw_pc_iop___pc2___bit 2 | ||
333 | #define reg_pinmux_rw_pc_iop___pc3___lsb 3 | ||
334 | #define reg_pinmux_rw_pc_iop___pc3___width 1 | ||
335 | #define reg_pinmux_rw_pc_iop___pc3___bit 3 | ||
336 | #define reg_pinmux_rw_pc_iop___pc4___lsb 4 | ||
337 | #define reg_pinmux_rw_pc_iop___pc4___width 1 | ||
338 | #define reg_pinmux_rw_pc_iop___pc4___bit 4 | ||
339 | #define reg_pinmux_rw_pc_iop___pc5___lsb 5 | ||
340 | #define reg_pinmux_rw_pc_iop___pc5___width 1 | ||
341 | #define reg_pinmux_rw_pc_iop___pc5___bit 5 | ||
342 | #define reg_pinmux_rw_pc_iop___pc6___lsb 6 | ||
343 | #define reg_pinmux_rw_pc_iop___pc6___width 1 | ||
344 | #define reg_pinmux_rw_pc_iop___pc6___bit 6 | ||
345 | #define reg_pinmux_rw_pc_iop___pc7___lsb 7 | ||
346 | #define reg_pinmux_rw_pc_iop___pc7___width 1 | ||
347 | #define reg_pinmux_rw_pc_iop___pc7___bit 7 | ||
348 | #define reg_pinmux_rw_pc_iop___pc8___lsb 8 | ||
349 | #define reg_pinmux_rw_pc_iop___pc8___width 1 | ||
350 | #define reg_pinmux_rw_pc_iop___pc8___bit 8 | ||
351 | #define reg_pinmux_rw_pc_iop___pc9___lsb 9 | ||
352 | #define reg_pinmux_rw_pc_iop___pc9___width 1 | ||
353 | #define reg_pinmux_rw_pc_iop___pc9___bit 9 | ||
354 | #define reg_pinmux_rw_pc_iop___pc10___lsb 10 | ||
355 | #define reg_pinmux_rw_pc_iop___pc10___width 1 | ||
356 | #define reg_pinmux_rw_pc_iop___pc10___bit 10 | ||
357 | #define reg_pinmux_rw_pc_iop___pc11___lsb 11 | ||
358 | #define reg_pinmux_rw_pc_iop___pc11___width 1 | ||
359 | #define reg_pinmux_rw_pc_iop___pc11___bit 11 | ||
360 | #define reg_pinmux_rw_pc_iop___pc12___lsb 12 | ||
361 | #define reg_pinmux_rw_pc_iop___pc12___width 1 | ||
362 | #define reg_pinmux_rw_pc_iop___pc12___bit 12 | ||
363 | #define reg_pinmux_rw_pc_iop___pc13___lsb 13 | ||
364 | #define reg_pinmux_rw_pc_iop___pc13___width 1 | ||
365 | #define reg_pinmux_rw_pc_iop___pc13___bit 13 | ||
366 | #define reg_pinmux_rw_pc_iop___pc14___lsb 14 | ||
367 | #define reg_pinmux_rw_pc_iop___pc14___width 1 | ||
368 | #define reg_pinmux_rw_pc_iop___pc14___bit 14 | ||
369 | #define reg_pinmux_rw_pc_iop___pc15___lsb 15 | ||
370 | #define reg_pinmux_rw_pc_iop___pc15___width 1 | ||
371 | #define reg_pinmux_rw_pc_iop___pc15___bit 15 | ||
372 | #define reg_pinmux_rw_pc_iop___pc16___lsb 16 | ||
373 | #define reg_pinmux_rw_pc_iop___pc16___width 1 | ||
374 | #define reg_pinmux_rw_pc_iop___pc16___bit 16 | ||
375 | #define reg_pinmux_rw_pc_iop___pc17___lsb 17 | ||
376 | #define reg_pinmux_rw_pc_iop___pc17___width 1 | ||
377 | #define reg_pinmux_rw_pc_iop___pc17___bit 17 | ||
378 | #define reg_pinmux_rw_pc_iop_offset 20 | ||
379 | |||
380 | /* Register rw_pd_gio, scope pinmux, type rw */ | ||
381 | #define reg_pinmux_rw_pd_gio___pd0___lsb 0 | ||
382 | #define reg_pinmux_rw_pd_gio___pd0___width 1 | ||
383 | #define reg_pinmux_rw_pd_gio___pd0___bit 0 | ||
384 | #define reg_pinmux_rw_pd_gio___pd1___lsb 1 | ||
385 | #define reg_pinmux_rw_pd_gio___pd1___width 1 | ||
386 | #define reg_pinmux_rw_pd_gio___pd1___bit 1 | ||
387 | #define reg_pinmux_rw_pd_gio___pd2___lsb 2 | ||
388 | #define reg_pinmux_rw_pd_gio___pd2___width 1 | ||
389 | #define reg_pinmux_rw_pd_gio___pd2___bit 2 | ||
390 | #define reg_pinmux_rw_pd_gio___pd3___lsb 3 | ||
391 | #define reg_pinmux_rw_pd_gio___pd3___width 1 | ||
392 | #define reg_pinmux_rw_pd_gio___pd3___bit 3 | ||
393 | #define reg_pinmux_rw_pd_gio___pd4___lsb 4 | ||
394 | #define reg_pinmux_rw_pd_gio___pd4___width 1 | ||
395 | #define reg_pinmux_rw_pd_gio___pd4___bit 4 | ||
396 | #define reg_pinmux_rw_pd_gio___pd5___lsb 5 | ||
397 | #define reg_pinmux_rw_pd_gio___pd5___width 1 | ||
398 | #define reg_pinmux_rw_pd_gio___pd5___bit 5 | ||
399 | #define reg_pinmux_rw_pd_gio___pd6___lsb 6 | ||
400 | #define reg_pinmux_rw_pd_gio___pd6___width 1 | ||
401 | #define reg_pinmux_rw_pd_gio___pd6___bit 6 | ||
402 | #define reg_pinmux_rw_pd_gio___pd7___lsb 7 | ||
403 | #define reg_pinmux_rw_pd_gio___pd7___width 1 | ||
404 | #define reg_pinmux_rw_pd_gio___pd7___bit 7 | ||
405 | #define reg_pinmux_rw_pd_gio___pd8___lsb 8 | ||
406 | #define reg_pinmux_rw_pd_gio___pd8___width 1 | ||
407 | #define reg_pinmux_rw_pd_gio___pd8___bit 8 | ||
408 | #define reg_pinmux_rw_pd_gio___pd9___lsb 9 | ||
409 | #define reg_pinmux_rw_pd_gio___pd9___width 1 | ||
410 | #define reg_pinmux_rw_pd_gio___pd9___bit 9 | ||
411 | #define reg_pinmux_rw_pd_gio___pd10___lsb 10 | ||
412 | #define reg_pinmux_rw_pd_gio___pd10___width 1 | ||
413 | #define reg_pinmux_rw_pd_gio___pd10___bit 10 | ||
414 | #define reg_pinmux_rw_pd_gio___pd11___lsb 11 | ||
415 | #define reg_pinmux_rw_pd_gio___pd11___width 1 | ||
416 | #define reg_pinmux_rw_pd_gio___pd11___bit 11 | ||
417 | #define reg_pinmux_rw_pd_gio___pd12___lsb 12 | ||
418 | #define reg_pinmux_rw_pd_gio___pd12___width 1 | ||
419 | #define reg_pinmux_rw_pd_gio___pd12___bit 12 | ||
420 | #define reg_pinmux_rw_pd_gio___pd13___lsb 13 | ||
421 | #define reg_pinmux_rw_pd_gio___pd13___width 1 | ||
422 | #define reg_pinmux_rw_pd_gio___pd13___bit 13 | ||
423 | #define reg_pinmux_rw_pd_gio___pd14___lsb 14 | ||
424 | #define reg_pinmux_rw_pd_gio___pd14___width 1 | ||
425 | #define reg_pinmux_rw_pd_gio___pd14___bit 14 | ||
426 | #define reg_pinmux_rw_pd_gio___pd15___lsb 15 | ||
427 | #define reg_pinmux_rw_pd_gio___pd15___width 1 | ||
428 | #define reg_pinmux_rw_pd_gio___pd15___bit 15 | ||
429 | #define reg_pinmux_rw_pd_gio___pd16___lsb 16 | ||
430 | #define reg_pinmux_rw_pd_gio___pd16___width 1 | ||
431 | #define reg_pinmux_rw_pd_gio___pd16___bit 16 | ||
432 | #define reg_pinmux_rw_pd_gio___pd17___lsb 17 | ||
433 | #define reg_pinmux_rw_pd_gio___pd17___width 1 | ||
434 | #define reg_pinmux_rw_pd_gio___pd17___bit 17 | ||
435 | #define reg_pinmux_rw_pd_gio_offset 24 | ||
436 | |||
437 | /* Register rw_pd_iop, scope pinmux, type rw */ | ||
438 | #define reg_pinmux_rw_pd_iop___pd0___lsb 0 | ||
439 | #define reg_pinmux_rw_pd_iop___pd0___width 1 | ||
440 | #define reg_pinmux_rw_pd_iop___pd0___bit 0 | ||
441 | #define reg_pinmux_rw_pd_iop___pd1___lsb 1 | ||
442 | #define reg_pinmux_rw_pd_iop___pd1___width 1 | ||
443 | #define reg_pinmux_rw_pd_iop___pd1___bit 1 | ||
444 | #define reg_pinmux_rw_pd_iop___pd2___lsb 2 | ||
445 | #define reg_pinmux_rw_pd_iop___pd2___width 1 | ||
446 | #define reg_pinmux_rw_pd_iop___pd2___bit 2 | ||
447 | #define reg_pinmux_rw_pd_iop___pd3___lsb 3 | ||
448 | #define reg_pinmux_rw_pd_iop___pd3___width 1 | ||
449 | #define reg_pinmux_rw_pd_iop___pd3___bit 3 | ||
450 | #define reg_pinmux_rw_pd_iop___pd4___lsb 4 | ||
451 | #define reg_pinmux_rw_pd_iop___pd4___width 1 | ||
452 | #define reg_pinmux_rw_pd_iop___pd4___bit 4 | ||
453 | #define reg_pinmux_rw_pd_iop___pd5___lsb 5 | ||
454 | #define reg_pinmux_rw_pd_iop___pd5___width 1 | ||
455 | #define reg_pinmux_rw_pd_iop___pd5___bit 5 | ||
456 | #define reg_pinmux_rw_pd_iop___pd6___lsb 6 | ||
457 | #define reg_pinmux_rw_pd_iop___pd6___width 1 | ||
458 | #define reg_pinmux_rw_pd_iop___pd6___bit 6 | ||
459 | #define reg_pinmux_rw_pd_iop___pd7___lsb 7 | ||
460 | #define reg_pinmux_rw_pd_iop___pd7___width 1 | ||
461 | #define reg_pinmux_rw_pd_iop___pd7___bit 7 | ||
462 | #define reg_pinmux_rw_pd_iop___pd8___lsb 8 | ||
463 | #define reg_pinmux_rw_pd_iop___pd8___width 1 | ||
464 | #define reg_pinmux_rw_pd_iop___pd8___bit 8 | ||
465 | #define reg_pinmux_rw_pd_iop___pd9___lsb 9 | ||
466 | #define reg_pinmux_rw_pd_iop___pd9___width 1 | ||
467 | #define reg_pinmux_rw_pd_iop___pd9___bit 9 | ||
468 | #define reg_pinmux_rw_pd_iop___pd10___lsb 10 | ||
469 | #define reg_pinmux_rw_pd_iop___pd10___width 1 | ||
470 | #define reg_pinmux_rw_pd_iop___pd10___bit 10 | ||
471 | #define reg_pinmux_rw_pd_iop___pd11___lsb 11 | ||
472 | #define reg_pinmux_rw_pd_iop___pd11___width 1 | ||
473 | #define reg_pinmux_rw_pd_iop___pd11___bit 11 | ||
474 | #define reg_pinmux_rw_pd_iop___pd12___lsb 12 | ||
475 | #define reg_pinmux_rw_pd_iop___pd12___width 1 | ||
476 | #define reg_pinmux_rw_pd_iop___pd12___bit 12 | ||
477 | #define reg_pinmux_rw_pd_iop___pd13___lsb 13 | ||
478 | #define reg_pinmux_rw_pd_iop___pd13___width 1 | ||
479 | #define reg_pinmux_rw_pd_iop___pd13___bit 13 | ||
480 | #define reg_pinmux_rw_pd_iop___pd14___lsb 14 | ||
481 | #define reg_pinmux_rw_pd_iop___pd14___width 1 | ||
482 | #define reg_pinmux_rw_pd_iop___pd14___bit 14 | ||
483 | #define reg_pinmux_rw_pd_iop___pd15___lsb 15 | ||
484 | #define reg_pinmux_rw_pd_iop___pd15___width 1 | ||
485 | #define reg_pinmux_rw_pd_iop___pd15___bit 15 | ||
486 | #define reg_pinmux_rw_pd_iop___pd16___lsb 16 | ||
487 | #define reg_pinmux_rw_pd_iop___pd16___width 1 | ||
488 | #define reg_pinmux_rw_pd_iop___pd16___bit 16 | ||
489 | #define reg_pinmux_rw_pd_iop___pd17___lsb 17 | ||
490 | #define reg_pinmux_rw_pd_iop___pd17___width 1 | ||
491 | #define reg_pinmux_rw_pd_iop___pd17___bit 17 | ||
492 | #define reg_pinmux_rw_pd_iop_offset 28 | ||
493 | |||
494 | /* Register rw_pe_gio, scope pinmux, type rw */ | ||
495 | #define reg_pinmux_rw_pe_gio___pe0___lsb 0 | ||
496 | #define reg_pinmux_rw_pe_gio___pe0___width 1 | ||
497 | #define reg_pinmux_rw_pe_gio___pe0___bit 0 | ||
498 | #define reg_pinmux_rw_pe_gio___pe1___lsb 1 | ||
499 | #define reg_pinmux_rw_pe_gio___pe1___width 1 | ||
500 | #define reg_pinmux_rw_pe_gio___pe1___bit 1 | ||
501 | #define reg_pinmux_rw_pe_gio___pe2___lsb 2 | ||
502 | #define reg_pinmux_rw_pe_gio___pe2___width 1 | ||
503 | #define reg_pinmux_rw_pe_gio___pe2___bit 2 | ||
504 | #define reg_pinmux_rw_pe_gio___pe3___lsb 3 | ||
505 | #define reg_pinmux_rw_pe_gio___pe3___width 1 | ||
506 | #define reg_pinmux_rw_pe_gio___pe3___bit 3 | ||
507 | #define reg_pinmux_rw_pe_gio___pe4___lsb 4 | ||
508 | #define reg_pinmux_rw_pe_gio___pe4___width 1 | ||
509 | #define reg_pinmux_rw_pe_gio___pe4___bit 4 | ||
510 | #define reg_pinmux_rw_pe_gio___pe5___lsb 5 | ||
511 | #define reg_pinmux_rw_pe_gio___pe5___width 1 | ||
512 | #define reg_pinmux_rw_pe_gio___pe5___bit 5 | ||
513 | #define reg_pinmux_rw_pe_gio___pe6___lsb 6 | ||
514 | #define reg_pinmux_rw_pe_gio___pe6___width 1 | ||
515 | #define reg_pinmux_rw_pe_gio___pe6___bit 6 | ||
516 | #define reg_pinmux_rw_pe_gio___pe7___lsb 7 | ||
517 | #define reg_pinmux_rw_pe_gio___pe7___width 1 | ||
518 | #define reg_pinmux_rw_pe_gio___pe7___bit 7 | ||
519 | #define reg_pinmux_rw_pe_gio___pe8___lsb 8 | ||
520 | #define reg_pinmux_rw_pe_gio___pe8___width 1 | ||
521 | #define reg_pinmux_rw_pe_gio___pe8___bit 8 | ||
522 | #define reg_pinmux_rw_pe_gio___pe9___lsb 9 | ||
523 | #define reg_pinmux_rw_pe_gio___pe9___width 1 | ||
524 | #define reg_pinmux_rw_pe_gio___pe9___bit 9 | ||
525 | #define reg_pinmux_rw_pe_gio___pe10___lsb 10 | ||
526 | #define reg_pinmux_rw_pe_gio___pe10___width 1 | ||
527 | #define reg_pinmux_rw_pe_gio___pe10___bit 10 | ||
528 | #define reg_pinmux_rw_pe_gio___pe11___lsb 11 | ||
529 | #define reg_pinmux_rw_pe_gio___pe11___width 1 | ||
530 | #define reg_pinmux_rw_pe_gio___pe11___bit 11 | ||
531 | #define reg_pinmux_rw_pe_gio___pe12___lsb 12 | ||
532 | #define reg_pinmux_rw_pe_gio___pe12___width 1 | ||
533 | #define reg_pinmux_rw_pe_gio___pe12___bit 12 | ||
534 | #define reg_pinmux_rw_pe_gio___pe13___lsb 13 | ||
535 | #define reg_pinmux_rw_pe_gio___pe13___width 1 | ||
536 | #define reg_pinmux_rw_pe_gio___pe13___bit 13 | ||
537 | #define reg_pinmux_rw_pe_gio___pe14___lsb 14 | ||
538 | #define reg_pinmux_rw_pe_gio___pe14___width 1 | ||
539 | #define reg_pinmux_rw_pe_gio___pe14___bit 14 | ||
540 | #define reg_pinmux_rw_pe_gio___pe15___lsb 15 | ||
541 | #define reg_pinmux_rw_pe_gio___pe15___width 1 | ||
542 | #define reg_pinmux_rw_pe_gio___pe15___bit 15 | ||
543 | #define reg_pinmux_rw_pe_gio___pe16___lsb 16 | ||
544 | #define reg_pinmux_rw_pe_gio___pe16___width 1 | ||
545 | #define reg_pinmux_rw_pe_gio___pe16___bit 16 | ||
546 | #define reg_pinmux_rw_pe_gio___pe17___lsb 17 | ||
547 | #define reg_pinmux_rw_pe_gio___pe17___width 1 | ||
548 | #define reg_pinmux_rw_pe_gio___pe17___bit 17 | ||
549 | #define reg_pinmux_rw_pe_gio_offset 32 | ||
550 | |||
551 | /* Register rw_pe_iop, scope pinmux, type rw */ | ||
552 | #define reg_pinmux_rw_pe_iop___pe0___lsb 0 | ||
553 | #define reg_pinmux_rw_pe_iop___pe0___width 1 | ||
554 | #define reg_pinmux_rw_pe_iop___pe0___bit 0 | ||
555 | #define reg_pinmux_rw_pe_iop___pe1___lsb 1 | ||
556 | #define reg_pinmux_rw_pe_iop___pe1___width 1 | ||
557 | #define reg_pinmux_rw_pe_iop___pe1___bit 1 | ||
558 | #define reg_pinmux_rw_pe_iop___pe2___lsb 2 | ||
559 | #define reg_pinmux_rw_pe_iop___pe2___width 1 | ||
560 | #define reg_pinmux_rw_pe_iop___pe2___bit 2 | ||
561 | #define reg_pinmux_rw_pe_iop___pe3___lsb 3 | ||
562 | #define reg_pinmux_rw_pe_iop___pe3___width 1 | ||
563 | #define reg_pinmux_rw_pe_iop___pe3___bit 3 | ||
564 | #define reg_pinmux_rw_pe_iop___pe4___lsb 4 | ||
565 | #define reg_pinmux_rw_pe_iop___pe4___width 1 | ||
566 | #define reg_pinmux_rw_pe_iop___pe4___bit 4 | ||
567 | #define reg_pinmux_rw_pe_iop___pe5___lsb 5 | ||
568 | #define reg_pinmux_rw_pe_iop___pe5___width 1 | ||
569 | #define reg_pinmux_rw_pe_iop___pe5___bit 5 | ||
570 | #define reg_pinmux_rw_pe_iop___pe6___lsb 6 | ||
571 | #define reg_pinmux_rw_pe_iop___pe6___width 1 | ||
572 | #define reg_pinmux_rw_pe_iop___pe6___bit 6 | ||
573 | #define reg_pinmux_rw_pe_iop___pe7___lsb 7 | ||
574 | #define reg_pinmux_rw_pe_iop___pe7___width 1 | ||
575 | #define reg_pinmux_rw_pe_iop___pe7___bit 7 | ||
576 | #define reg_pinmux_rw_pe_iop___pe8___lsb 8 | ||
577 | #define reg_pinmux_rw_pe_iop___pe8___width 1 | ||
578 | #define reg_pinmux_rw_pe_iop___pe8___bit 8 | ||
579 | #define reg_pinmux_rw_pe_iop___pe9___lsb 9 | ||
580 | #define reg_pinmux_rw_pe_iop___pe9___width 1 | ||
581 | #define reg_pinmux_rw_pe_iop___pe9___bit 9 | ||
582 | #define reg_pinmux_rw_pe_iop___pe10___lsb 10 | ||
583 | #define reg_pinmux_rw_pe_iop___pe10___width 1 | ||
584 | #define reg_pinmux_rw_pe_iop___pe10___bit 10 | ||
585 | #define reg_pinmux_rw_pe_iop___pe11___lsb 11 | ||
586 | #define reg_pinmux_rw_pe_iop___pe11___width 1 | ||
587 | #define reg_pinmux_rw_pe_iop___pe11___bit 11 | ||
588 | #define reg_pinmux_rw_pe_iop___pe12___lsb 12 | ||
589 | #define reg_pinmux_rw_pe_iop___pe12___width 1 | ||
590 | #define reg_pinmux_rw_pe_iop___pe12___bit 12 | ||
591 | #define reg_pinmux_rw_pe_iop___pe13___lsb 13 | ||
592 | #define reg_pinmux_rw_pe_iop___pe13___width 1 | ||
593 | #define reg_pinmux_rw_pe_iop___pe13___bit 13 | ||
594 | #define reg_pinmux_rw_pe_iop___pe14___lsb 14 | ||
595 | #define reg_pinmux_rw_pe_iop___pe14___width 1 | ||
596 | #define reg_pinmux_rw_pe_iop___pe14___bit 14 | ||
597 | #define reg_pinmux_rw_pe_iop___pe15___lsb 15 | ||
598 | #define reg_pinmux_rw_pe_iop___pe15___width 1 | ||
599 | #define reg_pinmux_rw_pe_iop___pe15___bit 15 | ||
600 | #define reg_pinmux_rw_pe_iop___pe16___lsb 16 | ||
601 | #define reg_pinmux_rw_pe_iop___pe16___width 1 | ||
602 | #define reg_pinmux_rw_pe_iop___pe16___bit 16 | ||
603 | #define reg_pinmux_rw_pe_iop___pe17___lsb 17 | ||
604 | #define reg_pinmux_rw_pe_iop___pe17___width 1 | ||
605 | #define reg_pinmux_rw_pe_iop___pe17___bit 17 | ||
606 | #define reg_pinmux_rw_pe_iop_offset 36 | ||
607 | |||
608 | /* Register rw_usb_phy, scope pinmux, type rw */ | ||
609 | #define reg_pinmux_rw_usb_phy___en_usb0___lsb 0 | ||
610 | #define reg_pinmux_rw_usb_phy___en_usb0___width 1 | ||
611 | #define reg_pinmux_rw_usb_phy___en_usb0___bit 0 | ||
612 | #define reg_pinmux_rw_usb_phy___en_usb1___lsb 1 | ||
613 | #define reg_pinmux_rw_usb_phy___en_usb1___width 1 | ||
614 | #define reg_pinmux_rw_usb_phy___en_usb1___bit 1 | ||
615 | #define reg_pinmux_rw_usb_phy_offset 40 | ||
616 | |||
617 | |||
618 | /* Constants */ | ||
619 | #define regk_pinmux_no 0x00000000 | ||
620 | #define regk_pinmux_rw_hwprot_default 0x00000000 | ||
621 | #define regk_pinmux_rw_pa_default 0x00000000 | ||
622 | #define regk_pinmux_rw_pb_gio_default 0x00000000 | ||
623 | #define regk_pinmux_rw_pb_iop_default 0x00000000 | ||
624 | #define regk_pinmux_rw_pc_gio_default 0x00000000 | ||
625 | #define regk_pinmux_rw_pc_iop_default 0x00000000 | ||
626 | #define regk_pinmux_rw_pd_gio_default 0x00000000 | ||
627 | #define regk_pinmux_rw_pd_iop_default 0x00000000 | ||
628 | #define regk_pinmux_rw_pe_gio_default 0x00000000 | ||
629 | #define regk_pinmux_rw_pe_iop_default 0x00000000 | ||
630 | #define regk_pinmux_rw_usb_phy_default 0x00000000 | ||
631 | #define regk_pinmux_yes 0x00000001 | ||
632 | #endif /* __pinmux_defs_asm_h */ | ||
diff --git a/arch/cris/include/arch-v32/mach-fs/mach/hwregs/asm/reg_map_asm.h b/arch/cris/include/arch-v32/mach-fs/mach/hwregs/asm/reg_map_asm.h new file mode 100644 index 000000000000..87517aebd2cb --- /dev/null +++ b/arch/cris/include/arch-v32/mach-fs/mach/hwregs/asm/reg_map_asm.h | |||
@@ -0,0 +1,96 @@ | |||
1 | #ifndef __reg_map_h | ||
2 | #define __reg_map_h | ||
3 | |||
4 | /* | ||
5 | * This file is autogenerated from | ||
6 | * file: ../../mod/fakereg.rmap | ||
7 | * id: fakereg.rmap,v 1.3 2004/02/11 19:53:22 ronny Exp | ||
8 | * last modified: Wed Feb 11 20:53:25 2004 | ||
9 | * file: ../../rtl/global.rmap | ||
10 | * id: global.rmap,v 1.3 2003/08/18 15:08:23 mikaeln Exp | ||
11 | * last modified: Mon Aug 18 17:08:23 2003 | ||
12 | * file: ../../mod/modreg.rmap | ||
13 | * id: modreg.rmap,v 1.31 2004/02/20 15:40:04 stefans Exp | ||
14 | * last modified: Fri Feb 20 16:40:04 2004 | ||
15 | * | ||
16 | * by /n/asic/design/tools/rdesc/src/rdes2c -asm --outfile asm/reg_map_asm.h -base 0xb0000000 ../../rtl/global.rmap ../../mod/modreg.rmap ../../inst/memarb/rtl/guinness/marb_top.r ../../mod/fakereg.rmap | ||
17 | * id: $Id: reg_map_asm.h,v 1.1 2007/02/13 11:55:30 starvik Exp $ | ||
18 | * Any changes here will be lost. | ||
19 | * | ||
20 | * -*- buffer-read-only: t -*- | ||
21 | */ | ||
22 | #define regi_artpec_mod 0xb7044000 | ||
23 | #define regi_ata 0xb0032000 | ||
24 | #define regi_ata_mod 0xb7006000 | ||
25 | #define regi_barber 0xb701a000 | ||
26 | #define regi_bif_core 0xb0014000 | ||
27 | #define regi_bif_dma 0xb0016000 | ||
28 | #define regi_bif_slave 0xb0018000 | ||
29 | #define regi_bif_slave_ext 0xac000000 | ||
30 | #define regi_bus_master 0xb703c000 | ||
31 | #define regi_config 0xb003c000 | ||
32 | #define regi_dma0 0xb0000000 | ||
33 | #define regi_dma1 0xb0002000 | ||
34 | #define regi_dma2 0xb0004000 | ||
35 | #define regi_dma3 0xb0006000 | ||
36 | #define regi_dma4 0xb0008000 | ||
37 | #define regi_dma5 0xb000a000 | ||
38 | #define regi_dma6 0xb000c000 | ||
39 | #define regi_dma7 0xb000e000 | ||
40 | #define regi_dma8 0xb0010000 | ||
41 | #define regi_dma9 0xb0012000 | ||
42 | #define regi_eth0 0xb0034000 | ||
43 | #define regi_eth1 0xb0036000 | ||
44 | #define regi_eth_mod 0xb7004000 | ||
45 | #define regi_eth_mod1 0xb701c000 | ||
46 | #define regi_eth_strmod 0xb7008000 | ||
47 | #define regi_eth_strmod1 0xb7032000 | ||
48 | #define regi_ext_dma 0xb703a000 | ||
49 | #define regi_ext_mem 0xb7046000 | ||
50 | #define regi_gen_io 0xb7016000 | ||
51 | #define regi_gio 0xb001a000 | ||
52 | #define regi_hook 0xb7000000 | ||
53 | #define regi_iop 0xb0020000 | ||
54 | #define regi_irq 0xb001c000 | ||
55 | #define regi_irq_nmi 0xb701e000 | ||
56 | #define regi_marb 0xb003e000 | ||
57 | #define regi_marb_bp0 0xb003e240 | ||
58 | #define regi_marb_bp1 0xb003e280 | ||
59 | #define regi_marb_bp2 0xb003e2c0 | ||
60 | #define regi_marb_bp3 0xb003e300 | ||
61 | #define regi_nand_mod 0xb7014000 | ||
62 | #define regi_p21 0xb002e000 | ||
63 | #define regi_p21_mod 0xb7042000 | ||
64 | #define regi_pci_mod 0xb7010000 | ||
65 | #define regi_pin_test 0xb7018000 | ||
66 | #define regi_pinmux 0xb0038000 | ||
67 | #define regi_sdram_chk 0xb703e000 | ||
68 | #define regi_sdram_mod 0xb7012000 | ||
69 | #define regi_ser0 0xb0026000 | ||
70 | #define regi_ser1 0xb0028000 | ||
71 | #define regi_ser2 0xb002a000 | ||
72 | #define regi_ser3 0xb002c000 | ||
73 | #define regi_ser_mod0 0xb7020000 | ||
74 | #define regi_ser_mod1 0xb7022000 | ||
75 | #define regi_ser_mod2 0xb7024000 | ||
76 | #define regi_ser_mod3 0xb7026000 | ||
77 | #define regi_smif_stat 0xb700e000 | ||
78 | #define regi_sser0 0xb0022000 | ||
79 | #define regi_sser1 0xb0024000 | ||
80 | #define regi_sser_mod0 0xb700a000 | ||
81 | #define regi_sser_mod1 0xb700c000 | ||
82 | #define regi_strcop 0xb0030000 | ||
83 | #define regi_strmux 0xb003a000 | ||
84 | #define regi_strmux_tst 0xb7040000 | ||
85 | #define regi_tap 0xb7002000 | ||
86 | #define regi_timer 0xb001e000 | ||
87 | #define regi_timer_mod 0xb7034000 | ||
88 | #define regi_trace 0xb0040000 | ||
89 | #define regi_usb0 0xb7028000 | ||
90 | #define regi_usb1 0xb702a000 | ||
91 | #define regi_usb2 0xb702c000 | ||
92 | #define regi_usb3 0xb702e000 | ||
93 | #define regi_usb_dev 0xb7030000 | ||
94 | #define regi_utmi_mod0 0xb7036000 | ||
95 | #define regi_utmi_mod1 0xb7038000 | ||
96 | #endif /* __reg_map_h */ | ||
diff --git a/arch/cris/include/arch-v32/mach-fs/mach/hwregs/asm/timer_defs_asm.h b/arch/cris/include/arch-v32/mach-fs/mach/hwregs/asm/timer_defs_asm.h new file mode 100644 index 000000000000..e1197194d5c1 --- /dev/null +++ b/arch/cris/include/arch-v32/mach-fs/mach/hwregs/asm/timer_defs_asm.h | |||
@@ -0,0 +1,229 @@ | |||
1 | #ifndef __timer_defs_asm_h | ||
2 | #define __timer_defs_asm_h | ||
3 | |||
4 | /* | ||
5 | * This file is autogenerated from | ||
6 | * file: ../../inst/timer/rtl/timer_regs.r | ||
7 | * id: timer_regs.r,v 1.7 2003/03/11 11:16:59 perz Exp | ||
8 | * last modfied: Mon Apr 11 16:09:53 2005 | ||
9 | * | ||
10 | * by /n/asic/design/tools/rdesc/src/rdes2c -asm --outfile asm/timer_defs_asm.h ../../inst/timer/rtl/timer_regs.r | ||
11 | * id: $Id: timer_defs_asm.h,v 1.1 2007/04/11 13:51:01 ricardw Exp $ | ||
12 | * Any changes here will be lost. | ||
13 | * | ||
14 | * -*- buffer-read-only: t -*- | ||
15 | */ | ||
16 | |||
17 | #ifndef REG_FIELD | ||
18 | #define REG_FIELD( scope, reg, field, value ) \ | ||
19 | REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) | ||
20 | #define REG_FIELD_X_( value, shift ) ((value) << shift) | ||
21 | #endif | ||
22 | |||
23 | #ifndef REG_STATE | ||
24 | #define REG_STATE( scope, reg, field, symbolic_value ) \ | ||
25 | REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) | ||
26 | #define REG_STATE_X_( k, shift ) (k << shift) | ||
27 | #endif | ||
28 | |||
29 | #ifndef REG_MASK | ||
30 | #define REG_MASK( scope, reg, field ) \ | ||
31 | REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) | ||
32 | #define REG_MASK_X_( width, lsb ) (((1 << width)-1) << lsb) | ||
33 | #endif | ||
34 | |||
35 | #ifndef REG_LSB | ||
36 | #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb | ||
37 | #endif | ||
38 | |||
39 | #ifndef REG_BIT | ||
40 | #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit | ||
41 | #endif | ||
42 | |||
43 | #ifndef REG_ADDR | ||
44 | #define REG_ADDR( scope, inst, reg ) REG_ADDR_X_(inst, reg_##scope##_##reg##_offset) | ||
45 | #define REG_ADDR_X_( inst, offs ) ((inst) + offs) | ||
46 | #endif | ||
47 | |||
48 | #ifndef REG_ADDR_VECT | ||
49 | #define REG_ADDR_VECT( scope, inst, reg, index ) \ | ||
50 | REG_ADDR_VECT_X_(inst, reg_##scope##_##reg##_offset, index, \ | ||
51 | STRIDE_##scope##_##reg ) | ||
52 | #define REG_ADDR_VECT_X_( inst, offs, index, stride ) \ | ||
53 | ((inst) + offs + (index) * stride) | ||
54 | #endif | ||
55 | |||
56 | /* Register rw_tmr0_div, scope timer, type rw */ | ||
57 | #define reg_timer_rw_tmr0_div_offset 0 | ||
58 | |||
59 | /* Register r_tmr0_data, scope timer, type r */ | ||
60 | #define reg_timer_r_tmr0_data_offset 4 | ||
61 | |||
62 | /* Register rw_tmr0_ctrl, scope timer, type rw */ | ||
63 | #define reg_timer_rw_tmr0_ctrl___op___lsb 0 | ||
64 | #define reg_timer_rw_tmr0_ctrl___op___width 2 | ||
65 | #define reg_timer_rw_tmr0_ctrl___freq___lsb 2 | ||
66 | #define reg_timer_rw_tmr0_ctrl___freq___width 3 | ||
67 | #define reg_timer_rw_tmr0_ctrl_offset 8 | ||
68 | |||
69 | /* Register rw_tmr1_div, scope timer, type rw */ | ||
70 | #define reg_timer_rw_tmr1_div_offset 16 | ||
71 | |||
72 | /* Register r_tmr1_data, scope timer, type r */ | ||
73 | #define reg_timer_r_tmr1_data_offset 20 | ||
74 | |||
75 | /* Register rw_tmr1_ctrl, scope timer, type rw */ | ||
76 | #define reg_timer_rw_tmr1_ctrl___op___lsb 0 | ||
77 | #define reg_timer_rw_tmr1_ctrl___op___width 2 | ||
78 | #define reg_timer_rw_tmr1_ctrl___freq___lsb 2 | ||
79 | #define reg_timer_rw_tmr1_ctrl___freq___width 3 | ||
80 | #define reg_timer_rw_tmr1_ctrl_offset 24 | ||
81 | |||
82 | /* Register rs_cnt_data, scope timer, type rs */ | ||
83 | #define reg_timer_rs_cnt_data___tmr___lsb 0 | ||
84 | #define reg_timer_rs_cnt_data___tmr___width 24 | ||
85 | #define reg_timer_rs_cnt_data___cnt___lsb 24 | ||
86 | #define reg_timer_rs_cnt_data___cnt___width 8 | ||
87 | #define reg_timer_rs_cnt_data_offset 32 | ||
88 | |||
89 | /* Register r_cnt_data, scope timer, type r */ | ||
90 | #define reg_timer_r_cnt_data___tmr___lsb 0 | ||
91 | #define reg_timer_r_cnt_data___tmr___width 24 | ||
92 | #define reg_timer_r_cnt_data___cnt___lsb 24 | ||
93 | #define reg_timer_r_cnt_data___cnt___width 8 | ||
94 | #define reg_timer_r_cnt_data_offset 36 | ||
95 | |||
96 | /* Register rw_cnt_cfg, scope timer, type rw */ | ||
97 | #define reg_timer_rw_cnt_cfg___clk___lsb 0 | ||
98 | #define reg_timer_rw_cnt_cfg___clk___width 2 | ||
99 | #define reg_timer_rw_cnt_cfg_offset 40 | ||
100 | |||
101 | /* Register rw_trig, scope timer, type rw */ | ||
102 | #define reg_timer_rw_trig_offset 48 | ||
103 | |||
104 | /* Register rw_trig_cfg, scope timer, type rw */ | ||
105 | #define reg_timer_rw_trig_cfg___tmr___lsb 0 | ||
106 | #define reg_timer_rw_trig_cfg___tmr___width 2 | ||
107 | #define reg_timer_rw_trig_cfg_offset 52 | ||
108 | |||
109 | /* Register r_time, scope timer, type r */ | ||
110 | #define reg_timer_r_time_offset 56 | ||
111 | |||
112 | /* Register rw_out, scope timer, type rw */ | ||
113 | #define reg_timer_rw_out___tmr___lsb 0 | ||
114 | #define reg_timer_rw_out___tmr___width 2 | ||
115 | #define reg_timer_rw_out_offset 60 | ||
116 | |||
117 | /* Register rw_wd_ctrl, scope timer, type rw */ | ||
118 | #define reg_timer_rw_wd_ctrl___cnt___lsb 0 | ||
119 | #define reg_timer_rw_wd_ctrl___cnt___width 8 | ||
120 | #define reg_timer_rw_wd_ctrl___cmd___lsb 8 | ||
121 | #define reg_timer_rw_wd_ctrl___cmd___width 1 | ||
122 | #define reg_timer_rw_wd_ctrl___cmd___bit 8 | ||
123 | #define reg_timer_rw_wd_ctrl___key___lsb 9 | ||
124 | #define reg_timer_rw_wd_ctrl___key___width 7 | ||
125 | #define reg_timer_rw_wd_ctrl_offset 64 | ||
126 | |||
127 | /* Register r_wd_stat, scope timer, type r */ | ||
128 | #define reg_timer_r_wd_stat___cnt___lsb 0 | ||
129 | #define reg_timer_r_wd_stat___cnt___width 8 | ||
130 | #define reg_timer_r_wd_stat___cmd___lsb 8 | ||
131 | #define reg_timer_r_wd_stat___cmd___width 1 | ||
132 | #define reg_timer_r_wd_stat___cmd___bit 8 | ||
133 | #define reg_timer_r_wd_stat_offset 68 | ||
134 | |||
135 | /* Register rw_intr_mask, scope timer, type rw */ | ||
136 | #define reg_timer_rw_intr_mask___tmr0___lsb 0 | ||
137 | #define reg_timer_rw_intr_mask___tmr0___width 1 | ||
138 | #define reg_timer_rw_intr_mask___tmr0___bit 0 | ||
139 | #define reg_timer_rw_intr_mask___tmr1___lsb 1 | ||
140 | #define reg_timer_rw_intr_mask___tmr1___width 1 | ||
141 | #define reg_timer_rw_intr_mask___tmr1___bit 1 | ||
142 | #define reg_timer_rw_intr_mask___cnt___lsb 2 | ||
143 | #define reg_timer_rw_intr_mask___cnt___width 1 | ||
144 | #define reg_timer_rw_intr_mask___cnt___bit 2 | ||
145 | #define reg_timer_rw_intr_mask___trig___lsb 3 | ||
146 | #define reg_timer_rw_intr_mask___trig___width 1 | ||
147 | #define reg_timer_rw_intr_mask___trig___bit 3 | ||
148 | #define reg_timer_rw_intr_mask_offset 72 | ||
149 | |||
150 | /* Register rw_ack_intr, scope timer, type rw */ | ||
151 | #define reg_timer_rw_ack_intr___tmr0___lsb 0 | ||
152 | #define reg_timer_rw_ack_intr___tmr0___width 1 | ||
153 | #define reg_timer_rw_ack_intr___tmr0___bit 0 | ||
154 | #define reg_timer_rw_ack_intr___tmr1___lsb 1 | ||
155 | #define reg_timer_rw_ack_intr___tmr1___width 1 | ||
156 | #define reg_timer_rw_ack_intr___tmr1___bit 1 | ||
157 | #define reg_timer_rw_ack_intr___cnt___lsb 2 | ||
158 | #define reg_timer_rw_ack_intr___cnt___width 1 | ||
159 | #define reg_timer_rw_ack_intr___cnt___bit 2 | ||
160 | #define reg_timer_rw_ack_intr___trig___lsb 3 | ||
161 | #define reg_timer_rw_ack_intr___trig___width 1 | ||
162 | #define reg_timer_rw_ack_intr___trig___bit 3 | ||
163 | #define reg_timer_rw_ack_intr_offset 76 | ||
164 | |||
165 | /* Register r_intr, scope timer, type r */ | ||
166 | #define reg_timer_r_intr___tmr0___lsb 0 | ||
167 | #define reg_timer_r_intr___tmr0___width 1 | ||
168 | #define reg_timer_r_intr___tmr0___bit 0 | ||
169 | #define reg_timer_r_intr___tmr1___lsb 1 | ||
170 | #define reg_timer_r_intr___tmr1___width 1 | ||
171 | #define reg_timer_r_intr___tmr1___bit 1 | ||
172 | #define reg_timer_r_intr___cnt___lsb 2 | ||
173 | #define reg_timer_r_intr___cnt___width 1 | ||
174 | #define reg_timer_r_intr___cnt___bit 2 | ||
175 | #define reg_timer_r_intr___trig___lsb 3 | ||
176 | #define reg_timer_r_intr___trig___width 1 | ||
177 | #define reg_timer_r_intr___trig___bit 3 | ||
178 | #define reg_timer_r_intr_offset 80 | ||
179 | |||
180 | /* Register r_masked_intr, scope timer, type r */ | ||
181 | #define reg_timer_r_masked_intr___tmr0___lsb 0 | ||
182 | #define reg_timer_r_masked_intr___tmr0___width 1 | ||
183 | #define reg_timer_r_masked_intr___tmr0___bit 0 | ||
184 | #define reg_timer_r_masked_intr___tmr1___lsb 1 | ||
185 | #define reg_timer_r_masked_intr___tmr1___width 1 | ||
186 | #define reg_timer_r_masked_intr___tmr1___bit 1 | ||
187 | #define reg_timer_r_masked_intr___cnt___lsb 2 | ||
188 | #define reg_timer_r_masked_intr___cnt___width 1 | ||
189 | #define reg_timer_r_masked_intr___cnt___bit 2 | ||
190 | #define reg_timer_r_masked_intr___trig___lsb 3 | ||
191 | #define reg_timer_r_masked_intr___trig___width 1 | ||
192 | #define reg_timer_r_masked_intr___trig___bit 3 | ||
193 | #define reg_timer_r_masked_intr_offset 84 | ||
194 | |||
195 | /* Register rw_test, scope timer, type rw */ | ||
196 | #define reg_timer_rw_test___dis___lsb 0 | ||
197 | #define reg_timer_rw_test___dis___width 1 | ||
198 | #define reg_timer_rw_test___dis___bit 0 | ||
199 | #define reg_timer_rw_test___en___lsb 1 | ||
200 | #define reg_timer_rw_test___en___width 1 | ||
201 | #define reg_timer_rw_test___en___bit 1 | ||
202 | #define reg_timer_rw_test_offset 88 | ||
203 | |||
204 | |||
205 | /* Constants */ | ||
206 | #define regk_timer_ext 0x00000001 | ||
207 | #define regk_timer_f100 0x00000007 | ||
208 | #define regk_timer_f29_493 0x00000004 | ||
209 | #define regk_timer_f32 0x00000005 | ||
210 | #define regk_timer_f32_768 0x00000006 | ||
211 | #define regk_timer_hold 0x00000001 | ||
212 | #define regk_timer_ld 0x00000000 | ||
213 | #define regk_timer_no 0x00000000 | ||
214 | #define regk_timer_off 0x00000000 | ||
215 | #define regk_timer_run 0x00000002 | ||
216 | #define regk_timer_rw_cnt_cfg_default 0x00000000 | ||
217 | #define regk_timer_rw_intr_mask_default 0x00000000 | ||
218 | #define regk_timer_rw_out_default 0x00000000 | ||
219 | #define regk_timer_rw_test_default 0x00000000 | ||
220 | #define regk_timer_rw_tmr0_ctrl_default 0x00000000 | ||
221 | #define regk_timer_rw_tmr1_ctrl_default 0x00000000 | ||
222 | #define regk_timer_rw_trig_cfg_default 0x00000000 | ||
223 | #define regk_timer_start 0x00000001 | ||
224 | #define regk_timer_stop 0x00000000 | ||
225 | #define regk_timer_time 0x00000001 | ||
226 | #define regk_timer_tmr0 0x00000002 | ||
227 | #define regk_timer_tmr1 0x00000003 | ||
228 | #define regk_timer_yes 0x00000001 | ||
229 | #endif /* __timer_defs_asm_h */ | ||
diff --git a/arch/cris/include/arch-v32/mach-fs/mach/hwregs/bif_core_defs.h b/arch/cris/include/arch-v32/mach-fs/mach/hwregs/bif_core_defs.h new file mode 100644 index 000000000000..44362a62b47c --- /dev/null +++ b/arch/cris/include/arch-v32/mach-fs/mach/hwregs/bif_core_defs.h | |||
@@ -0,0 +1,284 @@ | |||
1 | #ifndef __bif_core_defs_h | ||
2 | #define __bif_core_defs_h | ||
3 | |||
4 | /* | ||
5 | * This file is autogenerated from | ||
6 | * file: ../../inst/bif/rtl/bif_core_regs.r | ||
7 | * id: bif_core_regs.r,v 1.17 2005/02/04 13:28:22 np Exp | ||
8 | * last modfied: Mon Apr 11 16:06:33 2005 | ||
9 | * | ||
10 | * by /n/asic/design/tools/rdesc/src/rdes2c --outfile bif_core_defs.h ../../inst/bif/rtl/bif_core_regs.r | ||
11 | * id: $Id: bif_core_defs.h,v 1.1 2007/02/13 11:55:30 starvik Exp $ | ||
12 | * Any changes here will be lost. | ||
13 | * | ||
14 | * -*- buffer-read-only: t -*- | ||
15 | */ | ||
16 | /* Main access macros */ | ||
17 | #ifndef REG_RD | ||
18 | #define REG_RD( scope, inst, reg ) \ | ||
19 | REG_READ( reg_##scope##_##reg, \ | ||
20 | (inst) + REG_RD_ADDR_##scope##_##reg ) | ||
21 | #endif | ||
22 | |||
23 | #ifndef REG_WR | ||
24 | #define REG_WR( scope, inst, reg, val ) \ | ||
25 | REG_WRITE( reg_##scope##_##reg, \ | ||
26 | (inst) + REG_WR_ADDR_##scope##_##reg, (val) ) | ||
27 | #endif | ||
28 | |||
29 | #ifndef REG_RD_VECT | ||
30 | #define REG_RD_VECT( scope, inst, reg, index ) \ | ||
31 | REG_READ( reg_##scope##_##reg, \ | ||
32 | (inst) + REG_RD_ADDR_##scope##_##reg + \ | ||
33 | (index) * STRIDE_##scope##_##reg ) | ||
34 | #endif | ||
35 | |||
36 | #ifndef REG_WR_VECT | ||
37 | #define REG_WR_VECT( scope, inst, reg, index, val ) \ | ||
38 | REG_WRITE( reg_##scope##_##reg, \ | ||
39 | (inst) + REG_WR_ADDR_##scope##_##reg + \ | ||
40 | (index) * STRIDE_##scope##_##reg, (val) ) | ||
41 | #endif | ||
42 | |||
43 | #ifndef REG_RD_INT | ||
44 | #define REG_RD_INT( scope, inst, reg ) \ | ||
45 | REG_READ( int, (inst) + REG_RD_ADDR_##scope##_##reg ) | ||
46 | #endif | ||
47 | |||
48 | #ifndef REG_WR_INT | ||
49 | #define REG_WR_INT( scope, inst, reg, val ) \ | ||
50 | REG_WRITE( int, (inst) + REG_WR_ADDR_##scope##_##reg, (val) ) | ||
51 | #endif | ||
52 | |||
53 | #ifndef REG_RD_INT_VECT | ||
54 | #define REG_RD_INT_VECT( scope, inst, reg, index ) \ | ||
55 | REG_READ( int, (inst) + REG_RD_ADDR_##scope##_##reg + \ | ||
56 | (index) * STRIDE_##scope##_##reg ) | ||
57 | #endif | ||
58 | |||
59 | #ifndef REG_WR_INT_VECT | ||
60 | #define REG_WR_INT_VECT( scope, inst, reg, index, val ) \ | ||
61 | REG_WRITE( int, (inst) + REG_WR_ADDR_##scope##_##reg + \ | ||
62 | (index) * STRIDE_##scope##_##reg, (val) ) | ||
63 | #endif | ||
64 | |||
65 | #ifndef REG_TYPE_CONV | ||
66 | #define REG_TYPE_CONV( type, orgtype, val ) \ | ||
67 | ( { union { orgtype o; type n; } r; r.o = val; r.n; } ) | ||
68 | #endif | ||
69 | |||
70 | #ifndef reg_page_size | ||
71 | #define reg_page_size 8192 | ||
72 | #endif | ||
73 | |||
74 | #ifndef REG_ADDR | ||
75 | #define REG_ADDR( scope, inst, reg ) \ | ||
76 | ( (inst) + REG_RD_ADDR_##scope##_##reg ) | ||
77 | #endif | ||
78 | |||
79 | #ifndef REG_ADDR_VECT | ||
80 | #define REG_ADDR_VECT( scope, inst, reg, index ) \ | ||
81 | ( (inst) + REG_RD_ADDR_##scope##_##reg + \ | ||
82 | (index) * STRIDE_##scope##_##reg ) | ||
83 | #endif | ||
84 | |||
85 | /* C-code for register scope bif_core */ | ||
86 | |||
87 | /* Register rw_grp1_cfg, scope bif_core, type rw */ | ||
88 | typedef struct { | ||
89 | unsigned int lw : 6; | ||
90 | unsigned int ew : 3; | ||
91 | unsigned int zw : 3; | ||
92 | unsigned int aw : 2; | ||
93 | unsigned int dw : 2; | ||
94 | unsigned int ewb : 2; | ||
95 | unsigned int bw : 1; | ||
96 | unsigned int wr_extend : 1; | ||
97 | unsigned int erc_en : 1; | ||
98 | unsigned int mode : 1; | ||
99 | unsigned int dummy1 : 10; | ||
100 | } reg_bif_core_rw_grp1_cfg; | ||
101 | #define REG_RD_ADDR_bif_core_rw_grp1_cfg 0 | ||
102 | #define REG_WR_ADDR_bif_core_rw_grp1_cfg 0 | ||
103 | |||
104 | /* Register rw_grp2_cfg, scope bif_core, type rw */ | ||
105 | typedef struct { | ||
106 | unsigned int lw : 6; | ||
107 | unsigned int ew : 3; | ||
108 | unsigned int zw : 3; | ||
109 | unsigned int aw : 2; | ||
110 | unsigned int dw : 2; | ||
111 | unsigned int ewb : 2; | ||
112 | unsigned int bw : 1; | ||
113 | unsigned int wr_extend : 1; | ||
114 | unsigned int erc_en : 1; | ||
115 | unsigned int mode : 1; | ||
116 | unsigned int dummy1 : 10; | ||
117 | } reg_bif_core_rw_grp2_cfg; | ||
118 | #define REG_RD_ADDR_bif_core_rw_grp2_cfg 4 | ||
119 | #define REG_WR_ADDR_bif_core_rw_grp2_cfg 4 | ||
120 | |||
121 | /* Register rw_grp3_cfg, scope bif_core, type rw */ | ||
122 | typedef struct { | ||
123 | unsigned int lw : 6; | ||
124 | unsigned int ew : 3; | ||
125 | unsigned int zw : 3; | ||
126 | unsigned int aw : 2; | ||
127 | unsigned int dw : 2; | ||
128 | unsigned int ewb : 2; | ||
129 | unsigned int bw : 1; | ||
130 | unsigned int wr_extend : 1; | ||
131 | unsigned int erc_en : 1; | ||
132 | unsigned int mode : 1; | ||
133 | unsigned int dummy1 : 2; | ||
134 | unsigned int gated_csp0 : 2; | ||
135 | unsigned int gated_csp1 : 2; | ||
136 | unsigned int gated_csp2 : 2; | ||
137 | unsigned int gated_csp3 : 2; | ||
138 | } reg_bif_core_rw_grp3_cfg; | ||
139 | #define REG_RD_ADDR_bif_core_rw_grp3_cfg 8 | ||
140 | #define REG_WR_ADDR_bif_core_rw_grp3_cfg 8 | ||
141 | |||
142 | /* Register rw_grp4_cfg, scope bif_core, type rw */ | ||
143 | typedef struct { | ||
144 | unsigned int lw : 6; | ||
145 | unsigned int ew : 3; | ||
146 | unsigned int zw : 3; | ||
147 | unsigned int aw : 2; | ||
148 | unsigned int dw : 2; | ||
149 | unsigned int ewb : 2; | ||
150 | unsigned int bw : 1; | ||
151 | unsigned int wr_extend : 1; | ||
152 | unsigned int erc_en : 1; | ||
153 | unsigned int mode : 1; | ||
154 | unsigned int dummy1 : 4; | ||
155 | unsigned int gated_csp4 : 2; | ||
156 | unsigned int gated_csp5 : 2; | ||
157 | unsigned int gated_csp6 : 2; | ||
158 | } reg_bif_core_rw_grp4_cfg; | ||
159 | #define REG_RD_ADDR_bif_core_rw_grp4_cfg 12 | ||
160 | #define REG_WR_ADDR_bif_core_rw_grp4_cfg 12 | ||
161 | |||
162 | /* Register rw_sdram_cfg_grp0, scope bif_core, type rw */ | ||
163 | typedef struct { | ||
164 | unsigned int bank_sel : 5; | ||
165 | unsigned int ca : 3; | ||
166 | unsigned int type : 1; | ||
167 | unsigned int bw : 1; | ||
168 | unsigned int sh : 3; | ||
169 | unsigned int wmm : 1; | ||
170 | unsigned int sh16 : 1; | ||
171 | unsigned int grp_sel : 5; | ||
172 | unsigned int dummy1 : 12; | ||
173 | } reg_bif_core_rw_sdram_cfg_grp0; | ||
174 | #define REG_RD_ADDR_bif_core_rw_sdram_cfg_grp0 16 | ||
175 | #define REG_WR_ADDR_bif_core_rw_sdram_cfg_grp0 16 | ||
176 | |||
177 | /* Register rw_sdram_cfg_grp1, scope bif_core, type rw */ | ||
178 | typedef struct { | ||
179 | unsigned int bank_sel : 5; | ||
180 | unsigned int ca : 3; | ||
181 | unsigned int type : 1; | ||
182 | unsigned int bw : 1; | ||
183 | unsigned int sh : 3; | ||
184 | unsigned int wmm : 1; | ||
185 | unsigned int sh16 : 1; | ||
186 | unsigned int dummy1 : 17; | ||
187 | } reg_bif_core_rw_sdram_cfg_grp1; | ||
188 | #define REG_RD_ADDR_bif_core_rw_sdram_cfg_grp1 20 | ||
189 | #define REG_WR_ADDR_bif_core_rw_sdram_cfg_grp1 20 | ||
190 | |||
191 | /* Register rw_sdram_timing, scope bif_core, type rw */ | ||
192 | typedef struct { | ||
193 | unsigned int cl : 3; | ||
194 | unsigned int rcd : 3; | ||
195 | unsigned int rp : 3; | ||
196 | unsigned int rc : 2; | ||
197 | unsigned int dpl : 2; | ||
198 | unsigned int pde : 1; | ||
199 | unsigned int ref : 2; | ||
200 | unsigned int cpd : 1; | ||
201 | unsigned int sdcke : 1; | ||
202 | unsigned int sdclk : 1; | ||
203 | unsigned int dummy1 : 13; | ||
204 | } reg_bif_core_rw_sdram_timing; | ||
205 | #define REG_RD_ADDR_bif_core_rw_sdram_timing 24 | ||
206 | #define REG_WR_ADDR_bif_core_rw_sdram_timing 24 | ||
207 | |||
208 | /* Register rw_sdram_cmd, scope bif_core, type rw */ | ||
209 | typedef struct { | ||
210 | unsigned int cmd : 3; | ||
211 | unsigned int mrs_data : 15; | ||
212 | unsigned int dummy1 : 14; | ||
213 | } reg_bif_core_rw_sdram_cmd; | ||
214 | #define REG_RD_ADDR_bif_core_rw_sdram_cmd 28 | ||
215 | #define REG_WR_ADDR_bif_core_rw_sdram_cmd 28 | ||
216 | |||
217 | /* Register rs_sdram_ref_stat, scope bif_core, type rs */ | ||
218 | typedef struct { | ||
219 | unsigned int ok : 1; | ||
220 | unsigned int dummy1 : 31; | ||
221 | } reg_bif_core_rs_sdram_ref_stat; | ||
222 | #define REG_RD_ADDR_bif_core_rs_sdram_ref_stat 32 | ||
223 | |||
224 | /* Register r_sdram_ref_stat, scope bif_core, type r */ | ||
225 | typedef struct { | ||
226 | unsigned int ok : 1; | ||
227 | unsigned int dummy1 : 31; | ||
228 | } reg_bif_core_r_sdram_ref_stat; | ||
229 | #define REG_RD_ADDR_bif_core_r_sdram_ref_stat 36 | ||
230 | |||
231 | |||
232 | /* Constants */ | ||
233 | enum { | ||
234 | regk_bif_core_bank2 = 0x00000000, | ||
235 | regk_bif_core_bank4 = 0x00000001, | ||
236 | regk_bif_core_bit10 = 0x0000000a, | ||
237 | regk_bif_core_bit11 = 0x0000000b, | ||
238 | regk_bif_core_bit12 = 0x0000000c, | ||
239 | regk_bif_core_bit13 = 0x0000000d, | ||
240 | regk_bif_core_bit14 = 0x0000000e, | ||
241 | regk_bif_core_bit15 = 0x0000000f, | ||
242 | regk_bif_core_bit16 = 0x00000010, | ||
243 | regk_bif_core_bit17 = 0x00000011, | ||
244 | regk_bif_core_bit18 = 0x00000012, | ||
245 | regk_bif_core_bit19 = 0x00000013, | ||
246 | regk_bif_core_bit20 = 0x00000014, | ||
247 | regk_bif_core_bit21 = 0x00000015, | ||
248 | regk_bif_core_bit22 = 0x00000016, | ||
249 | regk_bif_core_bit23 = 0x00000017, | ||
250 | regk_bif_core_bit24 = 0x00000018, | ||
251 | regk_bif_core_bit25 = 0x00000019, | ||
252 | regk_bif_core_bit26 = 0x0000001a, | ||
253 | regk_bif_core_bit27 = 0x0000001b, | ||
254 | regk_bif_core_bit28 = 0x0000001c, | ||
255 | regk_bif_core_bit29 = 0x0000001d, | ||
256 | regk_bif_core_bit9 = 0x00000009, | ||
257 | regk_bif_core_bw16 = 0x00000001, | ||
258 | regk_bif_core_bw32 = 0x00000000, | ||
259 | regk_bif_core_bwe = 0x00000000, | ||
260 | regk_bif_core_cwe = 0x00000001, | ||
261 | regk_bif_core_e15us = 0x00000001, | ||
262 | regk_bif_core_e7800ns = 0x00000002, | ||
263 | regk_bif_core_grp0 = 0x00000000, | ||
264 | regk_bif_core_grp1 = 0x00000001, | ||
265 | regk_bif_core_mrs = 0x00000003, | ||
266 | regk_bif_core_no = 0x00000000, | ||
267 | regk_bif_core_none = 0x00000000, | ||
268 | regk_bif_core_nop = 0x00000000, | ||
269 | regk_bif_core_off = 0x00000000, | ||
270 | regk_bif_core_pre = 0x00000002, | ||
271 | regk_bif_core_r_sdram_ref_stat_default = 0x00000001, | ||
272 | regk_bif_core_rd = 0x00000002, | ||
273 | regk_bif_core_ref = 0x00000001, | ||
274 | regk_bif_core_rs_sdram_ref_stat_default = 0x00000001, | ||
275 | regk_bif_core_rw_grp1_cfg_default = 0x000006cf, | ||
276 | regk_bif_core_rw_grp2_cfg_default = 0x000006cf, | ||
277 | regk_bif_core_rw_grp3_cfg_default = 0x000006cf, | ||
278 | regk_bif_core_rw_grp4_cfg_default = 0x000006cf, | ||
279 | regk_bif_core_rw_sdram_cfg_grp1_default = 0x00000000, | ||
280 | regk_bif_core_slf = 0x00000004, | ||
281 | regk_bif_core_wr = 0x00000001, | ||
282 | regk_bif_core_yes = 0x00000001 | ||
283 | }; | ||
284 | #endif /* __bif_core_defs_h */ | ||
diff --git a/arch/cris/include/arch-v32/mach-fs/mach/hwregs/bif_dma_defs.h b/arch/cris/include/arch-v32/mach-fs/mach/hwregs/bif_dma_defs.h new file mode 100644 index 000000000000..3cb51a09dba7 --- /dev/null +++ b/arch/cris/include/arch-v32/mach-fs/mach/hwregs/bif_dma_defs.h | |||
@@ -0,0 +1,473 @@ | |||
1 | #ifndef __bif_dma_defs_h | ||
2 | #define __bif_dma_defs_h | ||
3 | |||
4 | /* | ||
5 | * This file is autogenerated from | ||
6 | * file: ../../inst/bif/rtl/bif_dma_regs.r | ||
7 | * id: bif_dma_regs.r,v 1.6 2005/02/04 13:28:31 perz Exp | ||
8 | * last modfied: Mon Apr 11 16:06:33 2005 | ||
9 | * | ||
10 | * by /n/asic/design/tools/rdesc/src/rdes2c --outfile bif_dma_defs.h ../../inst/bif/rtl/bif_dma_regs.r | ||
11 | * id: $Id: bif_dma_defs.h,v 1.1 2007/02/13 11:55:30 starvik Exp $ | ||
12 | * Any changes here will be lost. | ||
13 | * | ||
14 | * -*- buffer-read-only: t -*- | ||
15 | */ | ||
16 | /* Main access macros */ | ||
17 | #ifndef REG_RD | ||
18 | #define REG_RD( scope, inst, reg ) \ | ||
19 | REG_READ( reg_##scope##_##reg, \ | ||
20 | (inst) + REG_RD_ADDR_##scope##_##reg ) | ||
21 | #endif | ||
22 | |||
23 | #ifndef REG_WR | ||
24 | #define REG_WR( scope, inst, reg, val ) \ | ||
25 | REG_WRITE( reg_##scope##_##reg, \ | ||
26 | (inst) + REG_WR_ADDR_##scope##_##reg, (val) ) | ||
27 | #endif | ||
28 | |||
29 | #ifndef REG_RD_VECT | ||
30 | #define REG_RD_VECT( scope, inst, reg, index ) \ | ||
31 | REG_READ( reg_##scope##_##reg, \ | ||
32 | (inst) + REG_RD_ADDR_##scope##_##reg + \ | ||
33 | (index) * STRIDE_##scope##_##reg ) | ||
34 | #endif | ||
35 | |||
36 | #ifndef REG_WR_VECT | ||
37 | #define REG_WR_VECT( scope, inst, reg, index, val ) \ | ||
38 | REG_WRITE( reg_##scope##_##reg, \ | ||
39 | (inst) + REG_WR_ADDR_##scope##_##reg + \ | ||
40 | (index) * STRIDE_##scope##_##reg, (val) ) | ||
41 | #endif | ||
42 | |||
43 | #ifndef REG_RD_INT | ||
44 | #define REG_RD_INT( scope, inst, reg ) \ | ||
45 | REG_READ( int, (inst) + REG_RD_ADDR_##scope##_##reg ) | ||
46 | #endif | ||
47 | |||
48 | #ifndef REG_WR_INT | ||
49 | #define REG_WR_INT( scope, inst, reg, val ) \ | ||
50 | REG_WRITE( int, (inst) + REG_WR_ADDR_##scope##_##reg, (val) ) | ||
51 | #endif | ||
52 | |||
53 | #ifndef REG_RD_INT_VECT | ||
54 | #define REG_RD_INT_VECT( scope, inst, reg, index ) \ | ||
55 | REG_READ( int, (inst) + REG_RD_ADDR_##scope##_##reg + \ | ||
56 | (index) * STRIDE_##scope##_##reg ) | ||
57 | #endif | ||
58 | |||
59 | #ifndef REG_WR_INT_VECT | ||
60 | #define REG_WR_INT_VECT( scope, inst, reg, index, val ) \ | ||
61 | REG_WRITE( int, (inst) + REG_WR_ADDR_##scope##_##reg + \ | ||
62 | (index) * STRIDE_##scope##_##reg, (val) ) | ||
63 | #endif | ||
64 | |||
65 | #ifndef REG_TYPE_CONV | ||
66 | #define REG_TYPE_CONV( type, orgtype, val ) \ | ||
67 | ( { union { orgtype o; type n; } r; r.o = val; r.n; } ) | ||
68 | #endif | ||
69 | |||
70 | #ifndef reg_page_size | ||
71 | #define reg_page_size 8192 | ||
72 | #endif | ||
73 | |||
74 | #ifndef REG_ADDR | ||
75 | #define REG_ADDR( scope, inst, reg ) \ | ||
76 | ( (inst) + REG_RD_ADDR_##scope##_##reg ) | ||
77 | #endif | ||
78 | |||
79 | #ifndef REG_ADDR_VECT | ||
80 | #define REG_ADDR_VECT( scope, inst, reg, index ) \ | ||
81 | ( (inst) + REG_RD_ADDR_##scope##_##reg + \ | ||
82 | (index) * STRIDE_##scope##_##reg ) | ||
83 | #endif | ||
84 | |||
85 | /* C-code for register scope bif_dma */ | ||
86 | |||
87 | /* Register rw_ch0_ctrl, scope bif_dma, type rw */ | ||
88 | typedef struct { | ||
89 | unsigned int bw : 2; | ||
90 | unsigned int burst_len : 1; | ||
91 | unsigned int cont : 1; | ||
92 | unsigned int end_pad : 1; | ||
93 | unsigned int cnt : 1; | ||
94 | unsigned int dreq_pin : 3; | ||
95 | unsigned int dreq_mode : 2; | ||
96 | unsigned int tc_in_pin : 3; | ||
97 | unsigned int tc_in_mode : 2; | ||
98 | unsigned int bus_mode : 2; | ||
99 | unsigned int rate_en : 1; | ||
100 | unsigned int wr_all : 1; | ||
101 | unsigned int dummy1 : 12; | ||
102 | } reg_bif_dma_rw_ch0_ctrl; | ||
103 | #define REG_RD_ADDR_bif_dma_rw_ch0_ctrl 0 | ||
104 | #define REG_WR_ADDR_bif_dma_rw_ch0_ctrl 0 | ||
105 | |||
106 | /* Register rw_ch0_addr, scope bif_dma, type rw */ | ||
107 | typedef struct { | ||
108 | unsigned int addr : 32; | ||
109 | } reg_bif_dma_rw_ch0_addr; | ||
110 | #define REG_RD_ADDR_bif_dma_rw_ch0_addr 4 | ||
111 | #define REG_WR_ADDR_bif_dma_rw_ch0_addr 4 | ||
112 | |||
113 | /* Register rw_ch0_start, scope bif_dma, type rw */ | ||
114 | typedef struct { | ||
115 | unsigned int run : 1; | ||
116 | unsigned int dummy1 : 31; | ||
117 | } reg_bif_dma_rw_ch0_start; | ||
118 | #define REG_RD_ADDR_bif_dma_rw_ch0_start 8 | ||
119 | #define REG_WR_ADDR_bif_dma_rw_ch0_start 8 | ||
120 | |||
121 | /* Register rw_ch0_cnt, scope bif_dma, type rw */ | ||
122 | typedef struct { | ||
123 | unsigned int start_cnt : 16; | ||
124 | unsigned int dummy1 : 16; | ||
125 | } reg_bif_dma_rw_ch0_cnt; | ||
126 | #define REG_RD_ADDR_bif_dma_rw_ch0_cnt 12 | ||
127 | #define REG_WR_ADDR_bif_dma_rw_ch0_cnt 12 | ||
128 | |||
129 | /* Register r_ch0_stat, scope bif_dma, type r */ | ||
130 | typedef struct { | ||
131 | unsigned int cnt : 16; | ||
132 | unsigned int dummy1 : 15; | ||
133 | unsigned int run : 1; | ||
134 | } reg_bif_dma_r_ch0_stat; | ||
135 | #define REG_RD_ADDR_bif_dma_r_ch0_stat 16 | ||
136 | |||
137 | /* Register rw_ch1_ctrl, scope bif_dma, type rw */ | ||
138 | typedef struct { | ||
139 | unsigned int bw : 2; | ||
140 | unsigned int burst_len : 1; | ||
141 | unsigned int cont : 1; | ||
142 | unsigned int end_discard : 1; | ||
143 | unsigned int cnt : 1; | ||
144 | unsigned int dreq_pin : 3; | ||
145 | unsigned int dreq_mode : 2; | ||
146 | unsigned int tc_in_pin : 3; | ||
147 | unsigned int tc_in_mode : 2; | ||
148 | unsigned int bus_mode : 2; | ||
149 | unsigned int rate_en : 1; | ||
150 | unsigned int dummy1 : 13; | ||
151 | } reg_bif_dma_rw_ch1_ctrl; | ||
152 | #define REG_RD_ADDR_bif_dma_rw_ch1_ctrl 32 | ||
153 | #define REG_WR_ADDR_bif_dma_rw_ch1_ctrl 32 | ||
154 | |||
155 | /* Register rw_ch1_addr, scope bif_dma, type rw */ | ||
156 | typedef struct { | ||
157 | unsigned int addr : 32; | ||
158 | } reg_bif_dma_rw_ch1_addr; | ||
159 | #define REG_RD_ADDR_bif_dma_rw_ch1_addr 36 | ||
160 | #define REG_WR_ADDR_bif_dma_rw_ch1_addr 36 | ||
161 | |||
162 | /* Register rw_ch1_start, scope bif_dma, type rw */ | ||
163 | typedef struct { | ||
164 | unsigned int run : 1; | ||
165 | unsigned int dummy1 : 31; | ||
166 | } reg_bif_dma_rw_ch1_start; | ||
167 | #define REG_RD_ADDR_bif_dma_rw_ch1_start 40 | ||
168 | #define REG_WR_ADDR_bif_dma_rw_ch1_start 40 | ||
169 | |||
170 | /* Register rw_ch1_cnt, scope bif_dma, type rw */ | ||
171 | typedef struct { | ||
172 | unsigned int start_cnt : 16; | ||
173 | unsigned int dummy1 : 16; | ||
174 | } reg_bif_dma_rw_ch1_cnt; | ||
175 | #define REG_RD_ADDR_bif_dma_rw_ch1_cnt 44 | ||
176 | #define REG_WR_ADDR_bif_dma_rw_ch1_cnt 44 | ||
177 | |||
178 | /* Register r_ch1_stat, scope bif_dma, type r */ | ||
179 | typedef struct { | ||
180 | unsigned int cnt : 16; | ||
181 | unsigned int dummy1 : 15; | ||
182 | unsigned int run : 1; | ||
183 | } reg_bif_dma_r_ch1_stat; | ||
184 | #define REG_RD_ADDR_bif_dma_r_ch1_stat 48 | ||
185 | |||
186 | /* Register rw_ch2_ctrl, scope bif_dma, type rw */ | ||
187 | typedef struct { | ||
188 | unsigned int bw : 2; | ||
189 | unsigned int burst_len : 1; | ||
190 | unsigned int cont : 1; | ||
191 | unsigned int end_pad : 1; | ||
192 | unsigned int cnt : 1; | ||
193 | unsigned int dreq_pin : 3; | ||
194 | unsigned int dreq_mode : 2; | ||
195 | unsigned int tc_in_pin : 3; | ||
196 | unsigned int tc_in_mode : 2; | ||
197 | unsigned int bus_mode : 2; | ||
198 | unsigned int rate_en : 1; | ||
199 | unsigned int wr_all : 1; | ||
200 | unsigned int dummy1 : 12; | ||
201 | } reg_bif_dma_rw_ch2_ctrl; | ||
202 | #define REG_RD_ADDR_bif_dma_rw_ch2_ctrl 64 | ||
203 | #define REG_WR_ADDR_bif_dma_rw_ch2_ctrl 64 | ||
204 | |||
205 | /* Register rw_ch2_addr, scope bif_dma, type rw */ | ||
206 | typedef struct { | ||
207 | unsigned int addr : 32; | ||
208 | } reg_bif_dma_rw_ch2_addr; | ||
209 | #define REG_RD_ADDR_bif_dma_rw_ch2_addr 68 | ||
210 | #define REG_WR_ADDR_bif_dma_rw_ch2_addr 68 | ||
211 | |||
212 | /* Register rw_ch2_start, scope bif_dma, type rw */ | ||
213 | typedef struct { | ||
214 | unsigned int run : 1; | ||
215 | unsigned int dummy1 : 31; | ||
216 | } reg_bif_dma_rw_ch2_start; | ||
217 | #define REG_RD_ADDR_bif_dma_rw_ch2_start 72 | ||
218 | #define REG_WR_ADDR_bif_dma_rw_ch2_start 72 | ||
219 | |||
220 | /* Register rw_ch2_cnt, scope bif_dma, type rw */ | ||
221 | typedef struct { | ||
222 | unsigned int start_cnt : 16; | ||
223 | unsigned int dummy1 : 16; | ||
224 | } reg_bif_dma_rw_ch2_cnt; | ||
225 | #define REG_RD_ADDR_bif_dma_rw_ch2_cnt 76 | ||
226 | #define REG_WR_ADDR_bif_dma_rw_ch2_cnt 76 | ||
227 | |||
228 | /* Register r_ch2_stat, scope bif_dma, type r */ | ||
229 | typedef struct { | ||
230 | unsigned int cnt : 16; | ||
231 | unsigned int dummy1 : 15; | ||
232 | unsigned int run : 1; | ||
233 | } reg_bif_dma_r_ch2_stat; | ||
234 | #define REG_RD_ADDR_bif_dma_r_ch2_stat 80 | ||
235 | |||
236 | /* Register rw_ch3_ctrl, scope bif_dma, type rw */ | ||
237 | typedef struct { | ||
238 | unsigned int bw : 2; | ||
239 | unsigned int burst_len : 1; | ||
240 | unsigned int cont : 1; | ||
241 | unsigned int end_discard : 1; | ||
242 | unsigned int cnt : 1; | ||
243 | unsigned int dreq_pin : 3; | ||
244 | unsigned int dreq_mode : 2; | ||
245 | unsigned int tc_in_pin : 3; | ||
246 | unsigned int tc_in_mode : 2; | ||
247 | unsigned int bus_mode : 2; | ||
248 | unsigned int rate_en : 1; | ||
249 | unsigned int dummy1 : 13; | ||
250 | } reg_bif_dma_rw_ch3_ctrl; | ||
251 | #define REG_RD_ADDR_bif_dma_rw_ch3_ctrl 96 | ||
252 | #define REG_WR_ADDR_bif_dma_rw_ch3_ctrl 96 | ||
253 | |||
254 | /* Register rw_ch3_addr, scope bif_dma, type rw */ | ||
255 | typedef struct { | ||
256 | unsigned int addr : 32; | ||
257 | } reg_bif_dma_rw_ch3_addr; | ||
258 | #define REG_RD_ADDR_bif_dma_rw_ch3_addr 100 | ||
259 | #define REG_WR_ADDR_bif_dma_rw_ch3_addr 100 | ||
260 | |||
261 | /* Register rw_ch3_start, scope bif_dma, type rw */ | ||
262 | typedef struct { | ||
263 | unsigned int run : 1; | ||
264 | unsigned int dummy1 : 31; | ||
265 | } reg_bif_dma_rw_ch3_start; | ||
266 | #define REG_RD_ADDR_bif_dma_rw_ch3_start 104 | ||
267 | #define REG_WR_ADDR_bif_dma_rw_ch3_start 104 | ||
268 | |||
269 | /* Register rw_ch3_cnt, scope bif_dma, type rw */ | ||
270 | typedef struct { | ||
271 | unsigned int start_cnt : 16; | ||
272 | unsigned int dummy1 : 16; | ||
273 | } reg_bif_dma_rw_ch3_cnt; | ||
274 | #define REG_RD_ADDR_bif_dma_rw_ch3_cnt 108 | ||
275 | #define REG_WR_ADDR_bif_dma_rw_ch3_cnt 108 | ||
276 | |||
277 | /* Register r_ch3_stat, scope bif_dma, type r */ | ||
278 | typedef struct { | ||
279 | unsigned int cnt : 16; | ||
280 | unsigned int dummy1 : 15; | ||
281 | unsigned int run : 1; | ||
282 | } reg_bif_dma_r_ch3_stat; | ||
283 | #define REG_RD_ADDR_bif_dma_r_ch3_stat 112 | ||
284 | |||
285 | /* Register rw_intr_mask, scope bif_dma, type rw */ | ||
286 | typedef struct { | ||
287 | unsigned int ext_dma0 : 1; | ||
288 | unsigned int ext_dma1 : 1; | ||
289 | unsigned int ext_dma2 : 1; | ||
290 | unsigned int ext_dma3 : 1; | ||
291 | unsigned int dummy1 : 28; | ||
292 | } reg_bif_dma_rw_intr_mask; | ||
293 | #define REG_RD_ADDR_bif_dma_rw_intr_mask 128 | ||
294 | #define REG_WR_ADDR_bif_dma_rw_intr_mask 128 | ||
295 | |||
296 | /* Register rw_ack_intr, scope bif_dma, type rw */ | ||
297 | typedef struct { | ||
298 | unsigned int ext_dma0 : 1; | ||
299 | unsigned int ext_dma1 : 1; | ||
300 | unsigned int ext_dma2 : 1; | ||
301 | unsigned int ext_dma3 : 1; | ||
302 | unsigned int dummy1 : 28; | ||
303 | } reg_bif_dma_rw_ack_intr; | ||
304 | #define REG_RD_ADDR_bif_dma_rw_ack_intr 132 | ||
305 | #define REG_WR_ADDR_bif_dma_rw_ack_intr 132 | ||
306 | |||
307 | /* Register r_intr, scope bif_dma, type r */ | ||
308 | typedef struct { | ||
309 | unsigned int ext_dma0 : 1; | ||
310 | unsigned int ext_dma1 : 1; | ||
311 | unsigned int ext_dma2 : 1; | ||
312 | unsigned int ext_dma3 : 1; | ||
313 | unsigned int dummy1 : 28; | ||
314 | } reg_bif_dma_r_intr; | ||
315 | #define REG_RD_ADDR_bif_dma_r_intr 136 | ||
316 | |||
317 | /* Register r_masked_intr, scope bif_dma, type r */ | ||
318 | typedef struct { | ||
319 | unsigned int ext_dma0 : 1; | ||
320 | unsigned int ext_dma1 : 1; | ||
321 | unsigned int ext_dma2 : 1; | ||
322 | unsigned int ext_dma3 : 1; | ||
323 | unsigned int dummy1 : 28; | ||
324 | } reg_bif_dma_r_masked_intr; | ||
325 | #define REG_RD_ADDR_bif_dma_r_masked_intr 140 | ||
326 | |||
327 | /* Register rw_pin0_cfg, scope bif_dma, type rw */ | ||
328 | typedef struct { | ||
329 | unsigned int master_ch : 2; | ||
330 | unsigned int master_mode : 3; | ||
331 | unsigned int slave_ch : 2; | ||
332 | unsigned int slave_mode : 3; | ||
333 | unsigned int dummy1 : 22; | ||
334 | } reg_bif_dma_rw_pin0_cfg; | ||
335 | #define REG_RD_ADDR_bif_dma_rw_pin0_cfg 160 | ||
336 | #define REG_WR_ADDR_bif_dma_rw_pin0_cfg 160 | ||
337 | |||
338 | /* Register rw_pin1_cfg, scope bif_dma, type rw */ | ||
339 | typedef struct { | ||
340 | unsigned int master_ch : 2; | ||
341 | unsigned int master_mode : 3; | ||
342 | unsigned int slave_ch : 2; | ||
343 | unsigned int slave_mode : 3; | ||
344 | unsigned int dummy1 : 22; | ||
345 | } reg_bif_dma_rw_pin1_cfg; | ||
346 | #define REG_RD_ADDR_bif_dma_rw_pin1_cfg 164 | ||
347 | #define REG_WR_ADDR_bif_dma_rw_pin1_cfg 164 | ||
348 | |||
349 | /* Register rw_pin2_cfg, scope bif_dma, type rw */ | ||
350 | typedef struct { | ||
351 | unsigned int master_ch : 2; | ||
352 | unsigned int master_mode : 3; | ||
353 | unsigned int slave_ch : 2; | ||
354 | unsigned int slave_mode : 3; | ||
355 | unsigned int dummy1 : 22; | ||
356 | } reg_bif_dma_rw_pin2_cfg; | ||
357 | #define REG_RD_ADDR_bif_dma_rw_pin2_cfg 168 | ||
358 | #define REG_WR_ADDR_bif_dma_rw_pin2_cfg 168 | ||
359 | |||
360 | /* Register rw_pin3_cfg, scope bif_dma, type rw */ | ||
361 | typedef struct { | ||
362 | unsigned int master_ch : 2; | ||
363 | unsigned int master_mode : 3; | ||
364 | unsigned int slave_ch : 2; | ||
365 | unsigned int slave_mode : 3; | ||
366 | unsigned int dummy1 : 22; | ||
367 | } reg_bif_dma_rw_pin3_cfg; | ||
368 | #define REG_RD_ADDR_bif_dma_rw_pin3_cfg 172 | ||
369 | #define REG_WR_ADDR_bif_dma_rw_pin3_cfg 172 | ||
370 | |||
371 | /* Register rw_pin4_cfg, scope bif_dma, type rw */ | ||
372 | typedef struct { | ||
373 | unsigned int master_ch : 2; | ||
374 | unsigned int master_mode : 3; | ||
375 | unsigned int slave_ch : 2; | ||
376 | unsigned int slave_mode : 3; | ||
377 | unsigned int dummy1 : 22; | ||
378 | } reg_bif_dma_rw_pin4_cfg; | ||
379 | #define REG_RD_ADDR_bif_dma_rw_pin4_cfg 176 | ||
380 | #define REG_WR_ADDR_bif_dma_rw_pin4_cfg 176 | ||
381 | |||
382 | /* Register rw_pin5_cfg, scope bif_dma, type rw */ | ||
383 | typedef struct { | ||
384 | unsigned int master_ch : 2; | ||
385 | unsigned int master_mode : 3; | ||
386 | unsigned int slave_ch : 2; | ||
387 | unsigned int slave_mode : 3; | ||
388 | unsigned int dummy1 : 22; | ||
389 | } reg_bif_dma_rw_pin5_cfg; | ||
390 | #define REG_RD_ADDR_bif_dma_rw_pin5_cfg 180 | ||
391 | #define REG_WR_ADDR_bif_dma_rw_pin5_cfg 180 | ||
392 | |||
393 | /* Register rw_pin6_cfg, scope bif_dma, type rw */ | ||
394 | typedef struct { | ||
395 | unsigned int master_ch : 2; | ||
396 | unsigned int master_mode : 3; | ||
397 | unsigned int slave_ch : 2; | ||
398 | unsigned int slave_mode : 3; | ||
399 | unsigned int dummy1 : 22; | ||
400 | } reg_bif_dma_rw_pin6_cfg; | ||
401 | #define REG_RD_ADDR_bif_dma_rw_pin6_cfg 184 | ||
402 | #define REG_WR_ADDR_bif_dma_rw_pin6_cfg 184 | ||
403 | |||
404 | /* Register rw_pin7_cfg, scope bif_dma, type rw */ | ||
405 | typedef struct { | ||
406 | unsigned int master_ch : 2; | ||
407 | unsigned int master_mode : 3; | ||
408 | unsigned int slave_ch : 2; | ||
409 | unsigned int slave_mode : 3; | ||
410 | unsigned int dummy1 : 22; | ||
411 | } reg_bif_dma_rw_pin7_cfg; | ||
412 | #define REG_RD_ADDR_bif_dma_rw_pin7_cfg 188 | ||
413 | #define REG_WR_ADDR_bif_dma_rw_pin7_cfg 188 | ||
414 | |||
415 | /* Register r_pin_stat, scope bif_dma, type r */ | ||
416 | typedef struct { | ||
417 | unsigned int pin0 : 1; | ||
418 | unsigned int pin1 : 1; | ||
419 | unsigned int pin2 : 1; | ||
420 | unsigned int pin3 : 1; | ||
421 | unsigned int pin4 : 1; | ||
422 | unsigned int pin5 : 1; | ||
423 | unsigned int pin6 : 1; | ||
424 | unsigned int pin7 : 1; | ||
425 | unsigned int dummy1 : 24; | ||
426 | } reg_bif_dma_r_pin_stat; | ||
427 | #define REG_RD_ADDR_bif_dma_r_pin_stat 192 | ||
428 | |||
429 | |||
430 | /* Constants */ | ||
431 | enum { | ||
432 | regk_bif_dma_as_master = 0x00000001, | ||
433 | regk_bif_dma_as_slave = 0x00000001, | ||
434 | regk_bif_dma_burst1 = 0x00000000, | ||
435 | regk_bif_dma_burst8 = 0x00000001, | ||
436 | regk_bif_dma_bw16 = 0x00000001, | ||
437 | regk_bif_dma_bw32 = 0x00000002, | ||
438 | regk_bif_dma_bw8 = 0x00000000, | ||
439 | regk_bif_dma_dack = 0x00000006, | ||
440 | regk_bif_dma_dack_inv = 0x00000007, | ||
441 | regk_bif_dma_force = 0x00000001, | ||
442 | regk_bif_dma_hi = 0x00000003, | ||
443 | regk_bif_dma_inv = 0x00000003, | ||
444 | regk_bif_dma_lo = 0x00000002, | ||
445 | regk_bif_dma_master = 0x00000001, | ||
446 | regk_bif_dma_no = 0x00000000, | ||
447 | regk_bif_dma_norm = 0x00000002, | ||
448 | regk_bif_dma_off = 0x00000000, | ||
449 | regk_bif_dma_rw_ch0_ctrl_default = 0x00000000, | ||
450 | regk_bif_dma_rw_ch0_start_default = 0x00000000, | ||
451 | regk_bif_dma_rw_ch1_ctrl_default = 0x00000000, | ||
452 | regk_bif_dma_rw_ch1_start_default = 0x00000000, | ||
453 | regk_bif_dma_rw_ch2_ctrl_default = 0x00000000, | ||
454 | regk_bif_dma_rw_ch2_start_default = 0x00000000, | ||
455 | regk_bif_dma_rw_ch3_ctrl_default = 0x00000000, | ||
456 | regk_bif_dma_rw_ch3_start_default = 0x00000000, | ||
457 | regk_bif_dma_rw_intr_mask_default = 0x00000000, | ||
458 | regk_bif_dma_rw_pin0_cfg_default = 0x00000000, | ||
459 | regk_bif_dma_rw_pin1_cfg_default = 0x00000000, | ||
460 | regk_bif_dma_rw_pin2_cfg_default = 0x00000000, | ||
461 | regk_bif_dma_rw_pin3_cfg_default = 0x00000000, | ||
462 | regk_bif_dma_rw_pin4_cfg_default = 0x00000000, | ||
463 | regk_bif_dma_rw_pin5_cfg_default = 0x00000000, | ||
464 | regk_bif_dma_rw_pin6_cfg_default = 0x00000000, | ||
465 | regk_bif_dma_rw_pin7_cfg_default = 0x00000000, | ||
466 | regk_bif_dma_slave = 0x00000002, | ||
467 | regk_bif_dma_sreq = 0x00000006, | ||
468 | regk_bif_dma_sreq_inv = 0x00000007, | ||
469 | regk_bif_dma_tc = 0x00000004, | ||
470 | regk_bif_dma_tc_inv = 0x00000005, | ||
471 | regk_bif_dma_yes = 0x00000001 | ||
472 | }; | ||
473 | #endif /* __bif_dma_defs_h */ | ||
diff --git a/arch/cris/include/arch-v32/mach-fs/mach/hwregs/bif_slave_defs.h b/arch/cris/include/arch-v32/mach-fs/mach/hwregs/bif_slave_defs.h new file mode 100644 index 000000000000..0c434585a3f9 --- /dev/null +++ b/arch/cris/include/arch-v32/mach-fs/mach/hwregs/bif_slave_defs.h | |||
@@ -0,0 +1,249 @@ | |||
1 | #ifndef __bif_slave_defs_h | ||
2 | #define __bif_slave_defs_h | ||
3 | |||
4 | /* | ||
5 | * This file is autogenerated from | ||
6 | * file: ../../inst/bif/rtl/bif_slave_regs.r | ||
7 | * id: bif_slave_regs.r,v 1.5 2005/02/04 13:55:28 perz Exp | ||
8 | * last modfied: Mon Apr 11 16:06:34 2005 | ||
9 | * | ||
10 | * by /n/asic/design/tools/rdesc/src/rdes2c --outfile bif_slave_defs.h ../../inst/bif/rtl/bif_slave_regs.r | ||
11 | * id: $Id: bif_slave_defs.h,v 1.1 2007/02/13 11:55:30 starvik Exp $ | ||
12 | * Any changes here will be lost. | ||
13 | * | ||
14 | * -*- buffer-read-only: t -*- | ||
15 | */ | ||
16 | /* Main access macros */ | ||
17 | #ifndef REG_RD | ||
18 | #define REG_RD( scope, inst, reg ) \ | ||
19 | REG_READ( reg_##scope##_##reg, \ | ||
20 | (inst) + REG_RD_ADDR_##scope##_##reg ) | ||
21 | #endif | ||
22 | |||
23 | #ifndef REG_WR | ||
24 | #define REG_WR( scope, inst, reg, val ) \ | ||
25 | REG_WRITE( reg_##scope##_##reg, \ | ||
26 | (inst) + REG_WR_ADDR_##scope##_##reg, (val) ) | ||
27 | #endif | ||
28 | |||
29 | #ifndef REG_RD_VECT | ||
30 | #define REG_RD_VECT( scope, inst, reg, index ) \ | ||
31 | REG_READ( reg_##scope##_##reg, \ | ||
32 | (inst) + REG_RD_ADDR_##scope##_##reg + \ | ||
33 | (index) * STRIDE_##scope##_##reg ) | ||
34 | #endif | ||
35 | |||
36 | #ifndef REG_WR_VECT | ||
37 | #define REG_WR_VECT( scope, inst, reg, index, val ) \ | ||
38 | REG_WRITE( reg_##scope##_##reg, \ | ||
39 | (inst) + REG_WR_ADDR_##scope##_##reg + \ | ||
40 | (index) * STRIDE_##scope##_##reg, (val) ) | ||
41 | #endif | ||
42 | |||
43 | #ifndef REG_RD_INT | ||
44 | #define REG_RD_INT( scope, inst, reg ) \ | ||
45 | REG_READ( int, (inst) + REG_RD_ADDR_##scope##_##reg ) | ||
46 | #endif | ||
47 | |||
48 | #ifndef REG_WR_INT | ||
49 | #define REG_WR_INT( scope, inst, reg, val ) \ | ||
50 | REG_WRITE( int, (inst) + REG_WR_ADDR_##scope##_##reg, (val) ) | ||
51 | #endif | ||
52 | |||
53 | #ifndef REG_RD_INT_VECT | ||
54 | #define REG_RD_INT_VECT( scope, inst, reg, index ) \ | ||
55 | REG_READ( int, (inst) + REG_RD_ADDR_##scope##_##reg + \ | ||
56 | (index) * STRIDE_##scope##_##reg ) | ||
57 | #endif | ||
58 | |||
59 | #ifndef REG_WR_INT_VECT | ||
60 | #define REG_WR_INT_VECT( scope, inst, reg, index, val ) \ | ||
61 | REG_WRITE( int, (inst) + REG_WR_ADDR_##scope##_##reg + \ | ||
62 | (index) * STRIDE_##scope##_##reg, (val) ) | ||
63 | #endif | ||
64 | |||
65 | #ifndef REG_TYPE_CONV | ||
66 | #define REG_TYPE_CONV( type, orgtype, val ) \ | ||
67 | ( { union { orgtype o; type n; } r; r.o = val; r.n; } ) | ||
68 | #endif | ||
69 | |||
70 | #ifndef reg_page_size | ||
71 | #define reg_page_size 8192 | ||
72 | #endif | ||
73 | |||
74 | #ifndef REG_ADDR | ||
75 | #define REG_ADDR( scope, inst, reg ) \ | ||
76 | ( (inst) + REG_RD_ADDR_##scope##_##reg ) | ||
77 | #endif | ||
78 | |||
79 | #ifndef REG_ADDR_VECT | ||
80 | #define REG_ADDR_VECT( scope, inst, reg, index ) \ | ||
81 | ( (inst) + REG_RD_ADDR_##scope##_##reg + \ | ||
82 | (index) * STRIDE_##scope##_##reg ) | ||
83 | #endif | ||
84 | |||
85 | /* C-code for register scope bif_slave */ | ||
86 | |||
87 | /* Register rw_slave_cfg, scope bif_slave, type rw */ | ||
88 | typedef struct { | ||
89 | unsigned int slave_id : 3; | ||
90 | unsigned int use_slave_id : 1; | ||
91 | unsigned int boot_rdy : 1; | ||
92 | unsigned int loopback : 1; | ||
93 | unsigned int dis : 1; | ||
94 | unsigned int dummy1 : 25; | ||
95 | } reg_bif_slave_rw_slave_cfg; | ||
96 | #define REG_RD_ADDR_bif_slave_rw_slave_cfg 0 | ||
97 | #define REG_WR_ADDR_bif_slave_rw_slave_cfg 0 | ||
98 | |||
99 | /* Register r_slave_mode, scope bif_slave, type r */ | ||
100 | typedef struct { | ||
101 | unsigned int ch0_mode : 1; | ||
102 | unsigned int ch1_mode : 1; | ||
103 | unsigned int ch2_mode : 1; | ||
104 | unsigned int ch3_mode : 1; | ||
105 | unsigned int dummy1 : 28; | ||
106 | } reg_bif_slave_r_slave_mode; | ||
107 | #define REG_RD_ADDR_bif_slave_r_slave_mode 4 | ||
108 | |||
109 | /* Register rw_ch0_cfg, scope bif_slave, type rw */ | ||
110 | typedef struct { | ||
111 | unsigned int rd_hold : 2; | ||
112 | unsigned int access_mode : 1; | ||
113 | unsigned int access_ctrl : 1; | ||
114 | unsigned int data_cs : 2; | ||
115 | unsigned int dummy1 : 26; | ||
116 | } reg_bif_slave_rw_ch0_cfg; | ||
117 | #define REG_RD_ADDR_bif_slave_rw_ch0_cfg 16 | ||
118 | #define REG_WR_ADDR_bif_slave_rw_ch0_cfg 16 | ||
119 | |||
120 | /* Register rw_ch1_cfg, scope bif_slave, type rw */ | ||
121 | typedef struct { | ||
122 | unsigned int rd_hold : 2; | ||
123 | unsigned int access_mode : 1; | ||
124 | unsigned int access_ctrl : 1; | ||
125 | unsigned int data_cs : 2; | ||
126 | unsigned int dummy1 : 26; | ||
127 | } reg_bif_slave_rw_ch1_cfg; | ||
128 | #define REG_RD_ADDR_bif_slave_rw_ch1_cfg 20 | ||
129 | #define REG_WR_ADDR_bif_slave_rw_ch1_cfg 20 | ||
130 | |||
131 | /* Register rw_ch2_cfg, scope bif_slave, type rw */ | ||
132 | typedef struct { | ||
133 | unsigned int rd_hold : 2; | ||
134 | unsigned int access_mode : 1; | ||
135 | unsigned int access_ctrl : 1; | ||
136 | unsigned int data_cs : 2; | ||
137 | unsigned int dummy1 : 26; | ||
138 | } reg_bif_slave_rw_ch2_cfg; | ||
139 | #define REG_RD_ADDR_bif_slave_rw_ch2_cfg 24 | ||
140 | #define REG_WR_ADDR_bif_slave_rw_ch2_cfg 24 | ||
141 | |||
142 | /* Register rw_ch3_cfg, scope bif_slave, type rw */ | ||
143 | typedef struct { | ||
144 | unsigned int rd_hold : 2; | ||
145 | unsigned int access_mode : 1; | ||
146 | unsigned int access_ctrl : 1; | ||
147 | unsigned int data_cs : 2; | ||
148 | unsigned int dummy1 : 26; | ||
149 | } reg_bif_slave_rw_ch3_cfg; | ||
150 | #define REG_RD_ADDR_bif_slave_rw_ch3_cfg 28 | ||
151 | #define REG_WR_ADDR_bif_slave_rw_ch3_cfg 28 | ||
152 | |||
153 | /* Register rw_arb_cfg, scope bif_slave, type rw */ | ||
154 | typedef struct { | ||
155 | unsigned int brin_mode : 1; | ||
156 | unsigned int brout_mode : 3; | ||
157 | unsigned int bg_mode : 3; | ||
158 | unsigned int release : 2; | ||
159 | unsigned int acquire : 1; | ||
160 | unsigned int settle_time : 2; | ||
161 | unsigned int dram_ctrl : 1; | ||
162 | unsigned int dummy1 : 19; | ||
163 | } reg_bif_slave_rw_arb_cfg; | ||
164 | #define REG_RD_ADDR_bif_slave_rw_arb_cfg 32 | ||
165 | #define REG_WR_ADDR_bif_slave_rw_arb_cfg 32 | ||
166 | |||
167 | /* Register r_arb_stat, scope bif_slave, type r */ | ||
168 | typedef struct { | ||
169 | unsigned int init_mode : 1; | ||
170 | unsigned int mode : 1; | ||
171 | unsigned int brin : 1; | ||
172 | unsigned int brout : 1; | ||
173 | unsigned int bg : 1; | ||
174 | unsigned int dummy1 : 27; | ||
175 | } reg_bif_slave_r_arb_stat; | ||
176 | #define REG_RD_ADDR_bif_slave_r_arb_stat 36 | ||
177 | |||
178 | /* Register rw_intr_mask, scope bif_slave, type rw */ | ||
179 | typedef struct { | ||
180 | unsigned int bus_release : 1; | ||
181 | unsigned int bus_acquire : 1; | ||
182 | unsigned int dummy1 : 30; | ||
183 | } reg_bif_slave_rw_intr_mask; | ||
184 | #define REG_RD_ADDR_bif_slave_rw_intr_mask 64 | ||
185 | #define REG_WR_ADDR_bif_slave_rw_intr_mask 64 | ||
186 | |||
187 | /* Register rw_ack_intr, scope bif_slave, type rw */ | ||
188 | typedef struct { | ||
189 | unsigned int bus_release : 1; | ||
190 | unsigned int bus_acquire : 1; | ||
191 | unsigned int dummy1 : 30; | ||
192 | } reg_bif_slave_rw_ack_intr; | ||
193 | #define REG_RD_ADDR_bif_slave_rw_ack_intr 68 | ||
194 | #define REG_WR_ADDR_bif_slave_rw_ack_intr 68 | ||
195 | |||
196 | /* Register r_intr, scope bif_slave, type r */ | ||
197 | typedef struct { | ||
198 | unsigned int bus_release : 1; | ||
199 | unsigned int bus_acquire : 1; | ||
200 | unsigned int dummy1 : 30; | ||
201 | } reg_bif_slave_r_intr; | ||
202 | #define REG_RD_ADDR_bif_slave_r_intr 72 | ||
203 | |||
204 | /* Register r_masked_intr, scope bif_slave, type r */ | ||
205 | typedef struct { | ||
206 | unsigned int bus_release : 1; | ||
207 | unsigned int bus_acquire : 1; | ||
208 | unsigned int dummy1 : 30; | ||
209 | } reg_bif_slave_r_masked_intr; | ||
210 | #define REG_RD_ADDR_bif_slave_r_masked_intr 76 | ||
211 | |||
212 | |||
213 | /* Constants */ | ||
214 | enum { | ||
215 | regk_bif_slave_active_hi = 0x00000003, | ||
216 | regk_bif_slave_active_lo = 0x00000002, | ||
217 | regk_bif_slave_addr = 0x00000000, | ||
218 | regk_bif_slave_always = 0x00000001, | ||
219 | regk_bif_slave_at_idle = 0x00000002, | ||
220 | regk_bif_slave_burst_end = 0x00000003, | ||
221 | regk_bif_slave_dma = 0x00000001, | ||
222 | regk_bif_slave_hi = 0x00000003, | ||
223 | regk_bif_slave_inv = 0x00000001, | ||
224 | regk_bif_slave_lo = 0x00000002, | ||
225 | regk_bif_slave_local = 0x00000001, | ||
226 | regk_bif_slave_master = 0x00000000, | ||
227 | regk_bif_slave_mode_reg = 0x00000001, | ||
228 | regk_bif_slave_no = 0x00000000, | ||
229 | regk_bif_slave_norm = 0x00000000, | ||
230 | regk_bif_slave_on_access = 0x00000000, | ||
231 | regk_bif_slave_rw_arb_cfg_default = 0x00000000, | ||
232 | regk_bif_slave_rw_ch0_cfg_default = 0x00000000, | ||
233 | regk_bif_slave_rw_ch1_cfg_default = 0x00000000, | ||
234 | regk_bif_slave_rw_ch2_cfg_default = 0x00000000, | ||
235 | regk_bif_slave_rw_ch3_cfg_default = 0x00000000, | ||
236 | regk_bif_slave_rw_intr_mask_default = 0x00000000, | ||
237 | regk_bif_slave_rw_slave_cfg_default = 0x00000000, | ||
238 | regk_bif_slave_shared = 0x00000000, | ||
239 | regk_bif_slave_slave = 0x00000001, | ||
240 | regk_bif_slave_t0ns = 0x00000003, | ||
241 | regk_bif_slave_t10ns = 0x00000002, | ||
242 | regk_bif_slave_t20ns = 0x00000003, | ||
243 | regk_bif_slave_t30ns = 0x00000002, | ||
244 | regk_bif_slave_t40ns = 0x00000001, | ||
245 | regk_bif_slave_t50ns = 0x00000000, | ||
246 | regk_bif_slave_yes = 0x00000001, | ||
247 | regk_bif_slave_z = 0x00000004 | ||
248 | }; | ||
249 | #endif /* __bif_slave_defs_h */ | ||
diff --git a/arch/cris/include/arch-v32/mach-fs/mach/hwregs/config_defs.h b/arch/cris/include/arch-v32/mach-fs/mach/hwregs/config_defs.h new file mode 100644 index 000000000000..abc5f20705f7 --- /dev/null +++ b/arch/cris/include/arch-v32/mach-fs/mach/hwregs/config_defs.h | |||
@@ -0,0 +1,142 @@ | |||
1 | #ifndef __config_defs_h | ||
2 | #define __config_defs_h | ||
3 | |||
4 | /* | ||
5 | * This file is autogenerated from | ||
6 | * file: ../../rtl/config_regs.r | ||
7 | * id: config_regs.r,v 1.23 2004/03/04 11:34:42 mikaeln Exp | ||
8 | * last modfied: Thu Mar 4 12:34:39 2004 | ||
9 | * | ||
10 | * by /n/asic/design/tools/rdesc/src/rdes2c --outfile config_defs.h ../../rtl/config_regs.r | ||
11 | * id: $Id: config_defs.h,v 1.1 2007/02/13 11:55:30 starvik Exp $ | ||
12 | * Any changes here will be lost. | ||
13 | * | ||
14 | * -*- buffer-read-only: t -*- | ||
15 | */ | ||
16 | /* Main access macros */ | ||
17 | #ifndef REG_RD | ||
18 | #define REG_RD( scope, inst, reg ) \ | ||
19 | REG_READ( reg_##scope##_##reg, \ | ||
20 | (inst) + REG_RD_ADDR_##scope##_##reg ) | ||
21 | #endif | ||
22 | |||
23 | #ifndef REG_WR | ||
24 | #define REG_WR( scope, inst, reg, val ) \ | ||
25 | REG_WRITE( reg_##scope##_##reg, \ | ||
26 | (inst) + REG_WR_ADDR_##scope##_##reg, (val) ) | ||
27 | #endif | ||
28 | |||
29 | #ifndef REG_RD_VECT | ||
30 | #define REG_RD_VECT( scope, inst, reg, index ) \ | ||
31 | REG_READ( reg_##scope##_##reg, \ | ||
32 | (inst) + REG_RD_ADDR_##scope##_##reg + \ | ||
33 | (index) * STRIDE_##scope##_##reg ) | ||
34 | #endif | ||
35 | |||
36 | #ifndef REG_WR_VECT | ||
37 | #define REG_WR_VECT( scope, inst, reg, index, val ) \ | ||
38 | REG_WRITE( reg_##scope##_##reg, \ | ||
39 | (inst) + REG_WR_ADDR_##scope##_##reg + \ | ||
40 | (index) * STRIDE_##scope##_##reg, (val) ) | ||
41 | #endif | ||
42 | |||
43 | #ifndef REG_RD_INT | ||
44 | #define REG_RD_INT( scope, inst, reg ) \ | ||
45 | REG_READ( int, (inst) + REG_RD_ADDR_##scope##_##reg ) | ||
46 | #endif | ||
47 | |||
48 | #ifndef REG_WR_INT | ||
49 | #define REG_WR_INT( scope, inst, reg, val ) \ | ||
50 | REG_WRITE( int, (inst) + REG_WR_ADDR_##scope##_##reg, (val) ) | ||
51 | #endif | ||
52 | |||
53 | #ifndef REG_RD_INT_VECT | ||
54 | #define REG_RD_INT_VECT( scope, inst, reg, index ) \ | ||
55 | REG_READ( int, (inst) + REG_RD_ADDR_##scope##_##reg + \ | ||
56 | (index) * STRIDE_##scope##_##reg ) | ||
57 | #endif | ||
58 | |||
59 | #ifndef REG_WR_INT_VECT | ||
60 | #define REG_WR_INT_VECT( scope, inst, reg, index, val ) \ | ||
61 | REG_WRITE( int, (inst) + REG_WR_ADDR_##scope##_##reg + \ | ||
62 | (index) * STRIDE_##scope##_##reg, (val) ) | ||
63 | #endif | ||
64 | |||
65 | #ifndef REG_TYPE_CONV | ||
66 | #define REG_TYPE_CONV( type, orgtype, val ) \ | ||
67 | ( { union { orgtype o; type n; } r; r.o = val; r.n; } ) | ||
68 | #endif | ||
69 | |||
70 | #ifndef reg_page_size | ||
71 | #define reg_page_size 8192 | ||
72 | #endif | ||
73 | |||
74 | #ifndef REG_ADDR | ||
75 | #define REG_ADDR( scope, inst, reg ) \ | ||
76 | ( (inst) + REG_RD_ADDR_##scope##_##reg ) | ||
77 | #endif | ||
78 | |||
79 | #ifndef REG_ADDR_VECT | ||
80 | #define REG_ADDR_VECT( scope, inst, reg, index ) \ | ||
81 | ( (inst) + REG_RD_ADDR_##scope##_##reg + \ | ||
82 | (index) * STRIDE_##scope##_##reg ) | ||
83 | #endif | ||
84 | |||
85 | /* C-code for register scope config */ | ||
86 | |||
87 | /* Register r_bootsel, scope config, type r */ | ||
88 | typedef struct { | ||
89 | unsigned int boot_mode : 3; | ||
90 | unsigned int full_duplex : 1; | ||
91 | unsigned int user : 1; | ||
92 | unsigned int pll : 1; | ||
93 | unsigned int flash_bw : 1; | ||
94 | unsigned int dummy1 : 25; | ||
95 | } reg_config_r_bootsel; | ||
96 | #define REG_RD_ADDR_config_r_bootsel 0 | ||
97 | |||
98 | /* Register rw_clk_ctrl, scope config, type rw */ | ||
99 | typedef struct { | ||
100 | unsigned int pll : 1; | ||
101 | unsigned int cpu : 1; | ||
102 | unsigned int iop : 1; | ||
103 | unsigned int dma01_eth0 : 1; | ||
104 | unsigned int dma23 : 1; | ||
105 | unsigned int dma45 : 1; | ||
106 | unsigned int dma67 : 1; | ||
107 | unsigned int dma89_strcop : 1; | ||
108 | unsigned int bif : 1; | ||
109 | unsigned int fix_io : 1; | ||
110 | unsigned int dummy1 : 22; | ||
111 | } reg_config_rw_clk_ctrl; | ||
112 | #define REG_RD_ADDR_config_rw_clk_ctrl 4 | ||
113 | #define REG_WR_ADDR_config_rw_clk_ctrl 4 | ||
114 | |||
115 | /* Register rw_pad_ctrl, scope config, type rw */ | ||
116 | typedef struct { | ||
117 | unsigned int usb_susp : 1; | ||
118 | unsigned int phyrst_n : 1; | ||
119 | unsigned int dummy1 : 30; | ||
120 | } reg_config_rw_pad_ctrl; | ||
121 | #define REG_RD_ADDR_config_rw_pad_ctrl 8 | ||
122 | #define REG_WR_ADDR_config_rw_pad_ctrl 8 | ||
123 | |||
124 | |||
125 | /* Constants */ | ||
126 | enum { | ||
127 | regk_config_bw16 = 0x00000000, | ||
128 | regk_config_bw32 = 0x00000001, | ||
129 | regk_config_master = 0x00000005, | ||
130 | regk_config_nand = 0x00000003, | ||
131 | regk_config_net_rx = 0x00000001, | ||
132 | regk_config_net_tx_rx = 0x00000002, | ||
133 | regk_config_no = 0x00000000, | ||
134 | regk_config_none = 0x00000007, | ||
135 | regk_config_nor = 0x00000000, | ||
136 | regk_config_rw_clk_ctrl_default = 0x00000002, | ||
137 | regk_config_rw_pad_ctrl_default = 0x00000000, | ||
138 | regk_config_ser = 0x00000004, | ||
139 | regk_config_slave = 0x00000006, | ||
140 | regk_config_yes = 0x00000001 | ||
141 | }; | ||
142 | #endif /* __config_defs_h */ | ||
diff --git a/arch/cris/include/arch-v32/mach-fs/mach/hwregs/gio_defs.h b/arch/cris/include/arch-v32/mach-fs/mach/hwregs/gio_defs.h new file mode 100644 index 000000000000..26aa3efcf91b --- /dev/null +++ b/arch/cris/include/arch-v32/mach-fs/mach/hwregs/gio_defs.h | |||
@@ -0,0 +1,295 @@ | |||
1 | #ifndef __gio_defs_h | ||
2 | #define __gio_defs_h | ||
3 | |||
4 | /* | ||
5 | * This file is autogenerated from | ||
6 | * file: ../../inst/gio/rtl/gio_regs.r | ||
7 | * id: gio_regs.r,v 1.5 2005/02/04 09:43:21 perz Exp | ||
8 | * last modfied: Mon Apr 11 16:07:47 2005 | ||
9 | * | ||
10 | * by /n/asic/design/tools/rdesc/src/rdes2c --outfile gio_defs.h ../../inst/gio/rtl/gio_regs.r | ||
11 | * id: $Id: gio_defs.h,v 1.1 2007/02/13 11:55:30 starvik Exp $ | ||
12 | * Any changes here will be lost. | ||
13 | * | ||
14 | * -*- buffer-read-only: t -*- | ||
15 | */ | ||
16 | /* Main access macros */ | ||
17 | #ifndef REG_RD | ||
18 | #define REG_RD( scope, inst, reg ) \ | ||
19 | REG_READ( reg_##scope##_##reg, \ | ||
20 | (inst) + REG_RD_ADDR_##scope##_##reg ) | ||
21 | #endif | ||
22 | |||
23 | #ifndef REG_WR | ||
24 | #define REG_WR( scope, inst, reg, val ) \ | ||
25 | REG_WRITE( reg_##scope##_##reg, \ | ||
26 | (inst) + REG_WR_ADDR_##scope##_##reg, (val) ) | ||
27 | #endif | ||
28 | |||
29 | #ifndef REG_RD_VECT | ||
30 | #define REG_RD_VECT( scope, inst, reg, index ) \ | ||
31 | REG_READ( reg_##scope##_##reg, \ | ||
32 | (inst) + REG_RD_ADDR_##scope##_##reg + \ | ||
33 | (index) * STRIDE_##scope##_##reg ) | ||
34 | #endif | ||
35 | |||
36 | #ifndef REG_WR_VECT | ||
37 | #define REG_WR_VECT( scope, inst, reg, index, val ) \ | ||
38 | REG_WRITE( reg_##scope##_##reg, \ | ||
39 | (inst) + REG_WR_ADDR_##scope##_##reg + \ | ||
40 | (index) * STRIDE_##scope##_##reg, (val) ) | ||
41 | #endif | ||
42 | |||
43 | #ifndef REG_RD_INT | ||
44 | #define REG_RD_INT( scope, inst, reg ) \ | ||
45 | REG_READ( int, (inst) + REG_RD_ADDR_##scope##_##reg ) | ||
46 | #endif | ||
47 | |||
48 | #ifndef REG_WR_INT | ||
49 | #define REG_WR_INT( scope, inst, reg, val ) \ | ||
50 | REG_WRITE( int, (inst) + REG_WR_ADDR_##scope##_##reg, (val) ) | ||
51 | #endif | ||
52 | |||
53 | #ifndef REG_RD_INT_VECT | ||
54 | #define REG_RD_INT_VECT( scope, inst, reg, index ) \ | ||
55 | REG_READ( int, (inst) + REG_RD_ADDR_##scope##_##reg + \ | ||
56 | (index) * STRIDE_##scope##_##reg ) | ||
57 | #endif | ||
58 | |||
59 | #ifndef REG_WR_INT_VECT | ||
60 | #define REG_WR_INT_VECT( scope, inst, reg, index, val ) \ | ||
61 | REG_WRITE( int, (inst) + REG_WR_ADDR_##scope##_##reg + \ | ||
62 | (index) * STRIDE_##scope##_##reg, (val) ) | ||
63 | #endif | ||
64 | |||
65 | #ifndef REG_TYPE_CONV | ||
66 | #define REG_TYPE_CONV( type, orgtype, val ) \ | ||
67 | ( { union { orgtype o; type n; } r; r.o = val; r.n; } ) | ||
68 | #endif | ||
69 | |||
70 | #ifndef reg_page_size | ||
71 | #define reg_page_size 8192 | ||
72 | #endif | ||
73 | |||
74 | #ifndef REG_ADDR | ||
75 | #define REG_ADDR( scope, inst, reg ) \ | ||
76 | ( (inst) + REG_RD_ADDR_##scope##_##reg ) | ||
77 | #endif | ||
78 | |||
79 | #ifndef REG_ADDR_VECT | ||
80 | #define REG_ADDR_VECT( scope, inst, reg, index ) \ | ||
81 | ( (inst) + REG_RD_ADDR_##scope##_##reg + \ | ||
82 | (index) * STRIDE_##scope##_##reg ) | ||
83 | #endif | ||
84 | |||
85 | /* C-code for register scope gio */ | ||
86 | |||
87 | /* Register rw_pa_dout, scope gio, type rw */ | ||
88 | typedef struct { | ||
89 | unsigned int data : 8; | ||
90 | unsigned int dummy1 : 24; | ||
91 | } reg_gio_rw_pa_dout; | ||
92 | #define REG_RD_ADDR_gio_rw_pa_dout 0 | ||
93 | #define REG_WR_ADDR_gio_rw_pa_dout 0 | ||
94 | |||
95 | /* Register r_pa_din, scope gio, type r */ | ||
96 | typedef struct { | ||
97 | unsigned int data : 8; | ||
98 | unsigned int dummy1 : 24; | ||
99 | } reg_gio_r_pa_din; | ||
100 | #define REG_RD_ADDR_gio_r_pa_din 4 | ||
101 | |||
102 | /* Register rw_pa_oe, scope gio, type rw */ | ||
103 | typedef struct { | ||
104 | unsigned int oe : 8; | ||
105 | unsigned int dummy1 : 24; | ||
106 | } reg_gio_rw_pa_oe; | ||
107 | #define REG_RD_ADDR_gio_rw_pa_oe 8 | ||
108 | #define REG_WR_ADDR_gio_rw_pa_oe 8 | ||
109 | |||
110 | /* Register rw_intr_cfg, scope gio, type rw */ | ||
111 | typedef struct { | ||
112 | unsigned int pa0 : 3; | ||
113 | unsigned int pa1 : 3; | ||
114 | unsigned int pa2 : 3; | ||
115 | unsigned int pa3 : 3; | ||
116 | unsigned int pa4 : 3; | ||
117 | unsigned int pa5 : 3; | ||
118 | unsigned int pa6 : 3; | ||
119 | unsigned int pa7 : 3; | ||
120 | unsigned int dummy1 : 8; | ||
121 | } reg_gio_rw_intr_cfg; | ||
122 | #define REG_RD_ADDR_gio_rw_intr_cfg 12 | ||
123 | #define REG_WR_ADDR_gio_rw_intr_cfg 12 | ||
124 | |||
125 | /* Register rw_intr_mask, scope gio, type rw */ | ||
126 | typedef struct { | ||
127 | unsigned int pa0 : 1; | ||
128 | unsigned int pa1 : 1; | ||
129 | unsigned int pa2 : 1; | ||
130 | unsigned int pa3 : 1; | ||
131 | unsigned int pa4 : 1; | ||
132 | unsigned int pa5 : 1; | ||
133 | unsigned int pa6 : 1; | ||
134 | unsigned int pa7 : 1; | ||
135 | unsigned int dummy1 : 24; | ||
136 | } reg_gio_rw_intr_mask; | ||
137 | #define REG_RD_ADDR_gio_rw_intr_mask 16 | ||
138 | #define REG_WR_ADDR_gio_rw_intr_mask 16 | ||
139 | |||
140 | /* Register rw_ack_intr, scope gio, type rw */ | ||
141 | typedef struct { | ||
142 | unsigned int pa0 : 1; | ||
143 | unsigned int pa1 : 1; | ||
144 | unsigned int pa2 : 1; | ||
145 | unsigned int pa3 : 1; | ||
146 | unsigned int pa4 : 1; | ||
147 | unsigned int pa5 : 1; | ||
148 | unsigned int pa6 : 1; | ||
149 | unsigned int pa7 : 1; | ||
150 | unsigned int dummy1 : 24; | ||
151 | } reg_gio_rw_ack_intr; | ||
152 | #define REG_RD_ADDR_gio_rw_ack_intr 20 | ||
153 | #define REG_WR_ADDR_gio_rw_ack_intr 20 | ||
154 | |||
155 | /* Register r_intr, scope gio, type r */ | ||
156 | typedef struct { | ||
157 | unsigned int pa0 : 1; | ||
158 | unsigned int pa1 : 1; | ||
159 | unsigned int pa2 : 1; | ||
160 | unsigned int pa3 : 1; | ||
161 | unsigned int pa4 : 1; | ||
162 | unsigned int pa5 : 1; | ||
163 | unsigned int pa6 : 1; | ||
164 | unsigned int pa7 : 1; | ||
165 | unsigned int dummy1 : 24; | ||
166 | } reg_gio_r_intr; | ||
167 | #define REG_RD_ADDR_gio_r_intr 24 | ||
168 | |||
169 | /* Register r_masked_intr, scope gio, type r */ | ||
170 | typedef struct { | ||
171 | unsigned int pa0 : 1; | ||
172 | unsigned int pa1 : 1; | ||
173 | unsigned int pa2 : 1; | ||
174 | unsigned int pa3 : 1; | ||
175 | unsigned int pa4 : 1; | ||
176 | unsigned int pa5 : 1; | ||
177 | unsigned int pa6 : 1; | ||
178 | unsigned int pa7 : 1; | ||
179 | unsigned int dummy1 : 24; | ||
180 | } reg_gio_r_masked_intr; | ||
181 | #define REG_RD_ADDR_gio_r_masked_intr 28 | ||
182 | |||
183 | /* Register rw_pb_dout, scope gio, type rw */ | ||
184 | typedef struct { | ||
185 | unsigned int data : 18; | ||
186 | unsigned int dummy1 : 14; | ||
187 | } reg_gio_rw_pb_dout; | ||
188 | #define REG_RD_ADDR_gio_rw_pb_dout 32 | ||
189 | #define REG_WR_ADDR_gio_rw_pb_dout 32 | ||
190 | |||
191 | /* Register r_pb_din, scope gio, type r */ | ||
192 | typedef struct { | ||
193 | unsigned int data : 18; | ||
194 | unsigned int dummy1 : 14; | ||
195 | } reg_gio_r_pb_din; | ||
196 | #define REG_RD_ADDR_gio_r_pb_din 36 | ||
197 | |||
198 | /* Register rw_pb_oe, scope gio, type rw */ | ||
199 | typedef struct { | ||
200 | unsigned int oe : 18; | ||
201 | unsigned int dummy1 : 14; | ||
202 | } reg_gio_rw_pb_oe; | ||
203 | #define REG_RD_ADDR_gio_rw_pb_oe 40 | ||
204 | #define REG_WR_ADDR_gio_rw_pb_oe 40 | ||
205 | |||
206 | /* Register rw_pc_dout, scope gio, type rw */ | ||
207 | typedef struct { | ||
208 | unsigned int data : 18; | ||
209 | unsigned int dummy1 : 14; | ||
210 | } reg_gio_rw_pc_dout; | ||
211 | #define REG_RD_ADDR_gio_rw_pc_dout 48 | ||
212 | #define REG_WR_ADDR_gio_rw_pc_dout 48 | ||
213 | |||
214 | /* Register r_pc_din, scope gio, type r */ | ||
215 | typedef struct { | ||
216 | unsigned int data : 18; | ||
217 | unsigned int dummy1 : 14; | ||
218 | } reg_gio_r_pc_din; | ||
219 | #define REG_RD_ADDR_gio_r_pc_din 52 | ||
220 | |||
221 | /* Register rw_pc_oe, scope gio, type rw */ | ||
222 | typedef struct { | ||
223 | unsigned int oe : 18; | ||
224 | unsigned int dummy1 : 14; | ||
225 | } reg_gio_rw_pc_oe; | ||
226 | #define REG_RD_ADDR_gio_rw_pc_oe 56 | ||
227 | #define REG_WR_ADDR_gio_rw_pc_oe 56 | ||
228 | |||
229 | /* Register rw_pd_dout, scope gio, type rw */ | ||
230 | typedef struct { | ||
231 | unsigned int data : 18; | ||
232 | unsigned int dummy1 : 14; | ||
233 | } reg_gio_rw_pd_dout; | ||
234 | #define REG_RD_ADDR_gio_rw_pd_dout 64 | ||
235 | #define REG_WR_ADDR_gio_rw_pd_dout 64 | ||
236 | |||
237 | /* Register r_pd_din, scope gio, type r */ | ||
238 | typedef struct { | ||
239 | unsigned int data : 18; | ||
240 | unsigned int dummy1 : 14; | ||
241 | } reg_gio_r_pd_din; | ||
242 | #define REG_RD_ADDR_gio_r_pd_din 68 | ||
243 | |||
244 | /* Register rw_pd_oe, scope gio, type rw */ | ||
245 | typedef struct { | ||
246 | unsigned int oe : 18; | ||
247 | unsigned int dummy1 : 14; | ||
248 | } reg_gio_rw_pd_oe; | ||
249 | #define REG_RD_ADDR_gio_rw_pd_oe 72 | ||
250 | #define REG_WR_ADDR_gio_rw_pd_oe 72 | ||
251 | |||
252 | /* Register rw_pe_dout, scope gio, type rw */ | ||
253 | typedef struct { | ||
254 | unsigned int data : 18; | ||
255 | unsigned int dummy1 : 14; | ||
256 | } reg_gio_rw_pe_dout; | ||
257 | #define REG_RD_ADDR_gio_rw_pe_dout 80 | ||
258 | #define REG_WR_ADDR_gio_rw_pe_dout 80 | ||
259 | |||
260 | /* Register r_pe_din, scope gio, type r */ | ||
261 | typedef struct { | ||
262 | unsigned int data : 18; | ||
263 | unsigned int dummy1 : 14; | ||
264 | } reg_gio_r_pe_din; | ||
265 | #define REG_RD_ADDR_gio_r_pe_din 84 | ||
266 | |||
267 | /* Register rw_pe_oe, scope gio, type rw */ | ||
268 | typedef struct { | ||
269 | unsigned int oe : 18; | ||
270 | unsigned int dummy1 : 14; | ||
271 | } reg_gio_rw_pe_oe; | ||
272 | #define REG_RD_ADDR_gio_rw_pe_oe 88 | ||
273 | #define REG_WR_ADDR_gio_rw_pe_oe 88 | ||
274 | |||
275 | |||
276 | /* Constants */ | ||
277 | enum { | ||
278 | regk_gio_anyedge = 0x00000007, | ||
279 | regk_gio_hi = 0x00000001, | ||
280 | regk_gio_lo = 0x00000002, | ||
281 | regk_gio_negedge = 0x00000006, | ||
282 | regk_gio_no = 0x00000000, | ||
283 | regk_gio_off = 0x00000000, | ||
284 | regk_gio_posedge = 0x00000005, | ||
285 | regk_gio_rw_intr_cfg_default = 0x00000000, | ||
286 | regk_gio_rw_intr_mask_default = 0x00000000, | ||
287 | regk_gio_rw_pa_oe_default = 0x00000000, | ||
288 | regk_gio_rw_pb_oe_default = 0x00000000, | ||
289 | regk_gio_rw_pc_oe_default = 0x00000000, | ||
290 | regk_gio_rw_pd_oe_default = 0x00000000, | ||
291 | regk_gio_rw_pe_oe_default = 0x00000000, | ||
292 | regk_gio_set = 0x00000003, | ||
293 | regk_gio_yes = 0x00000001 | ||
294 | }; | ||
295 | #endif /* __gio_defs_h */ | ||
diff --git a/arch/cris/include/arch-v32/mach-fs/mach/hwregs/intr_vect.h b/arch/cris/include/arch-v32/mach-fs/mach/hwregs/intr_vect.h new file mode 100644 index 000000000000..bacc2a895c21 --- /dev/null +++ b/arch/cris/include/arch-v32/mach-fs/mach/hwregs/intr_vect.h | |||
@@ -0,0 +1,41 @@ | |||
1 | /* Interrupt vector numbers autogenerated by /n/asic/design/tools/rdesc/src/rdes2intr version | ||
2 | from ../../inst/intr_vect/rtl/guinness/ivmask.config.r | ||
3 | version . */ | ||
4 | |||
5 | #ifndef _______INST_INTR_VECT_RTL_GUINNESS_IVMASK_CONFIG_R | ||
6 | #define _______INST_INTR_VECT_RTL_GUINNESS_IVMASK_CONFIG_R | ||
7 | #define MEMARB_INTR_VECT 0x31 | ||
8 | #define GEN_IO_INTR_VECT 0x32 | ||
9 | #define GIO_INTR_VECT GEN_IO_INTR_VECT | ||
10 | #define IOP0_INTR_VECT 0x33 | ||
11 | #define IOP1_INTR_VECT 0x34 | ||
12 | #define IOP2_INTR_VECT 0x35 | ||
13 | #define IOP3_INTR_VECT 0x36 | ||
14 | #define DMA0_INTR_VECT 0x37 | ||
15 | #define DMA1_INTR_VECT 0x38 | ||
16 | #define DMA2_INTR_VECT 0x39 | ||
17 | #define DMA3_INTR_VECT 0x3a | ||
18 | #define DMA4_INTR_VECT 0x3b | ||
19 | #define DMA5_INTR_VECT 0x3c | ||
20 | #define DMA6_INTR_VECT 0x3d | ||
21 | #define DMA7_INTR_VECT 0x3e | ||
22 | #define DMA8_INTR_VECT 0x3f | ||
23 | #define DMA9_INTR_VECT 0x40 | ||
24 | #define ATA_INTR_VECT 0x41 | ||
25 | #define SSER0_INTR_VECT 0x42 | ||
26 | #define SSER1_INTR_VECT 0x43 | ||
27 | #define SER0_INTR_VECT 0x44 | ||
28 | #define SER1_INTR_VECT 0x45 | ||
29 | #define SER2_INTR_VECT 0x46 | ||
30 | #define SER3_INTR_VECT 0x47 | ||
31 | #define P21_INTR_VECT 0x48 | ||
32 | #define ETH0_INTR_VECT 0x49 | ||
33 | #define ETH1_INTR_VECT 0x4a | ||
34 | #define TIMER_INTR_VECT 0x4b | ||
35 | #define TIMER0_INTR_VECT TIMER_INTR_VECT | ||
36 | #define BIF_ARB_INTR_VECT 0x4c | ||
37 | #define BIF_DMA_INTR_VECT 0x4d | ||
38 | #define EXT_INTR_VECT 0x4e | ||
39 | #define IPI_INTR_VECT 0x4f | ||
40 | #define NBR_INTR_VECT 0x50 | ||
41 | #endif | ||
diff --git a/arch/cris/include/arch-v32/mach-fs/mach/hwregs/intr_vect_defs.h b/arch/cris/include/arch-v32/mach-fs/mach/hwregs/intr_vect_defs.h new file mode 100644 index 000000000000..aa65128ae1aa --- /dev/null +++ b/arch/cris/include/arch-v32/mach-fs/mach/hwregs/intr_vect_defs.h | |||
@@ -0,0 +1,228 @@ | |||
1 | #ifndef __intr_vect_defs_h | ||
2 | #define __intr_vect_defs_h | ||
3 | |||
4 | /* | ||
5 | * This file is autogenerated from | ||
6 | * file: ../../inst/intr_vect/rtl/guinness/ivmask.config.r | ||
7 | * id: ivmask.config.r,v 1.4 2005/02/15 16:05:38 stefans Exp | ||
8 | * last modfied: Mon Apr 11 16:08:03 2005 | ||
9 | * | ||
10 | * by /n/asic/design/tools/rdesc/src/rdes2c --outfile intr_vect_defs.h ../../inst/intr_vect/rtl/guinness/ivmask.config.r | ||
11 | * id: $Id: intr_vect_defs.h,v 1.1 2007/02/13 11:55:30 starvik Exp $ | ||
12 | * Any changes here will be lost. | ||
13 | * | ||
14 | * -*- buffer-read-only: t -*- | ||
15 | */ | ||
16 | /* Main access macros */ | ||
17 | #ifndef REG_RD | ||
18 | #define REG_RD( scope, inst, reg ) \ | ||
19 | REG_READ( reg_##scope##_##reg, \ | ||
20 | (inst) + REG_RD_ADDR_##scope##_##reg ) | ||
21 | #endif | ||
22 | |||
23 | #ifndef REG_WR | ||
24 | #define REG_WR( scope, inst, reg, val ) \ | ||
25 | REG_WRITE( reg_##scope##_##reg, \ | ||
26 | (inst) + REG_WR_ADDR_##scope##_##reg, (val) ) | ||
27 | #endif | ||
28 | |||
29 | #ifndef REG_RD_VECT | ||
30 | #define REG_RD_VECT( scope, inst, reg, index ) \ | ||
31 | REG_READ( reg_##scope##_##reg, \ | ||
32 | (inst) + REG_RD_ADDR_##scope##_##reg + \ | ||
33 | (index) * STRIDE_##scope##_##reg ) | ||
34 | #endif | ||
35 | |||
36 | #ifndef REG_WR_VECT | ||
37 | #define REG_WR_VECT( scope, inst, reg, index, val ) \ | ||
38 | REG_WRITE( reg_##scope##_##reg, \ | ||
39 | (inst) + REG_WR_ADDR_##scope##_##reg + \ | ||
40 | (index) * STRIDE_##scope##_##reg, (val) ) | ||
41 | #endif | ||
42 | |||
43 | #ifndef REG_RD_INT | ||
44 | #define REG_RD_INT( scope, inst, reg ) \ | ||
45 | REG_READ( int, (inst) + REG_RD_ADDR_##scope##_##reg ) | ||
46 | #endif | ||
47 | |||
48 | #ifndef REG_WR_INT | ||
49 | #define REG_WR_INT( scope, inst, reg, val ) \ | ||
50 | REG_WRITE( int, (inst) + REG_WR_ADDR_##scope##_##reg, (val) ) | ||
51 | #endif | ||
52 | |||
53 | #ifndef REG_RD_INT_VECT | ||
54 | #define REG_RD_INT_VECT( scope, inst, reg, index ) \ | ||
55 | REG_READ( int, (inst) + REG_RD_ADDR_##scope##_##reg + \ | ||
56 | (index) * STRIDE_##scope##_##reg ) | ||
57 | #endif | ||
58 | |||
59 | #ifndef REG_WR_INT_VECT | ||
60 | #define REG_WR_INT_VECT( scope, inst, reg, index, val ) \ | ||
61 | REG_WRITE( int, (inst) + REG_WR_ADDR_##scope##_##reg + \ | ||
62 | (index) * STRIDE_##scope##_##reg, (val) ) | ||
63 | #endif | ||
64 | |||
65 | #ifndef REG_TYPE_CONV | ||
66 | #define REG_TYPE_CONV( type, orgtype, val ) \ | ||
67 | ( { union { orgtype o; type n; } r; r.o = val; r.n; } ) | ||
68 | #endif | ||
69 | |||
70 | #ifndef reg_page_size | ||
71 | #define reg_page_size 8192 | ||
72 | #endif | ||
73 | |||
74 | #ifndef REG_ADDR | ||
75 | #define REG_ADDR( scope, inst, reg ) \ | ||
76 | ( (inst) + REG_RD_ADDR_##scope##_##reg ) | ||
77 | #endif | ||
78 | |||
79 | #ifndef REG_ADDR_VECT | ||
80 | #define REG_ADDR_VECT( scope, inst, reg, index ) \ | ||
81 | ( (inst) + REG_RD_ADDR_##scope##_##reg + \ | ||
82 | (index) * STRIDE_##scope##_##reg ) | ||
83 | #endif | ||
84 | |||
85 | /* C-code for register scope intr_vect */ | ||
86 | |||
87 | #define STRIDE_intr_vect_rw_mask 0 | ||
88 | /* Register rw_mask, scope intr_vect, type rw */ | ||
89 | typedef struct { | ||
90 | unsigned int memarb : 1; | ||
91 | unsigned int gen_io : 1; | ||
92 | unsigned int iop0 : 1; | ||
93 | unsigned int iop1 : 1; | ||
94 | unsigned int iop2 : 1; | ||
95 | unsigned int iop3 : 1; | ||
96 | unsigned int dma0 : 1; | ||
97 | unsigned int dma1 : 1; | ||
98 | unsigned int dma2 : 1; | ||
99 | unsigned int dma3 : 1; | ||
100 | unsigned int dma4 : 1; | ||
101 | unsigned int dma5 : 1; | ||
102 | unsigned int dma6 : 1; | ||
103 | unsigned int dma7 : 1; | ||
104 | unsigned int dma8 : 1; | ||
105 | unsigned int dma9 : 1; | ||
106 | unsigned int ata : 1; | ||
107 | unsigned int sser0 : 1; | ||
108 | unsigned int sser1 : 1; | ||
109 | unsigned int ser0 : 1; | ||
110 | unsigned int ser1 : 1; | ||
111 | unsigned int ser2 : 1; | ||
112 | unsigned int ser3 : 1; | ||
113 | unsigned int p21 : 1; | ||
114 | unsigned int eth0 : 1; | ||
115 | unsigned int eth1 : 1; | ||
116 | unsigned int timer0 : 1; | ||
117 | unsigned int bif_arb : 1; | ||
118 | unsigned int bif_dma : 1; | ||
119 | unsigned int ext : 1; | ||
120 | unsigned int dummy1 : 2; | ||
121 | } reg_intr_vect_rw_mask; | ||
122 | #define REG_RD_ADDR_intr_vect_rw_mask 0 | ||
123 | #define REG_WR_ADDR_intr_vect_rw_mask 0 | ||
124 | |||
125 | #define STRIDE_intr_vect_r_vect 0 | ||
126 | /* Register r_vect, scope intr_vect, type r */ | ||
127 | typedef struct { | ||
128 | unsigned int memarb : 1; | ||
129 | unsigned int gen_io : 1; | ||
130 | unsigned int iop0 : 1; | ||
131 | unsigned int iop1 : 1; | ||
132 | unsigned int iop2 : 1; | ||
133 | unsigned int iop3 : 1; | ||
134 | unsigned int dma0 : 1; | ||
135 | unsigned int dma1 : 1; | ||
136 | unsigned int dma2 : 1; | ||
137 | unsigned int dma3 : 1; | ||
138 | unsigned int dma4 : 1; | ||
139 | unsigned int dma5 : 1; | ||
140 | unsigned int dma6 : 1; | ||
141 | unsigned int dma7 : 1; | ||
142 | unsigned int dma8 : 1; | ||
143 | unsigned int dma9 : 1; | ||
144 | unsigned int ata : 1; | ||
145 | unsigned int sser0 : 1; | ||
146 | unsigned int sser1 : 1; | ||
147 | unsigned int ser0 : 1; | ||
148 | unsigned int ser1 : 1; | ||
149 | unsigned int ser2 : 1; | ||
150 | unsigned int ser3 : 1; | ||
151 | unsigned int p21 : 1; | ||
152 | unsigned int eth0 : 1; | ||
153 | unsigned int eth1 : 1; | ||
154 | unsigned int timer : 1; | ||
155 | unsigned int bif_arb : 1; | ||
156 | unsigned int bif_dma : 1; | ||
157 | unsigned int ext : 1; | ||
158 | unsigned int dummy1 : 2; | ||
159 | } reg_intr_vect_r_vect; | ||
160 | #define REG_RD_ADDR_intr_vect_r_vect 4 | ||
161 | |||
162 | #define STRIDE_intr_vect_r_masked_vect 0 | ||
163 | /* Register r_masked_vect, scope intr_vect, type r */ | ||
164 | typedef struct { | ||
165 | unsigned int memarb : 1; | ||
166 | unsigned int gen_io : 1; | ||
167 | unsigned int iop0 : 1; | ||
168 | unsigned int iop1 : 1; | ||
169 | unsigned int iop2 : 1; | ||
170 | unsigned int iop3 : 1; | ||
171 | unsigned int dma0 : 1; | ||
172 | unsigned int dma1 : 1; | ||
173 | unsigned int dma2 : 1; | ||
174 | unsigned int dma3 : 1; | ||
175 | unsigned int dma4 : 1; | ||
176 | unsigned int dma5 : 1; | ||
177 | unsigned int dma6 : 1; | ||
178 | unsigned int dma7 : 1; | ||
179 | unsigned int dma8 : 1; | ||
180 | unsigned int dma9 : 1; | ||
181 | unsigned int ata : 1; | ||
182 | unsigned int sser0 : 1; | ||
183 | unsigned int sser1 : 1; | ||
184 | unsigned int ser0 : 1; | ||
185 | unsigned int ser1 : 1; | ||
186 | unsigned int ser2 : 1; | ||
187 | unsigned int ser3 : 1; | ||
188 | unsigned int p21 : 1; | ||
189 | unsigned int eth0 : 1; | ||
190 | unsigned int eth1 : 1; | ||
191 | unsigned int timer : 1; | ||
192 | unsigned int bif_arb : 1; | ||
193 | unsigned int bif_dma : 1; | ||
194 | unsigned int ext : 1; | ||
195 | unsigned int dummy1 : 2; | ||
196 | } reg_intr_vect_r_masked_vect; | ||
197 | #define REG_RD_ADDR_intr_vect_r_masked_vect 8 | ||
198 | |||
199 | /* Register r_nmi, scope intr_vect, type r */ | ||
200 | typedef struct { | ||
201 | unsigned int ext : 1; | ||
202 | unsigned int watchdog : 1; | ||
203 | unsigned int dummy1 : 30; | ||
204 | } reg_intr_vect_r_nmi; | ||
205 | #define REG_RD_ADDR_intr_vect_r_nmi 12 | ||
206 | |||
207 | /* Register r_guru, scope intr_vect, type r */ | ||
208 | typedef struct { | ||
209 | unsigned int jtag : 1; | ||
210 | unsigned int dummy1 : 31; | ||
211 | } reg_intr_vect_r_guru; | ||
212 | #define REG_RD_ADDR_intr_vect_r_guru 16 | ||
213 | |||
214 | /* Register rw_ipi, scope intr_vect, type rw */ | ||
215 | typedef struct | ||
216 | { | ||
217 | unsigned int vector; | ||
218 | } reg_intr_vect_rw_ipi; | ||
219 | #define REG_RD_ADDR_intr_vect_rw_ipi 20 | ||
220 | #define REG_WR_ADDR_intr_vect_rw_ipi 20 | ||
221 | |||
222 | /* Constants */ | ||
223 | enum { | ||
224 | regk_intr_vect_off = 0x00000000, | ||
225 | regk_intr_vect_on = 0x00000001, | ||
226 | regk_intr_vect_rw_mask_default = 0x00000000 | ||
227 | }; | ||
228 | #endif /* __intr_vect_defs_h */ | ||
diff --git a/arch/cris/include/arch-v32/mach-fs/mach/hwregs/marb_bp_defs.h b/arch/cris/include/arch-v32/mach-fs/mach/hwregs/marb_bp_defs.h new file mode 100644 index 000000000000..dcaaec4620ba --- /dev/null +++ b/arch/cris/include/arch-v32/mach-fs/mach/hwregs/marb_bp_defs.h | |||
@@ -0,0 +1,205 @@ | |||
1 | #ifndef __marb_bp_defs_h | ||
2 | #define __marb_bp_defs_h | ||
3 | |||
4 | /* | ||
5 | * This file is autogenerated from | ||
6 | * file: ../../inst/memarb/rtl/guinness/marb_top.r | ||
7 | * id: <not found> | ||
8 | * last modfied: Fri Nov 7 15:36:04 2003 | ||
9 | * | ||
10 | * by /n/asic/projects/guinness/design/top/inst/rdesc/rdes2c ../../rtl/global.rmap ../../mod/modreg.rmap -base 0xb0000000 ../../inst/memarb/rtl/guinness/marb_top.r | ||
11 | * id: $Id: marb_bp_defs.h,v 1.1 2007/02/13 11:55:30 starvik Exp $ | ||
12 | * Any changes here will be lost. | ||
13 | * | ||
14 | * -*- buffer-read-only: t -*- | ||
15 | */ | ||
16 | /* Main access macros */ | ||
17 | #ifndef REG_RD | ||
18 | #define REG_RD( scope, inst, reg ) \ | ||
19 | REG_READ( reg_##scope##_##reg, \ | ||
20 | (inst) + REG_RD_ADDR_##scope##_##reg ) | ||
21 | #endif | ||
22 | |||
23 | #ifndef REG_WR | ||
24 | #define REG_WR( scope, inst, reg, val ) \ | ||
25 | REG_WRITE( reg_##scope##_##reg, \ | ||
26 | (inst) + REG_WR_ADDR_##scope##_##reg, (val) ) | ||
27 | #endif | ||
28 | |||
29 | #ifndef REG_RD_VECT | ||
30 | #define REG_RD_VECT( scope, inst, reg, index ) \ | ||
31 | REG_READ( reg_##scope##_##reg, \ | ||
32 | (inst) + REG_RD_ADDR_##scope##_##reg + \ | ||
33 | (index) * STRIDE_##scope##_##reg ) | ||
34 | #endif | ||
35 | |||
36 | #ifndef REG_WR_VECT | ||
37 | #define REG_WR_VECT( scope, inst, reg, index, val ) \ | ||
38 | REG_WRITE( reg_##scope##_##reg, \ | ||
39 | (inst) + REG_WR_ADDR_##scope##_##reg + \ | ||
40 | (index) * STRIDE_##scope##_##reg, (val) ) | ||
41 | #endif | ||
42 | |||
43 | #ifndef REG_RD_INT | ||
44 | #define REG_RD_INT( scope, inst, reg ) \ | ||
45 | REG_READ( int, (inst) + REG_RD_ADDR_##scope##_##reg ) | ||
46 | #endif | ||
47 | |||
48 | #ifndef REG_WR_INT | ||
49 | #define REG_WR_INT( scope, inst, reg, val ) \ | ||
50 | REG_WRITE( int, (inst) + REG_WR_ADDR_##scope##_##reg, (val) ) | ||
51 | #endif | ||
52 | |||
53 | #ifndef REG_RD_INT_VECT | ||
54 | #define REG_RD_INT_VECT( scope, inst, reg, index ) \ | ||
55 | REG_READ( int, (inst) + REG_RD_ADDR_##scope##_##reg + \ | ||
56 | (index) * STRIDE_##scope##_##reg ) | ||
57 | #endif | ||
58 | |||
59 | #ifndef REG_WR_INT_VECT | ||
60 | #define REG_WR_INT_VECT( scope, inst, reg, index, val ) \ | ||
61 | REG_WRITE( int, (inst) + REG_WR_ADDR_##scope##_##reg + \ | ||
62 | (index) * STRIDE_##scope##_##reg, (val) ) | ||
63 | #endif | ||
64 | |||
65 | #ifndef REG_TYPE_CONV | ||
66 | #define REG_TYPE_CONV( type, orgtype, val ) \ | ||
67 | ( { union { orgtype o; type n; } r; r.o = val; r.n; } ) | ||
68 | #endif | ||
69 | |||
70 | #ifndef reg_page_size | ||
71 | #define reg_page_size 8192 | ||
72 | #endif | ||
73 | |||
74 | /* C-code for register scope marb_bp */ | ||
75 | |||
76 | /* Register rw_first_addr, scope marb_bp, type rw */ | ||
77 | typedef unsigned int reg_marb_bp_rw_first_addr; | ||
78 | #define REG_RD_ADDR_marb_bp_rw_first_addr 0 | ||
79 | #define REG_WR_ADDR_marb_bp_rw_first_addr 0 | ||
80 | |||
81 | /* Register rw_last_addr, scope marb_bp, type rw */ | ||
82 | typedef unsigned int reg_marb_bp_rw_last_addr; | ||
83 | #define REG_RD_ADDR_marb_bp_rw_last_addr 4 | ||
84 | #define REG_WR_ADDR_marb_bp_rw_last_addr 4 | ||
85 | |||
86 | /* Register rw_op, scope marb_bp, type rw */ | ||
87 | typedef struct { | ||
88 | unsigned int read : 1; | ||
89 | unsigned int write : 1; | ||
90 | unsigned int read_excl : 1; | ||
91 | unsigned int pri_write : 1; | ||
92 | unsigned int us_read : 1; | ||
93 | unsigned int us_write : 1; | ||
94 | unsigned int us_read_excl : 1; | ||
95 | unsigned int us_pri_write : 1; | ||
96 | unsigned int dummy1 : 24; | ||
97 | } reg_marb_bp_rw_op; | ||
98 | #define REG_RD_ADDR_marb_bp_rw_op 8 | ||
99 | #define REG_WR_ADDR_marb_bp_rw_op 8 | ||
100 | |||
101 | /* Register rw_clients, scope marb_bp, type rw */ | ||
102 | typedef struct { | ||
103 | unsigned int dma0 : 1; | ||
104 | unsigned int dma1 : 1; | ||
105 | unsigned int dma2 : 1; | ||
106 | unsigned int dma3 : 1; | ||
107 | unsigned int dma4 : 1; | ||
108 | unsigned int dma5 : 1; | ||
109 | unsigned int dma6 : 1; | ||
110 | unsigned int dma7 : 1; | ||
111 | unsigned int dma8 : 1; | ||
112 | unsigned int dma9 : 1; | ||
113 | unsigned int cpui : 1; | ||
114 | unsigned int cpud : 1; | ||
115 | unsigned int iop : 1; | ||
116 | unsigned int slave : 1; | ||
117 | unsigned int dummy1 : 18; | ||
118 | } reg_marb_bp_rw_clients; | ||
119 | #define REG_RD_ADDR_marb_bp_rw_clients 12 | ||
120 | #define REG_WR_ADDR_marb_bp_rw_clients 12 | ||
121 | |||
122 | /* Register rw_options, scope marb_bp, type rw */ | ||
123 | typedef struct { | ||
124 | unsigned int wrap : 1; | ||
125 | unsigned int dummy1 : 31; | ||
126 | } reg_marb_bp_rw_options; | ||
127 | #define REG_RD_ADDR_marb_bp_rw_options 16 | ||
128 | #define REG_WR_ADDR_marb_bp_rw_options 16 | ||
129 | |||
130 | /* Register r_break_addr, scope marb_bp, type r */ | ||
131 | typedef unsigned int reg_marb_bp_r_break_addr; | ||
132 | #define REG_RD_ADDR_marb_bp_r_break_addr 20 | ||
133 | |||
134 | /* Register r_break_op, scope marb_bp, type r */ | ||
135 | typedef struct { | ||
136 | unsigned int read : 1; | ||
137 | unsigned int write : 1; | ||
138 | unsigned int read_excl : 1; | ||
139 | unsigned int pri_write : 1; | ||
140 | unsigned int us_read : 1; | ||
141 | unsigned int us_write : 1; | ||
142 | unsigned int us_read_excl : 1; | ||
143 | unsigned int us_pri_write : 1; | ||
144 | unsigned int dummy1 : 24; | ||
145 | } reg_marb_bp_r_break_op; | ||
146 | #define REG_RD_ADDR_marb_bp_r_break_op 24 | ||
147 | |||
148 | /* Register r_break_clients, scope marb_bp, type r */ | ||
149 | typedef struct { | ||
150 | unsigned int dma0 : 1; | ||
151 | unsigned int dma1 : 1; | ||
152 | unsigned int dma2 : 1; | ||
153 | unsigned int dma3 : 1; | ||
154 | unsigned int dma4 : 1; | ||
155 | unsigned int dma5 : 1; | ||
156 | unsigned int dma6 : 1; | ||
157 | unsigned int dma7 : 1; | ||
158 | unsigned int dma8 : 1; | ||
159 | unsigned int dma9 : 1; | ||
160 | unsigned int cpui : 1; | ||
161 | unsigned int cpud : 1; | ||
162 | unsigned int iop : 1; | ||
163 | unsigned int slave : 1; | ||
164 | unsigned int dummy1 : 18; | ||
165 | } reg_marb_bp_r_break_clients; | ||
166 | #define REG_RD_ADDR_marb_bp_r_break_clients 28 | ||
167 | |||
168 | /* Register r_break_first_client, scope marb_bp, type r */ | ||
169 | typedef struct { | ||
170 | unsigned int dma0 : 1; | ||
171 | unsigned int dma1 : 1; | ||
172 | unsigned int dma2 : 1; | ||
173 | unsigned int dma3 : 1; | ||
174 | unsigned int dma4 : 1; | ||
175 | unsigned int dma5 : 1; | ||
176 | unsigned int dma6 : 1; | ||
177 | unsigned int dma7 : 1; | ||
178 | unsigned int dma8 : 1; | ||
179 | unsigned int dma9 : 1; | ||
180 | unsigned int cpui : 1; | ||
181 | unsigned int cpud : 1; | ||
182 | unsigned int iop : 1; | ||
183 | unsigned int slave : 1; | ||
184 | unsigned int dummy1 : 18; | ||
185 | } reg_marb_bp_r_break_first_client; | ||
186 | #define REG_RD_ADDR_marb_bp_r_break_first_client 32 | ||
187 | |||
188 | /* Register r_break_size, scope marb_bp, type r */ | ||
189 | typedef unsigned int reg_marb_bp_r_break_size; | ||
190 | #define REG_RD_ADDR_marb_bp_r_break_size 36 | ||
191 | |||
192 | /* Register rw_ack, scope marb_bp, type rw */ | ||
193 | typedef unsigned int reg_marb_bp_rw_ack; | ||
194 | #define REG_RD_ADDR_marb_bp_rw_ack 40 | ||
195 | #define REG_WR_ADDR_marb_bp_rw_ack 40 | ||
196 | |||
197 | |||
198 | /* Constants */ | ||
199 | enum { | ||
200 | regk_marb_bp_no = 0x00000000, | ||
201 | regk_marb_bp_rw_op_default = 0x00000000, | ||
202 | regk_marb_bp_rw_options_default = 0x00000000, | ||
203 | regk_marb_bp_yes = 0x00000001 | ||
204 | }; | ||
205 | #endif /* __marb_bp_defs_h */ | ||
diff --git a/arch/cris/include/arch-v32/mach-fs/mach/hwregs/marb_defs.h b/arch/cris/include/arch-v32/mach-fs/mach/hwregs/marb_defs.h new file mode 100644 index 000000000000..254da0854986 --- /dev/null +++ b/arch/cris/include/arch-v32/mach-fs/mach/hwregs/marb_defs.h | |||
@@ -0,0 +1,475 @@ | |||
1 | #ifndef __marb_defs_h | ||
2 | #define __marb_defs_h | ||
3 | |||
4 | /* | ||
5 | * This file is autogenerated from | ||
6 | * file: ../../inst/memarb/rtl/guinness/marb_top.r | ||
7 | * id: <not found> | ||
8 | * last modfied: Mon Apr 11 16:12:16 2005 | ||
9 | * | ||
10 | * by /n/asic/design/tools/rdesc/src/rdes2c --outfile marb_defs.h ../../inst/memarb/rtl/guinness/marb_top.r | ||
11 | * id: $Id: marb_defs.h,v 1.1 2007/02/13 11:55:30 starvik Exp $ | ||
12 | * Any changes here will be lost. | ||
13 | * | ||
14 | * -*- buffer-read-only: t -*- | ||
15 | */ | ||
16 | /* Main access macros */ | ||
17 | #ifndef REG_RD | ||
18 | #define REG_RD( scope, inst, reg ) \ | ||
19 | REG_READ( reg_##scope##_##reg, \ | ||
20 | (inst) + REG_RD_ADDR_##scope##_##reg ) | ||
21 | #endif | ||
22 | |||
23 | #ifndef REG_WR | ||
24 | #define REG_WR( scope, inst, reg, val ) \ | ||
25 | REG_WRITE( reg_##scope##_##reg, \ | ||
26 | (inst) + REG_WR_ADDR_##scope##_##reg, (val) ) | ||
27 | #endif | ||
28 | |||
29 | #ifndef REG_RD_VECT | ||
30 | #define REG_RD_VECT( scope, inst, reg, index ) \ | ||
31 | REG_READ( reg_##scope##_##reg, \ | ||
32 | (inst) + REG_RD_ADDR_##scope##_##reg + \ | ||
33 | (index) * STRIDE_##scope##_##reg ) | ||
34 | #endif | ||
35 | |||
36 | #ifndef REG_WR_VECT | ||
37 | #define REG_WR_VECT( scope, inst, reg, index, val ) \ | ||
38 | REG_WRITE( reg_##scope##_##reg, \ | ||
39 | (inst) + REG_WR_ADDR_##scope##_##reg + \ | ||
40 | (index) * STRIDE_##scope##_##reg, (val) ) | ||
41 | #endif | ||
42 | |||
43 | #ifndef REG_RD_INT | ||
44 | #define REG_RD_INT( scope, inst, reg ) \ | ||
45 | REG_READ( int, (inst) + REG_RD_ADDR_##scope##_##reg ) | ||
46 | #endif | ||
47 | |||
48 | #ifndef REG_WR_INT | ||
49 | #define REG_WR_INT( scope, inst, reg, val ) \ | ||
50 | REG_WRITE( int, (inst) + REG_WR_ADDR_##scope##_##reg, (val) ) | ||
51 | #endif | ||
52 | |||
53 | #ifndef REG_RD_INT_VECT | ||
54 | #define REG_RD_INT_VECT( scope, inst, reg, index ) \ | ||
55 | REG_READ( int, (inst) + REG_RD_ADDR_##scope##_##reg + \ | ||
56 | (index) * STRIDE_##scope##_##reg ) | ||
57 | #endif | ||
58 | |||
59 | #ifndef REG_WR_INT_VECT | ||
60 | #define REG_WR_INT_VECT( scope, inst, reg, index, val ) \ | ||
61 | REG_WRITE( int, (inst) + REG_WR_ADDR_##scope##_##reg + \ | ||
62 | (index) * STRIDE_##scope##_##reg, (val) ) | ||
63 | #endif | ||
64 | |||
65 | #ifndef REG_TYPE_CONV | ||
66 | #define REG_TYPE_CONV( type, orgtype, val ) \ | ||
67 | ( { union { orgtype o; type n; } r; r.o = val; r.n; } ) | ||
68 | #endif | ||
69 | |||
70 | #ifndef reg_page_size | ||
71 | #define reg_page_size 8192 | ||
72 | #endif | ||
73 | |||
74 | #ifndef REG_ADDR | ||
75 | #define REG_ADDR( scope, inst, reg ) \ | ||
76 | ( (inst) + REG_RD_ADDR_##scope##_##reg ) | ||
77 | #endif | ||
78 | |||
79 | #ifndef REG_ADDR_VECT | ||
80 | #define REG_ADDR_VECT( scope, inst, reg, index ) \ | ||
81 | ( (inst) + REG_RD_ADDR_##scope##_##reg + \ | ||
82 | (index) * STRIDE_##scope##_##reg ) | ||
83 | #endif | ||
84 | |||
85 | /* C-code for register scope marb */ | ||
86 | |||
87 | #define STRIDE_marb_rw_int_slots 4 | ||
88 | /* Register rw_int_slots, scope marb, type rw */ | ||
89 | typedef struct { | ||
90 | unsigned int owner : 4; | ||
91 | unsigned int dummy1 : 28; | ||
92 | } reg_marb_rw_int_slots; | ||
93 | #define REG_RD_ADDR_marb_rw_int_slots 0 | ||
94 | #define REG_WR_ADDR_marb_rw_int_slots 0 | ||
95 | |||
96 | #define STRIDE_marb_rw_ext_slots 4 | ||
97 | /* Register rw_ext_slots, scope marb, type rw */ | ||
98 | typedef struct { | ||
99 | unsigned int owner : 4; | ||
100 | unsigned int dummy1 : 28; | ||
101 | } reg_marb_rw_ext_slots; | ||
102 | #define REG_RD_ADDR_marb_rw_ext_slots 256 | ||
103 | #define REG_WR_ADDR_marb_rw_ext_slots 256 | ||
104 | |||
105 | #define STRIDE_marb_rw_regs_slots 4 | ||
106 | /* Register rw_regs_slots, scope marb, type rw */ | ||
107 | typedef struct { | ||
108 | unsigned int owner : 4; | ||
109 | unsigned int dummy1 : 28; | ||
110 | } reg_marb_rw_regs_slots; | ||
111 | #define REG_RD_ADDR_marb_rw_regs_slots 512 | ||
112 | #define REG_WR_ADDR_marb_rw_regs_slots 512 | ||
113 | |||
114 | /* Register rw_intr_mask, scope marb, type rw */ | ||
115 | typedef struct { | ||
116 | unsigned int bp0 : 1; | ||
117 | unsigned int bp1 : 1; | ||
118 | unsigned int bp2 : 1; | ||
119 | unsigned int bp3 : 1; | ||
120 | unsigned int dummy1 : 28; | ||
121 | } reg_marb_rw_intr_mask; | ||
122 | #define REG_RD_ADDR_marb_rw_intr_mask 528 | ||
123 | #define REG_WR_ADDR_marb_rw_intr_mask 528 | ||
124 | |||
125 | /* Register rw_ack_intr, scope marb, type rw */ | ||
126 | typedef struct { | ||
127 | unsigned int bp0 : 1; | ||
128 | unsigned int bp1 : 1; | ||
129 | unsigned int bp2 : 1; | ||
130 | unsigned int bp3 : 1; | ||
131 | unsigned int dummy1 : 28; | ||
132 | } reg_marb_rw_ack_intr; | ||
133 | #define REG_RD_ADDR_marb_rw_ack_intr 532 | ||
134 | #define REG_WR_ADDR_marb_rw_ack_intr 532 | ||
135 | |||
136 | /* Register r_intr, scope marb, type r */ | ||
137 | typedef struct { | ||
138 | unsigned int bp0 : 1; | ||
139 | unsigned int bp1 : 1; | ||
140 | unsigned int bp2 : 1; | ||
141 | unsigned int bp3 : 1; | ||
142 | unsigned int dummy1 : 28; | ||
143 | } reg_marb_r_intr; | ||
144 | #define REG_RD_ADDR_marb_r_intr 536 | ||
145 | |||
146 | /* Register r_masked_intr, scope marb, type r */ | ||
147 | typedef struct { | ||
148 | unsigned int bp0 : 1; | ||
149 | unsigned int bp1 : 1; | ||
150 | unsigned int bp2 : 1; | ||
151 | unsigned int bp3 : 1; | ||
152 | unsigned int dummy1 : 28; | ||
153 | } reg_marb_r_masked_intr; | ||
154 | #define REG_RD_ADDR_marb_r_masked_intr 540 | ||
155 | |||
156 | /* Register rw_stop_mask, scope marb, type rw */ | ||
157 | typedef struct { | ||
158 | unsigned int dma0 : 1; | ||
159 | unsigned int dma1 : 1; | ||
160 | unsigned int dma2 : 1; | ||
161 | unsigned int dma3 : 1; | ||
162 | unsigned int dma4 : 1; | ||
163 | unsigned int dma5 : 1; | ||
164 | unsigned int dma6 : 1; | ||
165 | unsigned int dma7 : 1; | ||
166 | unsigned int dma8 : 1; | ||
167 | unsigned int dma9 : 1; | ||
168 | unsigned int cpui : 1; | ||
169 | unsigned int cpud : 1; | ||
170 | unsigned int iop : 1; | ||
171 | unsigned int slave : 1; | ||
172 | unsigned int dummy1 : 18; | ||
173 | } reg_marb_rw_stop_mask; | ||
174 | #define REG_RD_ADDR_marb_rw_stop_mask 544 | ||
175 | #define REG_WR_ADDR_marb_rw_stop_mask 544 | ||
176 | |||
177 | /* Register r_stopped, scope marb, type r */ | ||
178 | typedef struct { | ||
179 | unsigned int dma0 : 1; | ||
180 | unsigned int dma1 : 1; | ||
181 | unsigned int dma2 : 1; | ||
182 | unsigned int dma3 : 1; | ||
183 | unsigned int dma4 : 1; | ||
184 | unsigned int dma5 : 1; | ||
185 | unsigned int dma6 : 1; | ||
186 | unsigned int dma7 : 1; | ||
187 | unsigned int dma8 : 1; | ||
188 | unsigned int dma9 : 1; | ||
189 | unsigned int cpui : 1; | ||
190 | unsigned int cpud : 1; | ||
191 | unsigned int iop : 1; | ||
192 | unsigned int slave : 1; | ||
193 | unsigned int dummy1 : 18; | ||
194 | } reg_marb_r_stopped; | ||
195 | #define REG_RD_ADDR_marb_r_stopped 548 | ||
196 | |||
197 | /* Register rw_no_snoop, scope marb, type rw */ | ||
198 | typedef struct { | ||
199 | unsigned int dma0 : 1; | ||
200 | unsigned int dma1 : 1; | ||
201 | unsigned int dma2 : 1; | ||
202 | unsigned int dma3 : 1; | ||
203 | unsigned int dma4 : 1; | ||
204 | unsigned int dma5 : 1; | ||
205 | unsigned int dma6 : 1; | ||
206 | unsigned int dma7 : 1; | ||
207 | unsigned int dma8 : 1; | ||
208 | unsigned int dma9 : 1; | ||
209 | unsigned int cpui : 1; | ||
210 | unsigned int cpud : 1; | ||
211 | unsigned int iop : 1; | ||
212 | unsigned int slave : 1; | ||
213 | unsigned int dummy1 : 18; | ||
214 | } reg_marb_rw_no_snoop; | ||
215 | #define REG_RD_ADDR_marb_rw_no_snoop 832 | ||
216 | #define REG_WR_ADDR_marb_rw_no_snoop 832 | ||
217 | |||
218 | /* Register rw_no_snoop_rq, scope marb, type rw */ | ||
219 | typedef struct { | ||
220 | unsigned int dummy1 : 10; | ||
221 | unsigned int cpui : 1; | ||
222 | unsigned int cpud : 1; | ||
223 | unsigned int dummy2 : 20; | ||
224 | } reg_marb_rw_no_snoop_rq; | ||
225 | #define REG_RD_ADDR_marb_rw_no_snoop_rq 836 | ||
226 | #define REG_WR_ADDR_marb_rw_no_snoop_rq 836 | ||
227 | |||
228 | |||
229 | /* Constants */ | ||
230 | enum { | ||
231 | regk_marb_cpud = 0x0000000b, | ||
232 | regk_marb_cpui = 0x0000000a, | ||
233 | regk_marb_dma0 = 0x00000000, | ||
234 | regk_marb_dma1 = 0x00000001, | ||
235 | regk_marb_dma2 = 0x00000002, | ||
236 | regk_marb_dma3 = 0x00000003, | ||
237 | regk_marb_dma4 = 0x00000004, | ||
238 | regk_marb_dma5 = 0x00000005, | ||
239 | regk_marb_dma6 = 0x00000006, | ||
240 | regk_marb_dma7 = 0x00000007, | ||
241 | regk_marb_dma8 = 0x00000008, | ||
242 | regk_marb_dma9 = 0x00000009, | ||
243 | regk_marb_iop = 0x0000000c, | ||
244 | regk_marb_no = 0x00000000, | ||
245 | regk_marb_r_stopped_default = 0x00000000, | ||
246 | regk_marb_rw_ext_slots_default = 0x00000000, | ||
247 | regk_marb_rw_ext_slots_size = 0x00000040, | ||
248 | regk_marb_rw_int_slots_default = 0x00000000, | ||
249 | regk_marb_rw_int_slots_size = 0x00000040, | ||
250 | regk_marb_rw_intr_mask_default = 0x00000000, | ||
251 | regk_marb_rw_no_snoop_default = 0x00000000, | ||
252 | regk_marb_rw_no_snoop_rq_default = 0x00000000, | ||
253 | regk_marb_rw_regs_slots_default = 0x00000000, | ||
254 | regk_marb_rw_regs_slots_size = 0x00000004, | ||
255 | regk_marb_rw_stop_mask_default = 0x00000000, | ||
256 | regk_marb_slave = 0x0000000d, | ||
257 | regk_marb_yes = 0x00000001 | ||
258 | }; | ||
259 | #endif /* __marb_defs_h */ | ||
260 | #ifndef __marb_bp_defs_h | ||
261 | #define __marb_bp_defs_h | ||
262 | |||
263 | /* | ||
264 | * This file is autogenerated from | ||
265 | * file: ../../inst/memarb/rtl/guinness/marb_top.r | ||
266 | * id: <not found> | ||
267 | * last modfied: Mon Apr 11 16:12:16 2005 | ||
268 | * | ||
269 | * by /n/asic/design/tools/rdesc/src/rdes2c --outfile marb_defs.h ../../inst/memarb/rtl/guinness/marb_top.r | ||
270 | * id: $Id: marb_defs.h,v 1.1 2007/02/13 11:55:30 starvik Exp $ | ||
271 | * Any changes here will be lost. | ||
272 | * | ||
273 | * -*- buffer-read-only: t -*- | ||
274 | */ | ||
275 | /* Main access macros */ | ||
276 | #ifndef REG_RD | ||
277 | #define REG_RD( scope, inst, reg ) \ | ||
278 | REG_READ( reg_##scope##_##reg, \ | ||
279 | (inst) + REG_RD_ADDR_##scope##_##reg ) | ||
280 | #endif | ||
281 | |||
282 | #ifndef REG_WR | ||
283 | #define REG_WR( scope, inst, reg, val ) \ | ||
284 | REG_WRITE( reg_##scope##_##reg, \ | ||
285 | (inst) + REG_WR_ADDR_##scope##_##reg, (val) ) | ||
286 | #endif | ||
287 | |||
288 | #ifndef REG_RD_VECT | ||
289 | #define REG_RD_VECT( scope, inst, reg, index ) \ | ||
290 | REG_READ( reg_##scope##_##reg, \ | ||
291 | (inst) + REG_RD_ADDR_##scope##_##reg + \ | ||
292 | (index) * STRIDE_##scope##_##reg ) | ||
293 | #endif | ||
294 | |||
295 | #ifndef REG_WR_VECT | ||
296 | #define REG_WR_VECT( scope, inst, reg, index, val ) \ | ||
297 | REG_WRITE( reg_##scope##_##reg, \ | ||
298 | (inst) + REG_WR_ADDR_##scope##_##reg + \ | ||
299 | (index) * STRIDE_##scope##_##reg, (val) ) | ||
300 | #endif | ||
301 | |||
302 | #ifndef REG_RD_INT | ||
303 | #define REG_RD_INT( scope, inst, reg ) \ | ||
304 | REG_READ( int, (inst) + REG_RD_ADDR_##scope##_##reg ) | ||
305 | #endif | ||
306 | |||
307 | #ifndef REG_WR_INT | ||
308 | #define REG_WR_INT( scope, inst, reg, val ) \ | ||
309 | REG_WRITE( int, (inst) + REG_WR_ADDR_##scope##_##reg, (val) ) | ||
310 | #endif | ||
311 | |||
312 | #ifndef REG_RD_INT_VECT | ||
313 | #define REG_RD_INT_VECT( scope, inst, reg, index ) \ | ||
314 | REG_READ( int, (inst) + REG_RD_ADDR_##scope##_##reg + \ | ||
315 | (index) * STRIDE_##scope##_##reg ) | ||
316 | #endif | ||
317 | |||
318 | #ifndef REG_WR_INT_VECT | ||
319 | #define REG_WR_INT_VECT( scope, inst, reg, index, val ) \ | ||
320 | REG_WRITE( int, (inst) + REG_WR_ADDR_##scope##_##reg + \ | ||
321 | (index) * STRIDE_##scope##_##reg, (val) ) | ||
322 | #endif | ||
323 | |||
324 | #ifndef REG_TYPE_CONV | ||
325 | #define REG_TYPE_CONV( type, orgtype, val ) \ | ||
326 | ( { union { orgtype o; type n; } r; r.o = val; r.n; } ) | ||
327 | #endif | ||
328 | |||
329 | #ifndef reg_page_size | ||
330 | #define reg_page_size 8192 | ||
331 | #endif | ||
332 | |||
333 | #ifndef REG_ADDR | ||
334 | #define REG_ADDR( scope, inst, reg ) \ | ||
335 | ( (inst) + REG_RD_ADDR_##scope##_##reg ) | ||
336 | #endif | ||
337 | |||
338 | #ifndef REG_ADDR_VECT | ||
339 | #define REG_ADDR_VECT( scope, inst, reg, index ) \ | ||
340 | ( (inst) + REG_RD_ADDR_##scope##_##reg + \ | ||
341 | (index) * STRIDE_##scope##_##reg ) | ||
342 | #endif | ||
343 | |||
344 | /* C-code for register scope marb_bp */ | ||
345 | |||
346 | /* Register rw_first_addr, scope marb_bp, type rw */ | ||
347 | typedef unsigned int reg_marb_bp_rw_first_addr; | ||
348 | #define REG_RD_ADDR_marb_bp_rw_first_addr 0 | ||
349 | #define REG_WR_ADDR_marb_bp_rw_first_addr 0 | ||
350 | |||
351 | /* Register rw_last_addr, scope marb_bp, type rw */ | ||
352 | typedef unsigned int reg_marb_bp_rw_last_addr; | ||
353 | #define REG_RD_ADDR_marb_bp_rw_last_addr 4 | ||
354 | #define REG_WR_ADDR_marb_bp_rw_last_addr 4 | ||
355 | |||
356 | /* Register rw_op, scope marb_bp, type rw */ | ||
357 | typedef struct { | ||
358 | unsigned int rd : 1; | ||
359 | unsigned int wr : 1; | ||
360 | unsigned int rd_excl : 1; | ||
361 | unsigned int pri_wr : 1; | ||
362 | unsigned int us_rd : 1; | ||
363 | unsigned int us_wr : 1; | ||
364 | unsigned int us_rd_excl : 1; | ||
365 | unsigned int us_pri_wr : 1; | ||
366 | unsigned int dummy1 : 24; | ||
367 | } reg_marb_bp_rw_op; | ||
368 | #define REG_RD_ADDR_marb_bp_rw_op 8 | ||
369 | #define REG_WR_ADDR_marb_bp_rw_op 8 | ||
370 | |||
371 | /* Register rw_clients, scope marb_bp, type rw */ | ||
372 | typedef struct { | ||
373 | unsigned int dma0 : 1; | ||
374 | unsigned int dma1 : 1; | ||
375 | unsigned int dma2 : 1; | ||
376 | unsigned int dma3 : 1; | ||
377 | unsigned int dma4 : 1; | ||
378 | unsigned int dma5 : 1; | ||
379 | unsigned int dma6 : 1; | ||
380 | unsigned int dma7 : 1; | ||
381 | unsigned int dma8 : 1; | ||
382 | unsigned int dma9 : 1; | ||
383 | unsigned int cpui : 1; | ||
384 | unsigned int cpud : 1; | ||
385 | unsigned int iop : 1; | ||
386 | unsigned int slave : 1; | ||
387 | unsigned int dummy1 : 18; | ||
388 | } reg_marb_bp_rw_clients; | ||
389 | #define REG_RD_ADDR_marb_bp_rw_clients 12 | ||
390 | #define REG_WR_ADDR_marb_bp_rw_clients 12 | ||
391 | |||
392 | /* Register rw_options, scope marb_bp, type rw */ | ||
393 | typedef struct { | ||
394 | unsigned int wrap : 1; | ||
395 | unsigned int dummy1 : 31; | ||
396 | } reg_marb_bp_rw_options; | ||
397 | #define REG_RD_ADDR_marb_bp_rw_options 16 | ||
398 | #define REG_WR_ADDR_marb_bp_rw_options 16 | ||
399 | |||
400 | /* Register r_brk_addr, scope marb_bp, type r */ | ||
401 | typedef unsigned int reg_marb_bp_r_brk_addr; | ||
402 | #define REG_RD_ADDR_marb_bp_r_brk_addr 20 | ||
403 | |||
404 | /* Register r_brk_op, scope marb_bp, type r */ | ||
405 | typedef struct { | ||
406 | unsigned int rd : 1; | ||
407 | unsigned int wr : 1; | ||
408 | unsigned int rd_excl : 1; | ||
409 | unsigned int pri_wr : 1; | ||
410 | unsigned int us_rd : 1; | ||
411 | unsigned int us_wr : 1; | ||
412 | unsigned int us_rd_excl : 1; | ||
413 | unsigned int us_pri_wr : 1; | ||
414 | unsigned int dummy1 : 24; | ||
415 | } reg_marb_bp_r_brk_op; | ||
416 | #define REG_RD_ADDR_marb_bp_r_brk_op 24 | ||
417 | |||
418 | /* Register r_brk_clients, scope marb_bp, type r */ | ||
419 | typedef struct { | ||
420 | unsigned int dma0 : 1; | ||
421 | unsigned int dma1 : 1; | ||
422 | unsigned int dma2 : 1; | ||
423 | unsigned int dma3 : 1; | ||
424 | unsigned int dma4 : 1; | ||
425 | unsigned int dma5 : 1; | ||
426 | unsigned int dma6 : 1; | ||
427 | unsigned int dma7 : 1; | ||
428 | unsigned int dma8 : 1; | ||
429 | unsigned int dma9 : 1; | ||
430 | unsigned int cpui : 1; | ||
431 | unsigned int cpud : 1; | ||
432 | unsigned int iop : 1; | ||
433 | unsigned int slave : 1; | ||
434 | unsigned int dummy1 : 18; | ||
435 | } reg_marb_bp_r_brk_clients; | ||
436 | #define REG_RD_ADDR_marb_bp_r_brk_clients 28 | ||
437 | |||
438 | /* Register r_brk_first_client, scope marb_bp, type r */ | ||
439 | typedef struct { | ||
440 | unsigned int dma0 : 1; | ||
441 | unsigned int dma1 : 1; | ||
442 | unsigned int dma2 : 1; | ||
443 | unsigned int dma3 : 1; | ||
444 | unsigned int dma4 : 1; | ||
445 | unsigned int dma5 : 1; | ||
446 | unsigned int dma6 : 1; | ||
447 | unsigned int dma7 : 1; | ||
448 | unsigned int dma8 : 1; | ||
449 | unsigned int dma9 : 1; | ||
450 | unsigned int cpui : 1; | ||
451 | unsigned int cpud : 1; | ||
452 | unsigned int iop : 1; | ||
453 | unsigned int slave : 1; | ||
454 | unsigned int dummy1 : 18; | ||
455 | } reg_marb_bp_r_brk_first_client; | ||
456 | #define REG_RD_ADDR_marb_bp_r_brk_first_client 32 | ||
457 | |||
458 | /* Register r_brk_size, scope marb_bp, type r */ | ||
459 | typedef unsigned int reg_marb_bp_r_brk_size; | ||
460 | #define REG_RD_ADDR_marb_bp_r_brk_size 36 | ||
461 | |||
462 | /* Register rw_ack, scope marb_bp, type rw */ | ||
463 | typedef unsigned int reg_marb_bp_rw_ack; | ||
464 | #define REG_RD_ADDR_marb_bp_rw_ack 40 | ||
465 | #define REG_WR_ADDR_marb_bp_rw_ack 40 | ||
466 | |||
467 | |||
468 | /* Constants */ | ||
469 | enum { | ||
470 | regk_marb_bp_no = 0x00000000, | ||
471 | regk_marb_bp_rw_op_default = 0x00000000, | ||
472 | regk_marb_bp_rw_options_default = 0x00000000, | ||
473 | regk_marb_bp_yes = 0x00000001 | ||
474 | }; | ||
475 | #endif /* __marb_bp_defs_h */ | ||
diff --git a/arch/cris/include/arch-v32/mach-fs/mach/hwregs/pinmux_defs.h b/arch/cris/include/arch-v32/mach-fs/mach/hwregs/pinmux_defs.h new file mode 100644 index 000000000000..751eab5f191c --- /dev/null +++ b/arch/cris/include/arch-v32/mach-fs/mach/hwregs/pinmux_defs.h | |||
@@ -0,0 +1,357 @@ | |||
1 | #ifndef __pinmux_defs_h | ||
2 | #define __pinmux_defs_h | ||
3 | |||
4 | /* | ||
5 | * This file is autogenerated from | ||
6 | * file: ../../inst/pinmux/rtl/guinness/pinmux_regs.r | ||
7 | * id: pinmux_regs.r,v 1.40 2005/02/09 16:22:59 perz Exp | ||
8 | * last modfied: Mon Apr 11 16:09:11 2005 | ||
9 | * | ||
10 | * by /n/asic/design/tools/rdesc/src/rdes2c --outfile pinmux_defs.h ../../inst/pinmux/rtl/guinness/pinmux_regs.r | ||
11 | * id: $Id: pinmux_defs.h,v 1.1 2007/02/13 11:55:30 starvik Exp $ | ||
12 | * Any changes here will be lost. | ||
13 | * | ||
14 | * -*- buffer-read-only: t -*- | ||
15 | */ | ||
16 | /* Main access macros */ | ||
17 | #ifndef REG_RD | ||
18 | #define REG_RD( scope, inst, reg ) \ | ||
19 | REG_READ( reg_##scope##_##reg, \ | ||
20 | (inst) + REG_RD_ADDR_##scope##_##reg ) | ||
21 | #endif | ||
22 | |||
23 | #ifndef REG_WR | ||
24 | #define REG_WR( scope, inst, reg, val ) \ | ||
25 | REG_WRITE( reg_##scope##_##reg, \ | ||
26 | (inst) + REG_WR_ADDR_##scope##_##reg, (val) ) | ||
27 | #endif | ||
28 | |||
29 | #ifndef REG_RD_VECT | ||
30 | #define REG_RD_VECT( scope, inst, reg, index ) \ | ||
31 | REG_READ( reg_##scope##_##reg, \ | ||
32 | (inst) + REG_RD_ADDR_##scope##_##reg + \ | ||
33 | (index) * STRIDE_##scope##_##reg ) | ||
34 | #endif | ||
35 | |||
36 | #ifndef REG_WR_VECT | ||
37 | #define REG_WR_VECT( scope, inst, reg, index, val ) \ | ||
38 | REG_WRITE( reg_##scope##_##reg, \ | ||
39 | (inst) + REG_WR_ADDR_##scope##_##reg + \ | ||
40 | (index) * STRIDE_##scope##_##reg, (val) ) | ||
41 | #endif | ||
42 | |||
43 | #ifndef REG_RD_INT | ||
44 | #define REG_RD_INT( scope, inst, reg ) \ | ||
45 | REG_READ( int, (inst) + REG_RD_ADDR_##scope##_##reg ) | ||
46 | #endif | ||
47 | |||
48 | #ifndef REG_WR_INT | ||
49 | #define REG_WR_INT( scope, inst, reg, val ) \ | ||
50 | REG_WRITE( int, (inst) + REG_WR_ADDR_##scope##_##reg, (val) ) | ||
51 | #endif | ||
52 | |||
53 | #ifndef REG_RD_INT_VECT | ||
54 | #define REG_RD_INT_VECT( scope, inst, reg, index ) \ | ||
55 | REG_READ( int, (inst) + REG_RD_ADDR_##scope##_##reg + \ | ||
56 | (index) * STRIDE_##scope##_##reg ) | ||
57 | #endif | ||
58 | |||
59 | #ifndef REG_WR_INT_VECT | ||
60 | #define REG_WR_INT_VECT( scope, inst, reg, index, val ) \ | ||
61 | REG_WRITE( int, (inst) + REG_WR_ADDR_##scope##_##reg + \ | ||
62 | (index) * STRIDE_##scope##_##reg, (val) ) | ||
63 | #endif | ||
64 | |||
65 | #ifndef REG_TYPE_CONV | ||
66 | #define REG_TYPE_CONV( type, orgtype, val ) \ | ||
67 | ( { union { orgtype o; type n; } r; r.o = val; r.n; } ) | ||
68 | #endif | ||
69 | |||
70 | #ifndef reg_page_size | ||
71 | #define reg_page_size 8192 | ||
72 | #endif | ||
73 | |||
74 | #ifndef REG_ADDR | ||
75 | #define REG_ADDR( scope, inst, reg ) \ | ||
76 | ( (inst) + REG_RD_ADDR_##scope##_##reg ) | ||
77 | #endif | ||
78 | |||
79 | #ifndef REG_ADDR_VECT | ||
80 | #define REG_ADDR_VECT( scope, inst, reg, index ) \ | ||
81 | ( (inst) + REG_RD_ADDR_##scope##_##reg + \ | ||
82 | (index) * STRIDE_##scope##_##reg ) | ||
83 | #endif | ||
84 | |||
85 | /* C-code for register scope pinmux */ | ||
86 | |||
87 | /* Register rw_pa, scope pinmux, type rw */ | ||
88 | typedef struct { | ||
89 | unsigned int pa0 : 1; | ||
90 | unsigned int pa1 : 1; | ||
91 | unsigned int pa2 : 1; | ||
92 | unsigned int pa3 : 1; | ||
93 | unsigned int pa4 : 1; | ||
94 | unsigned int pa5 : 1; | ||
95 | unsigned int pa6 : 1; | ||
96 | unsigned int pa7 : 1; | ||
97 | unsigned int csp2_n : 1; | ||
98 | unsigned int csp3_n : 1; | ||
99 | unsigned int csp5_n : 1; | ||
100 | unsigned int csp6_n : 1; | ||
101 | unsigned int hsh4 : 1; | ||
102 | unsigned int hsh5 : 1; | ||
103 | unsigned int hsh6 : 1; | ||
104 | unsigned int hsh7 : 1; | ||
105 | unsigned int dummy1 : 16; | ||
106 | } reg_pinmux_rw_pa; | ||
107 | #define REG_RD_ADDR_pinmux_rw_pa 0 | ||
108 | #define REG_WR_ADDR_pinmux_rw_pa 0 | ||
109 | |||
110 | /* Register rw_hwprot, scope pinmux, type rw */ | ||
111 | typedef struct { | ||
112 | unsigned int ser1 : 1; | ||
113 | unsigned int ser2 : 1; | ||
114 | unsigned int ser3 : 1; | ||
115 | unsigned int sser0 : 1; | ||
116 | unsigned int sser1 : 1; | ||
117 | unsigned int ata0 : 1; | ||
118 | unsigned int ata1 : 1; | ||
119 | unsigned int ata2 : 1; | ||
120 | unsigned int ata3 : 1; | ||
121 | unsigned int ata : 1; | ||
122 | unsigned int eth1 : 1; | ||
123 | unsigned int eth1_mgm : 1; | ||
124 | unsigned int timer : 1; | ||
125 | unsigned int p21 : 1; | ||
126 | unsigned int dummy1 : 18; | ||
127 | } reg_pinmux_rw_hwprot; | ||
128 | #define REG_RD_ADDR_pinmux_rw_hwprot 4 | ||
129 | #define REG_WR_ADDR_pinmux_rw_hwprot 4 | ||
130 | |||
131 | /* Register rw_pb_gio, scope pinmux, type rw */ | ||
132 | typedef struct { | ||
133 | unsigned int pb0 : 1; | ||
134 | unsigned int pb1 : 1; | ||
135 | unsigned int pb2 : 1; | ||
136 | unsigned int pb3 : 1; | ||
137 | unsigned int pb4 : 1; | ||
138 | unsigned int pb5 : 1; | ||
139 | unsigned int pb6 : 1; | ||
140 | unsigned int pb7 : 1; | ||
141 | unsigned int pb8 : 1; | ||
142 | unsigned int pb9 : 1; | ||
143 | unsigned int pb10 : 1; | ||
144 | unsigned int pb11 : 1; | ||
145 | unsigned int pb12 : 1; | ||
146 | unsigned int pb13 : 1; | ||
147 | unsigned int pb14 : 1; | ||
148 | unsigned int pb15 : 1; | ||
149 | unsigned int pb16 : 1; | ||
150 | unsigned int pb17 : 1; | ||
151 | unsigned int dummy1 : 14; | ||
152 | } reg_pinmux_rw_pb_gio; | ||
153 | #define REG_RD_ADDR_pinmux_rw_pb_gio 8 | ||
154 | #define REG_WR_ADDR_pinmux_rw_pb_gio 8 | ||
155 | |||
156 | /* Register rw_pb_iop, scope pinmux, type rw */ | ||
157 | typedef struct { | ||
158 | unsigned int pb0 : 1; | ||
159 | unsigned int pb1 : 1; | ||
160 | unsigned int pb2 : 1; | ||
161 | unsigned int pb3 : 1; | ||
162 | unsigned int pb4 : 1; | ||
163 | unsigned int pb5 : 1; | ||
164 | unsigned int pb6 : 1; | ||
165 | unsigned int pb7 : 1; | ||
166 | unsigned int pb8 : 1; | ||
167 | unsigned int pb9 : 1; | ||
168 | unsigned int pb10 : 1; | ||
169 | unsigned int pb11 : 1; | ||
170 | unsigned int pb12 : 1; | ||
171 | unsigned int pb13 : 1; | ||
172 | unsigned int pb14 : 1; | ||
173 | unsigned int pb15 : 1; | ||
174 | unsigned int pb16 : 1; | ||
175 | unsigned int pb17 : 1; | ||
176 | unsigned int dummy1 : 14; | ||
177 | } reg_pinmux_rw_pb_iop; | ||
178 | #define REG_RD_ADDR_pinmux_rw_pb_iop 12 | ||
179 | #define REG_WR_ADDR_pinmux_rw_pb_iop 12 | ||
180 | |||
181 | /* Register rw_pc_gio, scope pinmux, type rw */ | ||
182 | typedef struct { | ||
183 | unsigned int pc0 : 1; | ||
184 | unsigned int pc1 : 1; | ||
185 | unsigned int pc2 : 1; | ||
186 | unsigned int pc3 : 1; | ||
187 | unsigned int pc4 : 1; | ||
188 | unsigned int pc5 : 1; | ||
189 | unsigned int pc6 : 1; | ||
190 | unsigned int pc7 : 1; | ||
191 | unsigned int pc8 : 1; | ||
192 | unsigned int pc9 : 1; | ||
193 | unsigned int pc10 : 1; | ||
194 | unsigned int pc11 : 1; | ||
195 | unsigned int pc12 : 1; | ||
196 | unsigned int pc13 : 1; | ||
197 | unsigned int pc14 : 1; | ||
198 | unsigned int pc15 : 1; | ||
199 | unsigned int pc16 : 1; | ||
200 | unsigned int pc17 : 1; | ||
201 | unsigned int dummy1 : 14; | ||
202 | } reg_pinmux_rw_pc_gio; | ||
203 | #define REG_RD_ADDR_pinmux_rw_pc_gio 16 | ||
204 | #define REG_WR_ADDR_pinmux_rw_pc_gio 16 | ||
205 | |||
206 | /* Register rw_pc_iop, scope pinmux, type rw */ | ||
207 | typedef struct { | ||
208 | unsigned int pc0 : 1; | ||
209 | unsigned int pc1 : 1; | ||
210 | unsigned int pc2 : 1; | ||
211 | unsigned int pc3 : 1; | ||
212 | unsigned int pc4 : 1; | ||
213 | unsigned int pc5 : 1; | ||
214 | unsigned int pc6 : 1; | ||
215 | unsigned int pc7 : 1; | ||
216 | unsigned int pc8 : 1; | ||
217 | unsigned int pc9 : 1; | ||
218 | unsigned int pc10 : 1; | ||
219 | unsigned int pc11 : 1; | ||
220 | unsigned int pc12 : 1; | ||
221 | unsigned int pc13 : 1; | ||
222 | unsigned int pc14 : 1; | ||
223 | unsigned int pc15 : 1; | ||
224 | unsigned int pc16 : 1; | ||
225 | unsigned int pc17 : 1; | ||
226 | unsigned int dummy1 : 14; | ||
227 | } reg_pinmux_rw_pc_iop; | ||
228 | #define REG_RD_ADDR_pinmux_rw_pc_iop 20 | ||
229 | #define REG_WR_ADDR_pinmux_rw_pc_iop 20 | ||
230 | |||
231 | /* Register rw_pd_gio, scope pinmux, type rw */ | ||
232 | typedef struct { | ||
233 | unsigned int pd0 : 1; | ||
234 | unsigned int pd1 : 1; | ||
235 | unsigned int pd2 : 1; | ||
236 | unsigned int pd3 : 1; | ||
237 | unsigned int pd4 : 1; | ||
238 | unsigned int pd5 : 1; | ||
239 | unsigned int pd6 : 1; | ||
240 | unsigned int pd7 : 1; | ||
241 | unsigned int pd8 : 1; | ||
242 | unsigned int pd9 : 1; | ||
243 | unsigned int pd10 : 1; | ||
244 | unsigned int pd11 : 1; | ||
245 | unsigned int pd12 : 1; | ||
246 | unsigned int pd13 : 1; | ||
247 | unsigned int pd14 : 1; | ||
248 | unsigned int pd15 : 1; | ||
249 | unsigned int pd16 : 1; | ||
250 | unsigned int pd17 : 1; | ||
251 | unsigned int dummy1 : 14; | ||
252 | } reg_pinmux_rw_pd_gio; | ||
253 | #define REG_RD_ADDR_pinmux_rw_pd_gio 24 | ||
254 | #define REG_WR_ADDR_pinmux_rw_pd_gio 24 | ||
255 | |||
256 | /* Register rw_pd_iop, scope pinmux, type rw */ | ||
257 | typedef struct { | ||
258 | unsigned int pd0 : 1; | ||
259 | unsigned int pd1 : 1; | ||
260 | unsigned int pd2 : 1; | ||
261 | unsigned int pd3 : 1; | ||
262 | unsigned int pd4 : 1; | ||
263 | unsigned int pd5 : 1; | ||
264 | unsigned int pd6 : 1; | ||
265 | unsigned int pd7 : 1; | ||
266 | unsigned int pd8 : 1; | ||
267 | unsigned int pd9 : 1; | ||
268 | unsigned int pd10 : 1; | ||
269 | unsigned int pd11 : 1; | ||
270 | unsigned int pd12 : 1; | ||
271 | unsigned int pd13 : 1; | ||
272 | unsigned int pd14 : 1; | ||
273 | unsigned int pd15 : 1; | ||
274 | unsigned int pd16 : 1; | ||
275 | unsigned int pd17 : 1; | ||
276 | unsigned int dummy1 : 14; | ||
277 | } reg_pinmux_rw_pd_iop; | ||
278 | #define REG_RD_ADDR_pinmux_rw_pd_iop 28 | ||
279 | #define REG_WR_ADDR_pinmux_rw_pd_iop 28 | ||
280 | |||
281 | /* Register rw_pe_gio, scope pinmux, type rw */ | ||
282 | typedef struct { | ||
283 | unsigned int pe0 : 1; | ||
284 | unsigned int pe1 : 1; | ||
285 | unsigned int pe2 : 1; | ||
286 | unsigned int pe3 : 1; | ||
287 | unsigned int pe4 : 1; | ||
288 | unsigned int pe5 : 1; | ||
289 | unsigned int pe6 : 1; | ||
290 | unsigned int pe7 : 1; | ||
291 | unsigned int pe8 : 1; | ||
292 | unsigned int pe9 : 1; | ||
293 | unsigned int pe10 : 1; | ||
294 | unsigned int pe11 : 1; | ||
295 | unsigned int pe12 : 1; | ||
296 | unsigned int pe13 : 1; | ||
297 | unsigned int pe14 : 1; | ||
298 | unsigned int pe15 : 1; | ||
299 | unsigned int pe16 : 1; | ||
300 | unsigned int pe17 : 1; | ||
301 | unsigned int dummy1 : 14; | ||
302 | } reg_pinmux_rw_pe_gio; | ||
303 | #define REG_RD_ADDR_pinmux_rw_pe_gio 32 | ||
304 | #define REG_WR_ADDR_pinmux_rw_pe_gio 32 | ||
305 | |||
306 | /* Register rw_pe_iop, scope pinmux, type rw */ | ||
307 | typedef struct { | ||
308 | unsigned int pe0 : 1; | ||
309 | unsigned int pe1 : 1; | ||
310 | unsigned int pe2 : 1; | ||
311 | unsigned int pe3 : 1; | ||
312 | unsigned int pe4 : 1; | ||
313 | unsigned int pe5 : 1; | ||
314 | unsigned int pe6 : 1; | ||
315 | unsigned int pe7 : 1; | ||
316 | unsigned int pe8 : 1; | ||
317 | unsigned int pe9 : 1; | ||
318 | unsigned int pe10 : 1; | ||
319 | unsigned int pe11 : 1; | ||
320 | unsigned int pe12 : 1; | ||
321 | unsigned int pe13 : 1; | ||
322 | unsigned int pe14 : 1; | ||
323 | unsigned int pe15 : 1; | ||
324 | unsigned int pe16 : 1; | ||
325 | unsigned int pe17 : 1; | ||
326 | unsigned int dummy1 : 14; | ||
327 | } reg_pinmux_rw_pe_iop; | ||
328 | #define REG_RD_ADDR_pinmux_rw_pe_iop 36 | ||
329 | #define REG_WR_ADDR_pinmux_rw_pe_iop 36 | ||
330 | |||
331 | /* Register rw_usb_phy, scope pinmux, type rw */ | ||
332 | typedef struct { | ||
333 | unsigned int en_usb0 : 1; | ||
334 | unsigned int en_usb1 : 1; | ||
335 | unsigned int dummy1 : 30; | ||
336 | } reg_pinmux_rw_usb_phy; | ||
337 | #define REG_RD_ADDR_pinmux_rw_usb_phy 40 | ||
338 | #define REG_WR_ADDR_pinmux_rw_usb_phy 40 | ||
339 | |||
340 | |||
341 | /* Constants */ | ||
342 | enum { | ||
343 | regk_pinmux_no = 0x00000000, | ||
344 | regk_pinmux_rw_hwprot_default = 0x00000000, | ||
345 | regk_pinmux_rw_pa_default = 0x00000000, | ||
346 | regk_pinmux_rw_pb_gio_default = 0x00000000, | ||
347 | regk_pinmux_rw_pb_iop_default = 0x00000000, | ||
348 | regk_pinmux_rw_pc_gio_default = 0x00000000, | ||
349 | regk_pinmux_rw_pc_iop_default = 0x00000000, | ||
350 | regk_pinmux_rw_pd_gio_default = 0x00000000, | ||
351 | regk_pinmux_rw_pd_iop_default = 0x00000000, | ||
352 | regk_pinmux_rw_pe_gio_default = 0x00000000, | ||
353 | regk_pinmux_rw_pe_iop_default = 0x00000000, | ||
354 | regk_pinmux_rw_usb_phy_default = 0x00000000, | ||
355 | regk_pinmux_yes = 0x00000001 | ||
356 | }; | ||
357 | #endif /* __pinmux_defs_h */ | ||
diff --git a/arch/cris/include/arch-v32/mach-fs/mach/hwregs/reg_map.h b/arch/cris/include/arch-v32/mach-fs/mach/hwregs/reg_map.h new file mode 100644 index 000000000000..4146973a58b3 --- /dev/null +++ b/arch/cris/include/arch-v32/mach-fs/mach/hwregs/reg_map.h | |||
@@ -0,0 +1,104 @@ | |||
1 | #ifndef __reg_map_h | ||
2 | #define __reg_map_h | ||
3 | |||
4 | /* | ||
5 | * This file is autogenerated from | ||
6 | * file: ../../mod/fakereg.rmap | ||
7 | * id: fakereg.rmap,v 1.3 2004/02/11 19:53:22 ronny Exp | ||
8 | * last modified: Wed Feb 11 20:53:25 2004 | ||
9 | * file: ../../rtl/global.rmap | ||
10 | * id: global.rmap,v 1.3 2003/08/18 15:08:23 mikaeln Exp | ||
11 | * last modified: Mon Aug 18 17:08:23 2003 | ||
12 | * file: ../../mod/modreg.rmap | ||
13 | * id: modreg.rmap,v 1.31 2004/02/20 15:40:04 stefans Exp | ||
14 | * last modified: Fri Feb 20 16:40:04 2004 | ||
15 | * | ||
16 | * by /n/asic/design/tools/rdesc/src/rdes2c -map -base 0xb0000000 ../../rtl/global.rmap ../../mod/modreg.rmap ../../inst/io_proc/rtl/guinness/iop_top.r ../../inst/memarb/rtl/guinness/marb_top.r ../../mod/fakereg.rmap | ||
17 | * id: $Id: reg_map.h,v 1.1 2007/02/13 11:55:30 starvik Exp $ | ||
18 | * Any changes here will be lost. | ||
19 | * | ||
20 | * -*- buffer-read-only: t -*- | ||
21 | */ | ||
22 | typedef enum { | ||
23 | regi_ata = 0xb0032000, | ||
24 | regi_bif_core = 0xb0014000, | ||
25 | regi_bif_dma = 0xb0016000, | ||
26 | regi_bif_slave = 0xb0018000, | ||
27 | regi_config = 0xb003c000, | ||
28 | regi_dma0 = 0xb0000000, | ||
29 | regi_dma1 = 0xb0002000, | ||
30 | regi_dma2 = 0xb0004000, | ||
31 | regi_dma3 = 0xb0006000, | ||
32 | regi_dma4 = 0xb0008000, | ||
33 | regi_dma5 = 0xb000a000, | ||
34 | regi_dma6 = 0xb000c000, | ||
35 | regi_dma7 = 0xb000e000, | ||
36 | regi_dma8 = 0xb0010000, | ||
37 | regi_dma9 = 0xb0012000, | ||
38 | regi_eth0 = 0xb0034000, | ||
39 | regi_eth1 = 0xb0036000, | ||
40 | regi_gio = 0xb001a000, | ||
41 | regi_iop = 0xb0020000, | ||
42 | regi_iop_version = 0xb0020000, | ||
43 | regi_iop_fifo_in0_extra = 0xb0020040, | ||
44 | regi_iop_fifo_in1_extra = 0xb0020080, | ||
45 | regi_iop_fifo_out0_extra = 0xb00200c0, | ||
46 | regi_iop_fifo_out1_extra = 0xb0020100, | ||
47 | regi_iop_trigger_grp0 = 0xb0020140, | ||
48 | regi_iop_trigger_grp1 = 0xb0020180, | ||
49 | regi_iop_trigger_grp2 = 0xb00201c0, | ||
50 | regi_iop_trigger_grp3 = 0xb0020200, | ||
51 | regi_iop_trigger_grp4 = 0xb0020240, | ||
52 | regi_iop_trigger_grp5 = 0xb0020280, | ||
53 | regi_iop_trigger_grp6 = 0xb00202c0, | ||
54 | regi_iop_trigger_grp7 = 0xb0020300, | ||
55 | regi_iop_crc_par0 = 0xb0020380, | ||
56 | regi_iop_crc_par1 = 0xb0020400, | ||
57 | regi_iop_dmc_in0 = 0xb0020480, | ||
58 | regi_iop_dmc_in1 = 0xb0020500, | ||
59 | regi_iop_dmc_out0 = 0xb0020580, | ||
60 | regi_iop_dmc_out1 = 0xb0020600, | ||
61 | regi_iop_fifo_in0 = 0xb0020680, | ||
62 | regi_iop_fifo_in1 = 0xb0020700, | ||
63 | regi_iop_fifo_out0 = 0xb0020780, | ||
64 | regi_iop_fifo_out1 = 0xb0020800, | ||
65 | regi_iop_scrc_in0 = 0xb0020880, | ||
66 | regi_iop_scrc_in1 = 0xb0020900, | ||
67 | regi_iop_scrc_out0 = 0xb0020980, | ||
68 | regi_iop_scrc_out1 = 0xb0020a00, | ||
69 | regi_iop_timer_grp0 = 0xb0020a80, | ||
70 | regi_iop_timer_grp1 = 0xb0020b00, | ||
71 | regi_iop_timer_grp2 = 0xb0020b80, | ||
72 | regi_iop_timer_grp3 = 0xb0020c00, | ||
73 | regi_iop_sap_in = 0xb0020d00, | ||
74 | regi_iop_sap_out = 0xb0020e00, | ||
75 | regi_iop_spu0 = 0xb0020f00, | ||
76 | regi_iop_spu1 = 0xb0021000, | ||
77 | regi_iop_sw_cfg = 0xb0021100, | ||
78 | regi_iop_sw_cpu = 0xb0021200, | ||
79 | regi_iop_sw_mpu = 0xb0021300, | ||
80 | regi_iop_sw_spu0 = 0xb0021400, | ||
81 | regi_iop_sw_spu1 = 0xb0021500, | ||
82 | regi_iop_mpu = 0xb0021600, | ||
83 | regi_irq = 0xb001c000, | ||
84 | regi_irq2 = 0xb005c000, | ||
85 | regi_marb = 0xb003e000, | ||
86 | regi_marb_bp0 = 0xb003e240, | ||
87 | regi_marb_bp1 = 0xb003e280, | ||
88 | regi_marb_bp2 = 0xb003e2c0, | ||
89 | regi_marb_bp3 = 0xb003e300, | ||
90 | regi_pinmux = 0xb0038000, | ||
91 | regi_ser0 = 0xb0026000, | ||
92 | regi_ser1 = 0xb0028000, | ||
93 | regi_ser2 = 0xb002a000, | ||
94 | regi_ser3 = 0xb002c000, | ||
95 | regi_sser0 = 0xb0022000, | ||
96 | regi_sser1 = 0xb0024000, | ||
97 | regi_strcop = 0xb0030000, | ||
98 | regi_strmux = 0xb003a000, | ||
99 | regi_timer = 0xb001e000, | ||
100 | regi_timer0 = 0xb001e000, | ||
101 | regi_timer2 = 0xb005e000, | ||
102 | regi_trace = 0xb0040000, | ||
103 | } reg_scope_instances; | ||
104 | #endif /* __reg_map_h */ | ||
diff --git a/arch/cris/include/arch-v32/mach-fs/mach/hwregs/strmux_defs.h b/arch/cris/include/arch-v32/mach-fs/mach/hwregs/strmux_defs.h new file mode 100644 index 000000000000..cbfaa867829e --- /dev/null +++ b/arch/cris/include/arch-v32/mach-fs/mach/hwregs/strmux_defs.h | |||
@@ -0,0 +1,127 @@ | |||
1 | #ifndef __strmux_defs_h | ||
2 | #define __strmux_defs_h | ||
3 | |||
4 | /* | ||
5 | * This file is autogenerated from | ||
6 | * file: ../../inst/strmux/rtl/guinness/strmux_regs.r | ||
7 | * id: strmux_regs.r,v 1.10 2005/02/10 10:10:46 perz Exp | ||
8 | * last modfied: Mon Apr 11 16:09:43 2005 | ||
9 | * | ||
10 | * by /n/asic/design/tools/rdesc/src/rdes2c --outfile strmux_defs.h ../../inst/strmux/rtl/guinness/strmux_regs.r | ||
11 | * id: $Id: strmux_defs.h,v 1.1 2007/02/13 11:55:30 starvik Exp $ | ||
12 | * Any changes here will be lost. | ||
13 | * | ||
14 | * -*- buffer-read-only: t -*- | ||
15 | */ | ||
16 | /* Main access macros */ | ||
17 | #ifndef REG_RD | ||
18 | #define REG_RD( scope, inst, reg ) \ | ||
19 | REG_READ( reg_##scope##_##reg, \ | ||
20 | (inst) + REG_RD_ADDR_##scope##_##reg ) | ||
21 | #endif | ||
22 | |||
23 | #ifndef REG_WR | ||
24 | #define REG_WR( scope, inst, reg, val ) \ | ||
25 | REG_WRITE( reg_##scope##_##reg, \ | ||
26 | (inst) + REG_WR_ADDR_##scope##_##reg, (val) ) | ||
27 | #endif | ||
28 | |||
29 | #ifndef REG_RD_VECT | ||
30 | #define REG_RD_VECT( scope, inst, reg, index ) \ | ||
31 | REG_READ( reg_##scope##_##reg, \ | ||
32 | (inst) + REG_RD_ADDR_##scope##_##reg + \ | ||
33 | (index) * STRIDE_##scope##_##reg ) | ||
34 | #endif | ||
35 | |||
36 | #ifndef REG_WR_VECT | ||
37 | #define REG_WR_VECT( scope, inst, reg, index, val ) \ | ||
38 | REG_WRITE( reg_##scope##_##reg, \ | ||
39 | (inst) + REG_WR_ADDR_##scope##_##reg + \ | ||
40 | (index) * STRIDE_##scope##_##reg, (val) ) | ||
41 | #endif | ||
42 | |||
43 | #ifndef REG_RD_INT | ||
44 | #define REG_RD_INT( scope, inst, reg ) \ | ||
45 | REG_READ( int, (inst) + REG_RD_ADDR_##scope##_##reg ) | ||
46 | #endif | ||
47 | |||
48 | #ifndef REG_WR_INT | ||
49 | #define REG_WR_INT( scope, inst, reg, val ) \ | ||
50 | REG_WRITE( int, (inst) + REG_WR_ADDR_##scope##_##reg, (val) ) | ||
51 | #endif | ||
52 | |||
53 | #ifndef REG_RD_INT_VECT | ||
54 | #define REG_RD_INT_VECT( scope, inst, reg, index ) \ | ||
55 | REG_READ( int, (inst) + REG_RD_ADDR_##scope##_##reg + \ | ||
56 | (index) * STRIDE_##scope##_##reg ) | ||
57 | #endif | ||
58 | |||
59 | #ifndef REG_WR_INT_VECT | ||
60 | #define REG_WR_INT_VECT( scope, inst, reg, index, val ) \ | ||
61 | REG_WRITE( int, (inst) + REG_WR_ADDR_##scope##_##reg + \ | ||
62 | (index) * STRIDE_##scope##_##reg, (val) ) | ||
63 | #endif | ||
64 | |||
65 | #ifndef REG_TYPE_CONV | ||
66 | #define REG_TYPE_CONV( type, orgtype, val ) \ | ||
67 | ( { union { orgtype o; type n; } r; r.o = val; r.n; } ) | ||
68 | #endif | ||
69 | |||
70 | #ifndef reg_page_size | ||
71 | #define reg_page_size 8192 | ||
72 | #endif | ||
73 | |||
74 | #ifndef REG_ADDR | ||
75 | #define REG_ADDR( scope, inst, reg ) \ | ||
76 | ( (inst) + REG_RD_ADDR_##scope##_##reg ) | ||
77 | #endif | ||
78 | |||
79 | #ifndef REG_ADDR_VECT | ||
80 | #define REG_ADDR_VECT( scope, inst, reg, index ) \ | ||
81 | ( (inst) + REG_RD_ADDR_##scope##_##reg + \ | ||
82 | (index) * STRIDE_##scope##_##reg ) | ||
83 | #endif | ||
84 | |||
85 | /* C-code for register scope strmux */ | ||
86 | |||
87 | /* Register rw_cfg, scope strmux, type rw */ | ||
88 | typedef struct { | ||
89 | unsigned int dma0 : 3; | ||
90 | unsigned int dma1 : 3; | ||
91 | unsigned int dma2 : 3; | ||
92 | unsigned int dma3 : 3; | ||
93 | unsigned int dma4 : 3; | ||
94 | unsigned int dma5 : 3; | ||
95 | unsigned int dma6 : 3; | ||
96 | unsigned int dma7 : 3; | ||
97 | unsigned int dma8 : 3; | ||
98 | unsigned int dma9 : 3; | ||
99 | unsigned int dummy1 : 2; | ||
100 | } reg_strmux_rw_cfg; | ||
101 | #define REG_RD_ADDR_strmux_rw_cfg 0 | ||
102 | #define REG_WR_ADDR_strmux_rw_cfg 0 | ||
103 | |||
104 | |||
105 | /* Constants */ | ||
106 | enum { | ||
107 | regk_strmux_ata = 0x00000003, | ||
108 | regk_strmux_eth0 = 0x00000001, | ||
109 | regk_strmux_eth1 = 0x00000004, | ||
110 | regk_strmux_ext0 = 0x00000001, | ||
111 | regk_strmux_ext1 = 0x00000001, | ||
112 | regk_strmux_ext2 = 0x00000001, | ||
113 | regk_strmux_ext3 = 0x00000001, | ||
114 | regk_strmux_iop0 = 0x00000002, | ||
115 | regk_strmux_iop1 = 0x00000001, | ||
116 | regk_strmux_off = 0x00000000, | ||
117 | regk_strmux_p21 = 0x00000004, | ||
118 | regk_strmux_rw_cfg_default = 0x00000000, | ||
119 | regk_strmux_ser0 = 0x00000002, | ||
120 | regk_strmux_ser1 = 0x00000002, | ||
121 | regk_strmux_ser2 = 0x00000004, | ||
122 | regk_strmux_ser3 = 0x00000003, | ||
123 | regk_strmux_sser0 = 0x00000003, | ||
124 | regk_strmux_sser1 = 0x00000003, | ||
125 | regk_strmux_strcop = 0x00000002 | ||
126 | }; | ||
127 | #endif /* __strmux_defs_h */ | ||
diff --git a/arch/cris/include/arch-v32/mach-fs/mach/hwregs/timer_defs.h b/arch/cris/include/arch-v32/mach-fs/mach/hwregs/timer_defs.h new file mode 100644 index 000000000000..76bcc591921d --- /dev/null +++ b/arch/cris/include/arch-v32/mach-fs/mach/hwregs/timer_defs.h | |||
@@ -0,0 +1,266 @@ | |||
1 | #ifndef __timer_defs_h | ||
2 | #define __timer_defs_h | ||
3 | |||
4 | /* | ||
5 | * This file is autogenerated from | ||
6 | * file: ../../inst/timer/rtl/timer_regs.r | ||
7 | * id: timer_regs.r,v 1.7 2003/03/11 11:16:59 perz Exp | ||
8 | * last modfied: Mon Apr 11 16:09:53 2005 | ||
9 | * | ||
10 | * by /n/asic/design/tools/rdesc/src/rdes2c --outfile timer_defs.h ../../inst/timer/rtl/timer_regs.r | ||
11 | * id: $Id: timer_defs.h,v 1.1 2007/04/11 13:51:01 ricardw Exp $ | ||
12 | * Any changes here will be lost. | ||
13 | * | ||
14 | * -*- buffer-read-only: t -*- | ||
15 | */ | ||
16 | /* Main access macros */ | ||
17 | #ifndef REG_RD | ||
18 | #define REG_RD( scope, inst, reg ) \ | ||
19 | REG_READ( reg_##scope##_##reg, \ | ||
20 | (inst) + REG_RD_ADDR_##scope##_##reg ) | ||
21 | #endif | ||
22 | |||
23 | #ifndef REG_WR | ||
24 | #define REG_WR( scope, inst, reg, val ) \ | ||
25 | REG_WRITE( reg_##scope##_##reg, \ | ||
26 | (inst) + REG_WR_ADDR_##scope##_##reg, (val) ) | ||
27 | #endif | ||
28 | |||
29 | #ifndef REG_RD_VECT | ||
30 | #define REG_RD_VECT( scope, inst, reg, index ) \ | ||
31 | REG_READ( reg_##scope##_##reg, \ | ||
32 | (inst) + REG_RD_ADDR_##scope##_##reg + \ | ||
33 | (index) * STRIDE_##scope##_##reg ) | ||
34 | #endif | ||
35 | |||
36 | #ifndef REG_WR_VECT | ||
37 | #define REG_WR_VECT( scope, inst, reg, index, val ) \ | ||
38 | REG_WRITE( reg_##scope##_##reg, \ | ||
39 | (inst) + REG_WR_ADDR_##scope##_##reg + \ | ||
40 | (index) * STRIDE_##scope##_##reg, (val) ) | ||
41 | #endif | ||
42 | |||
43 | #ifndef REG_RD_INT | ||
44 | #define REG_RD_INT( scope, inst, reg ) \ | ||
45 | REG_READ( int, (inst) + REG_RD_ADDR_##scope##_##reg ) | ||
46 | #endif | ||
47 | |||
48 | #ifndef REG_WR_INT | ||
49 | #define REG_WR_INT( scope, inst, reg, val ) \ | ||
50 | REG_WRITE( int, (inst) + REG_WR_ADDR_##scope##_##reg, (val) ) | ||
51 | #endif | ||
52 | |||
53 | #ifndef REG_RD_INT_VECT | ||
54 | #define REG_RD_INT_VECT( scope, inst, reg, index ) \ | ||
55 | REG_READ( int, (inst) + REG_RD_ADDR_##scope##_##reg + \ | ||
56 | (index) * STRIDE_##scope##_##reg ) | ||
57 | #endif | ||
58 | |||
59 | #ifndef REG_WR_INT_VECT | ||
60 | #define REG_WR_INT_VECT( scope, inst, reg, index, val ) \ | ||
61 | REG_WRITE( int, (inst) + REG_WR_ADDR_##scope##_##reg + \ | ||
62 | (index) * STRIDE_##scope##_##reg, (val) ) | ||
63 | #endif | ||
64 | |||
65 | #ifndef REG_TYPE_CONV | ||
66 | #define REG_TYPE_CONV( type, orgtype, val ) \ | ||
67 | ( { union { orgtype o; type n; } r; r.o = val; r.n; } ) | ||
68 | #endif | ||
69 | |||
70 | #ifndef reg_page_size | ||
71 | #define reg_page_size 8192 | ||
72 | #endif | ||
73 | |||
74 | #ifndef REG_ADDR | ||
75 | #define REG_ADDR( scope, inst, reg ) \ | ||
76 | ( (inst) + REG_RD_ADDR_##scope##_##reg ) | ||
77 | #endif | ||
78 | |||
79 | #ifndef REG_ADDR_VECT | ||
80 | #define REG_ADDR_VECT( scope, inst, reg, index ) \ | ||
81 | ( (inst) + REG_RD_ADDR_##scope##_##reg + \ | ||
82 | (index) * STRIDE_##scope##_##reg ) | ||
83 | #endif | ||
84 | |||
85 | /* C-code for register scope timer */ | ||
86 | |||
87 | /* Register rw_tmr0_div, scope timer, type rw */ | ||
88 | typedef unsigned int reg_timer_rw_tmr0_div; | ||
89 | #define REG_RD_ADDR_timer_rw_tmr0_div 0 | ||
90 | #define REG_WR_ADDR_timer_rw_tmr0_div 0 | ||
91 | |||
92 | /* Register r_tmr0_data, scope timer, type r */ | ||
93 | typedef unsigned int reg_timer_r_tmr0_data; | ||
94 | #define REG_RD_ADDR_timer_r_tmr0_data 4 | ||
95 | |||
96 | /* Register rw_tmr0_ctrl, scope timer, type rw */ | ||
97 | typedef struct { | ||
98 | unsigned int op : 2; | ||
99 | unsigned int freq : 3; | ||
100 | unsigned int dummy1 : 27; | ||
101 | } reg_timer_rw_tmr0_ctrl; | ||
102 | #define REG_RD_ADDR_timer_rw_tmr0_ctrl 8 | ||
103 | #define REG_WR_ADDR_timer_rw_tmr0_ctrl 8 | ||
104 | |||
105 | /* Register rw_tmr1_div, scope timer, type rw */ | ||
106 | typedef unsigned int reg_timer_rw_tmr1_div; | ||
107 | #define REG_RD_ADDR_timer_rw_tmr1_div 16 | ||
108 | #define REG_WR_ADDR_timer_rw_tmr1_div 16 | ||
109 | |||
110 | /* Register r_tmr1_data, scope timer, type r */ | ||
111 | typedef unsigned int reg_timer_r_tmr1_data; | ||
112 | #define REG_RD_ADDR_timer_r_tmr1_data 20 | ||
113 | |||
114 | /* Register rw_tmr1_ctrl, scope timer, type rw */ | ||
115 | typedef struct { | ||
116 | unsigned int op : 2; | ||
117 | unsigned int freq : 3; | ||
118 | unsigned int dummy1 : 27; | ||
119 | } reg_timer_rw_tmr1_ctrl; | ||
120 | #define REG_RD_ADDR_timer_rw_tmr1_ctrl 24 | ||
121 | #define REG_WR_ADDR_timer_rw_tmr1_ctrl 24 | ||
122 | |||
123 | /* Register rs_cnt_data, scope timer, type rs */ | ||
124 | typedef struct { | ||
125 | unsigned int tmr : 24; | ||
126 | unsigned int cnt : 8; | ||
127 | } reg_timer_rs_cnt_data; | ||
128 | #define REG_RD_ADDR_timer_rs_cnt_data 32 | ||
129 | |||
130 | /* Register r_cnt_data, scope timer, type r */ | ||
131 | typedef struct { | ||
132 | unsigned int tmr : 24; | ||
133 | unsigned int cnt : 8; | ||
134 | } reg_timer_r_cnt_data; | ||
135 | #define REG_RD_ADDR_timer_r_cnt_data 36 | ||
136 | |||
137 | /* Register rw_cnt_cfg, scope timer, type rw */ | ||
138 | typedef struct { | ||
139 | unsigned int clk : 2; | ||
140 | unsigned int dummy1 : 30; | ||
141 | } reg_timer_rw_cnt_cfg; | ||
142 | #define REG_RD_ADDR_timer_rw_cnt_cfg 40 | ||
143 | #define REG_WR_ADDR_timer_rw_cnt_cfg 40 | ||
144 | |||
145 | /* Register rw_trig, scope timer, type rw */ | ||
146 | typedef unsigned int reg_timer_rw_trig; | ||
147 | #define REG_RD_ADDR_timer_rw_trig 48 | ||
148 | #define REG_WR_ADDR_timer_rw_trig 48 | ||
149 | |||
150 | /* Register rw_trig_cfg, scope timer, type rw */ | ||
151 | typedef struct { | ||
152 | unsigned int tmr : 2; | ||
153 | unsigned int dummy1 : 30; | ||
154 | } reg_timer_rw_trig_cfg; | ||
155 | #define REG_RD_ADDR_timer_rw_trig_cfg 52 | ||
156 | #define REG_WR_ADDR_timer_rw_trig_cfg 52 | ||
157 | |||
158 | /* Register r_time, scope timer, type r */ | ||
159 | typedef unsigned int reg_timer_r_time; | ||
160 | #define REG_RD_ADDR_timer_r_time 56 | ||
161 | |||
162 | /* Register rw_out, scope timer, type rw */ | ||
163 | typedef struct { | ||
164 | unsigned int tmr : 2; | ||
165 | unsigned int dummy1 : 30; | ||
166 | } reg_timer_rw_out; | ||
167 | #define REG_RD_ADDR_timer_rw_out 60 | ||
168 | #define REG_WR_ADDR_timer_rw_out 60 | ||
169 | |||
170 | /* Register rw_wd_ctrl, scope timer, type rw */ | ||
171 | typedef struct { | ||
172 | unsigned int cnt : 8; | ||
173 | unsigned int cmd : 1; | ||
174 | unsigned int key : 7; | ||
175 | unsigned int dummy1 : 16; | ||
176 | } reg_timer_rw_wd_ctrl; | ||
177 | #define REG_RD_ADDR_timer_rw_wd_ctrl 64 | ||
178 | #define REG_WR_ADDR_timer_rw_wd_ctrl 64 | ||
179 | |||
180 | /* Register r_wd_stat, scope timer, type r */ | ||
181 | typedef struct { | ||
182 | unsigned int cnt : 8; | ||
183 | unsigned int cmd : 1; | ||
184 | unsigned int dummy1 : 23; | ||
185 | } reg_timer_r_wd_stat; | ||
186 | #define REG_RD_ADDR_timer_r_wd_stat 68 | ||
187 | |||
188 | /* Register rw_intr_mask, scope timer, type rw */ | ||
189 | typedef struct { | ||
190 | unsigned int tmr0 : 1; | ||
191 | unsigned int tmr1 : 1; | ||
192 | unsigned int cnt : 1; | ||
193 | unsigned int trig : 1; | ||
194 | unsigned int dummy1 : 28; | ||
195 | } reg_timer_rw_intr_mask; | ||
196 | #define REG_RD_ADDR_timer_rw_intr_mask 72 | ||
197 | #define REG_WR_ADDR_timer_rw_intr_mask 72 | ||
198 | |||
199 | /* Register rw_ack_intr, scope timer, type rw */ | ||
200 | typedef struct { | ||
201 | unsigned int tmr0 : 1; | ||
202 | unsigned int tmr1 : 1; | ||
203 | unsigned int cnt : 1; | ||
204 | unsigned int trig : 1; | ||
205 | unsigned int dummy1 : 28; | ||
206 | } reg_timer_rw_ack_intr; | ||
207 | #define REG_RD_ADDR_timer_rw_ack_intr 76 | ||
208 | #define REG_WR_ADDR_timer_rw_ack_intr 76 | ||
209 | |||
210 | /* Register r_intr, scope timer, type r */ | ||
211 | typedef struct { | ||
212 | unsigned int tmr0 : 1; | ||
213 | unsigned int tmr1 : 1; | ||
214 | unsigned int cnt : 1; | ||
215 | unsigned int trig : 1; | ||
216 | unsigned int dummy1 : 28; | ||
217 | } reg_timer_r_intr; | ||
218 | #define REG_RD_ADDR_timer_r_intr 80 | ||
219 | |||
220 | /* Register r_masked_intr, scope timer, type r */ | ||
221 | typedef struct { | ||
222 | unsigned int tmr0 : 1; | ||
223 | unsigned int tmr1 : 1; | ||
224 | unsigned int cnt : 1; | ||
225 | unsigned int trig : 1; | ||
226 | unsigned int dummy1 : 28; | ||
227 | } reg_timer_r_masked_intr; | ||
228 | #define REG_RD_ADDR_timer_r_masked_intr 84 | ||
229 | |||
230 | /* Register rw_test, scope timer, type rw */ | ||
231 | typedef struct { | ||
232 | unsigned int dis : 1; | ||
233 | unsigned int en : 1; | ||
234 | unsigned int dummy1 : 30; | ||
235 | } reg_timer_rw_test; | ||
236 | #define REG_RD_ADDR_timer_rw_test 88 | ||
237 | #define REG_WR_ADDR_timer_rw_test 88 | ||
238 | |||
239 | |||
240 | /* Constants */ | ||
241 | enum { | ||
242 | regk_timer_ext = 0x00000001, | ||
243 | regk_timer_f100 = 0x00000007, | ||
244 | regk_timer_f29_493 = 0x00000004, | ||
245 | regk_timer_f32 = 0x00000005, | ||
246 | regk_timer_f32_768 = 0x00000006, | ||
247 | regk_timer_hold = 0x00000001, | ||
248 | regk_timer_ld = 0x00000000, | ||
249 | regk_timer_no = 0x00000000, | ||
250 | regk_timer_off = 0x00000000, | ||
251 | regk_timer_run = 0x00000002, | ||
252 | regk_timer_rw_cnt_cfg_default = 0x00000000, | ||
253 | regk_timer_rw_intr_mask_default = 0x00000000, | ||
254 | regk_timer_rw_out_default = 0x00000000, | ||
255 | regk_timer_rw_test_default = 0x00000000, | ||
256 | regk_timer_rw_tmr0_ctrl_default = 0x00000000, | ||
257 | regk_timer_rw_tmr1_ctrl_default = 0x00000000, | ||
258 | regk_timer_rw_trig_cfg_default = 0x00000000, | ||
259 | regk_timer_start = 0x00000001, | ||
260 | regk_timer_stop = 0x00000000, | ||
261 | regk_timer_time = 0x00000001, | ||
262 | regk_timer_tmr0 = 0x00000002, | ||
263 | regk_timer_tmr1 = 0x00000003, | ||
264 | regk_timer_yes = 0x00000001 | ||
265 | }; | ||
266 | #endif /* __timer_defs_h */ | ||
diff --git a/arch/cris/include/arch-v32/mach-fs/mach/pinmux.h b/arch/cris/include/arch-v32/mach-fs/mach/pinmux.h new file mode 100644 index 000000000000..c2b3036779df --- /dev/null +++ b/arch/cris/include/arch-v32/mach-fs/mach/pinmux.h | |||
@@ -0,0 +1,38 @@ | |||
1 | #ifndef _ASM_CRIS_ARCH_PINMUX_H | ||
2 | #define _ASM_CRIS_ARCH_PINMUX_H | ||
3 | |||
4 | #define PORT_B 0 | ||
5 | #define PORT_C 1 | ||
6 | #define PORT_D 2 | ||
7 | #define PORT_E 3 | ||
8 | |||
9 | enum pin_mode { | ||
10 | pinmux_none = 0, | ||
11 | pinmux_fixed, | ||
12 | pinmux_gpio, | ||
13 | pinmux_iop | ||
14 | }; | ||
15 | |||
16 | enum fixed_function { | ||
17 | pinmux_ser1, | ||
18 | pinmux_ser2, | ||
19 | pinmux_ser3, | ||
20 | pinmux_sser0, | ||
21 | pinmux_sser1, | ||
22 | pinmux_ata0, | ||
23 | pinmux_ata1, | ||
24 | pinmux_ata2, | ||
25 | pinmux_ata3, | ||
26 | pinmux_ata, | ||
27 | pinmux_eth1, | ||
28 | pinmux_timer | ||
29 | }; | ||
30 | |||
31 | int crisv32_pinmux_init(void); | ||
32 | int crisv32_pinmux_alloc(int port, int first_pin, int last_pin, enum pin_mode); | ||
33 | int crisv32_pinmux_alloc_fixed(enum fixed_function function); | ||
34 | int crisv32_pinmux_dealloc(int port, int first_pin, int last_pin); | ||
35 | int crisv32_pinmux_dealloc_fixed(enum fixed_function function); | ||
36 | void crisv32_pinmux_dump(void); | ||
37 | |||
38 | #endif | ||
diff --git a/arch/cris/include/arch-v32/mach-fs/mach/startup.inc b/arch/cris/include/arch-v32/mach-fs/mach/startup.inc new file mode 100644 index 000000000000..4a10ccbd6cc1 --- /dev/null +++ b/arch/cris/include/arch-v32/mach-fs/mach/startup.inc | |||
@@ -0,0 +1,77 @@ | |||
1 | #include <hwregs/asm/reg_map_asm.h> | ||
2 | #include <hwregs/asm/bif_core_defs_asm.h> | ||
3 | #include <hwregs/asm/gio_defs_asm.h> | ||
4 | #include <hwregs/asm/config_defs_asm.h> | ||
5 | |||
6 | .macro GIO_INIT | ||
7 | move.d CONFIG_ETRAX_DEF_GIO_PA_OUT, $r0 | ||
8 | move.d REG_ADDR(gio, regi_gio, rw_pa_dout), $r1 | ||
9 | move.d $r0, [$r1] | ||
10 | |||
11 | move.d CONFIG_ETRAX_DEF_GIO_PA_OE, $r0 | ||
12 | move.d REG_ADDR(gio, regi_gio, rw_pa_oe), $r1 | ||
13 | move.d $r0, [$r1] | ||
14 | |||
15 | move.d CONFIG_ETRAX_DEF_GIO_PB_OUT, $r0 | ||
16 | move.d REG_ADDR(gio, regi_gio, rw_pb_dout), $r1 | ||
17 | move.d $r0, [$r1] | ||
18 | |||
19 | move.d CONFIG_ETRAX_DEF_GIO_PB_OE, $r0 | ||
20 | move.d REG_ADDR(gio, regi_gio, rw_pb_oe), $r1 | ||
21 | move.d $r0, [$r1] | ||
22 | |||
23 | move.d CONFIG_ETRAX_DEF_GIO_PC_OUT, $r0 | ||
24 | move.d REG_ADDR(gio, regi_gio, rw_pc_dout), $r1 | ||
25 | move.d $r0, [$r1] | ||
26 | |||
27 | move.d CONFIG_ETRAX_DEF_GIO_PC_OE, $r0 | ||
28 | move.d REG_ADDR(gio, regi_gio, rw_pc_oe), $r1 | ||
29 | move.d $r0, [$r1] | ||
30 | |||
31 | move.d CONFIG_ETRAX_DEF_GIO_PD_OUT, $r0 | ||
32 | move.d REG_ADDR(gio, regi_gio, rw_pd_dout), $r1 | ||
33 | move.d $r0, [$r1] | ||
34 | |||
35 | move.d CONFIG_ETRAX_DEF_GIO_PD_OE, $r0 | ||
36 | move.d REG_ADDR(gio, regi_gio, rw_pd_oe), $r1 | ||
37 | move.d $r0, [$r1] | ||
38 | |||
39 | move.d CONFIG_ETRAX_DEF_GIO_PE_OUT, $r0 | ||
40 | move.d REG_ADDR(gio, regi_gio, rw_pe_dout), $r1 | ||
41 | move.d $r0, [$r1] | ||
42 | |||
43 | move.d CONFIG_ETRAX_DEF_GIO_PE_OE, $r0 | ||
44 | move.d REG_ADDR(gio, regi_gio, rw_pe_oe), $r1 | ||
45 | move.d $r0, [$r1] | ||
46 | .endm | ||
47 | |||
48 | .macro START_CLOCKS | ||
49 | move.d REG_ADDR(config, regi_config, rw_clk_ctrl), $r1 | ||
50 | move.d [$r1], $r0 | ||
51 | or.d REG_STATE(config, rw_clk_ctrl, cpu, yes) | \ | ||
52 | REG_STATE(config, rw_clk_ctrl, bif, yes) | \ | ||
53 | REG_STATE(config, rw_clk_ctrl, fix_io, yes), $r0 | ||
54 | move.d $r0, [$r1] | ||
55 | .endm | ||
56 | |||
57 | .macro SETUP_WAIT_STATES | ||
58 | ;; Set up waitstates etc | ||
59 | move.d REG_ADDR(bif_core, regi_bif_core, rw_grp1_cfg), $r0 | ||
60 | move.d CONFIG_ETRAX_MEM_GRP1_CONFIG, $r1 | ||
61 | move.d $r1, [$r0] | ||
62 | move.d REG_ADDR(bif_core, regi_bif_core, rw_grp2_cfg), $r0 | ||
63 | move.d CONFIG_ETRAX_MEM_GRP2_CONFIG, $r1 | ||
64 | move.d $r1, [$r0] | ||
65 | move.d REG_ADDR(bif_core, regi_bif_core, rw_grp3_cfg), $r0 | ||
66 | move.d CONFIG_ETRAX_MEM_GRP3_CONFIG, $r1 | ||
67 | move.d $r1, [$r0] | ||
68 | move.d REG_ADDR(bif_core, regi_bif_core, rw_grp4_cfg), $r0 | ||
69 | move.d CONFIG_ETRAX_MEM_GRP4_CONFIG, $r1 | ||
70 | move.d $r1, [$r0] | ||
71 | #ifdef CONFIG_ETRAX_VCS_SIM | ||
72 | ;; Set up minimal flash waitstates | ||
73 | move.d 0, $r10 | ||
74 | move.d REG_ADDR(bif_core, regi_bif_core, rw_grp1_cfg), $r11 | ||
75 | move.d $r10, [$r11] | ||
76 | #endif | ||
77 | .endm | ||