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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [RX600_RX62N-RSK_Renesas/] [RTOSDemo/] [include/] [iodefine.h] - Blame information for rev 609

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

Line No. Rev Author Line
1 585 jeremybenn
/********************************************************************************/
2
/*                                                                              */
3
/* Device     : RX/RX600/RX62N                                                  */
4
/* File Name  : ioedfine.h                                                      */
5
/* Abstract   : Definition of I/O Register.                                     */
6
/* History    : V2.0  (2010-08-21)  [Hardware Manual Revision : 1.00]           */
7
/* Note       : This is a typical example.                                      */
8
/*                                                                              */
9
/*  Copyright(c) 2010 Renesas Electronics Corp.                                 */
10
/*                  And Renesas Solutions Corp. ,All Rights Reserved.           */
11
/*                                                                              */
12
/********************************************************************************/
13
/*                                                                              */
14
/*  DESCRIPTION : Definition of ICU Register                                    */
15
/*  CPU TYPE    : RX62N                                                         */
16
/*                                                                              */
17
/*  Usage : IR,DTCER,IER,IPR of ICU Register                                    */
18
/*     The following IR, DTCE, IEN, IPR macro functions simplify usage.         */
19
/*     The bit access operation is "Bit_Name(interrupt source,name)".           */
20
/*     A part of the name can be omitted.                                       */
21
/*     for example :                                                            */
22
/*       IR(MTU0,TGIA0) = 0;     expands to :                                   */
23
/*         ICU.IR[114].BIT.IR = 0;                                              */
24
/*                                                                              */
25
/*       DTCE(ICU,IRQ0) = 1;     expands to :                                   */
26
/*         ICU.DTCER[64].BIT.DTCE = 1;                                          */
27
/*                                                                              */
28
/*       IEN(CMT0,CMI0) = 1;     expands to :                                   */
29
/*         ICU.IER[0x03].BIT.IEN4 = 1;                                          */
30
/*                                                                              */
31
/*       IPR(MTU1,TGIA1) = 2;    expands to :                                   */
32
/*       IPR(MTU1,TGI  ) = 2;    // TGIA1,TGIB1 share IPR level.                */
33
/*         ICU.IPR[0x53].BIT.IPR = 2;                                           */
34
/*                                                                              */
35
/*       IPR(SCI0,ERI0) = 3;     expands to :                                   */
36
/*       IPR(SCI0,    ) = 3;     // SCI0 uses single IPR for all sources.       */
37
/*         ICU.IPR[0x80].BIT.IPR = 3;                                           */
38
/*                                                                              */
39
/*  Usage : #pragma interrupt Function_Identifier(vect=**)                      */
40
/*     The number of vector is "(interrupt source, name)".                      */
41
/*     for example :                                                            */
42
/*       #pragma interrupt INT_IRQ0(vect=VECT(ICU,IRQ0))          expands to :  */
43
/*         #pragma interrupt INT_IRQ0(vect=64)                                  */
44
/*       #pragma interrupt INT_CMT0_CMI0(vect=VECT(CMT0,CMI0))    expands to :  */
45
/*         #pragma interrupt INT_CMT0_CMI0(vect=28)                             */
46
/*       #pragma interrupt INT_MTU0_TGIA0(vect=VECT(MTU0,TGIA0))  expands to :  */
47
/*         #pragma interrupt INT_MTU0_TGIA0(vect=114)                           */
48
/*                                                                              */
49
/*  Usage : MSTPCRA,MSTPCRB,MSTPCRC of SYSTEM Register                          */
50
/*     The bit access operation is "MSTP(name)".                                */
51
/*     The name that can be used is a macro name defined with "iodefine.h".     */
52
/*     for example :                                                            */
53
/*       MSTP(TMR2) = 0;    // TMR2,TMR3,TMR23                    expands to :  */
54
/*         SYSTEM.MSTPCRA.BIT.MSTPA4  = 0;                                      */
55
/*       MSTP(SCI0) = 0;    // SCI0,SMCI0                         expands to :  */
56
/*         SYSTEM.MSTPCRB.BIT.MSTPB31 = 0;                                      */
57
/*       MSTP(MTU4) = 0;    // MTUA,MTU0,MTU1,MTU2,MTU3,MTU4,MTU5 expands to :  */
58
/*         SYSTEM.MSTPCRA.BIT.MSTPA9  = 0;                                      */
59
/*       MSTP(CMT3) = 0;    // CMT2,CMT3                          expands to :  */
60
/*         SYSTEM.MSTPCRA.BIT.MSTPA14 = 0;                                      */
61
/*                                                                              */
62
/*                                                                              */
63
/********************************************************************************/
64
#ifndef __RX62NIODEFINE_HEADER__
65
#define __RX62NIODEFINE_HEADER__
66
#pragma bit_order left
67
#pragma unpack
68
struct st_ad {
69
        unsigned short ADDRA;
70
        unsigned short ADDRB;
71
        unsigned short ADDRC;
72
        unsigned short ADDRD;
73
        char           wk0[8];
74
        union {
75
                unsigned char BYTE;
76
                struct {
77
                        unsigned char :1;
78
                        unsigned char ADIE:1;
79
                        unsigned char ADST:1;
80
                        unsigned char :1;
81
                        unsigned char CH:4;
82
                } BIT;
83
        } ADCSR;
84
        union {
85
                unsigned char BYTE;
86
                struct {
87
                        unsigned char TRGS:3;
88
                        unsigned char :1;
89
                        unsigned char CKS:2;
90
                        unsigned char MODE:2;
91
                } BIT;
92
        } ADCR;
93
        union {
94
                unsigned char BYTE;
95
                struct {
96
                        unsigned char DPSEL:1;
97
                } BIT;
98
        } ADDPR;
99
        unsigned char  ADSSTR;
100
        char           wk1[11];
101
        union {
102
                unsigned char BYTE;
103
                struct {
104
                        unsigned char :6;
105
                        unsigned char DIAG:2;
106
                } BIT;
107
        } ADDIAGR;
108
};
109
 
110
struct st_bsc {
111
        union {
112
                unsigned char BYTE;
113
                struct {
114
                        unsigned char :7;
115
                        unsigned char STSCLR:1;
116
                } BIT;
117
        } BERCLR;
118
        char           wk0[3];
119
        union {
120
                unsigned char BYTE;
121
                struct {
122
                        unsigned char :6;
123
                        unsigned char TOEN:1;
124
                        unsigned char IGAEN:1;
125
                } BIT;
126
        } BEREN;
127
        char           wk1[3];
128
        union {
129
                unsigned char BYTE;
130
                struct {
131
                        unsigned char :1;
132
                        unsigned char MST:3;
133
                        unsigned char :2;
134
                        unsigned char TO:1;
135
                        unsigned char IA:1;
136
                } BIT;
137
        } BERSR1;
138
        char           wk2[1];
139
        union {
140
                unsigned short WORD;
141
                struct {
142
                        unsigned short ADDR:13;
143
                } BIT;
144
        } BERSR2;
145
        char           wk3[7414];
146
        union {
147
                unsigned short WORD;
148
                struct {
149
                        unsigned short PRMOD:1;
150
                        unsigned short :5;
151
                        unsigned short PWENB:1;
152
                        unsigned short PRENB:1;
153
                        unsigned short :4;
154
                        unsigned short EWENB:1;
155
                        unsigned short :2;
156
                        unsigned short WRMOD:1;
157
                } BIT;
158
        } CS0MOD;
159
        union {
160
                unsigned long LONG;
161
                struct {
162
                        unsigned long :3;
163
                        unsigned long CSRWAIT:5;
164
                        unsigned long :3;
165
                        unsigned long CSWWAIT:5;
166
                        unsigned long :5;
167
                        unsigned long CSPRWAIT:3;
168
                        unsigned long :5;
169
                        unsigned long CSPWWAIT:3;
170
                } BIT;
171
        } CS0WCR1;
172
        union {
173
                unsigned long LONG;
174
                struct {
175
                        unsigned long :1;
176
                        unsigned long CSON:3;
177
                        unsigned long :1;
178
                        unsigned long WDON:3;
179
                        unsigned long :1;
180
                        unsigned long WRON:3;
181
                        unsigned long :1;
182
                        unsigned long RDON:3;
183
                        unsigned long :5;
184
                        unsigned long WDOFF:3;
185
                        unsigned long :1;
186
                        unsigned long CSWOFF:3;
187
                        unsigned long :1;
188
                        unsigned long CSROFF:3;
189
                } BIT;
190
        } CS0WCR2;
191
        char           wk4[6];
192
        union {
193
                unsigned short WORD;
194
                struct {
195
                        unsigned short PRMOD:1;
196
                        unsigned short :5;
197
                        unsigned short PWENB:1;
198
                        unsigned short PRENB:1;
199
                        unsigned short :4;
200
                        unsigned short EWENB:1;
201
                        unsigned short :2;
202
                        unsigned short WRMOD:1;
203
                } BIT;
204
        } CS1MOD;
205
        union {
206
                unsigned long LONG;
207
                struct {
208
                        unsigned long :3;
209
                        unsigned long CSRWAIT:5;
210
                        unsigned long :3;
211
                        unsigned long CSWWAIT:5;
212
                        unsigned long :5;
213
                        unsigned long CSPRWAIT:3;
214
                        unsigned long :5;
215
                        unsigned long CSPWWAIT:3;
216
                } BIT;
217
        } CS1WCR1;
218
        union {
219
                unsigned long LONG;
220
                struct {
221
                        unsigned long :1;
222
                        unsigned long CSON:3;
223
                        unsigned long :1;
224
                        unsigned long WDON:3;
225
                        unsigned long :1;
226
                        unsigned long WRON:3;
227
                        unsigned long :1;
228
                        unsigned long RDON:3;
229
                        unsigned long :5;
230
                        unsigned long WDOFF:3;
231
                        unsigned long :1;
232
                        unsigned long CSWOFF:3;
233
                        unsigned long :1;
234
                        unsigned long CSROFF:3;
235
                } BIT;
236
        } CS1WCR2;
237
        char           wk5[6];
238
        union {
239
                unsigned short WORD;
240
                struct {
241
                        unsigned short PRMOD:1;
242
                        unsigned short :5;
243
                        unsigned short PWENB:1;
244
                        unsigned short PRENB:1;
245
                        unsigned short :4;
246
                        unsigned short EWENB:1;
247
                        unsigned short :2;
248
                        unsigned short WRMOD:1;
249
                } BIT;
250
        } CS2MOD;
251
        union {
252
                unsigned long LONG;
253
                struct {
254
                        unsigned long :3;
255
                        unsigned long CSRWAIT:5;
256
                        unsigned long :3;
257
                        unsigned long CSWWAIT:5;
258
                        unsigned long :5;
259
                        unsigned long CSPRWAIT:3;
260
                        unsigned long :5;
261
                        unsigned long CSPWWAIT:3;
262
                } BIT;
263
        } CS2WCR1;
264
        union {
265
                unsigned long LONG;
266
                struct {
267
                        unsigned long :1;
268
                        unsigned long CSON:3;
269
                        unsigned long :1;
270
                        unsigned long WDON:3;
271
                        unsigned long :1;
272
                        unsigned long WRON:3;
273
                        unsigned long :1;
274
                        unsigned long RDON:3;
275
                        unsigned long :5;
276
                        unsigned long WDOFF:3;
277
                        unsigned long :1;
278
                        unsigned long CSWOFF:3;
279
                        unsigned long :1;
280
                        unsigned long CSROFF:3;
281
                } BIT;
282
        } CS2WCR2;
283
        char           wk6[6];
284
        union {
285
                unsigned short WORD;
286
                struct {
287
                        unsigned short PRMOD:1;
288
                        unsigned short :5;
289
                        unsigned short PWENB:1;
290
                        unsigned short PRENB:1;
291
                        unsigned short :4;
292
                        unsigned short EWENB:1;
293
                        unsigned short :2;
294
                        unsigned short WRMOD:1;
295
                } BIT;
296
        } CS3MOD;
297
        union {
298
                unsigned long LONG;
299
                struct {
300
                        unsigned long :3;
301
                        unsigned long CSRWAIT:5;
302
                        unsigned long :3;
303
                        unsigned long CSWWAIT:5;
304
                        unsigned long :5;
305
                        unsigned long CSPRWAIT:3;
306
                        unsigned long :5;
307
                        unsigned long CSPWWAIT:3;
308
                } BIT;
309
        } CS3WCR1;
310
        union {
311
                unsigned long LONG;
312
                struct {
313
                        unsigned long :1;
314
                        unsigned long CSON:3;
315
                        unsigned long :1;
316
                        unsigned long WDON:3;
317
                        unsigned long :1;
318
                        unsigned long WRON:3;
319
                        unsigned long :1;
320
                        unsigned long RDON:3;
321
                        unsigned long :5;
322
                        unsigned long WDOFF:3;
323
                        unsigned long :1;
324
                        unsigned long CSWOFF:3;
325
                        unsigned long :1;
326
                        unsigned long CSROFF:3;
327
                } BIT;
328
        } CS3WCR2;
329
        char           wk7[6];
330
        union {
331
                unsigned short WORD;
332
                struct {
333
                        unsigned short PRMOD:1;
334
                        unsigned short :5;
335
                        unsigned short PWENB:1;
336
                        unsigned short PRENB:1;
337
                        unsigned short :4;
338
                        unsigned short EWENB:1;
339
                        unsigned short :2;
340
                        unsigned short WRMOD:1;
341
                } BIT;
342
        } CS4MOD;
343
        union {
344
                unsigned long LONG;
345
                struct {
346
                        unsigned long :3;
347
                        unsigned long CSRWAIT:5;
348
                        unsigned long :3;
349
                        unsigned long CSWWAIT:5;
350
                        unsigned long :5;
351
                        unsigned long CSPRWAIT:3;
352
                        unsigned long :5;
353
                        unsigned long CSPWWAIT:3;
354
                } BIT;
355
        } CS4WCR1;
356
        union {
357
                unsigned long LONG;
358
                struct {
359
                        unsigned long :1;
360
                        unsigned long CSON:3;
361
                        unsigned long :1;
362
                        unsigned long WDON:3;
363
                        unsigned long :1;
364
                        unsigned long WRON:3;
365
                        unsigned long :1;
366
                        unsigned long RDON:3;
367
                        unsigned long :5;
368
                        unsigned long WDOFF:3;
369
                        unsigned long :1;
370
                        unsigned long CSWOFF:3;
371
                        unsigned long :1;
372
                        unsigned long CSROFF:3;
373
                } BIT;
374
        } CS4WCR2;
375
        char           wk8[6];
376
        union {
377
                unsigned short WORD;
378
                struct {
379
                        unsigned short PRMOD:1;
380
                        unsigned short :5;
381
                        unsigned short PWENB:1;
382
                        unsigned short PRENB:1;
383
                        unsigned short :4;
384
                        unsigned short EWENB:1;
385
                        unsigned short :2;
386
                        unsigned short WRMOD:1;
387
                } BIT;
388
        } CS5MOD;
389
        union {
390
                unsigned long LONG;
391
                struct {
392
                        unsigned long :3;
393
                        unsigned long CSRWAIT:5;
394
                        unsigned long :3;
395
                        unsigned long CSWWAIT:5;
396
                        unsigned long :5;
397
                        unsigned long CSPRWAIT:3;
398
                        unsigned long :5;
399
                        unsigned long CSPWWAIT:3;
400
                } BIT;
401
        } CS5WCR1;
402
        union {
403
                unsigned long LONG;
404
                struct {
405
                        unsigned long :1;
406
                        unsigned long CSON:3;
407
                        unsigned long :1;
408
                        unsigned long WDON:3;
409
                        unsigned long :1;
410
                        unsigned long WRON:3;
411
                        unsigned long :1;
412
                        unsigned long RDON:3;
413
                        unsigned long :5;
414
                        unsigned long WDOFF:3;
415
                        unsigned long :1;
416
                        unsigned long CSWOFF:3;
417
                        unsigned long :1;
418
                        unsigned long CSROFF:3;
419
                } BIT;
420
        } CS5WCR2;
421
        char           wk9[6];
422
        union {
423
                unsigned short WORD;
424
                struct {
425
                        unsigned short PRMOD:1;
426
                        unsigned short :5;
427
                        unsigned short PWENB:1;
428
                        unsigned short PRENB:1;
429
                        unsigned short :4;
430
                        unsigned short EWENB:1;
431
                        unsigned short :2;
432
                        unsigned short WRMOD:1;
433
                } BIT;
434
        } CS6MOD;
435
        union {
436
                unsigned long LONG;
437
                struct {
438
                        unsigned long :3;
439
                        unsigned long CSRWAIT:5;
440
                        unsigned long :3;
441
                        unsigned long CSWWAIT:5;
442
                        unsigned long :5;
443
                        unsigned long CSPRWAIT:3;
444
                        unsigned long :5;
445
                        unsigned long CSPWWAIT:3;
446
                } BIT;
447
        } CS6WCR1;
448
        union {
449
                unsigned long LONG;
450
                struct {
451
                        unsigned long :1;
452
                        unsigned long CSON:3;
453
                        unsigned long :1;
454
                        unsigned long WDON:3;
455
                        unsigned long :1;
456
                        unsigned long WRON:3;
457
                        unsigned long :1;
458
                        unsigned long RDON:3;
459
                        unsigned long :5;
460
                        unsigned long WDOFF:3;
461
                        unsigned long :1;
462
                        unsigned long CSWOFF:3;
463
                        unsigned long :1;
464
                        unsigned long CSROFF:3;
465
                } BIT;
466
        } CS6WCR2;
467
        char           wk10[6];
468
        union {
469
                unsigned short WORD;
470
                struct {
471
                        unsigned short PRMOD:1;
472
                        unsigned short :5;
473
                        unsigned short PWENB:1;
474
                        unsigned short PRENB:1;
475
                        unsigned short :4;
476
                        unsigned short EWENB:1;
477
                        unsigned short :2;
478
                        unsigned short WRMOD:1;
479
                } BIT;
480
        } CS7MOD;
481
        union {
482
                unsigned long LONG;
483
                struct {
484
                        unsigned long :3;
485
                        unsigned long CSRWAIT:5;
486
                        unsigned long :3;
487
                        unsigned long CSWWAIT:5;
488
                        unsigned long :5;
489
                        unsigned long CSPRWAIT:3;
490
                        unsigned long :5;
491
                        unsigned long CSPWWAIT:3;
492
                } BIT;
493
        } CS7WCR1;
494
        union {
495
                unsigned long LONG;
496
                struct {
497
                        unsigned long :1;
498
                        unsigned long CSON:3;
499
                        unsigned long :1;
500
                        unsigned long WDON:3;
501
                        unsigned long :1;
502
                        unsigned long WRON:3;
503
                        unsigned long :1;
504
                        unsigned long RDON:3;
505
                        unsigned long :5;
506
                        unsigned long WDOFF:3;
507
                        unsigned long :1;
508
                        unsigned long CSWOFF:3;
509
                        unsigned long :1;
510
                        unsigned long CSROFF:3;
511
                } BIT;
512
        } CS7WCR2;
513
        char           wk11[1926];
514
        union {
515
                unsigned short WORD;
516
                struct {
517
                        unsigned short :7;
518
                        unsigned short EMODE:1;
519
                        unsigned short :2;
520
                        unsigned short BSIZE:2;
521
                        unsigned short :3;
522
                        unsigned short EXENB:1;
523
                } BIT;
524
        } CS0CR;
525
        char           wk12[6];
526
        union {
527
                unsigned short WORD;
528
                struct {
529
                        unsigned short :4;
530
                        unsigned short WRCV:4;
531
                        unsigned short :4;
532
                        unsigned short RRCV:4;
533
                } BIT;
534
        } CS0REC;
535
        char           wk13[6];
536
        union {
537
                unsigned short WORD;
538
                struct {
539
                        unsigned short :7;
540
                        unsigned short EMODE:1;
541
                        unsigned short :2;
542
                        unsigned short BSIZE:2;
543
                        unsigned short :3;
544
                        unsigned short EXENB:1;
545
                } BIT;
546
        } CS1CR;
547
        char           wk14[6];
548
        union {
549
                unsigned short WORD;
550
                struct {
551
                        unsigned short :4;
552
                        unsigned short WRCV:4;
553
                        unsigned short :4;
554
                        unsigned short RRCV:4;
555
                } BIT;
556
        } CS1REC;
557
        char           wk15[6];
558
        union {
559
                unsigned short WORD;
560
                struct {
561
                        unsigned short :7;
562
                        unsigned short EMODE:1;
563
                        unsigned short :2;
564
                        unsigned short BSIZE:2;
565
                        unsigned short :3;
566
                        unsigned short EXENB:1;
567
                } BIT;
568
        } CS2CR;
569
        char           wk16[6];
570
        union {
571
                unsigned short WORD;
572
                struct {
573
                        unsigned short :4;
574
                        unsigned short WRCV:4;
575
                        unsigned short :4;
576
                        unsigned short RRCV:4;
577
                } BIT;
578
        } CS2REC;
579
        char           wk17[6];
580
        union {
581
                unsigned short WORD;
582
                struct {
583
                        unsigned short :7;
584
                        unsigned short EMODE:1;
585
                        unsigned short :2;
586
                        unsigned short BSIZE:2;
587
                        unsigned short :3;
588
                        unsigned short EXENB:1;
589
                } BIT;
590
        } CS3CR;
591
        char           wk18[6];
592
        union {
593
                unsigned short WORD;
594
                struct {
595
                        unsigned short :4;
596
                        unsigned short WRCV:4;
597
                        unsigned short :4;
598
                        unsigned short RRCV:4;
599
                } BIT;
600
        } CS3REC;
601
        char           wk19[6];
602
        union {
603
                unsigned short WORD;
604
                struct {
605
                        unsigned short :7;
606
                        unsigned short EMODE:1;
607
                        unsigned short :2;
608
                        unsigned short BSIZE:2;
609
                        unsigned short :3;
610
                        unsigned short EXENB:1;
611
                } BIT;
612
        } CS4CR;
613
        char           wk20[6];
614
        union {
615
                unsigned short WORD;
616
                struct {
617
                        unsigned short :4;
618
                        unsigned short WRCV:4;
619
                        unsigned short :4;
620
                        unsigned short RRCV:4;
621
                } BIT;
622
        } CS4REC;
623
        char           wk21[6];
624
        union {
625
                unsigned short WORD;
626
                struct {
627
                        unsigned short :7;
628
                        unsigned short EMODE:1;
629
                        unsigned short :2;
630
                        unsigned short BSIZE:2;
631
                        unsigned short :3;
632
                        unsigned short EXENB:1;
633
                } BIT;
634
        } CS5CR;
635
        char           wk22[6];
636
        union {
637
                unsigned short WORD;
638
                struct {
639
                        unsigned short :4;
640
                        unsigned short WRCV:4;
641
                        unsigned short :4;
642
                        unsigned short RRCV:4;
643
                } BIT;
644
        } CS5REC;
645
        char           wk23[6];
646
        union {
647
                unsigned short WORD;
648
                struct {
649
                        unsigned short :7;
650
                        unsigned short EMODE:1;
651
                        unsigned short :2;
652
                        unsigned short BSIZE:2;
653
                        unsigned short :3;
654
                        unsigned short EXENB:1;
655
                } BIT;
656
        } CS6CR;
657
        char           wk24[6];
658
        union {
659
                unsigned short WORD;
660
                struct {
661
                        unsigned short :4;
662
                        unsigned short WRCV:4;
663
                        unsigned short :4;
664
                        unsigned short RRCV:4;
665
                } BIT;
666
        } CS6REC;
667
        char           wk25[6];
668
        union {
669
                unsigned short WORD;
670
                struct {
671
                        unsigned short :7;
672
                        unsigned short EMODE:1;
673
                        unsigned short :2;
674
                        unsigned short BSIZE:2;
675
                        unsigned short :3;
676
                        unsigned short EXENB:1;
677
                } BIT;
678
        } CS7CR;
679
        char           wk26[6];
680
        union {
681
                unsigned short WORD;
682
                struct {
683
                        unsigned short :4;
684
                        unsigned short WRCV:4;
685
                        unsigned short :4;
686
                        unsigned short RRCV:4;
687
                } BIT;
688
        } CS7REC;
689
        char           wk27[900];
690
        union {
691
                unsigned char BYTE;
692
                struct {
693
                        unsigned char :2;
694
                        unsigned char BSIZE:2;
695
                        unsigned char :3;
696
                        unsigned char EXENB:1;
697
                } BIT;
698
        } SDCCR;
699
        union {
700
                unsigned char BYTE;
701
                struct {
702
                        unsigned char :7;
703
                        unsigned char EMODE:1;
704
                } BIT;
705
        } SDCMOD;
706
        union {
707
                unsigned char BYTE;
708
                struct {
709
                        unsigned char :7;
710
                        unsigned char BE:1;
711
                } BIT;
712
        } SDAMOD;
713
        char           wk28[13];
714
        union {
715
                unsigned char BYTE;
716
                struct {
717
                        unsigned char :7;
718
                        unsigned char SFEN:1;
719
                } BIT;
720
        } SDSELF;
721
        char           wk29[3];
722
        union {
723
                unsigned short WORD;
724
                struct {
725
                        unsigned short REFW:4;
726
                        unsigned short RFC:12;
727
                } BIT;
728
        } SDRFCR;
729
        union {
730
                unsigned char BYTE;
731
                struct {
732
                        unsigned char :7;
733
                        unsigned char RFEN:1;
734
                } BIT;
735
        } SDRFEN;
736
        char           wk30[9];
737
        union {
738
                unsigned char BYTE;
739
                struct {
740
                        unsigned char :7;
741
                        unsigned char INIRQ:1;
742
                } BIT;
743
        } SDICR;
744
        char           wk31[3];
745
        union {
746
                unsigned short WORD;
747
                struct {
748
                        unsigned short :5;
749
                        unsigned short PRC:3;
750
                        unsigned short ARFC:4;
751
                        unsigned short ARFI:4;
752
                } BIT;
753
        } SDIR;
754
        char           wk32[26];
755
        union {
756
                unsigned char BYTE;
757
                struct {
758
                        unsigned char :6;
759
                        unsigned char MXC:2;
760
                } BIT;
761
        } SDADR;
762
        char           wk33[3];
763
        union {
764
                unsigned long LONG;
765
                struct {
766
                        unsigned long :13;
767
                        unsigned long RAS:3;
768
                        unsigned long :2;
769
                        unsigned long RCD:2;
770
                        unsigned long RP:3;
771
                        unsigned long WR:1;
772
                        unsigned long :5;
773
                        unsigned long CL:3;
774
                } BIT;
775
        } SDTR;
776
        union {
777
                unsigned short WORD;
778
                struct {
779
                        unsigned short :1;
780
                        unsigned short MR:15;
781
                } BIT;
782
        } SDMOD;
783
        char           wk34[6];
784
        union {
785
                unsigned char BYTE;
786
                struct {
787
                        unsigned char :3;
788
                        unsigned char SRFST:1;
789
                        unsigned char INIST:1;
790
                        unsigned char :2;
791
                        unsigned char MRSST:1;
792
                } BIT;
793
        } SDSR;
794
};
795
 
796
struct st_can {
797
        struct {
798
                union {
799
                        unsigned long LONG;
800
                        struct {
801
                                unsigned short H;
802
                                unsigned short L;
803
                        } WORD;
804
                        struct {
805
                                unsigned char HH;
806
                                unsigned char HL;
807
                                unsigned char LH;
808
                                unsigned char LL;
809
                        } BYTE;
810
                        struct {
811
                                unsigned long IDE:1;
812
                                unsigned long RTR:1;
813
                                unsigned long :1;
814
                                unsigned long SID:11;
815
                                unsigned long EID:18;
816
                        } BIT;
817
                } ID;
818
                union {
819
                        unsigned short WORD;
820
                        struct {
821
                                unsigned char H;
822
                                unsigned char L;
823
                        } BYTE;
824
                        struct {
825
                                unsigned char :8;
826
                                unsigned char :4;
827
                                unsigned char DLC:4;
828
                        } BIT;
829
                } DLC;
830
                unsigned char  DATA[8];
831
                union {
832
                        unsigned short WORD;
833
                        struct {
834
                                unsigned char TSH;
835
                                unsigned char TSL;
836
                        } BYTE;
837
                } TS;
838
        } MB[32];
839
        union {
840
                unsigned long LONG;
841
                struct {
842
                        unsigned short H;
843
                        unsigned short L;
844
                } WORD;
845
                struct {
846
                        unsigned char HH;
847
                        unsigned char HL;
848
                        unsigned char LH;
849
                        unsigned char LL;
850
                } BYTE;
851
                struct {
852
                        unsigned long :3;
853
                        unsigned long SID:11;
854
                        unsigned long EID:18;
855
                } BIT;
856
        } MKR[8];
857
        union {
858
                unsigned long LONG;
859
                struct {
860
                        unsigned short H;
861
                        unsigned short L;
862
                } WORD;
863
                struct {
864
                        unsigned char HH;
865
                        unsigned char HL;
866
                        unsigned char LH;
867
                        unsigned char LL;
868
                } BYTE;
869
                struct {
870
                        unsigned long IDE:1;
871
                        unsigned long RTR:1;
872
                        unsigned long :1;
873
                        unsigned long SID:11;
874
                        unsigned long EID:18;
875
                } BIT;
876
        } FIDCR0;
877
        union {
878
                unsigned long LONG;
879
                struct {
880
                        unsigned short H;
881
                        unsigned short L;
882
                } WORD;
883
                struct {
884
                        unsigned char HH;
885
                        unsigned char HL;
886
                        unsigned char LH;
887
                        unsigned char LL;
888
                } BYTE;
889
                struct {
890
                        unsigned long IDE:1;
891
                        unsigned long RTR:1;
892
                        unsigned long :1;
893
                        unsigned long SID:11;
894
                        unsigned long EID:18;
895
                } BIT;
896
        } FIDCR1;
897
        unsigned long  MKIVLR;
898
        unsigned long  MIER;
899
        char           wk0[1008];
900
        union {
901
                unsigned char BYTE;
902
                union {
903
                        struct {
904
                                unsigned char TRMREQ:1;
905
                                unsigned char RECREQ:1;
906
                                unsigned char :1;
907
                                unsigned char ONESHOT:1;
908
                                unsigned char :1;
909
                                unsigned char TRMABT:1;
910
                                unsigned char TRMACTIVE:1;
911
                                unsigned char SENTDATA:1;
912
                        } TX;
913
                        struct {
914
                                unsigned char :5;
915
                                unsigned char MSGLOST:1;
916
                                unsigned char INVALDATA:1;
917
                                unsigned char NEWDATA:1;
918
                        } RX;
919
                } BIT;
920
        } MCTL[32];
921
        union {
922
                unsigned short WORD;
923
                struct {
924
                        unsigned char H;
925
                        unsigned char L;
926
                } BYTE;
927
                struct {
928
                        unsigned char :2;
929
                        unsigned char RBOC:1;
930
                        unsigned char BOM:2;
931
                        unsigned char SLPM:1;
932
                        unsigned char CANM:2;
933
                        unsigned char TSPS:2;
934
                        unsigned char TSRC:1;
935
                        unsigned char TPM:1;
936
                        unsigned char MLM:1;
937
                        unsigned char IDFM:2;
938
                        unsigned char MBM:1;
939
                } BIT;
940
        } CTLR;
941
        union {
942
                unsigned short WORD;
943
                struct {
944
                        unsigned char H;
945
                        unsigned char L;
946
                } BYTE;
947
                struct {
948
                        unsigned char :1;
949
                        unsigned char RECST:1;
950
                        unsigned char TRMST:1;
951
                        unsigned char BOST:1;
952
                        unsigned char EPST:1;
953
                        unsigned char SLPST:1;
954
                        unsigned char HLTST:1;
955
                        unsigned char RSTST:1;
956
                        unsigned char EST:1;
957
                        unsigned char TABST:1;
958
                        unsigned char FMLST:1;
959
                        unsigned char NMLST:1;
960
                        unsigned char TFST:1;
961
                        unsigned char RFST:1;
962
                        unsigned char SDST:1;
963
                        unsigned char NDST:1;
964
                } BIT;
965
        } STR;
966
        union {
967
                unsigned long LONG;
968
                struct {
969
                        unsigned short H;
970
                        unsigned short L;
971
                } WORD;
972
                struct {
973
                        unsigned char HH;
974
                        unsigned char HL;
975
                        unsigned char LH;
976
                        unsigned char LL;
977
                } BYTE;
978
                struct {
979
                        unsigned long TSEG1:4;
980
                        unsigned long :2;
981
                        unsigned long BRP:10;
982
                        unsigned long :2;
983
                        unsigned long SJW:2;
984
                        unsigned long :1;
985
                        unsigned long TSEG2:3;
986
                } BIT;
987
        } BCR;
988
        union {
989
                unsigned char BYTE;
990
                struct {
991
                        unsigned char RFEST:1;
992
                        unsigned char RFWST:1;
993
                        unsigned char RFFST:1;
994
                        unsigned char RFMLF:1;
995
                        unsigned char RFUST:3;
996
                        unsigned char RFE:1;
997
                } BIT;
998
        } RFCR;
999
        unsigned char  RFPCR;
1000
        union {
1001
                unsigned char BYTE;
1002
                struct {
1003
                        unsigned char TFEST:1;
1004
                        unsigned char TFFST:1;
1005
                        unsigned char :2;
1006
                        unsigned char TFUST:3;
1007
                        unsigned char TFE:1;
1008
                } BIT;
1009
        } TFCR;
1010
        unsigned char  TFPCR;
1011
        union {
1012
                unsigned char BYTE;
1013
                struct {
1014
                        unsigned char BLIE:1;
1015
                        unsigned char OLIE:1;
1016
                        unsigned char ORIE:1;
1017
                        unsigned char BORIE:1;
1018
                        unsigned char BOEIE:1;
1019
                        unsigned char EPIE:1;
1020
                        unsigned char EWIE:1;
1021
                        unsigned char BEIE:1;
1022
                } BIT;
1023
        } EIER;
1024
        union {
1025
                unsigned char BYTE;
1026
                struct {
1027
                        unsigned char BLIF:1;
1028
                        unsigned char OLIF:1;
1029
                        unsigned char ORIF:1;
1030
                        unsigned char BORIF:1;
1031
                        unsigned char BOEIF:1;
1032
                        unsigned char EPIF:1;
1033
                        unsigned char EWIF:1;
1034
                        unsigned char BEIF:1;
1035
                } BIT;
1036
        } EIFR;
1037
        unsigned char  RECR;
1038
        unsigned char  TECR;
1039
        union {
1040
                unsigned char BYTE;
1041
                struct {
1042
                        unsigned char EDPM:1;
1043
                        unsigned char ADEF:1;
1044
                        unsigned char BE0F:1;
1045
                        unsigned char BE1F:1;
1046
                        unsigned char CEF:1;
1047
                        unsigned char AEF:1;
1048
                        unsigned char FEF:1;
1049
                        unsigned char SEF:1;
1050
                } BIT;
1051
        } ECSR;
1052
        unsigned char  CSSR;
1053
        union {
1054
                unsigned char BYTE;
1055
                struct {
1056
                        unsigned char SEST:1;
1057
                        unsigned char :2;
1058
                        unsigned char MBNST:5;
1059
                } BIT;
1060
        } MSSR;
1061
        union {
1062
                unsigned char BYTE;
1063
                struct {
1064
                        unsigned char :6;
1065
                        unsigned char MBSM:2;
1066
                } BIT;
1067
        } MSMR;
1068
        unsigned short TSR;
1069
        unsigned short AFSR;
1070
        union {
1071
                unsigned char BYTE;
1072
                struct {
1073
                        unsigned char :5;
1074
                        unsigned char TSTM:2;
1075
                        unsigned char TSTE:1;
1076
                } BIT;
1077
        } TCR;
1078
};
1079
 
