summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/regs/imx233/regs-ir.h
blob: e744b0029877b2a7f3dff13a49f129e2fbcea64b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
/***************************************************************************
 *             __________               __   ___.
 *   Open      \______   \ ____   ____ |  | _\_ |__   _______  ___
 *   Source     |       _//  _ \_/ ___\|  |/ /| __ \ /  _ \  \/  /
 *   Jukebox    |    |   (  <_> )  \___|    < | \_\ (  <_> > <  <
 *   Firmware   |____|_  /\____/ \___  >__|_ \|___  /\____/__/\_ \
 *                     \/            \/     \/    \/            \/
 * This file was automatically generated by headergen, DO NOT EDIT it.
 * headergen version: 2.1.7
 * XML versions: imx233:3.2.0
 *
 * Copyright (C) 2013 by Amaury Pouly
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
 * KIND, either express or implied.
 *
 ****************************************************************************/
#ifndef __HEADERGEN__IMX233__IR__H__
#define __HEADERGEN__IMX233__IR__H__

#define REGS_IR_BASE (0x80078000)

#define REGS_IR_VERSION "3.2.0"

/**
 * Register: HW_IR_CTRL
 * Address: 0
 * SCT: yes
*/
#define HW_IR_CTRL                  (*(volatile unsigned long *)(REGS_IR_BASE + 0x0 + 0x0))
#define HW_IR_CTRL_SET              (*(volatile unsigned long *)(REGS_IR_BASE + 0x0 + 0x4))
#define HW_IR_CTRL_CLR              (*(volatile unsigned long *)(REGS_IR_BASE + 0x0 + 0x8))
#define HW_IR_CTRL_TOG              (*(volatile unsigned long *)(REGS_IR_BASE + 0x0 + 0xc))
#define BP_IR_CTRL_SFTRST           31
#define BM_IR_CTRL_SFTRST           0x80000000
#define BV_IR_CTRL_SFTRST__RUN      0x0
#define BV_IR_CTRL_SFTRST__RESET    0x1
#define BF_IR_CTRL_SFTRST(v)        (((v) << 31) & 0x80000000)
#define BF_IR_CTRL_SFTRST_V(v)      ((BV_IR_CTRL_SFTRST__##v << 31) & 0x80000000)
#define BP_IR_CTRL_CLKGATE          30
#define BM_IR_CTRL_CLKGATE          0x40000000
#define BF_IR_CTRL_CLKGATE(v)       (((v) << 30) & 0x40000000)
#define BP_IR_CTRL_RSVD2            27
#define BM_IR_CTRL_RSVD2            0x38000000
#define BF_IR_CTRL_RSVD2(v)         (((v) << 27) & 0x38000000)
#define BP_IR_CTRL_MTA              24
#define BM_IR_CTRL_MTA              0x7000000
#define BV_IR_CTRL_MTA__MTA_10MS    0x0
#define BV_IR_CTRL_MTA__MTA_5MS     0x1
#define BV_IR_CTRL_MTA__MTA_1MS     0x2
#define BV_IR_CTRL_MTA__MTA_500US   0x3
#define BV_IR_CTRL_MTA__MTA_100US   0x4
#define BV_IR_CTRL_MTA__MTA_50US    0x5
#define BV_IR_CTRL_MTA__MTA_10US    0x6
#define BV_IR_CTRL_MTA__MTA_0       0x7
#define BF_IR_CTRL_MTA(v)           (((v) << 24) & 0x7000000)
#define BF_IR_CTRL_MTA_V(v)         ((BV_IR_CTRL_MTA__##v << 24) & 0x7000000)
#define BP_IR_CTRL_MODE             22
#define BM_IR_CTRL_MODE             0xc00000
#define BV_IR_CTRL_MODE__SIR        0x0
#define BV_IR_CTRL_MODE__MIR        0x1
#define BV_IR_CTRL_MODE__FIR        0x2
#define BV_IR_CTRL_MODE__VFIR       0x3
#define BF_IR_CTRL_MODE(v)          (((v) << 22) & 0xc00000)
#define BF_IR_CTRL_MODE_V(v)        ((BV_IR_CTRL_MODE__##v << 22) & 0xc00000)
#define BP_IR_CTRL_SPEED            19
#define BM_IR_CTRL_SPEED            0x380000
#define BV_IR_CTRL_SPEED__SPD000    0x0
#define BV_IR_CTRL_SPEED__SPD001    0x1
#define BV_IR_CTRL_SPEED__SPD010    0x2
#define BV_IR_CTRL_SPEED__SPD011    0x3
#define BV_IR_CTRL_SPEED__SPD100    0x4
#define BV_IR_CTRL_SPEED__SPD101    0x5
#define BF_IR_CTRL_SPEED(v)         (((v) << 19) & 0x380000)
#define BF_IR_CTRL_SPEED_V(v)       ((BV_IR_CTRL_SPEED__##v << 19) & 0x380000)
#define BP_IR_CTRL_RSVD1            14
#define BM_IR_CTRL_RSVD1            0x7c000
#define BF_IR_CTRL_RSVD1(v)         (((v) << 14) & 0x7c000)
#define BP_IR_CTRL_TC_TIME_DIV      8
#define BM_IR_CTRL_TC_TIME_DIV      0x3f00
#define BF_IR_CTRL_TC_TIME_DIV(v)   (((v) << 8) & 0x3f00)
#define BP_IR_CTRL_TC_TYPE          7
#define BM_IR_CTRL_TC_TYPE          0x80
#define BF_IR_CTRL_TC_TYPE(v)       (((v) << 7) & 0x80)
#define BP_IR_CTRL_SIR_GAP          4
#define BM_IR_CTRL_SIR_GAP          0x70
#define BV_IR_CTRL_SIR_GAP__GAP_10K 0x0
#define BV_IR_CTRL_SIR_GAP__GAP_5K  0x1
#define BV_IR_CTRL_SIR_GAP__GAP_1K  0x2
#define BV_IR_CTRL_SIR_GAP__GAP_500 0x3
#define BV_IR_CTRL_SIR_GAP__GAP_100 0x4
#define BV_IR_CTRL_SIR_GAP__GAP_50  0x5
#define BV_IR_CTRL_SIR_GAP__GAP_10  0x6
#define BV_IR_CTRL_SIR_GAP__GAP_0   0x7
#define BF_IR_CTRL_SIR_GAP(v)       (((v) << 4) & 0x70)
#define BF_IR_CTRL_SIR_GAP_V(v)     ((BV_IR_CTRL_SIR_GAP__##v << 4) & 0x70)
#define BP_IR_CTRL_SIPEN            3
#define BM_IR_CTRL_SIPEN            0x8
#define BF_IR_CTRL_SIPEN(v)         (((v) << 3) & 0x8)
#define BP_IR_CTRL_TCEN             2
#define BM_IR_CTRL_TCEN             0x4
#define BF_IR_CTRL_TCEN(v)          (((v) << 2) & 0x4)
#define BP_IR_CTRL_TXEN             1
#define BM_IR_CTRL_TXEN             0x2
#define BF_IR_CTRL_TXEN(v)          (((v) << 1) & 0x2)
#define BP_IR_CTRL_RXEN             0
#define BM_IR_CTRL_RXEN             0x1
#define BF_IR_CTRL_RXEN(v)          (((v) << 0) & 0x1)

