CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
orangepi-xunlong

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: orangepi-xunlong/orangepi-build
Path: blob/next/external/cache/sources/wl/include/aidmp.h
Views: 3959
1
/*
2
* Broadcom AMBA Interconnect definitions.
3
*
4
* $Copyright Open Broadcom Corporation$
5
*
6
* $Id: aidmp.h 382794 2013-02-04 17:34:08Z $
7
*/
8
9
#ifndef _AIDMP_H
10
#define _AIDMP_H
11
12
13
#define MFGID_ARM 0x43b
14
#define MFGID_BRCM 0x4bf
15
#define MFGID_MIPS 0x4a7
16
17
18
#define CC_SIM 0
19
#define CC_EROM 1
20
#define CC_CORESIGHT 9
21
#define CC_VERIF 0xb
22
#define CC_OPTIMO 0xd
23
#define CC_GEN 0xe
24
#define CC_PRIMECELL 0xf
25
26
27
#define ER_EROMENTRY 0x000
28
#define ER_REMAPCONTROL 0xe00
29
#define ER_REMAPSELECT 0xe04
30
#define ER_MASTERSELECT 0xe10
31
#define ER_ITCR 0xf00
32
#define ER_ITIP 0xf04
33
34
35
#define ER_TAG 0xe
36
#define ER_TAG1 0x6
37
#define ER_VALID 1
38
#define ER_CI 0
39
#define ER_MP 2
40
#define ER_ADD 4
41
#define ER_END 0xe
42
#define ER_BAD 0xffffffff
43
44
45
#define CIA_MFG_MASK 0xfff00000
46
#define CIA_MFG_SHIFT 20
47
#define CIA_CID_MASK 0x000fff00
48
#define CIA_CID_SHIFT 8
49
#define CIA_CCL_MASK 0x000000f0
50
#define CIA_CCL_SHIFT 4
51
52
53
#define CIB_REV_MASK 0xff000000
54
#define CIB_REV_SHIFT 24
55
#define CIB_NSW_MASK 0x00f80000
56
#define CIB_NSW_SHIFT 19
57
#define CIB_NMW_MASK 0x0007c000
58
#define CIB_NMW_SHIFT 14
59
#define CIB_NSP_MASK 0x00003e00
60
#define CIB_NSP_SHIFT 9
61
#define CIB_NMP_MASK 0x000001f0
62
#define CIB_NMP_SHIFT 4
63
64
65
#define MPD_MUI_MASK 0x0000ff00
66
#define MPD_MUI_SHIFT 8
67
#define MPD_MP_MASK 0x000000f0
68
#define MPD_MP_SHIFT 4
69
70
71
#define AD_ADDR_MASK 0xfffff000
72
#define AD_SP_MASK 0x00000f00
73
#define AD_SP_SHIFT 8
74
#define AD_ST_MASK 0x000000c0
75
#define AD_ST_SHIFT 6
76
#define AD_ST_SLAVE 0x00000000
77
#define AD_ST_BRIDGE 0x00000040
78
#define AD_ST_SWRAP 0x00000080
79
#define AD_ST_MWRAP 0x000000c0
80
#define AD_SZ_MASK 0x00000030
81
#define AD_SZ_SHIFT 4
82
#define AD_SZ_4K 0x00000000
83
#define AD_SZ_8K 0x00000010
84
#define AD_SZ_16K 0x00000020
85
#define AD_SZ_SZD 0x00000030
86
#define AD_AG32 0x00000008
87
#define AD_ADDR_ALIGN 0x00000fff
88
#define AD_SZ_BASE 0x00001000
89
90
91
#define SD_SZ_MASK 0xfffff000
92
#define SD_SG32 0x00000008
93
#define SD_SZ_ALIGN 0x00000fff
94
95
96
#ifndef _LANGUAGE_ASSEMBLY
97
98
typedef volatile struct _aidmp {
99
uint32 oobselina30;
100
uint32 oobselina74;
101
uint32 PAD[6];
102
uint32 oobselinb30;
103
uint32 oobselinb74;
104
uint32 PAD[6];
105
uint32 oobselinc30;
106
uint32 oobselinc74;
107
uint32 PAD[6];
108
uint32 oobselind30;
109
uint32 oobselind74;
110
uint32 PAD[38];
111
uint32 oobselouta30;
112
uint32 oobselouta74;
113
uint32 PAD[6];
114
uint32 oobseloutb30;
115
uint32 oobseloutb74;
116
uint32 PAD[6];
117
uint32 oobseloutc30;
118
uint32 oobseloutc74;
119
uint32 PAD[6];
120
uint32 oobseloutd30;
121
uint32 oobseloutd74;
122
uint32 PAD[38];
123
uint32 oobsynca;
124
uint32 oobseloutaen;
125
uint32 PAD[6];
126
uint32 oobsyncb;
127
uint32 oobseloutben;
128
uint32 PAD[6];
129
uint32 oobsyncc;
130
uint32 oobseloutcen;
131
uint32 PAD[6];
132
uint32 oobsyncd;
133
uint32 oobseloutden;
134
uint32 PAD[38];
135
uint32 oobaextwidth;
136
uint32 oobainwidth;
137
uint32 oobaoutwidth;
138
uint32 PAD[5];
139
uint32 oobbextwidth;
140
uint32 oobbinwidth;
141
uint32 oobboutwidth;
142
uint32 PAD[5];
143
uint32 oobcextwidth;
144
uint32 oobcinwidth;
145
uint32 oobcoutwidth;
146
uint32 PAD[5];
147
uint32 oobdextwidth;
148
uint32 oobdinwidth;
149
uint32 oobdoutwidth;
150
uint32 PAD[37];
151
uint32 ioctrlset;
152
uint32 ioctrlclear;
153
uint32 ioctrl;
154
uint32 PAD[61];
155
uint32 iostatus;
156
uint32 PAD[127];
157
uint32 ioctrlwidth;
158
uint32 iostatuswidth;
159
uint32 PAD[62];
160
uint32 resetctrl;
161
uint32 resetstatus;
162
uint32 resetreadid;
163
uint32 resetwriteid;
164
uint32 PAD[60];
165
uint32 errlogctrl;
166
uint32 errlogdone;
167
uint32 errlogstatus;
168
uint32 errlogaddrlo;
169
uint32 errlogaddrhi;
170
uint32 errlogid;
171
uint32 errloguser;
172
uint32 errlogflags;
173
uint32 PAD[56];
174
uint32 intstatus;
175
uint32 PAD[255];
176
uint32 config;
177
uint32 PAD[63];
178
uint32 itcr;
179
uint32 PAD[3];
180
uint32 itipooba;
181
uint32 itipoobb;
182
uint32 itipoobc;
183
uint32 itipoobd;
184
uint32 PAD[4];
185
uint32 itipoobaout;
186
uint32 itipoobbout;
187
uint32 itipoobcout;
188
uint32 itipoobdout;
189
uint32 PAD[4];
190
uint32 itopooba;
191
uint32 itopoobb;
192
uint32 itopoobc;
193
uint32 itopoobd;
194
uint32 PAD[4];
195
uint32 itopoobain;
196
uint32 itopoobbin;
197
uint32 itopoobcin;
198
uint32 itopoobdin;
199
uint32 PAD[4];
200
uint32 itopreset;
201
uint32 PAD[15];
202
uint32 peripherialid4;
203
uint32 peripherialid5;
204
uint32 peripherialid6;
205
uint32 peripherialid7;
206
uint32 peripherialid0;
207
uint32 peripherialid1;
208
uint32 peripherialid2;
209
uint32 peripherialid3;
210
uint32 componentid0;
211
uint32 componentid1;
212
uint32 componentid2;
213
uint32 componentid3;
214
} aidmp_t;
215
216
#endif
217
218
219
#define OOB_BUSCONFIG 0x020
220
#define OOB_STATUSA 0x100
221
#define OOB_STATUSB 0x104
222
#define OOB_STATUSC 0x108
223
#define OOB_STATUSD 0x10c
224
#define OOB_ENABLEA0 0x200
225
#define OOB_ENABLEA1 0x204
226
#define OOB_ENABLEA2 0x208
227
#define OOB_ENABLEA3 0x20c
228
#define OOB_ENABLEB0 0x280
229
#define OOB_ENABLEB1 0x284
230
#define OOB_ENABLEB2 0x288
231
#define OOB_ENABLEB3 0x28c
232
#define OOB_ENABLEC0 0x300
233
#define OOB_ENABLEC1 0x304
234
#define OOB_ENABLEC2 0x308
235
#define OOB_ENABLEC3 0x30c
236
#define OOB_ENABLED0 0x380
237
#define OOB_ENABLED1 0x384
238
#define OOB_ENABLED2 0x388
239
#define OOB_ENABLED3 0x38c
240
#define OOB_ITCR 0xf00
241
#define OOB_ITIPOOBA 0xf10
242
#define OOB_ITIPOOBB 0xf14
243
#define OOB_ITIPOOBC 0xf18
244
#define OOB_ITIPOOBD 0xf1c
245
#define OOB_ITOPOOBA 0xf30
246
#define OOB_ITOPOOBB 0xf34
247
#define OOB_ITOPOOBC 0xf38
248
#define OOB_ITOPOOBD 0xf3c
249
250
251
#define AI_OOBSELINA30 0x000
252
#define AI_OOBSELINA74 0x004
253
#define AI_OOBSELINB30 0x020
254
#define AI_OOBSELINB74 0x024
255
#define AI_OOBSELINC30 0x040
256
#define AI_OOBSELINC74 0x044
257
#define AI_OOBSELIND30 0x060
258
#define AI_OOBSELIND74 0x064
259
#define AI_OOBSELOUTA30 0x100
260
#define AI_OOBSELOUTA74 0x104
261
#define AI_OOBSELOUTB30 0x120
262
#define AI_OOBSELOUTB74 0x124
263
#define AI_OOBSELOUTC30 0x140
264
#define AI_OOBSELOUTC74 0x144
265
#define AI_OOBSELOUTD30 0x160
266
#define AI_OOBSELOUTD74 0x164
267
#define AI_OOBSYNCA 0x200
268
#define AI_OOBSELOUTAEN 0x204
269
#define AI_OOBSYNCB 0x220
270
#define AI_OOBSELOUTBEN 0x224
271
#define AI_OOBSYNCC 0x240
272
#define AI_OOBSELOUTCEN 0x244
273
#define AI_OOBSYNCD 0x260
274
#define AI_OOBSELOUTDEN 0x264
275
#define AI_OOBAEXTWIDTH 0x300
276
#define AI_OOBAINWIDTH 0x304
277
#define AI_OOBAOUTWIDTH 0x308
278
#define AI_OOBBEXTWIDTH 0x320
279
#define AI_OOBBINWIDTH 0x324
280
#define AI_OOBBOUTWIDTH 0x328
281
#define AI_OOBCEXTWIDTH 0x340
282
#define AI_OOBCINWIDTH 0x344
283
#define AI_OOBCOUTWIDTH 0x348
284
#define AI_OOBDEXTWIDTH 0x360
285
#define AI_OOBDINWIDTH 0x364
286
#define AI_OOBDOUTWIDTH 0x368
287
288
289
#define AI_IOCTRLSET 0x400
290
#define AI_IOCTRLCLEAR 0x404
291
#define AI_IOCTRL 0x408
292
#define AI_IOSTATUS 0x500
293
#define AI_RESETCTRL 0x800
294
#define AI_RESETSTATUS 0x804
295
296
#define AI_IOCTRLWIDTH 0x700
297
#define AI_IOSTATUSWIDTH 0x704
298
299
#define AI_RESETREADID 0x808
300
#define AI_RESETWRITEID 0x80c
301
#define AI_ERRLOGCTRL 0xa00
302
#define AI_ERRLOGDONE 0xa04
303
#define AI_ERRLOGSTATUS 0xa08
304
#define AI_ERRLOGADDRLO 0xa0c
305
#define AI_ERRLOGADDRHI 0xa10
306
#define AI_ERRLOGID 0xa14
307
#define AI_ERRLOGUSER 0xa18
308
#define AI_ERRLOGFLAGS 0xa1c
309
#define AI_INTSTATUS 0xa00
310
#define AI_CONFIG 0xe00
311
#define AI_ITCR 0xf00
312
#define AI_ITIPOOBA 0xf10
313
#define AI_ITIPOOBB 0xf14
314
#define AI_ITIPOOBC 0xf18
315
#define AI_ITIPOOBD 0xf1c
316
#define AI_ITIPOOBAOUT 0xf30
317
#define AI_ITIPOOBBOUT 0xf34
318
#define AI_ITIPOOBCOUT 0xf38
319
#define AI_ITIPOOBDOUT 0xf3c
320
#define AI_ITOPOOBA 0xf50
321
#define AI_ITOPOOBB 0xf54
322
#define AI_ITOPOOBC 0xf58
323
#define AI_ITOPOOBD 0xf5c
324
#define AI_ITOPOOBAIN 0xf70
325
#define AI_ITOPOOBBIN 0xf74
326
#define AI_ITOPOOBCIN 0xf78
327
#define AI_ITOPOOBDIN 0xf7c
328
#define AI_ITOPRESET 0xf90
329
#define AI_PERIPHERIALID4 0xfd0
330
#define AI_PERIPHERIALID5 0xfd4
331
#define AI_PERIPHERIALID6 0xfd8
332
#define AI_PERIPHERIALID7 0xfdc
333
#define AI_PERIPHERIALID0 0xfe0
334
#define AI_PERIPHERIALID1 0xfe4
335
#define AI_PERIPHERIALID2 0xfe8
336
#define AI_PERIPHERIALID3 0xfec
337
#define AI_COMPONENTID0 0xff0
338
#define AI_COMPONENTID1 0xff4
339
#define AI_COMPONENTID2 0xff8
340
#define AI_COMPONENTID3 0xffc
341
342
343
#define AIRC_RESET 1
344
345
346
#define AICFG_OOB 0x00000020
347
#define AICFG_IOS 0x00000010
348
#define AICFG_IOC 0x00000008
349
#define AICFG_TO 0x00000004
350
#define AICFG_ERRL 0x00000002
351
#define AICFG_RST 0x00000001
352
353
354
#define OOB_SEL_OUTEN_B_5 15
355
#define OOB_SEL_OUTEN_B_6 23
356
357
358
#define AI_OOBSEL_MASK 0x1F
359
#define AI_OOBSEL_0_SHIFT 0
360
#define AI_OOBSEL_1_SHIFT 8
361
#define AI_OOBSEL_2_SHIFT 16
362
#define AI_OOBSEL_3_SHIFT 24
363
#define AI_OOBSEL_4_SHIFT 0
364
#define AI_OOBSEL_5_SHIFT 8
365
#define AI_OOBSEL_6_SHIFT 16
366
#define AI_OOBSEL_7_SHIFT 24
367
368
#endif
369
370