1080
struct st_cmt {
1081
        union {
1082
                unsigned short WORD;
1083
                struct {
1084
                        unsigned short :14;
1085
                        unsigned short STR1:1;
1086
                        unsigned short STR0:1;
1087
                } BIT;
1088
        } CMSTR0;
1089
        char           wk0[14];
1090
        union {
1091
                unsigned short WORD;
1092
                struct {
1093
                        unsigned short :14;
1094
                        unsigned short STR3:1;
1095
                        unsigned short STR2:1;
1096
                } BIT;
1097
        } CMSTR1;
1098
};
1099
 
1100
struct st_cmt0 {
1101
        union {
1102
                unsigned short WORD;
1103
                struct {
1104
                        unsigned short :9;
1105
                        unsigned short CMIE:1;
1106
                        unsigned short :4;
1107
                        unsigned short CKS:2;
1108
                } BIT;
1109
        } CMCR;
1110
        unsigned short CMCNT;
1111
        unsigned short CMCOR;
1112
};
1113
 
1114
struct st_crc {
1115
        union {
1116
                unsigned char BYTE;
1117
                struct {
1118
                        unsigned char DORCLR:1;
1119
                        unsigned char :4;
1120
                        unsigned char LMS:1;
1121
                        unsigned char GPS:2;
1122
                } BIT;
1123
        } CRCCR;
1124
        unsigned char  CRCDIR;
1125
        unsigned short CRCDOR;
1126
};
1127
 
1128
struct st_da {
1129
        unsigned short DADR0;
1130
        unsigned short DADR1;
1131
        union {
1132
                unsigned char BYTE;
1133
                struct {
1134
                        unsigned char DAOE1:1;
1135
                        unsigned char DAOE0:1;
1136
                        unsigned char DAE:1;
1137
                } BIT;
1138
        } DACR;
1139
        union {
1140
                unsigned char BYTE;
1141
                struct {
1142
                        unsigned char DPSEL:1;
1143
                } BIT;
1144
        } DADPR;
1145
};
1146
 
1147
struct st_dmac {
1148
        union {
1149
                unsigned char BYTE;
1150
                struct {
1151
                        unsigned char :7;
1152
                        unsigned char DMST:1;
1153
                } BIT;
1154
        } DMAST;
1155
};
1156
 
1157
struct st_dmac0 {
1158
        void          *DMSAR;
1159
        void          *DMDAR;
1160
        unsigned long  DMCRA;
1161
        unsigned short DMCRB;
1162
        char           wk0[2];
1163
        union {
1164
                unsigned short WORD;
1165
                struct {
1166
                        unsigned short MD:2;
1167
                        unsigned short DTS:2;
1168
                        unsigned short :2;
1169
                        unsigned short SZ:2;
1170
                        unsigned short :6;
1171
                        unsigned short DCTG:2;
1172
                } BIT;
1173
        } DMTMD;
1174
        char           wk1[1];
1175
        union {
1176
                unsigned char BYTE;
1177
                struct {
1178
                        unsigned char :3;
1179
                        unsigned char DTIE:1;
1180
                        unsigned char ESIE:1;
1181
                        unsigned char RPTIE:1;
1182
                        unsigned char SARIE:1;
1183
                        unsigned char DARIE:1;
1184
                } BIT;
1185
        } DMINT;
1186
        union {
1187
                unsigned short WORD;
1188
                struct {
1189
                        unsigned short SM:2;
1190
                        unsigned short :1;
1191
                        unsigned short SARA:5;
1192
                        unsigned short DM:2;
1193
                        unsigned short :1;
1194
                        unsigned short DARA:5;
1195
                } BIT;
1196
        } DMAMD;
1197
        char           wk2[2];
1198
        unsigned long  DMOFR;
1199
        union {
1200
                unsigned char BYTE;
1201
                struct {
1202
                        unsigned char :7;
1203
                        unsigned char DTE:1;
1204
                } BIT;
1205
        } DMCNT;
1206
        union {
1207
                unsigned char BYTE;
1208
                struct {
1209
                        unsigned char :3;
1210
                        unsigned char CLRS:1;
1211
                        unsigned char :3;
1212
                        unsigned char SWREQ:1;
1213
                } BIT;
1214
        } DMREQ;
1215
        union {
1216
                unsigned char BYTE;
1217
                struct {
1218
                        unsigned char ACT:1;
1219
                        unsigned char :2;
1220
                        unsigned char DTIF:1;
1221
                        unsigned char :3;
1222
                        unsigned char ESIF:1;
1223
                } BIT;
1224
        } DMSTS;
1225
        union {
1226
                unsigned char BYTE;
1227
                struct {
1228
                        unsigned char :7;
1229
                        unsigned char DISEL:1;
1230
                } BIT;
1231
        } DMCSL;
1232
};
1233
 
1234
struct st_dmac1 {
1235
        void          *DMSAR;
1236
        void          *DMDAR;
1237
        unsigned long  DMCRA;
1238
        unsigned short DMCRB;
1239
        char           wk0[2];
1240
        union {
1241
                unsigned short WORD;
1242
                struct {
1243
                        unsigned short MD:2;
1244
                        unsigned short DTS:2;
1245
                        unsigned short :2;
1246
                        unsigned short SZ:2;
1247
                        unsigned short :6;
1248
                        unsigned short DCTG:2;
1249
                } BIT;
1250
        } DMTMD;
1251
        char           wk1[1];
1252
        union {
1253
                unsigned char BYTE;
1254
                struct {
1255
                        unsigned char :3;
1256
                        unsigned char DTIE:1;
1257
                        unsigned char ESIE:1;
1258
                        unsigned char RPTIE:1;
1259
                        unsigned char SARIE:1;
1260
                        unsigned char DARIE:1;
1261
                } BIT;
1262
        } DMINT;
1263
        union {
1264
                unsigned short WORD;
1265
                struct {
1266
                        unsigned short SM:2;
1267
                        unsigned short :1;
1268
                        unsigned short SARA:5;
1269
                        unsigned short DM:2;
1270
                        unsigned short :1;
1271
                        unsigned short DARA:5;
1272
                } BIT;
1273
        } DMAMD;
1274
        char           wk2[6];
1275
        union {
1276
                unsigned char BYTE;
1277
                struct {
1278
                        unsigned char :7;
1279
                        unsigned char DTE:1;
1280
                } BIT;
1281
        } DMCNT;
1282
        union {
1283
                unsigned char BYTE;
1284
                struct {
1285
                        unsigned char :3;
1286
                        unsigned char CLRS:1;
1287
                        unsigned char :3;
1288
                        unsigned char SWREQ:1;
1289
                } BIT;
1290
        } DMREQ;
1291
        union {
1292
                unsigned char BYTE;
1293
                struct {
1294
                        unsigned char ACT:1;
1295
                        unsigned char :2;
1296
                        unsigned char DTIF:1;
1297
                        unsigned char :3;
1298
                        unsigned char ESIF:1;
1299
                } BIT;
1300
        } DMSTS;
1301
        union {
1302
                unsigned char BYTE;
1303
                struct {
1304
                        unsigned char :7;
1305
                        unsigned char DISEL:1;
1306
                } BIT;
1307
        } DMCSL;
1308
};
1309
 
1310
struct st_dtc {
1311
        union {
1312
                unsigned char BYTE;
1313
                struct {
1314
                        unsigned char :3;
1315
                        unsigned char RRS:1;
1316
                } BIT;
1317
        } DTCCR;
1318
        char           wk0[3];
1319
        void          *DTCVBR;
1320
        union {
1321
                unsigned char BYTE;
1322
                struct {
1323
                        unsigned char :7;
1324
                        unsigned char SHORT:1;
1325
                } BIT;
1326
        } DTCADMOD;
1327
        char           wk1[3];
1328
        union {
1329
                unsigned char BYTE;
1330
                struct {
1331
                        unsigned char :7;
1332
                        unsigned char DTCST:1;
1333
                } BIT;
1334
        } DTCST;
1335
        char           wk2[1];
1336
        union {
1337
                unsigned short WORD;
1338
                struct {
1339
                        unsigned short ACT:1;
1340
                        unsigned short :7;
1341
                        unsigned short VECN:8;
1342
                } BIT;
1343
        } DTCSTS;
1344
};
1345
 
1346
struct st_edmac {
1347
        union {
1348
                unsigned long LONG;
1349
                struct {
1350
                        unsigned long :25;
1351
                        unsigned long DE:1;
1352
                        unsigned long DL:2;
1353
                        unsigned long :3;
1354
                        unsigned long SWR:1;
1355
                } BIT;
1356
        } EDMR;
1357
        char           wk0[4];
1358
        union {
1359
                unsigned long LONG;
1360
                struct {
1361
                        unsigned long :31;
1362
                        unsigned long TR:1;
1363
                } BIT;
1364
        } EDTRR;
1365
        char           wk1[4];
1366
        union {
1367
                unsigned long LONG;
1368
                struct {
1369
                        unsigned long :31;
1370
                        unsigned long RR:1;
1371
                } BIT;
1372
        } EDRRR;
1373
        char           wk2[4];
1374
        void          *TDLAR;
1375
        char           wk3[4];
1376
        void          *RDLAR;
1377
        char           wk4[4];
1378
        union {
1379
                unsigned long LONG;
1380
                struct {
1381
                        unsigned long :1;
1382
                        unsigned long TWB:1;
1383
                        unsigned long :3;
1384
                        unsigned long TABT:1;
1385
                        unsigned long RABT:1;
1386
                        unsigned long RFCOF:1;
1387
                        unsigned long ADE:1;
1388
                        unsigned long ECI:1;
1389
                        unsigned long TC:1;
1390
                        unsigned long TDE:1;
1391
                        unsigned long TFUF:1;
1392
                        unsigned long FR:1;
1393
                        unsigned long RDE:1;
1394
                        unsigned long RFOF:1;
1395
                        unsigned long :4;
1396
                        unsigned long CND:1;
1397
                        unsigned long DLC:1;
1398
                        unsigned long CD:1;
1399
                        unsigned long TRO:1;
1400
                        unsigned long RMAF:1;
1401
                        unsigned long :2;
1402
                        unsigned long RRF:1;
1403
                        unsigned long RTLF:1;
1404
                        unsigned long RTSF:1;
1405
                        unsigned long PRE:1;
1406
                        unsigned long CERF:1;
1407
                } BIT;
1408
        } EESR;
1409
        char           wk5[4];
1410
        union {
1411
                unsigned long LONG;
1412
                struct {
1413
                        unsigned long :1;
1414
                        unsigned long TWBIP:1;
1415
                        unsigned long :3;
1416
                        unsigned long TABTIP:1;
1417
                        unsigned long RABTIP:1;
1418
                        unsigned long RFCOFIP:1;
1419
                        unsigned long ADEIP:1;
1420
                        unsigned long ECIIP:1;
1421
                        unsigned long TCIP:1;
1422
                        unsigned long TDEIP:1;
1423
                        unsigned long TFUFIP:1;
1424
                        unsigned long FRIP:1;
1425
                        unsigned long RDEIP:1;
1426
                        unsigned long RFOFIP:1;
1427
                        unsigned long :4;
1428
                        unsigned long CNDIP:1;
1429
                        unsigned long DLCIP:1;
1430
                        unsigned long CDIP:1;
1431
                        unsigned long TROIP:1;
1432
                        unsigned long RMAFIP:1;
1433
                        unsigned long :2;
1434
                        unsigned long RRFIP:1;
1435
                        unsigned long RTLFIP:1;
1436
                        unsigned long RTSFIP:1;
1437
                        unsigned long PREIP:1;
1438
                        unsigned long CERFIP:1;
1439
                } BIT;
1440
        } EESIPR;
1441
        char           wk6[4];
1442
        union {
1443
                unsigned long LONG;
1444
                struct {
1445
                        unsigned long :20;
1446
                        unsigned long CNDCE:1;
1447
                        unsigned long DLCCE:1;
1448
                        unsigned long CDCE:1;
1449
                        unsigned long TROCE:1;
1450
                        unsigned long RMAFCE:1;
1451
                        unsigned long :2;
1452
                        unsigned long RRFCE:1;
1453
                        unsigned long RTLFCE:1;
1454
                        unsigned long RTSFCE:1;
1455
                        unsigned long PRECE:1;
1456
                        unsigned long CERFCE:1;
1457
                } BIT;
1458
        } TRSCER;
1459
        char           wk7[4];
1460
        union {
1461
                unsigned long LONG;
1462
                struct {
1463
                        unsigned long :16;
1464
                        unsigned long MFC:16;
1465
                } BIT;
1466
        } RMFCR;
1467
        char           wk8[4];
1468
        union {
1469
                unsigned long LONG;
1470
                struct {
1471
                        unsigned long :21;
1472
                        unsigned long TFT:11;
1473
                } BIT;
1474
        } TFTR;
1475
        char           wk9[4];
1476
        union {
1477
                unsigned long LONG;
1478
                struct {
1479
                        unsigned long :19;
1480
                        unsigned long TFD:5;
1481
                        unsigned long :3;
1482
                        unsigned long RFD:5;
1483
                } BIT;
1484
        } FDR;
1485
        char           wk10[4];
1486
        union {
1487
                unsigned long LONG;
1488
                struct {
1489
                        unsigned long :30;
1490
                        unsigned long RNC:1;
1491
                        unsigned long RNR:1;
1492
                } BIT;
1493
        } RMCR;
1494
        char           wk11[8];
1495
        union {
1496
                unsigned long LONG;
1497
                struct {
1498
                        unsigned long :16;
1499
                        unsigned long UNDER:16;
1500
                } BIT;
1501
        } TFUCR;
1502
        union {
1503
                unsigned long LONG;
1504
                struct {
1505
                        unsigned long :16;
1506
                        unsigned long OVER:16;
1507
                } BIT;
1508
        } RFOCR;
1509
        union {
1510
                unsigned long LONG;
1511
                struct {
1512
                        unsigned long :31;
1513
                        unsigned long TLB:1;
1514
                } BIT;
1515
        } IOSR;
1516
        union {
1517
                unsigned long LONG;
1518
                struct {
1519
                        unsigned long :13;
1520
                        unsigned long RFFO:3;
1521
                        unsigned long :13;
1522
                        unsigned long RFDO:3;
1523
                } BIT;
1524
        } FCFTR;
1525
        char           wk12[4];
1526
        union {
1527
                unsigned long LONG;
1528
                struct {
1529
                        unsigned long :14;
1530
                        unsigned long PADS:2;
1531
                        unsigned long :10;
1532
                        unsigned long PADR:6;
1533
                } BIT;
1534
        } RPADIR;
1535
        union {
1536
                unsigned long LONG;
1537
                struct {
1538
                        unsigned long :27;
1539
                        unsigned long TIM:1;
1540
                        unsigned long :3;
1541
                        unsigned long TIS:1;
1542
                } BIT;
1543
        } TRIMD;
1544
        char           wk13[72];
1545
        void          *RBWAR;
1546
        void          *RDFAR;
1547
        char           wk14[4];
1548
        void          *TBRAR;
1549
        void          *TDFAR;
1550
};
1551
 
1552
struct st_etherc {
1553
        union {
1554
                unsigned long LONG;
1555
                struct {
1556
                        unsigned long :11;
1557
                        unsigned long TPC:1;
1558
                        unsigned long ZPE:1;
1559
                        unsigned long PFR:1;
1560
                        unsigned long RXF:1;
1561
                        unsigned long TXF:1;
1562
                        unsigned long :3;
1563
                        unsigned long PRCEF:1;
1564
                        unsigned long :2;
1565
                        unsigned long MPDE:1;
1566
                        unsigned long :2;
1567
                        unsigned long RE:1;
1568
                        unsigned long TE:1;
1569
                        unsigned long :1;
1570
                        unsigned long ILB:1;
1571
                        unsigned long RTM:1;
1572
                        unsigned long DM:1;
1573
                        unsigned long PRM:1;
1574
                } BIT;
1575
        } ECMR;
1576
        char           wk0[4];
1577
        union {
1578
                unsigned long LONG;
1579
                struct {
1580
                        unsigned long :20;
1581
                        unsigned long RFL:12;
1582
                } BIT;
1583
        } RFLR;
1584
        char           wk1[4];
1585
        union {
1586
                unsigned long LONG;
1587
                struct {
1588
                        unsigned long :26;
1589
                        unsigned long BFR:1;
1590
                        unsigned long PSRTO:1;
1591
                        unsigned long :1;
1592
                        unsigned long LCHNG:1;
1593
                        unsigned long MPD:1;
1594
                        unsigned long ICD:1;
1595
                } BIT;
1596
        } ECSR;
1597
        char           wk2[4];
1598
        union {
1599
                unsigned long LONG;
1600
                struct {
1601
                        unsigned long :26;
1602
                        unsigned long BFSIPR:1;
1603
                        unsigned long PSRTOIP:1;
1604
                        unsigned long :1;
1605
                        unsigned long LCHNGIP:1;
1606
                        unsigned long MPDIP:1;
1607
                        unsigned long ICDIP:1;
1608
                } BIT;
1609
        } ECSIPR;
1610
        char           wk3[4];
1611
        union {
1612
                unsigned long LONG;
1613
                struct {
1614
                        unsigned long :28;
1615
                        unsigned long MDI:1;
1616
                        unsigned long MDO:1;
1617
                        unsigned long MMD:1;
1618
                        unsigned long MDC:1;
1619
                } BIT;
1620
        } PIR;
1621
        char           wk4[4];
1622
        union {
1623
                unsigned long LONG;
1624
                struct {
1625
                        unsigned long :31;
1626
                        unsigned long LMON:1;
1627
                } BIT;
1628
        } PSR;
1629
        char           wk5[20];
1630
        union {
1631
                unsigned long LONG;
1632
                struct {
1633
                        unsigned long :12;
1634
                        unsigned long RMD:20;
1635
                } BIT;
1636
        } RDMLR;
1637
        char           wk6[12];
1638
        union {
1639
                unsigned long LONG;
1640
                struct {
1641
                        unsigned long :27;
1642
                        unsigned long IPG:5;
1643
                } BIT;
1644
        } IPGR;
1645
        union {
1646
                unsigned long LONG;
1647
                struct {
1648
                        unsigned long :16;
1649
                        unsigned long AP:16;
1650
                } BIT;
1651
        } APR;
1652
        union {
1653
                unsigned long LONG;
1654
                struct {
1655
                        unsigned long :16;
1656
                        unsigned long MP:16;
1657
                } BIT;
1658
        } MPR;
1659
        char           wk7[4];
1660
        union {
1661
                unsigned long LONG;
1662
                struct {
1663
                        unsigned long :24;
1664
                        unsigned long RPAUSE:8;
1665
                } BIT;
1666
        } RFCF;
1667
        union {
1668
                unsigned long LONG;
1669
                struct {
1670
                        unsigned long :16;
1671
                        unsigned long TPAUSE:16;
1672
                } BIT;
1673
        } TPAUSER;
1674
        union {
1675
                unsigned long LONG;
1676
                struct {
1677
                        unsigned long :24;
1678
                        unsigned long TXP:8;
1679
                } BIT;
1680
        } TPAUSECR;
1681
        union {
1682
                unsigned long LONG;
1683
                struct {
1684
                        unsigned long :16;
1685
                        unsigned long BCF:16;
1686
                } BIT;
1687
        } BCFRR;
1688
        char           wk8[80];
1689
        unsigned long  MAHR;
1690
        char           wk9[4];
1691
        union {
1692
                unsigned long LONG;
1693
                struct {
1694
                        unsigned long :16;
1695
                        unsigned long MA:16;
1696
                } BIT;
1697
        } MALR;
1698
        char           wk10[4];
1699
        unsigned long  TROCR;
1700
        unsigned long  CDCR;
1701
        unsigned long  LCCR;
1702
        unsigned long  CNDCR;
1703
        char           wk11[4];
1704
        unsigned long  CEFCR;
1705
        unsigned long  FRECR;
1706
        unsigned long  TSFRCR;
1707
        unsigned long  TLFRCR;
1708
        unsigned long  RFCR;
1709
        unsigned long  MAFCR;
1710
};
1711
 
1712
struct st_exdmac {
1713
        union {
1714
                unsigned char BYTE;
1715
                struct {
1716
                        unsigned char :7;
1717
                        unsigned char DMST:1;
1718
                } BIT;
1719
        } EDMAST;
1720
        char           wk0[479];
1721
        unsigned long  CLSBR0;
1722
        unsigned long  CLSBR1;
1723
        unsigned long  CLSBR2;
1724
        unsigned long  CLSBR3;
1725
        unsigned long  CLSBR4;
1726
        unsigned long  CLSBR5;
1727
        unsigned long  CLSBR6;
1728
        unsigned long  CLSBR7;
1729
};
1730
 
1731
struct st_exdmac0 {
1732
        void          *EDMSAR;
1733
        void          *EDMDAR;
1734
        unsigned long  EDMCRA;
1735
        unsigned short EDMCRB;
1736
        char           wk0[2];
1737
        union {
1738
                unsigned short WORD;
1739
                struct {
1740
                        unsigned short MD:2;
1741
                        unsigned short DTS:2;
1742
                        unsigned short :2;
1743
                        unsigned short SZ:2;
1744
                        unsigned short :6;
1745
                        unsigned short DCTG:2;
1746
                } BIT;
1747
        } EDMTMD;
1748
        union {
1749
                unsigned char BYTE;
1750
                struct {
1751
                        unsigned char :4;
1752
                        unsigned char DACKS:1;
1753
                        unsigned char DACKE:1;
1754
                        unsigned char DACKW:1;
1755
                } BIT;
1756
        } EDMOMD;
1757
        union {
1758
                unsigned char BYTE;
1759
                struct {
1760
                        unsigned char :3;
1761
                        unsigned char DTIE:1;
1762
                        unsigned char ESIE:1;
1763
                        unsigned char RPTIE:1;
1764
                        unsigned char SARIE:1;
1765
                        unsigned char DARIE:1;
1766
                } BIT;
1767
        } EDMINT;
1768
        union {
1769
                unsigned long LONG;
1770
                struct {
1771
                        unsigned long :14;
1772
                        unsigned long AMS:1;
1773
                        unsigned long DIR:1;
1774
                        unsigned long SM:2;
1775
                        unsigned long :1;
1776
                        unsigned long SARA:5;
1777
                        unsigned long DM:2;
1778
                        unsigned long :1;
1779
                        unsigned long DARA:5;
1780
                } BIT;
1781
        } EDMAMD;
1782
        unsigned long  EDMOFR;
1783
        union {
1784
                unsigned char BYTE;
1785
                struct {
1786
                        unsigned char :7;
1787
                        unsigned char DTE:1;
1788
                } BIT;
1789
        } EDMCNT;
1790
        union {
1791
                unsigned char BYTE;
1792
                struct {
1793
                        unsigned char :3;
1794
                        unsigned char CLRS:1;
1795
                        unsigned char :3;
1796
                        unsigned char SWREQ:1;
1797
                } BIT;
1798
        } EDMREQ;
1799
        union {
1800
                unsigned char BYTE;
1801
                struct {
1802
                        unsigned char ACT:1;
1803
                        unsigned char :2;
1804
                        unsigned char DTIF:1;
1805
                        unsigned char :3;
1806
                        unsigned char ESIF:1;
1807
                } BIT;
1808
        } EDMSTS;
1809
        char           wk1[1];
1810
        union {
1811
                unsigned char BYTE;
1812
                struct {
1813
                        unsigned char :6;
1814
                        unsigned char DREQS:2;
1815
                } BIT;
1816
        } EDMRMD;
1817
        union {
1818
                unsigned char BYTE;
1819
                struct {
1820
                        unsigned char :7;
1821
                        unsigned char EREQ:1;
1822
                } BIT;
1823
        } EDMERF;
1824
        union {
1825
                unsigned char BYTE;
1826
                struct {
1827
                        unsigned char :7;
1828
                        unsigned char PREQ:1;
1829
                } BIT;
1830
        } EDMPRF;
1831
};
1832
 
1833
struct st_exdmac1 {
1834
        void          *EDMSAR;
1835
        void          *EDMDAR;
1836
        unsigned long  EDMCRA;
1837
        unsigned short EDMCRB;
1838
        char           wk0[2];
1839
        union {
1840
                unsigned short WORD;
1841
                struct {
1842
                        unsigned short MD:2;
1843
                        unsigned short DTS:2;
1844
                        unsigned short :2;
1845
                        unsigned short SZ:2;
1846
                        unsigned short :6;
1847
                        unsigned short DCTG:2;
1848
                } BIT;
1849
        } EDMTMD;
1850
        union {
1851
                unsigned char BYTE;
1852
                struct {
1853
                        unsigned char :4;
1854
                        unsigned char DACKS:1;
1855
                        unsigned char DACKE:1;
1856
                        unsigned char DACKW:1;
1857
                } BIT;
1858
        } EDMOMD;
1859
        union {
1860
                unsigned char BYTE;
1861
                struct {
1862
                        unsigned char :3;
1863
                        unsigned char DTIE:1;
1864
                        unsigned char ESIE:1;
1865
                        unsigned char RPTIE:1;
1866
                        unsigned char SARIE:1;
1867
                        unsigned char DARIE:1;
1868
                } BIT;
1869
        } EDMINT;
1870
        union {
1871
                unsigned long LONG;
1872
                struct {
1873
                        unsigned long :14;
1874
                        unsigned long AMS:1;
1875
                        unsigned long DIR:1;
1876
                        unsigned long SM:2;
1877
                        unsigned long :1;
1878
                        unsigned long SARA:5;
1879
                        unsigned long DM:2;
1880
                        unsigned long :1;
1881
                        unsigned long DARA:5;
1882
                } BIT;
1883
        } EDMAMD;
1884
        char           wk1[4];
1885
        union {
1886
                unsigned char BYTE;
1887
                struct {
1888
                        unsigned char :7;
1889
                        unsigned char DTE:1;
1890
                } BIT;
1891
        } EDMCNT;
1892
        union {
1893
                unsigned char BYTE;
1894
                struct {
1895
                        unsigned char :3;
1896
                        unsigned char CLRS:1;
1897
                        unsigned char :3;
1898
                        unsigned char SWREQ:1;
1899
                } BIT;
1900
        } EDMREQ;
1901
        union {
1902
                unsigned char BYTE;
1903
                struct {
1904
                        unsigned char ACT:1;
1905
                        unsigned char :2;
1906
                        unsigned char DTIF:1;
1907
                        unsigned char :3;
1908
                        unsigned char ESIF:1;
1909
                } BIT;
1910
        } EDMSTS;
1911
        char           wk2[1];
1912
        union {
1913
                unsigned char BYTE;
1914
                struct {
1915
                        unsigned char :6;
1916
                        unsigned char DREQS:2;
1917
                } BIT;
1918
        } EDMRMD;
1919
        union {
1920
                unsigned char BYTE;
1921
                struct {
1922
                        unsigned char :7;
1923
                        unsigned char EREQ:1;
1924
                } BIT;
1925
        } EDMERF;
1926
        union {
1927
                unsigned char BYTE;
1928
                struct {
1929
                        unsigned char :7;
1930
                        unsigned char PREQ:1;
1931
                } BIT;
1932
        } EDMPRF;
1933
};
1934
 
1935
struct st_flash {
1936
        char           wk0[1];
1937
        union {
1938
                unsigned char BYTE;
1939
                struct {
1940
                        unsigned char :6;
1941
                        unsigned char FLWE:2;
1942
                } BIT;
1943
        } FWEPROR;
1944
        char           wk1[7799160];
1945
        union {
1946
                unsigned char BYTE;
1947
                struct {
1948
                        unsigned char :3;
1949
                        unsigned char FRDMD:1;
1950
                } BIT;
1951
        } FMODR;
1952
        char           wk2[13];
1953
        union {
1954
                unsigned char BYTE;
1955
                struct {
1956
                        unsigned char ROMAE:1;
1957
                        unsigned char :2;
1958
                        unsigned char CMDLK:1;
1959
                        unsigned char DFLAE:1;
1960
                        unsigned char :1;
1961
                        unsigned char DFLRPE:1;
1962
                        unsigned char DFLWPE:1;
1963
                } BIT;
1964
        } FASTAT;
1965
        union {
1966
                unsigned char BYTE;
1967
                struct {
1968
                        unsigned char ROMAEIE:1;
1969
                        unsigned char :2;
1970
                        unsigned char CMDLKIE:1;
1971
                        unsigned char DFLAEIE:1;
1972
                        unsigned char :1;
1973
                        unsigned char DFLRPEIE:1;
1974
                        unsigned char DFLWPEIE:1;
1975
                } BIT;
1976
        } FAEINT;
1977
        union {
1978
                unsigned char BYTE;
1979
                struct {
1980
                        unsigned char :7;
1981
                        unsigned char FRDYIE:1;
1982
                } BIT;
1983
        } FRDYIE;
1984
        char           wk3[45];
1985
        union {
1986
                unsigned short WORD;
1987
                struct {
1988
                        unsigned short KEY:8;
1989
                        unsigned short DBRE07:1;
1990
                        unsigned short DBRE06:1;
1991
                        unsigned short DBRE05:1;
1992
                        unsigned short DBRE04:1;
1993
                        unsigned short DBRE03:1;
1994
                        unsigned short DBRE02:1;
1995
                        unsigned short DBRE01:1;
1996
                        unsigned short DBRE00:1;
1997
                } BIT;
1998
        } DFLRE0;
1999
        union {
2000
                unsigned short WORD;
2001
                struct {
2002
                        unsigned short KEY:8;
2003
                        unsigned short DBRE15:1;
2004
                        unsigned short DBRE14:1;
2005
                        unsigned short DBRE13:1;
2006
                        unsigned short DBRE12:1;
2007
                        unsigned short DBRE11:1;
2008
                        unsigned short DBRE10:1;
2009
                        unsigned short DBRE09:1;
2010
                        unsigned short DBRE08:1;
2011
                } BIT;
2012
        } DFLRE1;
2013
        char           wk4[12];
2014
        union {
2015
                unsigned short WORD;
2016
                struct {
2017
                        unsigned short KEY:8;
2018
                        unsigned short DBWE07:1;
2019
                        unsigned short DBWE06:1;
2020
                        unsigned short DBWE05:1;
2021
                        unsigned short DBWE04:1;
2022
                        unsigned short DBWE03:1;
2023
                        unsigned short DBWE02:1;
2024
                        unsigned short DBWE01:1;
2025
                        unsigned short DBWE00:1;
2026
                } BIT;
2027
        } DFLWE0;
2028
        union {
2029
                unsigned short WORD;
2030
                struct {
2031
                        unsigned short KEY:8;
2032
                        unsigned short DBWE15:1;
2033
                        unsigned short DBWE14:1;
2034
                        unsigned short DBWE13:1;
2035
                        unsigned short DBWE12:1;
2036
                        unsigned short DBWE11:1;
2037
                        unsigned short DBWE10:1;
2038
                        unsigned short DBWE09:1;
2039
                        unsigned short DBWE08:1;
2040
                } BIT;
2041
        } DFLWE1;
2042
        union {
2043
                unsigned short WORD;
2044
                struct {
2045
                        unsigned short KEY:8;
2046
                        unsigned short :7;
2047
                        unsigned short FCRME:1;
2048
                } BIT;
2049
        } FCURAME;
2050
        char           wk5[15194];
2051
        union {
2052
                unsigned char BYTE;
2053
                struct {
2054
                        unsigned char FRDY:1;
2055
                        unsigned char ILGLERR:1;
2056
                        unsigned char ERSERR:1;
2057
                        unsigned char PRGERR:1;
2058
                        unsigned char SUSRDY:1;
2059
                        unsigned char :1;
2060
                        unsigned char ERSSPD:1;
2061
                        unsigned char PRGSPD:1;
2062
                } BIT;
2063
        } FSTATR0;
2064
        union {
2065
                unsigned char BYTE;
2066
                struct {
2067
                        unsigned char FCUERR:1;
2068
                        unsigned char :2;
2069
                        unsigned char FLOCKST:1;
2070
                } BIT;
2071
        } FSTATR1;
2072
        union {
2073
                unsigned short WORD;
2074
                struct {
2075
                        unsigned short FEKEY:8;
2076
                        unsigned short FENTRYD:1;
2077
                        unsigned short :6;
2078
                        unsigned short FENTRY0:1;
2079
                } BIT;
2080
        } FENTRYR;
2081
        union {
2082
                unsigned short WORD;
2083
                struct {
2084
                        unsigned short FPKEY:8;
2085
                        unsigned short :7;
2086
                        unsigned short FPROTCN:1;
2087
                } BIT;
2088
        } FPROTR;
2089
        union {
2090
                unsigned short WORD;
2091
                struct {
2092
                        unsigned short FPKEY:8;
2093
                        unsigned short :7;
2094
                        unsigned short FRESET:1;
2095
                } BIT;
2096
        } FRESETR;
2097
        char           wk6[2];
2098
        union {
2099
                unsigned short WORD;
2100
                struct {
2101
                        unsigned short CMDR:8;
2102
                        unsigned short PCMDR:8;
2103
                } BIT;
2104
        } FCMDR;
2105
        char           wk7[12];
2106
        union {
2107
                unsigned short WORD;
2108
                struct {
2109
                        unsigned short :15;
2110
                        unsigned short ESUSPMD:1;
2111
                } BIT;
2112
        } FCPSR;
2113
        union {
2114
                unsigned short WORD;
2115
                struct {
2116
                        unsigned short :5;
2117
                        unsigned short BCADR:8;
2118
                        unsigned short :2;
2119
                        unsigned short BCSIZE:1;
2120
                } BIT;
2121
        } DFLBCCNT;
2122
        union {
2123
                unsigned short WORD;
2124
                struct {
2125
                        unsigned short :8;
2126
                        unsigned short PEERRST:8;
2127
                } BIT;
2128
        } FPESTAT;
2129
        union {
2130
                unsigned short WORD;
2131
                struct {
2132
                        unsigned short :15;
2133
                        unsigned short BCST:1;
2134
                } BIT;
2135
        } DFLBCSTAT;
2136
        char           wk8[24];
2137
        union {
2138
                unsigned short WORD;
2139
                struct {
2140
                        unsigned short :8;
2141
                        unsigned short PCKA:8;
2142
                } BIT;
2143
        } PCKAR;
2144
};
2145
 