/**
 * Register: HW_IR_TXDMA
 * Address: 0x10
 * SCT: yes
*/
#define HW_IR_TXDMA                 (*(volatile unsigned long *)(REGS_IR_BASE + 0x10 + 0x0))
#define HW_IR_TXDMA_SET             (*(volatile unsigned long *)(REGS_IR_BASE + 0x10 + 0x4))
#define HW_IR_TXDMA_CLR             (*(volatile unsigned long *)(REGS_IR_BASE + 0x10 + 0x8))
#define HW_IR_TXDMA_TOG             (*(volatile unsigned long *)(REGS_IR_BASE + 0x10 + 0xc))
#define BP_IR_TXDMA_RUN             31
#define BM_IR_TXDMA_RUN             0x80000000
#define BF_IR_TXDMA_RUN(v)          (((v) << 31) & 0x80000000)
#define BP_IR_TXDMA_RSVD2           30
#define BM_IR_TXDMA_RSVD2           0x40000000
#define BF_IR_TXDMA_RSVD2(v)        (((v) << 30) & 0x40000000)
#define BP_IR_TXDMA_EMPTY           29
#define BM_IR_TXDMA_EMPTY           0x20000000
#define BF_IR_TXDMA_EMPTY(v)        (((v) << 29) & 0x20000000)
#define BP_IR_TXDMA_INT             28
#define BM_IR_TXDMA_INT             0x10000000
#define BF_IR_TXDMA_INT(v)          (((v) << 28) & 0x10000000)
#define BP_IR_TXDMA_CHANGE          27
#define BM_IR_TXDMA_CHANGE          0x8000000
#define BF_IR_TXDMA_CHANGE(v)       (((v) << 27) & 0x8000000)
#define BP_IR_TXDMA_NEW_MTA         24
#define BM_IR_TXDMA_NEW_MTA         0x7000000
#define BF_IR_TXDMA_NEW_MTA(v)      (((v) << 24) & 0x7000000)
#define BP_IR_TXDMA_NEW_MODE        22
#define BM_IR_TXDMA_NEW_MODE        0xc00000
#define BF_IR_TXDMA_NEW_MODE(v)     (((v) << 22) & 0xc00000)
#define BP_IR_TXDMA_NEW_SPEED       19
#define BM_IR_TXDMA_NEW_SPEED       0x380000
#define BF_IR_TXDMA_NEW_SPEED(v)    (((v) << 19) & 0x380000)
#define BP_IR_TXDMA_BOF_TYPE        18
#define BM_IR_TXDMA_BOF_TYPE        0x40000
#define BF_IR_TXDMA_BOF_TYPE(v)     (((v) << 18) & 0x40000)
#define BP_IR_TXDMA_XBOFS           12
#define BM_IR_TXDMA_XBOFS           0x3f000
#define BF_IR_TXDMA_XBOFS(v)        (((v) << 12) & 0x3f000)
#define BP_IR_TXDMA_XFER_COUNT      0
#define BM_IR_TXDMA_XFER_COUNT      0xfff
#define BF_IR_TXDMA_XFER_COUNT(v)   (((v) << 0) & 0xfff)