2146
struct st_icu {
2147
        union {
2148
                unsigned char BYTE;
2149
                struct {
2150
                        unsigned char :7;
2151
                        unsigned char IR:1;
2152
                } BIT;
2153
        } IR[255];
2154
        char           wk0[1];
2155
        union {
2156
                unsigned char BYTE;
2157
                struct {
2158
                        unsigned char :7;
2159
                        unsigned char DTCE:1;
2160
                } BIT;
2161
        } DTCER[255];
2162
        char           wk1[1];
2163
        union {
2164
                unsigned char BYTE;
2165
                struct {
2166
                        unsigned char IEN7:1;
2167
                        unsigned char IEN6:1;
2168
                        unsigned char IEN5:1;
2169
                        unsigned char IEN4:1;
2170
                        unsigned char IEN3:1;
2171
                        unsigned char IEN2:1;
2172
                        unsigned char IEN1:1;
2173
                        unsigned char IEN0:1;
2174
                } BIT;
2175
        } IER[32];
2176
        char           wk2[192];
2177
        union {
2178
                unsigned char BYTE;
2179
                struct {
2180
                        unsigned char :7;
2181
                        unsigned char SWINT:1;
2182
                } BIT;
2183
        } SWINTR;
2184
        char           wk3[15];
2185
        union {
2186
                unsigned short WORD;
2187
                struct {
2188
                        unsigned short FIEN:1;
2189
                        unsigned short :7;
2190
                        unsigned short FVCT:8;
2191
                } BIT;
2192
        } FIR;
2193
        char           wk4[14];
2194
        union {
2195
                unsigned char BYTE;
2196
                struct {
2197
                        unsigned char :4;
2198
                        unsigned char IPR:4;
2199
                } BIT;
2200
        } IPR[144];
2201
        char           wk5[112];
2202
        unsigned char  DMRSR0;
2203
        char           wk6[3];
2204
        unsigned char  DMRSR1;
2205
        char           wk7[3];
2206
        unsigned char  DMRSR2;
2207
        char           wk8[3];
2208
        unsigned char  DMRSR3;
2209
        char           wk9[243];
2210
        union {
2211
                unsigned char BYTE;
2212
                struct {
2213
                        unsigned char :4;
2214
                        unsigned char IRQMD:2;
2215
                } BIT;
2216
        } IRQCR[16];
2217
        char           wk10[112];
2218
        union {
2219
                unsigned char BYTE;
2220
                struct {
2221
                        unsigned char :5;
2222
                        unsigned char OSTST:1;
2223
                        unsigned char LVDST:1;
2224
                        unsigned char NMIST:1;
2225
                } BIT;
2226
        } NMISR;
2227
        union {
2228
                unsigned char BYTE;
2229
                struct {
2230
                        unsigned char :5;
2231
                        unsigned char OSTEN:1;
2232
                        unsigned char LVDEN:1;
2233
                        unsigned char NMIEN:1;
2234
                } BIT;
2235
        } NMIER;
2236
        union {
2237
                unsigned char BYTE;
2238
                struct {
2239
                        unsigned char :5;
2240
                        unsigned char OSTCLR:1;
2241
                        unsigned char :1;
2242
                        unsigned char NMICLR:1;
2243
                } BIT;
2244
        } NMICLR;
2245
        union {
2246
                unsigned char BYTE;
2247
                struct {
2248
                        unsigned char :4;
2249
                        unsigned char NMIMD:1;
2250
                } BIT;
2251
        } NMICR;
2252
};
2253
 
2254
struct st_ioport {
2255
        union {
2256
                unsigned char BYTE;
2257
                struct {
2258
                        unsigned char CS7E:1;
2259
                        unsigned char CS6E:1;
2260
                        unsigned char CS5E:1;
2261
                        unsigned char CS4E:1;
2262
                        unsigned char CS3E:1;
2263
                        unsigned char CS2E:1;
2264
                        unsigned char CS1E:1;
2265
                        unsigned char CS0E:1;
2266
                } BIT;
2267
        } PF0CSE;
2268
        union {
2269
                unsigned char BYTE;
2270
                struct {
2271
                        unsigned char CS7S:2;
2272
                        unsigned char CS6S:2;
2273
                        unsigned char CS5S:2;
2274
                        unsigned char CS4S:2;
2275
                } BIT;
2276
        } PF1CSS;
2277
        union {
2278
                unsigned char BYTE;
2279
                struct {
2280
                        unsigned char CS3S:2;
2281
                        unsigned char CS2S:2;
2282
                        unsigned char CS1S:2;
2283
                        unsigned char :1;
2284
                        unsigned char CS0S:1;
2285
                } BIT;
2286
        } PF2CSS;
2287
        union {
2288
                unsigned char BYTE;
2289
                struct {
2290
                        unsigned char A23E:1;
2291
                        unsigned char A22E:1;
2292
                        unsigned char A21E:1;
2293
                        unsigned char A20E:1;
2294
                        unsigned char A19E:1;
2295
                        unsigned char A18E:1;
2296
                        unsigned char A17E:1;
2297
                        unsigned char A16E:1;
2298
                } BIT;
2299
        } PF3BUS;
2300
        union {
2301
                unsigned char BYTE;
2302
                struct {
2303
                        unsigned char A15E:1;
2304
                        unsigned char A14E:1;
2305
                        unsigned char A13E:1;
2306
                        unsigned char A12E:1;
2307
                        unsigned char A11E:1;
2308
                        unsigned char A10E:1;
2309
                        unsigned char ADRLE:2;
2310
                } BIT;
2311
        } PF4BUS;
2312
        union {
2313
                unsigned char BYTE;
2314
                struct {
2315
                        unsigned char WR32BC32E:1;
2316
                        unsigned char WR1BC1E:1;
2317
                        unsigned char DH32E:1;
2318
                        unsigned char DHE:1;
2319
                        unsigned char :2;
2320
                        unsigned char ADRHMS:1;
2321
                } BIT;
2322
        } PF5BUS;
2323
        union {
2324
                unsigned char BYTE;
2325
                struct {
2326
                        unsigned char SDCLKE:1;
2327
                        unsigned char DQM1E:1;
2328
                        unsigned char :1;
2329
                        unsigned char MDSDE:1;
2330
                        unsigned char :2;
2331
                        unsigned char WAITS:2;
2332
                } BIT;
2333
        } PF6BUS;
2334
        union {
2335
                unsigned char BYTE;
2336
                struct {
2337
                        unsigned char EDMA1S:2;
2338
                        unsigned char EDMA0S:2;
2339
                } BIT;
2340
        } PF7DMA;
2341
        union {
2342
                unsigned char BYTE;
2343
                struct {
2344
                        unsigned char ITS15:1;
2345
                        unsigned char :1;
2346
                        unsigned char ITS13:1;
2347
                        unsigned char :1;
2348
                        unsigned char ITS11:1;
2349
                        unsigned char ITS10:1;
2350
                        unsigned char ITS9:1;
2351
                        unsigned char ITS8:1;
2352
                } BIT;
2353
        } PF8IRQ;
2354
        union {
2355
                unsigned char BYTE;
2356
                struct {
2357
                        unsigned char ITS7:1;
2358
                        unsigned char ITS6:1;
2359
                        unsigned char ITS5:1;
2360
                        unsigned char ITS4:1;
2361
                        unsigned char ITS3:1;
2362
                        unsigned char ITS2:1;
2363
                        unsigned char ITS1:1;
2364
                        unsigned char ITS0:1;
2365
                } BIT;
2366
        } PF9IRQ;
2367
        union {
2368
                unsigned char BYTE;
2369
                struct {
2370
                        unsigned char :7;
2371
                        unsigned char ADTRG0S:1;
2372
                } BIT;
2373
        } PFAADC;
2374
        union {
2375
                unsigned char BYTE;
2376
                struct {
2377
                        unsigned char :4;
2378
                        unsigned char TMR3S:1;
2379
                        unsigned char TMR2S:1;
2380
                        unsigned char TMR1S:1;
2381
                        unsigned char TMR0S:1;
2382
                } BIT;
2383
        } PFBTMR;
2384
        union {
2385
                unsigned char BYTE;
2386
                struct {
2387
                        unsigned char TCLKS:1;
2388
                        unsigned char MTUS6:1;
2389
                        unsigned char MTUS5:1;
2390
                        unsigned char MTUS4:1;
2391
                        unsigned char MTUS3:1;
2392
                        unsigned char MTUS2:1;
2393
                        unsigned char MTUS1:1;
2394
                        unsigned char MTUS0:1;
2395
                } BIT;
2396
        } PFCMTU;
2397
        union {
2398
                unsigned char BYTE;
2399
                struct {
2400
                        unsigned char TCLKS:1;
2401
                        unsigned char MTUS6:1;
2402
                } BIT;
2403
        } PFDMTU;
2404
        union {
2405
                unsigned char BYTE;
2406
                struct {
2407
                        unsigned char EE:1;
2408
                        unsigned char :2;
2409
                        unsigned char PHYMODE:1;
2410
                        unsigned char ENETE3:1;
2411
                        unsigned char ENETE2:1;
2412
                        unsigned char ENETE1:1;
2413
                        unsigned char ENETE0:1;
2414
                } BIT;
2415
        } PFENET;
2416
        union {
2417
                unsigned char BYTE;
2418
                struct {
2419
                        unsigned char :1;
2420
                        unsigned char SCI6S:1;
2421
                        unsigned char :2;
2422
                        unsigned char SCI3S:1;
2423
                        unsigned char SCI2S:1;
2424
                        unsigned char SCI1S:1;
2425
                } BIT;
2426
        } PFFSCI;
2427
        union {
2428
                unsigned char BYTE;
2429
                struct {
2430
                        unsigned char SSL3E:1;
2431
                        unsigned char SSL2E:1;
2432
                        unsigned char SSL1E:1;
2433
                        unsigned char SSL0E:1;
2434
                        unsigned char MISOE:1;
2435
                        unsigned char MOSIE:1;
2436
                        unsigned char RSPCKE:1;
2437
                        unsigned char RSPIS:1;
2438
                } BIT;
2439
        } PFGSPI;
2440
        union {
2441
                unsigned char BYTE;
2442
                struct {
2443
                        unsigned char SSL3E:1;
2444
                        unsigned char SSL2E:1;
2445
                        unsigned char SSL1E:1;
2446
                        unsigned char SSL0E:1;
2447
                        unsigned char MISOE:1;
2448
                        unsigned char MOSIE:1;
2449
                        unsigned char RSPCKE:1;
2450
                        unsigned char RSPIS:1;
2451
                } BIT;
2452
        } PFHSPI;
2453
        char           wk0[1];
2454
        union {
2455
                unsigned char BYTE;
2456
                struct {
2457
                        unsigned char :7;
2458
                        unsigned char CAN0E:1;
2459
                } BIT;
2460
        } PFJCAN;
2461
        union {
2462
                unsigned char BYTE;
2463
                struct {
2464
                        unsigned char :3;
2465
                        unsigned char USBE:1;
2466
                        unsigned char PDHZS:1;
2467
                        unsigned char PUPHZS:1;
2468
                        unsigned char USBMD:2;
2469
                } BIT;
2470
        } PFKUSB;
2471
        union {
2472
                unsigned char BYTE;
2473
                struct {
2474
                        unsigned char :3;
2475
                        unsigned char USBE:1;
2476
                        unsigned char PDHZS:1;
2477
                        unsigned char PUPHZS:1;
2478
                        unsigned char USBMD:2;
2479
                } BIT;
2480
        } PFLUSB;
2481
        union {
2482
                unsigned char BYTE;
2483
                struct {
2484
                        unsigned char POE7E:1;
2485
                        unsigned char POE6E:1;
2486
                        unsigned char POE5E:1;
2487
                        unsigned char POE4E:1;
2488
                        unsigned char POE3E:1;
2489
                        unsigned char POE2E:1;
2490
                        unsigned char POE1E:1;
2491
                        unsigned char POE0E:1;
2492
                } BIT;
2493
        } PFMPOE;
2494
        union {
2495
                unsigned char BYTE;
2496
                struct {
2497
                        unsigned char :6;
2498
                        unsigned char POE9E:1;
2499
                        unsigned char POE8E:1;
2500
                } BIT;
2501
        } PFNPOE;
2502
};
2503
 
2504
struct st_iwdt {
2505
        unsigned char  IWDTRR;
2506
        char           wk0[1];
2507
        union {
2508
                unsigned short WORD;
2509
                struct {
2510
                        unsigned short :8;
2511
                        unsigned short CKS:4;
2512
                        unsigned short :2;
2513
                        unsigned short TOPS:2;
2514
                } BIT;
2515
        } IWDTCR;
2516
        union {
2517
                unsigned short WORD;
2518
                struct {
2519
                        unsigned short :1;
2520
                        unsigned short UNDFF:1;
2521
                        unsigned short CNTVAL:14;
2522
                } BIT;
2523
        } IWDTSR;
2524
};
2525
 
2526
struct st_mtu0 {
2527
        union {
2528
                unsigned char BYTE;
2529
                struct {
2530
                        unsigned char CCLR:3;
2531
                        unsigned char CKEG:2;
2532
                        unsigned char TPSC:3;
2533
                } BIT;
2534
        } TCR;
2535
        union {
2536
                unsigned char BYTE;
2537
                struct {
2538
                        unsigned char :1;
2539
                        unsigned char BFE:1;
2540
                        unsigned char BFB:1;
2541
                        unsigned char BFA:1;
2542
                        unsigned char MD:4;
2543
                } BIT;
2544
        } TMDR;
2545
        union {
2546
                unsigned char BYTE;
2547
                struct {
2548
                        unsigned char IOB:4;
2549
                        unsigned char IOA:4;
2550
                } BIT;
2551
        } TIORH;
2552
        union {
2553
                unsigned char BYTE;
2554
                struct {
2555
                        unsigned char IOD:4;
2556
                        unsigned char IOC:4;
2557
                } BIT;
2558
        } TIORL;
2559
        union {
2560
                unsigned char BYTE;
2561
                struct {
2562
                        unsigned char TTGE:1;
2563
                        unsigned char :2;
2564
                        unsigned char TCIEV:1;
2565
                        unsigned char TGIED:1;
2566
                        unsigned char TGIEC:1;
2567
                        unsigned char TGIEB:1;
2568
                        unsigned char TGIEA:1;
2569
                } BIT;
2570
        } TIER;
2571
        unsigned char  TSR;
2572
        unsigned short TCNT;
2573
        unsigned short TGRA;
2574
        unsigned short TGRB;
2575
        unsigned short TGRC;
2576
        unsigned short TGRD;
2577
        char           wk0[16];
2578
        unsigned short TGRE;
2579
        unsigned short TGRF;
2580
        union {
2581
                unsigned char BYTE;
2582
                struct {
2583
                        unsigned char :6;
2584
                        unsigned char TGIEF:1;
2585
                        unsigned char TGIEE:1;
2586
                } BIT;
2587
        } TIER2;
2588
        char           wk1[1];
2589
        union {
2590
                unsigned char BYTE;
2591
                struct {
2592
                        unsigned char :5;
2593
                        unsigned char TTSE:1;
2594
                        unsigned char TTSB:1;
2595
                        unsigned char TTSA:1;
2596
                } BIT;
2597
        } TBTM;
2598
};
2599
 
2600
struct st_mtu1 {
2601
        union {
2602
                unsigned char BYTE;
2603
                struct {
2604
                        unsigned char :1;
2605
                        unsigned char CCLR:2;
2606
                        unsigned char CKEG:2;
2607
                        unsigned char TPSC:3;
2608
                } BIT;
2609
        } TCR;
2610
        union {
2611
                unsigned char BYTE;
2612
                struct {
2613
                        unsigned char :4;
2614
                        unsigned char MD:4;
2615
                } BIT;
2616
        } TMDR;
2617
        union {
2618
                unsigned char BYTE;
2619
                struct {
2620
                        unsigned char IOB:4;
2621
                        unsigned char IOA:4;
2622
                } BIT;
2623
        } TIOR;
2624
        char           wk0[1];
2625
        union {
2626
                unsigned char BYTE;
2627
                struct {
2628
                        unsigned char TTGE:1;
2629
                        unsigned char :1;
2630
                        unsigned char TCIEU:1;
2631
                        unsigned char TCIEV:1;
2632
                        unsigned char :2;
2633
                        unsigned char TGIEB:1;
2634
                        unsigned char TGIEA:1;
2635
                } BIT;
2636
        } TIER;
2637
        union {
2638
                unsigned char BYTE;
2639
                struct {
2640
                        unsigned char TCFD:1;
2641
                } BIT;
2642
        } TSR;
2643
        unsigned short TCNT;
2644
        unsigned short TGRA;
2645
        unsigned short TGRB;
2646
        char           wk1[4];
2647
        union {
2648
                unsigned char BYTE;
2649
                struct {
2650
                        unsigned char :4;
2651
                        unsigned char I2BE:1;
2652
                        unsigned char I2AE:1;
2653
                        unsigned char I1BE:1;
2654
                        unsigned char I1AE:1;
2655
                } BIT;
2656
        } TICCR;
2657
};
2658
 
2659
struct st_mtu2 {
2660
        union {
2661
                unsigned char BYTE;
2662
                struct {
2663
                        unsigned char :1;
2664
                        unsigned char CCLR:2;
2665
                        unsigned char CKEG:2;
2666
                        unsigned char TPSC:3;
2667
                } BIT;
2668
        } TCR;
2669
        union {
2670
                unsigned char BYTE;
2671
                struct {
2672
                        unsigned char :4;
2673
                        unsigned char MD:4;
2674
                } BIT;
2675
        } TMDR;
2676
        union {
2677
                unsigned char BYTE;
2678
                struct {
2679
                        unsigned char IOB:4;
2680
                        unsigned char IOA:4;
2681
                } BIT;
2682
        } TIOR;
2683
        char           wk0[1];
2684
        union {
2685
                unsigned char BYTE;
2686
                struct {
2687
                        unsigned char TTGE:1;
2688
                        unsigned char :1;
2689
                        unsigned char TCIEU:1;
2690
                        unsigned char TCIEV:1;
2691
                        unsigned char :2;
2692
                        unsigned char TGIEB:1;
2693
                        unsigned char TGIEA:1;
2694
                } BIT;
2695
        } TIER;
2696
        union {
2697
                unsigned char BYTE;
2698
                struct {
2699
                        unsigned char TCFD:1;
2700
                } BIT;
2701
        } TSR;
2702
        unsigned short TCNT;
2703
        unsigned short TGRA;
2704
        unsigned short TGRB;
2705
};
2706
 
2707
struct st_mtu3 {
2708
        union {
2709
                unsigned char BYTE;
2710
                struct {
2711
                        unsigned char CCLR:3;
2712
                        unsigned char CKEG:2;
2713
                        unsigned char TPSC:3;
2714
                } BIT;
2715
        } TCR;
2716
        char           wk0[1];
2717
        union {
2718
                unsigned char BYTE;
2719
                struct {
2720
                        unsigned char :2;
2721
                        unsigned char BFB:1;
2722
                        unsigned char BFA:1;
2723
                        unsigned char MD:4;
2724
                } BIT;
2725
        } TMDR;
2726
        char           wk1[1];
2727
        union {
2728
                unsigned char BYTE;
2729
                struct {
2730
                        unsigned char IOB:4;
2731
                        unsigned char IOA:4;
2732
                } BIT;
2733
        } TIORH;
2734
        union {
2735
                unsigned char BYTE;
2736
                struct {
2737
                        unsigned char IOD:4;
2738
                        unsigned char IOC:4;
2739
                } BIT;
2740
        } TIORL;
2741
        char           wk2[2];
2742
        union {
2743
                unsigned char BYTE;
2744
                struct {
2745
                        unsigned char TTGE:1;
2746
                        unsigned char :2;
2747
                        unsigned char TCIEV:1;
2748
                        unsigned char TGIED:1;
2749
                        unsigned char TGIEC:1;
2750
                        unsigned char TGIEB:1;
2751
                        unsigned char TGIEA:1;
2752
                } BIT;
2753
        } TIER;
2754
        char           wk3[7];
2755
        unsigned short TCNT;
2756
        char           wk4[6];
2757
        unsigned short TGRA;
2758
        unsigned short TGRB;
2759
        char           wk5[8];
2760
        unsigned short TGRC;
2761
        unsigned short TGRD;
2762
        char           wk6[4];
2763
        union {
2764
                unsigned char BYTE;
2765
                struct {
2766
                        unsigned char TCFD:1;
2767
                } BIT;
2768
        } TSR;
2769
        char           wk7[11];
2770
        union {
2771
                unsigned char BYTE;
2772
                struct {
2773
                        unsigned char :6;
2774
                        unsigned char TTSB:1;
2775
                        unsigned char TTSA:1;
2776
                } BIT;
2777
        } TBTM;
2778
};
2779
 
2780
struct st_mtu4 {
2781
        char           wk0[1];
2782
        union {
2783
                unsigned char BYTE;
2784
                struct {
2785
                        unsigned char CCLR:3;
2786
                        unsigned char CKEG:2;
2787
                        unsigned char TPSC:3;
2788
                } BIT;
2789
        } TCR;
2790
        char           wk1[1];
2791
        union {
2792
                unsigned char BYTE;
2793
                struct {
2794
                        unsigned char :2;
2795
                        unsigned char BFB:1;
2796
                        unsigned char BFA:1;
2797
                        unsigned char MD:4;
2798
                } BIT;
2799
        } TMDR;
2800
        char           wk2[2];
2801
        union {
2802
                unsigned char BYTE;
2803
                struct {
2804
                        unsigned char IOB:4;
2805
                        unsigned char IOA:4;
2806
                } BIT;
2807
        } TIORH;
2808
        union {
2809
                unsigned char BYTE;
2810
                struct {
2811
                        unsigned char IOD:4;
2812
                        unsigned char IOC:4;
2813
                } BIT;
2814
        } TIORL;
2815
        char           wk3[1];
2816
        union {
2817
                unsigned char BYTE;
2818
                struct {
2819
                        unsigned char TTGE:1;
2820
                        unsigned char TTGE2:1;
2821
                        unsigned char :1;
2822
                        unsigned char TCIEV:1;
2823
                        unsigned char TGIED:1;
2824
                        unsigned char TGIEC:1;
2825
                        unsigned char TGIEB:1;
2826
                        unsigned char TGIEA:1;
2827
                } BIT;
2828
        } TIER;
2829
        char           wk4[8];
2830
        unsigned short TCNT;
2831
        char           wk5[8];
2832
        unsigned short TGRA;
2833
        unsigned short TGRB;
2834
        char           wk6[8];
2835
        unsigned short TGRC;
2836
        unsigned short TGRD;
2837
        char           wk7[1];
2838
        union {
2839
                unsigned char BYTE;
2840
                struct {
2841
                        unsigned char TCFD:1;
2842
                } BIT;
2843
        } TSR;
2844
        char           wk8[11];
2845
        union {
2846
                unsigned char BYTE;
2847
                struct {
2848
                        unsigned char :6;
2849
                        unsigned char TTSB:1;
2850
                        unsigned char TTSA:1;
2851
                } BIT;
2852
        } TBTM;
2853
        char           wk9[6];
2854
        union {
2855
                unsigned short WORD;
2856
                struct {
2857
                        unsigned short BF:2;
2858
                        unsigned short :6;
2859
                        unsigned short UT4AE:1;
2860
                        unsigned short DT4AE:1;
2861
                        unsigned short UT4BE:1;
2862
                        unsigned short DT4BE:1;
2863
                        unsigned short ITA3AE:1;
2864
                        unsigned short ITA4VE:1;
2865
                        unsigned short ITB3AE:1;
2866
                        unsigned short ITB4VE:1;
2867
                } BIT;
2868
        } TADCR;
2869
        char           wk10[2];
2870
        unsigned short TADCORA;
2871
        unsigned short TADCORB;
2872
        unsigned short TADCOBRA;
2873
        unsigned short TADCOBRB;
2874
};
2875
 
2876
struct st_mtu5 {
2877
        unsigned short TCNTU;
2878
        unsigned short TGRU;
2879
        union {
2880
                unsigned char BYTE;
2881
                struct {
2882
                        unsigned char :6;
2883
                        unsigned char TPSC:2;
2884
                } BIT;
2885
        } TCRU;
2886
        char           wk0[1];
2887
        union {
2888
                unsigned char BYTE;
2889
                struct {
2890
                        unsigned char :3;
2891
                        unsigned char IOC:5;
2892
                } BIT;
2893
        } TIORU;
2894
        char           wk1[9];
2895
        unsigned short TCNTV;
2896
        unsigned short TGRV;
2897
        union {
2898
                unsigned char BYTE;
2899
                struct {
2900
                        unsigned char :6;
2901
                        unsigned char TPSC:2;
2902
                } BIT;
2903
        } TCRV;
2904
        char           wk2[1];
2905
        union {
2906
                unsigned char BYTE;
2907
                struct {
2908
                        unsigned char :3;
2909
                        unsigned char IOC:5;
2910
                } BIT;
2911
        } TIORV;
2912
        char           wk3[9];
2913
        unsigned short TCNTW;
2914
        unsigned short TGRW;
2915
        union {
2916
                unsigned char BYTE;
2917
                struct {
2918
                        unsigned char :6;
2919
                        unsigned char TPSC:2;
2920
                } BIT;
2921
        } TCRW;
2922
        char           wk4[1];
2923
        union {
2924
                unsigned char BYTE;
2925
                struct {
2926
                        unsigned char :3;
2927
                        unsigned char IOC:5;
2928
                } BIT;
2929
        } TIORW;
2930
        char           wk5[11];
2931
        union {
2932
                unsigned char BYTE;
2933
                struct {
2934
                        unsigned char :5;
2935
                        unsigned char TGIE5U:1;
2936
                        unsigned char TGIE5V:1;
2937
                        unsigned char TGIE5W:1;
2938
                } BIT;
2939
        } TIER;
2940
        char           wk6[1];
2941
        union {
2942
                unsigned char BYTE;
2943
                struct {
2944
                        unsigned char :5;
2945
                        unsigned char CSTU5:1;
2946
                        unsigned char CSTV5:1;
2947
                        unsigned char CSTW5:1;
2948
                } BIT;
2949
        } TSTR;
2950
        char           wk7[1];
2951
        union {
2952
                unsigned char BYTE;
2953
                struct {
2954
                        unsigned char :5;
2955
                        unsigned char CMPCLR5U:1;
2956
                        unsigned char CMPCLR5V:1;
2957
                        unsigned char CMPCLR5W:1;
2958
                } BIT;
2959
        } TCNTCMPCLR;
2960
};
2961
 
2962
struct st_mtua {
2963
        union {
2964
                unsigned char BYTE;
2965
                struct {
2966
                        unsigned char :2;
2967
                        unsigned char OE4D:1;
2968
                        unsigned char OE4C:1;
2969
                        unsigned char OE3D:1;
2970
                        unsigned char OE4B:1;
2971
                        unsigned char OE4A:1;
2972
                        unsigned char OE3B:1;
2973
                } BIT;
2974
        } TOER;
2975
        char           wk0[2];
2976
        union {
2977
                unsigned char BYTE;
2978
                struct {
2979
                        unsigned char :1;
2980
                        unsigned char BDC:1;
2981
                        unsigned char N:1;
2982
                        unsigned char P:1;
2983
                        unsigned char FB:1;
2984
                        unsigned char WF:1;
2985
                        unsigned char VF:1;
2986
                        unsigned char UF:1;
2987
                } BIT;
2988
        } TGCR;
2989
        union {
2990
                unsigned char BYTE;
2991
                struct {
2992
                        unsigned char :1;
2993
                        unsigned char PSYE:1;
2994
                        unsigned char :2;
2995
                        unsigned char TOCL:1;
2996
                        unsigned char TOCS:1;
2997
                        unsigned char OLSN:1;
2998
                        unsigned char OLSP:1;
2999
                } BIT;
3000
        } TOCR1;
3001
        union {
3002
                unsigned char BYTE;
3003
                struct {
3004
                        unsigned char BF:2;
3005
                        unsigned char OLS3N:1;
3006
                        unsigned char OLS3P:1;
3007
                        unsigned char OLS2N:1;
3008
                        unsigned char OLS2P:1;
3009
                        unsigned char OLS1N:1;
3010
                        unsigned char OLS1P:1;
3011
                } BIT;
3012
        } TOCR2;
3013
        char           wk1[4];
3014
        unsigned short TCDR;
3015
        unsigned short TDDR;
3016
        char           wk2[8];
3017
        unsigned short TCNTS;
3018
        unsigned short TCBR;
3019
        char           wk3[12];
3020
        union {
3021
                unsigned char BYTE;
3022
                struct {
3023
                        unsigned char T3AEN:1;
3024
                        unsigned char T3ACOR:3;
3025
                        unsigned char T4VEN:1;
3026
                        unsigned char T4VCOR:3;
3027
                } BIT;
3028
        } TITCR;
3029
        union {
3030
                unsigned char BYTE;
3031
                struct {
3032
                        unsigned char :1;
3033
                        unsigned char T3ACNT:3;
3034
                        unsigned char :1;
3035
                        unsigned char T4VCNT:3;
3036
                } BIT;
3037
        } TITCNT;
3038
        union {
3039
                unsigned char BYTE;
3040
                struct {
3041
                        unsigned char :6;
3042
                        unsigned char BTE:2;
3043
                } BIT;
3044
        } TBTER;
3045
        char           wk4[1];
3046
        union {
3047
                unsigned char BYTE;
3048
                struct {
3049
                        unsigned char :7;
3050
                        unsigned char TDER:1;
3051
                } BIT;
3052
        } TDER;
3053
        char           wk5[1];
3054
        union {
3055
                unsigned char BYTE;
3056
                struct {
3057
                        unsigned char :2;
3058
                        unsigned char OLS3N:1;
3059
                        unsigned char OLS3P:1;
3060
                        unsigned char OLS2N:1;
3061
                        unsigned char OLS2P:1;
3062
                        unsigned char OLS1N:1;
3063
                        unsigned char OLS1P:1;
3064
                } BIT;
3065
        } TOLBR;
3066
        char           wk6[41];
3067
        union {
3068
                unsigned char BYTE;
3069
                struct {
3070
                        unsigned char CCE:1;
3071
                        unsigned char :6;
3072
                        unsigned char WRE:1;
3073
                } BIT;
3074
        } TWCR;
3075
        char           wk7[31];
3076
        union {
3077
                unsigned char BYTE;
3078
                struct {
3079
                        unsigned char CST4:1;
3080
                        unsigned char CST3:1;
3081
                        unsigned char :3;
3082
                        unsigned char CST2:1;
3083
                        unsigned char CST1:1;
3084
                        unsigned char CST0:1;
3085
                } BIT;
3086
        } TSTR;
3087
        union {
3088
                unsigned char BYTE;
3089
                struct {
3090
                        unsigned char SYNC4:1;
3091
                        unsigned char SYNC3:1;
3092
                        unsigned char :3;
3093
                        unsigned char SYNC2:1;
3094
                        unsigned char SYNC1:1;
3095
                        unsigned char SYNC0:1;
3096
                } BIT;
3097
        } TSYR;
3098
        char           wk8[2];
3099
        union {
3100
                unsigned char BYTE;
3101
                struct {
3102
                        unsigned char :7;
3103
                        unsigned char RWE:1;
3104
                } BIT;
3105
        } TRWER;
3106
};
3107
 
3108
struct st_poe {
3109
        union {
3110
                unsigned short WORD;
3111
                struct {
3112
                        unsigned short POE3F:1;
3113
                        unsigned short POE2F:1;
3114
                        unsigned short POE1F:1;
3115
                        unsigned short POE0F:1;
3116
                        unsigned short :3;
3117
                        unsigned short PIE1:1;
3118
                        unsigned short POE3M:2;
3119
                        unsigned short POE2M:2;
3120
                        unsigned short POE1M:2;
3121
                        unsigned short POE0M:2;
3122
                } BIT;
3123
        } ICSR1;
3124
        union {
3125
                unsigned short WORD;
3126
                struct {
3127
                        unsigned short OSF1:1;
3128
                        unsigned short :5;
3129
                        unsigned short OCE1:1;
3130
                        unsigned short OIE1:1;
3131
                } BIT;
3132
        } OCSR1;
3133
        union {
3134
                unsigned short WORD;
3135
                struct {
3136
                        unsigned short POE7F:1;
3137
                        unsigned short POE6F:1;
3138
                        unsigned short POE5F:1;
3139
                        unsigned short POE4F:1;
3140
                        unsigned short :3;
3141
                        unsigned short PIE2:1;
3142
                        unsigned short POE7M:2;
3143
                        unsigned short POE6M:2;
3144
                        unsigned short POE5M:2;
3145
                        unsigned short POE4M:2;
3146
                } BIT;
3147
        } ICSR2;
3148
        union {
3149
                unsigned short WORD;
3150
                struct {
3151
                        unsigned short OSF2:1;
3152
                        unsigned short :5;
3153
                        unsigned short OCE2:1;
3154
                        unsigned short OIE2:1;
3155
                } BIT;
3156
        } OCSR2;
3157
        union {
3158
                unsigned short WORD;
3159
                struct {
3160
                        unsigned short :3;
3161
                        unsigned short POE8F:1;
3162
                        unsigned short :2;
3163
                        unsigned short POE8E:1;
3164
                        unsigned short PIE3:1;
3165
                        unsigned short :6;
3166
                        unsigned short POE8M:2;
3167
                } BIT;
3168
        } ICSR3;
3169
        union {
3170
                unsigned char BYTE;
3171
                struct {
3172
                        unsigned char :4;
3173
                        unsigned char CH6HIZ:1;
3174
                        unsigned char CH910HIZ:1;
3175
                        unsigned char CH0HIZ:1;
3176
                        unsigned char CH34HIZ:1;
3177
                } BIT;
3178
        } SPOER;
3179
        union {
3180
                unsigned char BYTE;
3181
                struct {
3182
                        unsigned char PE7ZE:1;
3183
                        unsigned char PE6ZE:1;
3184
                        unsigned char PE5ZE:1;
3185
                        unsigned char PE4ZE:1;
3186
                        unsigned char PE3ZE:1;
3187
                        unsigned char PE2ZE:1;
3188
                        unsigned char PE1ZE:1;
3189
                        unsigned char PE0ZE:1;
3190
                } BIT;
3191
        } POECR1;
3192
        union {
3193
                unsigned short WORD;
3194
                struct {
3195
                        unsigned short :1;
3196
                        unsigned short P1CZEA:1;
3197
                        unsigned short P2CZEA:1;
3198
                        unsigned short P3CZEA:1;
3199
                        unsigned short :1;
3200
                        unsigned short P1CZEB:1;
3201
                        unsigned short P2CZEB:1;
3202
                        unsigned short P3CZEB:1;
3203
                        unsigned short :1;
3204
                        unsigned short P4CZE:1;
3205
                        unsigned short P5CZE:1;
3206
                        unsigned short P6CZE:1;
3207
                } BIT;
3208
        } POECR2;
3209
        union {
3210
                unsigned short WORD;
3211
                struct {
3212
                        unsigned short :3;
3213
                        unsigned short POE9F:1;
3214
                        unsigned short :2;
3215
                        unsigned short POE9E:1;
3216
                        unsigned short PIE4:1;
3217
                        unsigned short :6;
3218
                        unsigned short POE9M:2;
3219
                } BIT;
3220
        } ICSR4;
3221
};
3222
 
3223
struct st_port0 {
3224
        union {
3225
                unsigned char BYTE;
3226
                struct {
3227
                        unsigned char B7:1;
3228
                        unsigned char :1;
3229
                        unsigned char B5:1;
3230
                        unsigned char :1;
3231
                        unsigned char B3:1;
3232
                        unsigned char B2:1;
3233
                        unsigned char B1:1;
3234
                        unsigned char B0:1;
3235
                } BIT;
3236
        } DDR;
3237
        char           wk0[31];
3238
        union {
3239
                unsigned char BYTE;
3240
                struct {
3241
                        unsigned char B7:1;
3242
                        unsigned char :1;
3243
                        unsigned char B5:1;
3244
                        unsigned char :1;
3245
                        unsigned char B3:1;
3246
                        unsigned char B2:1;
3247
                        unsigned char B1:1;
3248
                        unsigned char B0:1;
3249
                } BIT;
3250
        } DR;
3251
        char           wk1[31];
3252
        union {
3253
                unsigned char BYTE;
3254
                struct {
3255
                        unsigned char B7:1;
3256
                        unsigned char :1;
3257
                        unsigned char B5:1;
3258
                        unsigned char :1;
3259
                        unsigned char B3:1;
3260
                        unsigned char B2:1;
3261
                        unsigned char B1:1;
3262
                        unsigned char B0:1;
3263
                } BIT;
3264
        } PORT;
3265
        char           wk2[31];
3266
        union {
3267
                unsigned char BYTE;
3268
                struct {
3269
                        unsigned char B7:1;
3270
                        unsigned char :1;
3271
                        unsigned char B5:1;
3272
                        unsigned char :1;
3273
                        unsigned char B3:1;
3274
                        unsigned char B2:1;
3275
                        unsigned char B1:1;
3276
                        unsigned char B0:1;
3277
                } BIT;
3278
        } ICR;
3279
        char           wk3[31];
3280
        union {
3281
                unsigned char BYTE;
3282
                struct {
3283
                        unsigned char B7:1;
3284
                        unsigned char :1;
3285
                        unsigned char B5:1;
3286
                        unsigned char :1;
3287
                        unsigned char B3:1;
3288
                        unsigned char B2:1;
3289
                        unsigned char B1:1;
3290
                        unsigned char B0:1;
3291
                } BIT;
3292
        } ODR;
3293
};
3294
 
3295
struct st_port1 {
3296
        union {
3297
                unsigned char BYTE;
3298
                struct {
3299
                        unsigned char B7:1;
3300
                        unsigned char B6:1;
3301
                        unsigned char B5:1;
3302
                        unsigned char B4:1;
3303
                        unsigned char B3:1;
3304
                        unsigned char B2:1;
3305
                        unsigned char B1:1;
3306
                        unsigned char B0:1;
3307
                } BIT;
3308
        } DDR;
3309
        char           wk0[31];
3310
        union {
3311
                unsigned char BYTE;
3312
                struct {
3313
                        unsigned char B7:1;
3314
                        unsigned char B6:1;
3315
                        unsigned char B5:1;
3316
                        unsigned char B4:1;
3317
                        unsigned char B3:1;
3318
                        unsigned char B2:1;
3319
                        unsigned char B1:1;
3320
                        unsigned char B0:1;
3321
                } BIT;
3322
        } DR;
3323
        char           wk1[31];
3324
        union {
3325
                unsigned char BYTE;
3326
                struct {
3327
                        unsigned char B7:1;
3328
                        unsigned char B6:1;
3329
                        unsigned char B5:1;
3330
                        unsigned char B4:1;
3331
                        unsigned char B3:1;
3332
                        unsigned char B2:1;
3333
                        unsigned char B1:1;
3334
                        unsigned char B0:1;
3335
                } BIT;
3336
        } PORT;
3337
        char           wk2[31];
3338
        union {
3339
                unsigned char BYTE;
3340
                struct {
3341
                        unsigned char B7:1;
3342
                        unsigned char B6:1;
3343
                        unsigned char B5:1;
3344
                        unsigned char B4:1;
3345
                        unsigned char B3:1;
3346
                        unsigned char B2:1;
3347
                        unsigned char B1:1;
3348
                        unsigned char B0:1;
3349
                } BIT;
3350
        } ICR;
3351
        char           wk3[31];
3352
        union {
3353
                unsigned char BYTE;
3354
                struct {
3355
                        unsigned char B7:1;
3356
                        unsigned char B6:1;
3357
                        unsigned char B5:1;
3358
                        unsigned char B4:1;
3359
                        unsigned char B3:1;
3360
                        unsigned char B2:1;
3361
                        unsigned char B1:1;
3362
                        unsigned char B0:1;
3363
                } BIT;
3364
        } ODR;
3365
};
3366
 
3367
struct st_port2 {
3368
        union {
3369
                unsigned char BYTE;
3370
                struct {
3371
                        unsigned char B7:1;
3372
                        unsigned char B6:1;
3373
                        unsigned char B5:1;
3374
                        unsigned char B4:1;
3375
                        unsigned char B3:1;
3376
                        unsigned char B2:1;
3377
                        unsigned char B1:1;
3378
                        unsigned char B0:1;
3379
                } BIT;
3380
        } DDR;
3381
        char           wk0[31];
3382
        union {
3383
                unsigned char BYTE;
3384
                struct {
3385
                        unsigned char B7:1;
3386
                        unsigned char B6:1;
3387
                        unsigned char B5:1;
3388
                        unsigned char B4:1;
3389
                        unsigned char B3:1;
3390
                        unsigned char B2:1;
3391
                        unsigned char B1:1;
3392
                        unsigned char B0:1;
3393
                } BIT;
3394
        } DR;
3395
        char           wk1[31];
3396
        union {
3397
                unsigned char BYTE;
3398
                struct {
3399
                        unsigned char B7:1;
3400
                        unsigned char B6:1;
3401
                        unsigned char B5:1;
3402
                        unsigned char B4:1;
3403
                        unsigned char B3:1;
3404
                        unsigned char B2:1;
3405
                        unsigned char B1:1;
3406
                        unsigned char B0:1;
3407
                } BIT;
3408
        } PORT;
3409
        char           wk2[31];
3410
        union {
3411
                unsigned char BYTE;
3412
                struct {
3413
                        unsigned char B7:1;
3414
                        unsigned char B6:1;
3415
                        unsigned char B5:1;
3416
                        unsigned char B4:1;
3417
                        unsigned char B3:1;
3418
                        unsigned char B2:1;
3419
                        unsigned char B1:1;
3420
                        unsigned char B0:1;
3421
                } BIT;
3422
        } ICR;
3423
        char           wk3[31];
3424
        union {
3425
                unsigned char BYTE;
3426
                struct {
3427
                        unsigned char B7:1;
3428
                        unsigned char B6:1;
3429
                        unsigned char B5:1;
3430
                        unsigned char B4:1;
3431
                        unsigned char B3:1;
3432
                        unsigned char B2:1;
3433
                        unsigned char B1:1;
3434
                        unsigned char B0:1;
3435
                } BIT;
3436
        } ODR;
3437
};
3438
 
3439
struct st_port3 {
3440
        union {
3441
                unsigned char BYTE;
3442
                struct {
3443
                        unsigned char :3;
3444
                        unsigned char B4:1;
3445
                        unsigned char B3:1;
3446
                        unsigned char B2:1;
3447
                        unsigned char B1:1;
3448
                        unsigned char B0:1;
3449
                } BIT;
3450
        } DDR;
3451
        char           wk0[31];
3452
        union {
3453
                unsigned char BYTE;
3454
                struct {
3455
                        unsigned char :3;
3456
                        unsigned char B4:1;
3457
                        unsigned char B3:1;
3458
                        unsigned char B2:1;
3459
                        unsigned char B1:1;
3460
                        unsigned char B0:1;
3461
                } BIT;
3462
        } DR;
3463
        char           wk1[31];
3464
        union {
3465
                unsigned char BYTE;
3466
                struct {
3467
                        unsigned char :2;
3468
                        unsigned char B5:1;
3469
                        unsigned char B4:1;
3470
                        unsigned char B3:1;
3471
                        unsigned char B2:1;
3472
                        unsigned char B1:1;
3473
                        unsigned char B0:1;
3474
                } BIT;
3475
        } PORT;
3476
        char           wk2[31];
3477
        union {
3478
                unsigned char BYTE;
3479
                struct {
3480
                        unsigned char :3;
3481
                        unsigned char B4:1;
3482
                        unsigned char B3:1;
3483
                        unsigned char B2:1;
3484
                        unsigned char B1:1;
3485
                        unsigned char B0:1;
3486
                } BIT;
3487
        } ICR;
3488
        char           wk3[31];
3489
        union {
3490
                unsigned char BYTE;
3491
                struct {
3492
                        unsigned char :3;
3493
                        unsigned char B4:1;
3494
                        unsigned char B3:1;
3495
                        unsigned char B2:1;
3496
                        unsigned char B1:1;
3497
                        unsigned char B0:1;
3498
                } BIT;
3499
        } ODR;
3500
};
3501
 
3502
struct st_port4 {
3503
        union {
3504
                unsigned char BYTE;
3505
                struct {
3506
                        unsigned char B7:1;
3507
                        unsigned char B6:1;
3508
                        unsigned char B5:1;
3509
                        unsigned char B4:1;
3510
                        unsigned char B3:1;
3511
                        unsigned char B2:1;
3512
                        unsigned char B1:1;
3513
                        unsigned char B0:1;
3514
                } BIT;
3515
        } DDR;
3516
        char           wk0[31];
3517
        union {
3518
                unsigned char BYTE;
3519
                struct {
3520
                        unsigned char B7:1;
3521
                        unsigned char B6:1;
3522
                        unsigned char B5:1;
3523
                        unsigned char B4:1;
3524
                        unsigned char B3:1;
3525
                        unsigned char B2:1;
3526
                        unsigned char B1:1;
3527
                        unsigned char B0:1;
3528
                } BIT;
3529
        } DR;
3530
        char           wk1[31];
3531
        union {
3532
                unsigned char BYTE;
3533
                struct {
3534
                        unsigned char B7:1;
3535
                        unsigned char B6:1;
3536
                        unsigned char B5:1;
3537
                        unsigned char B4:1;
3538
                        unsigned char B3:1;
3539
                        unsigned char B2:1;
3540
                        unsigned char B1:1;
3541
                        unsigned char B0:1;
3542
                } BIT;
3543
        } PORT;
3544
        char           wk2[31];
3545
        union {
3546
                unsigned char BYTE;
3547
                struct {
3548
                        unsigned char B7:1;
3549
                        unsigned char B6:1;
3550
                        unsigned char B5:1;
3551
                        unsigned char B4:1;
3552
                        unsigned char B3:1;
3553
                        unsigned char B2:1;
3554
                        unsigned char B1:1;
3555
                        unsigned char B0:1;
3556
                } BIT;
3557
        } ICR;
3558
};
3559
 
3560
struct st_port5 {
3561
        union {
3562
                unsigned char BYTE;
3563
                struct {
3564
                        unsigned char B7:1;
3565
                        unsigned char B6:1;
3566
                        unsigned char B5:1;
3567
                        unsigned char B4:1;
3568
                        unsigned char B3:1;
3569
                        unsigned char B2:1;
3570
                        unsigned char B1:1;
3571
                        unsigned char B0:1;
3572
                } BIT;
3573
        } DDR;
3574
        char           wk0[31];
3575
        union {
3576
                unsigned char BYTE;
3577
                struct {
3578
                        unsigned char B7:1;
3579
                        unsigned char B6:1;
3580
                        unsigned char B5:1;
3581
                        unsigned char B4:1;
3582
                        unsigned char B3:1;
3583
                        unsigned char B2:1;
3584
                        unsigned char B1:1;
3585
                        unsigned char B0:1;
3586
                } BIT;
3587
        } DR;
3588
        char           wk1[31];
3589
        union {
3590
                unsigned char BYTE;
3591
                struct {
3592
                        unsigned char B7:1;
3593
                        unsigned char B6:1;
3594
                        unsigned char B5:1;
3595
                        unsigned char B4:1;
3596
                        unsigned char B3:1;
3597
                        unsigned char B2:1;
3598
                        unsigned char B1:1;
3599
                        unsigned char B0:1;
3600
                } BIT;
3601
        } PORT;
3602
        char           wk2[31];
3603
        union {
3604
                unsigned char BYTE;
3605
                struct {
3606
                        unsigned char B7:1;
3607
                        unsigned char B6:1;
3608
                        unsigned char B5:1;
3609
                        unsigned char B4:1;
3610
                        unsigned char B3:1;
3611
                        unsigned char B2:1;
3612
                        unsigned char B1:1;
3613
                        unsigned char B0:1;
3614
                } BIT;
3615
        } ICR;
3616
};
3617
 
3618
struct st_port6 {
3619
        union {
3620
                unsigned char BYTE;
3621
                struct {
3622
                        unsigned char B7:1;
3623
                        unsigned char B6:1;
3624
                        unsigned char B5:1;
3625
                        unsigned char B4:1;
3626
                        unsigned char B3:1;
3627
                        unsigned char B2:1;
3628
                        unsigned char B1:1;
3629
                        unsigned char B0:1;
3630
                } BIT;
3631
        } DDR;
3632
        char           wk0[31];
3633
        union {
3634
                unsigned char BYTE;
3635
                struct {
3636
                        unsigned char B7:1;
3637
                        unsigned char B6:1;
3638
                        unsigned char B5:1;
3639
                        unsigned char B4:1;
3640
                        unsigned char B3:1;
3641
                        unsigned char B2:1;
3642
                        unsigned char B1:1;
3643
                        unsigned char B0:1;
3644
                } BIT;
3645
        } DR;
3646
        char           wk1[31];
3647
        union {
3648
                unsigned char BYTE;
3649
                struct {
3650
                        unsigned char B7:1;
3651
                        unsigned char B6:1;
3652
                        unsigned char B5:1;
3653
                        unsigned char B4:1;
3654
                        unsigned char B3:1;
3655
                        unsigned char B2:1;
3656
                        unsigned char B1:1;
3657
                        unsigned char B0:1;
3658
                } BIT;
3659
        } PORT;
3660
        char           wk2[31];
3661
        union {
3662
                unsigned char BYTE;
3663
                struct {
3664
                        unsigned char B7:1;
3665
                        unsigned char B6:1;
3666
                        unsigned char B5:1;
3667
                        unsigned char B4:1;
3668
                        unsigned char B3:1;
3669
                        unsigned char B2:1;
3670
                        unsigned char B1:1;
3671
                        unsigned char B0:1;
3672
                } BIT;
3673
        } ICR;
3674
};
3675
 
3676
struct st_port7 {
3677
        union {
3678
                unsigned char BYTE;
3679
                struct {
3680
                        unsigned char B7:1;
3681
                        unsigned char B6:1;
3682
                        unsigned char B5:1;
3683
                        unsigned char B4:1;
3684
                        unsigned char B3:1;
3685
                        unsigned char B2:1;
3686
                        unsigned char B1:1;
3687
                        unsigned char B0:1;
3688
                } BIT;
3689
        } DDR;
3690
        char           wk0[31];
3691
        union {
3692
                unsigned char BYTE;
3693
                struct {
3694
                        unsigned char B7:1;
3695
                        unsigned char B6:1;
3696
                        unsigned char B5:1;
3697
                        unsigned char B4:1;
3698
                        unsigned char B3:1;
3699
                        unsigned char B2:1;
3700
                        unsigned char B1:1;
3701
                        unsigned char B0:1;
3702
                } BIT;
3703
        } DR;
3704
        char           wk1[31];
3705
        union {
3706
                unsigned char BYTE;
3707
                struct {
3708
                        unsigned char B7:1;
3709
                        unsigned char B6:1;
3710
                        unsigned char B5:1;
3711
                        unsigned char B4:1;
3712
                        unsigned char B3:1;
3713
                        unsigned char B2:1;
3714
                        unsigned char B1:1;
3715
                        unsigned char B0:1;
3716
                } BIT;
3717
        } PORT;
3718
        char           wk2[31];
3719
        union {
3720
                unsigned char BYTE;
3721
                struct {
3722
                        unsigned char B7:1;
3723
                        unsigned char B6:1;
3724
                        unsigned char B5:1;
3725
                        unsigned char B4:1;
3726
                        unsigned char B3:1;
3727
                        unsigned char B2:1;
3728
                        unsigned char B1:1;
3729
                        unsigned char B0:1;
3730
                } BIT;
3731
        } ICR;
3732
};
3733
 
3734
struct st_port8 {
3735
        union {
3736
                unsigned char BYTE;
3737
                struct {
3738
                        unsigned char :2;
3739
                        unsigned char B5:1;
3740
                        unsigned char B4:1;
3741
                        unsigned char B3:1;
3742
                        unsigned char B2:1;
3743
                        unsigned char B1:1;
3744
                        unsigned char B0:1;
3745
                } BIT;
3746
        } DDR;
3747
        char           wk0[31];
3748
        union {
3749
                unsigned char BYTE;
3750
                struct {
3751
                        unsigned char :2;
3752
                        unsigned char B5:1;
3753
                        unsigned char B4:1;
3754
                        unsigned char B3:1;
3755
                        unsigned char B2:1;
3756
                        unsigned char B1:1;
3757
                        unsigned char B0:1;
3758
                } BIT;
3759
        } DR;
3760
        char           wk1[31];
3761
        union {
3762
                unsigned char BYTE;
3763
                struct {
3764
                        unsigned char :2;
3765
                        unsigned char B5:1;
3766
                        unsigned char B4:1;
3767
                        unsigned char B3:1;
3768
                        unsigned char B2:1;
3769
                        unsigned char B1:1;
3770
                        unsigned char B0:1;
3771
                } BIT;
3772
        } PORT;
3773
        char           wk2[31];
3774
        union {
3775
                unsigned char BYTE;
3776
                struct {
3777
                        unsigned char :2;
3778
                        unsigned char B5:1;
3779
                        unsigned char B4:1;
3780
                        unsigned char B3:1;
3781
                        unsigned char B2:1;
3782
                        unsigned char B1:1;
3783
                        unsigned char B0:1;
3784
                } BIT;
3785
        } ICR;
3786
};
3787
 
3788
struct st_port9 {
3789
        union {
3790
                unsigned char BYTE;
3791
                struct {
3792
                        unsigned char B7:1;
3793
                        unsigned char B6:1;
3794
                        unsigned char B5:1;
3795
                        unsigned char B4:1;
3796
                        unsigned char B3:1;
3797
                        unsigned char B2:1;
3798
                        unsigned char B1:1;
3799
                        unsigned char B0:1;
3800
                } BIT;
3801
        } DDR;
3802
        char           wk0[31];
3803
        union {
3804
                unsigned char BYTE;
3805
                struct {
3806
                        unsigned char B7:1;
3807
                        unsigned char B6:1;
3808
                        unsigned char B5:1;
3809
                        unsigned char B4:1;
3810
                        unsigned char B3:1;
3811
                        unsigned char B2:1;
3812
                        unsigned char B1:1;
3813
                        unsigned char B0:1;
3814
                } BIT;
3815
        } DR;
3816
        char           wk1[31];
3817
        union {
3818
                unsigned char BYTE;
3819
                struct {
3820
                        unsigned char B7:1;
3821
                        unsigned char B6:1;
3822
                        unsigned char B5:1;
3823
                        unsigned char B4:1;
3824
                        unsigned char B3:1;
3825
                        unsigned char B2:1;
3826
                        unsigned char B1:1;
3827
                        unsigned char B0:1;
3828
                } BIT;
3829
        } PORT;
3830
        char           wk2[31];
3831
        union {
3832
                unsigned char BYTE;
3833
                struct {
3834
                        unsigned char B7:1;
3835
                        unsigned char B6:1;
3836
                        unsigned char B5:1;
3837
                        unsigned char B4:1;
3838
                        unsigned char B3:1;
3839
                        unsigned char B2:1;
3840
                        unsigned char B1:1;
3841
                        unsigned char B0:1;
3842
                } BIT;
3843
        } ICR;
3844
        char           wk3[95];
3845
        union {
3846
                unsigned char BYTE;
3847
                struct {
3848
                        unsigned char B7:1;
3849
                        unsigned char B6:1;
3850
                        unsigned char B5:1;
3851
                        unsigned char B4:1;
3852
                        unsigned char B3:1;
3853
                        unsigned char B2:1;
3854
                        unsigned char B1:1;
3855
                        unsigned char B0:1;
3856
                } BIT;
3857
        } PCR;
3858
};
3859
 
3860
struct st_porta {
3861
        union {
3862
                unsigned char BYTE;
3863
                struct {
3864
                        unsigned char B7:1;
3865
                        unsigned char B6:1;
3866
                        unsigned char B5:1;
3867
                        unsigned char B4:1;
3868
                        unsigned char B3:1;
3869
                        unsigned char B2:1;
3870
                        unsigned char B1:1;
3871
                        unsigned char B0:1;
3872
                } BIT;
3873
        } DDR;
3874
        char           wk0[31];
3875
        union {
3876
                unsigned char BYTE;
3877
                struct {
3878
                        unsigned char B7:1;
3879
                        unsigned char B6:1;
3880
                        unsigned char B5:1;
3881
                        unsigned char B4:1;
3882
                        unsigned char B3:1;
3883
                        unsigned char B2:1;
3884
                        unsigned char B1:1;
3885
                        unsigned char B0:1;
3886
                } BIT;
3887
        } DR;
3888
        char           wk1[31];
3889
        union {
3890
                unsigned char BYTE;
3891
                struct {
3892
                        unsigned char B7:1;
3893
                        unsigned char B6:1;
3894
                        unsigned char B5:1;
3895
                        unsigned char B4:1;
3896
                        unsigned char B3:1;
3897
                        unsigned char B2:1;
3898
                        unsigned char B1:1;
3899
                        unsigned char B0:1;
3900
                } BIT;
3901
        } PORT;
3902
        char           wk2[31];
3903
        union {
3904
                unsigned char BYTE;
3905
                struct {
3906
                        unsigned char B7:1;
3907
                        unsigned char B6:1;
3908
                        unsigned char B5:1;
3909
                        unsigned char B4:1;
3910
                        unsigned char B3:1;
3911
                        unsigned char B2:1;
3912
                        unsigned char B1:1;
3913
                        unsigned char B0:1;
3914
                } BIT;
3915
        } ICR;
3916
        char           wk3[95];
3917
        union {
3918
                unsigned char BYTE;
3919
                struct {
3920
                        unsigned char B7:1;
3921
                        unsigned char B6:1;
3922
                        unsigned char B5:1;
3923
                        unsigned char B4:1;
3924
                        unsigned char B3:1;
3925
                        unsigned char B2:1;
3926
                        unsigned char B1:1;
3927
                        unsigned char B0:1;
3928
                } BIT;
3929
        } PCR;
3930
};
3931
 
3932
struct st_portb {
3933
        union {
3934
                unsigned char BYTE;
3935
                struct {
3936
                        unsigned char B7:1;
3937
                        unsigned char B6:1;
3938
                        unsigned char B5:1;
3939
                        unsigned char B4:1;
3940
                        unsigned char B3:1;
3941
                        unsigned char B2:1;
3942
                        unsigned char B1:1;
3943
                        unsigned char B0:1;
3944
                } BIT;
3945
        } DDR;
3946
        char           wk0[31];
3947
        union {
3948
                unsigned char BYTE;
3949
                struct {
3950
                        unsigned char B7:1;
3951
                        unsigned char B6:1;
3952
                        unsigned char B5:1;
3953
                        unsigned char B4:1;
3954
                        unsigned char B3:1;
3955
                        unsigned char B2:1;
3956
                        unsigned char B1:1;
3957
                        unsigned char B0:1;
3958
                } BIT;
3959
        } DR;
3960
        char           wk1[31];
3961
        union {
3962
                unsigned char BYTE;
3963
                struct {
3964
                        unsigned char B7:1;
3965
                        unsigned char B6:1;
3966
                        unsigned char B5:1;
3967
                        unsigned char B4:1;
3968
                        unsigned char B3:1;
3969
                        unsigned char B2:1;
3970
                        unsigned char B1:1;
3971
                        unsigned char B0:1;
3972
                } BIT;
3973
        } PORT;
3974
        char           wk2[31];
3975
        union {
3976
                unsigned char BYTE;
3977
                struct {
3978
                        unsigned char B7:1;
3979
                        unsigned char B6:1;
3980
                        unsigned char B5:1;
3981
                        unsigned char B4:1;
3982
                        unsigned char B3:1;
3983
                        unsigned char B2:1;
3984
                        unsigned char B1:1;
3985
                        unsigned char B0:1;
3986
                } BIT;
3987
        } ICR;
3988
        char           wk3[95];
3989
        union {
3990
                unsigned char BYTE;
3991
                struct {
3992
                        unsigned char B7:1;
3993
                        unsigned char B6:1;
3994
                        unsigned char B5:1;
3995
                        unsigned char B4:1;
3996
                        unsigned char B3:1;
3997
                        unsigned char B2:1;
3998
                        unsigned char B1:1;
3999
                        unsigned char B0:1;
4000
                } BIT;
4001
        } PCR;
4002
};
4003
 
4004
struct st_portc {
4005
        union {
4006
                unsigned char BYTE;
4007
                struct {
4008
                        unsigned char B7:1;
4009
                        unsigned char B6:1;
4010
                        unsigned char B5:1;
4011
                        unsigned char B4:1;
4012
                        unsigned char B3:1;
4013
                        unsigned char B2:1;
4014
                        unsigned char B1:1;
4015
                        unsigned char B0:1;
4016
                } BIT;
4017
        } DDR;
4018
        char           wk0[31];
4019
        union {
4020
                unsigned char BYTE;
4021
                struct {
4022
                        unsigned char B7:1;
4023
                        unsigned char B6:1;
4024
                        unsigned char B5:1;
4025
                        unsigned char B4:1;
4026
                        unsigned char B3:1;
4027
                        unsigned char B2:1;
4028
                        unsigned char B1:1;
4029
                        unsigned char B0:1;
4030
                } BIT;
4031
        } DR;
4032
        char           wk1[31];
4033
        union {
4034
                unsigned char BYTE;
4035
                struct {
4036
                        unsigned char B7:1;
4037
                        unsigned char B6:1;
4038
                        unsigned char B5:1;
4039
                        unsigned char B4:1;
4040
                        unsigned char B3:1;
4041
                        unsigned char B2:1;
4042
                        unsigned char B1:1;
4043
                        unsigned char B0:1;
4044
                } BIT;
4045
        } PORT;
4046
        char           wk2[31];
4047
        union {
4048
                unsigned char BYTE;
4049
                struct {
4050
                        unsigned char B7:1;
4051
                        unsigned char B6:1;
4052
                        unsigned char B5:1;
4053
                        unsigned char B4:1;
4054
                        unsigned char B3:1;
4055
                        unsigned char B2:1;
4056
                        unsigned char B1:1;
4057
                        unsigned char B0:1;
4058
                } BIT;
4059
        } ICR;
4060
        char           wk3[31];
4061
        union {
4062
                unsigned char BYTE;
4063
                struct {
4064
                        unsigned char B7:1;
4065
                        unsigned char B6:1;
4066
                        unsigned char B5:1;
4067
                        unsigned char B4:1;
4068
                        unsigned char B3:1;
4069
                        unsigned char B2:1;
4070
                        unsigned char B1:1;
4071
                        unsigned char B0:1;
4072
                } BIT;
4073
        } ODR;
4074
        char           wk4[63];
4075
        union {
4076
                unsigned char BYTE;
4077
                struct {
4078
                        unsigned char B7:1;
4079
                        unsigned char B6:1;
4080
                        unsigned char B5:1;
4081
                        unsigned char B4:1;
4082
                        unsigned char B3:1;
4083
                        unsigned char B2:1;
4084
                        unsigned char B1:1;
4085
                        unsigned char B0:1;
4086
                } BIT;
4087
        } PCR;
4088
};
4089
 
4090
struct st_portd {
4091
        union {
4092
                unsigned char BYTE;
4093
                struct {
4094
                        unsigned char B7:1;
4095
                        unsigned char B6:1;
4096
                        unsigned char B5:1;
4097
                        unsigned char B4:1;
4098
                        unsigned char B3:1;
4099
                        unsigned char B2:1;
4100
                        unsigned char B1:1;
4101
                        unsigned char B0:1;
4102
                } BIT;
4103
        } DDR;
4104
        char           wk0[31];
4105
        union {
4106
                unsigned char BYTE;
4107
                struct {
4108
                        unsigned char B7:1;
4109
                        unsigned char B6:1;
4110
                        unsigned char B5:1;
4111
                        unsigned char B4:1;
4112
                        unsigned char B3:1;
4113
                        unsigned char B2:1;
4114
                        unsigned char B1:1;
4115
                        unsigned char B0:1;
4116
                } BIT;
4117
        } DR;
4118
        char           wk1[31];
4119
        union {
4120
                unsigned char BYTE;
4121
                struct {
4122
                        unsigned char B7:1;
4123
                        unsigned char B6:1;
4124
                        unsigned char B5:1;
4125
                        unsigned char B4:1;
4126
                        unsigned char B3:1;
4127
                        unsigned char B2:1;
4128
                        unsigned char B1:1;
4129
                        unsigned char B0:1;
4130
                } BIT;
4131
        } PORT;
4132
        char           wk2[31];
4133
        union {
4134
                unsigned char BYTE;
4135
                struct {
4136
                        unsigned char B7:1;
4137
                        unsigned char B6:1;
4138
                        unsigned char B5:1;
4139
                        unsigned char B4:1;
4140
                        unsigned char B3:1;
4141
                        unsigned char B2:1;
4142
                        unsigned char B1:1;
4143
                        unsigned char B0:1;
4144
                } BIT;
4145
        } ICR;
4146
        char           wk3[95];
4147
        union {
4148
                unsigned char BYTE;
4149
                struct {
4150
                        unsigned char B7:1;
4151
                        unsigned char B6:1;
4152
                        unsigned char B5:1;
4153
                        unsigned char B4:1;
4154
                        unsigned char B3:1;
4155
                        unsigned char B2:1;
4156
                        unsigned char B1:1;
4157
                        unsigned char B0:1;
4158
                } BIT;
4159
        } PCR;
4160
};
4161
 
4162
struct st_porte {
4163
        union {
4164
                unsigned char BYTE;
4165
                struct {
4166
                        unsigned char B7:1;
4167
                        unsigned char B6:1;
4168
                        unsigned char B5:1;
4169
                        unsigned char B4:1;
4170
                        unsigned char B3:1;
4171
                        unsigned char B2:1;
4172
                        unsigned char B1:1;
4173
                        unsigned char B0:1;
4174
                } BIT;
4175
        } DDR;
4176
        char           wk0[31];
4177
        union {
4178
                unsigned char BYTE;
4179
                struct {
4180
                        unsigned char B7:1;
4181
                        unsigned char B6:1;
4182
                        unsigned char B5:1;
4183
                        unsigned char B4:1;
4184
                        unsigned char B3:1;
4185
                        unsigned char B2:1;
4186
                        unsigned char B1:1;
4187
                        unsigned char B0:1;
4188
                } BIT;
4189
        } DR;
4190
        char           wk1[31];
4191
        union {
4192
                unsigned char BYTE;
4193
                struct {
4194
                        unsigned char B7:1;
4195
                        unsigned char B6:1;
4196
                        unsigned char B5:1;
4197
                        unsigned char B4:1;
4198
                        unsigned char B3:1;
4199
                        unsigned char B2:1;
4200
                        unsigned char B1:1;
4201
                        unsigned char B0:1;
4202
                } BIT;
4203
        } PORT;
4204
        char           wk2[31];
4205
        union {
4206
                unsigned char BYTE;
4207
                struct {
4208
                        unsigned char B7:1;
4209
                        unsigned char B6:1;
4210
                        unsigned char B5:1;
4211
                        unsigned char B4:1;
4212
                        unsigned char B3:1;
4213
                        unsigned char B2:1;
4214
                        unsigned char B1:1;
4215
                        unsigned char B0:1;
4216
                } BIT;
4217
        } ICR;
4218
        char           wk3[95];
4219
        union {
4220
                unsigned char BYTE;
4221
                struct {
4222
                        unsigned char B7:1;
4223
                        unsigned char B6:1;
4224
                        unsigned char B5:1;
4225
                        unsigned char B4:1;
4226
                        unsigned char B3:1;
4227
                        unsigned char B2:1;
4228
                        unsigned char B1:1;
4229
                        unsigned char B0:1;
4230
                } BIT;
4231
        } PCR;
4232
};
4233
 