/**
 * Register: HW_IR_RXDMA
 * Address: 0x20
 * SCT: yes
*/
#define HW_IR_RXDMA                 (*(volatile unsigned long *)(REGS_IR_BASE + 0x20 + 0x0))
#define HW_IR_RXDMA_SET             (*(volatile unsigned long *)(REGS_IR_BASE + 0x20 + 0x4))
#define HW_IR_RXDMA_CLR             (*(volatile unsigned long *)(REGS_IR_BASE + 0x20 + 0x8))
#define HW_IR_RXDMA_TOG             (*(volatile unsigned long *)(REGS_IR_BASE + 0x20 + 0xc))
#define BP_IR_RXDMA_RUN             31
#define BM_IR_RXDMA_RUN             0x80000000
#define BF_IR_RXDMA_RUN(v)          (((v) << 31) & 0x80000000)
#define BP_IR_RXDMA_RSVD            10
#define BM_IR_RXDMA_RSVD            0x7ffffc00
#define BF_IR_RXDMA_RSVD(v)         (((v) << 10) & 0x7ffffc00)
#define BP_IR_RXDMA_XFER_COUNT      0
#define BM_IR_RXDMA_XFER_COUNT      0x3ff
#define BF_IR_RXDMA_XFER_COUNT(v)   (((v) << 0) & 0x3ff)

/**
 * Register: HW_IR_DBGCTRL
 * Address: 0x30
 * SCT: yes
*/
#define HW_IR_DBGCTRL                   (*(volatile unsigned long *)(REGS_IR_BASE + 0x30 + 0x0))
#define HW_IR_DBGCTRL_SET               (*(volatile unsigned long *)(REGS_IR_BASE + 0x30 + 0x4))
#define HW_IR_DBGCTRL_CLR               (*(volatile unsigned long *)(REGS_IR_BASE + 0x30 + 0x8))
#define HW_IR_DBGCTRL_TOG               (*(volatile unsigned long *)(REGS_IR_BASE + 0x30 + 0xc))
#define BP_IR_DBGCTRL_RSVD2             13
#define BM_IR_DBGCTRL_RSVD2             0xffffe000
#define BF_IR_DBGCTRL_RSVD2(v)          (((v) << 13) & 0xffffe000)
#define BP_IR_DBGCTRL_VFIRSWZ           12
#define BM_IR_DBGCTRL_VFIRSWZ           0x1000
#define BV_IR_DBGCTRL_VFIRSWZ__NORMAL   0x0
#define BV_IR_DBGCTRL_VFIRSWZ__SWAP     0x1
#define BF_IR_DBGCTRL_VFIRSWZ(v)        (((v) << 12) & 0x1000)
#define BF_IR_DBGCTRL_VFIRSWZ_V(v)      ((BV_IR_DBGCTRL_VFIRSWZ__##v << 12) & 0x1000)
#define BP_IR_DBGCTRL_RXFRMOFF          11
#define BM_IR_DBGCTRL_RXFRMOFF          0x800
#define BF_IR_DBGCTRL_RXFRMOFF(v)       (((v) << 11) & 0x800)
#define BP_IR_DBGCTRL_RXCRCOFF          10
#define BM_IR_DBGCTRL_RXCRCOFF          0x400
#define BF_IR_DBGCTRL_RXCRCOFF(v)       (((v) << 10) & 0x400)
#define BP_IR_DBGCTRL_RXINVERT          9
#define BM_IR_DBGCTRL_RXINVERT          0x200
#define BF_IR_DBGCTRL_RXINVERT(v)       (((v) << 9) & 0x200)
#define BP_IR_DBGCTRL_TXFRMOFF          8
#define BM_IR_DBGCTRL_TXFRMOFF          0x100
#define BF_IR_DBGCTRL_TXFRMOFF(v)       (((v) << 8) & 0x100)
#define BP_IR_DBGCTRL_TXCRCOFF          7
#define BM_IR_DBGCTRL_TXCRCOFF          0x80
#define BF_IR_DBGCTRL_TXCRCOFF(v)       (((v) << 7) & 0x80)
#define BP_IR_DBGCTRL_TXINVERT          6
#define BM_IR_DBGCTRL_TXINVERT          0x40
#define BF_IR_DBGCTRL_TXINVERT(v)       (((v) << 6) & 0x40)
#define BP_IR_DBGCTRL_INTLOOPBACK       5
#define BM_IR_DBGCTRL_INTLOOPBACK       0x20
#define BF_IR_DBGCTRL_INTLOOPBACK(v)    (((v) << 5) & 0x20)
#define BP_IR_DBGCTRL_DUPLEX            4
#define BM_IR_DBGCTRL_DUPLEX            0x10
#define BF_IR_DBGCTRL_DUPLEX(v)         (((v) << 4) & 0x10)
#define BP_IR_DBGCTRL_MIO_RX            3
#define BM_IR_DBGCTRL_MIO_RX            0x8
#define BF_IR_DBGCTRL_MIO_RX(v)         (((v) << 3) & 0x8)
#define BP_IR_DBGCTRL_MIO_TX            2
#define BM_IR_DBGCTRL_MIO_TX            0x4
#define BF_IR_DBGCTRL_MIO_TX(v)         (((v) << 2) & 0x4)
#define BP_IR_DBGCTRL_MIO_SCLK          1
#define BM_IR_DBGCTRL_MIO_SCLK          0x2
#define BF_IR_DBGCTRL_MIO_SCLK(v)       (((v) << 1) & 0x2)
#define BP_IR_DBGCTRL_MIO_EN            0
#define BM_IR_DBGCTRL_MIO_EN            0x1
#define BF_IR_DBGCTRL_MIO_EN(v)         (((v) << 0) & 0x1)