4234
struct st_portf {
4235
        union {
4236
                unsigned char BYTE;
4237
                struct {
4238
                        unsigned char :3;
4239
                        unsigned char B4:1;
4240
                        unsigned char B3:1;
4241
                        unsigned char B2:1;
4242
                        unsigned char B1:1;
4243
                        unsigned char B0:1;
4244
                } BIT;
4245
        } DDR;
4246
        char           wk0[31];
4247
        union {
4248
                unsigned char BYTE;
4249
                struct {
4250
                        unsigned char :3;
4251
                        unsigned char B4:1;
4252
                        unsigned char B3:1;
4253
                        unsigned char B2:1;
4254
                        unsigned char B1:1;
4255
                        unsigned char B0:1;
4256
                } BIT;
4257
        } DR;
4258
        char           wk1[31];
4259
        union {
4260
                unsigned char BYTE;
4261
                struct {
4262
                        unsigned char :3;
4263
                        unsigned char B4:1;
4264
                        unsigned char B3:1;
4265
                        unsigned char B2:1;
4266
                        unsigned char B1:1;
4267
                        unsigned char B0:1;
4268
                } BIT;
4269
        } PORT;
4270
        char           wk2[31];
4271
        union {
4272
                unsigned char BYTE;
4273
                struct {
4274
                        unsigned char :3;
4275
                        unsigned char B4:1;
4276
                        unsigned char B3:1;
4277
                        unsigned char B2:1;
4278
                        unsigned char B1:1;
4279
                        unsigned char B0:1;
4280
                } BIT;
4281
        } ICR;
4282
};
4283
 
4284
struct st_portg {
4285
        union {
4286
                unsigned char BYTE;
4287
                struct {
4288
                        unsigned char B7:1;
4289
                        unsigned char B6:1;
4290
                        unsigned char B5:1;
4291
                        unsigned char B4:1;
4292
                        unsigned char B3:1;
4293
                        unsigned char B2:1;
4294
                        unsigned char B1:1;
4295
                        unsigned char B0:1;
4296
                } BIT;
4297
        } DDR;
4298
        char           wk0[31];
4299
        union {
4300
                unsigned char BYTE;
4301
                struct {
4302
                        unsigned char B7:1;
4303
                        unsigned char B6:1;
4304
                        unsigned char B5:1;
4305
                        unsigned char B4:1;
4306
                        unsigned char B3:1;
4307
                        unsigned char B2:1;
4308
                        unsigned char B1:1;
4309
                        unsigned char B0:1;
4310
                } BIT;
4311
        } DR;
4312
        char           wk1[31];
4313
        union {
4314
                unsigned char BYTE;
4315
                struct {
4316
                        unsigned char B7:1;
4317
                        unsigned char B6:1;
4318
                        unsigned char B5:1;
4319
                        unsigned char B4:1;
4320
                        unsigned char B3:1;
4321
                        unsigned char B2:1;
4322
                        unsigned char B1:1;
4323
                        unsigned char B0:1;
4324
                } BIT;
4325
        } PORT;
4326
        char           wk2[31];
4327
        union {
4328
                unsigned char BYTE;
4329
                struct {
4330
                        unsigned char B7:1;
4331
                        unsigned char B6:1;
4332
                        unsigned char B5:1;
4333
                        unsigned char B4:1;
4334
                        unsigned char B3:1;
4335
                        unsigned char B2:1;
4336
                        unsigned char B1:1;
4337
                        unsigned char B0:1;
4338
                } BIT;
4339
        } ICR;
4340
        char           wk3[95];
4341
        union {
4342
                unsigned char BYTE;
4343
                struct {
4344
                        unsigned char B7:1;
4345
                        unsigned char B6:1;
4346
                        unsigned char B5:1;
4347
                        unsigned char B4:1;
4348
                        unsigned char B3:1;
4349
                        unsigned char B2:1;
4350
                        unsigned char B1:1;
4351
                        unsigned char B0:1;
4352
                } BIT;
4353
        } PCR;
4354
};
4355
 
4356
struct st_ppg0 {
4357
        union {
4358
                unsigned char BYTE;
4359
                struct {
4360
                        unsigned char G3CMS:2;
4361
                        unsigned char G2CMS:2;
4362
                        unsigned char G1CMS:2;
4363
                        unsigned char G0CMS:2;
4364
                } BIT;
4365
        } PCR;
4366
        union {
4367
                unsigned char BYTE;
4368
                struct {
4369
                        unsigned char G3INV:1;
4370
                        unsigned char G2INV:1;
4371
                        unsigned char G1INV:1;
4372
                        unsigned char G0INV:1;
4373
                        unsigned char G3NOV:1;
4374
                        unsigned char G2NOV:1;
4375
                        unsigned char G1NOV:1;
4376
                        unsigned char G0NOV:1;
4377
                } BIT;
4378
        } PMR;
4379
        union {
4380
                unsigned char BYTE;
4381
                struct {
4382
                        unsigned char NDER15:1;
4383
                        unsigned char NDER14:1;
4384
                        unsigned char NDER13:1;
4385
                        unsigned char NDER12:1;
4386
                        unsigned char NDER11:1;
4387
                        unsigned char NDER10:1;
4388
                        unsigned char NDER9:1;
4389
                        unsigned char NDER8:1;
4390
                } BIT;
4391
        } NDERH;
4392
        union {
4393
                unsigned char BYTE;
4394
                struct {
4395
                        unsigned char NDER7:1;
4396
                        unsigned char NDER6:1;
4397
                        unsigned char NDER5:1;
4398
                        unsigned char NDER4:1;
4399
                        unsigned char NDER3:1;
4400
                        unsigned char NDER2:1;
4401
                        unsigned char NDER1:1;
4402
                        unsigned char NDER0:1;
4403
                } BIT;
4404
        } NDERL;
4405
        union {
4406
                unsigned char BYTE;
4407
                struct {
4408
                        unsigned char POD15:1;
4409
                        unsigned char POD14:1;
4410
                        unsigned char POD13:1;
4411
                        unsigned char POD12:1;
4412
                        unsigned char POD11:1;
4413
                        unsigned char POD10:1;
4414
                        unsigned char POD9:1;
4415
                        unsigned char POD8:1;
4416
                } BIT;
4417
        } PODRH;
4418
        union {
4419
                unsigned char BYTE;
4420
                struct {
4421
                        unsigned char POD7:1;
4422
                        unsigned char POD6:1;
4423
                        unsigned char POD5:1;
4424
                        unsigned char POD4:1;
4425
                        unsigned char POD3:1;
4426
                        unsigned char POD2:1;
4427
                        unsigned char POD1:1;
4428
                        unsigned char POD0:1;
4429
                } BIT;
4430
        } PODRL;
4431
        union {
4432
                unsigned char BYTE;
4433
                struct {
4434
                        unsigned char NDR15:1;
4435
                        unsigned char NDR14:1;
4436
                        unsigned char NDR13:1;
4437
                        unsigned char NDR12:1;
4438
                        unsigned char NDR11:1;
4439
                        unsigned char NDR10:1;
4440
                        unsigned char NDR9:1;
4441
                        unsigned char NDR8:1;
4442
                } BIT;
4443
        } NDRH;
4444
        union {
4445
                unsigned char BYTE;
4446
                struct {
4447
                        unsigned char NDR7:1;
4448
                        unsigned char NDR6:1;
4449
                        unsigned char NDR5:1;
4450
                        unsigned char NDR4:1;
4451
                        unsigned char NDR3:1;
4452
                        unsigned char NDR2:1;
4453
                        unsigned char NDR1:1;
4454
                        unsigned char NDR0:1;
4455
                } BIT;
4456
        } NDRL;
4457
        union {
4458
                unsigned char BYTE;
4459
                struct {
4460
                        unsigned char :4;
4461
                        unsigned char NDR11:1;
4462
                        unsigned char NDR10:1;
4463
                        unsigned char NDR9:1;
4464
                        unsigned char NDR8:1;
4465
                } BIT;
4466
        } NDRH2;
4467
        union {
4468
                unsigned char BYTE;
4469
                struct {
4470
                        unsigned char :4;
4471
                        unsigned char NDR3:1;
4472
                        unsigned char NDR2:1;
4473
                        unsigned char NDR1:1;
4474
                        unsigned char NDR0:1;
4475
                } BIT;
4476
        } NDRL2;
4477
};
4478
 
4479
struct st_ppg1 {
4480
        union {
4481
                unsigned char BYTE;
4482
                struct {
4483
                        unsigned char :7;
4484
                        unsigned char PTRSL:1;
4485
                } BIT;
4486
        } PTRSLR;
4487
        char           wk0[5];
4488
        union {
4489
                unsigned char BYTE;
4490
                struct {
4491
                        unsigned char G3CMS:2;
4492
                        unsigned char G2CMS:2;
4493
                        unsigned char G1CMS:2;
4494
                        unsigned char G0CMS:2;
4495
                } BIT;
4496
        } PCR;
4497
        union {
4498
                unsigned char BYTE;
4499
                struct {
4500
                        unsigned char G3INV:1;
4501
                        unsigned char G2INV:1;
4502
                        unsigned char G1INV:1;
4503
                        unsigned char G0INV:1;
4504
                        unsigned char G3NOV:1;
4505
                        unsigned char G2NOV:1;
4506
                        unsigned char G1NOV:1;
4507
                        unsigned char G0NOV:1;
4508
                } BIT;
4509
        } PMR;
4510
        union {
4511
                unsigned char BYTE;
4512
                struct {
4513
                        unsigned char NDER31:1;
4514
                        unsigned char NDER30:1;
4515
                        unsigned char NDER29:1;
4516
                        unsigned char NDER28:1;
4517
                        unsigned char NDER27:1;
4518
                        unsigned char NDER26:1;
4519
                        unsigned char NDER25:1;
4520
                        unsigned char NDER24:1;
4521
                } BIT;
4522
        } NDERH;
4523
        union {
4524
                unsigned char BYTE;
4525
                struct {
4526
                        unsigned char NDER23:1;
4527
                        unsigned char NDER22:1;
4528
                        unsigned char NDER21:1;
4529
                        unsigned char NDER20:1;
4530
                        unsigned char NDER19:1;
4531
                        unsigned char NDER18:1;
4532
                        unsigned char NDER17:1;
4533
                        unsigned char NDER16:1;
4534
                } BIT;
4535
        } NDERL;
4536
        union {
4537
                unsigned char BYTE;
4538
                struct {
4539
                        unsigned char POD31:1;
4540
                        unsigned char POD30:1;
4541
                        unsigned char POD29:1;
4542
                        unsigned char POD28:1;
4543
                        unsigned char POD27:1;
4544
                        unsigned char POD26:1;
4545
                        unsigned char POD25:1;
4546
                        unsigned char POD24:1;
4547
                } BIT;
4548
        } PODRH;
4549
        union {
4550
                unsigned char BYTE;
4551
                struct {
4552
                        unsigned char POD23:1;
4553
                        unsigned char POD22:1;
4554
                        unsigned char POD21:1;
4555
                        unsigned char POD20:1;
4556
                        unsigned char POD19:1;
4557
                        unsigned char POD18:1;
4558
                        unsigned char POD17:1;
4559
                        unsigned char POD16:1;
4560
                } BIT;
4561
        } PODRL;
4562
        union {
4563
                unsigned char BYTE;
4564
                struct {
4565
                        unsigned char NDR31:1;
4566
                        unsigned char NDR30:1;
4567
                        unsigned char NDR29:1;
4568
                        unsigned char NDR28:1;
4569
                        unsigned char NDR27:1;
4570
                        unsigned char NDR26:1;
4571
                        unsigned char NDR25:1;
4572
                        unsigned char NDR24:1;
4573
                } BIT;
4574
        } NDRH;
4575
        union {
4576
                unsigned char BYTE;
4577
                struct {
4578
                        unsigned char NDR23:1;
4579
                        unsigned char NDR22:1;
4580
                        unsigned char NDR21:1;
4581
                        unsigned char NDR20:1;
4582
                        unsigned char NDR19:1;
4583
                        unsigned char NDR18:1;
4584
                        unsigned char NDR17:1;
4585
                        unsigned char NDR16:1;
4586
                } BIT;
4587
        } NDRL;
4588
        union {
4589
                unsigned char BYTE;
4590
                struct {
4591
                        unsigned char :4;
4592
                        unsigned char NDR27:1;
4593
                        unsigned char NDR26:1;
4594
                        unsigned char NDR25:1;
4595
                        unsigned char NDR24:1;
4596
                } BIT;
4597
        } NDRH2;
4598
        union {
4599
                unsigned char BYTE;
4600
                struct {
4601
                        unsigned char :4;
4602
                        unsigned char NDR19:1;
4603
                        unsigned char NDR18:1;
4604
                        unsigned char NDR17:1;
4605
                        unsigned char NDR16:1;
4606
                } BIT;
4607
        } NDRL2;
4608
};
4609
 
4610
struct st_riic {
4611
        union {
4612
                unsigned char BYTE;
4613
                struct {
4614
                        unsigned char ICE:1;
4615
                        unsigned char IICRST:1;
4616
                        unsigned char CLO:1;
4617
                        unsigned char SOWP:1;
4618
                        unsigned char SCLO:1;
4619
                        unsigned char SDAO:1;
4620
                        unsigned char SCLI:1;
4621
                        unsigned char SDAI:1;
4622
                } BIT;
4623
        } ICCR1;
4624
        union {
4625
                unsigned char BYTE;
4626
                struct {
4627
                        unsigned char BBSY:1;
4628
                        unsigned char MST:1;
4629
                        unsigned char TRS:1;
4630
                        unsigned char :1;
4631
                        unsigned char SP:1;
4632
                        unsigned char RS:1;
4633
                        unsigned char ST:1;
4634
                } BIT;
4635
        } ICCR2;
4636
        union {
4637
                unsigned char BYTE;
4638
                struct {
4639
                        unsigned char MTWP:1;
4640
                        unsigned char CKS:3;
4641
                        unsigned char BCWP:1;
4642
                        unsigned char BC:3;
4643
                } BIT;
4644
        } ICMR1;
4645
        union {
4646
                unsigned char BYTE;
4647
                struct {
4648
                        unsigned char DLCS:1;
4649
                        unsigned char SDDL:3;
4650
                        unsigned char :1;
4651
                        unsigned char TMOH:1;
4652
                        unsigned char TMOL:1;
4653
                        unsigned char TMOS:1;
4654
                } BIT;
4655
        } ICMR2;
4656
        union {
4657
                unsigned char BYTE;
4658
                struct {
4659
                        unsigned char SMBS:1;
4660
                        unsigned char WAIT:1;
4661
                        unsigned char RDRFS:1;
4662
                        unsigned char ACKWP:1;
4663
                        unsigned char ACKBT:1;
4664
                        unsigned char ACKBR:1;
4665
                        unsigned char NF:2;
4666
                } BIT;
4667
        } ICMR3;
4668
        union {
4669
                unsigned char BYTE;
4670
                struct {
4671
                        unsigned char FMPE:1;
4672
                        unsigned char SCLE:1;
4673
                        unsigned char NFE:1;
4674
                        unsigned char NACKE:1;
4675
                        unsigned char SALE:1;
4676
                        unsigned char NALE:1;
4677
                        unsigned char MALE:1;
4678
                        unsigned char TMOE:1;
4679
                } BIT;
4680
        } ICFER;
4681
        union {
4682
                unsigned char BYTE;
4683
                struct {
4684
                        unsigned char HOAE:1;
4685
                        unsigned char :1;
4686
                        unsigned char DIDE:1;
4687
                        unsigned char :1;
4688
                        unsigned char GCAE:1;
4689
                        unsigned char SAR2E:1;
4690
                        unsigned char SAR1E:1;
4691
                        unsigned char SAR0E:1;
4692
                } BIT;
4693
        } ICSER;
4694
        union {
4695
                unsigned char BYTE;
4696
                struct {
4697
                        unsigned char TIE:1;
4698
                        unsigned char TEIE:1;
4699
                        unsigned char RIE:1;
4700
                        unsigned char NAKIE:1;
4701
                        unsigned char SPIE:1;
4702
                        unsigned char STIE:1;
4703
                        unsigned char ALIE:1;
4704
                        unsigned char TMOIE:1;
4705
                } BIT;
4706
        } ICIER;
4707
        union {
4708
                unsigned char BYTE;
4709
                struct {
4710
                        unsigned char HOA:1;
4711
                        unsigned char :1;
4712
                        unsigned char DID:1;
4713
                        unsigned char :1;
4714
                        unsigned char GCA:1;
4715
                        unsigned char AAS2:1;
4716
                        unsigned char AAS1:1;
4717
                        unsigned char AAS0:1;
4718
                } BIT;
4719
        } ICSR1;
4720
        union {
4721
                unsigned char BYTE;
4722
                struct {
4723
                        unsigned char TDRE:1;
4724
                        unsigned char TEND:1;
4725
                        unsigned char RDRF:1;
4726
                        unsigned char NACKF:1;
4727
                        unsigned char STOP:1;
4728
                        unsigned char START:1;
4729
                        unsigned char AL:1;
4730
                        unsigned char TMOF:1;
4731
                } BIT;
4732
        } ICSR2;
4733
        union {
4734
                unsigned char BYTE;
4735
                struct {
4736
                        unsigned char SVA:7;
4737
                        unsigned char SVA0:1;
4738
                } BIT;
4739
        } SARL0;
4740
        union {
4741
                unsigned char BYTE;
4742
                struct {
4743
                        unsigned char :5;
4744
                        unsigned char SVA:2;
4745
                        unsigned char FS:1;
4746
                } BIT;
4747
        } SARU0;
4748
        union {
4749
                unsigned char BYTE;
4750
                struct {
4751
                        unsigned char SVA:7;
4752
                        unsigned char SVA0:1;
4753
                } BIT;
4754
        } SARL1;
4755
        union {
4756
                unsigned char BYTE;
4757
                struct {
4758
                        unsigned char :5;
4759
                        unsigned char SVA:2;
4760
                        unsigned char FS:1;
4761
                } BIT;
4762
        } SARU1;
4763
        union {
4764
                unsigned char BYTE;
4765
                struct {
4766
                        unsigned char SVA:7;
4767
                        unsigned char SVA0:1;
4768
                } BIT;
4769
        } SARL2;
4770
        union {
4771
                unsigned char BYTE;
4772
                struct {
4773
                        unsigned char :5;
4774
                        unsigned char SVA:2;
4775
                        unsigned char FS:1;
4776
                } BIT;
4777
        } SARU2;
4778
        union {
4779
                unsigned char BYTE;
4780
                struct {
4781
                        unsigned char :3;
4782
                        unsigned char BRL:5;
4783
                } BIT;
4784
        } ICBRL;
4785
        union {
4786
                unsigned char BYTE;
4787
                struct {
4788
                        unsigned char :3;
4789
                        unsigned char BRH:5;
4790
                } BIT;
4791
        } ICBRH;
4792
        unsigned char  ICDRT;
4793
        unsigned char  ICDRR;
4794
};
4795
 
4796
struct st_rspi {
4797
        union {
4798
                unsigned char BYTE;
4799
                struct {
4800
                        unsigned char SPRIE:1;
4801
                        unsigned char SPE:1;
4802
                        unsigned char SPTIE:1;
4803
                        unsigned char SPEIE:1;
4804
                        unsigned char MSTR:1;
4805
                        unsigned char MODFEN:1;
4806
                        unsigned char TXMD:1;
4807
                        unsigned char SPMS:1;
4808
                } BIT;
4809
        } SPCR;
4810
        union {
4811
                unsigned char BYTE;
4812
                struct {
4813
                        unsigned char :4;
4814
                        unsigned char SSLP3:1;
4815
                        unsigned char SSLP2:1;
4816
                        unsigned char SSLP1:1;
4817
                        unsigned char SSLP0:1;
4818
                } BIT;
4819
        } SSLP;
4820
        union {
4821
                unsigned char BYTE;
4822
                struct {
4823
                        unsigned char :2;
4824
                        unsigned char MOIFE:1;
4825
                        unsigned char MOIFV:1;
4826
                        unsigned char :1;
4827
                        unsigned char SPOM:1;
4828
                        unsigned char SPLP2:1;
4829
                        unsigned char SPLP:1;
4830
                } BIT;
4831
        } SPPCR;
4832
        union {
4833
                unsigned char BYTE;
4834
                struct {
4835
                        unsigned char SPRF:1;
4836
                        unsigned char :1;
4837
                        unsigned char SPTEF:1;
4838
                        unsigned char :1;
4839
                        unsigned char PERF:1;
4840
                        unsigned char MODF:1;
4841
                        unsigned char IDLNF:1;
4842
                        unsigned char OVRF:1;
4843
                } BIT;
4844
        } SPSR;
4845
        union {
4846
                unsigned long LONG;
4847
                struct {
4848
                        unsigned short H;
4849
                        unsigned short L;
4850
                } WORD;
4851
        } SPDR;
4852
        union {
4853
                unsigned char BYTE;
4854
                struct {
4855
                        unsigned char :5;
4856
                        unsigned char SPSLN:3;
4857
                } BIT;
4858
        } SPSCR;
4859
        union {
4860
                unsigned char BYTE;
4861
                struct {
4862
                        unsigned char :1;
4863
                        unsigned char SPECM:3;
4864
                        unsigned char :1;
4865
                        unsigned char SPCP:3;
4866
                } BIT;
4867
        } SPSSR;
4868
        union {
4869
                unsigned char BYTE;
4870
                struct {
4871
                        unsigned char SPR7:1;
4872
                        unsigned char SPR6:1;
4873
                        unsigned char SPR5:1;
4874
                        unsigned char SPR4:1;
4875
                        unsigned char SPR3:1;
4876
                        unsigned char SPR2:1;
4877
                        unsigned char SPR1:1;
4878
                        unsigned char SPR0:1;
4879
                } BIT;
4880
        } SPBR;
4881
        union {
4882
                unsigned char BYTE;
4883
                struct {
4884
                        unsigned char :2;
4885
                        unsigned char SPLW:1;
4886
                        unsigned char SPRDTD:1;
4887
                        unsigned char SLSEL:2;
4888
                        unsigned char SPFC:2;
4889
                } BIT;
4890
        } SPDCR;
4891
        union {
4892
                unsigned char BYTE;
4893
                struct {
4894
                        unsigned char :5;
4895
                        unsigned char SCKDL:3;
4896
                } BIT;
4897
        } SPCKD;
4898
        union {
4899
                unsigned char BYTE;
4900
                struct {
4901
                        unsigned char :5;
4902
                        unsigned char SLNDL:3;
4903
                } BIT;
4904
        } SSLND;
4905
        union {
4906
                unsigned char BYTE;
4907
                struct {
4908
                        unsigned char :5;
4909
                        unsigned char SPNDL:3;
4910
                } BIT;
4911
        } SPND;
4912
        union {
4913
                unsigned char BYTE;
4914
                struct {
4915
                        unsigned char :4;
4916
                        unsigned char PTE:1;
4917
                        unsigned char SPIIE:1;
4918
                        unsigned char SPOE:1;
4919
                        unsigned char SPPE:1;
4920
                } BIT;
4921
        } SPCR2;
4922
        union {
4923
                unsigned short WORD;
4924
                struct {
4925
                        unsigned short SCKDEN:1;
4926
                        unsigned short SLNDEN:1;
4927
                        unsigned short SPNDEN:1;
4928
                        unsigned short LSBF:1;
4929
                        unsigned short SPB:4;
4930
                        unsigned short SSLKP:1;
4931
                        unsigned short SSLA:3;
4932
                        unsigned short BRDV:2;
4933
                        unsigned short CPOL:1;
4934
                        unsigned short CPHA:1;
4935
                } BIT;
4936
        } SPCMD0;
4937
        union {
4938
                unsigned short WORD;
4939
                struct {
4940
                        unsigned short SCKDEN:1;
4941
                        unsigned short SLNDEN:1;
4942
                        unsigned short SPNDEN:1;
4943
                        unsigned short LSBF:1;
4944
                        unsigned short SPB:4;
4945
                        unsigned short SSLKP:1;
4946
                        unsigned short SSLA:3;
4947
                        unsigned short BRDV:2;
4948
                        unsigned short CPOL:1;
4949
                        unsigned short CPHA:1;
4950
                } BIT;
4951
        } SPCMD1;
4952
        union {
4953
                unsigned short WORD;
4954
                struct {
4955
                        unsigned short SCKDEN:1;
4956
                        unsigned short SLNDEN:1;
4957
                        unsigned short SPNDEN:1;
4958
                        unsigned short LSBF:1;
4959
                        unsigned short SPB:4;
4960
                        unsigned short SSLKP:1;
4961
                        unsigned short SSLA:3;
4962
                        unsigned short BRDV:2;
4963
                        unsigned short CPOL:1;
4964
                        unsigned short CPHA:1;
4965
                } BIT;
4966
        } SPCMD2;
4967
        union {
4968
                unsigned short WORD;
4969
                struct {
4970
                        unsigned short SCKDEN:1;
4971
                        unsigned short SLNDEN:1;
4972
                        unsigned short SPNDEN:1;
4973
                        unsigned short LSBF:1;
4974
                        unsigned short SPB:4;
4975
                        unsigned short SSLKP:1;
4976
                        unsigned short SSLA:3;
4977
                        unsigned short BRDV:2;
4978
                        unsigned short CPOL:1;
4979
                        unsigned short CPHA:1;
4980
                } BIT;
4981
        } SPCMD3;
4982
        union {
4983
                unsigned short WORD;
4984
                struct {
4985
                        unsigned short SCKDEN:1;
4986
                        unsigned short SLNDEN:1;
4987
                        unsigned short SPNDEN:1;
4988
                        unsigned short LSBF:1;
4989
                        unsigned short SPB:4;
4990
                        unsigned short SSLKP:1;
4991
                        unsigned short SSLA:3;
4992
                        unsigned short BRDV:2;
4993
                        unsigned short CPOL:1;
4994
                        unsigned short CPHA:1;
4995
                } BIT;
4996
        } SPCMD4;
4997
        union {
4998
                unsigned short WORD;
4999
                struct {
5000
                        unsigned short SCKDEN:1;
5001
                        unsigned short SLNDEN:1;
5002
                        unsigned short SPNDEN:1;
5003
                        unsigned short LSBF:1;
5004
                        unsigned short SPB:4;
5005
                        unsigned short SSLKP:1;
5006
                        unsigned short SSLA:3;
5007
                        unsigned short BRDV:2;
5008
                        unsigned short CPOL:1;
5009
                        unsigned short CPHA:1;
5010
                } BIT;
5011
        } SPCMD5;
5012
        union {
5013
                unsigned short WORD;
5014
                struct {
5015
                        unsigned short SCKDEN:1;
5016
                        unsigned short SLNDEN:1;
5017
                        unsigned short SPNDEN:1;
5018
                        unsigned short LSBF:1;
5019
                        unsigned short SPB:4;
5020
                        unsigned short SSLKP:1;
5021
                        unsigned short SSLA:3;
5022
                        unsigned short BRDV:2;
5023
                        unsigned short CPOL:1;
5024
                        unsigned short CPHA:1;
5025
                } BIT;
5026
        } SPCMD6;
5027
        union {
5028
                unsigned short WORD;
5029
                struct {
5030
                        unsigned short SCKDEN:1;
5031
                        unsigned short SLNDEN:1;
5032
                        unsigned short SPNDEN:1;
5033
                        unsigned short LSBF:1;
5034
                        unsigned short SPB:4;
5035
                        unsigned short SSLKP:1;
5036
                        unsigned short SSLA:3;
5037
                        unsigned short BRDV:2;
5038
                        unsigned short CPOL:1;
5039
                        unsigned short CPHA:1;
5040
                } BIT;
5041
        } SPCMD7;
5042
};
5043
 
5044
struct st_rtc {
5045
        union {
5046
                unsigned char BYTE;
5047
                struct {
5048
                        unsigned char F64HZ:1;
5049
                        unsigned char F32HZ:1;
5050
                        unsigned char F16HZ:1;
5051
                        unsigned char F8HZ:1;
5052
                        unsigned char F4HZ:1;
5053
                        unsigned char F2HZ:1;
5054
                        unsigned char F1HZ:1;
5055
                } BIT;
5056
        } R64CNT;
5057
        char           wk0[1];
5058
        union {
5059
                unsigned char BYTE;
5060
                struct {
5061
                        unsigned char :1;
5062
                        unsigned char SEC10:3;
5063
                        unsigned char SEC1:4;
5064
                } BIT;
5065
        } RSECCNT;
5066
        char           wk1[1];
5067
        union {
5068
                unsigned char BYTE;
5069
                struct {
5070
                        unsigned char :1;
5071
                        unsigned char MIN10:3;
5072
                        unsigned char MIN1:4;
5073
                } BIT;
5074
        } RMINCNT;
5075
        char           wk2[1];
5076
        union {
5077
                unsigned char BYTE;
5078
                struct {
5079
                        unsigned char :2;
5080
                        unsigned char HOUR10:2;
5081
                        unsigned char HOUR1:4;
5082
                } BIT;
5083
        } RHRCNT;
5084
        char           wk3[1];
5085
        union {
5086
                unsigned char BYTE;
5087
                struct {
5088
                        unsigned char :5;
5089
                        unsigned char DAY:3;
5090
                } BIT;
5091
        } RWKCNT;
5092
        char           wk4[1];
5093
        union {
5094
                unsigned char BYTE;
5095
                struct {
5096
                        unsigned char :2;
5097
                        unsigned char DAY10:2;
5098
                        unsigned char DAY1:4;
5099
                } BIT;
5100
        } RDAYCNT;
5101
        char           wk5[1];
5102
        union {
5103
                unsigned char BYTE;
5104
                struct {
5105
                        unsigned char :3;
5106
                        unsigned char MON10:1;
5107
                        unsigned char MON1:4;
5108
                } BIT;
5109
        } RMONCNT;
5110
        char           wk6[1];
5111
        union {
5112
                unsigned short WORD;
5113
                struct {
5114
                        unsigned short YEAR1000:4;
5115
                        unsigned short YEAR100:4;
5116
                        unsigned short YEAR10:4;
5117
                        unsigned short YEAR1:4;
5118
                } BIT;
5119
        } RYRCNT;
5120
        union {
5121
                unsigned char BYTE;
5122
                struct {
5123
                        unsigned char ENB:1;
5124
                        unsigned char SEC10:3;
5125
                        unsigned char SEC1:4;
5126
                } BIT;
5127
        } RSECAR;
5128
        char           wk7[1];
5129
        union {
5130
                unsigned char BYTE;
5131
                struct {
5132
                        unsigned char ENB:1;
5133
                        unsigned char MIN10:3;
5134
                        unsigned char MIN1:4;
5135
                } BIT;
5136
        } RMINAR;
5137
        char           wk8[1];
5138
        union {
5139
                unsigned char BYTE;
5140
                struct {
5141
                        unsigned char ENB:1;
5142
                        unsigned char :1;
5143
                        unsigned char HOUR10:2;
5144
                        unsigned char HOUR1:4;
5145
                } BIT;
5146
        } RHRAR;
5147
        char           wk9[1];
5148
        union {
5149
                unsigned char BYTE;
5150
                struct {
5151
                        unsigned char ENB:1;
5152
                        unsigned char :4;
5153
                        unsigned char DAY:3;
5154
                } BIT;
5155
        } RWKAR;
5156
        char           wk10[1];
5157
        union {
5158
                unsigned char BYTE;
5159
                struct {
5160
                        unsigned char ENB:1;
5161
                        unsigned char :1;
5162
                        unsigned char DAY10:2;
5163
                        unsigned char DAY1:4;
5164
                } BIT;
5165
        } RDAYAR;
5166
        char           wk11[1];
5167
        union {
5168
                unsigned char BYTE;
5169
                struct {
5170
                        unsigned char ENB:1;
5171
                        unsigned char :2;
5172
                        unsigned char MON10:1;
5173
                        unsigned char MON1:4;
5174
                } BIT;
5175
        } RMONAR;
5176
        char           wk12[1];
5177
        union {
5178
                unsigned short WORD;
5179
                struct {
5180
                        unsigned short YEAR1000:4;
5181
                        unsigned short YEAR100:4;
5182
                        unsigned short YEAR10:4;
5183
                        unsigned short YEAR1:4;
5184
                } BIT;
5185
        } RYRAR;
5186
        union {
5187
                unsigned char BYTE;
5188
                struct {
5189
                        unsigned char ENB:1;
5190
                } BIT;
5191
        } RYRAREN;
5192
        char           wk13[3];
5193
        union {
5194
                unsigned char BYTE;
5195
                struct {
5196
                        unsigned char :1;
5197
                        unsigned char PES:3;
5198
                        unsigned char :1;
5199
                        unsigned char PIE:1;
5200
                        unsigned char CIE:1;
5201
                        unsigned char AIE:1;
5202
                } BIT;
5203
        } RCR1;
5204
        char           wk14[1];
5205
        union {
5206
                unsigned char BYTE;
5207
                struct {
5208
                        unsigned char :4;
5209
                        unsigned char RTCOE:1;
5210
                        unsigned char ADJ:1;
5211
                        unsigned char RESET:1;
5212
                        unsigned char START:1;
5213
                } BIT;
5214
        } RCR2;
5215
};
5216
 
5217
struct st_s12ad {
5218
        union {
5219
                unsigned char BYTE;
5220
                struct {
5221
                        unsigned char ADST:1;
5222
                        unsigned char ADCS:1;
5223
                        unsigned char :1;
5224
                        unsigned char ADIE:1;
5225
                        unsigned char CKS:2;
5226
                        unsigned char TRGE:1;
5227
                        unsigned char EXTRG:1;
5228
                } BIT;
5229
        } ADCSR;
5230
        char           wk0[3];
5231
        union {
5232
                unsigned short WORD;
5233
                struct {
5234
                        unsigned short :8;
5235
                        unsigned short ANS:8;
5236
                } BIT;
5237
        } ADANS;
5238
        char           wk1[2];
5239
        union {
5240
                unsigned short WORD;
5241
                struct {
5242
                        unsigned short :8;
5243
                        unsigned short ADS:8;
5244
                } BIT;
5245
        } ADADS;
5246
        char           wk2[2];
5247
        union {
5248
                unsigned char BYTE;
5249
                struct {
5250
                        unsigned char :6;
5251
                        unsigned char ADC:2;
5252
                } BIT;
5253
        } ADADC;
5254
        char           wk3[1];
5255
        union {
5256
                unsigned short WORD;
5257
                struct {
5258
                        unsigned short ADRFMT:1;
5259
                        unsigned short :9;
5260
                        unsigned short ACE:1;
5261
                } BIT;
5262
        } ADCER;
5263
        union {
5264
                unsigned char BYTE;
5265
                struct {
5266
                        unsigned char :4;
5267
                        unsigned char ADSTRS:4;
5268
                } BIT;
5269
        } ADSTRGR;
5270
        char           wk4[15];
5271
        unsigned short ADDR0;
5272
        unsigned short ADDR1;
5273
        unsigned short ADDR2;
5274
        unsigned short ADDR3;
5275
        unsigned short ADDR4;
5276
        unsigned short ADDR5;
5277
        unsigned short ADDR6;
5278
        unsigned short ADDR7;
5279
};
5280
 