/**
 * Register: HW_IR_INTR
 * Address: 0x40
 * SCT: yes
*/
#define HW_IR_INTR                          (*(volatile unsigned long *)(REGS_IR_BASE + 0x40 + 0x0))
#define HW_IR_INTR_SET                      (*(volatile unsigned long *)(REGS_IR_BASE + 0x40 + 0x4))
#define HW_IR_INTR_CLR                      (*(volatile unsigned long *)(REGS_IR_BASE + 0x40 + 0x8))
#define HW_IR_INTR_TOG                      (*(volatile unsigned long *)(REGS_IR_BASE + 0x40 + 0xc))
#define BP_IR_INTR_RSVD2                    23
#define BM_IR_INTR_RSVD2                    0xff800000
#define BF_IR_INTR_RSVD2(v)                 (((v) << 23) & 0xff800000)
#define BP_IR_INTR_RXABORT_IRQ_EN           22
#define BM_IR_INTR_RXABORT_IRQ_EN           0x400000
#define BV_IR_INTR_RXABORT_IRQ_EN__DISABLED 0x0
#define BV_IR_INTR_RXABORT_IRQ_EN__ENABLED  0x1
#define BF_IR_INTR_RXABORT_IRQ_EN(v)        (((v) << 22) & 0x400000)
#define BF_IR_INTR_RXABORT_IRQ_EN_V(v)      ((BV_IR_INTR_RXABORT_IRQ_EN__##v << 22) & 0x400000)
#define BP_IR_INTR_SPEED_IRQ_EN             21
#define BM_IR_INTR_SPEED_IRQ_EN             0x200000
#define BV_IR_INTR_SPEED_IRQ_EN__DISABLED   0x0
#define BV_IR_INTR_SPEED_IRQ_EN__ENABLED    0x1
#define BF_IR_INTR_SPEED_IRQ_EN(v)          (((v) << 21) & 0x200000)
#define BF_IR_INTR_SPEED_IRQ_EN_V(v)        ((BV_IR_INTR_SPEED_IRQ_EN__##v << 21) & 0x200000)
#define BP_IR_INTR_RXOF_IRQ_EN              20
#define BM_IR_INTR_RXOF_IRQ_EN              0x100000
#define BV_IR_INTR_RXOF_IRQ_EN__DISABLED    0x0
#define BV_IR_INTR_RXOF_IRQ_EN__ENABLED     0x1
#define BF_IR_INTR_RXOF_IRQ_EN(v)           (((v) << 20) & 0x100000)
#define BF_IR_INTR_RXOF_IRQ_EN_V(v)         ((BV_IR_INTR_RXOF_IRQ_EN__##v << 20) & 0x100000)
#define BP_IR_INTR_TXUF_IRQ_EN              19
#define BM_IR_INTR_TXUF_IRQ_EN              0x80000
#define BV_IR_INTR_TXUF_IRQ_EN__DISABLED    0x0
#define BV_IR_INTR_TXUF_IRQ_EN__ENABLED     0x1
#define BF_IR_INTR_TXUF_IRQ_EN(v)           (((v) << 19) & 0x80000)
#define BF_IR_INTR_TXUF_IRQ_EN_V(v)         ((BV_IR_INTR_TXUF_IRQ_EN__##v << 19) & 0x80000)
#define BP_IR_INTR_TC_IRQ_EN                18
#define BM_IR_INTR_TC_IRQ_EN                0x40000
#define BV_IR_INTR_TC_IRQ_EN__DISABLED      0x0
#define BV_IR_INTR_TC_IRQ_EN__ENABLED       0x1
#define BF_IR_INTR_TC_IRQ_EN(v)             (((v) << 18) & 0x40000)
#define BF_IR_INTR_TC_IRQ_EN_V(v)           ((BV_IR_INTR_TC_IRQ_EN__##v << 18) & 0x40000)
#define BP_IR_INTR_RX_IRQ_EN                17
#define BM_IR_INTR_RX_IRQ_EN                0x20000
#define BV_IR_INTR_RX_IRQ_EN__DISABLED      0x0
#define BV_IR_INTR_RX_IRQ_EN__ENABLED       0x1
#define BF_IR_INTR_RX_IRQ_EN(v)             (((v) << 17) & 0x20000)
#define BF_IR_INTR_RX_IRQ_EN_V(v)           ((BV_IR_INTR_RX_IRQ_EN__##v << 17) & 0x20000)
#define BP_IR_INTR_TX_IRQ_EN                16
#define BM_IR_INTR_TX_IRQ_EN                0x10000
#define BV_IR_INTR_TX_IRQ_EN__DISABLED      0x0
#define BV_IR_INTR_TX_IRQ_EN__ENABLED       0x1
#define BF_IR_INTR_TX_IRQ_EN(v)             (((v) << 16) & 0x10000)
#define BF_IR_INTR_TX_IRQ_EN_V(v)           ((BV_IR_INTR_TX_IRQ_EN__##v << 16) & 0x10000)
#define BP_IR_INTR_RSVD1                    7
#define BM_IR_INTR_RSVD1                    0xff80
#define BF_IR_INTR_RSVD1(v)                 (((v) << 7) & 0xff80)
#define BP_IR_INTR_RXABORT_IRQ              6
#define BM_IR_INTR_RXABORT_IRQ              0x40
#define BV_IR_INTR_RXABORT_IRQ__NO_REQUEST  0x0
#define BV_IR_INTR_RXABORT_IRQ__REQUEST     0x1
#define BF_IR_INTR_RXABORT_IRQ(v)           (((v) << 6) & 0x40)
#define BF_IR_INTR_RXABORT_IRQ_V(v)         ((BV_IR_INTR_RXABORT_IRQ__##v << 6) & 0x40)
#define BP_IR_INTR_SPEED_IRQ                5
#define BM_IR_INTR_SPEED_IRQ                0x20
#define BV_IR_INTR_SPEED_IRQ__NO_REQUEST    0x0
#define BV_IR_INTR_SPEED_IRQ__REQUEST       0x1
#define BF_IR_INTR_SPEED_IRQ(v)             (((v) << 5) & 0x20)
#define BF_IR_INTR_SPEED_IRQ_V(v)           ((BV_IR_INTR_SPEED_IRQ__##v << 5) & 0x20)
#define BP_IR_INTR_RXOF_IRQ                 4
#define BM_IR_INTR_RXOF_IRQ                 0x10
#define BV_IR_INTR_RXOF_IRQ__NO_REQUEST     0x0
#define BV_IR_INTR_RXOF_IRQ__REQUEST        0x1
#define BF_IR_INTR_RXOF_IRQ(v)              (((v) << 4) & 0x10)
#define BF_IR_INTR_RXOF_IRQ_V(v)            ((BV_IR_INTR_RXOF_IRQ__##v << 4) & 0x10)
#define BP_IR_INTR_TXUF_IRQ                 3
#define BM_IR_INTR_TXUF_IRQ                 0x8
#define BV_IR_INTR_TXUF_IRQ__NO_REQUEST     0x0
#define BV_IR_INTR_TXUF_IRQ__REQUEST        0x1
#define BF_IR_INTR_TXUF_IRQ(v)              (((v) << 3) & 0x8)
#define BF_IR_INTR_TXUF_IRQ_V(v)            ((BV_IR_INTR_TXUF_IRQ__##v << 3) & 0x8)
#define BP_IR_INTR_TC_IRQ                   2
#define BM_IR_INTR_TC_IRQ                   0x4
#define BV_IR_INTR_TC_IRQ__NO_REQUEST       0x0
#define BV_IR_INTR_TC_IRQ__REQUEST          0x1
#define BF_IR_INTR_TC_IRQ(v)                (((v) << 2) & 0x4)
#define BF_IR_INTR_TC_IRQ_V(v)              ((BV_IR_INTR_TC_IRQ__##v << 2) & 0x4)
#define BP_IR_INTR_RX_IRQ                   1
#define BM_IR_INTR_RX_IRQ                   0x2
#define BV_IR_INTR_RX_IRQ__NO_REQUEST       0x0
#define BV_IR_INTR_RX_IRQ__REQUEST          0x1
#define BF_IR_INTR_RX_IRQ(v)                (((v) << 1) & 0x2)
#define BF_IR_INTR_RX_IRQ_V(v)              ((BV_IR_INTR_RX_IRQ__##v << 1) & 0x2)
#define BP_IR_INTR_TX_IRQ                   0
#define BM_IR_INTR_TX_IRQ                   0x1
#define BV_IR_INTR_TX_IRQ__NO_REQUEST       0x0
#define BV_IR_INTR_TX_IRQ__REQUEST          0x1
#define BF_IR_INTR_TX_IRQ(v)                (((v) << 0) & 0x1)
#define BF_IR_INTR_TX_IRQ_V(v)              ((BV_IR_INTR_TX_IRQ__##v << 0) & 0x1)

/**
 * Register: HW_IR_DATA
 * Address: 0x50
 * SCT: no
*/
#define HW_IR_DATA          (*(volatile unsigned long *)(REGS_IR_BASE + 0x50))
#define BP_IR_DATA_DATA     0
#define BM_IR_DATA_DATA     0xffffffff
#define BF_IR_DATA_DATA(v)  (((v) << 0) & 0xffffffff)

/**
 * Register: HW_IR_STAT
 * Address: 0x60
 * SCT: no
*/
#define HW_IR_STAT                              (*(volatile unsigned long *)(REGS_IR_BASE + 0x60))
#define BP_IR_STAT_PRESENT                      31
#define BM_IR_STAT_PRESENT                      0x80000000
#define BV_IR_STAT_PRESENT__UNAVAILABLE         0x0
#define BV_IR_STAT_PRESENT__AVAILABLE           0x1
#define BF_IR_STAT_PRESENT(v)                   (((v) << 31) & 0x80000000)
#define BF_IR_STAT_PRESENT_V(v)                 ((BV_IR_STAT_PRESENT__##v << 31) & 0x80000000)
#define BP_IR_STAT_MODE_ALLOWED                 29
#define BM_IR_STAT_MODE_ALLOWED                 0x60000000
#define BV_IR_STAT_MODE_ALLOWED__VFIR           0x0
#define BV_IR_STAT_MODE_ALLOWED__FIR            0x1
#define BV_IR_STAT_MODE_ALLOWED__MIR            0x2
#define BV_IR_STAT_MODE_ALLOWED__SIR            0x3
#define BF_IR_STAT_MODE_ALLOWED(v)              (((v) << 29) & 0x60000000)
#define BF_IR_STAT_MODE_ALLOWED_V(v)            ((BV_IR_STAT_MODE_ALLOWED__##v << 29) & 0x60000000)
#define BP_IR_STAT_ANY_IRQ                      28
#define BM_IR_STAT_ANY_IRQ                      0x10000000
#define BV_IR_STAT_ANY_IRQ__NO_REQUEST          0x0
#define BV_IR_STAT_ANY_IRQ__REQUEST             0x1
#define BF_IR_STAT_ANY_IRQ(v)                   (((v) << 28) & 0x10000000)
#define BF_IR_STAT_ANY_IRQ_V(v)                 ((BV_IR_STAT_ANY_IRQ__##v << 28) & 0x10000000)
#define BP_IR_STAT_RSVD2                        23
#define BM_IR_STAT_RSVD2                        0xf800000
#define BF_IR_STAT_RSVD2(v)                     (((v) << 23) & 0xf800000)
#define BP_IR_STAT_RXABORT_SUMMARY              22
#define BM_IR_STAT_RXABORT_SUMMARY              0x400000
#define BV_IR_STAT_RXABORT_SUMMARY__NO_REQUEST  0x0
#define BV_IR_STAT_RXABORT_SUMMARY__REQUEST     0x1
#define BF_IR_STAT_RXABORT_SUMMARY(v)           (((v) << 22) & 0x400000)
#define BF_IR_STAT_RXABORT_SUMMARY_V(v)         ((BV_IR_STAT_RXABORT_SUMMARY__##v << 22) & 0x400000)
#define BP_IR_STAT_SPEED_SUMMARY                21
#define BM_IR_STAT_SPEED_SUMMARY                0x200000
#define BV_IR_STAT_SPEED_SUMMARY__NO_REQUEST    0x0
#define BV_IR_STAT_SPEED_SUMMARY__REQUEST       0x1
#define BF_IR_STAT_SPEED_SUMMARY(v)             (((v) << 21) & 0x200000)
#define BF_IR_STAT_SPEED_SUMMARY_V(v)           ((BV_IR_STAT_SPEED_SUMMARY__##v << 21) & 0x200000)
#define BP_IR_STAT_RXOF_SUMMARY                 20
#define BM_IR_STAT_RXOF_SUMMARY                 0x100000
#define BV_IR_STAT_RXOF_SUMMARY__NO_REQUEST     0x0
#define BV_IR_STAT_RXOF_SUMMARY__REQUEST        0x1
#define BF_IR_STAT_RXOF_SUMMARY(v)              (((v) << 20) & 0x100000)
#define BF_IR_STAT_RXOF_SUMMARY_V(v)            ((BV_IR_STAT_RXOF_SUMMARY__##v << 20) & 0x100000)
#define BP_IR_STAT_TXUF_SUMMARY                 19
#define BM_IR_STAT_TXUF_SUMMARY                 0x80000
#define BV_IR_STAT_TXUF_SUMMARY__NO_REQUEST     0x0
#define BV_IR_STAT_TXUF_SUMMARY__REQUEST        0x1
#define BF_IR_STAT_TXUF_SUMMARY(v)              (((v) << 19) & 0x80000)
#define BF_IR_STAT_TXUF_SUMMARY_V(v)            ((BV_IR_STAT_TXUF_SUMMARY__##v << 19) & 0x80000)
#define BP_IR_STAT_TC_SUMMARY                   18
#define BM_IR_STAT_TC_SUMMARY                   0x40000
#define BV_IR_STAT_TC_SUMMARY__NO_REQUEST       0x0
#define BV_IR_STAT_TC_SUMMARY__REQUEST          0x1
#define BF_IR_STAT_TC_SUMMARY(v)                (((v) << 18) & 0x40000)
#define BF_IR_STAT_TC_SUMMARY_V(v)              ((BV_IR_STAT_TC_SUMMARY__##v << 18) & 0x40000)
#define BP_IR_STAT_RX_SUMMARY                   17
#define BM_IR_STAT_RX_SUMMARY                   0x20000
#define BV_IR_STAT_RX_SUMMARY__NO_REQUEST       0x0
#define BV_IR_STAT_RX_SUMMARY__REQUEST          0x1
#define BF_IR_STAT_RX_SUMMARY(v)                (((v) << 17) & 0x20000)
#define BF_IR_STAT_RX_SUMMARY_V(v)              ((BV_IR_STAT_RX_SUMMARY__##v << 17) & 0x20000)
#define BP_IR_STAT_TX_SUMMARY                   16
#define BM_IR_STAT_TX_SUMMARY                   0x10000
#define BV_IR_STAT_TX_SUMMARY__NO_REQUEST       0x0
#define BV_IR_STAT_TX_SUMMARY__REQUEST          0x1
#define BF_IR_STAT_TX_SUMMARY(v)                (((v) << 16) & 0x10000)
#define BF_IR_STAT_TX_SUMMARY_V(v)              ((BV_IR_STAT_TX_SUMMARY__##v << 16) & 0x10000)
#define BP_IR_STAT_RSVD1                        3
#define BM_IR_STAT_RSVD1                        0xfff8
#define BF_IR_STAT_RSVD1(v)                     (((v) << 3) & 0xfff8)
#define BP_IR_STAT_MEDIA_BUSY                   2
#define BM_IR_STAT_MEDIA_BUSY                   0x4
#define BF_IR_STAT_MEDIA_BUSY(v)                (((v) << 2) & 0x4)
#define BP_IR_STAT_RX_ACTIVE                    1
#define BM_IR_STAT_RX_ACTIVE                    0x2
#define BF_IR_STAT_RX_ACTIVE(v)                 (((v) << 1) & 0x2)
#define BP_IR_STAT_TX_ACTIVE                    0
#define BM_IR_STAT_TX_ACTIVE                    0x1
#define BF_IR_STAT_TX_ACTIVE(v)                 (((v) << 0) & 0x1)