5281
struct st_sci {
5282
        union {
5283
                unsigned char BYTE;
5284
                struct {
5285
                        unsigned char CM:1;
5286
                        unsigned char CHR:1;
5287
                        unsigned char PE:1;
5288
                        unsigned char PM:1;
5289
                        unsigned char STOP:1;
5290
                        unsigned char MP:1;
5291
                        unsigned char CKS:2;
5292
                } BIT;
5293
        } SMR;
5294
        unsigned char  BRR;
5295
        union {
5296
                unsigned char BYTE;
5297
                struct {
5298
                        unsigned char TIE:1;
5299
                        unsigned char RIE:1;
5300
                        unsigned char TE:1;
5301
                        unsigned char RE:1;
5302
                        unsigned char MPIE:1;
5303
                        unsigned char TEIE:1;
5304
                        unsigned char CKE:2;
5305
                } BIT;
5306
        } SCR;
5307
        unsigned char  TDR;
5308
        union {
5309
                unsigned char BYTE;
5310
                struct {
5311
                        unsigned char TDRE:1;
5312
                        unsigned char RDRF:1;
5313
                        unsigned char ORER:1;
5314
                        unsigned char FER:1;
5315
                        unsigned char PER:1;
5316
                        unsigned char TEND:1;
5317
                        unsigned char MPB:1;
5318
                        unsigned char MPBT:1;
5319
                } BIT;
5320
        } SSR;
5321
        unsigned char  RDR;
5322
        union {
5323
                unsigned char BYTE;
5324
                struct {
5325
                        unsigned char :4;
5326
                        unsigned char SDIR:1;
5327
                        unsigned char SINV:1;
5328
                        unsigned char :1;
5329
                        unsigned char SMIF:1;
5330
                } BIT;
5331
        } SCMR;
5332
        union {
5333
                unsigned char BYTE;
5334
                struct {
5335
                        unsigned char :3;
5336
                        unsigned char ABCS:1;
5337
                        unsigned char :3;
5338
                        unsigned char ACS0:1;
5339
                } BIT;
5340
        } SEMR;
5341
};
5342
 
5343
struct st_smci {
5344
        union {
5345
                unsigned char BYTE;
5346
                struct {
5347
                        unsigned char GM:1;
5348
                        unsigned char BLK:1;
5349
                        unsigned char PE:1;
5350
                        unsigned char PM:1;
5351
                        unsigned char BCP:2;
5352
                        unsigned char CKS:2;
5353
                } BIT;
5354
        } SMR;
5355
        unsigned char  BRR;
5356
        union {
5357
                unsigned char BYTE;
5358
                struct {
5359
                        unsigned char TIE:1;
5360
                        unsigned char RIE:1;
5361
                        unsigned char TE:1;
5362
                        unsigned char RE:1;
5363
                        unsigned char :1;
5364
                        unsigned char TEIE:1;
5365
                        unsigned char CKE:2;
5366
                } BIT;
5367
        } SCR;
5368
        unsigned char  TDR;
5369
        union {
5370
                unsigned char BYTE;
5371
                struct {
5372
                        unsigned char TDRE:1;
5373
                        unsigned char RDRF:1;
5374
                        unsigned char ORER:1;
5375
                        unsigned char ERS:1;
5376
                        unsigned char PER:1;
5377
                        unsigned char TEND:1;
5378
                } BIT;
5379
        } SSR;
5380
        unsigned char  RDR;
5381
        union {
5382
                unsigned char BYTE;
5383
                struct {
5384
                        unsigned char BCP2:1;
5385
                        unsigned char :3;
5386
                        unsigned char SDIR:1;
5387
                        unsigned char SINV:1;
5388
                        unsigned char :1;
5389
                        unsigned char SMIF:1;
5390
                } BIT;
5391
        } SCMR;
5392
};
5393
 
5394
struct st_system {
5395
        union {
5396
                unsigned short WORD;
5397
                struct {
5398
                        unsigned short :8;
5399
                        unsigned short MDE:1;
5400
                        unsigned short :5;
5401
                        unsigned short MD1:1;
5402
                        unsigned short MD0:1;
5403
                } BIT;
5404
        } MDMONR;
5405
        union {
5406
                unsigned short WORD;
5407
                struct {
5408
                        unsigned short :9;
5409
                        unsigned short UBTS:1;
5410
                        unsigned short :1;
5411
                        unsigned short BOTS:1;
5412
                        unsigned short BSW:2;
5413
                        unsigned short EXB:1;
5414
                        unsigned short IROM:1;
5415
                } BIT;
5416
        } MDSR;
5417
        char           wk0[2];
5418
        union {
5419
                unsigned short WORD;
5420
                struct {
5421
                        unsigned short KEY:8;
5422
                        unsigned short :6;
5423
                        unsigned short EXBE:1;
5424
                        unsigned short ROME:1;
5425
                } BIT;
5426
        } SYSCR0;
5427
        union {
5428
                unsigned short WORD;
5429
                struct {
5430
                        unsigned short :15;
5431
                        unsigned short RAME:1;
5432
                } BIT;
5433
        } SYSCR1;
5434
        char           wk1[2];
5435
        union {
5436
                unsigned short WORD;
5437
                struct {
5438
                        unsigned short SSBY:1;
5439
                        unsigned short OPE:1;
5440
                        unsigned short :1;
5441
                        unsigned short STS:5;
5442
                } BIT;
5443
        } SBYCR;
5444
        char           wk2[2];
5445
        union {
5446
                unsigned long LONG;
5447
                struct {
5448
                        unsigned long ACSE:1;
5449
                        unsigned long :1;
5450
                        unsigned long MSTPA29:1;
5451
                        unsigned long MSTPA28:1;
5452
                        unsigned long :4;
5453
                        unsigned long MSTPA23:1;
5454
                        unsigned long MSTPA22:1;
5455
                        unsigned long :2;
5456
                        unsigned long MSTPA19:1;
5457
                        unsigned long :1;
5458
                        unsigned long MSTPA17:1;
5459
                        unsigned long :1;
5460
                        unsigned long MSTPA15:1;
5461
                        unsigned long MSTPA14:1;
5462
                        unsigned long :2;
5463
                        unsigned long MSTPA11:1;
5464
                        unsigned long MSTPA10:1;
5465
                        unsigned long MSTPA9:1;
5466
                        unsigned long MSTPA8:1;
5467
                        unsigned long :2;
5468
                        unsigned long MSTPA5:1;
5469
                        unsigned long MSTPA4:1;
5470
                } BIT;
5471
        } MSTPCRA;
5472
        union {
5473
                unsigned long LONG;
5474
                struct {
5475
                        unsigned long MSTPB31:1;
5476
                        unsigned long MSTPB30:1;
5477
                        unsigned long MSTPB29:1;
5478
                        unsigned long MSTPB28:1;
5479
                        unsigned long :1;
5480
                        unsigned long MSTPB26:1;
5481
                        unsigned long MSTPB25:1;
5482
                        unsigned long :1;
5483
                        unsigned long MSTPB23:1;
5484
                        unsigned long :1;
5485
                        unsigned long MSTPB21:1;
5486
                        unsigned long MSTPB20:1;
5487
                        unsigned long MSTPB19:1;
5488
                        unsigned long MSTPB18:1;
5489
                        unsigned long MSTPB17:1;
5490
                        unsigned long MSTPB16:1;
5491
                        unsigned long MSTPB15:1;
5492
                        unsigned long :14;
5493
                        unsigned long MSTPB0:1;
5494
                } BIT;
5495
        } MSTPCRB;
5496
        union {
5497
                unsigned long LONG;
5498
                struct {
5499
                        unsigned long :30;
5500
                        unsigned long MSTPC1:1;
5501
                        unsigned long MSTPC0:1;
5502
                } BIT;
5503
        } MSTPCRC;
5504
        char           wk3[4];
5505
        union {
5506
                unsigned long LONG;
5507
                struct {
5508
                        unsigned long :4;
5509
                        unsigned long ICK:4;
5510
                        unsigned long PSTOP1:1;
5511
                        unsigned long PSTOP0:1;
5512
                        unsigned long :2;
5513
                        unsigned long BCK:4;
5514
                        unsigned long :4;
5515
                        unsigned long PCK:4;
5516
                } BIT;
5517
        } SCKCR;
5518
        char           wk4[12];
5519
        union {
5520
                unsigned char BYTE;
5521
                struct {
5522
                        unsigned char :7;
5523
                        unsigned char BCLKDIV:1;
5524
                } BIT;
5525
        } BCKCR;
5526
        char           wk5[15];
5527
        union {
5528
                unsigned short WORD;
5529
                struct {
5530
                        unsigned short KEY:8;
5531
                        unsigned short OSTDE:1;
5532
                        unsigned short OSTDF:1;
5533
                } BIT;
5534
        } OSTDCR;
5535
        char           wk6[49726];
5536
        union {
5537
                unsigned char BYTE;
5538
                struct {
5539
                        unsigned char DPSBY:1;
5540
                        unsigned char IOKEEP:1;
5541
                        unsigned char RAMCUT2:1;
5542
                        unsigned char RAMCUT1:1;
5543
                        unsigned char :3;
5544
                        unsigned char RAMCUT0:1;
5545
                } BIT;
5546
        } DPSBYCR;
5547
        union {
5548
                unsigned char BYTE;
5549
                struct {
5550
                        unsigned char :2;
5551
                        unsigned char WTSTS:6;
5552
                } BIT;
5553
        } DPSWCR;
5554
        union {
5555
                unsigned char BYTE;
5556
                struct {
5557
                        unsigned char DNMIE:1;
5558
                        unsigned char DUSBE:1;
5559
                        unsigned char DRTCE:1;
5560
                        unsigned char DLVDE:1;
5561
                        unsigned char DIRQ3E:1;
5562
                        unsigned char DIRQ2E:1;
5563
                        unsigned char DIRQ1E:1;
5564
                        unsigned char DIRQ0E:1;
5565
                } BIT;
5566
        } DPSIER;
5567
        union {
5568
                unsigned char BYTE;
5569
                struct {
5570
                        unsigned char DNMIF:1;
5571
                        unsigned char DUSBF:1;
5572
                        unsigned char DRTCFF:1;
5573
                        unsigned char DLVDF:1;
5574
                        unsigned char DIRQ3F:1;
5575
                        unsigned char DIRQ2F:1;
5576
                        unsigned char DIRQ1F:1;
5577
                        unsigned char DIRQ0F:1;
5578
                } BIT;
5579
        } DPSIFR;
5580
        union {
5581
                unsigned char BYTE;
5582
                struct {
5583
                        unsigned char DNMIEG:1;
5584
                        unsigned char :3;
5585
                        unsigned char DIRQ3EG:1;
5586
                        unsigned char DIRQ2EG:1;
5587
                        unsigned char DIRQ1EG:1;
5588
                        unsigned char DIRQ0EG:1;
5589
                } BIT;
5590
        } DPSIEGR;
5591
        union {
5592
                unsigned char BYTE;
5593
                struct {
5594
                        unsigned char DPSRSTF:1;
5595
                        unsigned char :4;
5596
                        unsigned char LVD2F:1;
5597
                        unsigned char LVD1F:1;
5598
                        unsigned char PORF:1;
5599
                } BIT;
5600
        } RSTSR;
5601
        char           wk7[4];
5602
        union {
5603
                unsigned char BYTE;
5604
                struct {
5605
                        unsigned char :7;
5606
                        unsigned char SUBSTOP:1;
5607
                } BIT;
5608
        } SUBOSCCR;
5609
        char           wk8[1];
5610
        unsigned char  LVDKEYR;
5611
        union {
5612
                unsigned char BYTE;
5613
                struct {
5614
                        unsigned char LVD2E:1;
5615
                        unsigned char LVD2RI:1;
5616
                        unsigned char :2;
5617
                        unsigned char LVD1E:1;
5618
                        unsigned char LVD1RI:1;
5619
                } BIT;
5620
        } LVDCR;
5621
        char           wk9[2];
5622
        unsigned char  DPSBKR[32];
5623
};
5624
 
5625
struct st_tmr0 {
5626
        union {
5627
                unsigned char BYTE;
5628
                struct {
5629
                        unsigned char CMIEB:1;
5630
                        unsigned char CMIEA:1;
5631
                        unsigned char OVIE:1;
5632
                        unsigned char CCLR:2;
5633
                } BIT;
5634
        } TCR;
5635
        char           wk0[1];
5636
        union {
5637
                unsigned char BYTE;
5638
                struct {
5639
                        unsigned char :3;
5640
                        unsigned char ADTE:1;
5641
                        unsigned char OSB:2;
5642
                        unsigned char OSA:2;
5643
                } BIT;
5644
        } TCSR;
5645
        char           wk1[1];
5646
        unsigned char  TCORA;
5647
        char           wk2[1];
5648
        unsigned char  TCORB;
5649
        char           wk3[1];
5650
        unsigned char  TCNT;
5651
        char           wk4[1];
5652
        union {
5653
                unsigned char BYTE;
5654
                struct {
5655
                        unsigned char TMRIS:1;
5656
                        unsigned char :2;
5657
                        unsigned char CSS:2;
5658
                        unsigned char CKS:3;
5659
                } BIT;
5660
        } TCCR;
5661
};
5662
 
5663
struct st_tmr1 {
5664
        union {
5665
                unsigned char BYTE;
5666
                struct {
5667
                        unsigned char CMIEB:1;
5668
                        unsigned char CMIEA:1;
5669
                        unsigned char OVIE:1;
5670
                        unsigned char CCLR:2;
5671
                } BIT;
5672
        } TCR;
5673
        char           wk0[1];
5674
        union {
5675
                unsigned char BYTE;
5676
                struct {
5677
                        unsigned char :4;
5678
                        unsigned char OSB:2;
5679
                        unsigned char OSA:2;
5680
                } BIT;
5681
        } TCSR;
5682
        char           wk1[1];
5683
        unsigned char  TCORA;
5684
        char           wk2[1];
5685
        unsigned char  TCORB;
5686
        char           wk3[1];
5687
        unsigned char  TCNT;
5688
        char           wk4[1];
5689
        union {
5690
                unsigned char BYTE;
5691
                struct {
5692
                        unsigned char TMRIS:1;
5693
                        unsigned char :2;
5694
                        unsigned char CSS:2;
5695
                        unsigned char CKS:3;
5696
                } BIT;
5697
        } TCCR;
5698
};
5699
 
5700
struct st_tmr01 {
5701
        unsigned short TCORA;
5702
        unsigned short TCORB;
5703
        unsigned short TCNT;
5704
        unsigned short TCCR;
5705
};
5706
 
5707
struct st_usb {
5708
        union {
5709
                unsigned long LONG;
5710
                struct {
5711
                        unsigned long DVSTS1:1;
5712
                        unsigned long :1;
5713
                        unsigned long DOVCB1:1;
5714
                        unsigned long DOVCA1:1;
5715
                        unsigned long :2;
5716
                        unsigned long DM1:1;
5717
                        unsigned long DP1:1;
5718
                        unsigned long DVBSTS0:1;
5719
                        unsigned long :1;
5720
                        unsigned long DOVCB0:1;
5721
                        unsigned long DOVCA0:1;
5722
                        unsigned long :2;
5723
                        unsigned long DM0:1;
5724
                        unsigned long DP0:1;
5725
                        unsigned long :3;
5726
                        unsigned long FIXPHY1:1;
5727
                        unsigned long :3;
5728
                        unsigned long SRPC1:1;
5729
                        unsigned long :3;
5730
                        unsigned long FIXPHY0:1;
5731
                        unsigned long :3;
5732
                        unsigned long SRPC0:1;
5733
                } BIT;
5734
        } DPUSR0R;
5735
        union {
5736
                unsigned long LONG;
5737
                struct {
5738
                        unsigned long DVBINT1:1;
5739
                        unsigned long :1;
5740
                        unsigned long DOVRCRB1:1;
5741
                        unsigned long DOVRCRA1:1;
5742
                        unsigned long :2;
5743
                        unsigned long DMINT1:1;
5744
                        unsigned long DPINT1:1;
5745
                        unsigned long DVBINT0:1;
5746
                        unsigned long :1;
5747
                        unsigned long DOVRCRB0:1;
5748
                        unsigned long DOVRCRA0:1;
5749
                        unsigned long :2;
5750
                        unsigned long DMINT0:1;
5751
                        unsigned long DPINT0:1;
5752
                        unsigned long DVBSE1:1;
5753
                        unsigned long :1;
5754
                        unsigned long DOVRCRBE1:1;
5755
                        unsigned long DOVRCRAE1:1;
5756
                        unsigned long :2;
5757
                        unsigned long DMINTE1:1;
5758
                        unsigned long DPINTE1:1;
5759
                        unsigned long DVBSE0:1;
5760
                        unsigned long :1;
5761
                        unsigned long DOVRCRBE0:1;
5762
                        unsigned long DOVRCRAE0:1;
5763
                        unsigned long :2;
5764
                        unsigned long DMINTE0:1;
5765
                        unsigned long DPINTE0:1;
5766
                } BIT;
5767
        } DPUSR1R;
5768
};
5769
 
5770
struct st_usb0 {
5771
        union {
5772
                unsigned short WORD;
5773
                struct {
5774
                        unsigned short :5;
5775
                        unsigned short SCKE:1;
5776
                        unsigned short :3;
5777
                        unsigned short DCFM:1;
5778
                        unsigned short DRPD:1;
5779
                        unsigned short DPRPU:1;
5780
                        unsigned short :3;
5781
                        unsigned short USBE:1;
5782
                } BIT;
5783
        } SYSCFG;
5784
        char           wk0[2];
5785
        union {
5786
                unsigned short WORD;
5787
                struct {
5788
                        unsigned short OVCMON:2;
5789
                        unsigned short :7;
5790
                        unsigned short HTACT:1;
5791
                        unsigned short :3;
5792
                        unsigned short IDMON:1;
5793
                        unsigned short LNST:2;
5794
                } BIT;
5795
        } SYSSTS0;
5796
        char           wk1[2];
5797
        union {
5798
                unsigned short WORD;
5799
                struct {
5800
                        unsigned short :4;
5801
                        unsigned short HNPBTOA:1;
5802
                        unsigned short EXICEN:1;
5803
                        unsigned short VBUSEN:1;
5804
                        unsigned short WKUP:1;
5805
                        unsigned short RWUPE:1;
5806
                        unsigned short USBRST:1;
5807
                        unsigned short RESUME:1;
5808
                        unsigned short UACT:1;
5809
                        unsigned short :1;
5810
                        unsigned short RHST:3;
5811
                } BIT;
5812
        } DVSTCTR0;
5813
        char           wk2[10];
5814
        union {
5815
                unsigned short WORD;
5816
                struct {
5817
                        unsigned char L;
5818
                        unsigned char H;
5819
                } BYTE;
5820
        } CFIFO;
5821
        char           wk3[2];
5822
        union {
5823
                unsigned short WORD;
5824
                struct {
5825
                        unsigned char L;
5826
                        unsigned char H;
5827
                } BYTE;
5828
        } D0FIFO;
5829
        char           wk4[2];
5830
        union {
5831
                unsigned short WORD;
5832
                struct {
5833
                        unsigned char L;
5834
                        unsigned char H;
5835
                } BYTE;
5836
        } D1FIFO;
5837
        char           wk5[2];
5838
        union {
5839
                unsigned short WORD;
5840
                struct {
5841
                        unsigned short RCNT:1;
5842
                        unsigned short REW:1;
5843
                        unsigned short :3;
5844
                        unsigned short MBW:1;
5845
                        unsigned short :1;
5846
                        unsigned short BIGEND:1;
5847
                        unsigned short :2;
5848
                        unsigned short ISEL:1;
5849
                        unsigned short :1;
5850
                        unsigned short CURPIPE:4;
5851
                } BIT;
5852
        } CFIFOSEL;
5853
        union {
5854
                unsigned short WORD;
5855
                struct {
5856
                        unsigned short BVAL:1;
5857
                        unsigned short BCLR:1;
5858
                        unsigned short FRDY:1;
5859
                        unsigned short :4;
5860
                        unsigned short DTLN:9;
5861
                } BIT;
5862
        } CFIFOCTR;
5863
        char           wk6[4];
5864
        union {
5865
                unsigned short WORD;
5866
                struct {
5867
                        unsigned short RCNT:1;
5868
                        unsigned short REW:1;
5869
                        unsigned short DCLRM:1;
5870
                        unsigned short DREQE:1;
5871
                        unsigned short :1;
5872
                        unsigned short MBW:1;
5873
                        unsigned short :1;
5874
                        unsigned short BIGEND:1;
5875
                        unsigned short :4;
5876
                        unsigned short CURPIPE:4;
5877
                } BIT;
5878
        } D0FIFOSEL;
5879
        union {
5880
                unsigned short WORD;
5881
                struct {
5882
                        unsigned short BVAL:1;
5883
                        unsigned short BCLR:1;
5884
                        unsigned short FRDY:1;
5885
                        unsigned short :4;
5886
                        unsigned short DTLN:9;
5887
                } BIT;
5888
        } D0FIFOCTR;
5889
        union {
5890
                unsigned short WORD;
5891
                struct {
5892
                        unsigned short RCNT:1;
5893
                        unsigned short REW:1;
5894
                        unsigned short DCLRM:1;
5895
                        unsigned short DREQE:1;
5896
                        unsigned short :1;
5897
                        unsigned short MBW:1;
5898
                        unsigned short :1;
5899
                        unsigned short BIGEND:1;
5900
                        unsigned short :4;
5901
                        unsigned short CURPIPE:4;
5902
                } BIT;
5903
        } D1FIFOSEL;
5904
        union {
5905
                unsigned short WORD;
5906
                struct {
5907
                        unsigned short BVAL:1;
5908
                        unsigned short BCLR:1;
5909
                        unsigned short FRDY:1;
5910
                        unsigned short :4;
5911
                        unsigned short DTLN:9;
5912
                } BIT;
5913
        } D1FIFOCTR;
5914
        union {
5915
                unsigned short WORD;
5916
                struct {
5917
                        unsigned short VBSE:1;
5918
                        unsigned short RSME:1;
5919
                        unsigned short SOFE:1;
5920
                        unsigned short DVSE:1;
5921
                        unsigned short CTRE:1;
5922
                        unsigned short BEMPE:1;
5923
                        unsigned short NRDYE:1;
5924
                        unsigned short BRDYE:1;
5925
                } BIT;
5926
        } INTENB0;
5927
        union {
5928
                unsigned short WORD;
5929
                struct {
5930
                        unsigned short OVRCRE:1;
5931
                        unsigned short BCHGE:1;
5932
                        unsigned short :1;
5933
                        unsigned short DTCHE:1;
5934
                        unsigned short ATTCHE:1;
5935
                        unsigned short :4;
5936
                        unsigned short EOFERRE:1;
5937
                        unsigned short SIGNE:1;
5938
                        unsigned short SACKE:1;
5939
                } BIT;
5940
        } INTENB1;
5941
        char           wk7[2];
5942
        union {
5943
                unsigned short WORD;
5944
                struct {
5945
                        unsigned short :6;
5946
                        unsigned short PIPE9BRDYE:1;
5947
                        unsigned short PIPE8BRDYE:1;
5948
                        unsigned short PIPE7BRDYE:1;
5949
                        unsigned short PIPE6BRDYE:1;
5950
                        unsigned short PIPE5BRDYE:1;
5951
                        unsigned short PIPE4BRDYE:1;
5952
                        unsigned short PIPE3BRDYE:1;
5953
                        unsigned short PIPE2BRDYE:1;
5954
                        unsigned short PIPE1BRDYE:1;
5955
                        unsigned short PIPE0BRDYE:1;
5956
                } BIT;
5957
        } BRDYENB;
5958
        union {
5959
                unsigned short WORD;
5960
                struct {
5961
                        unsigned short :6;
5962
                        unsigned short PIPE9BRDYE:1;
5963
                        unsigned short PIPE8BRDYE:1;
5964
                        unsigned short PIPE7BRDYE:1;
5965
                        unsigned short PIPE6BRDYE:1;
5966
                        unsigned short PIPE5BRDYE:1;
5967
                        unsigned short PIPE4BRDYE:1;
5968
                        unsigned short PIPE3BRDYE:1;
5969
                        unsigned short PIPE2BRDYE:1;
5970
                        unsigned short PIPE1BRDYE:1;
5971
                        unsigned short PIPE0BRDYE:1;
5972
                } BIT;
5973
        } NRDYENB;
5974
        union {
5975
                unsigned short WORD;
5976
                struct {
5977
                        unsigned short :6;
5978
                        unsigned short PIPE9BEMPE:1;
5979
                        unsigned short PIPE8BEMPE:1;
5980
                        unsigned short PIPE7BEMPE:1;
5981
                        unsigned short PIPE6BEMPE:1;
5982
                        unsigned short PIPE5BEMPE:1;
5983
                        unsigned short PIPE4BEMPE:1;
5984
                        unsigned short PIPE3BEMPE:1;
5985
                        unsigned short PIPE2BEMPE:1;
5986
                        unsigned short PIPE1BEMPE:1;
5987
                        unsigned short PIPE0BEMPE:1;
5988
                } BIT;
5989
        } BEMPENB;
5990
        union {
5991
                unsigned short WORD;
5992
                struct {
5993
                        unsigned short :7;
5994
                        unsigned short TRNENSEL:1;
5995
                        unsigned short :1;
5996
                        unsigned short BRDYM:1;
5997
                        unsigned short :1;
5998
                        unsigned short EDGESTS:1;
5999
                } BIT;
6000
        } SOFCFG;
6001
        char           wk8[2];
6002
        union {
6003
                unsigned short WORD;
6004
                struct {
6005
                        unsigned short VBINT:1;
6006
                        unsigned short RESM:1;
6007
                        unsigned short SOFR:1;
6008
                        unsigned short DVST:1;
6009
                        unsigned short CTRT:1;
6010
                        unsigned short BEMP:1;
6011
                        unsigned short NRDY:1;
6012
                        unsigned short BRDY:1;
6013
                        unsigned short VBSTS:1;
6014
                        unsigned short DVSQ:3;
6015
                        unsigned short VALID:1;
6016
                        unsigned short CTSQ:3;
6017
                } BIT;
6018
        } INTSTS0;
6019
        union {
6020
                unsigned short WORD;
6021
                struct {
6022
                        unsigned short OVRCR:1;
6023
                        unsigned short BCHG:1;
6024
                        unsigned short :1;
6025
                        unsigned short DTCH:1;
6026
                        unsigned short ATTCH:1;
6027
                        unsigned short :4;
6028
                        unsigned short EOFERR:1;
6029
                        unsigned short SIGN:1;
6030
                        unsigned short SACK:1;
6031
                } BIT;
6032
        } INTSTS1;
6033
        char           wk9[2];
6034
        union {
6035
                unsigned short WORD;
6036
                struct {
6037
                        unsigned short :6;
6038
                        unsigned short PIPE9BRDY:1;
6039
                        unsigned short PIPE8BRDY:1;
6040
                        unsigned short PIPE7BRDY:1;
6041
                        unsigned short PIPE6BRDY:1;
6042
                        unsigned short PIPE5BRDY:1;
6043
                        unsigned short PIPE4BRDY:1;
6044
                        unsigned short PIPE3BRDY:1;
6045
                        unsigned short PIPE2BRDY:1;
6046
                        unsigned short PIPE1BRDY:1;
6047
                        unsigned short PIPE0BRDY:1;
6048
                } BIT;
6049
        } BRDYSTS;
6050
        union {
6051
                unsigned short WORD;
6052
                struct {
6053
                        unsigned short :6;
6054
                        unsigned short PIPE9BRDY:1;
6055
                        unsigned short PIPE8BRDY:1;
6056
                        unsigned short PIPE7BRDY:1;
6057
                        unsigned short PIPE6BRDY:1;
6058
                        unsigned short PIPE5BRDY:1;
6059
                        unsigned short PIPE4BRDY:1;
6060
                        unsigned short PIPE3BRDY:1;
6061
                        unsigned short PIPE2BRDY:1;
6062
                        unsigned short PIPE1BRDY:1;
6063
                        unsigned short PIPE0BRDY:1;
6064
                } BIT;
6065
        } NRDYSTS;
6066
        union {
6067
                unsigned short WORD;
6068
                struct {
6069
                        unsigned short :6;
6070
                        unsigned short PIPE9BENP:1;
6071
                        unsigned short PIPE8BENP:1;
6072
                        unsigned short PIPE7BENP:1;
6073
                        unsigned short PIPE6BENP:1;
6074
                        unsigned short PIPE5BENP:1;
6075
                        unsigned short PIPE4BENP:1;
6076
                        unsigned short PIPE3BENP:1;
6077
                        unsigned short PIPE2BENP:1;
6078
                        unsigned short PIPE1BENP:1;
6079
                        unsigned short PIPE0BENP:1;
6080
                } BIT;
6081
        } BEMPSTS;
6082
        union {
6083
                unsigned short WORD;
6084
                struct {
6085
                        unsigned short OVRN:1;
6086
                        unsigned short CRCE:1;
6087
                        unsigned short :3;
6088
                        unsigned short FRNM:11;
6089
                } BIT;
6090
        } FRMNUM;
6091
        union {
6092
                unsigned short WORD;
6093
                struct {
6094
                        unsigned short DVCHG:1;
6095
                } BIT;
6096
        } DVCHGR;
6097
        union {
6098
                unsigned short WORD;
6099
                struct {
6100
                        unsigned short :4;
6101
                        unsigned short STSRECOV:4;
6102
                        unsigned short :1;
6103
                        unsigned short USBADDR:7;
6104
                } BIT;
6105
        } USBADDR;
6106
        char           wk10[2];
6107
        union {
6108
                unsigned short WORD;
6109
                struct {
6110
                        unsigned short BREQUEST:8;
6111
                        unsigned short BMREQUESTTYPE:8;
6112
                } BIT;
6113
        } USBREQ;
6114
        unsigned short USBVAL;
6115
        unsigned short USBINDX;
6116
        unsigned short USBLENG;
6117
        union {
6118
                unsigned short WORD;
6119
                struct {
6120
                        unsigned short :8;
6121
                        unsigned short SHTNAK:1;
6122
                        unsigned short :2;
6123
                        unsigned short DIR:1;
6124
                } BIT;
6125
        } DCPCFG;
6126
        union {
6127
                unsigned short WORD;
6128
                struct {
6129
                        unsigned short DEVSEL:4;
6130
                        unsigned short :5;
6131
                        unsigned short MXPS:7;
6132
                } BIT;
6133
        } DCPMAXP;
6134
        union {
6135
                unsigned short WORD;
6136
                struct {
6137
                        unsigned short BSTS:1;
6138
                        unsigned short SUREQ:1;
6139
                        unsigned short :2;
6140
                        unsigned short SUREQCLR:1;
6141
                        unsigned short :2;
6142
                        unsigned short SQCLR:1;
6143
                        unsigned short SQSET:1;
6144
                        unsigned short SQMON:1;
6145
                        unsigned short PBUSY:1;
6146
                        unsigned short :2;
6147
                        unsigned short CCPL:1;
6148
                        unsigned short PID:2;
6149
                } BIT;
6150
        } DCPCTR;
6151
        char           wk11[2];
6152
        union {
6153
                unsigned short WORD;
6154
                struct {
6155
                        unsigned short :12;
6156
                        unsigned short PIPESEL:4;
6157
                } BIT;
6158
        } PIPESEL;
6159
        char           wk12[2];
6160
        union {
6161
                unsigned short WORD;
6162
                struct {
6163
                        unsigned short TYPE:2;
6164
                        unsigned short :3;
6165
                        unsigned short BFRE:1;
6166
                        unsigned short DBLB:1;
6167
                        unsigned short :1;
6168
                        unsigned short SHTNAK:1;
6169
                        unsigned short :2;
6170
                        unsigned short DIR:1;
6171
                        unsigned short EPNUM:4;
6172
                } BIT;
6173
        } PIPECFG;
6174
        char           wk13[2];
6175
        union {
6176
                unsigned short WORD;
6177
                struct {
6178
                        unsigned short DEVSEL:4;
6179
                        unsigned short :3;
6180
                        unsigned short MXPS:9;
6181
                } BIT;
6182
        } PIPEMAXP;
6183
        union {
6184
                unsigned short WORD;
6185
                struct {
6186
                        unsigned short :3;
6187
                        unsigned short IFIS:1;
6188
                        unsigned short :9;
6189
                        unsigned short IITV:3;
6190
                } BIT;
6191
        } PIPEPERI;
6192
        union {
6193
                unsigned short WORD;
6194
                struct {
6195
                        unsigned short BSTS:1;
6196
                        unsigned short INBUFM:1;
6197
                        unsigned short :3;
6198
                        unsigned short ATREPM:1;
6199
                        unsigned short ACLRM:1;
6200
                        unsigned short SQCLR:1;
6201
                        unsigned short SQSET:1;
6202
                        unsigned short SQMON:1;
6203
                        unsigned short PBUSY:1;
6204
                        unsigned short :3;
6205
                        unsigned short PID:2;
6206
                } BIT;
6207
        } PIPE1CTR;
6208
        union {
6209
                unsigned short WORD;
6210
                struct {
6211
                        unsigned short BSTS:1;
6212
                        unsigned short INBUFM:1;
6213
                        unsigned short :3;
6214
                        unsigned short ATREPM:1;
6215
                        unsigned short ACLRM:1;
6216
                        unsigned short SQCLR:1;
6217
                        unsigned short SQSET:1;
6218
                        unsigned short SQMON:1;
6219
                        unsigned short PBUSY:1;
6220
                        unsigned short :3;
6221
                        unsigned short PID:2;
6222
                } BIT;
6223
        } PIPE2CTR;
6224
        union {
6225
                unsigned short WORD;
6226
                struct {
6227
                        unsigned short BSTS:1;
6228
                        unsigned short INBUFM:1;
6229
                        unsigned short :3;
6230
                        unsigned short ATREPM:1;
6231
                        unsigned short ACLRM:1;
6232
                        unsigned short SQCLR:1;
6233
                        unsigned short SQSET:1;
6234
                        unsigned short SQMON:1;
6235
                        unsigned short PBUSY:1;
6236
                        unsigned short :3;
6237
                        unsigned short PID:2;
6238
                } BIT;
6239
        } PIPE3CTR;
6240
        union {
6241
                unsigned short WORD;
6242
                struct {
6243
                        unsigned short BSTS:1;
6244
                        unsigned short INBUFM:1;
6245
                        unsigned short :3;
6246
                        unsigned short ATREPM:1;
6247
                        unsigned short ACLRM:1;
6248
                        unsigned short SQCLR:1;
6249
                        unsigned short SQSET:1;
6250
                        unsigned short SQMON:1;
6251
                        unsigned short PBUSY:1;
6252
                        unsigned short :3;
6253
                        unsigned short PID:2;
6254
                } BIT;
6255
        } PIPE4CTR;
6256
        union {
6257
                unsigned short WORD;
6258
                struct {
6259
                        unsigned short BSTS:1;
6260
                        unsigned short INBUFM:1;
6261
                        unsigned short :3;
6262
                        unsigned short ATREPM:1;
6263
                        unsigned short ACLRM:1;
6264
                        unsigned short SQCLR:1;
6265
                        unsigned short SQSET:1;
6266
                        unsigned short SQMON:1;
6267
                        unsigned short PBUSY:1;
6268
                        unsigned short :3;
6269
                        unsigned short PID:2;
6270
                } BIT;
6271
        } PIPE5CTR;
6272
        union {
6273
                unsigned short WORD;
6274
                struct {
6275
                        unsigned short BSTS:1;
6276
                        unsigned short :5;
6277
                        unsigned short ACLRM:1;
6278
                        unsigned short SQCLR:1;
6279
                        unsigned short SQSET:1;
6280
                        unsigned short SQMON:1;
6281
                        unsigned short PBUSY:1;
6282
                        unsigned short :3;
6283
                        unsigned short PID:2;
6284
                } BIT;
6285
        } PIPE6CTR;
6286
        union {
6287
                unsigned short WORD;
6288
                struct {
6289
                        unsigned short BSTS:1;
6290
                        unsigned short :5;
6291
                        unsigned short ACLRM:1;
6292
                        unsigned short SQCLR:1;
6293
                        unsigned short SQSET:1;
6294
                        unsigned short SQMON:1;
6295
                        unsigned short PBUSY:1;
6296
                        unsigned short :3;
6297
                        unsigned short PID:2;
6298
                } BIT;
6299
        } PIPE7CTR;
6300
        union {
6301
                unsigned short WORD;
6302
                struct {
6303
                        unsigned short BSTS:1;
6304
                        unsigned short :5;
6305
                        unsigned short ACLRM:1;
6306
                        unsigned short SQCLR:1;
6307
                        unsigned short SQSET:1;
6308
                        unsigned short SQMON:1;
6309
                        unsigned short PBUSY:1;
6310
                        unsigned short :3;
6311
                        unsigned short PID:2;
6312
                } BIT;
6313
        } PIPE8CTR;
6314
        union {
6315
                unsigned short WORD;
6316
                struct {
6317
                        unsigned short BSTS:1;
6318
                        unsigned short :5;
6319
                        unsigned short ACLRM:1;
6320
                        unsigned short SQCLR:1;
6321
                        unsigned short SQSET:1;
6322
                        unsigned short SQMON:1;
6323
                        unsigned short PBUSY:1;
6324
                        unsigned short :3;
6325
                        unsigned short PID:2;
6326
                } BIT;
6327
        } PIPE9CTR;
6328
        char           wk14[14];
6329
        union {
6330
                unsigned short WORD;
6331
                struct {
6332
                        unsigned short :6;
6333
                        unsigned short TRENB:1;
6334
                        unsigned short TRCLR:1;
6335
                } BIT;
6336
        } PIPE1TRE;
6337
        unsigned short PIPE1TRN;
6338
        union {
6339
                unsigned short WORD;
6340
                struct {
6341
                        unsigned short :6;
6342
                        unsigned short TRENB:1;
6343
                        unsigned short TRCLR:1;
6344
                } BIT;
6345
        } PIPE2TRE;
6346
        unsigned short PIPE2TRN;
6347
        union {
6348
                unsigned short WORD;
6349
                struct {
6350
                        unsigned short :6;
6351
                        unsigned short TRENB:1;
6352
                        unsigned short TRCLR:1;
6353
                } BIT;
6354
        } PIPE3TRE;
6355
        unsigned short PIPE3TRN;
6356
        union {
6357
                unsigned short WORD;
6358
                struct {
6359
                        unsigned short :6;
6360
                        unsigned short TRENB:1;
6361
                        unsigned short TRCLR:1;
6362
                } BIT;
6363
        } PIPE4TRE;
6364
        unsigned short PIPE4TRN;
6365
        union {
6366
                unsigned short WORD;
6367
                struct {
6368
                        unsigned short :6;
6369
                        unsigned short TRENB:1;
6370
                        unsigned short TRCLR:1;
6371
                } BIT;
6372
        } PIPE5TRE;
6373
        unsigned short PIPE5TRN;
6374
        char           wk15[44];
6375
        union {
6376
                unsigned short WORD;
6377
                struct {
6378
                        unsigned short :8;
6379
                        unsigned short USBSPD:2;
6380
                } BIT;
6381
        } DEVADD0;
6382
        union {
6383
                unsigned short WORD;
6384
                struct {
6385
                        unsigned short :8;
6386
                        unsigned short USBSPD:2;
6387
                } BIT;
6388
        } DEVADD1;
6389
        union {
6390
                unsigned short WORD;
6391
                struct {
6392
                        unsigned short :8;
6393
                        unsigned short USBSPD:2;
6394
                } BIT;
6395
        } DEVADD2;
6396
        union {
6397
                unsigned short WORD;
6398
                struct {
6399
                        unsigned short :8;
6400
                        unsigned short USBSPD:2;
6401
                } BIT;
6402
        } DEVADD3;
6403
        union {
6404
                unsigned short WORD;
6405
                struct {
6406
                        unsigned short :8;
6407
                        unsigned short USBSPD:2;
6408
                } BIT;
6409
        } DEVADD4;
6410
        union {
6411
                unsigned short WORD;
6412
                struct {
6413
                        unsigned short :8;
6414
                        unsigned short USBSPD:2;
6415
                } BIT;
6416
        } DEVADD5;
6417
};
6418
 