/**
 * Register: HW_IR_TCCTRL
 * Address: 0x70
 * SCT: yes
*/
#define HW_IR_TCCTRL                (*(volatile unsigned long *)(REGS_IR_BASE + 0x70 + 0x0))
#define HW_IR_TCCTRL_SET            (*(volatile unsigned long *)(REGS_IR_BASE + 0x70 + 0x4))
#define HW_IR_TCCTRL_CLR            (*(volatile unsigned long *)(REGS_IR_BASE + 0x70 + 0x8))
#define HW_IR_TCCTRL_TOG            (*(volatile unsigned long *)(REGS_IR_BASE + 0x70 + 0xc))
#define BP_IR_TCCTRL_INIT           31
#define BM_IR_TCCTRL_INIT           0x80000000
#define BF_IR_TCCTRL_INIT(v)        (((v) << 31) & 0x80000000)
#define BP_IR_TCCTRL_GO             30
#define BM_IR_TCCTRL_GO             0x40000000
#define BF_IR_TCCTRL_GO(v)          (((v) << 30) & 0x40000000)
#define BP_IR_TCCTRL_BUSY           29
#define BM_IR_TCCTRL_BUSY           0x20000000
#define BF_IR_TCCTRL_BUSY(v)        (((v) << 29) & 0x20000000)
#define BP_IR_TCCTRL_RSVD           25
#define BM_IR_TCCTRL_RSVD           0x1e000000
#define BF_IR_TCCTRL_RSVD(v)        (((v) << 25) & 0x1e000000)
#define BP_IR_TCCTRL_TEMIC          24
#define BM_IR_TCCTRL_TEMIC          0x1000000
#define BV_IR_TCCTRL_TEMIC__LOW     0x0
#define BV_IR_TCCTRL_TEMIC__HIGH    0x1
#define BF_IR_TCCTRL_TEMIC(v)       (((v) << 24) & 0x1000000)
#define BF_IR_TCCTRL_TEMIC_V(v)     ((BV_IR_TCCTRL_TEMIC__##v << 24) & 0x1000000)
#define BP_IR_TCCTRL_EXT_DATA       16
#define BM_IR_TCCTRL_EXT_DATA       0xff0000
#define BF_IR_TCCTRL_EXT_DATA(v)    (((v) << 16) & 0xff0000)
#define BP_IR_TCCTRL_DATA           8
#define BM_IR_TCCTRL_DATA           0xff00
#define BF_IR_TCCTRL_DATA(v)        (((v) << 8) & 0xff00)
#define BP_IR_TCCTRL_ADDR           5
#define BM_IR_TCCTRL_ADDR           0xe0
#define BF_IR_TCCTRL_ADDR(v)        (((v) << 5) & 0xe0)
#define BP_IR_TCCTRL_INDX           1
#define BM_IR_TCCTRL_INDX           0x1e
#define BF_IR_TCCTRL_INDX(v)        (((v) << 1) & 0x1e)
#define BP_IR_TCCTRL_C              0
#define BM_IR_TCCTRL_C              0x1
#define BF_IR_TCCTRL_C(v)           (((v) << 0) & 0x1)