6419
union un_wdt {
6420
        struct {
6421
                union {
6422
                        unsigned char BYTE;
6423
                        struct {
6424
                                unsigned char :1;
6425
                                unsigned char TMS:1;
6426
                                unsigned char TME:1;
6427
                                unsigned char :2;
6428
                                unsigned char CKS:3;
6429
                        } BIT;
6430
                } TCSR;
6431
                unsigned char  TCNT;
6432
                char           wk0[1];
6433
                union {
6434
                        unsigned char BYTE;
6435
                        struct {
6436
                                unsigned char WOVF:1;
6437
                                unsigned char RSTE:1;
6438
                        } BIT;
6439
                } RSTCSR;
6440
        } READ;
6441
        struct {
6442
                unsigned short WINA;
6443
                unsigned short WINB;
6444
        } WRITE;
6445
};
6446
 
6447
enum enum_ir {
6448
IR_BSC_BUSERR=16,IR_FCU_FIFERR=21,IR_FCU_FRDYI=23,
6449
IR_ICU_SWINT=27,
6450
IR_CMT0_CMI0,
6451
IR_CMT1_CMI1,
6452
IR_CMT2_CMI2,
6453
IR_CMT3_CMI3,
6454
IR_ETHER_EINT,
6455
IR_USB0_D0FIFO0=36,IR_USB0_D1FIFO0,IR_USB0_USBI0,
6456
IR_USB1_D0FIFO1=40,IR_USB1_D1FIFO1,IR_USB1_USBI1,
6457
IR_RSPI0_SPEI0=44,IR_RSPI0_SPRI0,IR_RSPI0_SPTI0,IR_RSPI0_SPII0,
6458
IR_RSPI1_SPEI1,IR_RSPI1_SPRI1,IR_RSPI1_SPTI1,IR_RSPI1_SPII1,
6459
IR_CAN0_ERS0=56,IR_CAN0_RXF0,IR_CAN0_TXF0,IR_CAN0_RXM0,IR_CAN0_TXM0,
6460
IR_RTC_PRD=62,IR_RTC_CUP,
6461
IR_ICU_IRQ0,IR_ICU_IRQ1,IR_ICU_IRQ2,IR_ICU_IRQ3,IR_ICU_IRQ4,IR_ICU_IRQ5,IR_ICU_IRQ6,IR_ICU_IRQ7,IR_ICU_IRQ8,IR_ICU_IRQ9,IR_ICU_IRQ10,IR_ICU_IRQ11,IR_ICU_IRQ12,IR_ICU_IRQ13,IR_ICU_IRQ14,IR_ICU_IRQ15,
6462
IR_USB_USBR0=90,IR_USB_USBR1,
6463
IR_RTC_ALM,
6464
IR_WDT_WOVI=96,
6465
IR_AD0_ADI0=98,
6466
IR_AD1_ADI1,
6467
IR_S12AD_ADI=102,
6468
IR_MTU0_TGIA0=114,IR_MTU0_TGIB0,IR_MTU0_TGIC0,IR_MTU0_TGID0,IR_MTU0_TCIV0,IR_MTU0_TGIE0,IR_MTU0_TGIF0,
6469
IR_MTU1_TGIA1,IR_MTU1_TGIB1,IR_MTU1_TCIV1,IR_MTU1_TCIU1,
6470
IR_MTU2_TGIA2,IR_MTU2_TGIB2,IR_MTU2_TCIV2,IR_MTU2_TCIU2,
6471
IR_MTU3_TGIA3,IR_MTU3_TGIB3,IR_MTU3_TGIC3,IR_MTU3_TGID3,IR_MTU3_TCIV3,
6472
IR_MTU4_TGIA4,IR_MTU4_TGIB4,IR_MTU4_TGIC4,IR_MTU4_TGID4,IR_MTU4_TCIV4,
6473
IR_MTU5_TGIU5,IR_MTU5_TGIV5,IR_MTU5_TGIW5,
6474
IR_MTU6_TGIA6,IR_MTU6_TGIB6,IR_MTU6_TGIC6,IR_MTU6_TGID6,IR_MTU6_TCIV6,IR_MTU6_TGIE6,IR_MTU6_TGIF6,
6475
IR_MTU7_TGIA7,IR_MTU7_TGIB7,IR_MTU7_TCIV7,IR_MTU7_TCIU7,
6476
IR_MTU8_TGIA8,IR_MTU8_TGIB8,IR_MTU8_TCIV8,IR_MTU8_TCIU8,
6477
IR_MTU9_TGIA9,IR_MTU9_TGIB9,IR_MTU9_TGIC9,IR_MTU9_TGID9,IR_MTU9_TCIV9,
6478
IR_MTU10_TGIA10,IR_MTU10_TGIB10,IR_MTU10_TGIC10,IR_MTU10_TGID10,IR_MTU10_TCIV10,
6479
IR_MTU11_TGIU11,IR_MTU11_TGIV11,IR_MTU11_TGIW11,
6480
IR_POE_OEI1,IR_POE_OEI2,IR_POE_OEI3,IR_POE_OEI4,
6481
IR_TMR0_CMIA0,IR_TMR0_CMIB0,IR_TMR0_OVI0,
6482
IR_TMR1_CMIA1,IR_TMR1_CMIB1,IR_TMR1_OVI1,
6483
IR_TMR2_CMIA2,IR_TMR2_CMIB2,IR_TMR2_OVI2,
6484
IR_TMR3_CMIA3,IR_TMR3_CMIB3,IR_TMR3_OVI3,
6485
IR_DMAC_DMAC0I=198,IR_DMAC_DMAC1I,IR_DMAC_DMAC2I,IR_DMAC_DMAC3I,
6486
IR_EXDMAC_EXDMAC0I,IR_EXDMAC_EXDMAC1I,
6487
IR_SCI0_ERI0=214,IR_SCI0_RXI0,IR_SCI0_TXI0,IR_SCI0_TEI0,
6488
IR_SCI1_ERI1,IR_SCI1_RXI1,IR_SCI1_TXI1,IR_SCI1_TEI1,
6489
IR_SCI2_ERI2,IR_SCI2_RXI2,IR_SCI2_TXI2,IR_SCI2_TEI2,
6490
IR_SCI3_ERI3,IR_SCI3_RXI3,IR_SCI3_TXI3,IR_SCI3_TEI3,
6491
IR_SCI5_ERI5=234,IR_SCI5_RXI5,IR_SCI5_TXI5,IR_SCI5_TEI5,
6492
IR_SCI6_ERI6,IR_SCI6_RXI6,IR_SCI6_TXI6,IR_SCI6_TEI6,
6493
IR_RIIC0_ICEEI0=246,IR_RIIC0_ICRXI0,IR_RIIC0_ICTXI0,IR_RIIC0_ICTEI0,
6494
IR_RIIC1_ICEEI1,IR_RIIC1_ICRXI1,IR_RIIC1_ICTXI1,IR_RIIC1_ICTEI1
6495
};
6496
 
6497
enum enum_dtce {
6498
DTCE_ICU_SWINT=27,
6499
DTCE_CMT0_CMI0,
6500
DTCE_CMT1_CMI1,
6501
DTCE_CMT2_CMI2,
6502
DTCE_CMT3_CMI3,
6503
DTCE_USB0_D0FIFO0=36,DTCE_USB0_D1FIFO0,
6504
DTCE_USB1_D0FIFO1=40,DTCE_USB1_D1FIFO1,
6505
DTCE_RSPI0_SPRI0=45,DTCE_RSPI0_SPTI0,
6506
DTCE_RSPI1_SPRI1=49,DTCE_RSPI1_SPTI1,
6507
DTCE_ICU_IRQ0=64,DTCE_ICU_IRQ1,DTCE_ICU_IRQ2,DTCE_ICU_IRQ3,DTCE_ICU_IRQ4,DTCE_ICU_IRQ5,DTCE_ICU_IRQ6,DTCE_ICU_IRQ7,DTCE_ICU_IRQ8,DTCE_ICU_IRQ9,DTCE_ICU_IRQ10,DTCE_ICU_IRQ11,DTCE_ICU_IRQ12,DTCE_ICU_IRQ13,DTCE_ICU_IRQ14,DTCE_ICU_IRQ15,
6508
DTCE_AD0_ADI0=98,
6509
DTCE_AD1_ADI1,
6510
DTCE_S12AD_ADI=102,
6511
DTCE_MTU0_TGIA0=114,DTCE_MTU0_TGIB0,DTCE_MTU0_TGIC0,DTCE_MTU0_TGID0,
6512
DTCE_MTU1_TGIA1=121,DTCE_MTU1_TGIB1,
6513
DTCE_MTU2_TGIA2=125,DTCE_MTU2_TGIB2,
6514
DTCE_MTU3_TGIA3=129,DTCE_MTU3_TGIB3,DTCE_MTU3_TGIC3,DTCE_MTU3_TGID3,
6515
DTCE_MTU4_TGIA4=134,DTCE_MTU4_TGIB4,DTCE_MTU4_TGIC4,DTCE_MTU4_TGID4,DTCE_MTU4_TCIV4,
6516
DTCE_MTU5_TGIU5,DTCE_MTU5_TGIV5,DTCE_MTU5_TGIW5,
6517
DTCE_MTU6_TGIA6,DTCE_MTU6_TGIB6,DTCE_MTU6_TGIC6,DTCE_MTU6_TGID6,
6518
DTCE_MTU7_TGIA7=149,DTCE_MTU7_TGIB7,
6519
DTCE_MTU8_TGIA8=153,DTCE_MTU8_TGIB8,
6520
DTCE_MTU9_TGIA9=157,DTCE_MTU9_TGIB9,DTCE_MTU9_TGIC9,DTCE_MTU9_TGID9,
6521
DTCE_MTU10_TGIA10=162,DTCE_MTU10_TGIB10,DTCE_MTU10_TGIC10,DTCE_MTU10_TGID10,DTCE_MTU10_TCIV10,
6522
DTCE_MTU11_TGIU11,DTCE_MTU11_TGIV11,DTCE_MTU11_TGIW11,
6523
DTCE_TMR0_CMIA0=174,DTCE_TMR0_CMIB0,
6524
DTCE_TMR1_CMIA1=177,DTCE_TMR1_CMIB1,
6525
DTCE_TMR2_CMIA2=180,DTCE_TMR2_CMIB2,
6526
DTCE_TMR3_CMIA3=183,DTCE_TMR3_CMIB3,
6527
DTCE_DMAC_DMAC0I=198,DTCE_DMAC_DMAC1I,DTCE_DMAC_DMAC2I,DTCE_DMAC_DMAC3I,
6528
DTCE_EXDMAC_EXDMAC0I,DTCE_EXDMAC_EXDMAC1I,
6529
DTCE_SCI0_RXI0=215,DTCE_SCI0_TXI0,
6530
DTCE_SCI1_RXI1=219,DTCE_SCI1_TXI1,
6531
DTCE_SCI2_RXI2=223,DTCE_SCI2_TXI2,
6532
DTCE_SCI3_RXI3=227,DTCE_SCI3_TXI3,
6533
DTCE_SCI5_RXI5=235,DTCE_SCI5_TXI5,
6534
DTCE_SCI6_RXI6=239,DTCE_SCI6_TXI6,
6535
DTCE_RIIC0_ICRXI0=247,DTCE_RIIC0_ICTXI0,
6536
DTCE_RIIC1_ICRXI1=251,DTCE_RIIC1_ICTXI1
6537
};
6538
 
6539
enum enum_ier {
6540
IER_BSC_BUSERR=0x02,
6541
IER_FCU_FIFERR=0x02,IER_FCU_FRDYI=0x02,
6542
IER_ICU_SWINT=0x03,
6543
IER_CMT0_CMI0=0x03,
6544
IER_CMT1_CMI1=0x03,
6545
IER_CMT2_CMI2=0x03,
6546
IER_CMT3_CMI3=0x03,
6547
IER_ETHER_EINT=0x04,
6548
IER_USB0_D0FIFO0=0x04,IER_USB0_D1FIFO0=0x04,IER_USB0_USBI0=0x04,
6549
IER_USB1_D0FIFO1=0x05,IER_USB1_D1FIFO1=0x05,IER_USB1_USBI1=0x05,
6550
IER_RSPI0_SPEI0=0x05,IER_RSPI0_SPRI0=0x05,IER_RSPI0_SPTI0=0x05,IER_RSPI0_SPII0=0x05,
6551
IER_RSPI1_SPEI1=0x06,IER_RSPI1_SPRI1=0x06,IER_RSPI1_SPTI1=0x06,IER_RSPI1_SPII1=0x06,
6552
IER_CAN0_ERS0=0x07,IER_CAN0_RXF0=0x07,IER_CAN0_TXF0=0x07,IER_CAN0_RXM0=0x07,IER_CAN0_TXM0=0x07,
6553
IER_RTC_PRD=0x07,IER_RTC_CUP=0x07,
6554
IER_ICU_IRQ0=0x08,IER_ICU_IRQ1=0x08,IER_ICU_IRQ2=0x08,IER_ICU_IRQ3=0x08,IER_ICU_IRQ4=0x08,IER_ICU_IRQ5=0x08,IER_ICU_IRQ6=0x08,IER_ICU_IRQ7=0x08,IER_ICU_IRQ8=0x09,IER_ICU_IRQ9=0x09,IER_ICU_IRQ10=0x09,IER_ICU_IRQ11=0x09,IER_ICU_IRQ12=0x09,IER_ICU_IRQ13=0x09,IER_ICU_IRQ14=0x09,IER_ICU_IRQ15=0x09,
6555
IER_USB_USBR0=0x0B,IER_USB_USBR1=0x0B,
6556
IER_RTC_ALM=0x0B,
6557
IER_WDT_WOVI=0x0C,
6558
IER_AD0_ADI0=0x0C,
6559
IER_AD1_ADI1=0x0C,
6560
IER_S12AD_ADI=0x0C,
6561
IER_MTU0_TGIA0=0x0E,IER_MTU0_TGIB0=0x0E,IER_MTU0_TGIC0=0x0E,IER_MTU0_TGID0=0x0E,IER_MTU0_TCIV0=0x0E,IER_MTU0_TGIE0=0x0E,IER_MTU0_TGIF0=0x0F,
6562
IER_MTU1_TGIA1=0x0F,IER_MTU1_TGIB1=0x0F,IER_MTU1_TCIV1=0x0F,IER_MTU1_TCIU1=0x0F,
6563
IER_MTU2_TGIA2=0x0F,IER_MTU2_TGIB2=0x0F,IER_MTU2_TCIV2=0x0F,IER_MTU2_TCIU2=0x10,
6564
IER_MTU3_TGIA3=0x10,IER_MTU3_TGIB3=0x10,IER_MTU3_TGIC3=0x10,IER_MTU3_TGID3=0x10,IER_MTU3_TCIV3=0x10,
6565
IER_MTU4_TGIA4=0x10,IER_MTU4_TGIB4=0x10,IER_MTU4_TGIC4=0x11,IER_MTU4_TGID4=0x11,IER_MTU4_TCIV4=0x11,
6566
IER_MTU5_TGIU5=0x11,IER_MTU5_TGIV5=0x11,IER_MTU5_TGIW5=0x10,
6567
IER_MTU6_TGIA6=0x11,IER_MTU6_TGIB6=0x11,IER_MTU6_TGIC6=0x12,IER_MTU6_TGID6=0x12,IER_MTU6_TCIV6=0x12,IER_MTU6_TGIE6=0x12,IER_MTU6_TGIF6=0x12,
6568
IER_MTU7_TGIA7=0x12,IER_MTU7_TGIB7=0x12,IER_MTU7_TCIV7=0x12,IER_MTU7_TCIU7=0x13,
6569
IER_MTU8_TGIA8=0x13,IER_MTU8_TGIB8=0x13,IER_MTU8_TCIV8=0x13,IER_MTU8_TCIU8=0x13,
6570
IER_MTU9_TGIA9=0x13,IER_MTU9_TGIB9=0x13,IER_MTU9_TGIC9=0x13,IER_MTU9_TGID9=0x14,IER_MTU9_TCIV9=0x14,
6571
IER_MTU10_TGIA10=0x14,IER_MTU10_TGIB10=0x14,IER_MTU10_TGIC10=0x14,IER_MTU10_TGID10=0x14,IER_MTU10_TCIV10=0x14,
6572
IER_MTU11_TGIU11=0x14,IER_MTU11_TGIV11=0x15,IER_MTU11_TGIW11=0x15,
6573
IER_POE_OEI1=0x15,IER_POE_OEI2=0x15,IER_POE_OEI3=0x15,IER_POE_OEI4=0x15,
6574
IER_TMR0_CMIA0=0x15,IER_TMR0_CMIB0=0x15,IER_TMR0_OVI0=0x16,
6575
IER_TMR1_CMIA1=0x16,IER_TMR1_CMIB1=0x16,IER_TMR1_OVI1=0x16,
6576
IER_TMR2_CMIA2=0x16,IER_TMR2_CMIB2=0x16,IER_TMR2_OVI2=0x16,
6577
IER_TMR3_CMIA3=0x16,IER_TMR3_CMIB3=0x17,IER_TMR3_OVI3=0x17,
6578
IER_DMAC_DMAC0I=0x18,IER_DMAC_DMAC1I=0x18,IER_DMAC_DMAC2I=0x19,IER_DMAC_DMAC3I=0x19,
6579
IER_EXDMAC_EXDMAC0I=0x19,IER_EXDMAC_EXDMAC1I=0x19,
6580
IER_SCI0_ERI0=0x1A,IER_SCI0_RXI0=0x1A,IER_SCI0_TXI0=0x1B,IER_SCI0_TEI0=0x1B,
6581
IER_SCI1_ERI1=0x1B,IER_SCI1_RXI1=0x1B,IER_SCI1_TXI1=0x1B,IER_SCI1_TEI1=0x1B,
6582
IER_SCI2_ERI2=0x1B,IER_SCI2_RXI2=0x1B,IER_SCI2_TXI2=0x1C,IER_SCI2_TEI2=0x1C,
6583
IER_SCI3_ERI3=0x1C,IER_SCI3_RXI3=0x1C,IER_SCI3_TXI3=0x1C,IER_SCI3_TEI3=0x1C,
6584
IER_SCI5_ERI5=0x1D,IER_SCI5_RXI5=0x1D,IER_SCI5_TXI5=0x1D,IER_SCI5_TEI5=0x1D,
6585
IER_SCI6_ERI6=0x1D,IER_SCI6_RXI6=0x1D,IER_SCI6_TXI6=0x1E,IER_SCI6_TEI6=0x1E,
6586
IER_RIIC0_ICEEI0=0x1E,IER_RIIC0_ICRXI0=0x1E,IER_RIIC0_ICTXI0=0x1F,IER_RIIC0_ICTEI0=0x1F,
6587
IER_RIIC1_ICEEI1=0x1F,IER_RIIC1_ICRXI1=0x1F,IER_RIIC1_ICTXI1=0x1F,IER_RIIC1_ICTEI1=0x1F
6588
};
6589
 
6590
enum enum_ipr {
6591
IPR_BSC_BUSERR=0x00,
6592
IPR_FCU_FIFERR=0x01,IPR_FCU_FRDYI=0x02,
6593
IPR_ICU_SWINT=0x03,
6594
IPR_CMT0_CMI0=0x04,
6595
IPR_CMT1_CMI1=0x05,
6596
IPR_CMT2_CMI2=0x06,
6597
IPR_CMT3_CMI3=0x07,
6598
IPR_ETHER_EINT=0x08,
6599
IPR_USB0_D0FIFO0=0x0C,IPR_USB0_D1FIFO0=0x0D,IPR_USB0_USBI0=0x0E,
6600
IPR_USB1_D0FIFO1=0x10,IPR_USB1_D1FIFO1=0x11,IPR_USB1_USBI1=0x12,
6601
IPR_RSPI0_SPEI0=0x14,IPR_RSPI0_SPRI0=0x14,IPR_RSPI0_SPTI0=0x14,IPR_RSPI0_SPII0=0x14,
6602
IPR_RSPI1_SPEI1=0x15,IPR_RSPI1_SPRI1=0x15,IPR_RSPI1_SPTI1=0x15,IPR_RSPI1_SPII1=0x15,
6603
IPR_CAN0_ERS0=0x18,IPR_CAN0_RXF0=0x18,IPR_CAN0_TXF0=0x18,IPR_CAN0_RXM0=0x18,IPR_CAN0_TXM0=0x18,
6604
IPR_RTC_PRD=0x1E,IPR_RTC_CUP=0x1F,
6605
IPR_ICU_IRQ0=0x20,IPR_ICU_IRQ1=0x21,IPR_ICU_IRQ2=0x22,IPR_ICU_IRQ3=0x23,IPR_ICU_IRQ4=0x24,IPR_ICU_IRQ5=0x25,IPR_ICU_IRQ6=0x26,IPR_ICU_IRQ7=0x27,IPR_ICU_IRQ8=0x28,IPR_ICU_IRQ9=0x29,IPR_ICU_IRQ10=0x2A,IPR_ICU_IRQ11=0x2B,IPR_ICU_IRQ12=0x2C,IPR_ICU_IRQ13=0x2D,IPR_ICU_IRQ14=0x2E,IPR_ICU_IRQ15=0x2F,
6606
IPR_USB_USBR0=0x3A,IPR_USB_USBR1=0x3B,
6607
IPR_RTC_ALM=0x3C,
6608
IPR_WDT_WOVI=0x40,
6609
IPR_AD0_ADI0=0x44,
6610
IPR_AD1_ADI1=0x45,
6611
IPR_S12AD_ADI=0x48,
6612
IPR_MTU0_TGIA0=0x51,IPR_MTU0_TGIB0=0x51,IPR_MTU0_TGIC0=0x51,IPR_MTU0_TGID0=0x51,IPR_MTU0_TCIV0=0x52,IPR_MTU0_TGIE0=0x52,IPR_MTU0_TGIF0=0x52,
6613
IPR_MTU1_TGIA1=0x53,IPR_MTU1_TGIB1=0x53,IPR_MTU1_TCIV1=0x54,IPR_MTU1_TCIU1=0x54,
6614
IPR_MTU2_TGIA2=0x55,IPR_MTU2_TGIB2=0x55,IPR_MTU2_TCIV2=0x56,IPR_MTU2_TCIU2=0x56,
6615
IPR_MTU3_TGIA3=0x57,IPR_MTU3_TGIB3=0x57,IPR_MTU3_TGIC3=0x57,IPR_MTU3_TGID3=0x57,IPR_MTU3_TCIV3=0x58,
6616
IPR_MTU4_TGIA4=0x59,IPR_MTU4_TGIB4=0x59,IPR_MTU4_TGIC4=0x59,IPR_MTU4_TGID4=0x59,IPR_MTU4_TCIV4=0x5A,
6617
IPR_MTU5_TGIU5=0x5B,IPR_MTU5_TGIV5=0x5B,IPR_MTU5_TGIW5=0x5B,
6618
IPR_MTU6_TGIA6=0x5C,IPR_MTU6_TGIB6=0x5C,IPR_MTU6_TGIC6=0x5C,IPR_MTU6_TGID6=0x5C,IPR_MTU6_TCIV6=0x5D,IPR_MTU6_TGIE6=0x5D,IPR_MTU6_TGIF6=0x5D,
6619
IPR_MTU7_TGIA7=0x5E,IPR_MTU7_TGIB7=0x5E,IPR_MTU7_TCIV7=0x5F,IPR_MTU7_TCIU7=0x5F,
6620
IPR_MTU8_TGIA8=0x60,IPR_MTU8_TGIB8=0x60,IPR_MTU8_TCIV8=0x61,IPR_MTU8_TCIU8=0x61,
6621
IPR_MTU9_TGIA9=0x62,IPR_MTU9_TGIB9=0x62,IPR_MTU9_TGIC9=0x62,IPR_MTU9_TGID9=0x62,IPR_MTU9_TCIV9=0x63,
6622
IPR_MTU10_TGIA10=0x64,IPR_MTU10_TGIB10=0x64,IPR_MTU10_TGIC10=0x64,IPR_MTU10_TGID10=0x64,IPR_MTU10_TCIV10=0x65,
6623
IPR_MTU11_TGIU11=0x66,IPR_MTU11_TGIV11=0x66,IPR_MTU11_TGIW11=0x66,
6624
IPR_POE_OEI1=0x67,IPR_POE_OEI2=0x67,IPR_POE_OEI3=0x67,IPR_POE_OEI4=0x67,
6625
IPR_TMR0_CMIA0=0x68,IPR_TMR0_CMIB0=0x68,IPR_TMR0_OVI0=0x68,
6626
IPR_TMR1_CMIA1=0x69,IPR_TMR1_CMIB1=0x69,IPR_TMR1_OVI1=0x69,
6627
IPR_TMR2_CMIA2=0x6A,IPR_TMR2_CMIB2=0x6A,IPR_TMR2_OVI2=0x6A,
6628
IPR_TMR3_CMIA3=0x6B,IPR_TMR3_CMIB3=0x6B,IPR_TMR3_OVI3=0x6B,
6629
IPR_DMAC_DMAC0I=0x70,IPR_DMAC_DMAC1I=0x71,IPR_DMAC_DMAC2I=0x72,IPR_DMAC_DMAC3I=0x73,
6630
IPR_EXDMAC_EXDMAC0I=0x74,IPR_EXDMAC_EXDMAC1I=0x75,
6631
IPR_SCI0_ERI0=0x80,IPR_SCI0_RXI0=0x80,IPR_SCI0_TXI0=0x80,IPR_SCI0_TEI0=0x80,
6632
IPR_SCI1_ERI1=0x81,IPR_SCI1_RXI1=0x81,IPR_SCI1_TXI1=0x81,IPR_SCI1_TEI1=0x81,
6633
IPR_SCI2_ERI2=0x82,IPR_SCI2_RXI2=0x82,IPR_SCI2_TXI2=0x82,IPR_SCI2_TEI2=0x82,
6634
IPR_SCI3_ERI3=0x83,IPR_SCI3_RXI3=0x83,IPR_SCI3_TXI3=0x83,IPR_SCI3_TEI3=0x83,
6635
IPR_SCI5_ERI5=0x85,IPR_SCI5_RXI5=0x85,IPR_SCI5_TXI5=0x85,IPR_SCI5_TEI5=0x85,
6636
IPR_SCI6_ERI6=0x86,IPR_SCI6_RXI6=0x86,IPR_SCI6_TXI6=0x86,IPR_SCI6_TEI6=0x86,
6637
IPR_RIIC0_ICEEI0=0x88,IPR_RIIC0_ICRXI0=0x89,IPR_RIIC0_ICTXI0=0x8A,IPR_RIIC0_ICTEI0=0x8B,
6638
IPR_RIIC1_ICEEI1=0x8C,IPR_RIIC1_ICRXI1=0x8D,IPR_RIIC1_ICTXI1=0x8E,IPR_RIIC1_ICTEI1=0x8F,
6639
IPR_BSC_=0x00,
6640
IPR_CMT0_=0x04,
6641
IPR_CMT1_=0x05,
6642
IPR_CMT2_=0x06,
6643
IPR_CMT3_=0x07,
6644
IPR_ETHER_=0x08,
6645
IPR_RSPI0_=0x14,
6646
IPR_RSPI1_=0x15,
6647
IPR_CAN0_=0x18,
6648
IPR_WDT_=0x40,
6649
IPR_AD0_=0x44,
6650
IPR_AD1_=0x45,
6651
IPR_S12AD_=0x48,
6652
IPR_MTU1_TGI=0x53,
6653
IPR_MTU1_TCI=0x54,
6654
IPR_MTU2_TGI=0x55,
6655
IPR_MTU2_TCI=0x56,
6656
IPR_MTU3_TGI=0x57,
6657
IPR_MTU4_TGI=0x59,
6658
IPR_MTU5_=0x5B,
6659
IPR_MTU5_TGI=0x5B,
6660
IPR_MTU7_TGI=0x5E,
6661
IPR_MTU7_TCI=0x5F,
6662
IPR_MTU8_TGI=0x60,
6663
IPR_MTU8_TCI=0x61,
6664
IPR_MTU9_TGI=0x62,
6665
IPR_MTU10_TGI=0x64,
6666
IPR_MTU11_=0x66,
6667
IPR_MTU11_TGI=0x66,
6668
IPR_POE_=0x67,
6669
IPR_POE_OEI=0x67,
6670
IPR_TMR0_=0x68,
6671
IPR_TMR1_=0x69,
6672
IPR_TMR2_=0x6A,
6673
IPR_TMR3_=0x6B,
6674
IPR_SCI0_=0x80,
6675
IPR_SCI1_=0x81,
6676
IPR_SCI2_=0x82,
6677
IPR_SCI3_=0x83,
6678
IPR_SCI5_=0x85,
6679
IPR_SCI6_=0x86
6680
};
6681
 