/**
 * Register: HW_IR_SI_READ
 * Address: 0x80
 * SCT: no
*/
#define HW_IR_SI_READ           (*(volatile unsigned long *)(REGS_IR_BASE + 0x80))
#define BP_IR_SI_READ_RSVD1     9
#define BM_IR_SI_READ_RSVD1     0xfffffe00
#define BF_IR_SI_READ_RSVD1(v)  (((v) << 9) & 0xfffffe00)
#define BP_IR_SI_READ_ABORT     8
#define BM_IR_SI_READ_ABORT     0x100
#define BF_IR_SI_READ_ABORT(v)  (((v) << 8) & 0x100)
#define BP_IR_SI_READ_DATA      0
#define BM_IR_SI_READ_DATA      0xff
#define BF_IR_SI_READ_DATA(v)   (((v) << 0) & 0xff)

/**
 * Register: HW_IR_DEBUG
 * Address: 0x90
 * SCT: no
*/
#define HW_IR_DEBUG                 (*(volatile unsigned long *)(REGS_IR_BASE + 0x90))
#define BP_IR_DEBUG_RSVD1           6
#define BM_IR_DEBUG_RSVD1           0xffffffc0
#define BF_IR_DEBUG_RSVD1(v)        (((v) << 6) & 0xffffffc0)
#define BP_IR_DEBUG_TXDMAKICK       5
#define BM_IR_DEBUG_TXDMAKICK       0x20
#define BF_IR_DEBUG_TXDMAKICK(v)    (((v) << 5) & 0x20)
#define BP_IR_DEBUG_RXDMAKICK       4
#define BM_IR_DEBUG_RXDMAKICK       0x10
#define BF_IR_DEBUG_RXDMAKICK(v)    (((v) << 4) & 0x10)
#define BP_IR_DEBUG_TXDMAEND        3
#define BM_IR_DEBUG_TXDMAEND        0x8
#define BF_IR_DEBUG_TXDMAEND(v)     (((v) << 3) & 0x8)
#define BP_IR_DEBUG_RXDMAEND        2
#define BM_IR_DEBUG_RXDMAEND        0x4
#define BF_IR_DEBUG_RXDMAEND(v)     (((v) << 2) & 0x4)
#define BP_IR_DEBUG_TXDMAREQ        1
#define BM_IR_DEBUG_TXDMAREQ        0x2
#define BF_IR_DEBUG_TXDMAREQ(v)     (((v) << 1) & 0x2)
#define BP_IR_DEBUG_RXDMAREQ        0
#define BM_IR_DEBUG_RXDMAREQ        0x1
#define BF_IR_DEBUG_RXDMAREQ(v)     (((v) << 0) & 0x1)

/**
 * Register: HW_IR_VERSION
 * Address: 0xa0
 * SCT: no
*/
#define HW_IR_VERSION           (*(volatile unsigned long *)(REGS_IR_BASE + 0xa0))
#define BP_IR_VERSION_MAJOR     24
#define BM_IR_VERSION_MAJOR     0xff000000
#define BF_IR_VERSION_MAJOR(v)  (((v) << 24) & 0xff000000)
#define BP_IR_VERSION_MINOR     16
#define BM_IR_VERSION_MINOR     0xff0000
#define BF_IR_VERSION_MINOR(v)  (((v) << 16) & 0xff0000)
#define BP_IR_VERSION_STEP      0
#define BM_IR_VERSION_STEP      0xffff
#define BF_IR_VERSION_STEP(v)   (((v) << 0) & 0xffff)

#endif /* __HEADERGEN__IMX233__IR__H__ */