6682
#define IEN_BSC_BUSERR          IEN0
6683
#define IEN_FCU_FIFERR          IEN5
6684
#define IEN_FCU_FRDYI           IEN7
6685
#define IEN_ICU_SWINT           IEN3
6686
#define IEN_CMT0_CMI0           IEN4
6687
#define IEN_CMT1_CMI1           IEN5
6688
#define IEN_CMT2_CMI2           IEN6
6689
#define IEN_CMT3_CMI3           IEN7
6690
#define IEN_ETHER_EINT          IEN0
6691
#define IEN_USB0_D0FIFO0        IEN4
6692
#define IEN_USB0_D1FIFO0        IEN5
6693
#define IEN_USB0_USBI0          IEN6
6694
#define IEN_USB1_D0FIFO1        IEN0
6695
#define IEN_USB1_D1FIFO1        IEN1
6696
#define IEN_USB1_USBI1          IEN2
6697
#define IEN_RSPI0_SPEI0         IEN4
6698
#define IEN_RSPI0_SPRI0         IEN5
6699
#define IEN_RSPI0_SPTI0         IEN6
6700
#define IEN_RSPI0_SPII0         IEN7
6701
#define IEN_RSPI1_SPEI1         IEN0
6702
#define IEN_RSPI1_SPRI1         IEN1
6703
#define IEN_RSPI1_SPTI1         IEN2
6704
#define IEN_RSPI1_SPII1         IEN3
6705
#define IEN_CAN0_ERS0           IEN0
6706
#define IEN_CAN0_RXF0           IEN1
6707
#define IEN_CAN0_TXF0           IEN2
6708
#define IEN_CAN0_RXM0           IEN3
6709
#define IEN_CAN0_TXM0           IEN4
6710
#define IEN_RTC_PRD                     IEN6
6711
#define IEN_RTC_CUP                     IEN7
6712
#define IEN_ICU_IRQ0            IEN0
6713
#define IEN_ICU_IRQ1            IEN1
6714
#define IEN_ICU_IRQ2            IEN2
6715
#define IEN_ICU_IRQ3            IEN3
6716
#define IEN_ICU_IRQ4            IEN4
6717
#define IEN_ICU_IRQ5            IEN5
6718
#define IEN_ICU_IRQ6            IEN6
6719
#define IEN_ICU_IRQ7            IEN7
6720
#define IEN_ICU_IRQ8            IEN0
6721
#define IEN_ICU_IRQ9            IEN1
6722
#define IEN_ICU_IRQ10           IEN2
6723
#define IEN_ICU_IRQ11           IEN3
6724
#define IEN_ICU_IRQ12           IEN4
6725
#define IEN_ICU_IRQ13           IEN5
6726
#define IEN_ICU_IRQ14           IEN6
6727
#define IEN_ICU_IRQ15           IEN7
6728
#define IEN_USB_USBR0           IEN2
6729
#define IEN_USB_USBR1           IEN3
6730
#define IEN_RTC_ALM                     IEN4
6731
#define IEN_WDT_WOVI            IEN0
6732
#define IEN_AD0_ADI0            IEN2
6733
#define IEN_AD1_ADI1            IEN3
6734
#define IEN_S12AD_ADI           IEN6
6735
#define IEN_MTU0_TGIA0          IEN2
6736
#define IEN_MTU0_TGIB0          IEN3
6737
#define IEN_MTU0_TGIC0          IEN4
6738
#define IEN_MTU0_TGID0          IEN5
6739
#define IEN_MTU0_TCIV0          IEN6
6740
#define IEN_MTU0_TGIE0          IEN7
6741
#define IEN_MTU0_TGIF0          IEN0
6742
#define IEN_MTU1_TGIA1          IEN1
6743
#define IEN_MTU1_TGIB1          IEN2
6744
#define IEN_MTU1_TCIV1          IEN3
6745
#define IEN_MTU1_TCIU1          IEN4
6746
#define IEN_MTU2_TGIA2          IEN5
6747
#define IEN_MTU2_TGIB2          IEN6
6748
#define IEN_MTU2_TCIV2          IEN7
6749
#define IEN_MTU2_TCIU2          IEN0
6750
#define IEN_MTU3_TGIA3          IEN1
6751
#define IEN_MTU3_TGIB3          IEN2
6752
#define IEN_MTU3_TGIC3          IEN3
6753
#define IEN_MTU3_TGID3          IEN4
6754
#define IEN_MTU3_TCIV3          IEN5
6755
#define IEN_MTU4_TGIA4          IEN6
6756
#define IEN_MTU4_TGIB4          IEN7
6757
#define IEN_MTU4_TGIC4          IEN0
6758
#define IEN_MTU4_TGID4          IEN1
6759
#define IEN_MTU4_TCIV4          IEN2
6760
#define IEN_MTU5_TGIU5          IEN3
6761
#define IEN_MTU5_TGIV5          IEN4
6762
#define IEN_MTU5_TGIW5          IEN7
6763
#define IEN_MTU6_TGIA6          IEN6
6764
#define IEN_MTU6_TGIB6          IEN7
6765
#define IEN_MTU6_TGIC6          IEN0
6766
#define IEN_MTU6_TGID6          IEN1
6767
#define IEN_MTU6_TCIV6          IEN2
6768
#define IEN_MTU6_TGIE6          IEN3
6769
#define IEN_MTU6_TGIF6          IEN4
6770
#define IEN_MTU7_TGIA7          IEN5
6771
#define IEN_MTU7_TGIB7          IEN6
6772
#define IEN_MTU7_TCIV7          IEN7
6773
#define IEN_MTU7_TCIU7          IEN0
6774
#define IEN_MTU8_TGIA8          IEN1
6775
#define IEN_MTU8_TGIB8          IEN2
6776
#define IEN_MTU8_TCIV8          IEN3
6777
#define IEN_MTU8_TCIU8          IEN4
6778
#define IEN_MTU9_TGIA9          IEN5
6779
#define IEN_MTU9_TGIB9          IEN6
6780
#define IEN_MTU9_TGIC9          IEN7
6781
#define IEN_MTU9_TGID9          IEN0
6782
#define IEN_MTU9_TCIV9          IEN1
6783
#define IEN_MTU10_TGIA10        IEN2
6784
#define IEN_MTU10_TGIB10        IEN3
6785
#define IEN_MTU10_TGIC10        IEN4
6786
#define IEN_MTU10_TGID10        IEN5
6787
#define IEN_MTU10_TCIV10        IEN6
6788
#define IEN_MTU11_TGIU11        IEN7
6789
#define IEN_MTU11_TGIV11        IEN0
6790
#define IEN_MTU11_TGIW11        IEN1
6791
#define IEN_POE_OEI1            IEN2
6792
#define IEN_POE_OEI2            IEN3
6793
#define IEN_POE_OEI3            IEN4
6794
#define IEN_POE_OEI4            IEN5
6795
#define IEN_TMR0_CMIA0          IEN6
6796
#define IEN_TMR0_CMIB0          IEN7
6797
#define IEN_TMR0_OVI0           IEN0
6798
#define IEN_TMR1_CMIA1          IEN1
6799
#define IEN_TMR1_CMIB1          IEN2
6800
#define IEN_TMR1_OVI1           IEN3
6801
#define IEN_TMR2_CMIA2          IEN4
6802
#define IEN_TMR2_CMIB2          IEN5
6803
#define IEN_TMR2_OVI2           IEN6
6804
#define IEN_TMR3_CMIA3          IEN7
6805
#define IEN_TMR3_CMIB3          IEN0
6806
#define IEN_TMR3_OVI3           IEN1
6807
#define IEN_DMAC_DMAC0I         IEN6
6808
#define IEN_DMAC_DMAC1I         IEN7
6809
#define IEN_DMAC_DMAC2I         IEN0
6810
#define IEN_DMAC_DMAC3I         IEN1
6811
#define IEN_EXDMAC_EXDMAC0I     IEN2
6812
#define IEN_EXDMAC_EXDMAC1I     IEN3
6813
#define IEN_SCI0_ERI0           IEN6
6814
#define IEN_SCI0_RXI0           IEN7
6815
#define IEN_SCI0_TXI0           IEN0
6816
#define IEN_SCI0_TEI0           IEN1
6817
#define IEN_SCI1_ERI1           IEN2
6818
#define IEN_SCI1_RXI1           IEN3
6819
#define IEN_SCI1_TXI1           IEN4
6820
#define IEN_SCI1_TEI1           IEN5
6821
#define IEN_SCI2_ERI2           IEN6
6822
#define IEN_SCI2_RXI2           IEN7
6823
#define IEN_SCI2_TXI2           IEN0
6824
#define IEN_SCI2_TEI2           IEN1
6825
#define IEN_SCI3_ERI3           IEN2
6826
#define IEN_SCI3_RXI3           IEN3
6827
#define IEN_SCI3_TXI3           IEN4
6828
#define IEN_SCI3_TEI3           IEN5
6829
#define IEN_SCI5_ERI5           IEN2
6830
#define IEN_SCI5_RXI5           IEN3
6831
#define IEN_SCI5_TXI5           IEN4
6832
#define IEN_SCI5_TEI5           IEN5
6833
#define IEN_SCI6_ERI6           IEN6
6834
#define IEN_SCI6_RXI6           IEN7
6835
#define IEN_SCI6_TXI6           IEN0
6836
#define IEN_SCI6_TEI6           IEN1
6837
#define IEN_RIIC0_ICEEI0        IEN6
6838
#define IEN_RIIC0_ICRXI0        IEN7
6839
#define IEN_RIIC0_ICTXI0        IEN0
6840
#define IEN_RIIC0_ICTEI0        IEN1
6841
#define IEN_RIIC1_ICEEI1        IEN2
6842
#define IEN_RIIC1_ICRXI1        IEN3
6843
#define IEN_RIIC1_ICTXI1        IEN4
6844
#define IEN_RIIC1_ICTEI1        IEN5
6845
 
6846
#define VECT_BSC_BUSERR         16
6847
#define VECT_FCU_FIFERR         21
6848
#define VECT_FCU_FRDYI          23
6849
#define VECT_ICU_SWINT          27
6850
#define VECT_CMT0_CMI0          28
6851
#define VECT_CMT1_CMI1          29
6852
#define VECT_CMT2_CMI2          30
6853
#define VECT_CMT3_CMI3          31
6854
#define VECT_ETHER_EINT         32
6855
#define VECT_USB0_D0FIFO0       36
6856
#define VECT_USB0_D1FIFO0       37
6857
#define VECT_USB0_USBI0         38
6858
#define VECT_USB1_D0FIFO1       40
6859
#define VECT_USB1_D1FIFO1       41
6860
#define VECT_USB1_USBI1         42
6861
#define VECT_RSPI0_SPEI0        44
6862
#define VECT_RSPI0_SPRI0        45
6863
#define VECT_RSPI0_SPTI0        46
6864
#define VECT_RSPI0_SPII0        47
6865
#define VECT_RSPI1_SPEI1        48
6866
#define VECT_RSPI1_SPRI1        49
6867
#define VECT_RSPI1_SPTI1        50
6868
#define VECT_RSPI1_SPII1        51
6869
#define VECT_CAN0_ERS0          56
6870
#define VECT_CAN0_RXF0          57
6871
#define VECT_CAN0_TXF0          58
6872
#define VECT_CAN0_RXM0          59
6873
#define VECT_CAN0_TXM0          60
6874
#define VECT_RTC_PRD            62
6875
#define VECT_RTC_CUP            63
6876
#define VECT_ICU_IRQ0           64
6877
#define VECT_ICU_IRQ1           65
6878
#define VECT_ICU_IRQ2           66
6879
#define VECT_ICU_IRQ3           67
6880
#define VECT_ICU_IRQ4           68
6881
#define VECT_ICU_IRQ5           69
6882
#define VECT_ICU_IRQ6           70
6883
#define VECT_ICU_IRQ7           71
6884
#define VECT_ICU_IRQ8           72
6885
#define VECT_ICU_IRQ9           73
6886
#define VECT_ICU_IRQ10          74
6887
#define VECT_ICU_IRQ11          75
6888
#define VECT_ICU_IRQ12          76
6889
#define VECT_ICU_IRQ13          77
6890
#define VECT_ICU_IRQ14          78
6891
#define VECT_ICU_IRQ15          79
6892
#define VECT_USB_USBR0          90
6893
#define VECT_USB_USBR1          91
6894
#define VECT_RTC_ALM            92
6895
#define VECT_WDT_WOVI           96
6896
#define VECT_AD0_ADI0           98
6897
#define VECT_AD1_ADI1           99
6898
#define VECT_S12AD_ADI          102
6899
#define VECT_MTU0_TGIA0         114
6900
#define VECT_MTU0_TGIB0         115
6901
#define VECT_MTU0_TGIC0         116
6902
#define VECT_MTU0_TGID0         117
6903
#define VECT_MTU0_TCIV0         118
6904
#define VECT_MTU0_TGIE0         119
6905
#define VECT_MTU0_TGIF0         120
6906
#define VECT_MTU1_TGIA1         121
6907
#define VECT_MTU1_TGIB1         122
6908
#define VECT_MTU1_TCIV1         123
6909
#define VECT_MTU1_TCIU1         124
6910
#define VECT_MTU2_TGIA2         125
6911
#define VECT_MTU2_TGIB2         126
6912
#define VECT_MTU2_TCIV2         127
6913
#define VECT_MTU2_TCIU2         128
6914
#define VECT_MTU3_TGIA3         129
6915
#define VECT_MTU3_TGIB3         130
6916
#define VECT_MTU3_TGIC3         131
6917
#define VECT_MTU3_TGID3         132
6918
#define VECT_MTU3_TCIV3         133
6919
#define VECT_MTU4_TGIA4         134
6920
#define VECT_MTU4_TGIB4         135
6921
#define VECT_MTU4_TGIC4         136
6922
#define VECT_MTU4_TGID4         137
6923
#define VECT_MTU4_TCIV4         138
6924
#define VECT_MTU5_TGIU5         139
6925
#define VECT_MTU5_TGIV5         140
6926
#define VECT_MTU5_TGIW5         141
6927
#define VECT_MTU6_TGIA6         142
6928
#define VECT_MTU6_TGIB6         143
6929
#define VECT_MTU6_TGIC6         144
6930
#define VECT_MTU6_TGID6         145
6931
#define VECT_MTU6_TCIV6         146
6932
#define VECT_MTU6_TGIE6         147
6933
#define VECT_MTU6_TGIF6         148
6934
#define VECT_MTU7_TGIA7         149
6935
#define VECT_MTU7_TGIB7         150
6936
#define VECT_MTU7_TCIV7         151
6937
#define VECT_MTU7_TCIU7         152
6938
#define VECT_MTU8_TGIA8         153
6939
#define VECT_MTU8_TGIB8         154
6940
#define VECT_MTU8_TCIV8         155
6941
#define VECT_MTU8_TCIU8         156
6942
#define VECT_MTU9_TGIA9         157
6943
#define VECT_MTU9_TGIB9         158
6944
#define VECT_MTU9_TGIC9         159
6945
#define VECT_MTU9_TGID9         160
6946
#define VECT_MTU9_TCIV9         161
6947
#define VECT_MTU10_TGIA10       162
6948
#define VECT_MTU10_TGIB10       163
6949
#define VECT_MTU10_TGIC10       164
6950
#define VECT_MTU10_TGID10       165
6951
#define VECT_MTU10_TCIV10       166
6952
#define VECT_MTU11_TGIU11       167
6953
#define VECT_MTU11_TGIV11       168
6954
#define VECT_MTU11_TGIW11       169
6955
#define VECT_POE_OEI1           170
6956
#define VECT_POE_OEI2           171
6957
#define VECT_POE_OEI3           172
6958
#define VECT_POE_OEI4           173
6959
#define VECT_TMR0_CMIA0         174
6960
#define VECT_TMR0_CMIB0         175
6961
#define VECT_TMR0_OVI0          176
6962
#define VECT_TMR1_CMIA1         177
6963
#define VECT_TMR1_CMIB1         178
6964
#define VECT_TMR1_OVI1          179
6965
#define VECT_TMR2_CMIA2         180
6966
#define VECT_TMR2_CMIB2         181
6967
#define VECT_TMR2_OVI2          182
6968
#define VECT_TMR3_CMIA3         183
6969
#define VECT_TMR3_CMIB3         184
6970
#define VECT_TMR3_OVI3          185
6971
#define VECT_DMAC_DMAC0I        198
6972
#define VECT_DMAC_DMAC1I        199
6973
#define VECT_DMAC_DMAC2I        200
6974
#define VECT_DMAC_DMAC3I        201
6975
#define VECT_EXDMAC_EXDMAC0I    202
6976
#define VECT_EXDMAC_EXDMAC1I    203
6977
#define VECT_SCI0_ERI0          214
6978
#define VECT_SCI0_RXI0          215
6979
#define VECT_SCI0_TXI0          216
6980
#define VECT_SCI0_TEI0          217
6981
#define VECT_SCI1_ERI1          218
6982
#define VECT_SCI1_RXI1          219
6983
#define VECT_SCI1_TXI1          220
6984
#define VECT_SCI1_TEI1          221
6985
#define VECT_SCI2_ERI2          222
6986
#define VECT_SCI2_RXI2          223
6987
#define VECT_SCI2_TXI2          224
6988
#define VECT_SCI2_TEI2          225
6989
#define VECT_SCI3_ERI3          226
6990
#define VECT_SCI3_RXI3          227
6991
#define VECT_SCI3_TXI3          228
6992
#define VECT_SCI3_TEI3          229
6993
#define VECT_SCI5_ERI5          234
6994
#define VECT_SCI5_RXI5          235
6995
#define VECT_SCI5_TXI5          236
6996
#define VECT_SCI5_TEI5          237
6997
#define VECT_SCI6_ERI6          238
6998
#define VECT_SCI6_RXI6          239
6999
#define VECT_SCI6_TXI6          240
7000
#define VECT_SCI6_TEI6          241
7001
#define VECT_RIIC0_ICEEI0       246
7002
#define VECT_RIIC0_ICRXI0       247
7003
#define VECT_RIIC0_ICTXI0       248
7004
#define VECT_RIIC0_ICTEI0       249
7005
#define VECT_RIIC1_ICEEI1       250
7006
#define VECT_RIIC1_ICRXI1       251
7007
#define VECT_RIIC1_ICTXI1       252
7008
#define VECT_RIIC1_ICTEI1       253
7009
 
7010
#define MSTP_EXDMAC     SYSTEM.MSTPCRA.BIT.MSTPA29
7011
#define MSTP_DMAC       SYSTEM.MSTPCRA.BIT.MSTPA28
7012
#define MSTP_DMAC0      SYSTEM.MSTPCRA.BIT.MSTPA28
7013
#define MSTP_DMAC1      SYSTEM.MSTPCRA.BIT.MSTPA28
7014
#define MSTP_DMAC2      SYSTEM.MSTPCRA.BIT.MSTPA28
7015
#define MSTP_DMAC3      SYSTEM.MSTPCRA.BIT.MSTPA28
7016
#define MSTP_DTC        SYSTEM.MSTPCRA.BIT.MSTPA28
7017
#define MSTP_AD0        SYSTEM.MSTPCRA.BIT.MSTPA23
7018
#define MSTP_AD1        SYSTEM.MSTPCRA.BIT.MSTPA22
7019
#define MSTP_DA         SYSTEM.MSTPCRA.BIT.MSTPA19
7020
#define MSTP_S12AD      SYSTEM.MSTPCRA.BIT.MSTPA17
7021
#define MSTP_CMT0       SYSTEM.MSTPCRA.BIT.MSTPA15
7022
#define MSTP_CMT1       SYSTEM.MSTPCRA.BIT.MSTPA15
7023
#define MSTP_CMT2       SYSTEM.MSTPCRA.BIT.MSTPA14
7024
#define MSTP_CMT3       SYSTEM.MSTPCRA.BIT.MSTPA14
7025
#define MSTP_PPG0       SYSTEM.MSTPCRA.BIT.MSTPA11
7026
#define MSTP_PPG1       SYSTEM.MSTPCRA.BIT.MSTPA10
7027
#define MSTP_MTUA       SYSTEM.MSTPCRA.BIT.MSTPA9
7028
#define MSTP_MTU0       SYSTEM.MSTPCRA.BIT.MSTPA9
7029
#define MSTP_MTU1       SYSTEM.MSTPCRA.BIT.MSTPA9
7030
#define MSTP_MTU2       SYSTEM.MSTPCRA.BIT.MSTPA9
7031
#define MSTP_MTU3       SYSTEM.MSTPCRA.BIT.MSTPA9
7032
#define MSTP_MTU4       SYSTEM.MSTPCRA.BIT.MSTPA9
7033
#define MSTP_MTU5       SYSTEM.MSTPCRA.BIT.MSTPA9
7034
#define MSTP_MTUB       SYSTEM.MSTPCRA.BIT.MSTPA8
7035
#define MSTP_MTU6       SYSTEM.MSTPCRA.BIT.MSTPA8
7036
#define MSTP_MTU7       SYSTEM.MSTPCRA.BIT.MSTPA8
7037
#define MSTP_MTU8       SYSTEM.MSTPCRA.BIT.MSTPA8
7038
#define MSTP_MTU9       SYSTEM.MSTPCRA.BIT.MSTPA8
7039
#define MSTP_MTU10      SYSTEM.MSTPCRA.BIT.MSTPA8
7040
#define MSTP_MTU11      SYSTEM.MSTPCRA.BIT.MSTPA8
7041
#define MSTP_TMR0       SYSTEM.MSTPCRA.BIT.MSTPA5
7042
#define MSTP_TMR1       SYSTEM.MSTPCRA.BIT.MSTPA5
7043
#define MSTP_TMR01      SYSTEM.MSTPCRA.BIT.MSTPA5
7044
#define MSTP_TMR2       SYSTEM.MSTPCRA.BIT.MSTPA4
7045
#define MSTP_TMR3       SYSTEM.MSTPCRA.BIT.MSTPA4
7046
#define MSTP_TMR23      SYSTEM.MSTPCRA.BIT.MSTPA4
7047
#define MSTP_SCI0       SYSTEM.MSTPCRB.BIT.MSTPB31
7048
#define MSTP_SMCI0      SYSTEM.MSTPCRB.BIT.MSTPB31
7049
#define MSTP_SCI1       SYSTEM.MSTPCRB.BIT.MSTPB30
7050
#define MSTP_SMCI1      SYSTEM.MSTPCRB.BIT.MSTPB30
7051
#define MSTP_SCI2       SYSTEM.MSTPCRB.BIT.MSTPB29
7052
#define MSTP_SMCI2      SYSTEM.MSTPCRB.BIT.MSTPB29
7053
#define MSTP_SCI3       SYSTEM.MSTPCRB.BIT.MSTPB28
7054
#define MSTP_SMCI3      SYSTEM.MSTPCRB.BIT.MSTPB28
7055
#define MSTP_SCI5       SYSTEM.MSTPCRB.BIT.MSTPB26
7056
#define MSTP_SMCI5      SYSTEM.MSTPCRB.BIT.MSTPB26
7057
#define MSTP_SCI6       SYSTEM.MSTPCRB.BIT.MSTPB25
7058
#define MSTP_SMCI6      SYSTEM.MSTPCRB.BIT.MSTPB25
7059
#define MSTP_CRC        SYSTEM.MSTPCRB.BIT.MSTPB23
7060
#define MSTP_RIIC0      SYSTEM.MSTPCRB.BIT.MSTPB21
7061
#define MSTP_RIIC1      SYSTEM.MSTPCRB.BIT.MSTPB20
7062
#define MSTP_USB0       SYSTEM.MSTPCRB.BIT.MSTPB19
7063
#define MSTP_USB1       SYSTEM.MSTPCRB.BIT.MSTPB18
7064
#define MSTP_RSPI0      SYSTEM.MSTPCRB.BIT.MSTPB17
7065
#define MSTP_RSPI1      SYSTEM.MSTPCRB.BIT.MSTPB16
7066
#define MSTP_EDMAC      SYSTEM.MSTPCRB.BIT.MSTPB15
7067
#define MSTP_CAN0       SYSTEM.MSTPCRB.BIT.MSTPB0
7068
#define MSTP_RAM0       SYSTEM.MSTPCRC.BIT.MSTPC1
7069
#define MSTP_RAM1       SYSTEM.MSTPCRC.BIT.MSTPC0
7070
 
7071
#define __IR( x )               ICU.IR[ IR ## x ].BIT.IR
7072
#define  _IR( x )               __IR( x )
7073
#define   IR( x , y )   _IR( _ ## x ## _ ## y )
7074
#define __DTCE( x )             ICU.DTCER[ DTCE ## x ].BIT.DTCE
7075
#define  _DTCE( x )             __DTCE( x )
7076
#define   DTCE( x , y ) _DTCE( _ ## x ## _ ## y )
7077
#define __IEN( x )              ICU.IER[ IER ## x ].BIT.IEN ## x
7078
#define  _IEN( x )              __IEN( x )
7079
#define   IEN( x , y )  _IEN( _ ## x ## _ ## y )
7080
#define __IPR( x )              ICU.IPR[ IPR ## x ].BIT.IPR
7081
#define  _IPR( x )              __IPR( x )
7082
#define   IPR( x , y )  _IPR( _ ## x ## _ ## y )
7083
#define __VECT( x )             VECT ## x
7084
#define  _VECT( x )             __VECT( x )
7085
#define   VECT( x , y ) _VECT( _ ## x ## _ ## y )
7086
#define __MSTP( x )             MSTP ## x
7087
#define  _MSTP( x )             __MSTP( x )
7088
#define   MSTP( x )             _MSTP( _ ## x )
7089
 
7090
#define AD0             (*(volatile struct st_ad      __evenaccess *)0x88040)
7091
#define AD1             (*(volatile struct st_ad      __evenaccess *)0x88060)
7092
#define BSC             (*(volatile struct st_bsc     __evenaccess *)0x81300)
7093
#define CAN0    (*(volatile struct st_can     __evenaccess *)0x90200)
7094
#define CMT             (*(volatile struct st_cmt     __evenaccess *)0x88000)
7095
#define CMT0    (*(volatile struct st_cmt0    __evenaccess *)0x88002)
7096
#define CMT1    (*(volatile struct st_cmt0    __evenaccess *)0x88008)
7097
#define CMT2    (*(volatile struct st_cmt0    __evenaccess *)0x88012)
7098
#define CMT3    (*(volatile struct st_cmt0    __evenaccess *)0x88018)
7099
#define CRC             (*(volatile struct st_crc     __evenaccess *)0x88280)
7100
#define DA              (*(volatile struct st_da      __evenaccess *)0x880C0)
7101
#define DMAC    (*(volatile struct st_dmac    __evenaccess *)0x82200)
7102
#define DMAC0   (*(volatile struct st_dmac0   __evenaccess *)0x82000)
7103
#define DMAC1   (*(volatile struct st_dmac1   __evenaccess *)0x82040)
7104
#define DMAC2   (*(volatile struct st_dmac1   __evenaccess *)0x82080)
7105
#define DMAC3   (*(volatile struct st_dmac1   __evenaccess *)0x820C0)
7106
#define DTC             (*(volatile struct st_dtc     __evenaccess *)0x82400)
7107
#define EDMAC   (*(volatile struct st_edmac   __evenaccess *)0xC0000)
7108
#define ETHERC  (*(volatile struct st_etherc  __evenaccess *)0xC0100)
7109
#define EXDMAC  (*(volatile struct st_exdmac  __evenaccess *)0x82A00)
7110
#define EXDMAC0 (*(volatile struct st_exdmac0 __evenaccess *)0x82800)
7111
#define EXDMAC1 (*(volatile struct st_exdmac1 __evenaccess *)0x82840)
7112
#define FLASH   (*(volatile struct st_flash   __evenaccess *)0x8C288)
7113
#define ICU             (*(volatile struct st_icu     __evenaccess *)0x87000)
7114
#define IOPORT  (*(volatile struct st_ioport  __evenaccess *)0x8C100)
7115
#define IWDT    (*(volatile struct st_iwdt    __evenaccess *)0x88030)
7116
#define MTU0    (*(volatile struct st_mtu0    __evenaccess *)0x88700)
7117
#define MTU1    (*(volatile struct st_mtu1    __evenaccess *)0x88780)
7118
#define MTU2    (*(volatile struct st_mtu2    __evenaccess *)0x88800)
7119
#define MTU3    (*(volatile struct st_mtu3    __evenaccess *)0x88600)
7120
#define MTU4    (*(volatile struct st_mtu4    __evenaccess *)0x88600)
7121
#define MTU5    (*(volatile struct st_mtu5    __evenaccess *)0x88880)
7122
#define MTU6    (*(volatile struct st_mtu0    __evenaccess *)0x88B00)
7123
#define MTU7    (*(volatile struct st_mtu1    __evenaccess *)0x88B80)
7124
#define MTU8    (*(volatile struct st_mtu2    __evenaccess *)0x88C00)
7125
#define MTU9    (*(volatile struct st_mtu3    __evenaccess *)0x88A00)
7126
#define MTU10   (*(volatile struct st_mtu4    __evenaccess *)0x88A00)
7127
#define MTU11   (*(volatile struct st_mtu5    __evenaccess *)0x88C80)
7128
#define MTUA    (*(volatile struct st_mtua    __evenaccess *)0x8860A)
7129
#define MTUB    (*(volatile struct st_mtua    __evenaccess *)0x88A0A)
7130
#define POE             (*(volatile struct st_poe     __evenaccess *)0x88900)
7131
#define PORT0   (*(volatile struct st_port0   __evenaccess *)0x8C000)
7132
#define PORT1   (*(volatile struct st_port1   __evenaccess *)0x8C001)
7133
#define PORT2   (*(volatile struct st_port2   __evenaccess *)0x8C002)
7134
#define PORT3   (*(volatile struct st_port3   __evenaccess *)0x8C003)
7135
#define PORT4   (*(volatile struct st_port4   __evenaccess *)0x8C004)
7136
#define PORT5   (*(volatile struct st_port5   __evenaccess *)0x8C005)
7137
#define PORT6   (*(volatile struct st_port6   __evenaccess *)0x8C006)
7138
#define PORT7   (*(volatile struct st_port7   __evenaccess *)0x8C007)
7139
#define PORT8   (*(volatile struct st_port8   __evenaccess *)0x8C008)
7140
#define PORT9   (*(volatile struct st_port9   __evenaccess *)0x8C009)
7141
#define PORTA   (*(volatile struct st_porta   __evenaccess *)0x8C00A)
7142
#define PORTB   (*(volatile struct st_portb   __evenaccess *)0x8C00B)
7143
#define PORTC   (*(volatile struct st_portc   __evenaccess *)0x8C00C)
7144
#define PORTD   (*(volatile struct st_portd   __evenaccess *)0x8C00D)
7145
#define PORTE   (*(volatile struct st_porte   __evenaccess *)0x8C00E)
7146
#define PORTF   (*(volatile struct st_portf   __evenaccess *)0x8C00F)
7147
#define PORTG   (*(volatile struct st_portg   __evenaccess *)0x8C010)
7148
#define PPG0    (*(volatile struct st_ppg0    __evenaccess *)0x881E6)
7149
#define PPG1    (*(volatile struct st_ppg1    __evenaccess *)0x881F0)
7150
#define RIIC0   (*(volatile struct st_riic    __evenaccess *)0x88300)
7151
#define RIIC1   (*(volatile struct st_riic    __evenaccess *)0x88320)
7152
#define RSPI0   (*(volatile struct st_rspi    __evenaccess *)0x88380)
7153
#define RSPI1   (*(volatile struct st_rspi    __evenaccess *)0x883A0)
7154
#define RTC             (*(volatile struct st_rtc     __evenaccess *)0x8C400)
7155
#define S12AD   (*(volatile struct st_s12ad   __evenaccess *)0x89000)
7156
#define SCI0    (*(volatile struct st_sci     __evenaccess *)0x88240)
7157
#define SCI1    (*(volatile struct st_sci     __evenaccess *)0x88248)
7158
#define SCI2    (*(volatile struct st_sci     __evenaccess *)0x88250)
7159
#define SCI3    (*(volatile struct st_sci     __evenaccess *)0x88258)
7160
#define SCI5    (*(volatile struct st_sci     __evenaccess *)0x88268)
7161
#define SCI6    (*(volatile struct st_sci     __evenaccess *)0x88270)
7162
#define SMCI0   (*(volatile struct st_smci    __evenaccess *)0x88240)
7163
#define SMCI1   (*(volatile struct st_smci    __evenaccess *)0x88248)
7164
#define SMCI2   (*(volatile struct st_smci    __evenaccess *)0x88250)
7165
#define SMCI3   (*(volatile struct st_smci    __evenaccess *)0x88258)
7166
#define SMCI5   (*(volatile struct st_smci    __evenaccess *)0x88268)
7167
#define SMCI6   (*(volatile struct st_smci    __evenaccess *)0x88270)
7168
#define SYSTEM  (*(volatile struct st_system  __evenaccess *)0x80000)
7169
#define TMR0    (*(volatile struct st_tmr0    __evenaccess *)0x88200)
7170
#define TMR1    (*(volatile struct st_tmr1    __evenaccess *)0x88201)
7171
#define TMR2    (*(volatile struct st_tmr0    __evenaccess *)0x88210)
7172
#define TMR3    (*(volatile struct st_tmr1    __evenaccess *)0x88211)
7173
#define TMR01   (*(volatile struct st_tmr01   __evenaccess *)0x88204)
7174
#define TMR23   (*(volatile struct st_tmr01   __evenaccess *)0x88214)
7175
#define USB             (*(volatile struct st_usb     __evenaccess *)0xA0400)
7176
#define USB0    (*(volatile struct st_usb0    __evenaccess *)0xA0000)
7177
#define USB1    (*(volatile struct st_usb0    __evenaccess *)0xA0200)
7178
#define WDT             (*(volatile union un_wdt      __evenaccess *)0x88028)
7179
#pragma bit_order
7180
#pragma packoption
7181
#endif

powered by: WebSVN 2.1.0

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