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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 585 jeremybenn
/********************************************************************************/
2
/*                                                                              */
3
/* Summary    : Definition of I/O Register.                                     */
4
/* Version    : V1.1  (2010-04-21)  [Hardware Manual Revision : 0.50]           */
5
/* File Name  : iodefine.h for KPIT GNURX                                       */
6
/* Device     : RX/RX600/RX62N                                                  */
7
/*                                                                              */
8
/*  Copyright(c) 2010 Renesas Electronics Corp.                                 */
9
/*                  And Renesas Solutions Corp. ,All Rights Reserved.           */
10
/*                                                                              */
11
/********************************************************************************/
12
/*                                                                              */
13
/*  CPU TYPE    : RX62N                                                         */
14
/*  DESCRIPTION : Definition of ICU Register                                    */
15
/*                                                                              */
16
/*  Usage : IR,DTCER,IER,IPR of ICU Register                                    */
17
/*     The following IR, DTCE, IEN, IPR macro functions simplify usage.         */
18
/*     The bit access operation is "Bit_Name(interrupt source,name)".           */
19
/*     A part of the name can be omitted.                                       */
20
/*       IR(MTU0,TGIA0) = 0;     expands to :                                   */
21
/*     for example :                                                            */
22
/*         ICU.IR[114].BIT.IR = 0;                                              */
23
/*                                                                              */
24
/*       DTCE(ICU,IRQ0) = 1;     expands to :                                   */
25
/*         ICU.DTCER[64].BIT.DTCE = 1;                                          */
26
/*                                                                              */
27
/*       IEN(CMT0,CMI0) = 1;     expands to :                                   */
28
/*         ICU.IER[0x03].BIT.IEN4 = 1;                                          */
29
/*                                                                              */
30
/*       IPR(MTU1,TGIA1) = 2;    expands to :                                   */
31
/*       IPR(MTU1,TGI  ) = 2;    // TGIA1,TGIB1 share IPR level.                */
32
/*         ICU.IPR[0x53].BIT.IPR = 2;                                           */
33
/*                                                                              */
34
/*       IPR(SCI0,ERI0) = 3;     expands to :                                   */
35
/*       IPR(SCI0,    ) = 3;     // SCI0 uses single IPR for all sources.       */
36
/*         ICU.IPR[0x80].BIT.IPR = 3;                                           */
37
/*                                                                              */
38
/*  Usage : #pragma interrupt Function_Identifier(vect=**)                      */
39
/*     The number of vector is "(interrupt source, name)".                      */
40
/*       #pragma interrupt INT_IRQ0(vect=VECT(ICU,IRQ0))          expands to :  */
41
/*     for example :                                                            */
42
/*       #pragma interrupt INT_CMT0_CMI0(vect=VECT(CMT0,CMI0))    expands to :  */
43
/*       #pragma interrupt INT_MTU0_TGIA0(vect=VECT(MTU0,TGIA0))  expands to :  */
44
/*                                                                              */
45
/*  Usage : MSTPCRA,MSTPCRB,MSTPCRC of SYSTEM Register                          */
46
/*     The bit access operation is "MSTP(name)".                                */
47
/*     The name that can be used is a macro name defined with "iodefine.h".     */
48
/*       MSTP(TMR2) = 0;    // TMR2,TMR3,TMR23                    expands to :  */
49
/*     for example :                                                            */
50
/*         SYSTEM.MSTPCRA.BIT.MSTPA4  = 0;                                      */
51
/*       MSTP(SCI0) = 0;    // SCI0,SMCI0                         expands to :  */
52
/*         SYSTEM.MSTPCRB.BIT.MSTPB31 = 0;                                      */
53
/*       MSTP(MTU4) = 0;    // MTUA,MTU0,MTU1,MTU2,MTU3,MTU4,MTU5 expands to :  */
54
/*         SYSTEM.MSTPCRA.BIT.MSTPA9  = 0;                                      */
55
/*       MSTP(CMT3) = 0;    // CMT2,CMT3                          expands to :  */
56
/*         SYSTEM.MSTPCRA.BIT.MSTPA14 = 0;                                      */
57
/*                                                                              */
58
/********************************************************************************/
59
 
60
#ifndef IODEFINE_H 
61
#define IODEFINE_H
62
 
63
#ifdef __RX_LITTLE_ENDIAN__             /*Little endian*/
64
 
65
struct st_system {
66
    union {
67
        unsigned short WORD;
68
        struct {
69
            unsigned short MD0:1;
70
            unsigned short MD1:1;
71
            unsigned short :5;
72
            unsigned short MDE:1;
73
            unsigned short :8;
74
        } BIT;
75
    } MDMONR;
76
    union {
77
        unsigned short WORD;
78
        struct {
79
            unsigned short IROM:1;
80
            unsigned short EXB:1;
81
            unsigned short BSW:2;
82
            unsigned short BOTS:1;
83
            unsigned short :1;
84
            unsigned short UBTS:1;
85
            unsigned short :9;
86
        } BIT;
87
    } MDSR;
88
    unsigned char wk0[2];
89
    union {
90
        unsigned short WORD;
91
        struct {
92
            unsigned short ROME:1;
93
            unsigned short EXBE:1;
94
            unsigned short :6;
95
            unsigned short KEY:8;
96
        } BIT;
97
    } SYSCR0;
98
    union {
99
        unsigned short WORD;
100
        struct {
101
            unsigned short RAME:1;
102
            unsigned short :15;
103
        } BIT;
104
    } SYSCR1;
105
    unsigned char wk1[2];
106
    union {
107
        unsigned short WORD;
108
        struct {
109
            unsigned short :8;
110
            unsigned short STS:5;
111
            unsigned short :1;
112
            unsigned short OPE:1;
113
            unsigned short SSBY:1;
114
        } BIT;
115
    } SBYCR;
116
    unsigned char wk2[2];
117
    union {
118
        unsigned long LONG;
119
        struct {
120
            unsigned long :4;
121
            unsigned long MSTPA4:1;
122
            unsigned long MSTPA5:1;
123
            unsigned long :2;
124
            unsigned long MSTPA8:1;
125
            unsigned long MSTPA9:1;
126
            unsigned long MSTPA10:1;
127
            unsigned long MSTPA11:1;
128
            unsigned long :2;
129
            unsigned long MSTPA14:1;
130
            unsigned long MSTPA15:1;
131
            unsigned long :1;
132
            unsigned long MSTPA17:1;
133
            unsigned long :1;
134
            unsigned long MSTPA19:1;
135
            unsigned long :2;
136
            unsigned long MSTPA22:1;
137
            unsigned long MSTPA23:1;
138
            unsigned long :4;
139
            unsigned long MSTPA28:1;
140
            unsigned long MSTPA29:1;
141
            unsigned long :1;
142
            unsigned long ACSE:1;
143
        } BIT;
144
    } MSTPCRA;
145
    union {
146
        unsigned long LONG;
147
        struct {
148
            unsigned long MSTPB0:1;
149
            unsigned long :14;
150
            unsigned long MSTPB15:1;
151
            unsigned long MSTPB16:1;
152
            unsigned long MSTPB17:1;
153
            unsigned long MSTPB18:1;
154
            unsigned long MSTPB19:1;
155
            unsigned long MSTPB20:1;
156
            unsigned long MSTPB21:1;
157
            unsigned long :1;
158
            unsigned long MSTPB23:1;
159
            unsigned long :1;
160
            unsigned long MSTPB25:1;
161
            unsigned long MSTPB26:1;
162
            unsigned long :1;
163
            unsigned long MSTPB28:1;
164
            unsigned long MSTPB29:1;
165
            unsigned long MSTPB30:1;
166
            unsigned long MSTPB31:1;
167
        } BIT;
168
    } MSTPCRB;
169
    union {
170
        unsigned long LONG;
171
        struct {
172
            unsigned long MSTPC0:1;
173
            unsigned long MSTPC1:1;
174
            unsigned long :30;
175
        } BIT;
176
    } MSTPCRC;
177
    unsigned char wk3[4];
178
    union {
179
        unsigned long LONG;
180
        struct {
181
            unsigned long :8;
182
            unsigned long PCK:4;
183
            unsigned long :4;
184
            unsigned long BCK:4;
185
            unsigned long :2;
186
            unsigned long PSTOP0:1;
187
            unsigned long PSTOP1:1;
188
            unsigned long ICK:4;
189
            unsigned long :4;
190
        } BIT;
191
    } SCKCR;
192
    unsigned char wk4[12];
193
    union {
194
        unsigned char BYTE;
195
        struct {
196
            unsigned char BCLKDIV:1;
197
            unsigned char :7;
198
        } BIT;
199
    } BCKCR;
200
    unsigned char wk5[15];
201
    union {
202
        unsigned short WORD;
203
        struct {
204
            unsigned short :6;
205
            unsigned short OSTDF:1;
206
            unsigned short OSTDE:1;
207
            unsigned short KEY:8;
208
        } BIT;
209
    } OSTDCR;
210
    unsigned char wk6[49726];
211
    union {
212
        unsigned char BYTE;
213
        struct {
214
            unsigned char RAMCUT0:1;
215
            unsigned char :3;
216
            unsigned char RAMCUT1:1;
217
            unsigned char RAMCUT2:1;
218
            unsigned char IOKEEP:1;
219
            unsigned char DPSBY:1;
220
        } BIT;
221
    } DPSBYCR;
222
    union {
223
        unsigned char BYTE;
224
        struct {
225
            unsigned char WTSTS:6;
226
            unsigned char :2;
227
        } BIT;
228
    } DPSWCR;
229
    union {
230
        unsigned char BYTE;
231
        struct {
232
            unsigned char DIRQ0E:1;
233
            unsigned char DIRQ1E:1;
234
            unsigned char DIRQ2E:1;
235
            unsigned char DIRQ3E:1;
236
            unsigned char DLVDE:1;
237
            unsigned char DRTCE:1;
238
            unsigned char DUSBE:1;
239
            unsigned char DNMIE:1;
240
        } BIT;
241
    } DPSIER;
242
    union {
243
        unsigned char BYTE;
244
        struct {
245
            unsigned char DIRQ0F:1;
246
            unsigned char DIRQ1F:1;
247
            unsigned char DIRQ2F:1;
248
            unsigned char DIRQ3F:1;
249
            unsigned char DLVDF:1;
250
            unsigned char DRTCFF:1;
251
            unsigned char DUSBF:1;
252
            unsigned char DNMIF:1;
253
        } BIT;
254
    } DPSIFR;
255
    union {
256
        unsigned char BYTE;
257
        struct {
258
            unsigned char DIRQ0EG:1;
259
            unsigned char DIRQ1EG:1;
260
            unsigned char DIRQ2EG:1;
261
            unsigned char DIRQ3EG:1;
262
            unsigned char :3;
263
            unsigned char DNMIEG:1;
264
        } BIT;
265
    } DPSIEGR;
266
    union {
267
        unsigned char BYTE;
268
        struct {
269
            unsigned char PORF:1;
270
            unsigned char LVD1F:1;
271
            unsigned char LVD2F:1;
272
            unsigned char :4;
273
            unsigned char DPSRSTF:1;
274
        } BIT;
275
    } RSTSR;
276
    unsigned char wk7[4];
277
    union {
278
        unsigned char BYTE;
279
        struct {
280
            unsigned char SUBSTOP:1;
281
            unsigned char :7;
282
        } BIT;
283
    } SUBOSCCR;
284
    unsigned char wk8[1];
285
    unsigned char LVDKEYR;
286
    union {
287
        unsigned char BYTE;
288
        struct {
289
            unsigned char :2;
290
            unsigned char LVD1RI:1;
291
            unsigned char LVD1E:1;
292
            unsigned char :2;
293
            unsigned char LVD2RI:1;
294
            unsigned char LVD2E:1;
295
        } BIT;
296
    } LVDCR;
297
    unsigned char wk9[2];
298
    unsigned char DPSBKR[32];
299
};
300
 
301
struct st_bsc {
302
    union {
303
        unsigned char BYTE;
304
        struct {
305
            unsigned char STSCLR:1;
306
            unsigned char :7;
307
        } BIT;
308
    } BERCLR;
309
    unsigned char wk0[3];
310
    union {
311
        unsigned char BYTE;
312
        struct {
313
            unsigned char IGAEN:1;
314
            unsigned char TOEN:1;
315
            unsigned char :6;
316
        } BIT;
317
    } BEREN;
318
    unsigned char wk1[3];
319
    union {
320
        unsigned char BYTE;
321
        struct {
322
            unsigned char IA:1;
323
            unsigned char TO:1;
324
            unsigned char :2;
325
            unsigned char MST:3;
326
            unsigned char :1;
327
        } BIT;
328
    } BERSR1;
329
    unsigned char wk2[1];
330
    union {
331
        unsigned short WORD;
332
        struct {
333
            unsigned short :3;
334
            unsigned short ADDR:13;
335
        } BIT;
336
    } BERSR2;
337
    unsigned char wk3[7414];
338
    union {
339
        unsigned short WORD;
340
        struct {
341
            unsigned short WRMOD:1;
342
            unsigned short :2;
343
            unsigned short EWENB:1;
344
            unsigned short :4;
345
            unsigned short PRENB:1;
346
            unsigned short PWENB:1;
347
            unsigned short :5;
348
            unsigned short PRMOD:1;
349
        } BIT;
350
    } CS0MOD;
351
    union {
352
        unsigned long LONG;
353
        struct {
354
            unsigned long CSPWWAIT:3;
355
            unsigned long :5;
356
            unsigned long CSPRWAIT:3;
357
            unsigned long :5;
358
            unsigned long CSWWAIT:5;
359
            unsigned long :3;
360
            unsigned long CSRWAIT:5;
361
            unsigned long :3;
362
        } BIT;
363
    } CS0WCR1;
364
    union {
365
        unsigned long LONG;
366
        struct {
367
            unsigned long CSROFF:3;
368
            unsigned long :1;
369
            unsigned long CSWOFF:3;
370
            unsigned long :1;
371
            unsigned long WDOFF:3;
372
            unsigned long :5;
373
            unsigned long RDON:3;
374
            unsigned long :1;
375
            unsigned long WRON:3;
376
            unsigned long :1;
377
            unsigned long WDON:3;
378
            unsigned long :1;
379
            unsigned long CSON:3;
380
            unsigned long :1;
381
        } BIT;
382
    } CS0WCR2;
383
    unsigned char wk4[6];
384
    union {
385
        unsigned short WORD;
386
        struct {
387
            unsigned short WRMOD:1;
388
            unsigned short :2;
389
            unsigned short EWENB:1;
390
            unsigned short :4;
391
            unsigned short PRENB:1;
392
            unsigned short PWENB:1;
393
            unsigned short :5;
394
            unsigned short PRMOD:1;
395
        } BIT;
396
    } CS1MOD;
397
    union {
398
        unsigned long LONG;
399
        struct {
400
            unsigned long CSPWWAIT:3;
401
            unsigned long :5;
402
            unsigned long CSPRWAIT:3;
403
            unsigned long :5;
404
            unsigned long CSWWAIT:5;
405
            unsigned long :3;
406
            unsigned long CSRWAIT:5;
407
            unsigned long :3;
408
        } BIT;
409
    } CS1WCR1;
410
    union {
411
        unsigned long LONG;
412
        struct {
413
            unsigned long CSROFF:3;
414
            unsigned long :1;
415
            unsigned long CSWOFF:3;
416
            unsigned long :1;
417
            unsigned long WDOFF:3;
418
            unsigned long :5;
419
            unsigned long RDON:3;
420
            unsigned long :1;
421
            unsigned long WRON:3;
422
            unsigned long :1;
423
            unsigned long WDON:3;
424
            unsigned long :1;
425
            unsigned long CSON:3;
426
            unsigned long :1;
427
        } BIT;
428
    } CS1WCR2;
429
    unsigned char wk5[6];
430
    union {
431
        unsigned short WORD;
432
        struct {
433
            unsigned short WRMOD:1;
434
            unsigned short :2;
435
            unsigned short EWENB:1;
436
            unsigned short :4;
437
            unsigned short PRENB:1;
438
            unsigned short PWENB:1;
439
            unsigned short :5;
440
            unsigned short PRMOD:1;
441
        } BIT;
442
    } CS2MOD;
443
    union {
444
        unsigned long LONG;
445
        struct {
446
            unsigned long CSPWWAIT:3;
447
            unsigned long :5;
448
            unsigned long CSPRWAIT:3;
449
            unsigned long :5;
450
            unsigned long CSWWAIT:5;
451
            unsigned long :3;
452
            unsigned long CSRWAIT:5;
453
            unsigned long :3;
454
        } BIT;
455
    } CS2WCR1;
456
    union {
457
        unsigned long LONG;
458
        struct {
459
            unsigned long CSROFF:3;
460
            unsigned long :1;
461
            unsigned long CSWOFF:3;
462
            unsigned long :1;
463
            unsigned long WDOFF:3;
464
            unsigned long :5;
465
            unsigned long RDON:3;
466
            unsigned long :1;
467
            unsigned long WRON:3;
468
            unsigned long :1;
469
            unsigned long WDON:3;
470
            unsigned long :1;
471
            unsigned long CSON:3;
472
            unsigned long :1;
473
        } BIT;
474
    } CS2WCR2;
475
    unsigned char wk6[6];
476
    union {
477
        unsigned short WORD;
478
        struct {
479
            unsigned short WRMOD:1;
480
            unsigned short :2;
481
            unsigned short EWENB:1;
482
            unsigned short :4;
483
            unsigned short PRENB:1;
484
            unsigned short PWENB:1;
485
            unsigned short :5;
486
            unsigned short PRMOD:1;
487
        } BIT;
488
    } CS3MOD;
489
    union {
490
        unsigned long LONG;
491
        struct {
492
            unsigned long CSPWWAIT:3;
493
            unsigned long :5;
494
            unsigned long CSPRWAIT:3;
495
            unsigned long :5;
496
            unsigned long CSWWAIT:5;
497
            unsigned long :3;
498
            unsigned long CSRWAIT:5;
499
            unsigned long :3;
500
        } BIT;
501
    } CS3WCR1;
502
    union {
503
        unsigned long LONG;
504
        struct {
505
            unsigned long CSROFF:3;
506
            unsigned long :1;
507
            unsigned long CSWOFF:3;
508
            unsigned long :1;
509
            unsigned long WDOFF:3;
510
            unsigned long :5;
511
            unsigned long RDON:3;
512
            unsigned long :1;
513
            unsigned long WRON:3;
514
            unsigned long :1;
515
            unsigned long WDON:3;
516
            unsigned long :1;
517
            unsigned long CSON:3;
518
            unsigned long :1;
519
        } BIT;
520
    } CS3WCR2;
521
    unsigned char wk7[6];
522
    union {
523
        unsigned short WORD;
524
        struct {
525
            unsigned short WRMOD:1;
526
            unsigned short :2;
527
            unsigned short EWENB:1;
528
            unsigned short :4;
529
            unsigned short PRENB:1;
530
            unsigned short PWENB:1;
531
            unsigned short :5;
532
            unsigned short PRMOD:1;
533
        } BIT;
534
    } CS4MOD;
535
    union {
536
        unsigned long LONG;
537
        struct {
538
            unsigned long CSPWWAIT:3;
539
            unsigned long :5;
540
            unsigned long CSPRWAIT:3;
541
            unsigned long :5;
542
            unsigned long CSWWAIT:5;
543
            unsigned long :3;
544
            unsigned long CSRWAIT:5;
545
            unsigned long :3;
546
        } BIT;
547
    } CS4WCR1;
548
    union {
549
        unsigned long LONG;
550
        struct {
551
            unsigned long CSROFF:3;
552
            unsigned long :1;
553
            unsigned long CSWOFF:3;
554
            unsigned long :1;
555
            unsigned long WDOFF:3;
556
            unsigned long :5;
557
            unsigned long RDON:3;
558
            unsigned long :1;
559
            unsigned long WRON:3;
560
            unsigned long :1;
561
            unsigned long WDON:3;
562
            unsigned long :1;
563
            unsigned long CSON:3;
564
            unsigned long :1;
565
        } BIT;
566
    } CS4WCR2;
567
    unsigned char wk8[6];
568
    union {
569
        unsigned short WORD;
570
        struct {
571
            unsigned short WRMOD:1;
572
            unsigned short :2;
573
            unsigned short EWENB:1;
574
            unsigned short :4;
575
            unsigned short PRENB:1;
576
            unsigned short PWENB:1;
577
            unsigned short :5;
578
            unsigned short PRMOD:1;
579
        } BIT;
580
    } CS5MOD;
581
    union {
582
        unsigned long LONG;
583
        struct {
584
            unsigned long CSPWWAIT:3;
585
            unsigned long :5;
586
            unsigned long CSPRWAIT:3;
587
            unsigned long :5;
588
            unsigned long CSWWAIT:5;
589
            unsigned long :3;
590
            unsigned long CSRWAIT:5;
591
            unsigned long :3;
592
        } BIT;
593
    } CS5WCR1;
594
    union {
595
        unsigned long LONG;
596
        struct {
597
            unsigned long CSROFF:3;
598
            unsigned long :1;
599
            unsigned long CSWOFF:3;
600
            unsigned long :1;
601
            unsigned long WDOFF:3;
602
            unsigned long :5;
603
            unsigned long RDON:3;
604
            unsigned long :1;
605
            unsigned long WRON:3;
606
            unsigned long :1;
607
            unsigned long WDON:3;
608
            unsigned long :1;
609
            unsigned long CSON:3;
610
            unsigned long :1;
611
        } BIT;
612
    } CS5WCR2;
613
    unsigned char wk9[6];
614
    union {
615
        unsigned short WORD;
616
        struct {
617
            unsigned short WRMOD:1;
618
            unsigned short :2;
619
            unsigned short EWENB:1;
620
            unsigned short :4;
621
            unsigned short PRENB:1;
622
            unsigned short PWENB:1;
623
            unsigned short :5;
624
            unsigned short PRMOD:1;
625
        } BIT;
626
    } CS6MOD;
627
    union {
628
        unsigned long LONG;
629
        struct {
630
            unsigned long CSPWWAIT:3;
631
            unsigned long :5;
632
            unsigned long CSPRWAIT:3;
633
            unsigned long :5;
634
            unsigned long CSWWAIT:5;
635
            unsigned long :3;
636
            unsigned long CSRWAIT:5;
637
            unsigned long :3;
638
        } BIT;
639
    } CS6WCR1;
640
    union {
641
        unsigned long LONG;
642
        struct {
643
            unsigned long CSROFF:3;
644
            unsigned long :1;
645
            unsigned long CSWOFF:3;
646
            unsigned long :1;
647
            unsigned long WDOFF:3;
648
            unsigned long :5;
649
            unsigned long RDON:3;
650
            unsigned long :1;
651
            unsigned long WRON:3;
652
            unsigned long :1;
653
            unsigned long WDON:3;
654
            unsigned long :1;
655
            unsigned long CSON:3;
656
            unsigned long :1;
657
        } BIT;
658
    } CS6WCR2;
659
    unsigned char wk10[6];
660
    union {
661
        unsigned short WORD;
662
        struct {
663
            unsigned short WRMOD:1;
664
            unsigned short :2;
665
            unsigned short EWENB:1;
666
            unsigned short :4;
667
            unsigned short PRENB:1;
668
            unsigned short PWENB:1;
669
            unsigned short :5;
670
            unsigned short PRMOD:1;
671
        } BIT;
672
    } CS7MOD;
673
    union {
674
        unsigned long LONG;
675
        struct {
676
            unsigned long CSPWWAIT:3;
677
            unsigned long :5;
678
            unsigned long CSPRWAIT:3;
679
            unsigned long :5;
680
            unsigned long CSWWAIT:5;
681
            unsigned long :3;
682
            unsigned long CSRWAIT:5;
683
            unsigned long :3;
684
        } BIT;
685
    } CS7WCR1;
686
    union {
687
        unsigned long LONG;
688
        struct {
689
            unsigned long CSROFF:3;
690
            unsigned long :1;
691
            unsigned long CSWOFF:3;
692
            unsigned long :1;
693
            unsigned long WDOFF:3;
694
            unsigned long :5;
695
            unsigned long RDON:3;
696
            unsigned long :1;
697
            unsigned long WRON:3;
698
            unsigned long :1;
699
            unsigned long WDON:3;
700
            unsigned long :1;
701
            unsigned long CSON:3;
702
            unsigned long :1;
703
        } BIT;
704
    } CS7WCR2;
705
    unsigned char wk11[1926];
706
    union {
707
        unsigned short WORD;
708
        struct {
709
            unsigned short EXENB:1;
710
            unsigned short :3;
711
            unsigned short BSIZE:2;
712
            unsigned short :2;
713
            unsigned short EMODE:1;
714
            unsigned short :7;
715
        } BIT;
716
    } CS0CR;
717
    unsigned char wk12[6];
718
    union {
719
        unsigned short WORD;
720
        struct {
721
            unsigned short RRCV:4;
722
            unsigned short :4;
723
            unsigned short WRCV:4;
724
            unsigned short :4;
725
        } BIT;
726
    } CS0REC;
727
    unsigned char wk13[6];
728
    union {
729
        unsigned short WORD;
730
        struct {
731
            unsigned short EXENB:1;
732
            unsigned short :3;
733
            unsigned short BSIZE:2;
734
            unsigned short :2;
735
            unsigned short EMODE:1;
736
            unsigned short :7;
737
        } BIT;
738
    } CS1CR;
739
    unsigned char wk14[6];
740
    union {
741
        unsigned short WORD;
742
        struct {
743
            unsigned short RRCV:4;
744
            unsigned short :4;
745
            unsigned short WRCV:4;
746
            unsigned short :4;
747
        } BIT;
748
    } CS1REC;
749
    unsigned char wk15[6];
750
    union {
751
        unsigned short WORD;
752
        struct {
753
            unsigned short EXENB:1;
754
            unsigned short :3;
755
            unsigned short BSIZE:2;
756
            unsigned short :2;
757
            unsigned short EMODE:1;
758
            unsigned short :7;
759
        } BIT;
760
    } CS2CR;
761
    unsigned char wk16[6];
762
    union {
763
        unsigned short WORD;
764
        struct {
765
            unsigned short RRCV:4;
766
            unsigned short :4;
767
            unsigned short WRCV:4;
768
            unsigned short :4;
769
        } BIT;
770
    } CS2REC;
771
    unsigned char wk17[6];
772
    union {
773
        unsigned short WORD;
774
        struct {
775
            unsigned short EXENB:1;
776
            unsigned short :3;
777
            unsigned short BSIZE:2;
778
            unsigned short :2;
779
            unsigned short EMODE:1;
780
            unsigned short :7;
781
        } BIT;
782
    } CS3CR;
783
    unsigned char wk18[6];
784
    union {
785
        unsigned short WORD;
786
        struct {
787
            unsigned short RRCV:4;
788
            unsigned short :4;
789
            unsigned short WRCV:4;
790
            unsigned short :4;
791
        } BIT;
792
    } CS3REC;
793
    unsigned char wk19[6];
794
    union {
795
        unsigned short WORD;
796
        struct {
797
            unsigned short EXENB:1;
798
            unsigned short :3;
799
            unsigned short BSIZE:2;
800
            unsigned short :2;
801
            unsigned short EMODE:1;
802
            unsigned short :7;
803
        } BIT;
804
    } CS4CR;
805
    unsigned char wk20[6];
806
    union {
807
        unsigned short WORD;
808
        struct {
809
            unsigned short RRCV:4;
810
            unsigned short :4;
811
            unsigned short WRCV:4;
812
            unsigned short :4;
813
        } BIT;
814
    } CS4REC;
815
    unsigned char wk21[6];
816
    union {
817
        unsigned short WORD;
818
        struct {
819
            unsigned short EXENB:1;
820
            unsigned short :3;
821
            unsigned short BSIZE:2;
822
            unsigned short :2;
823
            unsigned short EMODE:1;
824
            unsigned short :7;
825
        } BIT;
826
    } CS5CR;
827
    unsigned char wk22[6];
828
    union {
829
        unsigned short WORD;
830
        struct {
831
            unsigned short RRCV:4;
832
            unsigned short :4;
833
            unsigned short WRCV:4;
834
            unsigned short :4;
835
        } BIT;
836
    } CS5REC;
837
    unsigned char wk23[6];
838
    union {
839
        unsigned short WORD;
840
        struct {
841
            unsigned short EXENB:1;
842
            unsigned short :3;
843
            unsigned short BSIZE:2;
844
            unsigned short :2;
845
            unsigned short EMODE:1;
846
            unsigned short :7;
847
        } BIT;
848
    } CS6CR;
849
    unsigned char wk24[6];
850
    union {
851
        unsigned short WORD;
852
        struct {
853
            unsigned short RRCV:4;
854
            unsigned short :4;
855
            unsigned short WRCV:4;
856
            unsigned short :4;
857
        } BIT;
858
    } CS6REC;
859
    unsigned char wk25[6];
860
    union {
861
        unsigned short WORD;
862
        struct {
863
            unsigned short EXENB:1;
864
            unsigned short :3;
865
            unsigned short BSIZE:2;
866
            unsigned short :2;
867
            unsigned short EMODE:1;
868
            unsigned short :7;
869
        } BIT;
870
    } CS7CR;
871
    unsigned char wk26[6];
872
    union {
873
        unsigned short WORD;
874
        struct {
875
            unsigned short RRCV:4;
876
            unsigned short :4;
877
            unsigned short WRCV:4;
878
            unsigned short :4;
879
        } BIT;
880
    } CS7REC;
881
    unsigned char wk27[900];
882
    union {
883
        unsigned char BYTE;
884
        struct {
885
            unsigned char EXENB:1;
886
            unsigned char :3;
887
            unsigned char BSIZE:2;
888
            unsigned char :2;
889
        } BIT;
890
    } SDCCR;
891
    union {
892
        unsigned char BYTE;
893
        struct {
894
            unsigned char EMODE:1;
895
            unsigned char :7;
896
        } BIT;
897
    } SDCMOD;
898
    union {
899
        unsigned char BYTE;
900
        struct {
901
            unsigned char BE:1;
902
            unsigned char :7;
903
        } BIT;
904
    } SDAMOD;
905
    unsigned char wk28[13];
906
    union {
907
        unsigned char BYTE;
908
        struct {
909
            unsigned char SFEN:1;
910
            unsigned char :7;
911
        } BIT;
912
    } SDSELF;
913
    unsigned char wk29[3];
914
    union {
915
        unsigned short WORD;
916
        struct {
917
            unsigned short RFC:12;
918
            unsigned short REFW:4;
919
        } BIT;
920
    } SDRFCR;
921
    union {
922
        unsigned char BYTE;
923
        struct {
924
            unsigned char RFEN:1;
925
            unsigned char :7;
926
        } BIT;
927
    } SDRFEN;
928
    unsigned char wk30[9];
929
    union {
930
        unsigned char BYTE;
931
        struct {
932
            unsigned char INIRQ:1;
933
            unsigned char :7;
934
        } BIT;
935
    } SDICR;
936
    unsigned char wk31[3];
937
    union {
938
        unsigned short WORD;
939
        struct {
940
            unsigned short ARFI:4;
941
            unsigned short ARFC:4;
942
            unsigned short PRC:3;
943
            unsigned short :5;
944
        } BIT;
945
    } SDIR;
946
    unsigned char wk32[26];
947
    union {
948
        unsigned char BYTE;
949
        struct {
950
            unsigned char MXC:2;
951
            unsigned char :6;
952
        } BIT;
953
    } SDADR;
954
    unsigned char wk33[3];
955
    union {
956
        unsigned long LONG;
957
        struct {
958
            unsigned long CL:3;
959
            unsigned long :5;
960
            unsigned long WR:1;
961
            unsigned long RP:3;
962
            unsigned long RCD:2;
963
            unsigned long :2;
964
            unsigned long RAS:3;
965
            unsigned long :13;
966
        } BIT;
967
    } SDTR;
968
    union {
969
        unsigned short WORD;
970
        struct {
971
            unsigned short MR:15;
972
            unsigned short :1;
973
        } BIT;
974
    } SDMOD;
975
    unsigned char wk34[6];
976
    union {
977
        unsigned char BYTE;
978
        struct {
979
            unsigned char MRSST:1;
980
            unsigned char :2;
981
            unsigned char INIST:1;
982
            unsigned char SRFST:1;
983
            unsigned char :3;
984
        } BIT;
985
    } SDSR;
986
};
987
 
988
struct st_dmac0 {
989
    void *DMSAR;
990
    void *DMDAR;
991
    unsigned long DMCRA;
992
    unsigned short DMCRB;
993
    unsigned char wk0[2];
994
    union {
995
        unsigned short WORD;
996
        struct {
997
            unsigned short DCTG:2;
998
            unsigned short :6;
999
            unsigned short SZ:2;
1000
            unsigned short :2;
1001
            unsigned short DTS:2;
1002
            unsigned short MD:2;
1003
        } BIT;
1004
    } DMTMD;
1005
    unsigned char wk1[1];
1006
    union {
1007
        unsigned char BYTE;
1008
        struct {
1009
            unsigned char DARIE:1;
1010
            unsigned char SARIE:1;
1011
            unsigned char RPTIE:1;
1012
            unsigned char ESIE:1;
1013
            unsigned char DTIE:1;
1014
            unsigned char :3;
1015
        } BIT;
1016
    } DMINT;
1017
    union {
1018
        unsigned short WORD;
1019
        struct {
1020
            unsigned short DARA:5;
1021
            unsigned short :1;
1022
            unsigned short DM:2;
1023
            unsigned short SARA:5;
1024
            unsigned short :1;
1025
            unsigned short SM:2;
1026
        } BIT;
1027
    } DMAMD;
1028
    unsigned char wk2[2];
1029
    unsigned long DMOFR;
1030
    union {
1031
        unsigned char BYTE;
1032
        struct {
1033
            unsigned char DTE:1;
1034
            unsigned char :7;
1035
        } BIT;
1036
    } DMCNT;
1037
    union {
1038
        unsigned char BYTE;
1039
        struct {
1040
            unsigned char SWREQ:1;
1041
            unsigned char :3;
1042
            unsigned char CLRS:1;
1043
            unsigned char :3;
1044
        } BIT;
1045
    } DMREQ;
1046
    union {
1047
        unsigned char BYTE;
1048
        struct {
1049
            unsigned char ESIF:1;
1050
            unsigned char :3;
1051
            unsigned char DTIF:1;
1052
            unsigned char :2;
1053
            unsigned char ACT:1;
1054
        } BIT;
1055
    } DMSTS;
1056
    union {
1057
        unsigned char BYTE;
1058
        struct {
1059
            unsigned char DISEL:1;
1060
            unsigned char :7;
1061
        } BIT;
1062
    } DMCSL;
1063
};
1064
 
1065
struct st_dmac1 {
1066
    void *DMSAR;
1067
    void *DMDAR;
1068
    unsigned long DMCRA;
1069
    unsigned short DMCRB;
1070
    unsigned char wk0[2];
1071
    union {
1072
        unsigned short WORD;
1073
        struct {
1074
            unsigned short DCTG:2;
1075
            unsigned short :6;
1076
            unsigned short SZ:2;
1077
            unsigned short :2;
1078
            unsigned short DTS:2;
1079
            unsigned short MD:2;
1080
        } BIT;
1081
    } DMTMD;
1082
    unsigned char wk1[1];
1083
    union {
1084
        unsigned char BYTE;
1085
        struct {
1086
            unsigned char DARIE:1;
1087
            unsigned char SARIE:1;
1088
            unsigned char RPTIE:1;
1089
            unsigned char ESIE:1;
1090
            unsigned char DTIE:1;
1091
            unsigned char :3;
1092
        } BIT;
1093
    } DMINT;
1094
    union {
1095
        unsigned short WORD;
1096
        struct {
1097
            unsigned short DARA:5;
1098
            unsigned short :1;
1099
            unsigned short DM:2;
1100
            unsigned short SARA:5;
1101
            unsigned short :1;
1102
            unsigned short SM:2;
1103
        } BIT;
1104
    } DMAMD;
1105
    unsigned char wk2[6];
1106
    union {
1107
        unsigned char BYTE;
1108
        struct {
1109
            unsigned char DTE:1;
1110
            unsigned char :7;
1111
        } BIT;
1112
    } DMCNT;
1113
    union {
1114
        unsigned char BYTE;
1115
        struct {
1116
            unsigned char SWREQ:1;
1117
            unsigned char :3;
1118
            unsigned char CLRS:1;
1119
            unsigned char :3;
1120
        } BIT;
1121
    } DMREQ;
1122
    union {
1123
        unsigned char BYTE;
1124
        struct {
1125
            unsigned char ESIF:1;
1126
            unsigned char :3;
1127
            unsigned char DTIF:1;
1128
            unsigned char :2;
1129
            unsigned char ACT:1;
1130
        } BIT;
1131
    } DMSTS;
1132
    union {
1133
        unsigned char BYTE;
1134
        struct {
1135
            unsigned char DISEL:1;
1136
            unsigned char :7;
1137
        } BIT;
1138
    } DMCSL;
1139
};
1140
 
1141
struct st_dmac {
1142
    union {
1143
        unsigned char BYTE;
1144
        struct {
1145
            unsigned char DMST:1;
1146
            unsigned char :7;
1147
        } BIT;
1148
    } DMAST;
1149
};
1150
 
1151
struct st_dtc {
1152
    union {
1153
        unsigned char BYTE;
1154
        struct {
1155
            unsigned char :4;
1156
            unsigned char RRS:1;
1157
            unsigned char :3;
1158
        } BIT;
1159
    } DTCCR;
1160
    unsigned char wk0[3];
1161
    void *DTCVBR;
1162
    union {
1163
        unsigned char BYTE;
1164
        struct {
1165
            unsigned char SHORT:1;
1166
            unsigned char :7;
1167
        } BIT;
1168
    } DTCADMOD;
1169
    unsigned char wk1[3];
1170
    union {
1171
        unsigned char BYTE;
1172
        struct {
1173
            unsigned char DTCST:1;
1174
            unsigned char :7;
1175
        } BIT;
1176
    } DTCST;
1177
    unsigned char wk2[1];
1178
    union {
1179
        unsigned short WORD;
1180
        struct {
1181
            unsigned short VECN:8;
1182
            unsigned short :7;
1183
            unsigned short ACT:1;
1184
        } BIT;
1185
    } DTCSTS;
1186
};
1187
 
1188
struct st_exdmac0 {
1189
    void *EDMSAR;
1190
    void *EDMDAR;
1191
    unsigned long EDMCRA;
1192
    unsigned short EDMCRB;
1193
    unsigned char wk0[2];
1194
    union {
1195
        unsigned short WORD;
1196
        struct {
1197
            unsigned short DCTG:2;
1198
            unsigned short :6;
1199
            unsigned short SZ:2;
1200
            unsigned short :2;
1201
            unsigned short DTS:2;
1202
            unsigned short MD:2;
1203
        } BIT;
1204
    } EDMTMD;
1205
    union {
1206
        unsigned char BYTE;
1207
        struct {
1208
            unsigned char :1;
1209
            unsigned char DACKW:1;
1210
            unsigned char DACKE:1;
1211
            unsigned char DACKS:1;
1212
            unsigned char :4;
1213
        } BIT;
1214
    } EDMOMD;
1215
    union {
1216
        unsigned char BYTE;
1217
        struct {
1218
            unsigned char DARIE:1;
1219
            unsigned char SARIE:1;
1220
            unsigned char RPTIE:1;
1221
            unsigned char ESIE:1;
1222
            unsigned char DTIE:1;
1223
            unsigned char :3;
1224
        } BIT;
1225
    } EDMINT;
1226
    union {
1227
        unsigned long LONG;
1228
        struct {
1229
            unsigned long DARA:5;
1230
            unsigned long :1;
1231
            unsigned long DM:2;
1232
            unsigned long SARA:5;
1233
            unsigned long :1;
1234
            unsigned long SM:2;
1235
            unsigned long DIR:1;
1236
            unsigned long AMS:1;
1237
            unsigned long :14;
1238
        } BIT;
1239
    } EDMAMD;
1240
    unsigned long EDMOFR;
1241
    union {
1242
        unsigned char BYTE;
1243
        struct {
1244
            unsigned char DTE:1;
1245
            unsigned char :7;
1246
        } BIT;
1247
    } EDMCNT;
1248
    union {
1249
        unsigned char BYTE;
1250
        struct {
1251
            unsigned char SWREQ:1;
1252
            unsigned char :3;
1253
            unsigned char CLRS:1;
1254
            unsigned char :3;
1255
        } BIT;
1256
    } EDMREQ;
1257
    union {
1258
        unsigned char BYTE;
1259
        struct {
1260
            unsigned char ESIF:1;
1261
            unsigned char :3;
1262
            unsigned char DTIF:1;
1263
            unsigned char :2;
1264
            unsigned char ACT:1;
1265
        } BIT;
1266
    } EDMSTS;
1267
    unsigned char wk1[1];
1268
    union {
1269
        unsigned char BYTE;
1270
        struct {
1271
            unsigned char DREQS:2;
1272
            unsigned char :6;
1273
        } BIT;
1274
    } EDMRMD;
1275
    union {
1276
        unsigned char BYTE;
1277
        struct {
1278
            unsigned char EREQ:1;
1279
            unsigned char :7;
1280
        } BIT;
1281
    } EDMERF;
1282
    union {
1283
        unsigned char BYTE;
1284
        struct {
1285
            unsigned char PREQ:1;
1286
            unsigned char :7;
1287
        } BIT;
1288
    } EDMPRF;
1289
};
1290
 
1291
struct st_exdmac {
1292
    union {
1293
        unsigned char BYTE;
1294
        struct {
1295
            unsigned char DMST:1;
1296
            unsigned char :7;
1297
        } BIT;
1298
    } EDMAST;
1299
    unsigned char wk0[479];
1300
    unsigned long CLSBR0;
1301
    unsigned long CLSBR1;
1302
    unsigned long CLSBR2;
1303
    unsigned long CLSBR3;
1304
    unsigned long CLSBR4;
1305
    unsigned long CLSBR5;
1306
    unsigned long CLSBR6;
1307
    unsigned long CLSBR7;
1308
};
1309
 
1310
struct st_icu {
1311
    union {
1312
        unsigned char BYTE;
1313
        struct {
1314
            unsigned char IR:1;
1315
            unsigned char :7;
1316
        } BIT;
1317
    } IR[254];
1318
    unsigned char wk17[2];
1319
    union {
1320
        unsigned char BYTE;
1321
        struct {
1322
            unsigned char DTCE:1;
1323
            unsigned char :7;
1324
        } BIT;
1325
    } DTCER[254];
1326
    unsigned char wk47[2];
1327
    union {
1328
        unsigned char BYTE;
1329
        struct {
1330
            unsigned char IEN0:1;
1331
            unsigned char IEN1:1;
1332
            unsigned char IEN2:1;
1333
            unsigned char IEN3:1;
1334
            unsigned char IEN4:1;
1335
            unsigned char IEN5:1;
1336
            unsigned char IEN6:1;
1337
            unsigned char IEN7:1;
1338
        } BIT;
1339
    } IER[32];
1340
    unsigned char wk50[192];
1341
    union {
1342
        unsigned char BYTE;
1343
        struct {
1344
            unsigned char SWINT:1;
1345
            unsigned char :7;
1346
        } BIT;
1347
    } SWINTR;
1348
    unsigned char wk51[15];
1349
    union {
1350
        unsigned short WORD;
1351
        struct {
1352
            unsigned short FVCT:8;
1353
            unsigned short :7;
1354
            unsigned short FIEN:1;
1355
        } BIT;
1356
    } FIR;
1357
    unsigned char wk52[14];
1358
    union {
1359
        unsigned char BYTE;
1360
        struct {
1361
            unsigned char IPR:4;
1362
            unsigned char :4;
1363
        } BIT;
1364
    } IPR[144];
1365
    unsigned char wk67[112];
1366
    unsigned char DMRSR0;
1367
    unsigned char wk68[3];
1368
    unsigned char DMRSR1;
1369
    unsigned char wk69[3];
1370
    unsigned char DMRSR2;
1371
    unsigned char wk70[3];
1372
    unsigned char DMRSR3;
1373
    unsigned char wk71[243];
1374
    union {
1375
        unsigned char BYTE;
1376
        struct {
1377
            unsigned char :2;
1378
            unsigned char IRQMD:2;
1379
            unsigned char :4;
1380
        } BIT;
1381
    } IRQCR[16];
1382
    unsigned char wk72[112];
1383
    union {
1384
        unsigned char BYTE;
1385
        struct {
1386
            unsigned char NMIST:1;
1387
            unsigned char LVDST:1;
1388
            unsigned char OSTST:1;
1389
            unsigned char :5;
1390
        } BIT;
1391
    } NMISR;
1392
    union {
1393
        unsigned char BYTE;
1394
        struct {
1395
            unsigned char NMIEN:1;
1396
            unsigned char LVDEN:1;
1397
            unsigned char OSTEN:1;
1398
            unsigned char :5;
1399
        } BIT;
1400
    } NMIER;
1401
    union {
1402
        unsigned char BYTE;
1403
        struct {
1404
            unsigned char NMICLR:1;
1405
            unsigned char :1;
1406
            unsigned char OSTCLR:1;
1407
            unsigned char :5;
1408
        } BIT;
1409
    } NMICLR;
1410
    union {
1411
        unsigned char BYTE;
1412
        struct {
1413
            unsigned char :3;
1414
            unsigned char NMIMD:1;
1415
            unsigned char :4;
1416
        } BIT;
1417
    } NMICR;
1418
};
1419
 
1420
struct st_cmt {
1421
    union {
1422
        unsigned short WORD;
1423
        struct {
1424
            unsigned short STR0:1;
1425
            unsigned short STR1:1;
1426
            unsigned short :14;
1427
        } BIT;
1428
    } CMSTR0;
1429
    unsigned char wk0[14];
1430
    union {
1431
        unsigned short WORD;
1432
        struct {
1433
            unsigned short STR2:1;
1434
            unsigned short STR3:1;
1435
            unsigned short :14;
1436
        } BIT;
1437
    } CMSTR1;
1438
};
1439
 
1440
struct st_cmt0 {
1441
    union {
1442
        unsigned short WORD;
1443
        struct {
1444
            unsigned short CKS:2;
1445
            unsigned short :4;
1446
            unsigned short CMIE:1;
1447
            unsigned short :9;
1448
        } BIT;
1449
    } CMCR;
1450
    unsigned short CMCNT;
1451
    unsigned short CMCOR;
1452
};
1453
 
1454
union un_wdt {
1455
    struct {
1456
        union {
1457
            unsigned char BYTE;
1458
            struct {
1459
                unsigned char CKS:3;
1460
                unsigned char :2;
1461
                unsigned char TME:1;
1462
                unsigned char TMS:1;
1463
                unsigned char :1;
1464
            } BIT;
1465
        } TCSR;
1466
        unsigned char TCNT;
1467
        unsigned char wk0[1];
1468
        union {
1469
            unsigned char BYTE;
1470
            struct {
1471
                unsigned char :6;
1472
                unsigned char RSTE:1;
1473
                unsigned char WOVF:1;
1474
            } BIT;
1475
        } RSTCSR;
1476
    } READ;
1477
    struct {
1478
        unsigned short WINA;
1479
        unsigned short WINB;
1480
    } WRITE;
1481
};
1482
 
1483
struct st_iwdt {
1484
    unsigned char IWDTRR;
1485
    unsigned char wk0[1];
1486
    union {
1487
        unsigned short WORD;
1488
        struct {
1489
            unsigned short TOPS:2;
1490
            unsigned short :2;
1491
            unsigned short CKS:4;
1492
            unsigned short :8;
1493
        } BIT;
1494
    } IWDTCR;
1495
    union {
1496
        unsigned short WORD;
1497
        struct {
1498
            unsigned short CNTVAL:14;
1499
            unsigned short UNDFF:1;
1500
            unsigned short :1;
1501
        } BIT;
1502
    } IWDTSR;
1503
};
1504
 
1505
struct st_ad {
1506
    unsigned short ADDRA;
1507
    unsigned short ADDRB;
1508
    unsigned short ADDRC;
1509
    unsigned short ADDRD;
1510
    unsigned char wk0[8];
1511
    union {
1512
        unsigned char BYTE;
1513
        struct {
1514
            unsigned char CH:4;
1515
            unsigned char :1;
1516
            unsigned char ADST:1;
1517
            unsigned char ADIE:1;
1518
            unsigned char :1;
1519
        } BIT;
1520
    } ADCSR;
1521
    union {
1522
        unsigned char BYTE;
1523
        struct {
1524
            unsigned char MODE:2;
1525
            unsigned char CKS:2;
1526
            unsigned char :1;
1527
            unsigned char TRGS:3;
1528
        } BIT;
1529
    } ADCR;
1530
    union {
1531
        unsigned char BYTE;
1532
        struct {
1533
            unsigned char :7;
1534
            unsigned char DPSEL:1;
1535
        } BIT;
1536
    } ADDPR;
1537
    unsigned char ADSSTR;
1538
    unsigned char wk1[11];
1539
    union {
1540
        unsigned char BYTE;
1541
        struct {
1542
            unsigned char DIAG:2;
1543
            unsigned char :6;
1544
        } BIT;
1545
    } ADDIAGR;
1546
};
1547
 
1548
struct st_da {
1549
    unsigned short DADR0;
1550
    unsigned short DADR1;
1551
    union {
1552
        unsigned char BYTE;
1553
        struct {
1554
            unsigned char :5;
1555
            unsigned char DAE:1;
1556
            unsigned char DAOE0:1;
1557
            unsigned char DAOE1:1;
1558
        } BIT;
1559
    } DACR;
1560
    union {
1561
        unsigned char BYTE;
1562
        struct {
1563
            unsigned char :7;
1564
            unsigned char DPSEL:1;
1565
        } BIT;
1566
    } DADPR;
1567
};
1568
 
1569
struct st_ppg0 {
1570
    union {
1571
        unsigned char BYTE;
1572
        struct {
1573
            unsigned char G0CMS:2;
1574
            unsigned char G1CMS:2;
1575
            unsigned char G2CMS:2;
1576
            unsigned char G3CMS:2;
1577
        } BIT;
1578
    } PCR;
1579
    union {
1580
        unsigned char BYTE;
1581
        struct {
1582
            unsigned char G0NOV:1;
1583
            unsigned char G1NOV:1;
1584
            unsigned char G2NOV:1;
1585
            unsigned char G3NOV:1;
1586
            unsigned char G0INV:1;
1587
            unsigned char G1INV:1;
1588
            unsigned char G2INV:1;
1589
            unsigned char G3INV:1;
1590
        } BIT;
1591
    } PMR;
1592
    union {
1593
        unsigned char BYTE;
1594
        struct {
1595
            unsigned char NDER8:1;
1596
            unsigned char NDER9:1;
1597
            unsigned char NDER10:1;
1598
            unsigned char NDER11:1;
1599
            unsigned char NDER12:1;
1600
            unsigned char NDER13:1;
1601
            unsigned char NDER14:1;
1602
            unsigned char NDER15:1;
1603
        } BIT;
1604
    } NDERH;
1605
    union {
1606
        unsigned char BYTE;
1607
        struct {
1608
            unsigned char NDER0:1;
1609
            unsigned char NDER1:1;
1610
            unsigned char NDER2:1;
1611
            unsigned char NDER3:1;
1612
            unsigned char NDER4:1;
1613
            unsigned char NDER5:1;
1614
            unsigned char NDER6:1;
1615
            unsigned char NDER7:1;
1616
        } BIT;
1617
    } NDERL;
1618
    union {
1619
        unsigned char BYTE;
1620
        struct {
1621
            unsigned char POD8:1;
1622
            unsigned char POD9:1;
1623
            unsigned char POD10:1;
1624
            unsigned char POD11:1;
1625
            unsigned char POD12:1;
1626
            unsigned char POD13:1;
1627
            unsigned char POD14:1;
1628
            unsigned char POD15:1;
1629
        } BIT;
1630
    } PODRH;
1631
    union {
1632
        unsigned char BYTE;
1633
        struct {
1634
            unsigned char POD0:1;
1635
            unsigned char POD1:1;
1636
            unsigned char POD2:1;
1637
            unsigned char POD3:1;
1638
            unsigned char POD4:1;
1639
            unsigned char POD5:1;
1640
            unsigned char POD6:1;
1641
            unsigned char POD7:1;
1642
        } BIT;
1643
    } PODRL;
1644
    union {
1645
        unsigned char BYTE;
1646
        struct {
1647
            unsigned char NDR8:1;
1648
            unsigned char NDR9:1;
1649
            unsigned char NDR10:1;
1650
            unsigned char NDR11:1;
1651
            unsigned char NDR12:1;
1652
            unsigned char NDR13:1;
1653
            unsigned char NDR14:1;
1654
            unsigned char NDR15:1;
1655
        } BIT;
1656
    } NDRH;
1657
    union {
1658
        unsigned char BYTE;
1659
        struct {
1660
            unsigned char NDR0:1;
1661
            unsigned char NDR1:1;
1662
            unsigned char NDR2:1;
1663
            unsigned char NDR3:1;
1664
            unsigned char NDR4:1;
1665
            unsigned char NDR5:1;
1666
            unsigned char NDR6:1;
1667
            unsigned char NDR7:1;
1668
        } BIT;
1669
    } NDRL;
1670
    union {
1671
        unsigned char BYTE;
1672
        struct {
1673
            unsigned char NDR8:1;
1674
            unsigned char NDR9:1;
1675
            unsigned char NDR10:1;
1676
            unsigned char NDR11:1;
1677
            unsigned char :4;
1678
        } BIT;
1679
    } NDRH2;
1680
    union {
1681
        unsigned char BYTE;
1682
        struct {
1683
            unsigned char NDR0:1;
1684
            unsigned char NDR1:1;
1685
            unsigned char NDR2:1;
1686
            unsigned char NDR3:1;
1687
            unsigned char :4;
1688
        } BIT;
1689
    } NDRL2;
1690
};
1691
 
1692
struct st_ppg1 {
1693
    union {
1694
        unsigned char BYTE;
1695
        struct {
1696
            unsigned char PTRSL:1;
1697
            unsigned char :7;
1698
        } BIT;
1699
    } PTRSLR;
1700
    unsigned char wk0[5];
1701
    union {
1702
        unsigned char BYTE;
1703
        struct {
1704
            unsigned char G0CMS:2;
1705
            unsigned char G1CMS:2;
1706
            unsigned char G2CMS:2;
1707
            unsigned char G3CMS:2;
1708
        } BIT;
1709
    } PCR;
1710
    union {
1711
        unsigned char BYTE;
1712
        struct {
1713
            unsigned char G0NOV:1;
1714
            unsigned char G1NOV:1;
1715
            unsigned char G2NOV:1;
1716
            unsigned char G3NOV:1;
1717
            unsigned char G0INV:1;
1718
            unsigned char G1INV:1;
1719
            unsigned char G2INV:1;
1720
            unsigned char G3INV:1;
1721
        } BIT;
1722
    } PMR;
1723
    union {
1724
        unsigned char BYTE;
1725
        struct {
1726
            unsigned char NDER24:1;
1727
            unsigned char NDER25:1;
1728
            unsigned char NDER26:1;
1729
            unsigned char NDER27:1;
1730
            unsigned char NDER28:1;
1731
            unsigned char NDER29:1;
1732
            unsigned char NDER30:1;
1733
            unsigned char NDER31:1;
1734
        } BIT;
1735
    } NDERH;
1736
    union {
1737
        unsigned char BYTE;
1738
        struct {
1739
            unsigned char NDER16:1;
1740
            unsigned char NDER17:1;
1741
            unsigned char NDER18:1;
1742
            unsigned char NDER19:1;
1743
            unsigned char NDER20:1;
1744
            unsigned char NDER21:1;
1745
            unsigned char NDER22:1;
1746
            unsigned char NDER23:1;
1747
        } BIT;
1748
    } NDERL;
1749
    union {
1750
        unsigned char BYTE;
1751
        struct {
1752
            unsigned char POD24:1;
1753
            unsigned char POD25:1;
1754
            unsigned char POD26:1;
1755
            unsigned char POD27:1;
1756
            unsigned char POD28:1;
1757
            unsigned char POD29:1;
1758
            unsigned char POD30:1;
1759
            unsigned char POD31:1;
1760
        } BIT;
1761
    } PODRH;
1762
    union {
1763
        unsigned char BYTE;
1764
        struct {
1765
            unsigned char POD16:1;
1766
            unsigned char POD17:1;
1767
            unsigned char POD18:1;
1768
            unsigned char POD19:1;
1769
            unsigned char POD20:1;
1770
            unsigned char POD21:1;
1771
            unsigned char POD22:1;
1772
            unsigned char POD23:1;
1773
        } BIT;
1774
    } PODRL;
1775
    union {
1776
        unsigned char BYTE;
1777
        struct {
1778
            unsigned char NDR24:1;
1779
            unsigned char NDR25:1;
1780
            unsigned char NDR26:1;
1781
            unsigned char NDR27:1;
1782
            unsigned char NDR28:1;
1783
            unsigned char NDR29:1;
1784
            unsigned char NDR30:1;
1785
            unsigned char NDR31:1;
1786
        } BIT;
1787
    } NDRH;
1788
    union {
1789
        unsigned char BYTE;
1790
        struct {
1791
            unsigned char NDR16:1;
1792
            unsigned char NDR17:1;
1793
            unsigned char NDR18:1;
1794
            unsigned char NDR19:1;
1795
            unsigned char NDR20:1;
1796
            unsigned char NDR21:1;
1797
            unsigned char NDR22:1;
1798
            unsigned char NDR23:1;
1799
        } BIT;
1800
    } NDRL;
1801
    union {
1802
        unsigned char BYTE;
1803
        struct {
1804
            unsigned char NDR24:1;
1805
            unsigned char NDR25:1;
1806
            unsigned char NDR26:1;
1807
            unsigned char NDR27:1;
1808
            unsigned char :4;
1809
        } BIT;
1810
    } NDRH2;
1811
    union {
1812
        unsigned char BYTE;
1813
        struct {
1814
            unsigned char NDR16:1;
1815
            unsigned char NDR17:1;
1816
            unsigned char NDR18:1;
1817
            unsigned char NDR19:1;
1818
            unsigned char :4;
1819
        } BIT;
1820
    } NDRL2;
1821
};
1822
 
1823
struct st_tmr0 {
1824
    union {
1825
        unsigned char BYTE;
1826
        struct {
1827
            unsigned char :3;
1828
            unsigned char CCLR:2;
1829
            unsigned char OVIE:1;
1830
            unsigned char CMIEA:1;
1831
            unsigned char CMIEB:1;
1832
        } BIT;
1833
    } TCR;
1834
    unsigned char wk0[1];
1835
    union {
1836
        unsigned char BYTE;
1837
        struct {
1838
            unsigned char OSA:2;
1839
            unsigned char OSB:2;
1840
            unsigned char ADTE:1;
1841
            unsigned char :3;
1842
        } BIT;
1843
    } TCSR;
1844
    unsigned char wk1[1];
1845
    unsigned char TCORA;
1846
    unsigned char wk2[1];
1847
    unsigned char TCORB;
1848
    unsigned char wk3[1];
1849
    unsigned char TCNT;
1850
    unsigned char wk4[1];
1851
    union {
1852
        unsigned char BYTE;
1853
        struct {
1854
            unsigned char CKS:3;
1855
            unsigned char CSS:2;
1856
            unsigned char :2;
1857
            unsigned char TMRIS:1;
1858
        } BIT;
1859
    } TCCR;
1860
};
1861
 
1862
struct st_tmr1 {
1863
    union {
1864
        unsigned char BYTE;
1865
        struct {
1866
            unsigned char :3;
1867
            unsigned char CCLR:2;
1868
            unsigned char OVIE:1;
1869
            unsigned char CMIEA:1;
1870
            unsigned char CMIEB:1;
1871
        } BIT;
1872
    } TCR;
1873
    unsigned char wk0[1];
1874
    union {
1875
        unsigned char BYTE;
1876
        struct {
1877
            unsigned char OSA:2;
1878
            unsigned char OSB:2;
1879
            unsigned char :4;
1880
        } BIT;
1881
    } TCSR;
1882
    unsigned char wk1[1];
1883
    unsigned char TCORA;
1884
    unsigned char wk2[1];
1885
    unsigned char TCORB;
1886
    unsigned char wk3[1];
1887
    unsigned char TCNT;
1888
    unsigned char wk4[1];
1889
    union {
1890
        unsigned char BYTE;
1891
        struct {
1892
            unsigned char CKS:3;
1893
            unsigned char CSS:2;
1894
            unsigned char :2;
1895
            unsigned char TMRIS:1;
1896
        } BIT;
1897
    } TCCR;
1898
};
1899
 
1900
struct st_tmr01 {
1901
    unsigned short TCORA;
1902
    unsigned short TCORB;
1903
    unsigned short TCNT;
1904
    unsigned short TCCR;
1905
};
1906
 
1907
struct st_sci {
1908
    union {
1909
        unsigned char BYTE;
1910
        struct {
1911
            unsigned char CKS:2;
1912
            unsigned char MP:1;
1913
            unsigned char STOP:1;
1914
            unsigned char PM:1;
1915
            unsigned char PE:1;
1916
            unsigned char CHR:1;
1917
            unsigned char CM:1;
1918
        } BIT;
1919
    } SMR;
1920
    unsigned char BRR;
1921
    union {
1922
        unsigned char BYTE;
1923
        struct {
1924
            unsigned char CKE:2;
1925
            unsigned char TEIE:1;
1926
            unsigned char MPIE:1;
1927
            unsigned char RE:1;
1928
            unsigned char TE:1;
1929
            unsigned char RIE:1;
1930
            unsigned char TIE:1;
1931
        } BIT;
1932
    } SCR;
1933
    unsigned char TDR;
1934
    union {
1935
        unsigned char BYTE;
1936
        struct {
1937
            unsigned char MPBT:1;
1938
            unsigned char MPB:1;
1939
            unsigned char TEND:1;
1940
            unsigned char PER:1;
1941
            unsigned char FER:1;
1942
            unsigned char ORER:1;
1943
            unsigned char :2;
1944
        } BIT;
1945
    } SSR;
1946
    unsigned char RDR;
1947
    union {
1948
        unsigned char BYTE;
1949
        struct {
1950
            unsigned char SMIF:1;
1951
            unsigned char :1;
1952
            unsigned char SINV:1;
1953
            unsigned char SDIR:1;
1954
            unsigned char :4;
1955
        } BIT;
1956
    } SCMR;
1957
    union {
1958
        unsigned char BYTE;
1959
        struct {
1960
            unsigned char ACS0:1;
1961
            unsigned char :3;
1962
            unsigned char ABCS:1;
1963
            unsigned char :3;
1964
        } BIT;
1965
    } SEMR;
1966
};
1967
 
1968
struct st_smci {
1969
    union {
1970
        unsigned char BYTE;
1971
        struct {
1972
            unsigned char CKS:2;
1973
            unsigned char BCP:2;
1974
            unsigned char PM:1;
1975
            unsigned char PE:1;
1976
            unsigned char BLK:1;
1977
            unsigned char GM:1;
1978
        } BIT;
1979
    } SMR;
1980
    unsigned char BRR;
1981
    union {
1982
        unsigned char BYTE;
1983
        struct {
1984
            unsigned char CKE:2;
1985
            unsigned char TEIE:1;
1986
            unsigned char :1;
1987
            unsigned char RE:1;
1988
            unsigned char TE:1;
1989
            unsigned char RIE:1;
1990
            unsigned char TIE:1;
1991
        } BIT;
1992
    } SCR;
1993
    unsigned char TDR;
1994
    union {
1995
        unsigned char BYTE;
1996
        struct {
1997
            unsigned char :2;
1998
            unsigned char TEND:1;
1999
            unsigned char PER:1;
2000
            unsigned char ERS:1;
2001
            unsigned char ORER:1;
2002
            unsigned char :2;
2003
        } BIT;
2004
    } SSR;
2005
    unsigned char RDR;
2006
    union {
2007
        unsigned char BYTE;
2008
        struct {
2009
            unsigned char SMIF:1;
2010
            unsigned char :1;
2011
            unsigned char SINV:1;
2012
            unsigned char SDIR:1;
2013
            unsigned char :3;
2014
            unsigned char BCP2:1;
2015
        } BIT;
2016
    } SCMR;
2017
};
2018
 
2019
struct st_crc {
2020
    union {
2021
        unsigned char BYTE;
2022
        struct {
2023
            unsigned char GPS:2;
2024
            unsigned char LMS:1;
2025
            unsigned char :4;
2026
            unsigned char DORCLR:1;
2027
        } BIT;
2028
    } CRCCR;
2029
    unsigned char CRCDIR;
2030
    unsigned short CRCDOR;
2031
};
2032
 
2033
struct st_riic {
2034
    union {
2035
        unsigned char BYTE;
2036
        struct {
2037
            unsigned char SDAI:1;
2038
            unsigned char SCLI:1;
2039
            unsigned char SDAO:1;
2040
            unsigned char SCLO:1;
2041
            unsigned char SOWP:1;
2042
            unsigned char CLO:1;
2043
            unsigned char IICRST:1;
2044
            unsigned char ICE:1;
2045
        } BIT;
2046
    } ICCR1;
2047
    union {
2048
        unsigned char BYTE;
2049
        struct {
2050
            unsigned char :1;
2051
            unsigned char ST:1;
2052
            unsigned char RS:1;
2053
            unsigned char SP:1;
2054
            unsigned char :1;
2055
            unsigned char TRS:1;
2056
            unsigned char MST:1;
2057
            unsigned char BBSY:1;
2058
        } BIT;
2059
    } ICCR2;
2060
    union {
2061
        unsigned char BYTE;
2062
        struct {
2063
            unsigned char BC:3;
2064
            unsigned char BCWP:1;
2065
            unsigned char CKS:3;
2066
            unsigned char MTWP:1;
2067
        } BIT;
2068
    } ICMR1;
2069
    union {
2070
        unsigned char BYTE;
2071
        struct {
2072
            unsigned char TMOS:1;
2073
            unsigned char TMOL:1;
2074
            unsigned char TMOH:1;
2075
            unsigned char :1;
2076
            unsigned char SDDL:3;
2077
            unsigned char DLCS:1;
2078
        } BIT;
2079
    } ICMR2;
2080
    union {
2081
        unsigned char BYTE;
2082
        struct {
2083
            unsigned char NF:2;
2084
            unsigned char ACKBR:1;
2085
            unsigned char ACKBT:1;
2086
            unsigned char ACKWP:1;
2087
            unsigned char RDRFS:1;
2088
            unsigned char WAIT:1;
2089
            unsigned char SMBS:1;
2090
        } BIT;
2091
    } ICMR3;
2092
    union {
2093
        unsigned char BYTE;
2094
        struct {
2095
            unsigned char TMOE:1;
2096
            unsigned char MALE:1;
2097
            unsigned char NALE:1;
2098
            unsigned char SALE:1;
2099
            unsigned char NACKE:1;
2100
            unsigned char NFE:1;
2101
            unsigned char SCLE:1;
2102
            unsigned char FMPE:1;
2103
        } BIT;
2104
    } ICFER;
2105
    union {
2106
        unsigned char BYTE;
2107
        struct {
2108
            unsigned char SAR0E:1;
2109
            unsigned char SAR1E:1;
2110
            unsigned char SAR2E:1;
2111
            unsigned char GCAE:1;
2112
            unsigned char :1;
2113
            unsigned char DIDE:1;
2114
            unsigned char :1;
2115
            unsigned char HOAE:1;
2116
        } BIT;
2117
    } ICSER;
2118
    union {
2119
        unsigned char BYTE;
2120
        struct {
2121
            unsigned char TMOIE:1;
2122
            unsigned char ALIE:1;
2123
            unsigned char STIE:1;
2124
            unsigned char SPIE:1;
2125
            unsigned char NAKIE:1;
2126
            unsigned char RIE:1;
2127
            unsigned char TEIE:1;
2128
            unsigned char TIE:1;
2129
        } BIT;
2130
    } ICIER;
2131
    union {
2132
        unsigned char BYTE;
2133
        struct {
2134
            unsigned char AAS0:1;
2135
            unsigned char AAS1:1;
2136
            unsigned char AAS2:1;
2137
            unsigned char GCA:1;
2138
            unsigned char :1;
2139
            unsigned char DID:1;
2140
            unsigned char :1;
2141
            unsigned char HOA:1;
2142
        } BIT;
2143
    } ICSR1;
2144
    union {
2145
        unsigned char BYTE;
2146
        struct {
2147
            unsigned char TMOF:1;
2148
            unsigned char AL:1;
2149
            unsigned char START:1;
2150
            unsigned char STOP:1;
2151
            unsigned char NACKF:1;
2152
            unsigned char RDRF:1;
2153
            unsigned char TEND:1;
2154
            unsigned char TDRE:1;
2155
        } BIT;
2156
    } ICSR2;
2157
    union {
2158
        unsigned char BYTE;
2159
        struct {
2160
            unsigned char SVA0:1;
2161
            unsigned char SVA:7;
2162
        } BIT;
2163
    } SARL0;
2164
    union {
2165
        unsigned char BYTE;
2166
        struct {
2167
            unsigned char FS:1;
2168
            unsigned char SVA:2;
2169
            unsigned char :5;
2170
        } BIT;
2171
    } SARU0;
2172
    union {
2173
        unsigned char BYTE;
2174
        struct {
2175
            unsigned char SVA0:1;
2176
            unsigned char SVA:7;
2177
        } BIT;
2178
    } SARL1;
2179
    union {
2180
        unsigned char BYTE;
2181
        struct {
2182
            unsigned char FS:1;
2183
            unsigned char SVA:2;
2184
            unsigned char :5;
2185
        } BIT;
2186
    } SARU1;
2187
    union {
2188
        unsigned char BYTE;
2189
        struct {
2190
            unsigned char SVA0:1;
2191
            unsigned char SVA:7;
2192
        } BIT;
2193
    } SARL2;
2194
    union {
2195
        unsigned char BYTE;
2196
        struct {
2197
            unsigned char FS:1;
2198
            unsigned char SVA:2;
2199
            unsigned char :5;
2200
        } BIT;
2201
    } SARU2;
2202
    union {
2203
        unsigned char BYTE;
2204
        struct {
2205
            unsigned char BRL:5;
2206
            unsigned char :3;
2207
        } BIT;
2208
    } ICBRL;
2209
    union {
2210
        unsigned char BYTE;
2211
        struct {
2212
            unsigned char BRH:5;
2213
            unsigned char :3;
2214
        } BIT;
2215
    } ICBRH;
2216
    unsigned char ICDRT;
2217
    unsigned char ICDRR;
2218
};
2219
 
2220
struct st_rspi {
2221
    union {
2222
        unsigned char BYTE;
2223
        struct {
2224
            unsigned char SPMS:1;
2225
            unsigned char TXMD:1;
2226
            unsigned char MODFEN:1;
2227
            unsigned char MSTR:1;
2228
            unsigned char SPEIE:1;
2229
            unsigned char SPTIE:1;
2230
            unsigned char SPE:1;
2231
            unsigned char SPRIE:1;
2232
        } BIT;
2233
    } SPCR;
2234
    union {
2235
        unsigned char BYTE;
2236
        struct {
2237
            unsigned char SSLP0:1;
2238
            unsigned char SSLP1:1;
2239
            unsigned char SSLP2:1;
2240
            unsigned char SSLP3:1;
2241
            unsigned char :4;
2242
        } BIT;
2243
    } SSLP;
2244
    union {
2245
        unsigned char BYTE;
2246
        struct {
2247
            unsigned char SPLP:1;
2248
            unsigned char SPLP2:1;
2249
            unsigned char SPOM:1;
2250
            unsigned char :1;
2251
            unsigned char MOIFV:1;
2252
            unsigned char MOIFE:1;
2253
            unsigned char :2;
2254
        } BIT;
2255
    } SPPCR;
2256
    union {
2257
        unsigned char BYTE;
2258
        struct {
2259
            unsigned char OVRF:1;
2260
            unsigned char IDLNF:1;
2261
            unsigned char MODF:1;
2262
            unsigned char PERF:1;
2263
            unsigned char :4;
2264
        } BIT;
2265
    } SPSR;
2266
    union {
2267
        unsigned long LONG;
2268
        struct {
2269
            unsigned short H;
2270
            unsigned short L;
2271
        } WORD;
2272
    } SPDR;
2273
    union {
2274
        unsigned char BYTE;
2275
        struct {
2276
            unsigned char SPSLN:3;
2277
            unsigned char :5;
2278
        } BIT;
2279
    } SPSCR;
2280
    union {
2281
        unsigned char BYTE;
2282
        struct {
2283
            unsigned char SPCP:3;
2284
            unsigned char :1;
2285
            unsigned char SPECM:3;
2286
            unsigned char :1;
2287
        } BIT;
2288
    } SPSSR;
2289
    union {
2290
        unsigned char BYTE;
2291
        struct {
2292
            unsigned char SPR0:1;
2293
            unsigned char SPR1:1;
2294
            unsigned char SPR2:1;
2295
            unsigned char SPR3:1;
2296
            unsigned char SPR4:1;
2297
            unsigned char SPR5:1;
2298
            unsigned char SPR6:1;
2299
            unsigned char SPR7:1;
2300
        } BIT;
2301
    } SPBR;
2302
    union {
2303
        unsigned char BYTE;
2304
        struct {
2305
            unsigned char SPFC:2;
2306
            unsigned char SLSEL:2;
2307
            unsigned char SPRDTD:1;
2308
            unsigned char SPLW:1;
2309
            unsigned char :2;
2310
        } BIT;
2311
    } SPDCR;
2312
    union {
2313
        unsigned char BYTE;
2314
        struct {
2315
            unsigned char SCKDL:3;
2316
            unsigned char :5;
2317
        } BIT;
2318
    } SPCKD;
2319
    union {
2320
        unsigned char BYTE;
2321
        struct {
2322
            unsigned char SLNDL:3;
2323
            unsigned char :5;
2324
        } BIT;
2325
    } SSLND;
2326
    union {
2327
        unsigned char BYTE;
2328
        struct {
2329
            unsigned char SPNDL:3;
2330
            unsigned char :5;
2331
        } BIT;
2332
    } SPND;
2333
    union {
2334
        unsigned char BYTE;
2335
        struct {
2336
            unsigned char SPPE:1;
2337
            unsigned char SPOE:1;
2338
            unsigned char SPIIE:1;
2339
            unsigned char PTE:1;
2340
            unsigned char :4;
2341
        } BIT;
2342
    } SPCR2;
2343
    union {
2344
        unsigned short WORD;
2345
        struct {
2346
            unsigned short CPHA:1;
2347
            unsigned short CPOL:1;
2348
            unsigned short BRDV:2;
2349
            unsigned short SSLA:3;
2350
            unsigned short SSLKP:1;
2351
            unsigned short SPB:4;
2352
            unsigned short LSBF:1;
2353
            unsigned short SPNDEN:1;
2354
            unsigned short SLNDEN:1;
2355
            unsigned short SCKDEN:1;
2356
        } BIT;
2357
    } SPCMD0;
2358
    union {
2359
        unsigned short WORD;
2360
        struct {
2361
            unsigned short CPHA:1;
2362
            unsigned short CPOL:1;
2363
            unsigned short BRDV:2;
2364
            unsigned short SSLA:3;
2365
            unsigned short SSLKP:1;
2366
            unsigned short SPB:4;
2367
            unsigned short LSBF:1;
2368
            unsigned short SPNDEN:1;
2369
            unsigned short SLNDEN:1;
2370
            unsigned short SCKDEN:1;
2371
        } BIT;
2372
    } SPCMD1;
2373
    union {
2374
        unsigned short WORD;
2375
        struct {
2376
            unsigned short CPHA:1;
2377
            unsigned short CPOL:1;
2378
            unsigned short BRDV:2;
2379
            unsigned short SSLA:3;
2380
            unsigned short SSLKP:1;
2381
            unsigned short SPB:4;
2382
            unsigned short LSBF:1;
2383
            unsigned short SPNDEN:1;
2384
            unsigned short SLNDEN:1;
2385
            unsigned short SCKDEN:1;
2386
        } BIT;
2387
    } SPCMD2;
2388
    union {
2389
        unsigned short WORD;
2390
        struct {
2391
            unsigned short CPHA:1;
2392
            unsigned short CPOL:1;
2393
            unsigned short BRDV:2;
2394
            unsigned short SSLA:3;
2395
            unsigned short SSLKP:1;
2396
            unsigned short SPB:4;
2397
            unsigned short LSBF:1;
2398
            unsigned short SPNDEN:1;
2399
            unsigned short SLNDEN:1;
2400
            unsigned short SCKDEN:1;
2401
        } BIT;
2402
    } SPCMD3;
2403
    union {
2404
        unsigned short WORD;
2405
        struct {
2406
            unsigned short CPHA:1;
2407
            unsigned short CPOL:1;
2408
            unsigned short BRDV:2;
2409
            unsigned short SSLA:3;
2410
            unsigned short SSLKP:1;
2411
            unsigned short SPB:4;
2412
            unsigned short LSBF:1;
2413
            unsigned short SPNDEN:1;
2414
            unsigned short SLNDEN:1;
2415
            unsigned short SCKDEN:1;
2416
        } BIT;
2417
    } SPCMD4;
2418
    union {
2419
        unsigned short WORD;
2420
        struct {
2421
            unsigned short CPHA:1;
2422
            unsigned short CPOL:1;
2423
            unsigned short BRDV:2;
2424
            unsigned short SSLA:3;
2425
            unsigned short SSLKP:1;
2426
            unsigned short SPB:4;
2427
            unsigned short LSBF:1;
2428
            unsigned short SPNDEN:1;
2429
            unsigned short SLNDEN:1;
2430
            unsigned short SCKDEN:1;
2431
        } BIT;
2432
    } SPCMD5;
2433
    union {
2434
        unsigned short WORD;
2435
        struct {
2436
            unsigned short CPHA:1;
2437
            unsigned short CPOL:1;
2438
            unsigned short BRDV:2;
2439
            unsigned short SSLA:3;
2440
            unsigned short SSLKP:1;
2441
            unsigned short SPB:4;
2442
            unsigned short LSBF:1;
2443
            unsigned short SPNDEN:1;
2444
            unsigned short SLNDEN:1;
2445
            unsigned short SCKDEN:1;
2446
        } BIT;
2447
    } SPCMD6;
2448
    union {
2449
        unsigned short WORD;
2450
        struct {
2451
            unsigned short CPHA:1;
2452
            unsigned short CPOL:1;
2453
            unsigned short BRDV:2;
2454
            unsigned short SSLA:3;
2455
            unsigned short SSLKP:1;
2456
            unsigned short SPB:4;
2457
            unsigned short LSBF:1;
2458
            unsigned short SPNDEN:1;
2459
            unsigned short SLNDEN:1;
2460
            unsigned short SCKDEN:1;
2461
        } BIT;
2462
    } SPCMD7;
2463
};
2464
 
2465
struct st_mtu {
2466
    union {
2467
        unsigned char BYTE;
2468
        struct {
2469
            unsigned char OE3B:1;
2470
            unsigned char OE4A:1;
2471
            unsigned char OE4B:1;
2472
            unsigned char OE3D:1;
2473
            unsigned char OE4C:1;
2474
            unsigned char OE4D:1;
2475
            unsigned char :2;
2476
        } BIT;
2477
    } TOER;
2478
    unsigned char wk0[2];
2479
    union {
2480
        unsigned char BYTE;
2481
        struct {
2482
            unsigned char UF:1;
2483
            unsigned char VF:1;
2484
            unsigned char WF:1;
2485
            unsigned char FB:1;
2486
            unsigned char P:1;
2487
            unsigned char N:1;
2488
            unsigned char BCD:1;
2489
            unsigned char :1;
2490
        } BIT;
2491
    } TGCR;
2492
    union {
2493
        unsigned char BYTE;
2494
        struct {
2495
            unsigned char OLSP:1;
2496
            unsigned char OLSN:1;
2497
            unsigned char TOCS:1;
2498
            unsigned char TOCL:1;
2499
            unsigned char :2;
2500
            unsigned char PSYE:1;
2501
            unsigned char :1;
2502
        } BIT;
2503
    } TOCR1;
2504
    union {
2505
        unsigned char BYTE;
2506
        struct {
2507
            unsigned char OLS1P:1;
2508
            unsigned char OLS1N:1;
2509
            unsigned char OLS2P:1;
2510
            unsigned char OLS2N:1;
2511
            unsigned char OLS3P:1;
2512
            unsigned char OLS3N:1;
2513
            unsigned char BF:2;
2514
        } BIT;
2515
    } TOCR2;
2516
    unsigned char wk1[4];
2517
    unsigned short TCDR;
2518
    unsigned short TDDR;
2519
    unsigned char wk2[8];
2520
    unsigned short TCNTS;
2521
    unsigned short TCBR;
2522
    unsigned char wk3[12];
2523
    union {
2524
        unsigned char BYTE;
2525
        struct {
2526
            unsigned char T4VCOR:3;
2527
            unsigned char T4VEN:1;
2528
            unsigned char T3ACOR:3;
2529
            unsigned char T3AEN:1;
2530
        } BIT;
2531
    } TITCR;
2532
    union {
2533
        unsigned char BYTE;
2534
        struct {
2535
            unsigned char T4VCNT:3;
2536
            unsigned char :1;
2537
            unsigned char T3ACNT:3;
2538
            unsigned char :1;
2539
        } BIT;
2540
    } TITCNT;
2541
    union {
2542
        unsigned char BYTE;
2543
        struct {
2544
            unsigned char BTE:2;
2545
            unsigned char :6;
2546
        } BIT;
2547
    } TBTER;
2548
    unsigned char wk4[1];
2549
    union {
2550
        unsigned char BYTE;
2551
        struct {
2552
            unsigned char TDRE:1;
2553
            unsigned char :7;
2554
        } BIT;
2555
    } TDER;
2556
    unsigned char wk5[1];
2557
    union {
2558
        unsigned char BYTE;
2559
        struct {
2560
            unsigned char OLS1P:1;
2561
            unsigned char OLS1N:1;
2562
            unsigned char OLS2P:1;
2563
            unsigned char OLS2N:1;
2564
            unsigned char OLS3P:1;
2565
            unsigned char OLS3N:1;
2566
            unsigned char :2;
2567
        } BIT;
2568
    } TOLBR;
2569
    unsigned char wk6[41];
2570
    union {
2571
        unsigned char BYTE;
2572
        struct {
2573
            unsigned char WRE:1;
2574
            unsigned char :6;
2575
            unsigned char CCE:1;
2576
        } BIT;
2577
    } TWCR;
2578
    unsigned char wk7[31];
2579
    union {
2580
        unsigned char BYTE;
2581
        struct {
2582
            unsigned char CST0:1;
2583
            unsigned char CST1:1;
2584
            unsigned char CST2:1;
2585
            unsigned char :3;
2586
            unsigned char CST3:1;
2587
            unsigned char CST4:1;
2588
        } BIT;
2589
    } TSTR;
2590
    union {
2591
        unsigned char BYTE;
2592
        struct {
2593
            unsigned char SYNC0:1;
2594
            unsigned char SYNC1:1;
2595
            unsigned char SYNC2:1;
2596
            unsigned char :3;
2597
            unsigned char SYNC3:1;
2598
            unsigned char SYNC4:1;
2599
        } BIT;
2600
    } TSYR;
2601
    unsigned char wk8[2];
2602
    union {
2603
        unsigned char BYTE;
2604
        struct {
2605
            unsigned char RWE:1;
2606
            unsigned char :7;
2607
        } BIT;
2608
    } TRWER;
2609
};
2610
 
2611
struct st_mtu0 {
2612
    union {
2613
        unsigned char BYTE;
2614
        struct {
2615
            unsigned char TPSC:3;
2616
            unsigned char CKEG:2;
2617
            unsigned char CCLR:3;
2618
        } BIT;
2619
    } TCR;
2620
    union {
2621
        unsigned char BYTE;
2622
        struct {
2623
            unsigned char MD:4;
2624
            unsigned char BFA:1;
2625
            unsigned char BFB:1;
2626
            unsigned char BFE:1;
2627
            unsigned char :1;
2628
        } BIT;
2629
    } TMDR;
2630
    union {
2631
        unsigned char BYTE;
2632
        struct {
2633
            unsigned char IOA:4;
2634
            unsigned char IOB:4;
2635
        } BIT;
2636
    } TIORH;
2637
    union {
2638
        unsigned char BYTE;
2639
        struct {
2640
            unsigned char IOC:4;
2641
            unsigned char IOD:4;
2642
        } BIT;
2643
    } TIORL;
2644
    union {
2645
        unsigned char BYTE;
2646
        struct {
2647
            unsigned char TGIEA:1;
2648
            unsigned char TGIEB:1;
2649
            unsigned char TGIEC:1;
2650
            unsigned char TGIED:1;
2651
            unsigned char TCIEV:1;
2652
            unsigned char :2;
2653
            unsigned char TTGE:1;
2654
        } BIT;
2655
    } TIER;
2656
    unsigned char TSR;
2657
    unsigned short TCNT;
2658
    unsigned short TGRA;
2659
    unsigned short TGRB;
2660
    unsigned short TGRC;
2661
    unsigned short TGRD;
2662
    unsigned char wk0[16];
2663
    unsigned short TGRE;
2664
    unsigned short TGRF;
2665
    union {
2666
        unsigned char BYTE;
2667
        struct {
2668
            unsigned char TGIEE:1;
2669
            unsigned char TGIEF:1;
2670
            unsigned char :6;
2671
        } BIT;
2672
    } TIER2;
2673
    unsigned char wk1[1];
2674
    union {
2675
        unsigned char BYTE;
2676
        struct {
2677
            unsigned char TTSA:1;
2678
            unsigned char TTSB:1;
2679
            unsigned char TTSE:1;
2680
            unsigned char :5;
2681
        } BIT;
2682
    } TBTM;
2683
};
2684
 
2685
struct st_mtu1 {
2686
    union {
2687
        unsigned char BYTE;
2688
        struct {
2689
            unsigned char TPSC:3;
2690
            unsigned char CKEG:2;
2691
            unsigned char CCLR:3;
2692
        } BIT;
2693
    } TCR;
2694
    union {
2695
        unsigned char BYTE;
2696
        struct {
2697
            unsigned char MD:4;
2698
            unsigned char :4;
2699
        } BIT;
2700
    } TMDR;
2701
    union {
2702
        unsigned char BYTE;
2703
        struct {
2704
            unsigned char IOA:4;
2705
            unsigned char IOB:4;
2706
        } BIT;
2707
    } TIOR;
2708
    unsigned char wk0[1];
2709
    union {
2710
        unsigned char BYTE;
2711
        struct {
2712
            unsigned char TGIEA:1;
2713
            unsigned char TGIEB:1;
2714
            unsigned char :2;
2715
            unsigned char TCIEV:1;
2716
            unsigned char TCIEU:1;
2717
            unsigned char :1;
2718
            unsigned char TTGE:1;
2719
        } BIT;
2720
    } TIER;
2721
    union {
2722
        unsigned char BYTE;
2723
        struct {
2724
            unsigned char :7;
2725
            unsigned char TCFD:1;
2726
        } BIT;
2727
    } TSR;
2728
    unsigned short TCNT;
2729
    unsigned short TGRA;
2730
    unsigned short TGRB;
2731
    unsigned char wk1[4];
2732
    union {
2733
        unsigned char BYTE;
2734
        struct {
2735
            unsigned char I1AE:1;
2736
            unsigned char I1BE:1;
2737
            unsigned char I2AE:1;
2738
            unsigned char I2BE:1;
2739
            unsigned char :4;
2740
        } BIT;
2741
    } TICCR;
2742
};
2743
 
2744
struct st_mtu2 {
2745
    union {
2746
        unsigned char BYTE;
2747
        struct {
2748
            unsigned char TPSC:3;
2749
            unsigned char CKEG:2;
2750
            unsigned char CCLR:3;
2751
        } BIT;
2752
    } TCR;
2753
    union {
2754
        unsigned char BYTE;
2755
        struct {
2756
            unsigned char MD:4;
2757
            unsigned char :4;
2758
        } BIT;
2759
    } TMDR;
2760
    union {
2761
        unsigned char BYTE;
2762
        struct {
2763
            unsigned char IOA:4;
2764
            unsigned char IOB:4;
2765
        } BIT;
2766
    } TIOR;
2767
    unsigned char wk0[1];
2768
    union {
2769
        unsigned char BYTE;
2770
        struct {
2771
            unsigned char TGIEA:1;
2772
            unsigned char TGIEB:1;
2773
            unsigned char :2;
2774
            unsigned char TCIEV:1;
2775
            unsigned char TCIEU:1;
2776
            unsigned char :1;
2777
            unsigned char TTGE:1;
2778
        } BIT;
2779
    } TIER;
2780
    union {
2781
        unsigned char BYTE;
2782
        struct {
2783
            unsigned char :7;
2784
            unsigned char TCFD:1;
2785
        } BIT;
2786
    } TSR;
2787
    unsigned short TCNT;
2788
    unsigned short TGRA;
2789
    unsigned short TGRB;
2790
};
2791
 
2792
struct st_mtu3 {
2793
    union {
2794
        unsigned char BYTE;
2795
        struct {
2796
            unsigned char TPSC:3;
2797
            unsigned char CKEG:2;
2798
            unsigned char CCLR:3;
2799
        } BIT;
2800
    } TCR;
2801
    unsigned char wk0[1];
2802
    union {
2803
        unsigned char BYTE;
2804
        struct {
2805
            unsigned char MD:4;
2806
            unsigned char BFA:1;
2807
            unsigned char BFB:1;
2808
            unsigned char BFE:1;
2809
            unsigned char :1;
2810
        } BIT;
2811
    } TMDR;
2812
    unsigned char wk1[1];
2813
    union {
2814
        unsigned char BYTE;
2815
        struct {
2816
            unsigned char IOA:4;
2817
            unsigned char IOB:4;
2818
        } BIT;
2819
    } TIORH;
2820
    union {
2821
        unsigned char BYTE;
2822
        struct {
2823
            unsigned char IOC:4;
2824
            unsigned char IOD:4;
2825
        } BIT;
2826
    } TIORL;
2827
    unsigned char wk2[2];
2828
    union {
2829
        unsigned char BYTE;
2830
        struct {
2831
            unsigned char TGIEA:1;
2832
            unsigned char TGIEB:1;
2833
            unsigned char TGIEC:1;
2834
            unsigned char TGIED:1;
2835
            unsigned char TCIEV:1;
2836
            unsigned char TCIEU:1;
2837
            unsigned char TTGE2:1;
2838
            unsigned char TTGE:1;
2839
        } BIT;
2840
    } TIER;
2841
    unsigned char wk3[7];
2842
    unsigned short TCNT;
2843
    unsigned char wk4[6];
2844
    unsigned short TGRA;
2845
    unsigned short TGRB;
2846
    unsigned char wk5[8];
2847
    unsigned short TGRC;
2848
    unsigned short TGRD;
2849
    unsigned char wk6[4];
2850
    union {
2851
        unsigned char BYTE;
2852
        struct {
2853
            unsigned char :7;
2854
            unsigned char TCFD:1;
2855
        } BIT;
2856
    } TSR;
2857
    unsigned char wk7[11];
2858
    union {
2859
        unsigned char BYTE;
2860
        struct {
2861
            unsigned char TTSA:1;
2862
            unsigned char TTSB:1;
2863
            unsigned char TTSE:1;
2864
            unsigned char :5;
2865
        } BIT;
2866
    } TBTM;
2867
};
2868
 
2869
struct st_mtu4 {
2870
    unsigned char DMMY;
2871
    union {
2872
        unsigned char BYTE;
2873
        struct {
2874
            unsigned char TPSC:3;
2875
            unsigned char CKEG:2;
2876
            unsigned char CCLR:3;
2877
        } BIT;
2878
    } TCR;
2879
    unsigned char wk0[1];
2880
    union {
2881
        unsigned char BYTE;
2882
        struct {
2883
            unsigned char MD:4;
2884
            unsigned char BFA:1;
2885
            unsigned char BFB:1;
2886
            unsigned char BFE:1;
2887
            unsigned char :1;
2888
        } BIT;
2889
    } TMDR;
2890
    unsigned char wk1[2];
2891
    union {
2892
        unsigned char BYTE;
2893
        struct {
2894
            unsigned char IOA:4;
2895
            unsigned char IOB:4;
2896
        } BIT;
2897
    } TIORH;
2898
    union {
2899
        unsigned char BYTE;
2900
        struct {
2901
            unsigned char IOC:4;
2902
            unsigned char IOD:4;
2903
        } BIT;
2904
    } TIORL;
2905
    unsigned char wk2[1];
2906
    union {
2907
        unsigned char BYTE;
2908
        struct {
2909
            unsigned char TGIEA:1;
2910
            unsigned char TGIEB:1;
2911
            unsigned char TGIEC:1;
2912
            unsigned char TGIED:1;
2913
            unsigned char TCIEV:1;
2914
            unsigned char TCIEU:1;
2915
            unsigned char TTGE2:1;
2916
            unsigned char TTGE:1;
2917
        } BIT;
2918
    } TIER;
2919
    unsigned char wk3[8];
2920
    unsigned short TCNT;
2921
    unsigned char wk4[8];
2922
    unsigned short TGRA;
2923
    unsigned short TGRB;
2924
    unsigned char wk5[8];
2925
    unsigned short TGRC;
2926
    unsigned short TGRD;
2927
    unsigned char wk6[1];
2928
    union {
2929
        unsigned char BYTE;
2930
        struct {
2931
            unsigned char :7;
2932
            unsigned char TCFD:1;
2933
        } BIT;
2934
    } TSR;
2935
    unsigned char wk7[11];
2936
    union {
2937
        unsigned char BYTE;
2938
        struct {
2939
            unsigned char TTSA:1;
2940
            unsigned char TTSB:1;
2941
            unsigned char TTSE:1;
2942
            unsigned char :5;
2943
        } BIT;
2944
    } TBTM;
2945
    unsigned char wk8[6];
2946
    union {
2947
        unsigned short WORD;
2948
        struct {
2949
            unsigned short ITB4VE:1;
2950
            unsigned short ITB3AE:1;
2951
            unsigned short ITA4VE:1;
2952
            unsigned short ITA3AE:1;
2953
            unsigned short DT4BE:1;
2954
            unsigned short UT4BE:1;
2955
            unsigned short DT4AE:1;
2956
            unsigned short UT4AE:1;
2957
            unsigned short :6;
2958
            unsigned short BF:2;
2959
        } BIT;
2960
    } TADCR;
2961
    unsigned char wk9[2];
2962
    unsigned short TADCORA;
2963
    unsigned short TADCORB;
2964
    unsigned short TADCOBRA;
2965
    unsigned short TADCOBRB;
2966
};
2967
 
2968
struct st_mtu5 {
2969
    unsigned short TCNTU;
2970
    unsigned short TGRU;
2971
    union {
2972
        unsigned char BYTE;
2973
        struct {
2974
            unsigned char TPSC:3;
2975
            unsigned char CKEG:2;
2976
            unsigned char CCLR:3;
2977
        } BIT;
2978
    } TCRU;
2979
    unsigned char wk0[1];
2980
    union {
2981
        unsigned char BYTE;
2982
        struct {
2983
            unsigned char IOC:5;
2984
            unsigned char :3;
2985
        } BIT;
2986
    } TIORU;
2987
    unsigned char wk1[9];
2988
    unsigned short TCNTV;
2989
    unsigned short TGRV;
2990
    union {
2991
        unsigned char BYTE;
2992
        struct {
2993
            unsigned char TPSC:3;
2994
            unsigned char CKEG:2;
2995
            unsigned char CCLR:3;
2996
        } BIT;
2997
    } TCRV;
2998
    union {
2999
        unsigned char BYTE;
3000
        struct {
3001
            unsigned char IOC:5;
3002
            unsigned char :3;
3003
        } BIT;
3004
    } TIORV;
3005
    unsigned char wk2[9];
3006
    unsigned short TCNTW;
3007
    unsigned short TGRW;
3008
    union {
3009
        unsigned char BYTE;
3010
        struct {
3011
            unsigned char TPSC:3;
3012
            unsigned char CKEG:2;
3013
            unsigned char CCLR:3;
3014
        } BIT;
3015
    } TCRW;
3016
    unsigned char wk3[1];
3017
    union {
3018
        unsigned char BYTE;
3019
        struct {
3020
            unsigned char IOC:5;
3021
            unsigned char :3;
3022
        } BIT;
3023
    } TIORW;
3024
    unsigned char wk4[11];
3025
    union {
3026
        unsigned char BYTE;
3027
        struct {
3028
            unsigned char TGIE5W:1;
3029
            unsigned char TGIE5V:1;
3030
            unsigned char TGIE5U:1;
3031
            unsigned char :5;
3032
        } BIT;
3033
    } TIER;
3034
    unsigned char wk5[1];
3035
    union {
3036
        unsigned char BYTE;
3037
        struct {
3038
            unsigned char CSTW5:1;
3039
            unsigned char CSTV5:1;
3040
            unsigned char CSTU5:1;
3041
            unsigned char :5;
3042
        } BIT;
3043
    } TSTR;
3044
    unsigned char wk6[1];
3045
    union {
3046
        unsigned char BYTE;
3047
        struct {
3048
            unsigned char CMPCLR5W:1;
3049
            unsigned char CMPCLR5V:1;
3050
            unsigned char CMPCLR5U:1;
3051
            unsigned char :5;
3052
        } BIT;
3053
    } TCNTCMPCLR;
3054
};
3055
 
3056
struct st_poe {
3057
    union {
3058
        unsigned short WORD;
3059
        struct {
3060
            unsigned short POE0M:2;
3061
            unsigned short POE1M:2;
3062
            unsigned short POE2M:2;
3063
            unsigned short POE3M:2;
3064
            unsigned short PIE1:1;
3065
            unsigned short :3;
3066
            unsigned short POE0F:1;
3067
            unsigned short POE1F:1;
3068
            unsigned short POE2F:1;
3069
            unsigned short POE3F:1;
3070
        } BIT;
3071
    } ICSR1;
3072
    union {
3073
        unsigned short WORD;
3074
        struct {
3075
            unsigned short :8;
3076
            unsigned short OIE1:1;
3077
            unsigned short OCE1:1;
3078
            unsigned short :5;
3079
            unsigned short OSF1:1;
3080
        } BIT;
3081
    } OCSR1;
3082
    union {
3083
        unsigned short WORD;
3084
        struct {
3085
            unsigned short POE4M:2;
3086
            unsigned short POE5M:2;
3087
            unsigned short POE6M:2;
3088
            unsigned short POE7M:2;
3089
            unsigned short PIE2:1;
3090
            unsigned short :3;
3091
            unsigned short POE4F:1;
3092
            unsigned short POE5F:1;
3093
            unsigned short POE6F:1;
3094
            unsigned short POE7F:1;
3095
        } BIT;
3096
    } ICSR2;
3097
    union {
3098
        unsigned short WORD;
3099
        struct {
3100
            unsigned short :8;
3101
            unsigned short OIE2:1;
3102
            unsigned short OCE2:1;
3103
            unsigned short :5;
3104
            unsigned short OSF2:1;
3105
        } BIT;
3106
    } OCSR2;
3107
    union {
3108
        unsigned short WORD;
3109
        struct {
3110
            unsigned short POE8M:2;
3111
            unsigned short :6;
3112
            unsigned short PIE3:1;
3113
            unsigned short POE8E:1;
3114
            unsigned short :2;
3115
            unsigned short POE8F:1;
3116
            unsigned short :3;
3117
        } BIT;
3118
    } ICSR3;
3119
    union {
3120
        unsigned char BYTE;
3121
        struct {
3122
            unsigned char CH34HIZ:1;
3123
            unsigned char CH0HIZ:1;
3124
            unsigned char CH910HIZ:1;
3125
            unsigned char CH6HIZ:1;
3126
            unsigned char :4;
3127
        } BIT;
3128
    } SPOER;
3129
    union {
3130
        unsigned char BYTE;
3131
        struct {
3132
            unsigned char PE0ZE:1;
3133
            unsigned char PE1ZE:1;
3134
            unsigned char PE2ZE:1;
3135
            unsigned char PE3ZE:1;
3136
            unsigned char PE4ZE:1;
3137
            unsigned char PE5ZE:1;
3138
            unsigned char PE6ZE:1;
3139
            unsigned char PE7ZE:1;
3140
        } BIT;
3141
    } POECR1;
3142
    union {
3143
        unsigned short WORD;
3144
        struct {
3145
            unsigned short :4;
3146
            unsigned short P6CZE:1;
3147
            unsigned short P5CZE:1;
3148
            unsigned short P4CZE:1;
3149
            unsigned short :1;
3150
            unsigned short P3CZEB:1;
3151
            unsigned short P2CZEB:1;
3152
            unsigned short P1CZEB:1;
3153
            unsigned short :1;
3154
            unsigned short P3CZEA:1;
3155
            unsigned short P2CZEA:1;
3156
            unsigned short P1CZEA:1;
3157
            unsigned short :1;
3158
        } BIT;
3159
    } POECR2;
3160
    union {
3161
        unsigned short WORD;
3162
        struct {
3163
            unsigned short POE9M:2;
3164
            unsigned short :6;
3165
            unsigned short PIE4:1;
3166
            unsigned short POE9E:1;
3167
            unsigned short :2;
3168
            unsigned short POE9F:1;
3169
            unsigned short :3;
3170
        } BIT;
3171
    } ICSR4;
3172
};
3173
 
3174
struct st_s12ad {
3175
    union {
3176
        unsigned char BYTE;
3177
        struct {
3178
            unsigned char EXTRG:1;
3179
            unsigned char TRGE:1;
3180
            unsigned char CKS:2;
3181
            unsigned char ADIE:1;
3182
            unsigned char :1;
3183
            unsigned char ADCS:1;
3184
            unsigned char ADST:1;
3185
        } BIT;
3186
    } ADCSR;
3187
    unsigned char wk0[3];
3188
    union {
3189
        unsigned short WORD;
3190
        struct {
3191
            unsigned short ANS:8;
3192
            unsigned short :8;
3193
        } BIT;
3194
    } ADANS;
3195
    unsigned char wk1[2];
3196
    union {
3197
        unsigned short WORD;
3198
        struct {
3199
            unsigned short ADS:8;
3200
            unsigned short :8;
3201
        } BIT;
3202
    } ADADS;
3203
    unsigned char wk2[2];
3204
    union {
3205
        unsigned char BYTE;
3206
        struct {
3207
            unsigned char ADC:2;
3208
            unsigned char :6;
3209
        } BIT;
3210
    } ADADC;
3211
    unsigned char wk3[1];
3212
    union {
3213
        unsigned short WORD;
3214
        struct {
3215
            unsigned short :5;
3216
            unsigned short ACE:1;
3217
            unsigned short :9;
3218
            unsigned short ADRFMT:1;
3219
        } BIT;
3220
    } ADCER;
3221
    union {
3222
        unsigned char BYTE;
3223
        struct {
3224
            unsigned char ADSTRS:4;
3225
            unsigned char :4;
3226
        } BIT;
3227
    } ADSTRGR;
3228
    unsigned char wk4[15];
3229
    unsigned short ADDRA;
3230
    unsigned short ADDRB;
3231
    unsigned short ADDRC;
3232
    unsigned short ADDRD;
3233
    unsigned short ADDRE;
3234
    unsigned short ADDRF;
3235
    unsigned short ADDRG;
3236
    unsigned short ADDRH;
3237
};
3238
 
3239
struct st_port0 {
3240
    union {
3241
        unsigned char BYTE;
3242
        struct {
3243
            unsigned char B0:1;
3244
            unsigned char B1:1;
3245
            unsigned char B2:1;
3246
            unsigned char B3:1;
3247
            unsigned char :1;
3248
            unsigned char B5:1;
3249
            unsigned char :1;
3250
            unsigned char B7:1;
3251
        } BIT;
3252
    } DDR;
3253
    unsigned char wk0[31];
3254
    union {
3255
        unsigned char BYTE;
3256
        struct {
3257
            unsigned char B0:1;
3258
            unsigned char B1:1;
3259
            unsigned char B2:1;
3260
            unsigned char B3:1;
3261
            unsigned char :1;
3262
            unsigned char B5:1;
3263
            unsigned char :1;
3264
            unsigned char B7:1;
3265
        } BIT;
3266
    } DR;
3267
    unsigned char wk1[31];
3268
    union {
3269
        unsigned char BYTE;
3270
        struct {
3271
            unsigned char B0:1;
3272
            unsigned char B1:1;
3273
            unsigned char B2:1;
3274
            unsigned char B3:1;
3275
            unsigned char :1;
3276
            unsigned char B5:1;
3277
            unsigned char :1;
3278
            unsigned char B7:1;
3279
        } BIT;
3280
    } PORT;
3281
    unsigned char wk2[31];
3282
    union {
3283
        unsigned char BYTE;
3284
        struct {
3285
            unsigned char B0:1;
3286
            unsigned char B1:1;
3287
            unsigned char B2:1;
3288
            unsigned char B3:1;
3289
            unsigned char :1;
3290
            unsigned char B5:1;
3291
            unsigned char :1;
3292
            unsigned char B7:1;
3293
        } BIT;
3294
    } ICR;
3295
    unsigned char wk3[31];
3296
    union {
3297
        unsigned char BYTE;
3298
        struct {
3299
            unsigned char B0:1;
3300
            unsigned char B1:1;
3301
            unsigned char B2:1;
3302
            unsigned char B3:1;
3303
            unsigned char :1;
3304
            unsigned char B5:1;
3305
            unsigned char :1;
3306
            unsigned char B7:1;
3307
        } BIT;
3308
    } ODR;
3309
};
3310
 
3311
struct st_port1 {
3312
    union {
3313
        unsigned char BYTE;
3314
        struct {
3315
            unsigned char B0:1;
3316
            unsigned char B1:1;
3317
            unsigned char B2:1;
3318
            unsigned char B3:1;
3319
            unsigned char B4:1;
3320
            unsigned char B5:1;
3321
            unsigned char B6:1;
3322
            unsigned char B7:1;
3323
        } BIT;
3324
    } DDR;
3325
    unsigned char wk0[31];
3326
    union {
3327
        unsigned char BYTE;
3328
        struct {
3329
            unsigned char B0:1;
3330
            unsigned char B1:1;
3331
            unsigned char B2:1;
3332
            unsigned char B3:1;
3333
            unsigned char B4:1;
3334
            unsigned char B5:1;
3335
            unsigned char B6:1;
3336
            unsigned char B7:1;
3337
        } BIT;
3338
    } DR;
3339
    unsigned char wk1[31];
3340
    union {
3341
        unsigned char BYTE;
3342
        struct {
3343
            unsigned char B0:1;
3344
            unsigned char B1:1;
3345
            unsigned char B2:1;
3346
            unsigned char B3:1;
3347
            unsigned char B4:1;
3348
            unsigned char B5:1;
3349
            unsigned char B6:1;
3350
            unsigned char B7:1;
3351
        } BIT;
3352
    } PORT;
3353
    unsigned char wk2[31];
3354
    union {
3355
        unsigned char BYTE;
3356
        struct {
3357
            unsigned char B0:1;
3358
            unsigned char B1:1;
3359
            unsigned char B2:1;
3360
            unsigned char B3:1;
3361
            unsigned char B4:1;
3362
            unsigned char B5:1;
3363
            unsigned char B6:1;
3364
            unsigned char B7:1;
3365
        } BIT;
3366
    } ICR;
3367
    unsigned char wk3[31];
3368
    union {
3369
        unsigned char BYTE;
3370
        struct {
3371
            unsigned char B0:1;
3372
            unsigned char B1:1;
3373
            unsigned char B2:1;
3374
            unsigned char B3:1;
3375
            unsigned char B4:1;
3376
            unsigned char B5:1;
3377
            unsigned char B6:1;
3378
            unsigned char B7:1;
3379
        } BIT;
3380
    } ODR;
3381
};
3382
 
3383
struct st_port2 {
3384
    union {
3385
        unsigned char BYTE;
3386
        struct {
3387
            unsigned char B0:1;
3388
            unsigned char B1:1;
3389
            unsigned char B2:1;
3390
            unsigned char B3:1;
3391
            unsigned char B4:1;
3392
            unsigned char B5:1;
3393
            unsigned char B6:1;
3394
            unsigned char B7:1;
3395
        } BIT;
3396
    } DDR;
3397
    unsigned char wk0[31];
3398
    union {
3399
        unsigned char BYTE;
3400
        struct {
3401
            unsigned char B0:1;
3402
            unsigned char B1:1;
3403
            unsigned char B2:1;
3404
            unsigned char B3:1;
3405
            unsigned char B4:1;
3406
            unsigned char B5:1;
3407
            unsigned char B6:1;
3408
            unsigned char B7:1;
3409
        } BIT;
3410
    } DR;
3411
    unsigned char wk1[31];
3412
    union {
3413
        unsigned char BYTE;
3414
        struct {
3415
            unsigned char B0:1;
3416
            unsigned char B1:1;
3417
            unsigned char B2:1;
3418
            unsigned char B3:1;
3419
            unsigned char B4:1;
3420
            unsigned char B5:1;
3421
            unsigned char B6:1;
3422
            unsigned char B7:1;
3423
        } BIT;
3424
    } PORT;
3425
    unsigned char wk2[31];
3426
    union {
3427
        unsigned char BYTE;
3428
        struct {
3429
            unsigned char B0:1;
3430
            unsigned char B1:1;
3431
            unsigned char B2:1;
3432
            unsigned char B3:1;
3433
            unsigned char B4:1;
3434
            unsigned char B5:1;
3435
            unsigned char B6:1;
3436
            unsigned char B7:1;
3437
        } BIT;
3438
    } ICR;
3439
    unsigned char wk3[31];
3440
    union {
3441
        unsigned char BYTE;
3442
        struct {
3443
            unsigned char B0:1;
3444
            unsigned char B1:1;
3445
            unsigned char B2:1;
3446
            unsigned char B3:1;
3447
            unsigned char B4:1;
3448
            unsigned char B5:1;
3449
            unsigned char B6:1;
3450
            unsigned char B7:1;
3451
        } BIT;
3452
    } ODR;
3453
};
3454
 
3455
struct st_port3 {
3456
    union {
3457
        unsigned char BYTE;
3458
        struct {
3459
            unsigned char B0:1;
3460
            unsigned char B1:1;
3461
            unsigned char B2:1;
3462
            unsigned char B3:1;
3463
            unsigned char B4:1;
3464
            unsigned char :3;
3465
        } BIT;
3466
    } DDR;
3467
    unsigned char wk0[31];
3468
    union {
3469
        unsigned char BYTE;
3470
        struct {
3471
            unsigned char B0:1;
3472
            unsigned char B1:1;
3473
            unsigned char B2:1;
3474
            unsigned char B3:1;
3475
            unsigned char B4:1;
3476
            unsigned char :3;
3477
        } BIT;
3478
    } DR;
3479
    unsigned char wk1[31];
3480
    union {
3481
        unsigned char BYTE;
3482
        struct {
3483
            unsigned char B0:1;
3484
            unsigned char B1:1;
3485
            unsigned char B2:1;
3486
            unsigned char B3:1;
3487
            unsigned char B4:1;
3488
            unsigned char B5:1;
3489
            unsigned char :2;
3490
        } BIT;
3491
    } PORT;
3492
    unsigned char wk2[31];
3493
    union {
3494
        unsigned char BYTE;
3495
        struct {
3496
            unsigned char B0:1;
3497
            unsigned char B1:1;
3498
            unsigned char B2:1;
3499
            unsigned char B3:1;
3500
            unsigned char B4:1;
3501
            unsigned char :3;
3502
        } BIT;
3503
    } ICR;
3504
    unsigned char wk3[31];
3505
    union {
3506
        unsigned char BYTE;
3507
        struct {
3508
            unsigned char B0:1;
3509
            unsigned char B1:1;
3510
            unsigned char B2:1;
3511
            unsigned char B3:1;
3512
            unsigned char B4:1;
3513
            unsigned char :3;
3514
        } BIT;
3515
    } ODR;
3516
};
3517
 
3518
struct st_port4 {
3519
    union {
3520
        unsigned char BYTE;
3521
        struct {
3522
            unsigned char B0:1;
3523
            unsigned char B1:1;
3524
            unsigned char B2:1;
3525
            unsigned char B3:1;
3526
            unsigned char B4:1;
3527
            unsigned char B5:1;
3528
            unsigned char B6:1;
3529
            unsigned char B7:1;
3530
        } BIT;
3531
    } DDR;
3532
    unsigned char wk0[31];
3533
    union {
3534
        unsigned char BYTE;
3535
        struct {
3536
            unsigned char B0:1;
3537
            unsigned char B1:1;
3538
            unsigned char B2:1;
3539
            unsigned char B3:1;
3540
            unsigned char B4:1;
3541
            unsigned char B5:1;
3542
            unsigned char B6:1;
3543
            unsigned char B7:1;
3544
        } BIT;
3545
    } DR;
3546
    unsigned char wk1[31];
3547
    union {
3548
        unsigned char BYTE;
3549
        struct {
3550
            unsigned char B0:1;
3551
            unsigned char B1:1;
3552
            unsigned char B2:1;
3553
            unsigned char B3:1;
3554
            unsigned char B4:1;
3555
            unsigned char B5:1;
3556
            unsigned char B6:1;
3557
            unsigned char B7:1;
3558
        } BIT;
3559
    } PORT;
3560
    unsigned char wk2[31];
3561
    union {
3562
        unsigned char BYTE;
3563
        struct {
3564
            unsigned char B0:1;
3565
            unsigned char B1:1;
3566
            unsigned char B2:1;
3567
            unsigned char B3:1;
3568
            unsigned char B4:1;
3569
            unsigned char B5:1;
3570
            unsigned char B6:1;
3571
            unsigned char B7:1;
3572
        } BIT;
3573
    } ICR;
3574
};
3575
 
3576
struct st_port5 {
3577
    union {
3578
        unsigned char BYTE;
3579
        struct {
3580
            unsigned char B0:1;
3581
            unsigned char B1:1;
3582
            unsigned char B2:1;
3583
            unsigned char B3:1;
3584
            unsigned char B4:1;
3585
            unsigned char B5:1;
3586
            unsigned char B6:1;
3587
            unsigned char B7:1;
3588
        } BIT;
3589
    } DDR;
3590
    unsigned char wk0[31];
3591
    union {
3592
        unsigned char BYTE;
3593
        struct {
3594
            unsigned char B0:1;
3595
            unsigned char B1:1;
3596
            unsigned char B2:1;
3597
            unsigned char B3:1;
3598
            unsigned char B4:1;
3599
            unsigned char B5:1;
3600
            unsigned char B6:1;
3601
            unsigned char B7:1;
3602
        } BIT;
3603
    } DR;
3604
    unsigned char wk1[31];
3605
    union {
3606
        unsigned char BYTE;
3607
        struct {
3608
            unsigned char B0:1;
3609
            unsigned char B1:1;
3610
            unsigned char B2:1;
3611
            unsigned char B3:1;
3612
            unsigned char B4:1;
3613
            unsigned char B5:1;
3614
            unsigned char B6:1;
3615
            unsigned char B7:1;
3616
        } BIT;
3617
    } PORT;
3618
    unsigned char wk2[31];
3619
    union {
3620
        unsigned char BYTE;
3621
        struct {
3622
            unsigned char B0:1;
3623
            unsigned char B1:1;
3624
            unsigned char B2:1;
3625
            unsigned char B3:1;
3626
            unsigned char B4:1;
3627
            unsigned char B5:1;
3628
            unsigned char B6:1;
3629
            unsigned char B7:1;
3630
        } BIT;
3631
    } ICR;
3632
};
3633
 
3634
struct st_port6 {
3635
    union {
3636
        unsigned char BYTE;
3637
        struct {
3638
            unsigned char B0:1;
3639
            unsigned char B1:1;
3640
            unsigned char B2:1;
3641
            unsigned char B3:1;
3642
            unsigned char B4:1;
3643
            unsigned char B5:1;
3644
            unsigned char B6:1;
3645
            unsigned char B7:1;
3646
        } BIT;
3647
    } DDR;
3648
    unsigned char wk0[31];
3649
    union {
3650
        unsigned char BYTE;
3651
        struct {
3652
            unsigned char B0:1;
3653
            unsigned char B1:1;
3654
            unsigned char B2:1;
3655
            unsigned char B3:1;
3656
            unsigned char B4:1;
3657
            unsigned char B5:1;
3658
            unsigned char B6:1;
3659
            unsigned char B7:1;
3660
        } BIT;
3661
    } DR;
3662
    unsigned char wk1[31];
3663
    union {
3664
        unsigned char BYTE;
3665
        struct {
3666
            unsigned char B0:1;
3667
            unsigned char B1:1;
3668
            unsigned char B2:1;
3669
            unsigned char B3:1;
3670
            unsigned char B4:1;
3671
            unsigned char B5:1;
3672
            unsigned char B6:1;
3673
            unsigned char B7:1;
3674
        } BIT;
3675
    } PORT;
3676
    unsigned char wk2[31];
3677
    union {
3678
        unsigned char BYTE;
3679
        struct {
3680
            unsigned char B0:1;
3681
            unsigned char B1:1;
3682
            unsigned char B2:1;
3683
            unsigned char B3:1;
3684
            unsigned char B4:1;
3685
            unsigned char B5:1;
3686
            unsigned char B6:1;
3687
            unsigned char B7:1;
3688
        } BIT;
3689
    } ICR;
3690
};
3691
 
3692
struct st_port7 {
3693
    union {
3694
        unsigned char BYTE;
3695
        struct {
3696
            unsigned char B0:1;
3697
            unsigned char B1:1;
3698
            unsigned char B2:1;
3699
            unsigned char B3:1;
3700
            unsigned char B4:1;
3701
            unsigned char B5:1;
3702
            unsigned char B6:1;
3703
            unsigned char B7:1;
3704
        } BIT;
3705
    } DDR;
3706
    unsigned char wk0[31];
3707
    union {
3708
        unsigned char BYTE;
3709
        struct {
3710
            unsigned char B0:1;
3711
            unsigned char B1:1;
3712
            unsigned char B2:1;
3713
            unsigned char B3:1;
3714
            unsigned char B4:1;
3715
            unsigned char B5:1;
3716
            unsigned char B6:1;
3717
            unsigned char B7:1;
3718
        } BIT;
3719
    } DR;
3720
    unsigned char wk1[31];
3721
    union {
3722
        unsigned char BYTE;
3723
        struct {
3724
            unsigned char B0:1;
3725
            unsigned char B1:1;
3726
            unsigned char B2:1;
3727
            unsigned char B3:1;
3728
            unsigned char B4:1;
3729
            unsigned char B5:1;
3730
            unsigned char B6:1;
3731
            unsigned char B7:1;
3732
        } BIT;
3733
    } PORT;
3734
    unsigned char wk2[31];
3735
    union {
3736
        unsigned char BYTE;
3737
        struct {
3738
            unsigned char B0:1;
3739
            unsigned char B1:1;
3740
            unsigned char B2:1;
3741
            unsigned char B3:1;
3742
            unsigned char B4:1;
3743
            unsigned char B5:1;
3744
            unsigned char B6:1;
3745
            unsigned char B7:1;
3746
        } BIT;
3747
    } ICR;
3748
};
3749
 
3750
struct st_port8 {
3751
    union {
3752
        unsigned char BYTE;
3753
        struct {
3754
            unsigned char B0:1;
3755
            unsigned char B1:1;
3756
            unsigned char B2:1;
3757
            unsigned char B3:1;
3758
            unsigned char B4:1;
3759
            unsigned char B5:1;
3760
            unsigned char :2;
3761
        } BIT;
3762
    } DDR;
3763
    unsigned char wk0[31];
3764
    union {
3765
        unsigned char BYTE;
3766
        struct {
3767
            unsigned char B0:1;
3768
            unsigned char B1:1;
3769
            unsigned char B2:1;
3770
            unsigned char B3:1;
3771
            unsigned char B4:1;
3772
            unsigned char B5:1;
3773
            unsigned char :2;
3774
        } BIT;
3775
    } DR;
3776
    unsigned char wk1[31];
3777
    union {
3778
        unsigned char BYTE;
3779
        struct {
3780
            unsigned char B0:1;
3781
            unsigned char B1:1;
3782
            unsigned char B2:1;
3783
            unsigned char B3:1;
3784
            unsigned char B4:1;
3785
            unsigned char B5:1;
3786
            unsigned char :2;
3787
        } BIT;
3788
    } PORT;
3789
    unsigned char wk2[31];
3790
    union {
3791
        unsigned char BYTE;
3792
        struct {
3793
            unsigned char B0:1;
3794
            unsigned char B1:1;
3795
            unsigned char B2:1;
3796
            unsigned char B3:1;
3797
            unsigned char B4:1;
3798
            unsigned char B5:1;
3799
            unsigned char :2;
3800
        } BIT;
3801
    } ICR;
3802
};
3803
 
3804
struct st_port9 {
3805
    union {
3806
        unsigned char BYTE;
3807
        struct {
3808
            unsigned char B0:1;
3809
            unsigned char B1:1;
3810
            unsigned char B2:1;
3811
            unsigned char B3:1;
3812
            unsigned char B4:1;
3813
            unsigned char B5:1;
3814
            unsigned char B6:1;
3815
            unsigned char B7:1;
3816
        } BIT;
3817
    } DDR;
3818
    unsigned char wk0[31];
3819
    union {
3820
        unsigned char BYTE;
3821
        struct {
3822
            unsigned char B0:1;
3823
            unsigned char B1:1;
3824
            unsigned char B2:1;
3825
            unsigned char B3:1;
3826
            unsigned char B4:1;
3827
            unsigned char B5:1;
3828
            unsigned char B6:1;
3829
            unsigned char B7:1;
3830
        } BIT;
3831
    } DR;
3832
    unsigned char wk1[31];
3833
    union {
3834
        unsigned char BYTE;
3835
        struct {
3836
            unsigned char B0:1;
3837
            unsigned char B1:1;
3838
            unsigned char B2:1;
3839
            unsigned char B3:1;
3840
            unsigned char B4:1;
3841
            unsigned char B5:1;
3842
            unsigned char B6:1;
3843
            unsigned char B7:1;
3844
        } BIT;
3845
    } PORT;
3846
    unsigned char wk2[31];
3847
    union {
3848
        unsigned char BYTE;
3849
        struct {
3850
            unsigned char B0:1;
3851
            unsigned char B1:1;
3852
            unsigned char B2:1;
3853
            unsigned char B3:1;
3854
            unsigned char B4:1;
3855
            unsigned char B5:1;
3856
            unsigned char B6:1;
3857
            unsigned char B7:1;
3858
        } BIT;
3859
    } ICR;
3860
    unsigned char wk3[95];
3861
    union {
3862
        unsigned char BYTE;
3863
        struct {
3864
            unsigned char B0:1;
3865
            unsigned char B1:1;
3866
            unsigned char B2:1;
3867
            unsigned char B3:1;
3868
            unsigned char B4:1;
3869
            unsigned char B5:1;
3870
            unsigned char B6:1;
3871
            unsigned char B7:1;
3872
        } BIT;
3873
    } PCR;
3874
};
3875
 
3876
struct st_porta {
3877
    union {
3878
        unsigned char BYTE;
3879
        struct {
3880
            unsigned char B0:1;
3881
            unsigned char B1:1;
3882
            unsigned char B2:1;
3883
            unsigned char B3:1;
3884
            unsigned char B4:1;
3885
            unsigned char B5:1;
3886
            unsigned char B6:1;
3887
            unsigned char B7:1;
3888
        } BIT;
3889
    } DDR;
3890
    unsigned char wk0[31];
3891
    union {
3892
        unsigned char BYTE;
3893
        struct {
3894
            unsigned char B0:1;
3895
            unsigned char B1:1;
3896
            unsigned char B2:1;
3897
            unsigned char B3:1;
3898
            unsigned char B4:1;
3899
            unsigned char B5:1;
3900
            unsigned char B6:1;
3901
            unsigned char B7:1;
3902
        } BIT;
3903
    } DR;
3904
    unsigned char wk1[31];
3905
    union {
3906
        unsigned char BYTE;
3907
        struct {
3908
            unsigned char B0:1;
3909
            unsigned char B1:1;
3910
            unsigned char B2:1;
3911
            unsigned char B3:1;
3912
            unsigned char B4:1;
3913
            unsigned char B5:1;
3914
            unsigned char B6:1;
3915
            unsigned char B7:1;
3916
        } BIT;
3917
    } PORT;
3918
    unsigned char wk2[31];
3919
    union {
3920
        unsigned char BYTE;
3921
        struct {
3922
            unsigned char B0:1;
3923
            unsigned char B1:1;
3924
            unsigned char B2:1;
3925
            unsigned char B3:1;
3926
            unsigned char B4:1;
3927
            unsigned char B5:1;
3928
            unsigned char B6:1;
3929
            unsigned char B7:1;
3930
        } BIT;
3931
    } ICR;
3932
    unsigned char wk3[95];
3933
    union {
3934
        unsigned char BYTE;
3935
        struct {
3936
            unsigned char B0:1;
3937
            unsigned char B1:1;
3938
            unsigned char B2:1;
3939
            unsigned char B3:1;
3940
            unsigned char B4:1;
3941
            unsigned char B5:1;
3942
            unsigned char B6:1;
3943
            unsigned char B7:1;
3944
        } BIT;
3945
    } PCR;
3946
};
3947
 
3948
struct st_portb {
3949
    union {
3950
        unsigned char BYTE;
3951
        struct {
3952
            unsigned char B0:1;
3953
            unsigned char B1:1;
3954
            unsigned char B2:1;
3955
            unsigned char B3:1;
3956
            unsigned char B4:1;
3957
            unsigned char B5:1;
3958
            unsigned char B6:1;
3959
            unsigned char B7:1;
3960
        } BIT;
3961
    } DDR;
3962
    unsigned char wk0[31];
3963
    union {
3964
        unsigned char BYTE;
3965
        struct {
3966
            unsigned char B0:1;
3967
            unsigned char B1:1;
3968
            unsigned char B2:1;
3969
            unsigned char B3:1;
3970
            unsigned char B4:1;
3971
            unsigned char B5:1;
3972
            unsigned char B6:1;
3973
            unsigned char B7:1;
3974
        } BIT;
3975
    } DR;
3976
    unsigned char wk1[31];
3977
    union {
3978
        unsigned char BYTE;
3979
        struct {
3980
            unsigned char B0:1;
3981
            unsigned char B1:1;
3982
            unsigned char B2:1;
3983
            unsigned char B3:1;
3984
            unsigned char B4:1;
3985
            unsigned char B5:1;
3986
            unsigned char B6:1;
3987
            unsigned char B7:1;
3988
        } BIT;
3989
    } PORT;
3990
    unsigned char wk2[31];
3991
    union {
3992
        unsigned char BYTE;
3993
        struct {
3994
            unsigned char B0:1;
3995
            unsigned char B1:1;
3996
            unsigned char B2:1;
3997
            unsigned char B3:1;
3998
            unsigned char B4:1;
3999
            unsigned char B5:1;
4000
            unsigned char B6:1;
4001
            unsigned char B7:1;
4002
        } BIT;
4003
    } ICR;
4004
    unsigned char wk3[95];
4005
    union {
4006
        unsigned char BYTE;
4007
        struct {
4008
            unsigned char B0:1;
4009
            unsigned char B1:1;
4010
            unsigned char B2:1;
4011
            unsigned char B3:1;
4012
            unsigned char B4:1;
4013
            unsigned char B5:1;
4014
            unsigned char B6:1;
4015
            unsigned char B7:1;
4016
        } BIT;
4017
    } PCR;
4018
};
4019
 
4020
struct st_portc {
4021
    union {
4022
        unsigned char BYTE;
4023
        struct {
4024
            unsigned char B0:1;
4025
            unsigned char B1:1;
4026
            unsigned char B2:1;
4027
            unsigned char B3:1;
4028
            unsigned char B4:1;
4029
            unsigned char B5:1;
4030
            unsigned char B6:1;
4031
            unsigned char B7:1;
4032
        } BIT;
4033
    } DDR;
4034
    unsigned char wk0[31];
4035
    union {
4036
        unsigned char BYTE;
4037
        struct {
4038
            unsigned char B0:1;
4039
            unsigned char B1:1;
4040
            unsigned char B2:1;
4041
            unsigned char B3:1;
4042
            unsigned char B4:1;
4043
            unsigned char B5:1;
4044
            unsigned char B6:1;
4045
            unsigned char B7:1;
4046
        } BIT;
4047
    } DR;
4048
    unsigned char wk1[31];
4049
    union {
4050
        unsigned char BYTE;
4051
        struct {
4052
            unsigned char B0:1;
4053
            unsigned char B1:1;
4054
            unsigned char B2:1;
4055
            unsigned char B3:1;
4056
            unsigned char B4:1;
4057
            unsigned char B5:1;
4058
            unsigned char B6:1;
4059
            unsigned char B7:1;
4060
        } BIT;
4061
    } PORT;
4062
    unsigned char wk2[31];
4063
    union {
4064
        unsigned char BYTE;
4065
        struct {
4066
            unsigned char B0:1;
4067
            unsigned char B1:1;
4068
            unsigned char B2:1;
4069
            unsigned char B3:1;
4070
            unsigned char B4:1;
4071
            unsigned char B5:1;
4072
            unsigned char B6:1;
4073
            unsigned char B7:1;
4074
        } BIT;
4075
    } ICR;
4076
    unsigned char wk3[31];
4077
    union {
4078
        unsigned char BYTE;
4079
        struct {
4080
            unsigned char B0:1;
4081
            unsigned char B1:1;
4082
            unsigned char B2:1;
4083
            unsigned char B3:1;
4084
            unsigned char B4:1;
4085
            unsigned char B5:1;
4086
            unsigned char B6:1;
4087
            unsigned char B7:1;
4088
        } BIT;
4089
    } ODR;
4090
    unsigned char wk4[63];
4091
    union {
4092
        unsigned char BYTE;
4093
        struct {
4094
            unsigned char B0:1;
4095
            unsigned char B1:1;
4096
            unsigned char B2:1;
4097
            unsigned char B3:1;
4098
            unsigned char B4:1;
4099
            unsigned char B5:1;
4100
            unsigned char B6:1;
4101
            unsigned char B7:1;
4102
        } BIT;
4103
    } PCR;
4104
};
4105
 
4106
struct st_portd {
4107
    union {
4108
        unsigned char BYTE;
4109
        struct {
4110
            unsigned char B0:1;
4111
            unsigned char B1:1;
4112
            unsigned char B2:1;
4113
            unsigned char B3:1;
4114
            unsigned char B4:1;
4115
            unsigned char B5:1;
4116
            unsigned char B6:1;
4117
            unsigned char B7:1;
4118
        } BIT;
4119
    } DDR;
4120
    unsigned char wk0[31];
4121
    union {
4122
        unsigned char BYTE;
4123
        struct {
4124
            unsigned char B0:1;
4125
            unsigned char B1:1;
4126
            unsigned char B2:1;
4127
            unsigned char B3:1;
4128
            unsigned char B4:1;
4129
            unsigned char B5:1;
4130
            unsigned char B6:1;
4131
            unsigned char B7:1;
4132
        } BIT;
4133
    } DR;
4134
    unsigned char wk1[31];
4135
    union {
4136
        unsigned char BYTE;
4137
        struct {
4138
            unsigned char B0:1;
4139
            unsigned char B1:1;
4140
            unsigned char B2:1;
4141
            unsigned char B3:1;
4142
            unsigned char B4:1;
4143
            unsigned char B5:1;
4144
            unsigned char B6:1;
4145
            unsigned char B7:1;
4146
        } BIT;
4147
    } PORT;
4148
    unsigned char wk2[31];
4149
    union {
4150
        unsigned char BYTE;
4151
        struct {
4152
            unsigned char B0:1;
4153
            unsigned char B1:1;
4154
            unsigned char B2:1;
4155
            unsigned char B3:1;
4156
            unsigned char B4:1;
4157
            unsigned char B5:1;
4158
            unsigned char B6:1;
4159
            unsigned char B7:1;
4160
        } BIT;
4161
    } ICR;
4162
    unsigned char wk3[95];
4163
    union {
4164
        unsigned char BYTE;
4165
        struct {
4166
            unsigned char B0:1;
4167
            unsigned char B1:1;
4168
            unsigned char B2:1;
4169
            unsigned char B3:1;
4170
            unsigned char B4:1;
4171
            unsigned char B5:1;
4172
            unsigned char B6:1;
4173
            unsigned char B7:1;
4174
        } BIT;
4175
    } PCR;
4176
};
4177
 
4178
struct st_porte {
4179
    union {
4180
        unsigned char BYTE;
4181
        struct {
4182
            unsigned char B0:1;
4183
            unsigned char B1:1;
4184
            unsigned char B2:1;
4185
            unsigned char B3:1;
4186
            unsigned char B4:1;
4187
            unsigned char B5:1;
4188
            unsigned char B6:1;
4189
            unsigned char B7:1;
4190
        } BIT;
4191
    } DDR;
4192
    unsigned char wk0[31];
4193
    union {
4194
        unsigned char BYTE;
4195
        struct {
4196
            unsigned char B0:1;
4197
            unsigned char B1:1;
4198
            unsigned char B2:1;
4199
            unsigned char B3:1;
4200
            unsigned char B4:1;
4201
            unsigned char B5:1;
4202
            unsigned char B6:1;
4203
            unsigned char B7:1;
4204
        } BIT;
4205
    } DR;
4206
    unsigned char wk1[31];
4207
    union {
4208
        unsigned char BYTE;
4209
        struct {
4210
            unsigned char B0:1;
4211
            unsigned char B1:1;
4212
            unsigned char B2:1;
4213
            unsigned char B3:1;
4214
            unsigned char B4:1;
4215
            unsigned char B5:1;
4216
            unsigned char B6:1;
4217
            unsigned char B7:1;
4218
        } BIT;
4219
    } PORT;
4220
    unsigned char wk2[31];
4221
    union {
4222
        unsigned char BYTE;
4223
        struct {
4224
            unsigned char B0:1;
4225
            unsigned char B1:1;
4226
            unsigned char B2:1;
4227
            unsigned char B3:1;
4228
            unsigned char B4:1;
4229
            unsigned char B5:1;
4230
            unsigned char B6:1;
4231
            unsigned char B7:1;
4232
        } BIT;
4233
    } ICR;
4234
    unsigned char wk3[95];
4235
    union {
4236
        unsigned char BYTE;
4237
        struct {
4238
            unsigned char B0:1;
4239
            unsigned char B1:1;
4240
            unsigned char B2:1;
4241
            unsigned char B3:1;
4242
            unsigned char B4:1;
4243
            unsigned char B5:1;
4244
            unsigned char B6:1;
4245
            unsigned char B7:1;
4246
        } BIT;
4247
    } PCR;
4248
};
4249
 
4250
struct st_portf {
4251
    union {
4252
        unsigned char BYTE;
4253
        struct {
4254
            unsigned char B0:1;
4255
            unsigned char B1:1;
4256
            unsigned char B2:1;
4257
            unsigned char B3:1;
4258
            unsigned char B4:1;
4259
            unsigned char :3;
4260
        } BIT;
4261
    } DDR;
4262
    unsigned char wk0[31];
4263
    union {
4264
        unsigned char BYTE;
4265
        struct {
4266
            unsigned char B0:1;
4267
            unsigned char B1:1;
4268
            unsigned char B2:1;
4269
            unsigned char B3:1;
4270
            unsigned char B4:1;
4271
            unsigned char :3;
4272
        } BIT;
4273
    } DR;
4274
    unsigned char wk1[31];
4275
    union {
4276
        unsigned char BYTE;
4277
        struct {
4278
            unsigned char B0:1;
4279
            unsigned char B1:1;
4280
            unsigned char B2:1;
4281
            unsigned char B3:1;
4282
            unsigned char B4:1;
4283
            unsigned char :3;
4284
        } BIT;
4285
    } PORT;
4286
    unsigned char wk2[31];
4287
    union {
4288
        unsigned char BYTE;
4289
        struct {
4290
            unsigned char B0:1;
4291
            unsigned char B1:1;
4292
            unsigned char B2:1;
4293
            unsigned char B3:1;
4294
            unsigned char B4:1;
4295
            unsigned char :3;
4296
        } BIT;
4297
    } ICR;
4298
};
4299
 
4300
struct st_portg {
4301
    union {
4302
        unsigned char BYTE;
4303
        struct {
4304
            unsigned char B0:1;
4305
            unsigned char B1:1;
4306
            unsigned char B2:1;
4307
            unsigned char B3:1;
4308
            unsigned char B4:1;
4309
            unsigned char B5:1;
4310
            unsigned char B6:1;
4311
            unsigned char B7:1;
4312
        } BIT;
4313
    } DDR;
4314
    unsigned char wk0[31];
4315
    union {
4316
        unsigned char BYTE;
4317
        struct {
4318
            unsigned char B0:1;
4319
            unsigned char B1:1;
4320
            unsigned char B2:1;
4321
            unsigned char B3:1;
4322
            unsigned char B4:1;
4323
            unsigned char B5:1;
4324
            unsigned char B6:1;
4325
            unsigned char B7:1;
4326
        } BIT;
4327
    } DR;
4328
    unsigned char wk1[31];
4329
    union {
4330
        unsigned char BYTE;
4331
        struct {
4332
            unsigned char B0:1;
4333
            unsigned char B1:1;
4334
            unsigned char B2:1;
4335
            unsigned char B3:1;
4336
            unsigned char B4:1;
4337
            unsigned char B5:1;
4338
            unsigned char B6:1;
4339
            unsigned char B7:1;
4340
        } BIT;
4341
    } PORT;
4342
    unsigned char wk2[31];
4343
    union {
4344
        unsigned char BYTE;
4345
        struct {
4346
            unsigned char B0:1;
4347
            unsigned char B1:1;
4348
            unsigned char B2:1;
4349
            unsigned char B3:1;
4350
            unsigned char B4:1;
4351
            unsigned char B5:1;
4352
            unsigned char B6:1;
4353
            unsigned char B7:1;
4354
        } BIT;
4355
    } ICR;
4356
    unsigned char wk3[95];
4357
    union {
4358
        unsigned char BYTE;
4359
        struct {
4360
            unsigned char B0:1;
4361
            unsigned char B1:1;
4362
            unsigned char B2:1;
4363
            unsigned char B3:1;
4364
            unsigned char B4:1;
4365
            unsigned char B5:1;
4366
            unsigned char B6:1;
4367
            unsigned char B7:1;
4368
        } BIT;
4369
    } PCR;
4370
};
4371
 
4372
struct st_ioport {
4373
    union {
4374
        unsigned char BYTE;
4375
        struct {
4376
            unsigned char CS0E:1;
4377
            unsigned char CS1E:1;
4378
            unsigned char CS2E:1;
4379
            unsigned char CS3E:1;
4380
            unsigned char CS4E:1;
4381
            unsigned char CS5E:1;
4382
            unsigned char CS6E:1;
4383
            unsigned char CS7E:1;
4384
        } BIT;
4385
    } PF0CSE;
4386
    union {
4387
        unsigned char BYTE;
4388
        struct {
4389
            unsigned char CS4S:2;
4390
            unsigned char CS5S:2;
4391
            unsigned char CS6S:2;
4392
            unsigned char CS7S:2;
4393
        } BIT;
4394
    } PF1CSS;
4395
    union {
4396
        unsigned char BYTE;
4397
        struct {
4398
            unsigned char CS0S:1;
4399
            unsigned char :1;
4400
            unsigned char CS1S:2;
4401
            unsigned char CS2S:2;
4402
            unsigned char CS3S:2;
4403
        } BIT;
4404
    } PF2CSS;
4405
    union {
4406
        unsigned char BYTE;
4407
        struct {
4408
            unsigned char A16E:1;
4409
            unsigned char A17E:1;
4410
            unsigned char A18E:1;
4411
            unsigned char A19E:1;
4412
            unsigned char A20E:1;
4413
            unsigned char A21E:1;
4414
            unsigned char A22E:1;
4415
            unsigned char A23E:1;
4416
        } BIT;
4417
    } PF3BUS;
4418
    union {
4419
        unsigned char BYTE;
4420
        struct {
4421
            unsigned char ADRLE:2;
4422
            unsigned char A10E:1;
4423
            unsigned char A11E:1;
4424
            unsigned char A12E:1;
4425
            unsigned char A13E:1;
4426
            unsigned char A14E:1;
4427
            unsigned char A15E:1;
4428
        } BIT;
4429
    } PF4BUS;
4430
    union {
4431
        unsigned char BYTE;
4432
        struct {
4433
            unsigned char :1;
4434
            unsigned char ADRHMS:1;
4435
            unsigned char :2;
4436
            unsigned char DHE:1;
4437
            unsigned char DH32E:1;
4438
            unsigned char WR1BC1E:1;
4439
            unsigned char WR32BC32E:1;
4440
        } BIT;
4441
    } PF5BUS;
4442
    union {
4443
        unsigned char BYTE;
4444
        struct {
4445
            unsigned char WAITS:2;
4446
            unsigned char :2;
4447
            unsigned char MDSDE:1;
4448
            unsigned char :1;
4449
            unsigned char DQM1E:1;
4450
            unsigned char SDCLKE:1;
4451
        } BIT;
4452
    } PF6BUS;
4453
    union {
4454
        unsigned char BYTE;
4455
        struct {
4456
            unsigned char :4;
4457
            unsigned char EDMA0S:2;
4458
            unsigned char EDMA1S:2;
4459
        } BIT;
4460
    } PF7DMA;
4461
    union {
4462
        unsigned char BYTE;
4463
        struct {
4464
            unsigned char ITS8:1;
4465
            unsigned char ITS9:1;
4466
            unsigned char ITS10:1;
4467
            unsigned char ITS11:1;
4468
            unsigned char :1;
4469
            unsigned char ITS13:1;
4470
            unsigned char :1;
4471
            unsigned char ITS15:1;
4472
        } BIT;
4473
    } PF8IRQ;
4474
    union {
4475
        unsigned char BYTE;
4476
        struct {
4477
            unsigned char ITS0:1;
4478
            unsigned char ITS1:1;
4479
            unsigned char ITS2:1;
4480
            unsigned char ITS3:1;
4481
            unsigned char ITS4:1;
4482
            unsigned char ITS5:1;
4483
            unsigned char ITS6:1;
4484
            unsigned char ITS7:1;
4485
        } BIT;
4486
    } PF9IRQ;
4487
    union {
4488
        unsigned char BYTE;
4489
        struct {
4490
            unsigned char ADTRG0S:1;
4491
            unsigned char :7;
4492
        } BIT;
4493
    } PFAADC;
4494
    union {
4495
        unsigned char BYTE;
4496
        struct {
4497
            unsigned char :2;
4498
            unsigned char TMR2S:1;
4499
            unsigned char TMR3S:1;
4500
            unsigned char :4;
4501
        } BIT;
4502
    } PFBTMR;
4503
    union {
4504
        unsigned char BYTE;
4505
        struct {
4506
            unsigned char MTUS0:1;
4507
            unsigned char MTUS1:1;
4508
            unsigned char MTUS2:1;
4509
            unsigned char MTUS3:1;
4510
            unsigned char MTUS4:1;
4511
            unsigned char MTUS5:1;
4512
            unsigned char MTUS6:1;
4513
            unsigned char TCLKS:1;
4514
        } BIT;
4515
    } PFCMTU;
4516
    union {
4517
        unsigned char BYTE;
4518
        struct {
4519
            unsigned char :6;
4520
            unsigned char MTUS6:1;
4521
            unsigned char TCLKS:1;
4522
        } BIT;
4523
    } PFDMTU;
4524
    union {
4525
        unsigned char BYTE;
4526
        struct {
4527
            unsigned char ENETE0:1;
4528
            unsigned char ENETE1:1;
4529
            unsigned char ENETE2:1;
4530
            unsigned char ENETE3:1;
4531
            unsigned char PHYMODE:1;
4532
            unsigned char :2;
4533
            unsigned char EE:1;
4534
        } BIT;
4535
    } PFENET;
4536
    union {
4537
        unsigned char BYTE;
4538
        struct {
4539
            unsigned char :1;
4540
            unsigned char SCI1S:1;
4541
            unsigned char SCI2S:1;
4542
            unsigned char SCI3S:1;
4543
            unsigned char :2;
4544
            unsigned char SCI6S:1;
4545
            unsigned char :1;
4546
        } BIT;
4547
    } PFFSCI;
4548
    union {
4549
        unsigned char BYTE;
4550
        struct {
4551
            unsigned char RSPIS:1;
4552
            unsigned char RSPCKE:1;
4553
            unsigned char MOSIE:1;
4554
            unsigned char MISOE:1;
4555
            unsigned char SSL0E:1;
4556
            unsigned char SSL1E:1;
4557
            unsigned char SSL2E:1;
4558
            unsigned char SSL3E:1;
4559
        } BIT;
4560
    } PFGSPI;
4561
    union {
4562
        unsigned char BYTE;
4563
        struct {
4564
            unsigned char RSPIS:1;
4565
            unsigned char RSPCKE:1;
4566
            unsigned char MOSIE:1;
4567
            unsigned char MISOE:1;
4568
            unsigned char SSL0E:1;
4569
            unsigned char SSL1E:1;
4570
            unsigned char SSL2E:1;
4571
            unsigned char SSL3E:1;
4572
        } BIT;
4573
    } PFHSPI;
4574
    unsigned char wk0[1];
4575
    union {
4576
        unsigned char BYTE;
4577
        struct {
4578
            unsigned char CAN0E:1;
4579
            unsigned char :7;
4580
        } BIT;
4581
    } PFJCAN;
4582
    union {
4583
        unsigned char BYTE;
4584
        struct {
4585
            unsigned char USBMD:2;
4586
            unsigned char PUPHZS:1;
4587
            unsigned char PDHZS:1;
4588
            unsigned char USBE:1;
4589
            unsigned char :3;
4590
        } BIT;
4591
    } PFKUSB;
4592
    union {
4593
        unsigned char BYTE;
4594
        struct {
4595
            unsigned char USBMD:2;
4596
            unsigned char PUPHZS:1;
4597
            unsigned char PDHZS:1;
4598
            unsigned char USBE:1;
4599
            unsigned char :3;
4600
        } BIT;
4601
    } PFLUSB;
4602
    union {
4603
        unsigned char BYTE;
4604
        struct {
4605
            unsigned char POE0E:1;
4606
            unsigned char POE1E:1;
4607
            unsigned char POE2E:1;
4608
            unsigned char POE3E:1;
4609
            unsigned char POE4E:1;
4610
            unsigned char POE5E:1;
4611
            unsigned char POE6E:1;
4612
            unsigned char POE7E:1;
4613
        } BIT;
4614
    } PFMPOE;
4615
    union {
4616
        unsigned char BYTE;
4617
        struct {
4618
            unsigned char POE8E:1;
4619
            unsigned char POE9E:1;
4620
            unsigned char :6;
4621
        } BIT;
4622
    } PFNPOE;
4623
};
4624
 
4625
struct st_flash {
4626
    unsigned char DMMY;
4627
    union {
4628
        unsigned char BYTE;
4629
        struct {
4630
            unsigned char FLWE:2;
4631
            unsigned char :6;
4632
        } BIT;
4633
    } FWEPROR;
4634
    unsigned char wk0[7799160];
4635
    union {
4636
        unsigned char BYTE;
4637
        struct {
4638
            unsigned char :4;
4639
            unsigned char FRDMD:1;
4640
            unsigned char :3;
4641
        } BIT;
4642
    } FMODR;
4643
    unsigned char wk1[13];
4644
    union {
4645
        unsigned char BYTE;
4646
        struct {
4647
            unsigned char DFLWPE:1;
4648
            unsigned char DFLRPE:1;
4649
            unsigned char :1;
4650
            unsigned char DFLAE:1;
4651
            unsigned char CMDLK:1;
4652
            unsigned char :2;
4653
            unsigned char ROMAE:1;
4654
        } BIT;
4655
    } FASTAT;
4656
    union {
4657
        unsigned char BYTE;
4658
        struct {
4659
            unsigned char DFLWPEIE:1;
4660
            unsigned char DFLRPEIE:1;
4661
            unsigned char :1;
4662
            unsigned char DFLAEIE:1;
4663
            unsigned char CMDLKIE:1;
4664
            unsigned char :2;
4665
            unsigned char ROMAEIE:1;
4666
        } BIT;
4667
    } FAEINT;
4668
    union {
4669
        unsigned char BYTE;
4670
        struct {
4671
            unsigned char FRDYIE:1;
4672
            unsigned char :7;
4673
        } BIT;
4674
    } FRDYIE;
4675
    unsigned char wk2[45];
4676
    union {
4677
        unsigned short WORD;
4678
        struct {
4679
            unsigned short DBRE00:1;
4680
            unsigned short DBRE01:1;
4681
            unsigned short DBRE02:1;
4682
            unsigned short DBRE03:1;
4683
            unsigned short DBRE04:1;
4684
            unsigned short DBRE05:1;
4685
            unsigned short DBRE06:1;
4686
            unsigned short DBRE07:1;
4687
            unsigned short KEY:8;
4688
        } BIT;
4689
    } DFLRE0;
4690
    union {
4691
        unsigned short WORD;
4692
        struct {
4693
            unsigned short DBRE08:1;
4694
            unsigned short DBRE09:1;
4695
            unsigned short DBRE10:1;
4696
            unsigned short DBRE11:1;
4697
            unsigned short DBRE12:1;
4698
            unsigned short DBRE13:1;
4699
            unsigned short DBRE14:1;
4700
            unsigned short DBRE15:1;
4701
            unsigned short KEY:8;
4702
        } BIT;
4703
    } DFLRE1;
4704
    unsigned char wk3[12];
4705
    union {
4706
        unsigned short WORD;
4707
        struct {
4708
            unsigned short DBWE00:1;
4709
            unsigned short DBWE01:1;
4710
            unsigned short DBWE02:1;
4711
            unsigned short DBWE03:1;
4712
            unsigned short DBWE04:1;
4713
            unsigned short DBWE05:1;
4714
            unsigned short DBWE06:1;
4715
            unsigned short DBWE07:1;
4716
            unsigned short KEY:8;
4717
        } BIT;
4718
    } DFLWE0;
4719
    union {
4720
        unsigned short WORD;
4721
        struct {
4722
            unsigned short DBWE08:1;
4723
            unsigned short DBWE09:1;
4724
            unsigned short DBWE10:1;
4725
            unsigned short DBWE11:1;
4726
            unsigned short DBWE12:1;
4727
            unsigned short DBWE13:1;
4728
            unsigned short DBWE14:1;
4729
            unsigned short DBWE15:1;
4730
            unsigned short KEY:8;
4731
        } BIT;
4732
    } DFLWE1;
4733
    union {
4734
        unsigned short WORD;
4735
        struct {
4736
            unsigned short FCRME:1;
4737
            unsigned short :7;
4738
            unsigned short KEY:8;
4739
        } BIT;
4740
    } FCURAME;
4741
    unsigned char wk4[15194];
4742
    union {
4743
        unsigned char BYTE;
4744
        struct {
4745
            unsigned char PRGSPD:1;
4746
            unsigned char ERSSPD:1;
4747
            unsigned char :1;
4748
            unsigned char SUSRDY:1;
4749
            unsigned char PRGERR:1;
4750
            unsigned char ERSERR:1;
4751
            unsigned char ILGLERR:1;
4752
            unsigned char FRDY:1;
4753
        } BIT;
4754
    } FSTATR0;
4755
    union {
4756
        unsigned char BYTE;
4757
        struct {
4758
            unsigned char :4;
4759
            unsigned char FLOCKST:1;
4760
            unsigned char :2;
4761
            unsigned char FCUERR:1;
4762
        } BIT;
4763
    } FSTATR1;
4764
    union {
4765
        unsigned short WORD;
4766
        struct {
4767
            unsigned short FENTRY0:1;
4768
            unsigned short :6;
4769
            unsigned short FENTRYD:1;
4770
            unsigned short FEKEY:8;
4771
        } BIT;
4772
    } FENTRYR;
4773
    union {
4774
        unsigned short WORD;
4775
        struct {
4776
            unsigned short FPROTCN:1;
4777
            unsigned short :7;
4778
            unsigned short FPKEY:8;
4779
        } BIT;
4780
    } FPROTR;
4781
    union {
4782
        unsigned short WORD;
4783
        struct {
4784
            unsigned short FRESET:1;
4785
            unsigned short :7;
4786
            unsigned short FPKEY:8;
4787
        } BIT;
4788
    } FRESETR;
4789
    unsigned char wk5[2];
4790
    union {
4791
        unsigned short WORD;
4792
        struct {
4793
            unsigned short PCMDR:8;
4794
            unsigned short CMDR:8;
4795
        } BIT;
4796
    } FCMDR;
4797
    unsigned char wk6[12];
4798
    union {
4799
        unsigned short WORD;
4800
        struct {
4801
            unsigned short ESUSPMD:1;
4802
            unsigned short :15;
4803
        } BIT;
4804
    } FCPSR;
4805
    union {
4806
        unsigned short WORD;
4807
        struct {
4808
            unsigned short BCSIZE:1;
4809
            unsigned short :2;
4810
            unsigned short BCADR:8;
4811
            unsigned short :5;
4812
        } BIT;
4813
    } DFLBCCNT;
4814
    union {
4815
        unsigned short WORD;
4816
        struct {
4817
            unsigned short PEERRST:8;
4818
            unsigned short :8;
4819
        } BIT;
4820
    } FPESTAT;
4821
    union {
4822
        unsigned short WORD;
4823
        struct {
4824
            unsigned short BCST:1;
4825
            unsigned short :15;
4826
        } BIT;
4827
    } DFLBCSTAT;
4828
    unsigned char wk7[24];
4829
    union {
4830
        unsigned short WORD;
4831
        struct {
4832
            unsigned short PCKA:8;
4833
            unsigned short :8;
4834
        } BIT;
4835
    } PCKAR;
4836
};
4837
 
4838
struct st_rtc {
4839
    union {
4840
        unsigned char BYTE;
4841
        struct {
4842
            unsigned char :1;
4843
            unsigned char F1HZ:1;
4844
            unsigned char F2HZ:1;
4845
            unsigned char F4HZ:1;
4846
            unsigned char F8HZ:1;
4847
            unsigned char F16HZ:1;
4848
            unsigned char F32HZ:1;
4849
            unsigned char F64HZ:1;
4850
        } BIT;
4851
    } R64CNT;
4852
    unsigned char wk0[1];
4853
    union {
4854
        unsigned char BYTE;
4855
        struct {
4856
            unsigned char SEC1:4;
4857
            unsigned char SEC10:3;
4858
            unsigned char :1;
4859
        } BIT;
4860
    } RSECCNT;
4861
    unsigned char wk1[1];
4862
    union {
4863
        unsigned char BYTE;
4864
        struct {
4865
            unsigned char MIN1:4;
4866
            unsigned char MIN10:3;
4867
            unsigned char :1;
4868
        } BIT;
4869
    } RMINCNT;
4870
    unsigned char wk2[1];
4871
    union {
4872
        unsigned char BYTE;
4873
        struct {
4874
            unsigned char HOUR1:4;
4875
            unsigned char HOUR10:2;
4876
            unsigned char :2;
4877
        } BIT;
4878
    } RHRCNT;
4879
    unsigned char wk3[1];
4880
    union {
4881
        unsigned char BYTE;
4882
        struct {
4883
            unsigned char DAY:3;
4884
            unsigned char :5;
4885
        } BIT;
4886
    } RWKCNT;
4887
    unsigned char wk4[1];
4888
    union {
4889
        unsigned char BYTE;
4890
        struct {
4891
            unsigned char DAY1:4;
4892
            unsigned char DAY10:2;
4893
            unsigned char :2;
4894
        } BIT;
4895
    } RDAYCNT;
4896
    unsigned char wk5[1];
4897
    union {
4898
        unsigned char BYTE;
4899
        struct {
4900
            unsigned char MON1:4;
4901
            unsigned char MON10:1;
4902
            unsigned char :3;
4903
        } BIT;
4904
    } RMONCNT;
4905
    unsigned char wk6[1];
4906
    union {
4907
        unsigned short WORD;
4908
        struct {
4909
            unsigned short YEAR1:4;
4910
            unsigned short YEAR10:4;
4911
            unsigned short YEAR100:4;
4912
            unsigned short YEAR1000:4;
4913
        } BIT;
4914
    } RYRCNT;
4915
    union {
4916
        unsigned char BYTE;
4917
        struct {
4918
            unsigned char SEC1:4;
4919
            unsigned char SEC10:3;
4920
            unsigned char ENB:1;
4921
        } BIT;
4922
    } RSECAR;
4923
    unsigned char wk7[1];
4924
    union {
4925
        unsigned char BYTE;
4926
        struct {
4927
            unsigned char MIN1:4;
4928
            unsigned char MIN10:3;
4929
            unsigned char ENB:1;
4930
        } BIT;
4931
    } RMINAR;
4932
    unsigned char wk8[1];
4933
    union {
4934
        unsigned char BYTE;
4935
        struct {
4936
            unsigned char HOUR1:4;
4937
            unsigned char HOUR10:2;
4938
            unsigned char :1;
4939
            unsigned char ENB:1;
4940
        } BIT;
4941
    } RHRAR;
4942
    unsigned char wk9[1];
4943
    union {
4944
        unsigned char BYTE;
4945
        struct {
4946
            unsigned char DAY:3;
4947
            unsigned char :4;
4948
            unsigned char ENB:1;
4949
        } BIT;
4950
    } RWKAR;
4951
    unsigned char wk10[1];
4952
    union {
4953
        unsigned char BYTE;
4954
        struct {
4955
            unsigned char DAY1:4;
4956
            unsigned char DAY10:2;
4957
            unsigned char :1;
4958
            unsigned char ENB:1;
4959
        } BIT;
4960
    } RDAYAR;
4961
    unsigned char wk11[1];
4962
    union {
4963
        unsigned char BYTE;
4964
        struct {
4965
            unsigned char MON1:4;
4966
            unsigned char MON10:1;
4967
            unsigned char :2;
4968
            unsigned char ENB:1;
4969
        } BIT;
4970
    } RMONAR;
4971
    unsigned char wk12[1];
4972
    union {
4973
        unsigned short WORD;
4974
        struct {
4975
            unsigned short YEAR1:4;
4976
            unsigned short YEAR10:4;
4977
            unsigned short YEAR100:4;
4978
            unsigned short YEAR1000:4;
4979
        } BIT;
4980
    } RYRAR;
4981
    union {
4982
        unsigned char BYTE;
4983
        struct {
4984
            unsigned char :7;
4985
            unsigned char ENB:1;
4986
        } BIT;
4987
    } RYRAREN;
4988
    unsigned char wk13[3];
4989
    union {
4990
        unsigned char BYTE;
4991
        struct {
4992
            unsigned char AIE:1;
4993
            unsigned char CIE:1;
4994
            unsigned char PIE:1;
4995
            unsigned char :1;
4996
            unsigned char PES:3;
4997
            unsigned char :1;
4998
        } BIT;
4999
    } RCR1;
5000
    unsigned char wk14[1];
5001
    union {
5002
        unsigned char BYTE;
5003
        struct {
5004
            unsigned char START:1;
5005
            unsigned char RESET:1;
5006
            unsigned char ADJ:1;
5007
            unsigned char RTCOE:1;
5008
            unsigned char :4;
5009
        } BIT;
5010
    } RCR2;
5011
};
5012
 
5013
struct st_can {
5014
    struct {
5015
        union {
5016
            unsigned long LONG;
5017
            union {
5018
                unsigned short H;
5019
                unsigned short L;
5020
            } WORD;
5021
            struct {
5022
                unsigned char HH;
5023
                unsigned char HL;
5024
                unsigned char LH;
5025
                unsigned char LL;
5026
            } BYTE;
5027
            struct {
5028
                unsigned long EID:18;
5029
                unsigned long SID:11;
5030
                unsigned long :1;
5031
                unsigned long RTR:1;
5032
                unsigned long IDE:1;
5033
            } BIT;
5034
        } ID;
5035
        union {
5036
            unsigned short WORD;
5037
            struct {
5038
                unsigned char DLC:4;
5039
                unsigned char :4;
5040
                unsigned char :8;
5041
            } BIT;
5042
        } DLC;
5043
        unsigned char DATA[8];
5044
        union{
5045
            unsigned short WORD;
5046
            struct {
5047
                unsigned char TSH;
5048
                unsigned char TSL;
5049
            } BYTE;
5050
        } TS;
5051
    } MB[32];
5052
    union {
5053
        unsigned long LONG;
5054
        struct {
5055
            unsigned short H;
5056
            unsigned short L;
5057
        } WORD;
5058
        struct {
5059
            unsigned char HH;
5060
            unsigned char HL;
5061
            unsigned char LH;
5062
            unsigned char LL;
5063
        } BYTE;
5064
        struct {
5065
            unsigned long EID:18;
5066
            unsigned long SID:11;
5067
            unsigned long :3;
5068
        } BIT;
5069
    } MKR[8];
5070
    union {
5071
        unsigned long LONG;
5072
        struct {
5073
            unsigned short H;
5074
            unsigned short L;
5075
        } WORD;
5076
        struct {
5077
            unsigned char HH;
5078
            unsigned char HL;
5079
            unsigned char LH;
5080
            unsigned char LL;
5081
        } BYTE;
5082
        struct {
5083
            unsigned long EID:18;
5084
            unsigned long SID:11;
5085
            unsigned long :1;
5086
            unsigned long RTR:1;
5087
            unsigned long IDE:1;
5088
        } BIT;
5089
    } FIDCR0;
5090
    union {
5091
        unsigned long LONG;
5092
        struct {
5093
            unsigned short H;
5094
            unsigned short L;
5095
        } WORD;
5096
        struct {
5097
            unsigned char HH;
5098
            unsigned char HL;
5099
            unsigned char LH;
5100
            unsigned char LL;
5101
        } BYTE;
5102
        struct {
5103
            unsigned long EID:18;
5104
            unsigned long SID:11;
5105
            unsigned long :1;
5106
            unsigned long RTR:1;
5107
            unsigned long IDE:1;
5108
        } BIT;
5109
    } FIDCR1;
5110
    unsigned long MKIVLR;
5111
    unsigned long MIER;
5112
    unsigned char wk32[1008];
5113
    union {
5114
        unsigned char BYTE;
5115
        union {
5116
            struct {
5117
                unsigned char SENTDATA:1;
5118
                unsigned char TRMACTIVE:1;
5119
                unsigned char TRMABT:1;
5120
                unsigned char :1;
5121
                unsigned char ONESHOT:1;
5122
                unsigned char :1;
5123
                unsigned char RECREQ:1;
5124
                unsigned char TRMREQ:1;
5125
            } TX;
5126
            struct {
5127
                unsigned char NEWDATA:1;
5128
                unsigned char INVALDATA:1;
5129
                unsigned char MSGLOST:1;
5130
                unsigned char :1;
5131
                unsigned char ONESHOT:1;
5132
                unsigned char :1;
5133
                unsigned char RECREQ:1;
5134
                unsigned char TRMREQ:1;
5135
            } RX;
5136
        } BIT;
5137
    } MCTL[32];
5138
    union {
5139
        unsigned short WORD;
5140
        struct {
5141
            unsigned char H;
5142
            unsigned char L;
5143
        } BYTE;
5144
        struct {
5145
            unsigned char MBM:1;
5146
            unsigned char IDFM:2;
5147
            unsigned char MLM:1;
5148
            unsigned char TPM:1;
5149
            unsigned char TSRC:1;
5150
            unsigned char TSPS:2;
5151
            unsigned char CANM:2;
5152
            unsigned char SLPM:1;
5153
            unsigned char BOM:2;
5154
            unsigned char RBOC:1;
5155
            unsigned char :2;
5156
        } BIT;
5157
    } CTLR;
5158
    union {
5159
        unsigned short WORD;
5160
        struct {
5161
            unsigned char H;
5162
            unsigned char L;
5163
        } BYTE;
5164
        struct {
5165
            unsigned char NDST:1;
5166
            unsigned char SDST:1;
5167
            unsigned char RFST:1;
5168
            unsigned char TFST:1;
5169
            unsigned char NMLST:1;
5170
            unsigned char FMLST:1;
5171
            unsigned char TABST:1;
5172
            unsigned char EST:1;
5173
            unsigned char RSTST:1;
5174
            unsigned char HLTST:1;
5175
            unsigned char SLPST:1;
5176
            unsigned char EPST:1;
5177
            unsigned char BOST:1;
5178
            unsigned char TRMST:1;
5179
            unsigned char RECST:1;
5180
            unsigned char :1;
5181
        } BIT;
5182
    } STR;
5183
    union {
5184
        unsigned long LONG;
5185
        struct {
5186
            unsigned short H;
5187
            unsigned short L;
5188
        } WORD;
5189
        struct {
5190
            unsigned char HH;
5191
            unsigned char HL;
5192
            unsigned char LH;
5193
            unsigned char LL;
5194
        } BYTE;
5195
        struct {
5196
            unsigned long :8;
5197
            unsigned long TSEG2:3;
5198
            unsigned long :1;
5199
            unsigned long SJW:2;
5200
            unsigned long :2;
5201
            unsigned long BRP:10;
5202
            unsigned long :2;
5203
            unsigned long TSEG1:4;
5204
        } BIT;
5205
    } BCR;
5206
    union {
5207
        unsigned char BYTE;
5208
        struct {
5209
            unsigned char RFE:1;
5210
            unsigned char RFUST:3;
5211
            unsigned char RFMLF:1;
5212
            unsigned char RFFST:1;
5213
            unsigned char RFWST:1;
5214
            unsigned char RFEST:1;
5215
        } BIT;
5216
    } RFCR;
5217
    unsigned char RFPCR;
5218
    union {
5219
        unsigned char BYTE;
5220
        struct {
5221
            unsigned char TFE:1;
5222
            unsigned char TFUST:3;
5223
            unsigned char :2;
5224
            unsigned char TFFST:1;
5225
            unsigned char TFEST:1;
5226
        } BIT;
5227
    } TFCR;
5228
    unsigned char TFPCR;
5229
    union {
5230
        unsigned char BYTE;
5231
        struct {
5232
            unsigned char BEIE:1;
5233
            unsigned char EWIE:1;
5234
            unsigned char EPIE:1;
5235
            unsigned char BOEIE:1;
5236
            unsigned char BORIE:1;
5237
            unsigned char ORIE:1;
5238
            unsigned char OLIE:1;
5239
            unsigned char BLIE:1;
5240
        } BIT;
5241
    } EIER;
5242
    union {
5243
        unsigned char BYTE;
5244
        struct {
5245
            unsigned char BEIF:1;
5246
            unsigned char EWIF:1;
5247
            unsigned char EPIF:1;
5248
            unsigned char BOEIF:1;
5249
            unsigned char BORIF:1;
5250
            unsigned char ORIF:1;
5251
            unsigned char OLIF:1;
5252
            unsigned char BLIF:1;
5253
        } BIT;
5254
    } EIFR;
5255
    unsigned char RECR;
5256
    unsigned char TECR;
5257
    union {
5258
        unsigned char BYTE;
5259
        struct {
5260
            unsigned char SEF:1;
5261
            unsigned char FEF:1;
5262
            unsigned char AEF:1;
5263
            unsigned char CEF:1;
5264
            unsigned char BE1F:1;
5265
            unsigned char BE0F:1;
5266
            unsigned char ADEF:1;
5267
            unsigned char EDPM:1;
5268
        } BIT;
5269
    } ECSR;
5270
    unsigned char CSSR;
5271
    union {
5272
        unsigned char BYTE;
5273
        struct {
5274
            unsigned char MBNST:5;
5275
            unsigned char :2;
5276
            unsigned char SEST:1;
5277
        } BIT;
5278
    } MSSR;
5279
    union {
5280
        unsigned char BYTE;
5281
        struct {
5282
            unsigned char MBSM:2;
5283
            unsigned char :6;
5284
        } BIT;
5285
    } MSMR;
5286
    unsigned short TSR;
5287
    unsigned short AFSR;
5288
    union {
5289
        unsigned char BYTE;
5290
        struct {
5291
            unsigned char TSTE:1;
5292
            unsigned char TSTM:2;
5293
            unsigned char :5;
5294
        } BIT;
5295
    } TCR;
5296
};
5297
 
5298
struct st_usb0 {
5299
    union {
5300
        unsigned short WORD;
5301
        struct {
5302
            unsigned short USBE:1;
5303
            unsigned short :3;
5304
            unsigned short DPRPU:1;
5305
            unsigned short DRPD:1;
5306
            unsigned short DCFM:1;
5307
            unsigned short :3;
5308
            unsigned short SCKE:1;
5309
            unsigned short :5;
5310
        } BIT;
5311
    } SYSCFG;
5312
    unsigned char wk0[2];
5313
    union {
5314
        unsigned short WORD;
5315
        struct {
5316
            unsigned short LNST:2;
5317
            unsigned short IDMON:1;
5318
            unsigned short :3;
5319
            unsigned short HTACT:1;
5320
            unsigned short :7;
5321
            unsigned short OVCMON:2;
5322
        } BIT;
5323
    } SYSSTS0;
5324
    unsigned char wk1[2];
5325
    union {
5326
        unsigned short WORD;
5327
        struct {
5328
            unsigned short RHST:3;
5329
            unsigned short :1;
5330
            unsigned short UACT:1;
5331
            unsigned short RESUME:1;
5332
            unsigned short USBRST:1;
5333
            unsigned short RWUPE:1;
5334
            unsigned short WKUP:1;
5335
            unsigned short VBUSEN:1;
5336
            unsigned short EXICEN:1;
5337
            unsigned short HNPBTOA:1;
5338
            unsigned short :4;
5339
        } BIT;
5340
    } DVSTCTR0;
5341
    unsigned char wk2[10];
5342
    union {
5343
        unsigned short WORD;
5344
        struct {
5345
            unsigned char L;
5346
            unsigned char H;
5347
        } BYTE;
5348
    } CFIFO;
5349
    unsigned char wk3[2];
5350
    union {
5351
        unsigned short WORD;
5352
        struct {
5353
            unsigned char L;
5354
            unsigned char H;
5355
        } BYTE;
5356
    } D0FIFO;
5357
    unsigned char wk4[2];
5358
    union {
5359
        unsigned short WORD;
5360
        struct {
5361
            unsigned char L;
5362
            unsigned char H;
5363
        } BYTE;
5364
    } D1FIFO;
5365
    unsigned char wk5[2];
5366
    union {
5367
        unsigned short WORD;
5368
        struct {
5369
            unsigned short CURPIPE:4;
5370
            unsigned short :1;
5371
            unsigned short ISEL:1;
5372
            unsigned short :2;
5373
            unsigned short BIGEND:1;
5374
            unsigned short :1;
5375
            unsigned short MBW:1;
5376
            unsigned short :3;
5377
            unsigned short REW:1;
5378
            unsigned short RCNT:1;
5379
        } BIT;
5380
    } CFIFOSEL;
5381
    union {
5382
        unsigned short WORD;
5383
        struct {
5384
            unsigned short DTLN:8;
5385
            unsigned short TLN:1;
5386
            unsigned short :4;
5387
            unsigned short FRDY:1;
5388
            unsigned short BCLR:1;
5389
            unsigned short BVAL:1;
5390
        } BIT;
5391
    } CFIFOCTR;
5392
    unsigned char wk6[4];
5393
    union {
5394
        unsigned short WORD;
5395
        struct {
5396
            unsigned short CURPIPE:4;
5397
            unsigned short :4;
5398
            unsigned short BIGEND:1;
5399
            unsigned short :1;
5400
            unsigned short MBW:1;
5401
            unsigned short :1;
5402
            unsigned short DREQE:1;
5403
            unsigned short DCLRM:1;
5404
            unsigned short REW:1;
5405
            unsigned short RCNT:1;
5406
        } BIT;
5407
    } D0FIFOSEL;
5408
    union {
5409
        unsigned short WORD;
5410
        struct {
5411
            unsigned short DTLN:8;
5412
            unsigned short TLN:1;
5413
            unsigned short :4;
5414
            unsigned short FRDY:1;
5415
            unsigned short BCLR:1;
5416
            unsigned short BVAL:1;
5417
        } BIT;
5418
    } D0FIFOCTR;
5419
    union {
5420
        unsigned short WORD;
5421
        struct {
5422
            unsigned short CURPIPE:4;
5423
            unsigned short :4;
5424
            unsigned short BIGEND:1;
5425
            unsigned short :1;
5426
            unsigned short MBW:1;
5427
            unsigned short :1;
5428
            unsigned short DREQE:1;
5429
            unsigned short DCLRM:1;
5430
            unsigned short REW:1;
5431
            unsigned short RCNT:1;
5432
        } BIT;
5433
    } D1FIFOSEL;
5434
    union {
5435
        unsigned short WORD;
5436
        struct {
5437
            unsigned short DTLN:8;
5438
            unsigned short TLN:1;
5439
            unsigned short :4;
5440
            unsigned short FRDY:1;
5441
            unsigned short BCLR:1;
5442
            unsigned short BVAL:1;
5443
        } BIT;
5444
    } D1FIFOCTR;
5445
    union {
5446
        unsigned short WORD;
5447
        struct {
5448
            unsigned short :8;
5449
            unsigned short BRDYE:1;
5450
            unsigned short NRDYE:1;
5451
            unsigned short BEMPE:1;
5452
            unsigned short CTRE:1;
5453
            unsigned short DVSE:1;
5454
            unsigned short SOFE:1;
5455
            unsigned short RSME:1;
5456
            unsigned short VBSE:1;
5457
        } BIT;
5458
    } INTENB0;
5459
    union {
5460
        unsigned short WORD;
5461
        struct {
5462
            unsigned short :4;
5463
            unsigned short SACKE:1;
5464
            unsigned short SIGNE:1;
5465
            unsigned short EOFERRE:1;
5466
            unsigned short :4;
5467
            unsigned short ATTCHE:1;
5468
            unsigned short DTCHE:1;
5469
            unsigned short :1;
5470
            unsigned short BCHGE:1;
5471
            unsigned short OVRCRE:1;
5472
        } BIT;
5473
    } INTENB1;
5474
    unsigned char wk7[2];
5475
    union {
5476
        unsigned short WORD;
5477
        struct {
5478
            unsigned short PIPE0BRDYE:1;
5479
            unsigned short PIPE1BRDYE:1;
5480
            unsigned short PIPE2BRDYE:1;
5481
            unsigned short PIPE3BRDYE:1;
5482
            unsigned short PIPE4BRDYE:1;
5483
            unsigned short PIPE5BRDYE:1;
5484
            unsigned short PIPE6BRDYE:1;
5485
            unsigned short PIPE7BRDYE:1;
5486
            unsigned short PIPE8BRDYE:1;
5487
            unsigned short PIPE9BRDYE:1;
5488
            unsigned short :6;
5489
        } BIT;
5490
    } BRDYENB;
5491
    union {
5492
        unsigned short WORD;
5493
        struct {
5494
            unsigned short PIPE0BRDYE:1;
5495
            unsigned short PIPE1BRDYE:1;
5496
            unsigned short PIPE2BRDYE:1;
5497
            unsigned short PIPE3BRDYE:1;
5498
            unsigned short PIPE4BRDYE:1;
5499
            unsigned short PIPE5BRDYE:1;
5500
            unsigned short PIPE6BRDYE:1;
5501
            unsigned short PIPE7BRDYE:1;
5502
            unsigned short PIPE8BRDYE:1;
5503
            unsigned short PIPE9BRDYE:1;
5504
            unsigned short :6;
5505
        } BIT;
5506
    } NRDYENB;
5507
    union {
5508
        unsigned short WORD;
5509
        struct {
5510
            unsigned short PIPE0BEMPE:1;
5511
            unsigned short PIPE1BEMPE:1;
5512
            unsigned short PIPE2BEMPE:1;
5513
            unsigned short PIPE3BEMPE:1;
5514
            unsigned short PIPE4BEMPE:1;
5515
            unsigned short PIPE5BEMPE:1;
5516
            unsigned short PIPE6BEMPE:1;
5517
            unsigned short PIPE7BEMPE:1;
5518
            unsigned short PIPE8BEMPE:1;
5519
            unsigned short PIPE9BEMPE:1;
5520
            unsigned short :6;
5521
        } BIT;
5522
    } BEMPENB;
5523
    union {
5524
        unsigned short WORD;
5525
        struct {
5526
            unsigned short :4;
5527
            unsigned short EDGESTS:1;
5528
            unsigned short :1;
5529
            unsigned short BRDYM:1;
5530
            unsigned short :1;
5531
            unsigned short TRNENSEL:1;
5532
            unsigned short :7;
5533
        } BIT;
5534
    } SOFCFG;
5535
    unsigned char wk8[2];
5536
    union {
5537
        unsigned short WORD;
5538
        struct {
5539
            unsigned short CTSQ:3;
5540
            unsigned short VALID:1;
5541
            unsigned short DVSQ:3;
5542
            unsigned short VBSTS:1;
5543
            unsigned short BRDY:1;
5544
            unsigned short NRDY:1;
5545
            unsigned short BEMP:1;
5546
            unsigned short CTRT:1;
5547
            unsigned short DVST:1;
5548
            unsigned short SOFR:1;
5549
            unsigned short RESM:1;
5550
            unsigned short VBINT:1;
5551
        } BIT;
5552
    } INTSTS0;
5553
    union {
5554
        unsigned short WORD;
5555
        struct {
5556
            unsigned short :4;
5557
            unsigned short SACK:1;
5558
            unsigned short SIGN:1;
5559
            unsigned short EOFERR:1;
5560
            unsigned short :4;
5561
            unsigned short ATTCH:1;
5562
            unsigned short DTCH:1;
5563
            unsigned short :1;
5564
            unsigned short BCHG:1;
5565
            unsigned short OVRCR:1;
5566
        } BIT;
5567
    } INTSTS1;
5568
    unsigned char wk9[2];
5569
    union {
5570
        unsigned short WORD;
5571
        struct {
5572
            unsigned short PIPE0BRDY:1;
5573
            unsigned short PIPE1BRDY:1;
5574
            unsigned short PIPE2BRDY:1;
5575
            unsigned short PIPE3BRDY:1;
5576
            unsigned short PIPE4BRDY:1;
5577
            unsigned short PIPE5BRDY:1;
5578
            unsigned short PIPE6BRDY:1;
5579
            unsigned short PIPE7BRDY:1;
5580
            unsigned short PIPE8BRDY:1;
5581
            unsigned short PIPE9BRDY:1;
5582
            unsigned short :6;
5583
        } BIT;
5584
    } BRDYSTS;
5585
    union {
5586
        unsigned short WORD;
5587
        struct {
5588
            unsigned short PIPE0BRDY:1;
5589
            unsigned short PIPE1BRDY:1;
5590
            unsigned short PIPE2BRDY:1;
5591
            unsigned short PIPE3BRDY:1;
5592
            unsigned short PIPE4BRDY:1;
5593
            unsigned short PIPE5BRDY:1;
5594
            unsigned short PIPE6BRDY:1;
5595
            unsigned short PIPE7BRDY:1;
5596
            unsigned short PIPE8BRDY:1;
5597
            unsigned short PIPE9BRDY:1;
5598
            unsigned short :6;
5599
        } BIT;
5600
    } NRDYSTS;
5601
    union {
5602
        unsigned short WORD;
5603
        struct {
5604
            unsigned short PIPE0BENP:1;
5605
            unsigned short PIPE1BENP:1;
5606
            unsigned short PIPE2BENP:1;
5607
            unsigned short PIPE3BENP:1;
5608
            unsigned short PIPE4BENP:1;
5609
            unsigned short PIPE5BENP:1;
5610
            unsigned short PIPE6BENP:1;
5611
            unsigned short PIPE7BENP:1;
5612
            unsigned short PIPE8BENP:1;
5613
            unsigned short PIPE9BENP:1;
5614
            unsigned short :6;
5615
        } BIT;
5616
    } BEMPSTS;
5617
    union {
5618
        unsigned short WORD;
5619
        struct {
5620
            unsigned short FRNM:11;
5621
            unsigned short :3;
5622
            unsigned short CRCE:1;
5623
            unsigned short OVRN:1;
5624
        } BIT;
5625
    } FRMNUM;
5626
    union {
5627
        unsigned short WORD;
5628
        struct {
5629
            unsigned short :15;
5630
            unsigned short DVCHG:1;
5631
        } BIT;
5632
    } DVCHGR;
5633
    union {
5634
        unsigned short WORD;
5635
        struct {
5636
            unsigned short USBADDR:7;
5637
            unsigned short :1;
5638
            unsigned short STSRECOV:4;
5639
            unsigned short :4;
5640
        } BIT;
5641
    } USBADDR;
5642
    unsigned char wk10[2];
5643
    union {
5644
        unsigned short WORD;
5645
        struct {
5646
            unsigned short BMREQUESTTYPE:8;
5647
            unsigned short BREQUEST:8;
5648
        } BIT;
5649
    } USBREQ;
5650
    unsigned short USBVAL;
5651
    unsigned short USBINDX;
5652
    unsigned short USBLENG;
5653
    union {
5654
        unsigned short WORD;
5655
        struct {
5656
            unsigned short :4;
5657
            unsigned short DIR:1;
5658
            unsigned short :2;
5659
            unsigned short SHTNAK:1;
5660
            unsigned short :8;
5661
        } BIT;
5662
    } DCPCFG;
5663
    union {
5664
        unsigned short WORD;
5665
        struct {
5666
            unsigned short MXPS:7;
5667
            unsigned short :5;
5668
            unsigned short DEVSEL:4;
5669
        } BIT;
5670
    } DCPMAXP;
5671
    union {
5672
        unsigned short WORD;
5673
        struct {
5674
            unsigned short PID:2;
5675
            unsigned short CCPL:1;
5676
            unsigned short :2;
5677
            unsigned short PBUSY:1;
5678
            unsigned short SQMON:1;
5679
            unsigned short SQSET:1;
5680
            unsigned short SQCLR:1;
5681
            unsigned short :2;
5682
            unsigned short SUREQCLR:1;
5683
            unsigned short :2;
5684
            unsigned short SUREQ:1;
5685
            unsigned short BSTS:1;
5686
        } BIT;
5687
    } DCPCTR;
5688
    unsigned char wk11[2];
5689
    union {
5690
        unsigned short WORD;
5691
        struct {
5692
            unsigned short PIPESEL:4;
5693
            unsigned short :12;
5694
        } BIT;
5695
    } PIPESEL;
5696
    unsigned char wk12[2];
5697
    union {
5698
        unsigned short WORD;
5699
        struct {
5700
            unsigned short EPNUM:4;
5701
            unsigned short DIR:1;
5702
            unsigned short :2;
5703
            unsigned short SHTNAK:1;
5704
            unsigned short :1;
5705
            unsigned short DBLB:1;
5706
            unsigned short BFRE:1;
5707
            unsigned short :3;
5708
            unsigned short TYPE:2;
5709
        } BIT;
5710
    } PIPECFG;
5711
    unsigned char wk13[2];
5712
    union {
5713
        unsigned short WORD;
5714
        struct {
5715
            unsigned short MXPS:8;
5716
            unsigned short XPS:1;
5717
            unsigned short :3;
5718
            unsigned short DEVSEL:4;
5719
        } BIT;
5720
    } PIPEMAXP;
5721
    union {
5722
        unsigned short WORD;
5723
        struct {
5724
            unsigned short IITV:3;
5725
            unsigned short :9;
5726
            unsigned short IFIS:1;
5727
            unsigned short :3;
5728
        } BIT;
5729
    } PIPEPERI;
5730
    union {
5731
        unsigned short WORD;
5732
        struct {
5733
            unsigned short PID:2;
5734
            unsigned short :3;
5735
            unsigned short PBUSY:1;
5736
            unsigned short SQMON:1;
5737
            unsigned short SQSET:1;
5738
            unsigned short SQCLR:1;
5739
            unsigned short ACLRM:1;
5740
            unsigned short ATREPM:1;
5741
            unsigned short :3;
5742
            unsigned short INBUFM:1;
5743
            unsigned short BSTS:1;
5744
        } BIT;
5745
    } PIPE1CTR;
5746
    union {
5747
        unsigned short WORD;
5748
        struct {
5749
            unsigned short PID:2;
5750
            unsigned short :3;
5751
            unsigned short PBUSY:1;
5752
            unsigned short SQMON:1;
5753
            unsigned short SQSET:1;
5754
            unsigned short SQCLR:1;
5755
            unsigned short ACLRM:1;
5756
            unsigned short ATREPM:1;
5757
            unsigned short :3;
5758
            unsigned short INBUFM:1;
5759
            unsigned short BSTS:1;
5760
        } BIT;
5761
    } PIPE2CTR;
5762
    union {
5763
        unsigned short WORD;
5764
        struct {
5765
            unsigned short PID:2;
5766
            unsigned short :3;
5767
            unsigned short PBUSY:1;
5768
            unsigned short SQMON:1;
5769
            unsigned short SQSET:1;
5770
            unsigned short SQCLR:1;
5771
            unsigned short ACLRM:1;
5772
            unsigned short ATREPM:1;
5773
            unsigned short :3;
5774
            unsigned short INBUFM:1;
5775
            unsigned short BSTS:1;
5776
        } BIT;
5777
    } PIPE3CTR;
5778
    union {
5779
        unsigned short WORD;
5780
        struct {
5781
            unsigned short PID:2;
5782
            unsigned short :3;
5783
            unsigned short PBUSY:1;
5784
            unsigned short SQMON:1;
5785
            unsigned short SQSET:1;
5786
            unsigned short SQCLR:1;
5787
            unsigned short ACLRM:1;
5788
            unsigned short ATREPM:1;
5789
            unsigned short :3;
5790
            unsigned short INBUFM:1;
5791
            unsigned short BSTS:1;
5792
        } BIT;
5793
    } PIPE4CTR;
5794
    union {
5795
        unsigned short WORD;
5796
        struct {
5797
            unsigned short PID:2;
5798
            unsigned short :3;
5799
            unsigned short PBUSY:1;
5800
            unsigned short SQMON:1;
5801
            unsigned short SQSET:1;
5802
            unsigned short SQCLR:1;
5803
            unsigned short ACLRM:1;
5804
            unsigned short ATREPM:1;
5805
            unsigned short :3;
5806
            unsigned short INBUFM:1;
5807
            unsigned short BSTS:1;
5808
        } BIT;
5809
    } PIPE5CTR;
5810
    union {
5811
        unsigned short WORD;
5812
        struct {
5813
            unsigned short PID:2;
5814
            unsigned short :3;
5815
            unsigned short PBUSY:1;
5816
            unsigned short SQMON:1;
5817
            unsigned short SQSET:1;
5818
            unsigned short SQCLR:1;
5819
            unsigned short ACLRM:1;
5820
            unsigned short :5;
5821
            unsigned short BSTS:1;
5822
        } BIT;
5823
    } PIPE6CTR;
5824
    union {
5825
        unsigned short WORD;
5826
        struct {
5827
            unsigned short PID:2;
5828
            unsigned short :3;
5829
            unsigned short PBUSY:1;
5830
            unsigned short SQMON:1;
5831
            unsigned short SQSET:1;
5832
            unsigned short SQCLR:1;
5833
            unsigned short ACLRM:1;
5834
            unsigned short :5;
5835
            unsigned short BSTS:1;
5836
        } BIT;
5837
    } PIPE7CTR;
5838
    union {
5839
        unsigned short WORD;
5840
        struct {
5841
            unsigned short PID:2;
5842
            unsigned short :3;
5843
            unsigned short PBUSY:1;
5844
            unsigned short SQMON:1;
5845
            unsigned short SQSET:1;
5846
            unsigned short SQCLR:1;
5847
            unsigned short ACLRM:1;
5848
            unsigned short :5;
5849
            unsigned short BSTS:1;
5850
        } BIT;
5851
    } PIPE8CTR;
5852
    union {
5853
        unsigned short WORD;
5854
        struct {
5855
            unsigned short PID:2;
5856
            unsigned short :3;
5857
            unsigned short PBUSY:1;
5858
            unsigned short SQMON:1;
5859
            unsigned short SQSET:1;
5860
            unsigned short SQCLR:1;
5861
            unsigned short ACLRM:1;
5862
            unsigned short :5;
5863
            unsigned short BSTS:1;
5864
        } BIT;
5865
    } PIPE9CTR;
5866
    unsigned char wk14[14];
5867
    union {
5868
        unsigned short WORD;
5869
        struct {
5870
            unsigned short :8;
5871
            unsigned short TRCLR:1;
5872
            unsigned short TRENB:1;
5873
            unsigned short :6;
5874
        } BIT;
5875
    } PIPE1TRE;
5876
    unsigned short PIPE1TRN;
5877
    union {
5878
        unsigned short WORD;
5879
        struct {
5880
            unsigned short :8;
5881
            unsigned short TRCLR:1;
5882
            unsigned short TRENB:1;
5883
            unsigned short :6;
5884
        } BIT;
5885
    } PIPE2TRE;
5886
    unsigned short PIPE2TRN;
5887
    union {
5888
        unsigned short WORD;
5889
        struct {
5890
            unsigned short :8;
5891
            unsigned short TRCLR:1;
5892
            unsigned short TRENB:1;
5893
            unsigned short :6;
5894
        } BIT;
5895
    } PIPE3TRE;
5896
    unsigned short PIPE3TRN;
5897
    union {
5898
        unsigned short WORD;
5899
        struct {
5900
            unsigned short :8;
5901
            unsigned short TRCLR:1;
5902
            unsigned short TRENB:1;
5903
            unsigned short :6;
5904
        } BIT;
5905
    } PIPE4TRE;
5906
    unsigned short PIPE4TRN;
5907
    union {
5908
        unsigned short WORD;
5909
        struct {
5910
            unsigned short :8;
5911
            unsigned short TRCLR:1;
5912
            unsigned short TRENB:1;
5913
            unsigned short :6;
5914
        } BIT;
5915
    } PIPE5TRE;
5916
    unsigned short PIPE5TRN;
5917
    unsigned char wk15[44];
5918
    union {
5919
        unsigned short WORD;
5920
        struct {
5921
            unsigned short :6;
5922
            unsigned short USBSPD:2;
5923
            unsigned short :8;
5924
        } BIT;
5925
    } DEVADD0;
5926
    union {
5927
        unsigned short WORD;
5928
        struct {
5929
            unsigned short :6;
5930
            unsigned short USBSPD:2;
5931
            unsigned short :8;
5932
        } BIT;
5933
    } DEVADD1;
5934
    union {
5935
        unsigned short WORD;
5936
        struct {
5937
            unsigned short :6;
5938
            unsigned short USBSPD:2;
5939
            unsigned short :8;
5940
        } BIT;
5941
    } DEVADD2;
5942
    union {
5943
        unsigned short WORD;
5944
        struct {
5945
            unsigned short :6;
5946
            unsigned short USBSPD:2;
5947
            unsigned short :8;
5948
        } BIT;
5949
    } DEVADD3;
5950
    union {
5951
        unsigned short WORD;
5952
        struct {
5953
            unsigned short :6;
5954
            unsigned short USBSPD:2;
5955
            unsigned short :8;
5956
        } BIT;
5957
    } DEVADD4;
5958
    union {
5959
        unsigned short WORD;
5960
        struct {
5961
            unsigned short :6;
5962
            unsigned short USBSPD:2;
5963
            unsigned short :8;
5964
        } BIT;
5965
    } DEVADD5;
5966
};
5967
 
5968
struct st_usb {
5969
    union {
5970
        unsigned long LONG;
5971
        struct {
5972
            unsigned long SRPC0:1;
5973
            unsigned long :3;
5974
            unsigned long FIXPHY0:1;
5975
            unsigned long :3;
5976
            unsigned long SRPC1:1;
5977
            unsigned long :3;
5978
            unsigned long FIXPHY1:1;
5979
            unsigned long :3;
5980
            unsigned long DP0:1;
5981
            unsigned long DM0:1;
5982
            unsigned long :2;
5983
            unsigned long DOVCA0:1;
5984
            unsigned long DOVCB0:1;
5985
            unsigned long :1;
5986
            unsigned long DVBSTS0:1;
5987
            unsigned long DP1:1;
5988
            unsigned long DM1:1;
5989
            unsigned long :2;
5990
            unsigned long DOVCA1:1;
5991
            unsigned long DOVCB1:1;
5992
            unsigned long :1;
5993
            unsigned long DVSTS1:1;
5994
        } BIT;
5995
    } DPUSR0R;
5996
    union {
5997
        unsigned long LONG;
5998
        struct {
5999
            unsigned long DPINTE0:1;
6000
            unsigned long DMINTE0:1;
6001
            unsigned long :2;
6002
            unsigned long DOVRCRAE0:1;
6003
            unsigned long DOVRCRBE0:1;
6004
            unsigned long :1;
6005
            unsigned long DVBSE0:1;
6006
            unsigned long DPINTE1:1;
6007
            unsigned long DMINTE1:1;
6008
            unsigned long :2;
6009
            unsigned long DOVRCRAE1:1;
6010
            unsigned long DOVRCRBE1:1;
6011
            unsigned long :1;
6012
            unsigned long DVBSE1:1;
6013
            unsigned long DPINT0:1;
6014
            unsigned long DMINT0:1;
6015
            unsigned long :2;
6016
            unsigned long DOVRCRA0:1;
6017
            unsigned long DOVRCRB0:1;
6018
            unsigned long :1;
6019
            unsigned long DVBINT0:1;
6020
            unsigned long DPINT1:1;
6021
            unsigned long DMINT1:1;
6022
            unsigned long :2;
6023
            unsigned long DOVRCRA1:1;
6024
            unsigned long DOVRCRB1:1;
6025
            unsigned long :1;
6026
            unsigned long DVBINT1:1;
6027
        } BIT;
6028
    } DPUSR1R;
6029
};
6030
 
6031
struct st_edmac {
6032
    union {
6033
        unsigned long LONG;
6034
        struct {
6035
            unsigned long SWR:1;
6036
            unsigned long :3;
6037
            unsigned long DL:2;
6038
            unsigned long DE:1;
6039
            unsigned long :25;
6040
        } BIT;
6041
    } EDMR;
6042
    unsigned char wk0[4];
6043
    union {
6044
        unsigned long LONG;
6045
        struct {
6046
            unsigned long TR:1;
6047
            unsigned long :31;
6048
        } BIT;
6049
    } EDTRR;
6050
    unsigned char wk1[4];
6051
    union {
6052
        unsigned long LONG;
6053
        struct {
6054
            unsigned long RR:1;
6055
            unsigned long :31;
6056
        } BIT;
6057
    } EDRRR;
6058
    unsigned char wk2[4];
6059
    void *TDLAR;
6060
    unsigned char wk3[4];
6061
    void *RDLAR;
6062
    unsigned char wk4[4];
6063
    union {
6064
        unsigned long LONG;
6065
        struct {
6066
            unsigned long CERF:1;
6067
            unsigned long PRE:1;
6068
            unsigned long RTSF:1;
6069
            unsigned long RTLF:1;
6070
            unsigned long RRF:1;
6071
            unsigned long :2;
6072
            unsigned long RMAF:1;
6073
            unsigned long TRO:1;
6074
            unsigned long CD:1;
6075
            unsigned long DLC:1;
6076
            unsigned long CND:1;
6077
            unsigned long :4;
6078
            unsigned long RFOF:1;
6079
            unsigned long RDE:1;
6080
            unsigned long FR:1;
6081
            unsigned long TFUF:1;
6082
            unsigned long TDE:1;
6083
            unsigned long TC:1;
6084
            unsigned long ECI:1;
6085
            unsigned long ADE:1;
6086
            unsigned long RFCOF:1;
6087
            unsigned long RABT:1;
6088
            unsigned long TABT:1;
6089
            unsigned long :3;
6090
            unsigned long TWB:1;
6091
            unsigned long :1;
6092
        } BIT;
6093
    } EESR;
6094
    unsigned char wk5[4];
6095
    union {
6096
        unsigned long LONG;
6097
        struct {
6098
            unsigned long CERFIP:1;
6099
            unsigned long PREIP:1;
6100
            unsigned long RTSFIP:1;
6101
            unsigned long RTLFIP:1;
6102
            unsigned long RRFIP:1;
6103
            unsigned long :2;
6104
            unsigned long RMAFIP:1;
6105
            unsigned long TROIP:1;
6106
            unsigned long CDIP:1;
6107
            unsigned long DLCIP:1;
6108
            unsigned long CNDIP:1;
6109
            unsigned long :4;
6110
            unsigned long RFOFIP:1;
6111
            unsigned long RDEIP:1;
6112
            unsigned long FRIP:1;
6113
            unsigned long TFUFIP:1;
6114
            unsigned long TDEIP:1;
6115
            unsigned long TCIP:1;
6116
            unsigned long ECIIP:1;
6117
            unsigned long ADEIP:1;
6118
            unsigned long RFCOFIP:1;
6119
            unsigned long RABTIP:1;
6120
            unsigned long TABTIP:1;
6121
            unsigned long :3;
6122
            unsigned long TWBIP:1;
6123
            unsigned long :1;
6124
        } BIT;
6125
    } EESIPR;
6126
    unsigned char wk6[4];
6127
    union {
6128
        unsigned long LONG;
6129
        struct {
6130
            unsigned long CERFCE:1;
6131
            unsigned long PRECE:1;
6132
            unsigned long RTSFCE:1;
6133
            unsigned long RTLFCE:1;
6134
            unsigned long RRFCE:1;
6135
            unsigned long :2;
6136
            unsigned long RMAFCE:1;
6137
            unsigned long TROCE:1;
6138
            unsigned long CDCE:1;
6139
            unsigned long DLCCE:1;
6140
            unsigned long CNDCE:1;
6141
            unsigned long :20;
6142
        } BIT;
6143
    } TRSCER;
6144
    unsigned char wk7[4];
6145
    union {
6146
        unsigned long LONG;
6147
        struct {
6148
            unsigned long MFC:16;
6149
            unsigned long :16;
6150
        } BIT;
6151
    } RMFCR;
6152
    unsigned char wk8[4];
6153
    union {
6154
        unsigned long LONG;
6155
        struct {
6156
            unsigned long TFT:11;
6157
            unsigned long :21;
6158
        } BIT;
6159
    } TFTR;
6160
    unsigned char wk9[4];
6161
    union {
6162
        unsigned long LONG;
6163
        struct {
6164
            unsigned long RFD:5;
6165
            unsigned long :3;
6166
            unsigned long TFD:5;
6167
            unsigned long :19;
6168
        } BIT;
6169
    } FDR;
6170
    unsigned char wk10[4];
6171
    union {
6172
        unsigned long LONG;
6173
        struct {
6174
            unsigned long RNR:1;
6175
            unsigned long RNC:1;
6176
            unsigned long :30;
6177
        } BIT;
6178
    } RMCR;
6179
    unsigned char wk11[8];
6180
    union {
6181
        unsigned long LONG;
6182
        struct {
6183
            unsigned long UNDER:16;
6184
            unsigned long :16;
6185
        } BIT;
6186
    } TFUCR;
6187
    union {
6188
        unsigned long LONG;
6189
        struct {
6190
            unsigned long OVER:16;
6191
            unsigned long :16;
6192
        } BIT;
6193
    } RFOCR;
6194
    union {
6195
        unsigned long LONG;
6196
        struct {
6197
            unsigned long TLB:1;
6198
            unsigned long :31;
6199
        } BIT;
6200
    } IOSR;
6201
    union {
6202
        unsigned long LONG;
6203
        struct {
6204
            unsigned long RFDO:3;
6205
            unsigned long :13;
6206
            unsigned long RFFO:3;
6207
            unsigned long :13;
6208
        } BIT;
6209
    } FCFTR;
6210
    unsigned char wk12[4];
6211
    union {
6212
        unsigned long LONG;
6213
        struct {
6214
            unsigned long PADR:6;
6215
            unsigned long :10;
6216
            unsigned long PADS:2;
6217
            unsigned long :14;
6218
        } BIT;
6219
    } RPADIR;
6220
    union {
6221
        unsigned long LONG;
6222
        struct {
6223
            unsigned long TIS:1;
6224
            unsigned long :3;
6225
            unsigned long TIM:1;
6226
            unsigned long :27;
6227
        } BIT;
6228
    } TRIMD;
6229
    unsigned char wk13[72];
6230
    void *RBWAR;
6231
    void *RDFAR;
6232
    unsigned char wk14[4];
6233
    void *TBRAR;
6234
    void *TDFAR;
6235
};
6236
 
6237
struct st_etherc {
6238
    union {
6239
        unsigned long LONG;
6240
        struct {
6241
            unsigned long PRM:1;
6242
            unsigned long DM:1;
6243
            unsigned long RTM:1;
6244
            unsigned long ILB:1;
6245
            unsigned long :1;
6246
            unsigned long TE:1;
6247
            unsigned long RE:1;
6248
            unsigned long :2;
6249
            unsigned long MPDE:1;
6250
            unsigned long :2;
6251
            unsigned long PRCEF:1;
6252
            unsigned long :3;
6253
            unsigned long TXF:1;
6254
            unsigned long RXF:1;
6255
            unsigned long PFR:1;
6256
            unsigned long ZPE:1;
6257
            unsigned long TPC:1;
6258
            unsigned long :11;
6259
        } BIT;
6260
    } ECMR;
6261
    unsigned char wk0[4];
6262
    union {
6263
        unsigned long LONG;
6264
        struct {
6265
            unsigned long RFL:12;
6266
            unsigned long :20;
6267
        } BIT;
6268
    } RFLR;
6269
    unsigned char wk1[4];
6270
    union {
6271
        unsigned long LONG;
6272
        struct {
6273
            unsigned long ICD:1;
6274
            unsigned long MPD:1;
6275
            unsigned long LCHNG:1;
6276
            unsigned long :1;
6277
            unsigned long PSRTO:1;
6278
            unsigned long BFR:1;
6279
            unsigned long :26;
6280
        } BIT;
6281
    } ECSR;
6282
    unsigned char wk2[4];
6283
    union {
6284
        unsigned long LONG;
6285
        struct {
6286
            unsigned long ICDIP:1;
6287
            unsigned long MPDIP:1;
6288
            unsigned long LCHNGIP:1;
6289
            unsigned long :1;
6290
            unsigned long PSRTOIP:1;
6291
            unsigned long BFSIPR:1;
6292
            unsigned long :26;
6293
        } BIT;
6294
    } ECSIPR;
6295
    unsigned char wk3[4];
6296
    union {
6297
        unsigned long LONG;
6298
        struct {
6299
            unsigned long MDC:1;
6300
            unsigned long MMD:1;
6301
            unsigned long MDO:1;
6302
            unsigned long MDI:1;
6303
            unsigned long :28;
6304
        } BIT;
6305
    } PIR;
6306
    unsigned char wk4[4];
6307
    union {
6308
        unsigned long LONG;
6309
        struct {
6310
            unsigned long LMON:1;
6311
            unsigned long :31;
6312
        } BIT;
6313
    } PSR;
6314
    unsigned char wk5[20];
6315
    union {
6316
        unsigned long LONG;
6317
        struct {
6318
            unsigned long RMD:20;
6319
            unsigned long :12;
6320
        } BIT;
6321
    } RDMLR;
6322
    unsigned char wk6[12];
6323
    union {
6324
        unsigned long LONG;
6325
        struct {
6326
            unsigned long IPG:5;
6327
            unsigned long :27;
6328
        } BIT;
6329
    } IPGR;
6330
    union {
6331
        unsigned long LONG;
6332
        struct {
6333
            unsigned long AP:16;
6334
            unsigned long :16;
6335
        } BIT;
6336
    } APR;
6337
    union {
6338
        unsigned long LONG;
6339
        struct {
6340
            unsigned long MP:16;
6341
            unsigned long :16;
6342
        } BIT;
6343
    } MPR;
6344
    unsigned char wk7[4];
6345
    union {
6346
        unsigned long LONG;
6347
        struct {
6348
            unsigned long RPAUSE:8;
6349
            unsigned long :24;
6350
        } BIT;
6351
    } RFCF;
6352
    union {
6353
        unsigned long LONG;
6354
        struct {
6355
            unsigned long TPAUSE:16;
6356
            unsigned long :16;
6357
        } BIT;
6358
    } TPAUSER;
6359
    union {
6360
        unsigned long LONG;
6361
        struct {
6362
            unsigned long TXP:8;
6363
            unsigned long :24;
6364
        } BIT;
6365
    } TPAUSECR;
6366
    union {
6367
        unsigned long LONG;
6368
        struct {
6369
            unsigned long BCF:16;
6370
            unsigned long :16;
6371
        } BIT;
6372
    } BCFRR;
6373
    unsigned char wk8[80];
6374
    unsigned long MAHR;
6375
    unsigned char wk9[4];
6376
    union {
6377
        unsigned long LONG;
6378
        struct {
6379
            unsigned long MA:16;
6380
            unsigned long :16;
6381
        } BIT;
6382
    } MALR;
6383
    unsigned char wk10[4];
6384
    unsigned long TROCR;
6385
    unsigned long CDCR;
6386
    unsigned long LCCR;
6387
    unsigned long CNDCR;
6388
    unsigned char wk11[4];
6389
    unsigned long CEFCR;
6390
    unsigned long FRECR;
6391
    unsigned long TSFRCR;
6392
    unsigned long TLFRCR;
6393
    unsigned long RFCR;
6394
    unsigned long MAFCR;
6395
};
6396
 
6397
enum enum_ir {
6398
IR_BSC_BUSERR=16,
6399
IR_FCU_FIFERR=21,IR_FCU_FRDYI=23,
6400
IR_ICU_SWINT=27,
6401
IR_CMT0_CMI0,
6402
IR_CMT1_CMI1,
6403
IR_CMT2_CMI2,
6404
IR_CMT3_CMI3,
6405
IR_ETHER_EINT,
6406
IR_USB0_D0FIFO0=36,IR_USB0_D1FIFO0,IR_USB0_USBI0,
6407
IR_USB1_D0FIFO1=40,IR_USB1_D1FIFO1,IR_USB1_USBI1,
6408
IR_RSPI0_SPEI0=44,IR_RSPI0_SPRI0,IR_RSPI0_SPTI0,IR_RSPI0_SPII0,
6409
IR_RSPI1_SPEI1,IR_RSPI1_SPRI1,IR_RSPI1_SPTI1,IR_RSPI1_SPII1,
6410
IR_CAN0_ERS0=56,IR_CAN0_RXF0,IR_CAN0_TXF0,IR_CAN0_RXM0,IR_CAN0_TXM0,
6411
IR_RTC_PRD=62,IR_RTC_CUP,
6412
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,
6413
IR_USB_USBR0=90,IR_USB_USBR1,
6414
IR_RTC_ALM,
6415
IR_WDT_WOVI=96,
6416
IR_AD0_ADI0=98,
6417
IR_AD1_ADI1,
6418
IR_S12AD_ADI=102,
6419
IR_MTU0_TGIA0=114,IR_MTU0_TGIB0,IR_MTU0_TGIC0,IR_MTU0_TGID0,IR_MTU0_TCIV0,IR_MTU0_TGIE0,IR_MTU0_TGIF0,
6420
IR_MTU1_TGIA1,IR_MTU1_TGIB1,IR_MTU1_TCIV1,IR_MTU1_TCIU1,
6421
IR_MTU2_TGIA2,IR_MTU2_TGIB2,IR_MTU2_TCIV2,IR_MTU2_TCIU2,
6422
IR_MTU3_TGIA3,IR_MTU3_TGIB3,IR_MTU3_TGIC3,IR_MTU3_TGID3,IR_MTU3_TCIV3,
6423
IR_MTU4_TGIA4,IR_MTU4_TGIB4,IR_MTU4_TGIC4,IR_MTU4_TGID4,IR_MTU4_TCIV4,
6424
IR_MTU5_TGIU5,IR_MTU5_TGIV5,IR_MTU5_TGIW5,
6425
IR_MTU6_TGIA6,IR_MTU6_TGIB6,IR_MTU6_TGIC6,IR_MTU6_TGID6,IR_MTU6_TCIV6,IR_MTU6_TGIE6,IR_MTU6_TGIF6,
6426
IR_MTU7_TGIA7,IR_MTU7_TGIB7,IR_MTU7_TCIV7,IR_MTU7_TCIU7,
6427
IR_MTU8_TGIA8,IR_MTU8_TGIB8,IR_MTU8_TCIV8,IR_MTU8_TCIU8,
6428
IR_MTU9_TGIA9,IR_MTU9_TGIB9,IR_MTU9_TGIC9,IR_MTU9_TGID9,IR_MTU9_TCIV9,
6429
IR_MTU10_TGIA10,IR_MTU10_TGIB10,IR_MTU10_TGIC10,IR_MTU10_TGID10,IR_MTU10_TCIV10,
6430
IR_MTU11_TGIU11,IR_MTU11_TGIV11,IR_MTU11_TGIW11,
6431
IR_POE_OEI1,IR_POE_OEI2,IR_POE_OEI3,IR_POE_OEI4,
6432
IR_TMR0_CMIA0,IR_TMR0_CMIB0,IR_TMR0_OVI0,
6433
IR_TMR1_CMIA1,IR_TMR1_CMIB1,IR_TMR1_OVI1,
6434
IR_TMR2_CMIA2,IR_TMR2_CMIB2,IR_TMR2_OVI2,
6435
IR_TMR3_CMIA3,IR_TMR3_CMIB3,IR_TMR3_OVI3,
6436
IR_DMACA_DMAC0I=198,IR_DMACA_DMAC1I,IR_DMACA_DMAC2I,IR_DMACA_DMAC3I,
6437
IR_EXDMAC_EXDMAC0I,IR_EXDMAC_EXDMAC1I,
6438
IR_SCI0_ERI0=214,IR_SCI0_RXI0,IR_SCI0_TXI0,IR_SCI0_TEI0,
6439
IR_SCI1_ERI1,IR_SCI1_RXI1,IR_SCI1_TXI1,IR_SCI1_TEI1,
6440
IR_SCI2_ERI2,IR_SCI2_RXI2,IR_SCI2_TXI2,IR_SCI2_TEI2,
6441
IR_SCI3_ERI3,IR_SCI3_RXI3,IR_SCI3_TXI3,IR_SCI3_TEI3,
6442
IR_SCI5_ERI5=234,IR_SCI5_RXI5,IR_SCI5_TXI5,IR_SCI5_TEI5,
6443
IR_SCI6_ERI6,IR_SCI6_RXI6,IR_SCI6_TXI6,IR_SCI6_TEI6,
6444
IR_RIIC0_ICEEI0=246,IR_RIIC0_ICRXI0,IR_RIIC0_ICTXI0,IR_RIIC0_ICTEI0,
6445
IR_RIIC1_ICEEI1,IR_RIIC1_ICRXI1,IR_RIIC1_ICTXI1,IR_RIIC1_ICTEI1
6446
};
6447
 
6448
enum enum_dtce {
6449
DTCE_BSC_BUSERR=16,
6450
DTCE_FCU_FIFERR=21,DTCE_FCU_FRDYI=23,
6451
DTCE_ICU_SWINT=27,
6452
DTCE_CMT0_CMI0,
6453
DTCE_CMT1_CMI1,
6454
DTCE_CMT2_CMI2,
6455
DTCE_CMT3_CMI3,
6456
DTCE_ETHER_EINT,
6457
DTCE_USB0_D0FIFO0=36,DTCE_USB0_D1FIFO0,DTCE_USB0_USBI0,
6458
DTCE_USB1_D0FIFO1=40,DTCE_USB1_D1FIFO1,DTCE_USB1_USBI1,
6459
DTCE_RSPI0_SPEI0=44,DTCE_RSPI0_SPRI0,DTCE_RSPI0_SPTI0,DTCE_RSPI0_SPII0,
6460
DTCE_RSPI1_SPEI1,DTCE_RSPI1_SPRI1,DTCE_RSPI1_SPTI1,DTCE_RSPI1_SPII1,
6461
DTCE_CAN0_ERS0=56,DTCE_CAN0_RXF0,DTCE_CAN0_TXF0,DTCE_CAN0_RXM0,DTCE_CAN0_TXM0,
6462
DTCE_RTC_PRD=62,DTCE_RTC_CUP,
6463
DTCE_ICU_IRQ0,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,
6464
DTCE_USB_USBR0=90,DTCE_USB_USBR1,
6465
DTCE_RTC_ALM,
6466
DTCE_WDT_WOVI=96,
6467
DTCE_AD0_ADI0=98,
6468
DTCE_AD1_ADI1,
6469
DTCE_S12AD_ADI=102,
6470
DTCE_MTU0_TGIA0=114,DTCE_MTU0_TGIB0,DTCE_MTU0_TGIC0,DTCE_MTU0_TGID0,DTCE_MTU0_TCIV0,DTCE_MTU0_TGIE0,DTCE_MTU0_TGIF0,
6471
DTCE_MTU1_TGIA1,DTCE_MTU1_TGIB1,DTCE_MTU1_TCIV1,DTCE_MTU1_TCIU1,
6472
DTCE_MTU2_TGIA2,DTCE_MTU2_TGIB2,DTCE_MTU2_TCIV2,DTCE_MTU2_TCIU2,
6473
DTCE_MTU3_TGIA3,DTCE_MTU3_TGIB3,DTCE_MTU3_TGIC3,DTCE_MTU3_TGID3,DTCE_MTU3_TCIV3,
6474
DTCE_MTU4_TGIA4,DTCE_MTU4_TGIB4,DTCE_MTU4_TGIC4,DTCE_MTU4_TGID4,DTCE_MTU4_TCIV4,
6475
DTCE_MTU5_TGIU5,DTCE_MTU5_TGIV5,DTCE_MTU5_TGIW5,
6476
DTCE_MTU6_TGIA6,DTCE_MTU6_TGIB6,DTCE_MTU6_TGIC6,DTCE_MTU6_TGID6,DTCE_MTU6_TCIV6,DTCE_MTU6_TGIE6,DTCE_MTU6_TGIF6,
6477
DTCE_MTU7_TGIA7,DTCE_MTU7_TGIB7,DTCE_MTU7_TCIV7,DTCE_MTU7_TCIU7,
6478
DTCE_MTU8_TGIA8,DTCE_MTU8_TGIB8,DTCE_MTU8_TCIV8,DTCE_MTU8_TCIU8,
6479
DTCE_MTU9_TGIA9,DTCE_MTU9_TGIB9,DTCE_MTU9_TGIC9,DTCE_MTU9_TGID9,DTCE_MTU9_TCIV9,
6480
DTCE_MTU10_TGIA10,DTCE_MTU10_TGIB10,DTCE_MTU10_TGIC10,DTCE_MTU10_TGID10,DTCE_MTU10_TCIV10,
6481
DTCE_MTU11_TGIU11,DTCE_MTU11_TGIV11,DTCE_MTU11_TGIW11,
6482
DTCE_POE_OEI1,DTCE_POE_OEI2,DTCE_POE_OEI3,DTCE_POE_OEI4,
6483
DTCE_TMR0_CMIA0,DTCE_TMR0_CMIB0,DTCE_TMR0_OVI0,
6484
DTCE_TMR1_CMIA1,DTCE_TMR1_CMIB1,DTCE_TMR1_OVI1,
6485
DTCE_TMR2_CMIA2,DTCE_TMR2_CMIB2,DTCE_TMR2_OVI2,
6486
DTCE_TMR3_CMIA3,DTCE_TMR3_CMIB3,DTCE_TMR3_OVI3,
6487
DTCE_DMACA_DMAC0I=198,DTCE_DMACA_DMAC1I,DTCE_DMACA_DMAC2I,DTCE_DMACA_DMAC3I,
6488
DTCE_EXDMAC_EXDMAC0I,DTCE_EXDMAC_EXDMAC1I,
6489
DTCE_SCI0_ERI0=214,DTCE_SCI0_RXI0,DTCE_SCI0_TXI0,DTCE_SCI0_TEI0,
6490
DTCE_SCI1_ERI1,DTCE_SCI1_RXI1,DTCE_SCI1_TXI1,DTCE_SCI1_TEI1,
6491
DTCE_SCI2_ERI2,DTCE_SCI2_RXI2,DTCE_SCI2_TXI2,DTCE_SCI2_TEI2,
6492
DTCE_SCI3_ERI3,DTCE_SCI3_RXI3,DTCE_SCI3_TXI3,DTCE_SCI3_TEI3,
6493
DTCE_SCI5_ERI5=234,DTCE_SCI5_RXI5,DTCE_SCI5_TXI5,DTCE_SCI5_TEI5,
6494
DTCE_SCI6_ERI6,DTCE_SCI6_RXI6,DTCE_SCI6_TXI6,DTCE_SCI6_TEI6,
6495
DTCE_RIIC0_ICEEI0=246,DTCE_RIIC0_ICRXI0,DTCE_RIIC0_ICTXI0,DTCE_RIIC0_ICTEI0,
6496
DTCE_RIIC1_ICEEI1,DTCE_RIIC1_ICRXI1,DTCE_RIIC1_ICTXI1,DTCE_RIIC1_ICTEI1
6497
};
6498
 
6499
enum enum_ier {
6500
IER_BSC_BUSERR=0x02,
6501
IER_FCU_FIFERR=0x02,IER_FCU_FRDYI=0x02,
6502
IER_ICU_SWINT=0x03,
6503
IER_CMT0_CMI0=0x03,
6504
IER_CMT1_CMI1=0x03,
6505
IER_CMT2_CMI2=0x03,
6506
IER_CMT3_CMI3=0x03,
6507
IER_ETHER_EINT=0x04,
6508
IER_USB0_D0FIFO0=0x04,IER_USB0_D1FIFO0=0x04,IER_USB0_USBI0=0x04,
6509
IER_USB1_D0FIFO1=0x05,IER_USB1_D1FIFO1=0x05,IER_USB1_USBI1=0x05,
6510
IER_RSPI0_SPEI0=0x05,IER_RSPI0_SPRI0=0x05,IER_RSPI0_SPTI0=0x05,IER_RSPI0_SPII0=0x05,
6511
IER_RSPI1_SPEI1=0x06,IER_RSPI1_SPRI1=0x06,IER_RSPI1_SPTI1=0x06,IER_RSPI1_SPII1=0x06,
6512
IER_CAN0_ERS0=0x07,IER_CAN0_RXF0=0x07,IER_CAN0_TXF0=0x07,IER_CAN0_RXM0=0x07,IER_CAN0_TXM0=0x07,
6513
IER_RTC_PRD=0x07,IER_RTC_CUP=0x07,
6514
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,
6515
IER_USB_USBR0=0x0B,IER_USB_USBR1=0x0B,
6516
IER_RTC_ALM=0x0B,
6517
IER_WDT_WOVI=0x0C,
6518
IER_AD0_ADI0=0x0C,
6519
IER_AD1_ADI1=0x0C,
6520
IER_S12AD_ADI=0x0C,
6521
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,
6522
IER_MTU1_TGIA1=0x0F,IER_MTU1_TGIB1=0x0F,IER_MTU1_TCIV1=0x0F,IER_MTU1_TCIU1=0x0F,
6523
IER_MTU2_TGIA2=0x0F,IER_MTU2_TGIB2=0x0F,IER_MTU2_TCIV2=0x0F,IER_MTU2_TCIU2=0x10,
6524
IER_MTU3_TGIA3=0x10,IER_MTU3_TGIB3=0x10,IER_MTU3_TGIC3=0x10,IER_MTU3_TGID3=0x10,IER_MTU3_TCIV3=0x10,
6525
IER_MTU4_TGIA4=0x10,IER_MTU4_TGIB4=0x10,IER_MTU4_TGIC4=0x11,IER_MTU4_TGID4=0x11,IER_MTU4_TCIV4=0x11,
6526
IER_MTU5_TGIU5=0x11,IER_MTU5_TGIV5=0x11,IER_MTU5_TGIW5=0x10,
6527
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,
6528
IER_MTU7_TGIA7=0x12,IER_MTU7_TGIB7=0x12,IER_MTU7_TCIV7=0x12,IER_MTU7_TCIU7=0x13,
6529
IER_MTU8_TGIA8=0x13,IER_MTU8_TGIB8=0x13,IER_MTU8_TCIV8=0x13,IER_MTU8_TCIU8=0x13,
6530
IER_MTU9_TGIA9=0x13,IER_MTU9_TGIB9=0x13,IER_MTU9_TGIC9=0x13,IER_MTU9_TGID9=0x14,IER_MTU9_TCIV9=0x14,
6531
IER_MTU10_TGIA10=0x14,IER_MTU10_TGIB10=0x14,IER_MTU10_TGIC10=0x14,IER_MTU10_TGID10=0x14,IER_MTU10_TCIV10=0x14,
6532
IER_MTU11_TGIU11=0x14,IER_MTU11_TGIV11=0x15,IER_MTU11_TGIW11=0x15,
6533
IER_POE_OEI1=0x15,IER_POE_OEI2=0x15,IER_POE_OEI3=0x15,IER_POE_OEI4=0x15,
6534
IER_TMR0_CMIA0=0x15,IER_TMR0_CMIB0=0x15,IER_TMR0_OVI0=0x16,
6535
IER_TMR1_CMIA1=0x16,IER_TMR1_CMIB1=0x16,IER_TMR1_OVI1=0x16,
6536
IER_TMR2_CMIA2=0x16,IER_TMR2_CMIB2=0x16,IER_TMR2_OVI2=0x16,
6537
IER_TMR3_CMIA3=0x16,IER_TMR3_CMIB3=0x17,IER_TMR3_OVI3=0x17,
6538
IER_DMACA_DMAC0I=0x18,IER_DMACA_DMAC1I=0x18,IER_DMACA_DMAC2I=0x19,IER_DMACA_DMAC3I=0x19,
6539
IER_EXDMAC_EXDMAC0I=0x19,IER_EXDMAC_EXDMAC1I=0x19,
6540
IER_SCI0_ERI0=0x1A,IER_SCI0_RXI0=0x1A,IER_SCI0_TXI0=0x1B,IER_SCI0_TEI0=0x1B,
6541
IER_SCI1_ERI1=0x1B,IER_SCI1_RXI1=0x1B,IER_SCI1_TXI1=0x1B,IER_SCI1_TEI1=0x1B,
6542
IER_SCI2_ERI2=0x1B,IER_SCI2_RXI2=0x1B,IER_SCI2_TXI2=0x1C,IER_SCI2_TEI2=0x1C,
6543
IER_SCI3_ERI3=0x1C,IER_SCI3_RXI3=0x1C,IER_SCI3_TXI3=0x1C,IER_SCI3_TEI3=0x1C,
6544
IER_SCI5_ERI5=0x1D,IER_SCI5_RXI5=0x1D,IER_SCI5_TXI5=0x1D,IER_SCI5_TEI5=0x1D,
6545
IER_SCI6_ERI6=0x1D,IER_SCI6_RXI6=0x1D,IER_SCI6_TXI6=0x1E,IER_SCI6_TEI6=0x1E,
6546
IER_RIIC0_ICEEI0=0x1E,IER_RIIC0_ICRXI0=0x1E,IER_RIIC0_ICTXI0=0x1F,IER_RIIC0_ICTEI0=0x1F,
6547
IER_RIIC1_ICEEI1=0x1F,IER_RIIC1_ICRXI1=0x1F,IER_RIIC1_ICTXI1=0x1F,IER_RIIC1_ICTEI1=0x1F
6548
};
6549
 
6550
enum enum_ipr {
6551
IPR_BSC_BUSERR=0x00,
6552
IPR_FCU_FIFERR=0x01,IPR_FCU_FRDYI=0x02,
6553
IPR_ICU_SWINT=0x03,
6554
IPR_CMT0_CMI0=0x04,
6555
IPR_CMT1_CMI1=0x05,
6556
IPR_CMT2_CMI2=0x06,
6557
IPR_CMT3_CMI3=0x07,
6558
IPR_ETHER_EINT=0x08,
6559
IPR_USB0_D0FIFO0=0x0C,IPR_USB0_D1FIFO0=0x0D,IPR_USB0_USBI0=0x0E,
6560
IPR_USB1_D0FIFO1=0x10,IPR_USB1_D1FIFO1=0x11,IPR_USB1_USBI1=0x12,
6561
IPR_RSPI0_SPEI0=0x14,IPR_RSPI0_SPRI0=0x14,IPR_RSPI0_SPTI0=0x14,IPR_RSPI0_SPII0=0x14,
6562
IPR_RSPI1_SPEI1=0x15,IPR_RSPI1_SPRI1=0x15,IPR_RSPI1_SPTI1=0x15,IPR_RSPI1_SPII1=0x15,
6563
IPR_CAN0_ERS0=0x18,IPR_CAN0_RXF0=0x18,IPR_CAN0_TXF0=0x18,IPR_CAN0_RXM0=0x18,IPR_CAN0_TXM0=0x18,
6564
IPR_RTC_PRD=0x1E,IPR_RTC_CUP=0x1F,
6565
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,
6566
IPR_USB_USBR0=0x3A,IPR_USB_USBR1=0x3B,
6567
IPR_RTC_ALM=0x3C,
6568
IPR_WDT_WOVI=0x40,
6569
IPR_AD0_ADI0=0x44,
6570
IPR_AD1_ADI1=0x45,
6571
IPR_S12AD_ADI=0x48,
6572
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,
6573
IPR_MTU1_TGIA1=0x53,IPR_MTU1_TGIB1=0x53,IPR_MTU1_TCIV1=0x54,IPR_MTU1_TCIU1=0x54,
6574
IPR_MTU2_TGIA2=0x55,IPR_MTU2_TGIB2=0x55,IPR_MTU2_TCIV2=0x56,IPR_MTU2_TCIU2=0x56,
6575
IPR_MTU3_TGIA3=0x57,IPR_MTU3_TGIB3=0x57,IPR_MTU3_TGIC3=0x57,IPR_MTU3_TGID3=0x57,IPR_MTU3_TCIV3=0x58,
6576
IPR_MTU4_TGIA4=0x59,IPR_MTU4_TGIB4=0x59,IPR_MTU4_TGIC4=0x59,IPR_MTU4_TGID4=0x59,IPR_MTU4_TCIV4=0x5A,
6577
IPR_MTU5_TGIU5=0x5B,IPR_MTU5_TGIV5=0x5B,IPR_MTU5_TGIW5=0x5B,
6578
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,
6579
IPR_MTU7_TGIA7=0x5E,IPR_MTU7_TGIB7=0x5E,IPR_MTU7_TCIV7=0x5F,IPR_MTU7_TCIU7=0x5F,
6580
IPR_MTU8_TGIA8=0x60,IPR_MTU8_TGIB8=0x60,IPR_MTU8_TCIV8=0x61,IPR_MTU8_TCIU8=0x61,
6581
IPR_MTU9_TGIA9=0x62,IPR_MTU9_TGIB9=0x62,IPR_MTU9_TGIC9=0x62,IPR_MTU9_TGID9=0x62,IPR_MTU9_TCIV9=0x63,
6582
IPR_MTU10_TGIA10=0x64,IPR_MTU10_TGIB10=0x64,IPR_MTU10_TGIC10=0x64,IPR_MTU10_TGID10=0x64,IPR_MTU10_TCIV10=0x65,
6583
IPR_MTU11_TGIU11=0x66,IPR_MTU11_TGIV11=0x66,IPR_MTU11_TGIW11=0x66,
6584
IPR_POE_OEI1=0x67,IPR_POE_OEI2=0x67,IPR_POE_OEI3=0x67,IPR_POE_OEI4=0x67,
6585
IPR_TMR0_CMIA0=0x68,IPR_TMR0_CMIB0=0x68,IPR_TMR0_OVI0=0x68,
6586
IPR_TMR1_CMIA1=0x69,IPR_TMR1_CMIB1=0x69,IPR_TMR1_OVI1=0x69,
6587
IPR_TMR2_CMIA2=0x6A,IPR_TMR2_CMIB2=0x6A,IPR_TMR2_OVI2=0x6A,
6588
IPR_TMR3_CMIA3=0x6B,IPR_TMR3_CMIB3=0x6B,IPR_TMR3_OVI3=0x6B,
6589
IPR_DMACA_DMAC0I=0x70,IPR_DMACA_DMAC1I=0x71,IPR_DMACA_DMAC2I=0x72,IPR_DMACA_DMAC3I=0x73,
6590
IPR_EXDMAC_EXDMAC0I=0x74,IPR_EXDMAC_EXDMAC1I=0x75,
6591
IPR_SCI0_ERI0=0x80,IPR_SCI0_RXI0=0x80,IPR_SCI0_TXI0=0x80,IPR_SCI0_TEI0=0x80,
6592
IPR_SCI1_ERI1=0x81,IPR_SCI1_RXI1=0x81,IPR_SCI1_TXI1=0x81,IPR_SCI1_TEI1=0x81,
6593
IPR_SCI2_ERI2=0x82,IPR_SCI2_RXI2=0x82,IPR_SCI2_TXI2=0x82,IPR_SCI2_TEI2=0x82,
6594
IPR_SCI3_ERI3=0x83,IPR_SCI3_RXI3=0x83,IPR_SCI3_TXI3=0x83,IPR_SCI3_TEI3=0x83,
6595
IPR_SCI5_ERI5=0x85,IPR_SCI5_RXI5=0x85,IPR_SCI5_TXI5=0x85,IPR_SCI5_TEI5=0x85,
6596
IPR_SCI6_ERI6=0x86,IPR_SCI6_RXI6=0x86,IPR_SCI6_TXI6=0x86,IPR_SCI6_TEI6=0x86,
6597
IPR_RIIC0_ICEEI0=0x88,IPR_RIIC0_ICRXI0=0x89,IPR_RIIC0_ICTXI0=0x8A,IPR_RIIC0_ICTEI0=0x8B,
6598
IPR_RIIC1_ICEEI1=0x8C,IPR_RIIC1_ICRXI1=0x8D,IPR_RIIC1_ICTXI1=0x8E,IPR_RIIC1_ICTEI1=0x8F,
6599
IPR_BSC_=0x00,
6600
IPR_CMT0_=0x04,
6601
IPR_CMT1_=0x05,
6602
IPR_CMT2_=0x06,
6603
IPR_CMT3_=0x07,
6604
IPR_ETHER_=0x08,
6605
IPR_RSPI0_=0x14,
6606
IPR_RSPI1_=0x15,
6607
IPR_CAN0_=0x18,
6608
IPR_WDT_=0x40,
6609
IPR_AD0_=0x44,
6610
IPR_AD1_=0x45,
6611
IPR_S12AD_=0x48,
6612
IPR_MTU1_TGI=0x53,
6613
IPR_MTU1_TCI=0x54,
6614
IPR_MTU2_TGI=0x55,
6615
IPR_MTU2_TCI=0x56,
6616
IPR_MTU3_TGI=0x57,
6617
IPR_MTU4_TGI=0x59,
6618
IPR_MTU5_=0x5B,
6619
IPR_MTU5_TGI=0x5B,
6620
IPR_MTU7_TGI=0x5E,
6621
IPR_MTU7_TCI=0x5F,
6622
IPR_MTU8_TGI=0x60,
6623
IPR_MTU8_TCI=0x61,
6624
IPR_MTU9_TGI=0x62,
6625
IPR_MTU10_TGI=0x64,
6626
IPR_MTU11_=0x66,
6627
IPR_MTU11_TGI=0x66,
6628
IPR_POE_=0x67,
6629
IPR_POE_OEI=0x67,
6630
IPR_TMR0_=0x68,
6631
IPR_TMR1_=0x69,
6632
IPR_TMR2_=0x6A,
6633
IPR_TMR3_=0x6B,
6634
IPR_SCI0_=0x80,
6635
IPR_SCI1_=0x81,
6636
IPR_SCI2_=0x82,
6637
IPR_SCI3_=0x83,
6638
IPR_SCI5_=0x85,
6639
IPR_SCI6_=0x86
6640
};
6641
 
6642
#define IEN_BSC_BUSERR          IEN0
6643
#define IEN_FCU_FIFERR          IEN5
6644
#define IEN_FCU_FRDYI           IEN7
6645
#define IEN_ICU_SWINT           IEN3
6646
#define IEN_CMT0_CMI0           IEN4
6647
#define IEN_CMT1_CMI1           IEN5
6648
#define IEN_CMT2_CMI2           IEN6
6649
#define IEN_CMT3_CMI3           IEN7
6650
#define IEN_ETHER_EINT          IEN0
6651
#define IEN_USB0_D0FIFO0        IEN4
6652
#define IEN_USB0_D1FIFO0        IEN5
6653
#define IEN_USB0_USBI0          IEN6
6654
#define IEN_USB1_D0FIFO1        IEN0
6655
#define IEN_USB1_D1FIFO1        IEN1
6656
#define IEN_USB1_USBI1          IEN2
6657
#define IEN_RSPI0_SPEI0         IEN4
6658
#define IEN_RSPI0_SPRI0         IEN5
6659
#define IEN_RSPI0_SPTI0         IEN6
6660
#define IEN_RSPI0_SPII0         IEN7
6661
#define IEN_RSPI1_SPEI1         IEN0
6662
#define IEN_RSPI1_SPRI1         IEN1
6663
#define IEN_RSPI1_SPTI1         IEN2
6664
#define IEN_RSPI1_SPII1         IEN3
6665
#define IEN_CAN0_ERS0           IEN0
6666
#define IEN_CAN0_RXF0           IEN1
6667
#define IEN_CAN0_TXF0           IEN2
6668
#define IEN_CAN0_RXM0           IEN3
6669
#define IEN_CAN0_TXM0           IEN4
6670
#define IEN_RTC_PRD                     IEN6
6671
#define IEN_RTC_CUP                     IEN7
6672
#define IEN_ICU_IRQ0            IEN0
6673
#define IEN_ICU_IRQ1            IEN1
6674
#define IEN_ICU_IRQ2            IEN2
6675
#define IEN_ICU_IRQ3            IEN3
6676
#define IEN_ICU_IRQ4            IEN4
6677
#define IEN_ICU_IRQ5            IEN5
6678
#define IEN_ICU_IRQ6            IEN6
6679
#define IEN_ICU_IRQ7            IEN7
6680
#define IEN_ICU_IRQ8            IEN0
6681
#define IEN_ICU_IRQ9            IEN1
6682
#define IEN_ICU_IRQ10           IEN2
6683
#define IEN_ICU_IRQ11           IEN3
6684
#define IEN_ICU_IRQ12           IEN4
6685
#define IEN_ICU_IRQ13           IEN5
6686
#define IEN_ICU_IRQ14           IEN6
6687
#define IEN_ICU_IRQ15           IEN7
6688
#define IEN_USB_USBR0           IEN2
6689
#define IEN_USB_USBR1           IEN3
6690
#define IEN_RTC_ALM                     IEN4
6691
#define IEN_WDT_WOVI            IEN0
6692
#define IEN_AD0_ADI0            IEN2
6693
#define IEN_AD1_ADI1            IEN3
6694
#define IEN_S12AD_ADI           IEN6
6695
#define IEN_MTU0_TGIA0          IEN2
6696
#define IEN_MTU0_TGIB0          IEN3
6697
#define IEN_MTU0_TGIC0          IEN4
6698
#define IEN_MTU0_TGID0          IEN5
6699
#define IEN_MTU0_TCIV0          IEN6
6700
#define IEN_MTU0_TGIE0          IEN7
6701
#define IEN_MTU0_TGIF0          IEN0
6702
#define IEN_MTU1_TGIA1          IEN1
6703
#define IEN_MTU1_TGIB1          IEN2
6704
#define IEN_MTU1_TCIV1          IEN3
6705
#define IEN_MTU1_TCIU1          IEN4
6706
#define IEN_MTU2_TGIA2          IEN5
6707
#define IEN_MTU2_TGIB2          IEN6
6708
#define IEN_MTU2_TCIV2          IEN7
6709
#define IEN_MTU2_TCIU2          IEN0
6710
#define IEN_MTU3_TGIA3          IEN1
6711
#define IEN_MTU3_TGIB3          IEN2
6712
#define IEN_MTU3_TGIC3          IEN3
6713
#define IEN_MTU3_TGID3          IEN4
6714
#define IEN_MTU3_TCIV3          IEN5
6715
#define IEN_MTU4_TGIA4          IEN6
6716
#define IEN_MTU4_TGIB4          IEN7
6717
#define IEN_MTU4_TGIC4          IEN0
6718
#define IEN_MTU4_TGID4          IEN1
6719
#define IEN_MTU4_TCIV4          IEN2
6720
#define IEN_MTU5_TGIU5          IEN3
6721
#define IEN_MTU5_TGIV5          IEN4
6722
#define IEN_MTU5_TGIW5          IEN7
6723
#define IEN_MTU6_TGIA6          IEN6
6724
#define IEN_MTU6_TGIB6          IEN7
6725
#define IEN_MTU6_TGIC6          IEN0
6726
#define IEN_MTU6_TGID6          IEN1
6727
#define IEN_MTU6_TCIV6          IEN2
6728
#define IEN_MTU6_TGIE6          IEN3
6729
#define IEN_MTU6_TGIF6          IEN4
6730
#define IEN_MTU7_TGIA7          IEN5
6731
#define IEN_MTU7_TGIB7          IEN6
6732
#define IEN_MTU7_TCIV7          IEN7
6733
#define IEN_MTU7_TCIU7          IEN0
6734
#define IEN_MTU8_TGIA8          IEN1
6735
#define IEN_MTU8_TGIB8          IEN2
6736
#define IEN_MTU8_TCIV8          IEN3
6737
#define IEN_MTU8_TCIU8          IEN4
6738
#define IEN_MTU9_TGIA9          IEN5
6739
#define IEN_MTU9_TGIB9          IEN6
6740
#define IEN_MTU9_TGIC9          IEN7
6741
#define IEN_MTU9_TGID9          IEN0
6742
#define IEN_MTU9_TCIV9          IEN1
6743
#define IEN_MTU10_TGIA10        IEN2
6744
#define IEN_MTU10_TGIB10        IEN3
6745
#define IEN_MTU10_TGIC10        IEN4
6746
#define IEN_MTU10_TGID10        IEN5
6747
#define IEN_MTU10_TCIV10        IEN6
6748
#define IEN_MTU11_TGIU11        IEN7
6749
#define IEN_MTU11_TGIV11        IEN0
6750
#define IEN_MTU11_TGIW11        IEN1
6751
#define IEN_POE_OEI1            IEN2
6752
#define IEN_POE_OEI2            IEN3
6753
#define IEN_POE_OEI3            IEN4
6754
#define IEN_POE_OEI4            IEN5
6755
#define IEN_TMR0_CMIA0          IEN6
6756
#define IEN_TMR0_CMIB0          IEN7
6757
#define IEN_TMR0_OVI0           IEN0
6758
#define IEN_TMR1_CMIA1          IEN1
6759
#define IEN_TMR1_CMIB1          IEN2
6760
#define IEN_TMR1_OVI1           IEN3
6761
#define IEN_TMR2_CMIA2          IEN4
6762
#define IEN_TMR2_CMIB2          IEN5
6763
#define IEN_TMR2_OVI2           IEN6
6764
#define IEN_TMR3_CMIA3          IEN7
6765
#define IEN_TMR3_CMIB3          IEN0
6766
#define IEN_TMR3_OVI3           IEN1
6767
#define IEN_DMACA_DMAC0I        IEN6
6768
#define IEN_DMACA_DMAC1I        IEN7
6769
#define IEN_DMACA_DMAC2I        IEN0
6770
#define IEN_DMACA_DMAC3I        IEN1
6771
#define IEN_EXDMAC_EXDMAC0I     IEN2
6772
#define IEN_EXDMAC_EXDMAC1I     IEN3
6773
#define IEN_SCI0_ERI0           IEN6
6774
#define IEN_SCI0_RXI0           IEN7
6775
#define IEN_SCI0_TXI0           IEN0
6776
#define IEN_SCI0_TEI0           IEN1
6777
#define IEN_SCI1_ERI1           IEN2
6778
#define IEN_SCI1_RXI1           IEN3
6779
#define IEN_SCI1_TXI1           IEN4
6780
#define IEN_SCI1_TEI1           IEN5
6781
#define IEN_SCI2_ERI2           IEN6
6782
#define IEN_SCI2_RXI2           IEN7
6783
#define IEN_SCI2_TXI2           IEN0
6784
#define IEN_SCI2_TEI2           IEN1
6785
#define IEN_SCI3_ERI3           IEN2
6786
#define IEN_SCI3_RXI3           IEN3
6787
#define IEN_SCI3_TXI3           IEN4
6788
#define IEN_SCI3_TEI3           IEN5
6789
#define IEN_SCI5_ERI5           IEN2
6790
#define IEN_SCI5_RXI5           IEN3
6791
#define IEN_SCI5_TXI5           IEN4
6792
#define IEN_SCI5_TEI5           IEN5
6793
#define IEN_SCI6_ERI6           IEN6
6794
#define IEN_SCI6_RXI6           IEN7
6795
#define IEN_SCI6_TXI6           IEN0
6796
#define IEN_SCI6_TEI6           IEN1
6797
#define IEN_RIIC0_ICEEI0        IEN6
6798
#define IEN_RIIC0_ICRXI0        IEN7
6799
#define IEN_RIIC0_ICTXI0        IEN0
6800
#define IEN_RIIC0_ICTEI0        IEN1
6801
#define IEN_RIIC1_ICEEI1        IEN2
6802
#define IEN_RIIC1_ICRXI1        IEN3
6803
#define IEN_RIIC1_ICTXI1        IEN4
6804
#define IEN_RIIC1_ICTEI1        IEN5
6805
 
6806
#define VECT_BSC_BUSERR         16
6807
#define VECT_FCU_FIFERR         21
6808
#define VECT_FCU_FRDYI          23
6809
#define VECT_ICU_SWINT          27
6810
#define VECT_CMT0_CMI0          28
6811
#define VECT_CMT1_CMI1          29
6812
#define VECT_CMT2_CMI2          30
6813
#define VECT_CMT3_CMI3          31
6814
#define VECT_ETHER_EINT         32
6815
#define VECT_USB0_D0FIFO0       36
6816
#define VECT_USB0_D1FIFO0       37
6817
#define VECT_USB0_USBI0         38
6818
#define VECT_USB1_D0FIFO1       40
6819
#define VECT_USB1_D1FIFO1       41
6820
#define VECT_USB1_USBI1         42
6821
#define VECT_RSPI0_SPEI0        44
6822
#define VECT_RSPI0_SPRI0        45
6823
#define VECT_RSPI0_SPTI0        46
6824
#define VECT_RSPI0_SPII0        47
6825
#define VECT_RSPI1_SPEI1        48
6826
#define VECT_RSPI1_SPRI1        49
6827
#define VECT_RSPI1_SPTI1        50
6828
#define VECT_RSPI1_SPII1        51
6829
#define VECT_CAN0_ERS0          56
6830
#define VECT_CAN0_RXF0          57
6831
#define VECT_CAN0_TXF0          58
6832
#define VECT_CAN0_RXM0          59
6833
#define VECT_CAN0_TXM0          60
6834
#define VECT_RTC_PRD            62
6835
#define VECT_RTC_CUP            63
6836
#define VECT_ICU_IRQ0           64
6837
#define VECT_ICU_IRQ1           65
6838
#define VECT_ICU_IRQ2           66
6839
#define VECT_ICU_IRQ3           67
6840
#define VECT_ICU_IRQ4           68
6841
#define VECT_ICU_IRQ5           69
6842
#define VECT_ICU_IRQ6           70
6843
#define VECT_ICU_IRQ7           71
6844
#define VECT_ICU_IRQ8           72
6845
#define VECT_ICU_IRQ9           73
6846
#define VECT_ICU_IRQ10          74
6847
#define VECT_ICU_IRQ11          75
6848
#define VECT_ICU_IRQ12          76
6849
#define VECT_ICU_IRQ13          77
6850
#define VECT_ICU_IRQ14          78
6851
#define VECT_ICU_IRQ15          79
6852
#define VECT_USB_USBR0          90
6853
#define VECT_USB_USBR1          91
6854
#define VECT_RTC_ALM            92
6855
#define VECT_WDT_WOVI           96
6856
#define VECT_AD0_ADI0           98
6857
#define VECT_AD1_ADI1           99
6858
#define VECT_S12AD_ADI          102
6859
#define VECT_MTU0_TGIA0         114
6860
#define VECT_MTU0_TGIB0         115
6861
#define VECT_MTU0_TGIC0         116
6862
#define VECT_MTU0_TGID0         117
6863
#define VECT_MTU0_TCIV0         118
6864
#define VECT_MTU0_TGIE0         119
6865
#define VECT_MTU0_TGIF0         120
6866
#define VECT_MTU1_TGIA1         121
6867
#define VECT_MTU1_TGIB1         122
6868
#define VECT_MTU1_TCIV1         123
6869
#define VECT_MTU1_TCIU1         124
6870
#define VECT_MTU2_TGIA2         125
6871
#define VECT_MTU2_TGIB2         126
6872
#define VECT_MTU2_TCIV2         127
6873
#define VECT_MTU2_TCIU2         128
6874
#define VECT_MTU3_TGIA3         129
6875
#define VECT_MTU3_TGIB3         130
6876
#define VECT_MTU3_TGIC3         131
6877
#define VECT_MTU3_TGID3         132
6878
#define VECT_MTU3_TCIV3         133
6879
#define VECT_MTU4_TGIA4         134
6880
#define VECT_MTU4_TGIB4         135
6881
#define VECT_MTU4_TGIC4         136
6882
#define VECT_MTU4_TGID4         137
6883
#define VECT_MTU4_TCIV4         138
6884
#define VECT_MTU5_TGIU5         139
6885
#define VECT_MTU5_TGIV5         140
6886
#define VECT_MTU5_TGIW5         141
6887
#define VECT_MTU6_TGIA6         142
6888
#define VECT_MTU6_TGIB6         143
6889
#define VECT_MTU6_TGIC6         144
6890
#define VECT_MTU6_TGID6         145
6891
#define VECT_MTU6_TCIV6         146
6892
#define VECT_MTU6_TGIE6         147
6893
#define VECT_MTU6_TGIF6         148
6894
#define VECT_MTU7_TGIA7         149
6895
#define VECT_MTU7_TGIB7         150
6896
#define VECT_MTU7_TCIV7         151
6897
#define VECT_MTU7_TCIU7         152
6898
#define VECT_MTU8_TGIA8         153
6899
#define VECT_MTU8_TGIB8         154
6900
#define VECT_MTU8_TCIV8         155
6901
#define VECT_MTU8_TCIU8         156
6902
#define VECT_MTU9_TGIA9         157
6903
#define VECT_MTU9_TGIB9         158
6904
#define VECT_MTU9_TGIC9         159
6905
#define VECT_MTU9_TGID9         160
6906
#define VECT_MTU9_TCIV9         161
6907
#define VECT_MTU10_TGIA10       162
6908
#define VECT_MTU10_TGIB10       163
6909
#define VECT_MTU10_TGIC10       164
6910
#define VECT_MTU10_TGID10       165
6911
#define VECT_MTU10_TCIV10       166
6912
#define VECT_MTU11_TGIU11       167
6913
#define VECT_MTU11_TGIV11       168
6914
#define VECT_MTU11_TGIW11       169
6915
#define VECT_POE_OEI1           170
6916
#define VECT_POE_OEI2           171
6917
#define VECT_POE_OEI3           172
6918
#define VECT_POE_OEI4           173
6919
#define VECT_TMR0_CMIA0         174
6920
#define VECT_TMR0_CMIB0         175
6921
#define VECT_TMR0_OVI0          176
6922
#define VECT_TMR1_CMIA1         177
6923
#define VECT_TMR1_CMIB1         178
6924
#define VECT_TMR1_OVI1          179
6925
#define VECT_TMR2_CMIA2         180
6926
#define VECT_TMR2_CMIB2         181
6927
#define VECT_TMR2_OVI2          182
6928
#define VECT_TMR3_CMIA3         183
6929
#define VECT_TMR3_CMIB3         184
6930
#define VECT_TMR3_OVI3          185
6931
#define VECT_DMACA_DMAC0I       198
6932
#define VECT_DMACA_DMAC1I       199
6933
#define VECT_DMACA_DMAC2I       200
6934
#define VECT_DMACA_DMAC3I       201
6935
#define VECT_EXDMAC_EXDMAC0I    202
6936
#define VECT_EXDMAC_EXDMAC1I    203
6937
#define VECT_SCI0_ERI0          214
6938
#define VECT_SCI0_RXI0          215
6939
#define VECT_SCI0_TXI0          216
6940
#define VECT_SCI0_TEI0          217
6941
#define VECT_SCI1_ERI1          218
6942
#define VECT_SCI1_RXI1          219
6943
#define VECT_SCI1_TXI1          220
6944
#define VECT_SCI1_TEI1          221
6945
#define VECT_SCI2_ERI2          222
6946
#define VECT_SCI2_RXI2          223
6947
#define VECT_SCI2_TXI2          224
6948
#define VECT_SCI2_TEI2          225
6949
#define VECT_SCI3_ERI3          226
6950
#define VECT_SCI3_RXI3          227
6951
#define VECT_SCI3_TXI3          228
6952
#define VECT_SCI3_TEI3          229
6953
#define VECT_SCI5_ERI5          234
6954
#define VECT_SCI5_RXI5          235
6955
#define VECT_SCI5_TXI5          236
6956
#define VECT_SCI5_TEI5          237
6957
#define VECT_SCI6_ERI6          238
6958
#define VECT_SCI6_RXI6          239
6959
#define VECT_SCI6_TXI6          240
6960
#define VECT_SCI6_TEI6          241
6961
#define VECT_RIIC0_ICEEI0       246
6962
#define VECT_RIIC0_ICRXI0       247
6963
#define VECT_RIIC0_ICTXI0       248
6964
#define VECT_RIIC0_ICTEI0       249
6965
#define VECT_RIIC1_ICEEI1       250
6966
#define VECT_RIIC1_ICRXI1       251
6967
#define VECT_RIIC1_ICTXI1       252
6968
#define VECT_RIIC1_ICTEI1       253
6969
 
6970
#define MSTP_EXDMAC     SYSTEM.MSTPCRA.BIT.MSTPA29
6971
#define MSTP_DMACA      SYSTEM.MSTPCRA.BIT.MSTPA28
6972
#define MSTP_DTC        SYSTEM.MSTPCRA.BIT.MSTPA28
6973
#define MSTP_AD0        SYSTEM.MSTPCRA.BIT.MSTPA23
6974
#define MSTP_AD1        SYSTEM.MSTPCRA.BIT.MSTPA22
6975
#define MSTP_DA         SYSTEM.MSTPCRA.BIT.MSTPA19
6976
#define MSTP_S12AD      SYSTEM.MSTPCRA.BIT.MSTPA17
6977
#define MSTP_CMT0       SYSTEM.MSTPCRA.BIT.MSTPA15
6978
#define MSTP_CMT1       SYSTEM.MSTPCRA.BIT.MSTPA15
6979
#define MSTP_CMT2       SYSTEM.MSTPCRA.BIT.MSTPA14
6980
#define MSTP_CMT3       SYSTEM.MSTPCRA.BIT.MSTPA14
6981
#define MSTP_PPG0       SYSTEM.MSTPCRA.BIT.MSTPA11
6982
#define MSTP_PPG1       SYSTEM.MSTPCRA.BIT.MSTPA10
6983
#define MSTP_MTUA       SYSTEM.MSTPCRA.BIT.MSTPA9
6984
#define MSTP_MTU0       SYSTEM.MSTPCRA.BIT.MSTPA9
6985
#define MSTP_MTU1       SYSTEM.MSTPCRA.BIT.MSTPA9
6986
#define MSTP_MTU2       SYSTEM.MSTPCRA.BIT.MSTPA9
6987
#define MSTP_MTU3       SYSTEM.MSTPCRA.BIT.MSTPA9
6988
#define MSTP_MTU4       SYSTEM.MSTPCRA.BIT.MSTPA9
6989
#define MSTP_MTU5       SYSTEM.MSTPCRA.BIT.MSTPA9
6990
#define MSTP_MTUB       SYSTEM.MSTPCRA.BIT.MSTPA8
6991
#define MSTP_MTU6       SYSTEM.MSTPCRA.BIT.MSTPA8
6992
#define MSTP_MTU7       SYSTEM.MSTPCRA.BIT.MSTPA8
6993
#define MSTP_MTU8       SYSTEM.MSTPCRA.BIT.MSTPA8
6994
#define MSTP_MTU9       SYSTEM.MSTPCRA.BIT.MSTPA8
6995
#define MSTP_MTU10      SYSTEM.MSTPCRA.BIT.MSTPA8
6996
#define MSTP_MTU11      SYSTEM.MSTPCRA.BIT.MSTPA8
6997
#define MSTP_TMR0       SYSTEM.MSTPCRA.BIT.MSTPA5
6998
#define MSTP_TMR1       SYSTEM.MSTPCRA.BIT.MSTPA5
6999
#define MSTP_TMR01      SYSTEM.MSTPCRA.BIT.MSTPA5
7000
#define MSTP_TMR2       SYSTEM.MSTPCRA.BIT.MSTPA4
7001
#define MSTP_TMR3       SYSTEM.MSTPCRA.BIT.MSTPA4
7002
#define MSTP_TMR23      SYSTEM.MSTPCRA.BIT.MSTPA4
7003
#define MSTP_SCI0       SYSTEM.MSTPCRB.BIT.MSTPB31
7004
#define MSTP_SMCI0      SYSTEM.MSTPCRB.BIT.MSTPB31
7005
#define MSTP_SCI1       SYSTEM.MSTPCRB.BIT.MSTPB30
7006
#define MSTP_SMCI1      SYSTEM.MSTPCRB.BIT.MSTPB30
7007
#define MSTP_SCI2       SYSTEM.MSTPCRB.BIT.MSTPB29
7008
#define MSTP_SMCI2      SYSTEM.MSTPCRB.BIT.MSTPB29
7009
#define MSTP_SCI3       SYSTEM.MSTPCRB.BIT.MSTPB28
7010
#define MSTP_SMCI3      SYSTEM.MSTPCRB.BIT.MSTPB28
7011
#define MSTP_SCI5       SYSTEM.MSTPCRB.BIT.MSTPB26
7012
#define MSTP_SMCI5      SYSTEM.MSTPCRB.BIT.MSTPB26
7013
#define MSTP_SCI6       SYSTEM.MSTPCRB.BIT.MSTPB25
7014
#define MSTP_SMCI6      SYSTEM.MSTPCRB.BIT.MSTPB25
7015
#define MSTP_CRC        SYSTEM.MSTPCRB.BIT.MSTPB23
7016
#define MSTP_RIIC0      SYSTEM.MSTPCRB.BIT.MSTPB21
7017
#define MSTP_RIIC1      SYSTEM.MSTPCRB.BIT.MSTPB20
7018
#define MSTP_USB0       SYSTEM.MSTPCRB.BIT.MSTPB19
7019
#define MSTP_USB1       SYSTEM.MSTPCRB.BIT.MSTPB18
7020
#define MSTP_RSPI0      SYSTEM.MSTPCRB.BIT.MSTPB17
7021
#define MSTP_RSPI1      SYSTEM.MSTPCRB.BIT.MSTPB16
7022
#define MSTP_EDMAC      SYSTEM.MSTPCRB.BIT.MSTPB15
7023
#define MSTP_CAN0       SYSTEM.MSTPCRB.BIT.MSTPB0
7024
#define MSTP_RAM0       SYSTEM.MSTPCRC.BIT.MSTPC1
7025
#define MSTP_RAM1       SYSTEM.MSTPCRC.BIT.MSTPC0
7026
 
7027
#define __IR( x )               ICU.IR[ IR ## x ].BIT.IR
7028
#define  _IR( x )               __IR( x )
7029
#define   IR( x , y )   _IR( _ ## x ## _ ## y )
7030
#define __DTCE( x )             ICU.DTCER[ DTCE ## x ].BIT.DTCE
7031
#define  _DTCE( x )             __DTCE( x )
7032
#define   DTCE( x , y ) _DTCE( _ ## x ## _ ## y )
7033
#define __IEN( x )              ICU.IER[ IER ## x ].BIT.IEN ## x
7034
#define  _IEN( x )              __IEN( x )
7035
#define   IEN( x , y )  _IEN( _ ## x ## _ ## y )
7036
#define __IPR( x )              ICU.IPR[ IPR ## x ].BIT.IPR
7037
#define  _IPR( x )              __IPR( x )
7038
#define   IPR( x , y )  _IPR( _ ## x ## _ ## y )
7039
#define __VECT( x )             VECT ## x
7040
#define  _VECT( x )             __VECT( x )
7041
#define   VECT( x , y ) _VECT( _ ## x ## _ ## y )
7042
#define __MSTP( x )             MSTP ## x
7043
#define  _MSTP( x )             __MSTP( x )
7044
#define   MSTP( x )             _MSTP( _ ## x )
7045
 
7046
#define SYSTEM (*(volatile struct st_system *)0x80000)
7047
#define BSC (*(volatile struct st_bsc *)0x81300)
7048
#define DMAC0 (*(volatile struct st_dmac0 *)0x82000)
7049
#define DMAC1 (*(volatile struct st_dmac1 *)0x82040)
7050
#define DMAC2 (*(volatile struct st_dmac1 *)0x82080)
7051
#define DMAC3 (*(volatile struct st_dmac1 *)0x820C0)
7052
#define DMAC (*(volatile struct st_dmac *)0x82200)
7053
#define DTC (*(volatile struct st_dtc *)0x82400)
7054
#define EXDMAC0 (*(volatile struct st_exdmac0 *)0x82800)
7055
#define EXDMAC1 (*(volatile struct st_exdmac0 *)0x82840)
7056
#define EXDMAC (*(volatile struct st_exdmac *)0x82A00)
7057
#define ICU (*(volatile struct st_icu *)0x87000)
7058
#define CMT (*(volatile struct st_cmt *)0x88000)
7059
#define CMT0 (*(volatile struct st_cmt0 *)0x88002)
7060
#define CMT1 (*(volatile struct st_cmt0 *)0x88008)
7061
#define CMT2 (*(volatile struct st_cmt0 *)0x88012)
7062
#define CMT3 (*(volatile struct st_cmt0 *)0x88018)
7063
#define WDT (*(volatile union un_wdt *)0x88028)
7064
#define IWDT (*(volatile struct st_iwdt *)0x88030)
7065
#define AD0 (*(volatile struct st_ad *)0x88040)
7066
#define AD1 (*(volatile struct st_ad *)0x88060)
7067
#define DA (*(volatile struct st_da *)0x880C0)
7068
#define PPG0 (*(volatile struct st_ppg0 *)0x881E6)
7069
#define PPG1 (*(volatile struct st_ppg1 *)0x881F0)
7070
#define TMR0 (*(volatile struct st_tmr0 *)0x88200)
7071
#define TMR1 (*(volatile struct st_tmr1 *)0x88201)
7072
#define TMR01 (*(volatile struct st_tmr01 *)0x88204)
7073
#define TMR2 (*(volatile struct st_tmr0 *)0x88210)
7074
#define TMR3 (*(volatile struct st_tmr1 *)0x88211)
7075
#define TMR23 (*(volatile struct st_tmr01 *)0x88214)
7076
#define SCI0 (*(volatile struct st_sci *)0x88240)
7077
#define SCI1 (*(volatile struct st_sci *)0x88248)
7078
#define SCI2 (*(volatile struct st_sci *)0x88250)
7079
#define SCI3 (*(volatile struct st_sci *)0x88258)
7080
#define SCI5 (*(volatile struct st_sci *)0x88268)
7081
#define SCI6 (*(volatile struct st_sci *)0x88270)
7082
#define SMCI0 (*(volatile struct st_smci *)0x88240)
7083
#define SMCI1 (*(volatile struct st_smci *)0x88248)
7084
#define SMCI2 (*(volatile struct st_smci *)0x88250)
7085
#define SMCI3 (*(volatile struct st_smci *)0x88258)
7086
#define SMCI5 (*(volatile struct st_smci *)0x88268)
7087
#define SMCI6 (*(volatile struct st_smci *)0x88270)
7088
#define CRC (*(volatile struct st_crc *)0x88280)
7089
#define RIIC0 (*(volatile struct st_riic *)0x88300)
7090
#define RIIC1 (*(volatile struct st_riic *)0x88320)
7091
#define RSPI0 (*(volatile struct st_rspi *)0x88380)
7092
#define RSPI1 (*(volatile struct st_rspi *)0x883A0)
7093
#define MTUA (*(volatile struct st_mtu *)0x8860A)
7094
#define MTU0 (*(volatile struct st_mtu0 *)0x88700)
7095
#define MTU1 (*(volatile struct st_mtu1 *)0x88780)
7096
#define MTU2 (*(volatile struct st_mtu2 *)0x88800)
7097
#define MTU3 (*(volatile struct st_mtu3 *)0x88600)
7098
#define MTU4 (*(volatile struct st_mtu4 *)0x88600)
7099
#define MTU5 (*(volatile struct st_mtu5 *)0x88880)
7100
#define POE (*(volatile struct st_poe *)0x88900)
7101
#define MTUB (*(volatile struct st_mtu *)0x88A0A)
7102
#define MTU6 (*(volatile struct st_mtu0 *)0x88B00)
7103
#define MTU7 (*(volatile struct st_mtu1 *)0x88B80)
7104
#define MTU8 (*(volatile struct st_mtu2 *)0x88C00)
7105
#define MTU9 (*(volatile struct st_mtu3 *)0x88A00)
7106
#define MTU10 (*(volatile struct st_mtu4 *)0x88A00)
7107
#define MTU11 (*(volatile struct st_mtu5 *)0x88C80)
7108
#define S12AD (*(volatile struct st_s12ad *)0x89000)
7109
#define PORT0 (*(volatile struct st_port0 *)0x8C000)
7110
#define PORT1 (*(volatile struct st_port1 *)0x8C001)
7111
#define PORT2 (*(volatile struct st_port2 *)0x8C002)
7112
#define PORT3 (*(volatile struct st_port3 *)0x8C003)
7113
#define PORT4 (*(volatile struct st_port4 *)0x8C004)
7114
#define PORT5 (*(volatile struct st_port5 *)0x8C005)
7115
#define PORT6 (*(volatile struct st_port6 *)0x8C006)
7116
#define PORT7 (*(volatile struct st_port7 *)0x8C007)
7117
#define PORT8 (*(volatile struct st_port8 *)0x8C008)
7118
#define PORT9 (*(volatile struct st_port9 *)0x8C009)
7119
#define PORTA (*(volatile struct st_porta *)0x8C00A)
7120
#define PORTB (*(volatile struct st_portb *)0x8C00B)
7121
#define PORTC (*(volatile struct st_portc *)0x8C00C)
7122
#define PORTD (*(volatile struct st_portd *)0x8C00D)
7123
#define PORTE (*(volatile struct st_porte *)0x8C00E)
7124
#define PORTF (*(volatile struct st_portf *)0x8C00F)
7125
#define PORTG (*(volatile struct st_portg *)0x8C010)
7126
#define IOPORT (*(volatile struct st_ioport *)0x8C100)
7127
#define FLASH (*(volatile struct st_flash *)0x8C288)
7128
#define RTC (*(volatile struct st_rtc *)0x8C400)
7129
#define CAN0 (*(volatile struct st_can *)0x90200)
7130
#define USB0 (*(volatile struct st_usb0 *)0xA0000)
7131
#define USB1 (*(volatile struct st_usb0 *)0xA0200)
7132
#define USB (*(volatile struct st_usb *)0xA0400)
7133
#define EDMAC (*(volatile struct st_edmac *)0xC0000)
7134
#define ETHERC (*(volatile struct st_etherc *)0xC0100)
7135
 
7136
#elif __RX_BIG_ENDIAN__         /*Big endian*/
7137
 
7138
struct st_system {
7139
    union {
7140
        unsigned short WORD;
7141
        struct {
7142
            unsigned short :8;
7143
            unsigned short MDE:1;
7144
            unsigned short :5;
7145
            unsigned short MD1:1;
7146
            unsigned short MD0:1;
7147
        } BIT;
7148
    } MDMONR;
7149
    union {
7150
        unsigned short WORD;
7151
        struct {
7152
            unsigned short :9;
7153
            unsigned short UBTS:1;
7154
            unsigned short :1;
7155
            unsigned short BOTS:1;
7156
            unsigned short BSW:2;
7157
            unsigned short EXB:1;
7158
            unsigned short IROM:1;
7159
        } BIT;
7160
    } MDSR;
7161
    unsigned char wk0[2];
7162
    union {
7163
        unsigned short WORD;
7164
        struct {
7165
            unsigned short KEY:8;
7166
            unsigned short :6;
7167
            unsigned short EXBE:1;
7168
            unsigned short ROME:1;
7169
        } BIT;
7170
    } SYSCR0;
7171
    union {
7172
        unsigned short WORD;
7173
        struct {
7174
            unsigned short :15;
7175
            unsigned short RAME:1;
7176
        } BIT;
7177
    } SYSCR1;
7178
    unsigned char wk1[2];
7179
    union {
7180
        unsigned short WORD;
7181
        struct {
7182
            unsigned short SSBY:1;
7183
            unsigned short OPE:1;
7184
            unsigned short :1;
7185
            unsigned short STS:5;
7186
            unsigned short :8;
7187
        } BIT;
7188
    } SBYCR;
7189
    unsigned char wk2[2];
7190
    union {
7191
        unsigned long LONG;
7192
        struct {
7193
            unsigned long ACSE:1;
7194
            unsigned long :1;
7195
            unsigned long MSTPA29:1;
7196
            unsigned long MSTPA28:1;
7197
            unsigned long :4;
7198
            unsigned long MSTPA23:1;
7199
            unsigned long MSTPA22:1;
7200
            unsigned long :2;
7201
            unsigned long MSTPA19:1;
7202
            unsigned long :1;
7203
            unsigned long MSTPA17:1;
7204
            unsigned long :1;
7205
            unsigned long MSTPA15:1;
7206
            unsigned long MSTPA14:1;
7207
            unsigned long :2;
7208
            unsigned long MSTPA11:1;
7209
            unsigned long MSTPA10:1;
7210
            unsigned long MSTPA9:1;
7211
            unsigned long MSTPA8:1;
7212
            unsigned long :2;
7213
            unsigned long MSTPA5:1;
7214
            unsigned long MSTPA4:1;
7215
            unsigned long :4;
7216
        } BIT;
7217
    } MSTPCRA;
7218
    union {
7219
        unsigned long LONG;
7220
        struct {
7221
            unsigned long MSTPB31:1;
7222
            unsigned long MSTPB30:1;
7223
            unsigned long MSTPB29:1;
7224
            unsigned long MSTPB28:1;
7225
            unsigned long :1;
7226
            unsigned long MSTPB26:1;
7227
            unsigned long MSTPB25:1;
7228
            unsigned long :1;
7229
            unsigned long MSTPB23:1;
7230
            unsigned long :1;
7231
            unsigned long MSTPB21:1;
7232
            unsigned long MSTPB20:1;
7233
            unsigned long MSTPB19:1;
7234
            unsigned long MSTPB18:1;
7235
            unsigned long MSTPB17:1;
7236
            unsigned long MSTPB16:1;
7237
            unsigned long MSTPB15:1;
7238
            unsigned long :14;
7239
            unsigned long MSTPB0:1;
7240
        } BIT;
7241
    } MSTPCRB;
7242
    union {
7243
        unsigned long LONG;
7244
        struct {
7245
            unsigned long :30;
7246
            unsigned long MSTPC1:1;
7247
            unsigned long MSTPC0:1;
7248
        } BIT;
7249
    } MSTPCRC;
7250
    unsigned char wk3[4];
7251
    union {
7252
        unsigned long LONG;
7253
        struct {
7254
            unsigned long :4;
7255
            unsigned long ICK:4;
7256
            unsigned long PSTOP1:1;
7257
            unsigned long PSTOP0:1;
7258
            unsigned long :2;
7259
            unsigned long BCK:4;
7260
            unsigned long :4;
7261
            unsigned long PCK:4;
7262
            unsigned long :8;
7263
        } BIT;
7264
    } SCKCR;
7265
    unsigned char wk4[12];
7266
    union {
7267
        unsigned char BYTE;
7268
        struct {
7269
            unsigned char :7;
7270
            unsigned char BCLKDIV:1;
7271
        } BIT;
7272
    } BCKCR;
7273
    unsigned char wk5[15];
7274
    union {
7275
        unsigned short WORD;
7276
        struct {
7277
            unsigned short KEY:8;
7278
            unsigned short OSTDE:1;
7279
            unsigned short OSTDF:1;
7280
            unsigned short :6;
7281
        } BIT;
7282
    } OSTDCR;
7283
    unsigned char wk6[49726];
7284
    union {
7285
        unsigned char BYTE;
7286
        struct {
7287
            unsigned char DPSBY:1;
7288
            unsigned char IOKEEP:1;
7289
            unsigned char RAMCUT2:1;
7290
            unsigned char RAMCUT1:1;
7291
            unsigned char :3;
7292
            unsigned char RAMCUT0:1;
7293
        } BIT;
7294
    } DPSBYCR;
7295
    union {
7296
        unsigned char BYTE;
7297
        struct {
7298
            unsigned char :2;
7299
            unsigned char WTSTS:6;
7300
        } BIT;
7301
    } DPSWCR;
7302
    union {
7303
        unsigned char BYTE;
7304
        struct {
7305
            unsigned char DNMIE:1;
7306
            unsigned char DUSBE:1;
7307
            unsigned char DRTCE:1;
7308
            unsigned char DLVDE:1;
7309
            unsigned char DIRQ3E:1;
7310
            unsigned char DIRQ2E:1;
7311
            unsigned char DIRQ1E:1;
7312
            unsigned char DIRQ0E:1;
7313
        } BIT;
7314
    } DPSIER;
7315
    union {
7316
        unsigned char BYTE;
7317
        struct {
7318
            unsigned char DNMIF:1;
7319
            unsigned char DUSBF:1;
7320
            unsigned char DRTCFF:1;
7321
            unsigned char DLVDF:1;
7322
            unsigned char DIRQ3F:1;
7323
            unsigned char DIRQ2F:1;
7324
            unsigned char DIRQ1F:1;
7325
            unsigned char DIRQ0F:1;
7326
        } BIT;
7327
    } DPSIFR;
7328
    union {
7329
        unsigned char BYTE;
7330
        struct {
7331
            unsigned char DNMIEG:1;
7332
            unsigned char :3;
7333
            unsigned char DIRQ3EG:1;
7334
            unsigned char DIRQ2EG:1;
7335
            unsigned char DIRQ1EG:1;
7336
            unsigned char DIRQ0EG:1;
7337
        } BIT;
7338
    } DPSIEGR;
7339
    union {
7340
        unsigned char BYTE;
7341
        struct {
7342
            unsigned char DPSRSTF:1;
7343
            unsigned char :4;
7344
            unsigned char LVD2F:1;
7345
            unsigned char LVD1F:1;
7346
            unsigned char PORF:1;
7347
        } BIT;
7348
    } RSTSR;
7349
    unsigned char wk7[4];
7350
    union {
7351
        unsigned char BYTE;
7352
        struct {
7353
            unsigned char :7;
7354
            unsigned char SUBSTOP:1;
7355
        } BIT;
7356
    } SUBOSCCR;
7357
    unsigned char wk8[1];
7358
    unsigned char LVDKEYR;
7359
    union {
7360
        unsigned char BYTE;
7361
        struct {
7362
            unsigned char LVD2E:1;
7363
            unsigned char LVD2RI:1;
7364
            unsigned char :2;
7365
            unsigned char LVD1E:1;
7366
            unsigned char LVD1RI:1;
7367
            unsigned char :2;
7368
        } BIT;
7369
    } LVDCR;
7370
    unsigned char wk9[2];
7371
    unsigned char DPSBKR[32];
7372
};
7373
 
7374
struct st_bsc {
7375
    union {
7376
        unsigned char BYTE;
7377
        struct {
7378
            unsigned char :7;
7379
            unsigned char STSCLR:1;
7380
        } BIT;
7381
    } BERCLR;
7382
    unsigned char wk0[3];
7383
    union {
7384
        unsigned char BYTE;
7385
        struct {
7386
            unsigned char :6;
7387
            unsigned char TOEN:1;
7388
            unsigned char IGAEN:1;
7389
        } BIT;
7390
    } BEREN;
7391
    unsigned char wk1[3];
7392
    union {
7393
        unsigned char BYTE;
7394
        struct {
7395
            unsigned char :1;
7396
            unsigned char MST:3;
7397
            unsigned char :2;
7398
            unsigned char TO:1;
7399
            unsigned char IA:1;
7400
        } BIT;
7401
    } BERSR1;
7402
    unsigned char wk2[1];
7403
    union {
7404
        unsigned short WORD;
7405
        struct {
7406
            unsigned short ADDR:13;
7407
            unsigned short :3;
7408
        } BIT;
7409
    } BERSR2;
7410
    unsigned char wk3[7414];
7411
    union {
7412
        unsigned short WORD;
7413
        struct {
7414
            unsigned short PRMOD:1;
7415
            unsigned short :5;
7416
            unsigned short PWENB:1;
7417
            unsigned short PRENB:1;
7418
            unsigned short :4;
7419
            unsigned short EWENB:1;
7420
            unsigned short :2;
7421
            unsigned short WRMOD:1;
7422
        } BIT;
7423
    } CS0MOD;
7424
    union {
7425
        unsigned long LONG;
7426
        struct {
7427
            unsigned long :3;
7428
            unsigned long CSRWAIT:5;
7429
            unsigned long :3;
7430
            unsigned long CSWWAIT:5;
7431
            unsigned long :5;
7432
            unsigned long CSPRWAIT:3;
7433
            unsigned long :5;
7434
            unsigned long CSPWWAIT:3;
7435
        } BIT;
7436
    } CS0WCR1;
7437
    union {
7438
        unsigned long LONG;
7439
        struct {
7440
            unsigned long :1;
7441
            unsigned long CSON:3;
7442
            unsigned long :1;
7443
            unsigned long WDON:3;
7444
            unsigned long :1;
7445
            unsigned long WRON:3;
7446
            unsigned long :1;
7447
            unsigned long RDON:3;
7448
            unsigned long :5;
7449
            unsigned long WDOFF:3;
7450
            unsigned long :1;
7451
            unsigned long CSWOFF:3;
7452
            unsigned long :1;
7453
            unsigned long CSROFF:3;
7454
        } BIT;
7455
    } CS0WCR2;
7456
    unsigned char wk4[6];
7457
    union {
7458
        unsigned short WORD;
7459
        struct {
7460
            unsigned short PRMOD:1;
7461
            unsigned short :5;
7462
            unsigned short PWENB:1;
7463
            unsigned short PRENB:1;
7464
            unsigned short :4;
7465
            unsigned short EWENB:1;
7466
            unsigned short :2;
7467
            unsigned short WRMOD:1;
7468
        } BIT;
7469
    } CS1MOD;
7470
    union {
7471
        unsigned long LONG;
7472
        struct {
7473
            unsigned long :3;
7474
            unsigned long CSRWAIT:5;
7475
            unsigned long :3;
7476
            unsigned long CSWWAIT:5;
7477
            unsigned long :5;
7478
            unsigned long CSPRWAIT:3;
7479
            unsigned long :5;
7480
            unsigned long CSPWWAIT:3;
7481
        } BIT;
7482
    } CS1WCR1;
7483
    union {
7484
        unsigned long LONG;
7485
        struct {
7486
            unsigned long :1;
7487
            unsigned long CSON:3;
7488
            unsigned long :1;
7489
            unsigned long WDON:3;
7490
            unsigned long :1;
7491
            unsigned long WRON:3;
7492
            unsigned long :1;
7493
            unsigned long RDON:3;
7494
            unsigned long :5;
7495
            unsigned long WDOFF:3;
7496
            unsigned long :1;
7497
            unsigned long CSWOFF:3;
7498
            unsigned long :1;
7499
            unsigned long CSROFF:3;
7500
        } BIT;
7501
    } CS1WCR2;
7502
    unsigned char wk5[6];
7503
    union {
7504
        unsigned short WORD;
7505
        struct {
7506
            unsigned short PRMOD:1;
7507
            unsigned short :5;
7508
            unsigned short PWENB:1;
7509
            unsigned short PRENB:1;
7510
            unsigned short :4;
7511
            unsigned short EWENB:1;
7512
            unsigned short :2;
7513
            unsigned short WRMOD:1;
7514
        } BIT;
7515
    } CS2MOD;
7516
    union {
7517
        unsigned long LONG;
7518
        struct {
7519
            unsigned long :3;
7520
            unsigned long CSRWAIT:5;
7521
            unsigned long :3;
7522
            unsigned long CSWWAIT:5;
7523
            unsigned long :5;
7524
            unsigned long CSPRWAIT:3;
7525
            unsigned long :5;
7526
            unsigned long CSPWWAIT:3;
7527
        } BIT;
7528
    } CS2WCR1;
7529
    union {
7530
        unsigned long LONG;
7531
        struct {
7532
            unsigned long :1;
7533
            unsigned long CSON:3;
7534
            unsigned long :1;
7535
            unsigned long WDON:3;
7536
            unsigned long :1;
7537
            unsigned long WRON:3;
7538
            unsigned long :1;
7539
            unsigned long RDON:3;
7540
            unsigned long :5;
7541
            unsigned long WDOFF:3;
7542
            unsigned long :1;
7543
            unsigned long CSWOFF:3;
7544
            unsigned long :1;
7545
            unsigned long CSROFF:3;
7546
        } BIT;
7547
    } CS2WCR2;
7548
    unsigned char wk6[6];
7549
    union {
7550
        unsigned short WORD;
7551
        struct {
7552
            unsigned short PRMOD:1;
7553
            unsigned short :5;
7554
            unsigned short PWENB:1;
7555
            unsigned short PRENB:1;
7556
            unsigned short :4;
7557
            unsigned short EWENB:1;
7558
            unsigned short :2;
7559
            unsigned short WRMOD:1;
7560
        } BIT;
7561
    } CS3MOD;
7562
    union {
7563
        unsigned long LONG;
7564
        struct {
7565
            unsigned long :3;
7566
            unsigned long CSRWAIT:5;
7567
            unsigned long :3;
7568
            unsigned long CSWWAIT:5;
7569
            unsigned long :5;
7570
            unsigned long CSPRWAIT:3;
7571
            unsigned long :5;
7572
            unsigned long CSPWWAIT:3;
7573
        } BIT;
7574
    } CS3WCR1;
7575
    union {
7576
        unsigned long LONG;
7577
        struct {
7578
            unsigned long :1;
7579
            unsigned long CSON:3;
7580
            unsigned long :1;
7581
            unsigned long WDON:3;
7582
            unsigned long :1;
7583
            unsigned long WRON:3;
7584
            unsigned long :1;
7585
            unsigned long RDON:3;
7586
            unsigned long :5;
7587
            unsigned long WDOFF:3;
7588
            unsigned long :1;
7589
            unsigned long CSWOFF:3;
7590
            unsigned long :1;
7591
            unsigned long CSROFF:3;
7592
        } BIT;
7593
    } CS3WCR2;
7594
    unsigned char wk7[6];
7595
    union {
7596
        unsigned short WORD;
7597
        struct {
7598
            unsigned short PRMOD:1;
7599
            unsigned short :5;
7600
            unsigned short PWENB:1;
7601
            unsigned short PRENB:1;
7602
            unsigned short :4;
7603
            unsigned short EWENB:1;
7604
            unsigned short :2;
7605
            unsigned short WRMOD:1;
7606
        } BIT;
7607
    } CS4MOD;
7608
    union {
7609
        unsigned long LONG;
7610
        struct {
7611
            unsigned long :3;
7612
            unsigned long CSRWAIT:5;
7613
            unsigned long :3;
7614
            unsigned long CSWWAIT:5;
7615
            unsigned long :5;
7616
            unsigned long CSPRWAIT:3;
7617
            unsigned long :5;
7618
            unsigned long CSPWWAIT:3;
7619
        } BIT;
7620
    } CS4WCR1;
7621
    union {
7622
        unsigned long LONG;
7623
        struct {
7624
            unsigned long :1;
7625
            unsigned long CSON:3;
7626
            unsigned long :1;
7627
            unsigned long WDON:3;
7628
            unsigned long :1;
7629
            unsigned long WRON:3;
7630
            unsigned long :1;
7631
            unsigned long RDON:3;
7632
            unsigned long :5;
7633
            unsigned long WDOFF:3;
7634
            unsigned long :1;
7635
            unsigned long CSWOFF:3;
7636
            unsigned long :1;
7637
            unsigned long CSROFF:3;
7638
        } BIT;
7639
    } CS4WCR2;
7640
    unsigned char wk8[6];
7641
    union {
7642
        unsigned short WORD;
7643
        struct {
7644
            unsigned short PRMOD:1;
7645
            unsigned short :5;
7646
            unsigned short PWENB:1;
7647
            unsigned short PRENB:1;
7648
            unsigned short :4;
7649
            unsigned short EWENB:1;
7650
            unsigned short :2;
7651
            unsigned short WRMOD:1;
7652
        } BIT;
7653
    } CS5MOD;
7654
    union {
7655
        unsigned long LONG;
7656
        struct {
7657
            unsigned long :3;
7658
            unsigned long CSRWAIT:5;
7659
            unsigned long :3;
7660
            unsigned long CSWWAIT:5;
7661
            unsigned long :5;
7662
            unsigned long CSPRWAIT:3;
7663
            unsigned long :5;
7664
            unsigned long CSPWWAIT:3;
7665
        } BIT;
7666
    } CS5WCR1;
7667
    union {
7668
        unsigned long LONG;
7669
        struct {
7670
            unsigned long :1;
7671
            unsigned long CSON:3;
7672
            unsigned long :1;
7673
            unsigned long WDON:3;
7674
            unsigned long :1;
7675
            unsigned long WRON:3;
7676
            unsigned long :1;
7677
            unsigned long RDON:3;
7678
            unsigned long :5;
7679
            unsigned long WDOFF:3;
7680
            unsigned long :1;
7681
            unsigned long CSWOFF:3;
7682
            unsigned long :1;
7683
            unsigned long CSROFF:3;
7684
        } BIT;
7685
    } CS5WCR2;
7686
    unsigned char wk9[6];
7687
    union {
7688
        unsigned short WORD;
7689
        struct {
7690
            unsigned short PRMOD:1;
7691
            unsigned short :5;
7692
            unsigned short PWENB:1;
7693
            unsigned short PRENB:1;
7694
            unsigned short :4;
7695
            unsigned short EWENB:1;
7696
            unsigned short :2;
7697
            unsigned short WRMOD:1;
7698
        } BIT;
7699
    } CS6MOD;
7700
    union {
7701
        unsigned long LONG;
7702
        struct {
7703
            unsigned long :3;
7704
            unsigned long CSRWAIT:5;
7705
            unsigned long :3;
7706
            unsigned long CSWWAIT:5;
7707
            unsigned long :5;
7708
            unsigned long CSPRWAIT:3;
7709
            unsigned long :5;
7710
            unsigned long CSPWWAIT:3;
7711
        } BIT;
7712
    } CS6WCR1;
7713
    union {
7714
        unsigned long LONG;
7715
        struct {
7716
            unsigned long :1;
7717
            unsigned long CSON:3;
7718
            unsigned long :1;
7719
            unsigned long WDON:3;
7720
            unsigned long :1;
7721
            unsigned long WRON:3;
7722
            unsigned long :1;
7723
            unsigned long RDON:3;
7724
            unsigned long :5;
7725
            unsigned long WDOFF:3;
7726
            unsigned long :1;
7727
            unsigned long CSWOFF:3;
7728
            unsigned long :1;
7729
            unsigned long CSROFF:3;
7730
        } BIT;
7731
    } CS6WCR2;
7732
    unsigned char wk10[6];
7733
    union {
7734
        unsigned short WORD;
7735
        struct {
7736
            unsigned short PRMOD:1;
7737
            unsigned short :5;
7738
            unsigned short PWENB:1;
7739
            unsigned short PRENB:1;
7740
            unsigned short :4;
7741
            unsigned short EWENB:1;
7742
            unsigned short :2;
7743
            unsigned short WRMOD:1;
7744
        } BIT;
7745
    } CS7MOD;
7746
    union {
7747
        unsigned long LONG;
7748
        struct {
7749
            unsigned long :3;
7750
            unsigned long CSRWAIT:5;
7751
            unsigned long :3;
7752
            unsigned long CSWWAIT:5;
7753
            unsigned long :5;
7754
            unsigned long CSPRWAIT:3;
7755
            unsigned long :5;
7756
            unsigned long CSPWWAIT:3;
7757
        } BIT;
7758
    } CS7WCR1;
7759
    union {
7760
        unsigned long LONG;
7761
        struct {
7762
            unsigned long :1;
7763
            unsigned long CSON:3;
7764
            unsigned long :1;
7765
            unsigned long WDON:3;
7766
            unsigned long :1;
7767
            unsigned long WRON:3;
7768
            unsigned long :1;
7769
            unsigned long RDON:3;
7770
            unsigned long :5;
7771
            unsigned long WDOFF:3;
7772
            unsigned long :1;
7773
            unsigned long CSWOFF:3;
7774
            unsigned long :1;
7775
            unsigned long CSROFF:3;
7776
        } BIT;
7777
    } CS7WCR2;
7778
    unsigned char wk11[1926];
7779
    union {
7780
        unsigned short WORD;
7781
        struct {
7782
            unsigned short :7;
7783
            unsigned short EMODE:1;
7784
            unsigned short :2;
7785
            unsigned short BSIZE:2;
7786
            unsigned short :3;
7787
            unsigned short EXENB:1;
7788
        } BIT;
7789
    } CS0CR;
7790
    unsigned char wk12[6];
7791
    union {
7792
        unsigned short WORD;
7793
        struct {
7794
            unsigned short :4;
7795
            unsigned short WRCV:4;
7796
            unsigned short :4;
7797
            unsigned short RRCV:4;
7798
        } BIT;
7799
    } CS0REC;
7800
    unsigned char wk13[6];
7801
    union {
7802
        unsigned short WORD;
7803
        struct {
7804
            unsigned short :7;
7805
            unsigned short EMODE:1;
7806
            unsigned short :2;
7807
            unsigned short BSIZE:2;
7808
            unsigned short :3;
7809
            unsigned short EXENB:1;
7810
        } BIT;
7811
    } CS1CR;
7812
    unsigned char wk14[6];
7813
    union {
7814
        unsigned short WORD;
7815
        struct {
7816
            unsigned short :4;
7817
            unsigned short WRCV:4;
7818
            unsigned short :4;
7819
            unsigned short RRCV:4;
7820
        } BIT;
7821
    } CS1REC;
7822
    unsigned char wk15[6];
7823
    union {
7824
        unsigned short WORD;
7825
        struct {
7826
            unsigned short :7;
7827
            unsigned short EMODE:1;
7828
            unsigned short :2;
7829
            unsigned short BSIZE:2;
7830
            unsigned short :3;
7831
            unsigned short EXENB:1;
7832
        } BIT;
7833
    } CS2CR;
7834
    unsigned char wk16[6];
7835
    union {
7836
        unsigned short WORD;
7837
        struct {
7838
            unsigned short :4;
7839
            unsigned short WRCV:4;
7840
            unsigned short :4;
7841
            unsigned short RRCV:4;
7842
        } BIT;
7843
    } CS2REC;
7844
    unsigned char wk17[6];
7845
    union {
7846
        unsigned short WORD;
7847
        struct {
7848
            unsigned short :7;
7849
            unsigned short EMODE:1;
7850
            unsigned short :2;
7851
            unsigned short BSIZE:2;
7852
            unsigned short :3;
7853
            unsigned short EXENB:1;
7854
        } BIT;
7855
    } CS3CR;
7856
    unsigned char wk18[6];
7857
    union {
7858
        unsigned short WORD;
7859
        struct {
7860
            unsigned short :4;
7861
            unsigned short WRCV:4;
7862
            unsigned short :4;
7863
            unsigned short RRCV:4;
7864
        } BIT;
7865
    } CS3REC;
7866
    unsigned char wk19[6];
7867
    union {
7868
        unsigned short WORD;
7869
        struct {
7870
            unsigned short :7;
7871
            unsigned short EMODE:1;
7872
            unsigned short :2;
7873
            unsigned short BSIZE:2;
7874
            unsigned short :3;
7875
            unsigned short EXENB:1;
7876
        } BIT;
7877
    } CS4CR;
7878
    unsigned char wk20[6];
7879
    union {
7880
        unsigned short WORD;
7881
        struct {
7882
            unsigned short :4;
7883
            unsigned short WRCV:4;
7884
            unsigned short :4;
7885
            unsigned short RRCV:4;
7886
        } BIT;
7887
    } CS4REC;
7888
    unsigned char wk21[6];
7889
    union {
7890
        unsigned short WORD;
7891
        struct {
7892
            unsigned short :7;
7893
            unsigned short EMODE:1;
7894
            unsigned short :2;
7895
            unsigned short BSIZE:2;
7896
            unsigned short :3;
7897
            unsigned short EXENB:1;
7898
        } BIT;
7899
    } CS5CR;
7900
    unsigned char wk22[6];
7901
    union {
7902
        unsigned short WORD;
7903
        struct {
7904
            unsigned short :4;
7905
            unsigned short WRCV:4;
7906
            unsigned short :4;
7907
            unsigned short RRCV:4;
7908
        } BIT;
7909
    } CS5REC;
7910
    unsigned char wk23[6];
7911
    union {
7912
        unsigned short WORD;
7913
        struct {
7914
            unsigned short :7;
7915
            unsigned short EMODE:1;
7916
            unsigned short :2;
7917
            unsigned short BSIZE:2;
7918
            unsigned short :3;
7919
            unsigned short EXENB:1;
7920
        } BIT;
7921
    } CS6CR;
7922
    unsigned char wk24[6];
7923
    union {
7924
        unsigned short WORD;
7925
        struct {
7926
            unsigned short :4;
7927
            unsigned short WRCV:4;
7928
            unsigned short :4;
7929
            unsigned short RRCV:4;
7930
        } BIT;
7931
    } CS6REC;
7932
    unsigned char wk25[6];
7933
    union {
7934
        unsigned short WORD;
7935
        struct {
7936
            unsigned short :7;
7937
            unsigned short EMODE:1;
7938
            unsigned short :2;
7939
            unsigned short BSIZE:2;
7940
            unsigned short :3;
7941
            unsigned short EXENB:1;
7942
        } BIT;
7943
    } CS7CR;
7944
    unsigned char wk26[6];
7945
    union {
7946
        unsigned short WORD;
7947
        struct {
7948
            unsigned short :4;
7949
            unsigned short WRCV:4;
7950
            unsigned short :4;
7951
            unsigned short RRCV:4;
7952
        } BIT;
7953
    } CS7REC;
7954
    unsigned char wk27[900];
7955
    union {
7956
        unsigned char BYTE;
7957
        struct {
7958
            unsigned char :2;
7959
            unsigned char BSIZE:2;
7960
            unsigned char :3;
7961
            unsigned char EXENB:1;
7962
        } BIT;
7963
    } SDCCR;
7964
    union {
7965
        unsigned char BYTE;
7966
        struct {
7967
            unsigned char :7;
7968
            unsigned char EMODE:1;
7969
        } BIT;
7970
    } SDCMOD;
7971
    union {
7972
        unsigned char BYTE;
7973
        struct {
7974
            unsigned char :7;
7975
            unsigned char BE:1;
7976
        } BIT;
7977
    } SDAMOD;
7978
    unsigned char wk28[13];
7979
    union {
7980
        unsigned char BYTE;
7981
        struct {
7982
            unsigned char :7;
7983
            unsigned char SFEN:1;
7984
        } BIT;
7985
    } SDSELF;
7986
    unsigned char wk29[3];
7987
    union {
7988
        unsigned short WORD;
7989
        struct {
7990
            unsigned short REFW:4;
7991
            unsigned short RFC:12;
7992
        } BIT;
7993
    } SDRFCR;
7994
    union {
7995
        unsigned char BYTE;
7996
        struct {
7997
            unsigned char :7;
7998
            unsigned char RFEN:1;
7999
        } BIT;
8000
    } SDRFEN;
8001
    unsigned char wk30[9];
8002
    union {
8003
        unsigned char BYTE;
8004
        struct {
8005
            unsigned char :7;
8006
            unsigned char INIRQ:1;
8007
        } BIT;
8008
    } SDICR;
8009
    unsigned char wk31[3];
8010
    union {
8011
        unsigned short WORD;
8012
        struct {
8013
            unsigned short :5;
8014
            unsigned short PRC:3;
8015
            unsigned short ARFC:4;
8016
            unsigned short ARFI:4;
8017
        } BIT;
8018
    } SDIR;
8019
    unsigned char wk32[26];
8020
    union {
8021
        unsigned char BYTE;
8022
        struct {
8023
            unsigned char :6;
8024
            unsigned char MXC:2;
8025
        } BIT;
8026
    } SDADR;
8027
    unsigned char wk33[3];
8028
    union {
8029
        unsigned long LONG;
8030
        struct {
8031
            unsigned long :13;
8032
            unsigned long RAS:3;
8033
            unsigned long :2;
8034
            unsigned long RCD:2;
8035
            unsigned long RP:3;
8036
            unsigned long WR:1;
8037
            unsigned long :5;
8038
            unsigned long CL:3;
8039
        } BIT;
8040
    } SDTR;
8041
    union {
8042
        unsigned short WORD;
8043
        struct {
8044
            unsigned short :1;
8045
            unsigned short MR:15;
8046
        } BIT;
8047
    } SDMOD;
8048
    unsigned char wk34[6];
8049
    union {
8050
        unsigned char BYTE;
8051
        struct {
8052
            unsigned char :3;
8053
            unsigned char SRFST:1;
8054
            unsigned char INIST:1;
8055
            unsigned char :2;
8056
            unsigned char MRSST:1;
8057
        } BIT;
8058
    } SDSR;
8059
};
8060
 
8061
struct st_dmac0 {
8062
    void *DMSAR;
8063
    void *DMDAR;
8064
    unsigned long DMCRA;
8065
    unsigned short DMCRB;
8066
    unsigned char wk0[2];
8067
    union {
8068
        unsigned short WORD;
8069
        struct {
8070
            unsigned short MD:2;
8071
            unsigned short DTS:2;
8072
            unsigned short :2;
8073
            unsigned short SZ:2;
8074
            unsigned short :6;
8075
            unsigned short DCTG:2;
8076
        } BIT;
8077
    } DMTMD;
8078
    unsigned char wk1[1];
8079
    union {
8080
        unsigned char BYTE;
8081
        struct {
8082
            unsigned char :3;
8083
            unsigned char DTIE:1;
8084
            unsigned char ESIE:1;
8085
            unsigned char RPTIE:1;
8086
            unsigned char SARIE:1;
8087
            unsigned char DARIE:1;
8088
        } BIT;
8089
    } DMINT;
8090
    union {
8091
        unsigned short WORD;
8092
        struct {
8093
            unsigned short SM:2;
8094
            unsigned short :1;
8095
            unsigned short SARA:5;
8096
            unsigned short DM:2;
8097
            unsigned short :1;
8098
            unsigned short DARA:5;
8099
        } BIT;
8100
    } DMAMD;
8101
    unsigned char wk2[2];
8102
    unsigned long DMOFR;
8103
    union {
8104
        unsigned char BYTE;
8105
        struct {
8106
            unsigned char :7;
8107
            unsigned char DTE:1;
8108
        } BIT;
8109
    } DMCNT;
8110
    union {
8111
        unsigned char BYTE;
8112
        struct {
8113
            unsigned char :3;
8114
            unsigned char CLRS:1;
8115
            unsigned char :3;
8116
            unsigned char SWREQ:1;
8117
        } BIT;
8118
    } DMREQ;
8119
    union {
8120
        unsigned char BYTE;
8121
        struct {
8122
            unsigned char ACT:1;
8123
            unsigned char :2;
8124
            unsigned char DTIF:1;
8125
            unsigned char :3;
8126
            unsigned char ESIF:1;
8127
        } BIT;
8128
    } DMSTS;
8129
    union {
8130
        unsigned char BYTE;
8131
        struct {
8132
            unsigned char :7;
8133
            unsigned char DISEL:1;
8134
        } BIT;
8135
    } DMCSL;
8136
};
8137
 
8138
struct st_dmac1 {
8139
    void *DMSAR;
8140
    void *DMDAR;
8141
    unsigned long DMCRA;
8142
    unsigned short DMCRB;
8143
    unsigned char wk0[2];
8144
    union {
8145
        unsigned short WORD;
8146
        struct {
8147
            unsigned short MD:2;
8148
            unsigned short DTS:2;
8149
            unsigned short :2;
8150
            unsigned short SZ:2;
8151
            unsigned short :6;
8152
            unsigned short DCTG:2;
8153
        } BIT;
8154
    } DMTMD;
8155
    unsigned char wk1[1];
8156
    union {
8157
        unsigned char BYTE;
8158
        struct {
8159
            unsigned char :3;
8160
            unsigned char DTIE:1;
8161
            unsigned char ESIE:1;
8162
            unsigned char RPTIE:1;
8163
            unsigned char SARIE:1;
8164
            unsigned char DARIE:1;
8165
        } BIT;
8166
    } DMINT;
8167
    union {
8168
        unsigned short WORD;
8169
        struct {
8170
            unsigned short SM:2;
8171
            unsigned short :1;
8172
            unsigned short SARA:5;
8173
            unsigned short DM:2;
8174
            unsigned short :1;
8175
            unsigned short DARA:5;
8176
        } BIT;
8177
    } DMAMD;
8178
    unsigned char wk2[6];
8179
    union {
8180
        unsigned char BYTE;
8181
        struct {
8182
            unsigned char :7;
8183
            unsigned char DTE:1;
8184
        } BIT;
8185
    } DMCNT;
8186
    union {
8187
        unsigned char BYTE;
8188
        struct {
8189
            unsigned char :3;
8190
            unsigned char CLRS:1;
8191
            unsigned char :3;
8192
            unsigned char SWREQ:1;
8193
        } BIT;
8194
    } DMREQ;
8195
    union {
8196
        unsigned char BYTE;
8197
        struct {
8198
            unsigned char ACT:1;
8199
            unsigned char :2;
8200
            unsigned char DTIF:1;
8201
            unsigned char :3;
8202
            unsigned char ESIF:1;
8203
        } BIT;
8204
    } DMSTS;
8205
    union {
8206
        unsigned char BYTE;
8207
        struct {
8208
            unsigned char :7;
8209
            unsigned char DISEL:1;
8210
        } BIT;
8211
    } DMCSL;
8212
};
8213
 
8214
struct st_dmac {
8215
    union {
8216
        unsigned char BYTE;
8217
        struct {
8218
            unsigned char :7;
8219
            unsigned char DMST:1;
8220
        } BIT;
8221
    } DMAST;
8222
};
8223
 
8224
struct st_dtc {
8225
    union {
8226
        unsigned char BYTE;
8227
        struct {
8228
            unsigned char :3;
8229
            unsigned char RRS:1;
8230
            unsigned char :4;
8231
        } BIT;
8232
    } DTCCR;
8233
    unsigned char wk0[3];
8234
    void *DTCVBR;
8235
    union {
8236
        unsigned char BYTE;
8237
        struct {
8238
            unsigned char :7;
8239
            unsigned char SHORT:1;
8240
        } BIT;
8241
    } DTCADMOD;
8242
    unsigned char wk1[3];
8243
    union {
8244
        unsigned char BYTE;
8245
        struct {
8246
            unsigned char :7;
8247
            unsigned char DTCST:1;
8248
        } BIT;
8249
    } DTCST;
8250
    unsigned char wk2[1];
8251
    union {
8252
        unsigned short WORD;
8253
        struct {
8254
            unsigned short ACT:1;
8255
            unsigned short :7;
8256
            unsigned short VECN:8;
8257
        } BIT;
8258
    } DTCSTS;
8259
};
8260
 
8261
struct st_exdmac0 {
8262
    void *EDMSAR;
8263
    void *EDMDAR;
8264
    unsigned long EDMCRA;
8265
    unsigned short EDMCRB;
8266
    unsigned char wk0[2];
8267
    union {
8268
        unsigned short WORD;
8269
        struct {
8270
            unsigned short MD:2;
8271
            unsigned short DTS:2;
8272
            unsigned short :2;
8273
            unsigned short SZ:2;
8274
            unsigned short :6;
8275
            unsigned short DCTG:2;
8276
        } BIT;
8277
    } EDMTMD;
8278
    union {
8279
        unsigned char BYTE;
8280
        struct {
8281
            unsigned char :4;
8282
            unsigned char DACKS:1;
8283
            unsigned char DACKE:1;
8284
            unsigned char DACKW:1;
8285
            unsigned char :1;
8286
        } BIT;
8287
    } EDMOMD;
8288
    union {
8289
        unsigned char BYTE;
8290
        struct {
8291
            unsigned char :3;
8292
            unsigned char DTIE:1;
8293
            unsigned char ESIE:1;
8294
            unsigned char RPTIE:1;
8295
            unsigned char SARIE:1;
8296
            unsigned char DARIE:1;
8297
        } BIT;
8298
    } EDMINT;
8299
    union {
8300
        unsigned long LONG;
8301
        struct {
8302
            unsigned long :14;
8303
            unsigned long AMS:1;
8304
            unsigned long DIR:1;
8305
            unsigned long SM:2;
8306
            unsigned long :1;
8307
            unsigned long SARA:5;
8308
            unsigned long DM:2;
8309
            unsigned long :1;
8310
            unsigned long DARA:5;
8311
        } BIT;
8312
    } EDMAMD;
8313
    unsigned long EDMOFR;
8314
    union {
8315
        unsigned char BYTE;
8316
        struct {
8317
            unsigned char :7;
8318
            unsigned char DTE:1;
8319
        } BIT;
8320
    } EDMCNT;
8321
    union {
8322
        unsigned char BYTE;
8323
        struct {
8324
            unsigned char :3;
8325
            unsigned char CLRS:1;
8326
            unsigned char :3;
8327
            unsigned char SWREQ:1;
8328
        } BIT;
8329
    } EDMREQ;
8330
    union {
8331
        unsigned char BYTE;
8332
        struct {
8333
            unsigned char ACT:1;
8334
            unsigned char :2;
8335
            unsigned char DTIF:1;
8336
            unsigned char :3;
8337
            unsigned char ESIF:1;
8338
        } BIT;
8339
    } EDMSTS;
8340
    unsigned char wk1[1];
8341
    union {
8342
        unsigned char BYTE;
8343
        struct {
8344
            unsigned char :6;
8345
            unsigned char DREQS:2;
8346
        } BIT;
8347
    } EDMRMD;
8348
    union {
8349
        unsigned char BYTE;
8350
        struct {
8351
            unsigned char :7;
8352
            unsigned char EREQ:1;
8353
        } BIT;
8354
    } EDMERF;
8355
    union {
8356
        unsigned char BYTE;
8357
        struct {
8358
            unsigned char :7;
8359
            unsigned char PREQ:1;
8360
        } BIT;
8361
    } EDMPRF;
8362
};
8363
 
8364
struct st_exdmac {
8365
    union {
8366
        unsigned char BYTE;
8367
        struct {
8368
            unsigned char :7;
8369
            unsigned char DMST:1;
8370
        } BIT;
8371
    } EDMAST;
8372
    unsigned char wk0[479];
8373
    unsigned long CLSBR0;
8374
    unsigned long CLSBR1;
8375
    unsigned long CLSBR2;
8376
    unsigned long CLSBR3;
8377
    unsigned long CLSBR4;
8378
    unsigned long CLSBR5;
8379
    unsigned long CLSBR6;
8380
    unsigned long CLSBR7;
8381
};
8382
 
8383
struct st_icu {
8384
    union {
8385
        unsigned char BYTE;
8386
        struct {
8387
            unsigned char :7;
8388
            unsigned char IR:1;
8389
        } BIT;
8390
    } IR[254];
8391
    unsigned char wk17[2];
8392
    union {
8393
        unsigned char BYTE;
8394
        struct {
8395
            unsigned char :7;
8396
            unsigned char DTCE:1;
8397
        } BIT;
8398
    } DTCER[254];
8399
    unsigned char wk47[2];
8400
    union {
8401
        unsigned char BYTE;
8402
        struct {
8403
            unsigned char IEN7:1;
8404
            unsigned char IEN6:1;
8405
            unsigned char IEN5:1;
8406
            unsigned char IEN4:1;
8407
            unsigned char IEN3:1;
8408
            unsigned char IEN2:1;
8409
            unsigned char IEN1:1;
8410
            unsigned char IEN0:1;
8411
        } BIT;
8412
    } IER[32];
8413
    unsigned char wk50[192];
8414
    union {
8415
        unsigned char BYTE;
8416
        struct {
8417
            unsigned char :7;
8418
            unsigned char SWINT:1;
8419
        } BIT;
8420
    } SWINTR;
8421
    unsigned char wk51[15];
8422
    union {
8423
        unsigned short WORD;
8424
        struct {
8425
            unsigned short FIEN:1;
8426
            unsigned short :7;
8427
            unsigned short FVCT:8;
8428
        } BIT;
8429
    } FIR;
8430
    unsigned char wk52[14];
8431
    union {
8432
        unsigned char BYTE;
8433
        struct {
8434
            unsigned char :4;
8435
            unsigned char IPR:4;
8436
        } BIT;
8437
    } IPR[144];
8438
    unsigned char wk67[112];
8439
    unsigned char DMRSR0;
8440
    unsigned char wk68[3];
8441
    unsigned char DMRSR1;
8442
    unsigned char wk69[3];
8443
    unsigned char DMRSR2;
8444
    unsigned char wk70[3];
8445
    unsigned char DMRSR3;
8446
    unsigned char wk71[243];
8447
    union {
8448
        unsigned char BYTE;
8449
        struct {
8450
            unsigned char :4;
8451
            unsigned char IRQMD:2;
8452
            unsigned char :2;
8453
        } BIT;
8454
    } IRQCR[16];
8455
    unsigned char wk72[112];
8456
    union {
8457
        unsigned char BYTE;
8458
        struct {
8459
            unsigned char :5;
8460
            unsigned char OSTST:1;
8461
            unsigned char LVDST:1;
8462
            unsigned char NMIST:1;
8463
        } BIT;
8464
    } NMISR;
8465
    union {
8466
        unsigned char BYTE;
8467
        struct {
8468
            unsigned char :5;
8469
            unsigned char OSTEN:1;
8470
            unsigned char LVDEN:1;
8471
            unsigned char NMIEN:1;
8472
        } BIT;
8473
    } NMIER;
8474
    union {
8475
        unsigned char BYTE;
8476
        struct {
8477
            unsigned char :5;
8478
            unsigned char OSTCLR:1;
8479
            unsigned char :1;
8480
            unsigned char NMICLR:1;
8481
        } BIT;
8482
    } NMICLR;
8483
    union {
8484
        unsigned char BYTE;
8485
        struct {
8486
            unsigned char :4;
8487
            unsigned char NMIMD:1;
8488
            unsigned char :3;
8489
        } BIT;
8490
    } NMICR;
8491
};
8492
 
8493
struct st_cmt {
8494
    union {
8495
        unsigned short WORD;
8496
        struct {
8497
            unsigned short :14;
8498
            unsigned short STR1:1;
8499
            unsigned short STR0:1;
8500
        } BIT;
8501
    } CMSTR0;
8502
    unsigned char wk0[14];
8503
    union {
8504
        unsigned short WORD;
8505
        struct {
8506
            unsigned short :14;
8507
            unsigned short STR3:1;
8508
            unsigned short STR2:1;
8509
        } BIT;
8510
    } CMSTR1;
8511
};
8512
 
8513
struct st_cmt0 {
8514
    union {
8515
        unsigned short WORD;
8516
        struct {
8517
            unsigned short :9;
8518
            unsigned short CMIE:1;
8519
            unsigned short :4;
8520
            unsigned short CKS:2;
8521
        } BIT;
8522
    } CMCR;
8523
    unsigned short CMCNT;
8524
    unsigned short CMCOR;
8525
};
8526
 
8527
union un_wdt {
8528
    struct {
8529
        union {
8530
            unsigned char BYTE;
8531
            struct {
8532
                unsigned char :1;
8533
                unsigned char TMS:1;
8534
                unsigned char TME:1;
8535
                unsigned char :2;
8536
                unsigned char CKS:3;
8537
            } BIT;
8538
        } TCSR;
8539
        unsigned char TCNT;
8540
        unsigned char wk0[1];
8541
        union {
8542
            unsigned char BYTE;
8543
            struct {
8544
                unsigned char WOVF:1;
8545
                unsigned char RSTE:1;
8546
                unsigned char :6;
8547
            } BIT;
8548
        } RSTCSR;
8549
    } READ;
8550
    struct {
8551
        unsigned short WINA;
8552
        unsigned short WINB;
8553
    } WRITE;
8554
};
8555
 
8556
struct st_iwdt {
8557
    unsigned char IWDTRR;
8558
    unsigned char wk0[1];
8559
    union {
8560
        unsigned short WORD;
8561
        struct {
8562
            unsigned short :8;
8563
            unsigned short CKS:4;
8564
            unsigned short :2;
8565
            unsigned short TOPS:2;
8566
        } BIT;
8567
    } IWDTCR;
8568
    union {
8569
        unsigned short WORD;
8570
        struct {
8571
            unsigned short :1;
8572
            unsigned short UNDFF:1;
8573
            unsigned short CNTVAL:14;
8574
        } BIT;
8575
    } IWDTSR;
8576
};
8577
 
8578
struct st_ad {
8579
    unsigned short ADDRA;
8580
    unsigned short ADDRB;
8581
    unsigned short ADDRC;
8582
    unsigned short ADDRD;
8583
    unsigned char wk0[8];
8584
    union {
8585
        unsigned char BYTE;
8586
        struct {
8587
            unsigned char :1;
8588
            unsigned char ADIE:1;
8589
            unsigned char ADST:1;
8590
            unsigned char :1;
8591
            unsigned char CH:4;
8592
        } BIT;
8593
    } ADCSR;
8594
    union {
8595
        unsigned char BYTE;
8596
        struct {
8597
            unsigned char TRGS:3;
8598
            unsigned char :1;
8599
            unsigned char CKS:2;
8600
            unsigned char MODE:2;
8601
        } BIT;
8602
    } ADCR;
8603
    union {
8604
        unsigned char BYTE;
8605
        struct {
8606
            unsigned char DPSEL:1;
8607
            unsigned char :7;
8608
        } BIT;
8609
    } ADDPR;
8610
    unsigned char ADSSTR;
8611
    unsigned char wk1[11];
8612
    union {
8613
        unsigned char BYTE;
8614
        struct {
8615
            unsigned char :6;
8616
            unsigned char DIAG:2;
8617
        } BIT;
8618
    } ADDIAGR;
8619
};
8620
 
8621
struct st_da {
8622
    unsigned short DADR0;
8623
    unsigned short DADR1;
8624
    union {
8625
        unsigned char BYTE;
8626
        struct {
8627
            unsigned char DAOE1:1;
8628
            unsigned char DAOE0:1;
8629
            unsigned char DAE:1;
8630
            unsigned char :5;
8631
        } BIT;
8632
    } DACR;
8633
    union {
8634
        unsigned char BYTE;
8635
        struct {
8636
            unsigned char DPSEL:1;
8637
            unsigned char :7;
8638
        } BIT;
8639
    } DADPR;
8640
};
8641
 
8642
struct st_ppg0 {
8643
    union {
8644
        unsigned char BYTE;
8645
        struct {
8646
            unsigned char G3CMS:2;
8647
            unsigned char G2CMS:2;
8648
            unsigned char G1CMS:2;
8649
            unsigned char G0CMS:2;
8650
        } BIT;
8651
    } PCR;
8652
    union {
8653
        unsigned char BYTE;
8654
        struct {
8655
            unsigned char G3INV:1;
8656
            unsigned char G2INV:1;
8657
            unsigned char G1INV:1;
8658
            unsigned char G0INV:1;
8659
            unsigned char G3NOV:1;
8660
            unsigned char G2NOV:1;
8661
            unsigned char G1NOV:1;
8662
            unsigned char G0NOV:1;
8663
        } BIT;
8664
    } PMR;
8665
    union {
8666
        unsigned char BYTE;
8667
        struct {
8668
            unsigned char NDER15:1;
8669
            unsigned char NDER14:1;
8670
            unsigned char NDER13:1;
8671
            unsigned char NDER12:1;
8672
            unsigned char NDER11:1;
8673
            unsigned char NDER10:1;
8674
            unsigned char NDER9:1;
8675
            unsigned char NDER8:1;
8676
        } BIT;
8677
    } NDERH;
8678
    union {
8679
        unsigned char BYTE;
8680
        struct {
8681
            unsigned char NDER7:1;
8682
            unsigned char NDER6:1;
8683
            unsigned char NDER5:1;
8684
            unsigned char NDER4:1;
8685
            unsigned char NDER3:1;
8686
            unsigned char NDER2:1;
8687
            unsigned char NDER1:1;
8688
            unsigned char NDER0:1;
8689
        } BIT;
8690
    } NDERL;
8691
    union {
8692
        unsigned char BYTE;
8693
        struct {
8694
            unsigned char POD15:1;
8695
            unsigned char POD14:1;
8696
            unsigned char POD13:1;
8697
            unsigned char POD12:1;
8698
            unsigned char POD11:1;
8699
            unsigned char POD10:1;
8700
            unsigned char POD9:1;
8701
            unsigned char POD8:1;
8702
        } BIT;
8703
    } PODRH;
8704
    union {
8705
        unsigned char BYTE;
8706
        struct {
8707
            unsigned char POD7:1;
8708
            unsigned char POD6:1;
8709
            unsigned char POD5:1;
8710
            unsigned char POD4:1;
8711
            unsigned char POD3:1;
8712
            unsigned char POD2:1;
8713
            unsigned char POD1:1;
8714
            unsigned char POD0:1;
8715
        } BIT;
8716
    } PODRL;
8717
    union {
8718
        unsigned char BYTE;
8719
        struct {
8720
            unsigned char NDR15:1;
8721
            unsigned char NDR14:1;
8722
            unsigned char NDR13:1;
8723
            unsigned char NDR12:1;
8724
            unsigned char NDR11:1;
8725
            unsigned char NDR10:1;
8726
            unsigned char NDR9:1;
8727
            unsigned char NDR8:1;
8728
        } BIT;
8729
    } NDRH;
8730
    union {
8731
        unsigned char BYTE;
8732
        struct {
8733
            unsigned char NDR7:1;
8734
            unsigned char NDR6:1;
8735
            unsigned char NDR5:1;
8736
            unsigned char NDR4:1;
8737
            unsigned char NDR3:1;
8738
            unsigned char NDR2:1;
8739
            unsigned char NDR1:1;
8740
            unsigned char NDR0:1;
8741
        } BIT;
8742
    } NDRL;
8743
    union {
8744
        unsigned char BYTE;
8745
        struct {
8746
            unsigned char :4;
8747
            unsigned char NDR11:1;
8748
            unsigned char NDR10:1;
8749
            unsigned char NDR9:1;
8750
            unsigned char NDR8:1;
8751
        } BIT;
8752
    } NDRH2;
8753
    union {
8754
        unsigned char BYTE;
8755
        struct {
8756
            unsigned char :4;
8757
            unsigned char NDR3:1;
8758
            unsigned char NDR2:1;
8759
            unsigned char NDR1:1;
8760
            unsigned char NDR0:1;
8761
        } BIT;
8762
    } NDRL2;
8763
};
8764
 
8765
struct st_ppg1 {
8766
    union {
8767
        unsigned char BYTE;
8768
        struct {
8769
            unsigned char :7;
8770
            unsigned char PTRSL:1;
8771
        } BIT;
8772
    } PTRSLR;
8773
    unsigned char wk0[5];
8774
    union {
8775
        unsigned char BYTE;
8776
        struct {
8777
            unsigned char G3CMS:2;
8778
            unsigned char G2CMS:2;
8779
            unsigned char G1CMS:2;
8780
            unsigned char G0CMS:2;
8781
        } BIT;
8782
    } PCR;
8783
    union {
8784
        unsigned char BYTE;
8785
        struct {
8786
            unsigned char G3INV:1;
8787
            unsigned char G2INV:1;
8788
            unsigned char G1INV:1;
8789
            unsigned char G0INV:1;
8790
            unsigned char G3NOV:1;
8791
            unsigned char G2NOV:1;
8792
            unsigned char G1NOV:1;
8793
            unsigned char G0NOV:1;
8794
        } BIT;
8795
    } PMR;
8796
    union {
8797
        unsigned char BYTE;
8798
        struct {
8799
            unsigned char NDER31:1;
8800
            unsigned char NDER30:1;
8801
            unsigned char NDER29:1;
8802
            unsigned char NDER28:1;
8803
            unsigned char NDER27:1;
8804
            unsigned char NDER26:1;
8805
            unsigned char NDER25:1;
8806
            unsigned char NDER24:1;
8807
        } BIT;
8808
    } NDERH;
8809
    union {
8810
        unsigned char BYTE;
8811
        struct {
8812
            unsigned char NDER23:1;
8813
            unsigned char NDER22:1;
8814
            unsigned char NDER21:1;
8815
            unsigned char NDER20:1;
8816
            unsigned char NDER19:1;
8817
            unsigned char NDER18:1;
8818
            unsigned char NDER17:1;
8819
            unsigned char NDER16:1;
8820
        } BIT;
8821
    } NDERL;
8822
    union {
8823
        unsigned char BYTE;
8824
        struct {
8825
            unsigned char POD31:1;
8826
            unsigned char POD30:1;
8827
            unsigned char POD29:1;
8828
            unsigned char POD28:1;
8829
            unsigned char POD27:1;
8830
            unsigned char POD26:1;
8831
            unsigned char POD25:1;
8832
            unsigned char POD24:1;
8833
        } BIT;
8834
    } PODRH;
8835
    union {
8836
        unsigned char BYTE;
8837
        struct {
8838
            unsigned char POD23:1;
8839
            unsigned char POD22:1;
8840
            unsigned char POD21:1;
8841
            unsigned char POD20:1;
8842
            unsigned char POD19:1;
8843
            unsigned char POD18:1;
8844
            unsigned char POD17:1;
8845
            unsigned char POD16:1;
8846
        } BIT;
8847
    } PODRL;
8848
    union {
8849
        unsigned char BYTE;
8850
        struct {
8851
            unsigned char NDR31:1;
8852
            unsigned char NDR30:1;
8853
            unsigned char NDR29:1;
8854
            unsigned char NDR28:1;
8855
            unsigned char NDR27:1;
8856
            unsigned char NDR26:1;
8857
            unsigned char NDR25:1;
8858
            unsigned char NDR24:1;
8859
        } BIT;
8860
    } NDRH;
8861
    union {
8862
        unsigned char BYTE;
8863
        struct {
8864
            unsigned char NDR23:1;
8865
            unsigned char NDR22:1;
8866
            unsigned char NDR21:1;
8867
            unsigned char NDR20:1;
8868
            unsigned char NDR19:1;
8869
            unsigned char NDR18:1;
8870
            unsigned char NDR17:1;
8871
            unsigned char NDR16:1;
8872
        } BIT;
8873
    } NDRL;
8874
    union {
8875
        unsigned char BYTE;
8876
        struct {
8877
            unsigned char :4;
8878
            unsigned char NDR27:1;
8879
            unsigned char NDR26:1;
8880
            unsigned char NDR25:1;
8881
            unsigned char NDR24:1;
8882
        } BIT;
8883
    } NDRH2;
8884
    union {
8885
        unsigned char BYTE;
8886
        struct {
8887
            unsigned char :4;
8888
            unsigned char NDR19:1;
8889
            unsigned char NDR18:1;
8890
            unsigned char NDR17:1;
8891
            unsigned char NDR16:1;
8892
        } BIT;
8893
    } NDRL2;
8894
};
8895
 
8896
struct st_tmr0 {
8897
    union {
8898
        unsigned char BYTE;
8899
        struct {
8900
            unsigned char CMIEB:1;
8901
            unsigned char CMIEA:1;
8902
            unsigned char OVIE:1;
8903
            unsigned char CCLR:2;
8904
            unsigned char :3;
8905
        } BIT;
8906
    } TCR;
8907
    unsigned char wk0[1];
8908
    union {
8909
        unsigned char BYTE;
8910
        struct {
8911
            unsigned char :3;
8912
            unsigned char ADTE:1;
8913
            unsigned char OSB:2;
8914
            unsigned char OSA:2;
8915
        } BIT;
8916
    } TCSR;
8917
    unsigned char wk1[1];
8918
    unsigned char TCORA;
8919
    unsigned char wk2[1];
8920
    unsigned char TCORB;
8921
    unsigned char wk3[1];
8922
    unsigned char TCNT;
8923
    unsigned char wk4[1];
8924
    union {
8925
        unsigned char BYTE;
8926
        struct {
8927
            unsigned char TMRIS:1;
8928
            unsigned char :2;
8929
            unsigned char CSS:2;
8930
            unsigned char CKS:3;
8931
        } BIT;
8932
    } TCCR;
8933
};
8934
 
8935
struct st_tmr1 {
8936
    union {
8937
        unsigned char BYTE;
8938
        struct {
8939
            unsigned char CMIEB:1;
8940
            unsigned char CMIEA:1;
8941
            unsigned char OVIE:1;
8942
            unsigned char CCLR:2;
8943
            unsigned char :3;
8944
        } BIT;
8945
    } TCR;
8946
    unsigned char wk0[1];
8947
    union {
8948
        unsigned char BYTE;
8949
        struct {
8950
            unsigned char :4;
8951
            unsigned char OSB:2;
8952
            unsigned char OSA:2;
8953
        } BIT;
8954
    } TCSR;
8955
    unsigned char wk1[1];
8956
    unsigned char TCORA;
8957
    unsigned char wk2[1];
8958
    unsigned char TCORB;
8959
    unsigned char wk3[1];
8960
    unsigned char TCNT;
8961
    unsigned char wk4[1];
8962
    union {
8963
        unsigned char BYTE;
8964
        struct {
8965
            unsigned char TMRIS:1;
8966
            unsigned char :2;
8967
            unsigned char CSS:2;
8968
            unsigned char CKS:3;
8969
        } BIT;
8970
    } TCCR;
8971
};
8972
 
8973
struct st_tmr01 {
8974
    unsigned short TCORA;
8975
    unsigned short TCORB;
8976
    unsigned short TCNT;
8977
    unsigned short TCCR;
8978
};
8979
 
8980
struct st_sci {
8981
    union {
8982
        unsigned char BYTE;
8983
        struct {
8984
            unsigned char CM:1;
8985
            unsigned char CHR:1;
8986
            unsigned char PE:1;
8987
            unsigned char PM:1;
8988
            unsigned char STOP:1;
8989
            unsigned char MP:1;
8990
            unsigned char CKS:2;
8991
        } BIT;
8992
    } SMR;
8993
    unsigned char BRR;
8994
    union {
8995
        unsigned char BYTE;
8996
        struct {
8997
            unsigned char TIE:1;
8998
            unsigned char RIE:1;
8999
            unsigned char TE:1;
9000
            unsigned char RE:1;
9001
            unsigned char MPIE:1;
9002
            unsigned char TEIE:1;
9003
            unsigned char CKE:2;
9004
        } BIT;
9005
    } SCR;
9006
    unsigned char TDR;
9007
    union {
9008
        unsigned char BYTE;
9009
        struct {
9010
            unsigned char :2;
9011
            unsigned char ORER:1;
9012
            unsigned char FER:1;
9013
            unsigned char PER:1;
9014
            unsigned char TEND:1;
9015
            unsigned char MPB:1;
9016
            unsigned char MPBT:1;
9017
        } BIT;
9018
    } SSR;
9019
    unsigned char RDR;
9020
    union {
9021
        unsigned char BYTE;
9022
        struct {
9023
            unsigned char :4;
9024
            unsigned char SDIR:1;
9025
            unsigned char SINV:1;
9026
            unsigned char :1;
9027
            unsigned char SMIF:1;
9028
        } BIT;
9029
    } SCMR;
9030
    union {
9031
        unsigned char BYTE;
9032
        struct {
9033
            unsigned char :3;
9034
            unsigned char ABCS:1;
9035
            unsigned char :3;
9036
            unsigned char ACS0:1;
9037
        } BIT;
9038
    } SEMR;
9039
};
9040
 
9041
struct st_smci {
9042
    union {
9043
        unsigned char BYTE;
9044
        struct {
9045
            unsigned char GM:1;
9046
            unsigned char BLK:1;
9047
            unsigned char PE:1;
9048
            unsigned char PM:1;
9049
            unsigned char BCP:2;
9050
            unsigned char CKS:2;
9051
        } BIT;
9052
    } SMR;
9053
    unsigned char BRR;
9054
    union {
9055
        unsigned char BYTE;
9056
        struct {
9057
            unsigned char TIE:1;
9058
            unsigned char RIE:1;
9059
            unsigned char TE:1;
9060
            unsigned char RE:1;
9061
            unsigned char :1;
9062
            unsigned char TEIE:1;
9063
            unsigned char CKE:2;
9064
        } BIT;
9065
    } SCR;
9066
    unsigned char TDR;
9067
    union {
9068
        unsigned char BYTE;
9069
        struct {
9070
            unsigned char :2;
9071
            unsigned char ORER:1;
9072
            unsigned char ERS:1;
9073
            unsigned char PER:1;
9074
            unsigned char TEND:1;
9075
            unsigned char :2;
9076
        } BIT;
9077
    } SSR;
9078
    unsigned char RDR;
9079
    union {
9080
        unsigned char BYTE;
9081
        struct {
9082
            unsigned char BCP2:1;
9083
            unsigned char :3;
9084
            unsigned char SDIR:1;
9085
            unsigned char SINV:1;
9086
            unsigned char :1;
9087
            unsigned char SMIF:1;
9088
        } BIT;
9089
    } SCMR;
9090
};
9091
 
9092
struct st_crc {
9093
    union {
9094
        unsigned char BYTE;
9095
        struct {
9096
            unsigned char DORCLR:1;
9097
            unsigned char :4;
9098
            unsigned char LMS:1;
9099
            unsigned char GPS:2;
9100
        } BIT;
9101
    } CRCCR;
9102
    unsigned char CRCDIR;
9103
    unsigned short CRCDOR;
9104
};
9105
 
9106
struct st_riic {
9107
    union {
9108
        unsigned char BYTE;
9109
        struct {
9110
            unsigned char ICE:1;
9111
            unsigned char IICRST:1;
9112
            unsigned char CLO:1;
9113
            unsigned char SOWP:1;
9114
            unsigned char SCLO:1;
9115
            unsigned char SDAO:1;
9116
            unsigned char SCLI:1;
9117
            unsigned char SDAI:1;
9118
        } BIT;
9119
    } ICCR1;
9120
    union {
9121
        unsigned char BYTE;
9122
        struct {
9123
            unsigned char BBSY:1;
9124
            unsigned char MST:1;
9125
            unsigned char TRS:1;
9126
            unsigned char :1;
9127
            unsigned char SP:1;
9128
            unsigned char RS:1;
9129
            unsigned char ST:1;
9130
            unsigned char :1;
9131
        } BIT;
9132
    } ICCR2;
9133
    union {
9134
        unsigned char BYTE;
9135
        struct {
9136
            unsigned char MTWP:1;
9137
            unsigned char CKS:3;
9138
            unsigned char BCWP:1;
9139
            unsigned char BC:3;
9140
        } BIT;
9141
    } ICMR1;
9142
    union {
9143
        unsigned char BYTE;
9144
        struct {
9145
            unsigned char DLCS:1;
9146
            unsigned char SDDL:3;
9147
            unsigned char :1;
9148
            unsigned char TMOH:1;
9149
            unsigned char TMOL:1;
9150
            unsigned char TMOS:1;
9151
        } BIT;
9152
    } ICMR2;
9153
    union {
9154
        unsigned char BYTE;
9155
        struct {
9156
            unsigned char SMBS:1;
9157
            unsigned char WAIT:1;
9158
            unsigned char RDRFS:1;
9159
            unsigned char ACKWP:1;
9160
            unsigned char ACKBT:1;
9161
            unsigned char ACKBR:1;
9162
            unsigned char NF:2;
9163
        } BIT;
9164
    } ICMR3;
9165
    union {
9166
        unsigned char BYTE;
9167
        struct {
9168
            unsigned char FMPE:1;
9169
            unsigned char SCLE:1;
9170
            unsigned char NFE:1;
9171
            unsigned char NACKE:1;
9172
            unsigned char SALE:1;
9173
            unsigned char NALE:1;
9174
            unsigned char MALE:1;
9175
            unsigned char TMOE:1;
9176
        } BIT;
9177
    } ICFER;
9178
    union {
9179
        unsigned char BYTE;
9180
        struct {
9181
            unsigned char HOAE:1;
9182
            unsigned char :1;
9183
            unsigned char DIDE:1;
9184
            unsigned char :1;
9185
            unsigned char GCAE:1;
9186
            unsigned char SAR2E:1;
9187
            unsigned char SAR1E:1;
9188
            unsigned char SAR0E:1;
9189
        } BIT;
9190
    } ICSER;
9191
    union {
9192
        unsigned char BYTE;
9193
        struct {
9194
            unsigned char TIE:1;
9195
            unsigned char TEIE:1;
9196
            unsigned char RIE:1;
9197
            unsigned char NAKIE:1;
9198
            unsigned char SPIE:1;
9199
            unsigned char STIE:1;
9200
            unsigned char ALIE:1;
9201
            unsigned char TMOIE:1;
9202
        } BIT;
9203
    } ICIER;
9204
    union {
9205
        unsigned char BYTE;
9206
        struct {
9207
            unsigned char HOA:1;
9208
            unsigned char :1;
9209
            unsigned char DID:1;
9210
            unsigned char :1;
9211
            unsigned char GCA:1;
9212
            unsigned char AAS2:1;
9213
            unsigned char AAS1:1;
9214
            unsigned char AAS0:1;
9215
        } BIT;
9216
    } ICSR1;
9217
    union {
9218
        unsigned char BYTE;
9219
        struct {
9220
            unsigned char TDRE:1;
9221
            unsigned char TEND:1;
9222
            unsigned char RDRF:1;
9223
            unsigned char NACKF:1;
9224
            unsigned char STOP:1;
9225
            unsigned char START:1;
9226
            unsigned char AL:1;
9227
            unsigned char TMOF:1;
9228
        } BIT;
9229
    } ICSR2;
9230
    union {
9231
        unsigned char BYTE;
9232
        struct {
9233
            unsigned char SVA:7;
9234
            unsigned char SVA0:1;
9235
        } BIT;
9236
    } SARL0;
9237
    union {
9238
        unsigned char BYTE;
9239
        struct {
9240
            unsigned char :5;
9241
            unsigned char SVA:2;
9242
            unsigned char FS:1;
9243
        } BIT;
9244
    } SARU0;
9245
    union {
9246
        unsigned char BYTE;
9247
        struct {
9248
            unsigned char SVA:7;
9249
            unsigned char SVA0:1;
9250
        } BIT;
9251
    } SARL1;
9252
    union {
9253
        unsigned char BYTE;
9254
        struct {
9255
            unsigned char :5;
9256
            unsigned char SVA:2;
9257
            unsigned char FS:1;
9258
        } BIT;
9259
    } SARU1;
9260
    union {
9261
        unsigned char BYTE;
9262
        struct {
9263
            unsigned char SVA:7;
9264
            unsigned char SVA0:1;
9265
        } BIT;
9266
    } SARL2;
9267
    union {
9268
        unsigned char BYTE;
9269
        struct {
9270
            unsigned char :5;
9271
            unsigned char SVA:2;
9272
            unsigned char FS:1;
9273
        } BIT;
9274
    } SARU2;
9275
    union {
9276
        unsigned char BYTE;
9277
        struct {
9278
            unsigned char :3;
9279
            unsigned char BRL:5;
9280
        } BIT;
9281
    } ICBRL;
9282
    union {
9283
        unsigned char BYTE;
9284
        struct {
9285
            unsigned char :3;
9286
            unsigned char BRH:5;
9287
        } BIT;
9288
    } ICBRH;
9289
    unsigned char ICDRT;
9290
    unsigned char ICDRR;
9291
};
9292
 
9293
struct st_rspi {
9294
    union {
9295
        unsigned char BYTE;
9296
        struct {
9297
            unsigned char SPRIE:1;
9298
            unsigned char SPE:1;
9299
            unsigned char SPTIE:1;
9300
            unsigned char SPEIE:1;
9301
            unsigned char MSTR:1;
9302
            unsigned char MODFEN:1;
9303
            unsigned char TXMD:1;
9304
            unsigned char SPMS:1;
9305
        } BIT;
9306
    } SPCR;
9307
    union {
9308
        unsigned char BYTE;
9309
        struct {
9310
            unsigned char :4;
9311
            unsigned char SSLP3:1;
9312
            unsigned char SSLP2:1;
9313
            unsigned char SSLP1:1;
9314
            unsigned char SSLP0:1;
9315
        } BIT;
9316
    } SSLP;
9317
    union {
9318
        unsigned char BYTE;
9319
        struct {
9320
            unsigned char :2;
9321
            unsigned char MOIFE:1;
9322
            unsigned char MOIFV:1;
9323
            unsigned char :1;
9324
            unsigned char SPOM:1;
9325
            unsigned char SPLP2:1;
9326
            unsigned char SPLP:1;
9327
        } BIT;
9328
    } SPPCR;
9329
    union {
9330
        unsigned char BYTE;
9331
        struct {
9332
            unsigned char :4;
9333
            unsigned char PERF:1;
9334
            unsigned char MODF:1;
9335
            unsigned char IDLNF:1;
9336
            unsigned char OVRF:1;
9337
        } BIT;
9338
    } SPSR;
9339
    union {
9340
        unsigned long LONG;
9341
        struct {
9342
            unsigned short H;
9343
            unsigned short L;
9344
        } WORD;
9345
    } SPDR;
9346
    union {
9347
        unsigned char BYTE;
9348
        struct {
9349
            unsigned char :5;
9350
            unsigned char SPSLN:3;
9351
        } BIT;
9352
    } SPSCR;
9353
    union {
9354
        unsigned char BYTE;
9355
        struct {
9356
            unsigned char :1;
9357
            unsigned char SPECM:3;
9358
            unsigned char :1;
9359
            unsigned char SPCP:3;
9360
        } BIT;
9361
    } SPSSR;
9362
    union {
9363
        unsigned char BYTE;
9364
        struct {
9365
            unsigned char SPR7:1;
9366
            unsigned char SPR6:1;
9367
            unsigned char SPR5:1;
9368
            unsigned char SPR4:1;
9369
            unsigned char SPR3:1;
9370
            unsigned char SPR2:1;
9371
            unsigned char SPR1:1;
9372
            unsigned char SPR0:1;
9373
        } BIT;
9374
    } SPBR;
9375
    union {
9376
        unsigned char BYTE;
9377
        struct {
9378
            unsigned char :2;
9379
            unsigned char SPLW:1;
9380
            unsigned char SPRDTD:1;
9381
            unsigned char SLSEL:2;
9382
            unsigned char SPFC:2;
9383
        } BIT;
9384
    } SPDCR;
9385
    union {
9386
        unsigned char BYTE;
9387
        struct {
9388
            unsigned char :5;
9389
            unsigned char SCKDL:3;
9390
        } BIT;
9391
    } SPCKD;
9392
    union {
9393
        unsigned char BYTE;
9394
        struct {
9395
            unsigned char :5;
9396
            unsigned char SLNDL:3;
9397
        } BIT;
9398
    } SSLND;
9399
    union {
9400
        unsigned char BYTE;
9401
        struct {
9402
            unsigned char :5;
9403
            unsigned char SPNDL:3;
9404
        } BIT;
9405
    } SPND;
9406
    union {
9407
        unsigned char BYTE;
9408
        struct {
9409
            unsigned char :4;
9410
            unsigned char PTE:1;
9411
            unsigned char SPIIE:1;
9412
            unsigned char SPOE:1;
9413
            unsigned char SPPE:1;
9414
        } BIT;
9415
    } SPCR2;
9416
    union {
9417
        unsigned short WORD;
9418
        struct {
9419
            unsigned short SCKDEN:1;
9420
            unsigned short SLNDEN:1;
9421
            unsigned short SPNDEN:1;
9422
            unsigned short LSBF:1;
9423
            unsigned short SPB:4;
9424
            unsigned short SSLKP:1;
9425
            unsigned short SSLA:3;
9426
            unsigned short BRDV:2;
9427
            unsigned short CPOL:1;
9428
            unsigned short CPHA:1;
9429
        } BIT;
9430
    } SPCMD0;
9431
    union {
9432
        unsigned short WORD;
9433
        struct {
9434
            unsigned short SCKDEN:1;
9435
            unsigned short SLNDEN:1;
9436
            unsigned short SPNDEN:1;
9437
            unsigned short LSBF:1;
9438
            unsigned short SPB:4;
9439
            unsigned short SSLKP:1;
9440
            unsigned short SSLA:3;
9441
            unsigned short BRDV:2;
9442
            unsigned short CPOL:1;
9443
            unsigned short CPHA:1;
9444
        } BIT;
9445
    } SPCMD1;
9446
    union {
9447
        unsigned short WORD;
9448
        struct {
9449
            unsigned short SCKDEN:1;
9450
            unsigned short SLNDEN:1;
9451
            unsigned short SPNDEN:1;
9452
            unsigned short LSBF:1;
9453
            unsigned short SPB:4;
9454
            unsigned short SSLKP:1;
9455
            unsigned short SSLA:3;
9456
            unsigned short BRDV:2;
9457
            unsigned short CPOL:1;
9458
            unsigned short CPHA:1;
9459
        } BIT;
9460
    } SPCMD2;
9461
    union {
9462
        unsigned short WORD;
9463
        struct {
9464
            unsigned short SCKDEN:1;
9465
            unsigned short SLNDEN:1;
9466
            unsigned short SPNDEN:1;
9467
            unsigned short LSBF:1;
9468
            unsigned short SPB:4;
9469
            unsigned short SSLKP:1;
9470
            unsigned short SSLA:3;
9471
            unsigned short BRDV:2;
9472
            unsigned short CPOL:1;
9473
            unsigned short CPHA:1;
9474
        } BIT;
9475
    } SPCMD3;
9476
    union {
9477
        unsigned short WORD;
9478
        struct {
9479
            unsigned short SCKDEN:1;
9480
            unsigned short SLNDEN:1;
9481
            unsigned short SPNDEN:1;
9482
            unsigned short LSBF:1;
9483
            unsigned short SPB:4;
9484
            unsigned short SSLKP:1;
9485
            unsigned short SSLA:3;
9486
            unsigned short BRDV:2;
9487
            unsigned short CPOL:1;
9488
            unsigned short CPHA:1;
9489
        } BIT;
9490
    } SPCMD4;
9491
    union {
9492
        unsigned short WORD;
9493
        struct {
9494
            unsigned short SCKDEN:1;
9495
            unsigned short SLNDEN:1;
9496
            unsigned short SPNDEN:1;
9497
            unsigned short LSBF:1;
9498
            unsigned short SPB:4;
9499
            unsigned short SSLKP:1;
9500
            unsigned short SSLA:3;
9501
            unsigned short BRDV:2;
9502
            unsigned short CPOL:1;
9503
            unsigned short CPHA:1;
9504
        } BIT;
9505
    } SPCMD5;
9506
    union {
9507
        unsigned short WORD;
9508
        struct {
9509
            unsigned short SCKDEN:1;
9510
            unsigned short SLNDEN:1;
9511
            unsigned short SPNDEN:1;
9512
            unsigned short LSBF:1;
9513
            unsigned short SPB:4;
9514
            unsigned short SSLKP:1;
9515
            unsigned short SSLA:3;
9516
            unsigned short BRDV:2;
9517
            unsigned short CPOL:1;
9518
            unsigned short CPHA:1;
9519
        } BIT;
9520
    } SPCMD6;
9521
    union {
9522
        unsigned short WORD;
9523
        struct {
9524
            unsigned short SCKDEN:1;
9525
            unsigned short SLNDEN:1;
9526
            unsigned short SPNDEN:1;
9527
            unsigned short LSBF:1;
9528
            unsigned short SPB:4;
9529
            unsigned short SSLKP:1;
9530
            unsigned short SSLA:3;
9531
            unsigned short BRDV:2;
9532
            unsigned short CPOL:1;
9533
            unsigned short CPHA:1;
9534
        } BIT;
9535
    } SPCMD7;
9536
};
9537
 
9538
struct st_mtu {
9539
    union {
9540
        unsigned char BYTE;
9541
        struct {
9542
            unsigned char :2;
9543
            unsigned char OE4D:1;
9544
            unsigned char OE4C:1;
9545
            unsigned char OE3D:1;
9546
            unsigned char OE4B:1;
9547
            unsigned char OE4A:1;
9548
            unsigned char OE3B:1;
9549
        } BIT;
9550
    } TOER;
9551
    unsigned char wk0[2];
9552
    union {
9553
        unsigned char BYTE;
9554
        struct {
9555
            unsigned char :1;
9556
            unsigned char BCD:1;
9557
            unsigned char N:1;
9558
            unsigned char P:1;
9559
            unsigned char FB:1;
9560
            unsigned char WF:1;
9561
            unsigned char VF:1;
9562
            unsigned char UF:1;
9563
        } BIT;
9564
    } TGCR;
9565
    union {
9566
        unsigned char BYTE;
9567
        struct {
9568
            unsigned char :1;
9569
            unsigned char PSYE:1;
9570
            unsigned char :2;
9571
            unsigned char TOCL:1;
9572
            unsigned char TOCS:1;
9573
            unsigned char OLSN:1;
9574
            unsigned char OLSP:1;
9575
        } BIT;
9576
    } TOCR1;
9577
    union {
9578
        unsigned char BYTE;
9579
        struct {
9580
            unsigned char BF:2;
9581
            unsigned char OLS3N:1;
9582
            unsigned char OLS3P:1;
9583
            unsigned char OLS2N:1;
9584
            unsigned char OLS2P:1;
9585
            unsigned char OLS1N:1;
9586
            unsigned char OLS1P:1;
9587
        } BIT;
9588
    } TOCR2;
9589
    unsigned char wk1[4];
9590
    unsigned short TCDR;
9591
    unsigned short TDDR;
9592
    unsigned char wk2[8];
9593
    unsigned short TCNTS;
9594
    unsigned short TCBR;
9595
    unsigned char wk3[12];
9596
    union {
9597
        unsigned char BYTE;
9598
        struct {
9599
            unsigned char T3AEN:1;
9600
            unsigned char T3ACOR:3;
9601
            unsigned char T4VEN:1;
9602
            unsigned char T4VCOR:3;
9603
        } BIT;
9604
    } TITCR;
9605
    union {
9606
        unsigned char BYTE;
9607
        struct {
9608
            unsigned char :1;
9609
            unsigned char T3ACNT:3;
9610
            unsigned char :1;
9611
            unsigned char T4VCNT:3;
9612
        } BIT;
9613
    } TITCNT;
9614
    union {
9615
        unsigned char BYTE;
9616
        struct {
9617
            unsigned char :6;
9618
            unsigned char BTE:2;
9619
        } BIT;
9620
    } TBTER;
9621
    unsigned char wk4[1];
9622
    union {
9623
        unsigned char BYTE;
9624
        struct {
9625
            unsigned char :7;
9626
            unsigned char TDRE:1;
9627
        } BIT;
9628
    } TDER;
9629
    unsigned char wk5[1];
9630
    union {
9631
        unsigned char BYTE;
9632
        struct {
9633
            unsigned char :2;
9634
            unsigned char OLS3N:1;
9635
            unsigned char OLS3P:1;
9636
            unsigned char OLS2N:1;
9637
            unsigned char OLS2P:1;
9638
            unsigned char OLS1N:1;
9639
            unsigned char OLS1P:1;
9640
        } BIT;
9641
    } TOLBR;
9642
    unsigned char wk6[41];
9643
    union {
9644
        unsigned char BYTE;
9645
        struct {
9646
            unsigned char CCE:1;
9647
            unsigned char :6;
9648
            unsigned char WRE:1;
9649
        } BIT;
9650
    } TWCR;
9651
    unsigned char wk7[31];
9652
    union {
9653
        unsigned char BYTE;
9654
        struct {
9655
            unsigned char CST4:1;
9656
            unsigned char CST3:1;
9657
            unsigned char :3;
9658
            unsigned char CST2:1;
9659
            unsigned char CST1:1;
9660
            unsigned char CST0:1;
9661
        } BIT;
9662
    } TSTR;
9663
    union {
9664
        unsigned char BYTE;
9665
        struct {
9666
            unsigned char SYNC4:1;
9667
            unsigned char SYNC3:1;
9668
            unsigned char :3;
9669
            unsigned char SYNC2:1;
9670
            unsigned char SYNC1:1;
9671
            unsigned char SYNC0:1;
9672
        } BIT;
9673
    } TSYR;
9674
    unsigned char wk8[2];
9675
    union {
9676
        unsigned char BYTE;
9677
        struct {
9678
            unsigned char :7;
9679
            unsigned char RWE:1;
9680
        } BIT;
9681
    } TRWER;
9682
};
9683
 
9684
struct st_mtu0 {
9685
    union {
9686
        unsigned char BYTE;
9687
        struct {
9688
            unsigned char CCLR:3;
9689
            unsigned char CKEG:2;
9690
            unsigned char TPSC:3;
9691
        } BIT;
9692
    } TCR;
9693
    union {
9694
        unsigned char BYTE;
9695
        struct {
9696
            unsigned char :1;
9697
            unsigned char BFE:1;
9698
            unsigned char BFB:1;
9699
            unsigned char BFA:1;
9700
            unsigned char MD:4;
9701
        } BIT;
9702
    } TMDR;
9703
    union {
9704
        unsigned char BYTE;
9705
        struct {
9706
            unsigned char IOB:4;
9707
            unsigned char IOA:4;
9708
        } BIT;
9709
    } TIORH;
9710
    union {
9711
        unsigned char BYTE;
9712
        struct {
9713
            unsigned char IOD:4;
9714
            unsigned char IOC:4;
9715
        } BIT;
9716
    } TIORL;
9717
    union {
9718
        unsigned char BYTE;
9719
        struct {
9720
            unsigned char TTGE:1;
9721
            unsigned char :2;
9722
            unsigned char TCIEV:1;
9723
            unsigned char TGIED:1;
9724
            unsigned char TGIEC:1;
9725
            unsigned char TGIEB:1;
9726
            unsigned char TGIEA:1;
9727
        } BIT;
9728
    } TIER;
9729
    unsigned char TSR;
9730
    unsigned short TCNT;
9731
    unsigned short TGRA;
9732
    unsigned short TGRB;
9733
    unsigned short TGRC;
9734
    unsigned short TGRD;
9735
    unsigned char wk0[16];
9736
    unsigned short TGRE;
9737
    unsigned short TGRF;
9738
    union {
9739
        unsigned char BYTE;
9740
        struct {
9741
            unsigned char :6;
9742
            unsigned char TGIEF:1;
9743
            unsigned char TGIEE:1;
9744
        } BIT;
9745
    } TIER2;
9746
    unsigned char wk1[1];
9747
    union {
9748
        unsigned char BYTE;
9749
        struct {
9750
            unsigned char :5;
9751
            unsigned char TTSE:1;
9752
            unsigned char TTSB:1;
9753
            unsigned char TTSA:1;
9754
        } BIT;
9755
    } TBTM;
9756
};
9757
 
9758
struct st_mtu1 {
9759
    union {
9760
        unsigned char BYTE;
9761
        struct {
9762
            unsigned char CCLR:3;
9763
            unsigned char CKEG:2;
9764
            unsigned char TPSC:3;
9765
        } BIT;
9766
    } TCR;
9767
    union {
9768
        unsigned char BYTE;
9769
        struct {
9770
            unsigned char :4;
9771
            unsigned char MD:4;
9772
        } BIT;
9773
    } TMDR;
9774
    union {
9775
        unsigned char BYTE;
9776
        struct {
9777
            unsigned char IOB:4;
9778
            unsigned char IOA:4;
9779
        } BIT;
9780
    } TIOR;
9781
    unsigned char wk0[1];
9782
    union {
9783
        unsigned char BYTE;
9784
        struct {
9785
            unsigned char TTGE:1;
9786
            unsigned char :1;
9787
            unsigned char TCIEU:1;
9788
            unsigned char TCIEV:1;
9789
            unsigned char :2;
9790
            unsigned char TGIEB:1;
9791
            unsigned char TGIEA:1;
9792
        } BIT;
9793
    } TIER;
9794
    union {
9795
        unsigned char BYTE;
9796
        struct {
9797
            unsigned char TCFD:1;
9798
            unsigned char :7;
9799
        } BIT;
9800
    } TSR;
9801
    unsigned short TCNT;
9802
    unsigned short TGRA;
9803
    unsigned short TGRB;
9804
    unsigned char wk1[4];
9805
    union {
9806
        unsigned char BYTE;
9807
        struct {
9808
            unsigned char :4;
9809
            unsigned char I2BE:1;
9810
            unsigned char I2AE:1;
9811
            unsigned char I1BE:1;
9812
            unsigned char I1AE:1;
9813
        } BIT;
9814
    } TICCR;
9815
};
9816
 
9817
struct st_mtu2 {
9818
    union {
9819
        unsigned char BYTE;
9820
        struct {
9821
            unsigned char CCLR:3;
9822
            unsigned char CKEG:2;
9823
            unsigned char TPSC:3;
9824
        } BIT;
9825
    } TCR;
9826
    union {
9827
        unsigned char BYTE;
9828
        struct {
9829
            unsigned char :4;
9830
            unsigned char MD:4;
9831
        } BIT;
9832
    } TMDR;
9833
    union {
9834
        unsigned char BYTE;
9835
        struct {
9836
            unsigned char IOB:4;
9837
            unsigned char IOA:4;
9838
        } BIT;
9839
    } TIOR;
9840
    unsigned char wk0[1];
9841
    union {
9842
        unsigned char BYTE;
9843
        struct {
9844
            unsigned char TTGE:1;
9845
            unsigned char :1;
9846
            unsigned char TCIEU:1;
9847
            unsigned char TCIEV:1;
9848
            unsigned char :2;
9849
            unsigned char TGIEB:1;
9850
            unsigned char TGIEA:1;
9851
        } BIT;
9852
    } TIER;
9853
    union {
9854
        unsigned char BYTE;
9855
        struct {
9856
            unsigned char TCFD:1;
9857
            unsigned char :7;
9858
        } BIT;
9859
    } TSR;
9860
    unsigned short TCNT;
9861
    unsigned short TGRA;
9862
    unsigned short TGRB;
9863
};
9864
 
9865
struct st_mtu3 {
9866
    union {
9867
        unsigned char BYTE;
9868
        struct {
9869
            unsigned char CCLR:3;
9870
            unsigned char CKEG:2;
9871
            unsigned char TPSC:3;
9872
        } BIT;
9873
    } TCR;
9874
    unsigned char wk0[1];
9875
    union {
9876
        unsigned char BYTE;
9877
        struct {
9878
            unsigned char :1;
9879
            unsigned char BFE:1;
9880
            unsigned char BFB:1;
9881
            unsigned char BFA:1;
9882
            unsigned char MD:4;
9883
        } BIT;
9884
    } TMDR;
9885
    unsigned char wk1[1];
9886
    union {
9887
        unsigned char BYTE;
9888
        struct {
9889
            unsigned char IOB:4;
9890
            unsigned char IOA:4;
9891
        } BIT;
9892
    } TIORH;
9893
    union {
9894
        unsigned char BYTE;
9895
        struct {
9896
            unsigned char IOD:4;
9897
            unsigned char IOC:4;
9898
        } BIT;
9899
    } TIORL;
9900
    unsigned char wk2[2];
9901
    union {
9902
        unsigned char BYTE;
9903
        struct {
9904
            unsigned char TTGE:1;
9905
            unsigned char TTGE2:1;
9906
            unsigned char TCIEU:1;
9907
            unsigned char TCIEV:1;
9908
            unsigned char TGIED:1;
9909
            unsigned char TGIEC:1;
9910
            unsigned char TGIEB:1;
9911
            unsigned char TGIEA:1;
9912
        } BIT;
9913
    } TIER;
9914
    unsigned char wk3[7];
9915
    unsigned short TCNT;
9916
    unsigned char wk4[6];
9917
    unsigned short TGRA;
9918
    unsigned short TGRB;
9919
    unsigned char wk5[8];
9920
    unsigned short TGRC;
9921
    unsigned short TGRD;
9922
    unsigned char wk6[4];
9923
    union {
9924
        unsigned char BYTE;
9925
        struct {
9926
            unsigned char TCFD:1;
9927
            unsigned char :7;
9928
        } BIT;
9929
    } TSR;
9930
    unsigned char wk7[11];
9931
    union {
9932
        unsigned char BYTE;
9933
        struct {
9934
            unsigned char :5;
9935
            unsigned char TTSE:1;
9936
            unsigned char TTSB:1;
9937
            unsigned char TTSA:1;
9938
        } BIT;
9939
    } TBTM;
9940
};
9941
 
9942
struct st_mtu4 {
9943
    unsigned char DMMY;
9944
    union {
9945
        unsigned char BYTE;
9946
        struct {
9947
            unsigned char CCLR:3;
9948
            unsigned char CKEG:2;
9949
            unsigned char TPSC:3;
9950
        } BIT;
9951
    } TCR;
9952
    unsigned char wk0[1];
9953
    union {
9954
        unsigned char BYTE;
9955
        struct {
9956
            unsigned char :1;
9957
            unsigned char BFE:1;
9958
            unsigned char BFB:1;
9959
            unsigned char BFA:1;
9960
            unsigned char MD:4;
9961
        } BIT;
9962
    } TMDR;
9963
    unsigned char wk1[2];
9964
    union {
9965
        unsigned char BYTE;
9966
        struct {
9967
            unsigned char IOB:4;
9968
            unsigned char IOA:4;
9969
        } BIT;
9970
    } TIORH;
9971
    union {
9972
        unsigned char BYTE;
9973
        struct {
9974
            unsigned char IOD:4;
9975
            unsigned char IOC:4;
9976
        } BIT;
9977
    } TIORL;
9978
    unsigned char wk2[1];
9979
    union {
9980
        unsigned char BYTE;
9981
        struct {
9982
            unsigned char TTGE:1;
9983
            unsigned char TTGE2:1;
9984
            unsigned char TCIEU:1;
9985
            unsigned char TCIEV:1;
9986
            unsigned char TGIED:1;
9987
            unsigned char TGIEC:1;
9988
            unsigned char TGIEB:1;
9989
            unsigned char TGIEA:1;
9990
        } BIT;
9991
    } TIER;
9992
    unsigned char wk3[8];
9993
    unsigned short TCNT;
9994
    unsigned char wk4[8];
9995
    unsigned short TGRA;
9996
    unsigned short TGRB;
9997
    unsigned char wk5[8];
9998
    unsigned short TGRC;
9999
    unsigned short TGRD;
10000
    unsigned char wk6[1];
10001
    union {
10002
        unsigned char BYTE;
10003
        struct {
10004
            unsigned char TCFD:1;
10005
            unsigned char :7;
10006
        } BIT;
10007
    } TSR;
10008
    unsigned char wk7[11];
10009
    union {
10010
        unsigned char BYTE;
10011
        struct {
10012
            unsigned char :5;
10013
            unsigned char TTSE:1;
10014
            unsigned char TTSB:1;
10015
            unsigned char TTSA:1;
10016
        } BIT;
10017
    } TBTM;
10018
    unsigned char wk8[6];
10019
    union {
10020
        unsigned short WORD;
10021
        struct {
10022
            unsigned short BF:2;
10023
            unsigned short :6;
10024
            unsigned short UT4AE:1;
10025
            unsigned short DT4AE:1;
10026
            unsigned short UT4BE:1;
10027
            unsigned short DT4BE:1;
10028
            unsigned short ITA3AE:1;
10029
            unsigned short ITA4VE:1;
10030
            unsigned short ITB3AE:1;
10031
            unsigned short ITB4VE:1;
10032
        } BIT;
10033
    } TADCR;
10034
    unsigned char wk9[2];
10035
    unsigned short TADCORA;
10036
    unsigned short TADCORB;
10037
    unsigned short TADCOBRA;
10038
    unsigned short TADCOBRB;
10039
};
10040
 
10041
struct st_mtu5 {
10042
    unsigned short TCNTU;
10043
    unsigned short TGRU;
10044
    union {
10045
        unsigned char BYTE;
10046
        struct {
10047
            unsigned char CCLR:3;
10048
            unsigned char CKEG:2;
10049
            unsigned char TPSC:3;
10050
        } BIT;
10051
    } TCRU;
10052
    unsigned char wk0[1];
10053
    union {
10054
        unsigned char BYTE;
10055
        struct {
10056
            unsigned char :3;
10057
            unsigned char IOC:5;
10058
        } BIT;
10059
    } TIORU;
10060
    unsigned char wk1[9];
10061
    unsigned short TCNTV;
10062
    unsigned short TGRV;
10063
    union {
10064
        unsigned char BYTE;
10065
        struct {
10066
            unsigned char CCLR:3;
10067
            unsigned char CKEG:2;
10068
            unsigned char TPSC:3;
10069
        } BIT;
10070
    } TCRV;
10071
    union {
10072
        unsigned char BYTE;
10073
        struct {
10074
            unsigned char :3;
10075
            unsigned char IOC:5;
10076
        } BIT;
10077
    } TIORV;
10078
    unsigned char wk2[9];
10079
    unsigned short TCNTW;
10080
    unsigned short TGRW;
10081
    union {
10082
        unsigned char BYTE;
10083
        struct {
10084
            unsigned char CCLR:3;
10085
            unsigned char CKEG:2;
10086
            unsigned char TPSC:3;
10087
        } BIT;
10088
    } TCRW;
10089
    unsigned char wk3[1];
10090
    union {
10091
        unsigned char BYTE;
10092
        struct {
10093
            unsigned char :3;
10094
            unsigned char IOC:5;
10095
        } BIT;
10096
    } TIORW;
10097
    unsigned char wk4[11];
10098
    union {
10099
        unsigned char BYTE;
10100
        struct {
10101
            unsigned char :5;
10102
            unsigned char TGIE5U:1;
10103
            unsigned char TGIE5V:1;
10104
            unsigned char TGIE5W:1;
10105
        } BIT;
10106
    } TIER;
10107
    unsigned char wk5[1];
10108
    union {
10109
        unsigned char BYTE;
10110
        struct {
10111
            unsigned char :5;
10112
            unsigned char CSTU5:1;
10113
            unsigned char CSTV5:1;
10114
            unsigned char CSTW5:1;
10115
        } BIT;
10116
    } TSTR;
10117
    unsigned char wk6[1];
10118
    union {
10119
        unsigned char BYTE;
10120
        struct {
10121
            unsigned char :5;
10122
            unsigned char CMPCLR5U:1;
10123
            unsigned char CMPCLR5V:1;
10124
            unsigned char CMPCLR5W:1;
10125
        } BIT;
10126
    } TCNTCMPCLR;
10127
};
10128
 
10129
struct st_poe {
10130
    union {
10131
        unsigned short WORD;
10132
        struct {
10133
            unsigned short POE3F:1;
10134
            unsigned short POE2F:1;
10135
            unsigned short POE1F:1;
10136
            unsigned short POE0F:1;
10137
            unsigned short :3;
10138
            unsigned short PIE1:1;
10139
            unsigned short POE3M:2;
10140
            unsigned short POE2M:2;
10141
            unsigned short POE1M:2;
10142
            unsigned short POE0M:2;
10143
        } BIT;
10144
    } ICSR1;
10145
    union {
10146
        unsigned short WORD;
10147
        struct {
10148
            unsigned short OSF1:1;
10149
            unsigned short :5;
10150
            unsigned short OCE1:1;
10151
            unsigned short OIE1:1;
10152
            unsigned short :8;
10153
        } BIT;
10154
    } OCSR1;
10155
    union {
10156
        unsigned short WORD;
10157
        struct {
10158
            unsigned short POE7F:1;
10159
            unsigned short POE6F:1;
10160
            unsigned short POE5F:1;
10161
            unsigned short POE4F:1;
10162
            unsigned short :3;
10163
            unsigned short PIE2:1;
10164
            unsigned short POE7M:2;
10165
            unsigned short POE6M:2;
10166
            unsigned short POE5M:2;
10167
            unsigned short POE4M:2;
10168
        } BIT;
10169
    } ICSR2;
10170
    union {
10171
        unsigned short WORD;
10172
        struct {
10173
            unsigned short OSF2:1;
10174
            unsigned short :5;
10175
            unsigned short OCE2:1;
10176
            unsigned short OIE2:1;
10177
            unsigned short :8;
10178
        } BIT;
10179
    } OCSR2;
10180
    union {
10181
        unsigned short WORD;
10182
        struct {
10183
            unsigned short :3;
10184
            unsigned short POE8F:1;
10185
            unsigned short :2;
10186
            unsigned short POE8E:1;
10187
            unsigned short PIE3:1;
10188
            unsigned short :6;
10189
            unsigned short POE8M:2;
10190
        } BIT;
10191
    } ICSR3;
10192
    union {
10193
        unsigned char BYTE;
10194
        struct {
10195
            unsigned char :4;
10196
            unsigned char CH6HIZ:1;
10197
            unsigned char CH910HIZ:1;
10198
            unsigned char CH0HIZ:1;
10199
            unsigned char CH34HIZ:1;
10200
        } BIT;
10201
    } SPOER;
10202
    union {
10203
        unsigned char BYTE;
10204
        struct {
10205
            unsigned char PE7ZE:1;
10206
            unsigned char PE6ZE:1;
10207
            unsigned char PE5ZE:1;
10208
            unsigned char PE4ZE:1;
10209
            unsigned char PE3ZE:1;
10210
            unsigned char PE2ZE:1;
10211
            unsigned char PE1ZE:1;
10212
            unsigned char PE0ZE:1;
10213
        } BIT;
10214
    } POECR1;
10215
    union {
10216
        unsigned short WORD;
10217
        struct {
10218
            unsigned short :1;
10219
            unsigned short P1CZEA:1;
10220
            unsigned short P2CZEA:1;
10221
            unsigned short P3CZEA:1;
10222
            unsigned short :1;
10223
            unsigned short P1CZEB:1;
10224
            unsigned short P2CZEB:1;
10225
            unsigned short P3CZEB:1;
10226
            unsigned short :1;
10227
            unsigned short P4CZE:1;
10228
            unsigned short P5CZE:1;
10229
            unsigned short P6CZE:1;
10230
            unsigned short :4;
10231
        } BIT;
10232
    } POECR2;
10233
    union {
10234
        unsigned short WORD;
10235
        struct {
10236
            unsigned short :3;
10237
            unsigned short POE9F:1;
10238
            unsigned short :2;
10239
            unsigned short POE9E:1;
10240
            unsigned short PIE4:1;
10241
            unsigned short :6;
10242
            unsigned short POE9M:2;
10243
        } BIT;
10244
    } ICSR4;
10245
};
10246
 
10247
struct st_s12ad {
10248
    union {
10249
        unsigned char BYTE;
10250
        struct {
10251
            unsigned char ADST:1;
10252
            unsigned char ADCS:1;
10253
            unsigned char :1;
10254
            unsigned char ADIE:1;
10255
            unsigned char CKS:2;
10256
            unsigned char TRGE:1;
10257
            unsigned char EXTRG:1;
10258
        } BIT;
10259
    } ADCSR;
10260
    unsigned char wk0[3];
10261
    union {
10262
        unsigned short WORD;
10263
        struct {
10264
            unsigned short :8;
10265
            unsigned short ANS:8;
10266
        } BIT;
10267
    } ADANS;
10268
    unsigned char wk1[2];
10269
    union {
10270
        unsigned short WORD;
10271
        struct {
10272
            unsigned short :8;
10273
            unsigned short ADS:8;
10274
        } BIT;
10275
    } ADADS;
10276
    unsigned char wk2[2];
10277
    union {
10278
        unsigned char BYTE;
10279
        struct {
10280
            unsigned char :6;
10281
            unsigned char ADC:2;
10282
        } BIT;
10283
    } ADADC;
10284
    unsigned char wk3[1];
10285
    union {
10286
        unsigned short WORD;
10287
        struct {
10288
            unsigned short ADRFMT:1;
10289
            unsigned short :9;
10290
            unsigned short ACE:1;
10291
            unsigned short :5;
10292
        } BIT;
10293
    } ADCER;
10294
    union {
10295
        unsigned char BYTE;
10296
        struct {
10297
            unsigned char :4;
10298
            unsigned char ADSTRS:4;
10299
        } BIT;
10300
    } ADSTRGR;
10301
    unsigned char wk4[15];
10302
    unsigned short ADDRA;
10303
    unsigned short ADDRB;
10304
    unsigned short ADDRC;
10305
    unsigned short ADDRD;
10306
    unsigned short ADDRE;
10307
    unsigned short ADDRF;
10308
    unsigned short ADDRG;
10309
    unsigned short ADDRH;
10310
};
10311
 
10312
struct st_port0 {
10313
    union {
10314
        unsigned char BYTE;
10315
        struct {
10316
            unsigned char B7:1;
10317
            unsigned char :1;
10318
            unsigned char B5:1;
10319
            unsigned char :1;
10320
            unsigned char B3:1;
10321
            unsigned char B2:1;
10322
            unsigned char B1:1;
10323
            unsigned char B0:1;
10324
        } BIT;
10325
    } DDR;
10326
    unsigned char wk0[31];
10327
    union {
10328
        unsigned char BYTE;
10329
        struct {
10330
            unsigned char B7:1;
10331
            unsigned char :1;
10332
            unsigned char B5:1;
10333
            unsigned char :1;
10334
            unsigned char B3:1;
10335
            unsigned char B2:1;
10336
            unsigned char B1:1;
10337
            unsigned char B0:1;
10338
        } BIT;
10339
    } DR;
10340
    unsigned char wk1[31];
10341
    union {
10342
        unsigned char BYTE;
10343
        struct {
10344
            unsigned char B7:1;
10345
            unsigned char :1;
10346
            unsigned char B5:1;
10347
            unsigned char :1;
10348
            unsigned char B3:1;
10349
            unsigned char B2:1;
10350
            unsigned char B1:1;
10351
            unsigned char B0:1;
10352
        } BIT;
10353
    } PORT;
10354
    unsigned char wk2[31];
10355
    union {
10356
        unsigned char BYTE;
10357
        struct {
10358
            unsigned char B7:1;
10359
            unsigned char :1;
10360
            unsigned char B5:1;
10361
            unsigned char :1;
10362
            unsigned char B3:1;
10363
            unsigned char B2:1;
10364
            unsigned char B1:1;
10365
            unsigned char B0:1;
10366
        } BIT;
10367
    } ICR;
10368
    unsigned char wk3[31];
10369
    union {
10370
        unsigned char BYTE;
10371
        struct {
10372
            unsigned char B7:1;
10373
            unsigned char :1;
10374
            unsigned char B5:1;
10375
            unsigned char :1;
10376
            unsigned char B3:1;
10377
            unsigned char B2:1;
10378
            unsigned char B1:1;
10379
            unsigned char B0:1;
10380
        } BIT;
10381
    } ODR;
10382
};
10383
 
10384
struct st_port1 {
10385
    union {
10386
        unsigned char BYTE;
10387
        struct {
10388
            unsigned char B7:1;
10389
            unsigned char B6:1;
10390
            unsigned char B5:1;
10391
            unsigned char B4:1;
10392
            unsigned char B3:1;
10393
            unsigned char B2:1;
10394
            unsigned char B1:1;
10395
            unsigned char B0:1;
10396
        } BIT;
10397
    } DDR;
10398
    unsigned char wk0[31];
10399
    union {
10400
        unsigned char BYTE;
10401
        struct {
10402
            unsigned char B7:1;
10403
            unsigned char B6:1;
10404
            unsigned char B5:1;
10405
            unsigned char B4:1;
10406
            unsigned char B3:1;
10407
            unsigned char B2:1;
10408
            unsigned char B1:1;
10409
            unsigned char B0:1;
10410
        } BIT;
10411
    } DR;
10412
    unsigned char wk1[31];
10413
    union {
10414
        unsigned char BYTE;
10415
        struct {
10416
            unsigned char B7:1;
10417
            unsigned char B6:1;
10418
            unsigned char B5:1;
10419
            unsigned char B4:1;
10420
            unsigned char B3:1;
10421
            unsigned char B2:1;
10422
            unsigned char B1:1;
10423
            unsigned char B0:1;
10424
        } BIT;
10425
    } PORT;
10426
    unsigned char wk2[31];
10427
    union {
10428
        unsigned char BYTE;
10429
        struct {
10430
            unsigned char B7:1;
10431
            unsigned char B6:1;
10432
            unsigned char B5:1;
10433
            unsigned char B4:1;
10434
            unsigned char B3:1;
10435
            unsigned char B2:1;
10436
            unsigned char B1:1;
10437
            unsigned char B0:1;
10438
        } BIT;
10439
    } ICR;
10440
    unsigned char wk3[31];
10441
    union {
10442
        unsigned char BYTE;
10443
        struct {
10444
            unsigned char B7:1;
10445
            unsigned char B6:1;
10446
            unsigned char B5:1;
10447
            unsigned char B4:1;
10448
            unsigned char B3:1;
10449
            unsigned char B2:1;
10450
            unsigned char B1:1;
10451
            unsigned char B0:1;
10452
        } BIT;
10453
    } ODR;
10454
};
10455
 
10456
struct st_port2 {
10457
    union {
10458
        unsigned char BYTE;
10459
        struct {
10460
            unsigned char B7:1;
10461
            unsigned char B6:1;
10462
            unsigned char B5:1;
10463
            unsigned char B4:1;
10464
            unsigned char B3:1;
10465
            unsigned char B2:1;
10466
            unsigned char B1:1;
10467
            unsigned char B0:1;
10468
        } BIT;
10469
    } DDR;
10470
    unsigned char wk0[31];
10471
    union {
10472
        unsigned char BYTE;
10473
        struct {
10474
            unsigned char B7:1;
10475
            unsigned char B6:1;
10476
            unsigned char B5:1;
10477
            unsigned char B4:1;
10478
            unsigned char B3:1;
10479
            unsigned char B2:1;
10480
            unsigned char B1:1;
10481
            unsigned char B0:1;
10482
        } BIT;
10483
    } DR;
10484
    unsigned char wk1[31];
10485
    union {
10486
        unsigned char BYTE;
10487
        struct {
10488
            unsigned char B7:1;
10489
            unsigned char B6:1;
10490
            unsigned char B5:1;
10491
            unsigned char B4:1;
10492
            unsigned char B3:1;
10493
            unsigned char B2:1;
10494
            unsigned char B1:1;
10495
            unsigned char B0:1;
10496
        } BIT;
10497
    } PORT;
10498
    unsigned char wk2[31];
10499
    union {
10500
        unsigned char BYTE;
10501
        struct {
10502
            unsigned char B7:1;
10503
            unsigned char B6:1;
10504
            unsigned char B5:1;
10505
            unsigned char B4:1;
10506
            unsigned char B3:1;
10507
            unsigned char B2:1;
10508
            unsigned char B1:1;
10509
            unsigned char B0:1;
10510
        } BIT;
10511
    } ICR;
10512
    unsigned char wk3[31];
10513
    union {
10514
        unsigned char BYTE;
10515
        struct {
10516
            unsigned char B7:1;
10517
            unsigned char B6:1;
10518
            unsigned char B5:1;
10519
            unsigned char B4:1;
10520
            unsigned char B3:1;
10521
            unsigned char B2:1;
10522
            unsigned char B1:1;
10523
            unsigned char B0:1;
10524
        } BIT;
10525
    } ODR;
10526
};
10527
 
10528
struct st_port3 {
10529
    union {
10530
        unsigned char BYTE;
10531
        struct {
10532
            unsigned char :3;
10533
            unsigned char B4:1;
10534
            unsigned char B3:1;
10535
            unsigned char B2:1;
10536
            unsigned char B1:1;
10537
            unsigned char B0:1;
10538
        } BIT;
10539
    } DDR;
10540
    unsigned char wk0[31];
10541
    union {
10542
        unsigned char BYTE;
10543
        struct {
10544
            unsigned char :3;
10545
            unsigned char B4:1;
10546
            unsigned char B3:1;
10547
            unsigned char B2:1;
10548
            unsigned char B1:1;
10549
            unsigned char B0:1;
10550
        } BIT;
10551
    } DR;
10552
    unsigned char wk1[31];
10553
    union {
10554
        unsigned char BYTE;
10555
        struct {
10556
            unsigned char :2;
10557
            unsigned char B5:1;
10558
            unsigned char B4:1;
10559
            unsigned char B3:1;
10560
            unsigned char B2:1;
10561
            unsigned char B1:1;
10562
            unsigned char B0:1;
10563
        } BIT;
10564
    } PORT;
10565
    unsigned char wk2[31];
10566
    union {
10567
        unsigned char BYTE;
10568
        struct {
10569
            unsigned char :3;
10570
            unsigned char B4:1;
10571
            unsigned char B3:1;
10572
            unsigned char B2:1;
10573
            unsigned char B1:1;
10574
            unsigned char B0:1;
10575
        } BIT;
10576
    } ICR;
10577
    unsigned char wk3[31];
10578
    union {
10579
        unsigned char BYTE;
10580
        struct {
10581
            unsigned char :3;
10582
            unsigned char B4:1;
10583
            unsigned char B3:1;
10584
            unsigned char B2:1;
10585
            unsigned char B1:1;
10586
            unsigned char B0:1;
10587
        } BIT;
10588
    } ODR;
10589
};
10590
 
10591
struct st_port4 {
10592
    union {
10593
        unsigned char BYTE;
10594
        struct {
10595
            unsigned char B7:1;
10596
            unsigned char B6:1;
10597
            unsigned char B5:1;
10598
            unsigned char B4:1;
10599
            unsigned char B3:1;
10600
            unsigned char B2:1;
10601
            unsigned char B1:1;
10602
            unsigned char B0:1;
10603
        } BIT;
10604
    } DDR;
10605
    unsigned char wk0[31];
10606
    union {
10607
        unsigned char BYTE;
10608
        struct {
10609
            unsigned char B7:1;
10610
            unsigned char B6:1;
10611
            unsigned char B5:1;
10612
            unsigned char B4:1;
10613
            unsigned char B3:1;
10614
            unsigned char B2:1;
10615
            unsigned char B1:1;
10616
            unsigned char B0:1;
10617
        } BIT;
10618
    } DR;
10619
    unsigned char wk1[31];
10620
    union {
10621
        unsigned char BYTE;
10622
        struct {
10623
            unsigned char B7:1;
10624
            unsigned char B6:1;
10625
            unsigned char B5:1;
10626
            unsigned char B4:1;
10627
            unsigned char B3:1;
10628
            unsigned char B2:1;
10629
            unsigned char B1:1;
10630
            unsigned char B0:1;
10631
        } BIT;
10632
    } PORT;
10633
    unsigned char wk2[31];
10634
    union {
10635
        unsigned char BYTE;
10636
        struct {
10637
            unsigned char B7:1;
10638
            unsigned char B6:1;
10639
            unsigned char B5:1;
10640
            unsigned char B4:1;
10641
            unsigned char B3:1;
10642
            unsigned char B2:1;
10643
            unsigned char B1:1;
10644
            unsigned char B0:1;
10645
        } BIT;
10646
    } ICR;
10647
};
10648
 
10649
struct st_port5 {
10650
    union {
10651
        unsigned char BYTE;
10652
        struct {
10653
            unsigned char B7:1;
10654
            unsigned char B6:1;
10655
            unsigned char B5:1;
10656
            unsigned char B4:1;
10657
            unsigned char B3:1;
10658
            unsigned char B2:1;
10659
            unsigned char B1:1;
10660
            unsigned char B0:1;
10661
        } BIT;
10662
    } DDR;
10663
    unsigned char wk0[31];
10664
    union {
10665
        unsigned char BYTE;
10666
        struct {
10667
            unsigned char B7:1;
10668
            unsigned char B6:1;
10669
            unsigned char B5:1;
10670
            unsigned char B4:1;
10671
            unsigned char B3:1;
10672
            unsigned char B2:1;
10673
            unsigned char B1:1;
10674
            unsigned char B0:1;
10675
        } BIT;
10676
    } DR;
10677
    unsigned char wk1[31];
10678
    union {
10679
        unsigned char BYTE;
10680
        struct {
10681
            unsigned char B7:1;
10682
            unsigned char B6:1;
10683
            unsigned char B5:1;
10684
            unsigned char B4:1;
10685
            unsigned char B3:1;
10686
            unsigned char B2:1;
10687
            unsigned char B1:1;
10688
            unsigned char B0:1;
10689
        } BIT;
10690
    } PORT;
10691
    unsigned char wk2[31];
10692
    union {
10693
        unsigned char BYTE;
10694
        struct {
10695
            unsigned char B7:1;
10696
            unsigned char B6:1;
10697
            unsigned char B5:1;
10698
            unsigned char B4:1;
10699
            unsigned char B3:1;
10700
            unsigned char B2:1;
10701
            unsigned char B1:1;
10702
            unsigned char B0:1;
10703
        } BIT;
10704
    } ICR;
10705
};
10706
 
10707
struct st_port6 {
10708
    union {
10709
        unsigned char BYTE;
10710
        struct {
10711
            unsigned char B7:1;
10712
            unsigned char B6:1;
10713
            unsigned char B5:1;
10714
            unsigned char B4:1;
10715
            unsigned char B3:1;
10716
            unsigned char B2:1;
10717
            unsigned char B1:1;
10718
            unsigned char B0:1;
10719
        } BIT;
10720
    } DDR;
10721
    unsigned char wk0[31];
10722
    union {
10723
        unsigned char BYTE;
10724
        struct {
10725
            unsigned char B7:1;
10726
            unsigned char B6:1;
10727
            unsigned char B5:1;
10728
            unsigned char B4:1;
10729
            unsigned char B3:1;
10730
            unsigned char B2:1;
10731
            unsigned char B1:1;
10732
            unsigned char B0:1;
10733
        } BIT;
10734
    } DR;
10735
    unsigned char wk1[31];
10736
    union {
10737
        unsigned char BYTE;
10738
        struct {
10739
            unsigned char B7:1;
10740
            unsigned char B6:1;
10741
            unsigned char B5:1;
10742
            unsigned char B4:1;
10743
            unsigned char B3:1;
10744
            unsigned char B2:1;
10745
            unsigned char B1:1;
10746
            unsigned char B0:1;
10747
        } BIT;
10748
    } PORT;
10749
    unsigned char wk2[31];
10750
    union {
10751
        unsigned char BYTE;
10752
        struct {
10753
            unsigned char B7:1;
10754
            unsigned char B6:1;
10755
            unsigned char B5:1;
10756
            unsigned char B4:1;
10757
            unsigned char B3:1;
10758
            unsigned char B2:1;
10759
            unsigned char B1:1;
10760
            unsigned char B0:1;
10761
        } BIT;
10762
    } ICR;
10763
};
10764
 
10765
struct st_port7 {
10766
    union {
10767
        unsigned char BYTE;
10768
        struct {
10769
            unsigned char B7:1;
10770
            unsigned char B6:1;
10771
            unsigned char B5:1;
10772
            unsigned char B4:1;
10773
            unsigned char B3:1;
10774
            unsigned char B2:1;
10775
            unsigned char B1:1;
10776
            unsigned char B0:1;
10777
        } BIT;
10778
    } DDR;
10779
    unsigned char wk0[31];
10780
    union {
10781
        unsigned char BYTE;
10782
        struct {
10783
            unsigned char B7:1;
10784
            unsigned char B6:1;
10785
            unsigned char B5:1;
10786
            unsigned char B4:1;
10787
            unsigned char B3:1;
10788
            unsigned char B2:1;
10789
            unsigned char B1:1;
10790
            unsigned char B0:1;
10791
        } BIT;
10792
    } DR;
10793
    unsigned char wk1[31];
10794
    union {
10795
        unsigned char BYTE;
10796
        struct {
10797
            unsigned char B7:1;
10798
            unsigned char B6:1;
10799
            unsigned char B5:1;
10800
            unsigned char B4:1;
10801
            unsigned char B3:1;
10802
            unsigned char B2:1;
10803
            unsigned char B1:1;
10804
            unsigned char B0:1;
10805
        } BIT;
10806
    } PORT;
10807
    unsigned char wk2[31];
10808
    union {
10809
        unsigned char BYTE;
10810
        struct {
10811
            unsigned char B7:1;
10812
            unsigned char B6:1;
10813
            unsigned char B5:1;
10814
            unsigned char B4:1;
10815
            unsigned char B3:1;
10816
            unsigned char B2:1;
10817
            unsigned char B1:1;
10818
            unsigned char B0:1;
10819
        } BIT;
10820
    } ICR;
10821
};
10822
 
10823
struct st_port8 {
10824
    union {
10825
        unsigned char BYTE;
10826
        struct {
10827
            unsigned char :2;
10828
            unsigned char B5:1;
10829
            unsigned char B4:1;
10830
            unsigned char B3:1;
10831
            unsigned char B2:1;
10832
            unsigned char B1:1;
10833
            unsigned char B0:1;
10834
        } BIT;
10835
    } DDR;
10836
    unsigned char wk0[31];
10837
    union {
10838
        unsigned char BYTE;
10839
        struct {
10840
            unsigned char :2;
10841
            unsigned char B5:1;
10842
            unsigned char B4:1;
10843
            unsigned char B3:1;
10844
            unsigned char B2:1;
10845
            unsigned char B1:1;
10846
            unsigned char B0:1;
10847
        } BIT;
10848
    } DR;
10849
    unsigned char wk1[31];
10850
    union {
10851
        unsigned char BYTE;
10852
        struct {
10853
            unsigned char :2;
10854
            unsigned char B5:1;
10855
            unsigned char B4:1;
10856
            unsigned char B3:1;
10857
            unsigned char B2:1;
10858
            unsigned char B1:1;
10859
            unsigned char B0:1;
10860
        } BIT;
10861
    } PORT;
10862
    unsigned char wk2[31];
10863
    union {
10864
        unsigned char BYTE;
10865
        struct {
10866
            unsigned char :2;
10867
            unsigned char B5:1;
10868
            unsigned char B4:1;
10869
            unsigned char B3:1;
10870
            unsigned char B2:1;
10871
            unsigned char B1:1;
10872
            unsigned char B0:1;
10873
        } BIT;
10874
    } ICR;
10875
};
10876
 
10877
struct st_port9 {
10878
    union {
10879
        unsigned char BYTE;
10880
        struct {
10881
            unsigned char B7:1;
10882
            unsigned char B6:1;
10883
            unsigned char B5:1;
10884
            unsigned char B4:1;
10885
            unsigned char B3:1;
10886
            unsigned char B2:1;
10887
            unsigned char B1:1;
10888
            unsigned char B0:1;
10889
        } BIT;
10890
    } DDR;
10891
    unsigned char wk0[31];
10892
    union {
10893
        unsigned char BYTE;
10894
        struct {
10895
            unsigned char B7:1;
10896
            unsigned char B6:1;
10897
            unsigned char B5:1;
10898
            unsigned char B4:1;
10899
            unsigned char B3:1;
10900
            unsigned char B2:1;
10901
            unsigned char B1:1;
10902
            unsigned char B0:1;
10903
        } BIT;
10904
    } DR;
10905
    unsigned char wk1[31];
10906
    union {
10907
        unsigned char BYTE;
10908
        struct {
10909
            unsigned char B7:1;
10910
            unsigned char B6:1;
10911
            unsigned char B5:1;
10912
            unsigned char B4:1;
10913
            unsigned char B3:1;
10914
            unsigned char B2:1;
10915
            unsigned char B1:1;
10916
            unsigned char B0:1;
10917
        } BIT;
10918
    } PORT;
10919
    unsigned char wk2[31];
10920
    union {
10921
        unsigned char BYTE;
10922
        struct {
10923
            unsigned char B7:1;
10924
            unsigned char B6:1;
10925
            unsigned char B5:1;
10926
            unsigned char B4:1;
10927
            unsigned char B3:1;
10928
            unsigned char B2:1;
10929
            unsigned char B1:1;
10930
            unsigned char B0:1;
10931
        } BIT;
10932
    } ICR;
10933
    unsigned char wk3[95];
10934
    union {
10935
        unsigned char BYTE;
10936
        struct {
10937
            unsigned char B7:1;
10938
            unsigned char B6:1;
10939
            unsigned char B5:1;
10940
            unsigned char B4:1;
10941
            unsigned char B3:1;
10942
            unsigned char B2:1;
10943
            unsigned char B1:1;
10944
            unsigned char B0:1;
10945
        } BIT;
10946
    } PCR;
10947
};
10948
 
10949
struct st_porta {
10950
    union {
10951
        unsigned char BYTE;
10952
        struct {
10953
            unsigned char B7:1;
10954
            unsigned char B6:1;
10955
            unsigned char B5:1;
10956
            unsigned char B4:1;
10957
            unsigned char B3:1;
10958
            unsigned char B2:1;
10959
            unsigned char B1:1;
10960
            unsigned char B0:1;
10961
        } BIT;
10962
    } DDR;
10963
    unsigned char wk0[31];
10964
    union {
10965
        unsigned char BYTE;
10966
        struct {
10967
            unsigned char B7:1;
10968
            unsigned char B6:1;
10969
            unsigned char B5:1;
10970
            unsigned char B4:1;
10971
            unsigned char B3:1;
10972
            unsigned char B2:1;
10973
            unsigned char B1:1;
10974
            unsigned char B0:1;
10975
        } BIT;
10976
    } DR;
10977
    unsigned char wk1[31];
10978
    union {
10979
        unsigned char BYTE;
10980
        struct {
10981
            unsigned char B7:1;
10982
            unsigned char B6:1;
10983
            unsigned char B5:1;
10984
            unsigned char B4:1;
10985
            unsigned char B3:1;
10986
            unsigned char B2:1;
10987
            unsigned char B1:1;
10988
            unsigned char B0:1;
10989
        } BIT;
10990
    } PORT;
10991
    unsigned char wk2[31];
10992
    union {
10993
        unsigned char BYTE;
10994
        struct {
10995
            unsigned char B7:1;
10996
            unsigned char B6:1;
10997
            unsigned char B5:1;
10998
            unsigned char B4:1;
10999
            unsigned char B3:1;
11000
            unsigned char B2:1;
11001
            unsigned char B1:1;
11002
            unsigned char B0:1;
11003
        } BIT;
11004
    } ICR;
11005
    unsigned char wk3[95];
11006
    union {
11007
        unsigned char BYTE;
11008
        struct {
11009
            unsigned char B7:1;
11010
            unsigned char B6:1;
11011
            unsigned char B5:1;
11012
            unsigned char B4:1;
11013
            unsigned char B3:1;
11014
            unsigned char B2:1;
11015
            unsigned char B1:1;
11016
            unsigned char B0:1;
11017
        } BIT;
11018
    } PCR;
11019
};
11020
 
11021
struct st_portb {
11022
    union {
11023
        unsigned char BYTE;
11024
        struct {
11025
            unsigned char B7:1;
11026
            unsigned char B6:1;
11027
            unsigned char B5:1;
11028
            unsigned char B4:1;
11029
            unsigned char B3:1;
11030
            unsigned char B2:1;
11031
            unsigned char B1:1;
11032
            unsigned char B0:1;
11033
        } BIT;
11034
    } DDR;
11035
    unsigned char wk0[31];
11036
    union {
11037
        unsigned char BYTE;
11038
        struct {
11039
            unsigned char B7:1;
11040
            unsigned char B6:1;
11041
            unsigned char B5:1;
11042
            unsigned char B4:1;
11043
            unsigned char B3:1;
11044
            unsigned char B2:1;
11045
            unsigned char B1:1;
11046
            unsigned char B0:1;
11047
        } BIT;
11048
    } DR;
11049
    unsigned char wk1[31];
11050
    union {
11051
        unsigned char BYTE;
11052
        struct {
11053
            unsigned char B7:1;
11054
            unsigned char B6:1;
11055
            unsigned char B5:1;
11056
            unsigned char B4:1;
11057
            unsigned char B3:1;
11058
            unsigned char B2:1;
11059
            unsigned char B1:1;
11060
            unsigned char B0:1;
11061
        } BIT;
11062
    } PORT;
11063
    unsigned char wk2[31];
11064
    union {
11065
        unsigned char BYTE;
11066
        struct {
11067
            unsigned char B7:1;
11068
            unsigned char B6:1;
11069
            unsigned char B5:1;
11070
            unsigned char B4:1;
11071
            unsigned char B3:1;
11072
            unsigned char B2:1;
11073
            unsigned char B1:1;
11074
            unsigned char B0:1;
11075
        } BIT;
11076
    } ICR;
11077
    unsigned char wk3[95];
11078
    union {
11079
        unsigned char BYTE;
11080
        struct {
11081
            unsigned char B7:1;
11082
            unsigned char B6:1;
11083
            unsigned char B5:1;
11084
            unsigned char B4:1;
11085
            unsigned char B3:1;
11086
            unsigned char B2:1;
11087
            unsigned char B1:1;
11088
            unsigned char B0:1;
11089
        } BIT;
11090
    } PCR;
11091
};
11092
 
11093
struct st_portc {
11094
    union {
11095
        unsigned char BYTE;
11096
        struct {
11097
            unsigned char B7:1;
11098
            unsigned char B6:1;
11099
            unsigned char B5:1;
11100
            unsigned char B4:1;
11101
            unsigned char B3:1;
11102
            unsigned char B2:1;
11103
            unsigned char B1:1;
11104
            unsigned char B0:1;
11105
        } BIT;
11106
    } DDR;
11107
    unsigned char wk0[31];
11108
    union {
11109
        unsigned char BYTE;
11110
        struct {
11111
            unsigned char B7:1;
11112
            unsigned char B6:1;
11113
            unsigned char B5:1;
11114
            unsigned char B4:1;
11115
            unsigned char B3:1;
11116
            unsigned char B2:1;
11117
            unsigned char B1:1;
11118
            unsigned char B0:1;
11119
        } BIT;
11120
    } DR;
11121
    unsigned char wk1[31];
11122
    union {
11123
        unsigned char BYTE;
11124
        struct {
11125
            unsigned char B7:1;
11126
            unsigned char B6:1;
11127
            unsigned char B5:1;
11128
            unsigned char B4:1;
11129
            unsigned char B3:1;
11130
            unsigned char B2:1;
11131
            unsigned char B1:1;
11132
            unsigned char B0:1;
11133
        } BIT;
11134
    } PORT;
11135
    unsigned char wk2[31];
11136
    union {
11137
        unsigned char BYTE;
11138
        struct {
11139
            unsigned char B7:1;
11140
            unsigned char B6:1;
11141
            unsigned char B5:1;
11142
            unsigned char B4:1;
11143
            unsigned char B3:1;
11144
            unsigned char B2:1;
11145
            unsigned char B1:1;
11146
            unsigned char B0:1;
11147
        } BIT;
11148
    } ICR;
11149
    unsigned char wk3[31];
11150
    union {
11151
        unsigned char BYTE;
11152
        struct {
11153
            unsigned char B7:1;
11154
            unsigned char B6:1;
11155
            unsigned char B5:1;
11156
            unsigned char B4:1;
11157
            unsigned char B3:1;
11158
            unsigned char B2:1;
11159
            unsigned char B1:1;
11160
            unsigned char B0:1;
11161
        } BIT;
11162
    } ODR;
11163
    unsigned char wk4[63];
11164
    union {
11165
        unsigned char BYTE;
11166
        struct {
11167
            unsigned char B7:1;
11168
            unsigned char B6:1;
11169
            unsigned char B5:1;
11170
            unsigned char B4:1;
11171
            unsigned char B3:1;
11172
            unsigned char B2:1;
11173
            unsigned char B1:1;
11174
            unsigned char B0:1;
11175
        } BIT;
11176
    } PCR;
11177
};
11178
 
11179
struct st_portd {
11180
    union {
11181
        unsigned char BYTE;
11182
        struct {
11183
            unsigned char B7:1;
11184
            unsigned char B6:1;
11185
            unsigned char B5:1;
11186
            unsigned char B4:1;
11187
            unsigned char B3:1;
11188
            unsigned char B2:1;
11189
            unsigned char B1:1;
11190
            unsigned char B0:1;
11191
        } BIT;
11192
    } DDR;
11193
    unsigned char wk0[31];
11194
    union {
11195
        unsigned char BYTE;
11196
        struct {
11197
            unsigned char B7:1;
11198
            unsigned char B6:1;
11199
            unsigned char B5:1;
11200
            unsigned char B4:1;
11201
            unsigned char B3:1;
11202
            unsigned char B2:1;
11203
            unsigned char B1:1;
11204
            unsigned char B0:1;
11205
        } BIT;
11206
    } DR;
11207
    unsigned char wk1[31];
11208
    union {
11209
        unsigned char BYTE;
11210
        struct {
11211
            unsigned char B7:1;
11212
            unsigned char B6:1;
11213
            unsigned char B5:1;
11214
            unsigned char B4:1;
11215
            unsigned char B3:1;
11216
            unsigned char B2:1;
11217
            unsigned char B1:1;
11218
            unsigned char B0:1;
11219
        } BIT;
11220
    } PORT;
11221
    unsigned char wk2[31];
11222
    union {
11223
        unsigned char BYTE;
11224
        struct {
11225
            unsigned char B7:1;
11226
            unsigned char B6:1;
11227
            unsigned char B5:1;
11228
            unsigned char B4:1;
11229
            unsigned char B3:1;
11230
            unsigned char B2:1;
11231
            unsigned char B1:1;
11232
            unsigned char B0:1;
11233
        } BIT;
11234
    } ICR;
11235
    unsigned char wk3[95];
11236
    union {
11237
        unsigned char BYTE;
11238
        struct {
11239
            unsigned char B7:1;
11240
            unsigned char B6:1;
11241
            unsigned char B5:1;
11242
            unsigned char B4:1;
11243
            unsigned char B3:1;
11244
            unsigned char B2:1;
11245
            unsigned char B1:1;
11246
            unsigned char B0:1;
11247
        } BIT;
11248
    } PCR;
11249
};
11250
 
11251
struct st_porte {
11252
    union {
11253
        unsigned char BYTE;
11254
        struct {
11255
            unsigned char B7:1;
11256
            unsigned char B6:1;
11257
            unsigned char B5:1;
11258
            unsigned char B4:1;
11259
            unsigned char B3:1;
11260
            unsigned char B2:1;
11261
            unsigned char B1:1;
11262
            unsigned char B0:1;
11263
        } BIT;
11264
    } DDR;
11265
    unsigned char wk0[31];
11266
    union {
11267
        unsigned char BYTE;
11268
        struct {
11269
            unsigned char B7:1;
11270
            unsigned char B6:1;
11271
            unsigned char B5:1;
11272
            unsigned char B4:1;
11273
            unsigned char B3:1;
11274
            unsigned char B2:1;
11275
            unsigned char B1:1;
11276
            unsigned char B0:1;
11277
        } BIT;
11278
    } DR;
11279
    unsigned char wk1[31];
11280
    union {
11281
        unsigned char BYTE;
11282
        struct {
11283
            unsigned char B7:1;
11284
            unsigned char B6:1;
11285
            unsigned char B5:1;
11286
            unsigned char B4:1;
11287
            unsigned char B3:1;
11288
            unsigned char B2:1;
11289
            unsigned char B1:1;
11290
            unsigned char B0:1;
11291
        } BIT;
11292
    } PORT;
11293
    unsigned char wk2[31];
11294
    union {
11295
        unsigned char BYTE;
11296
        struct {
11297
            unsigned char B7:1;
11298
            unsigned char B6:1;
11299
            unsigned char B5:1;
11300
            unsigned char B4:1;
11301
            unsigned char B3:1;
11302
            unsigned char B2:1;
11303
            unsigned char B1:1;
11304
            unsigned char B0:1;
11305
        } BIT;
11306
    } ICR;
11307
    unsigned char wk3[95];
11308
    union {
11309
        unsigned char BYTE;
11310
        struct {
11311
            unsigned char B7:1;
11312
            unsigned char B6:1;
11313
            unsigned char B5:1;
11314
            unsigned char B4:1;
11315
            unsigned char B3:1;
11316
            unsigned char B2:1;
11317
            unsigned char B1:1;
11318
            unsigned char B0:1;
11319
        } BIT;
11320
    } PCR;
11321
};
11322
 
11323
struct st_portf {
11324
    union {
11325
        unsigned char BYTE;
11326
        struct {
11327
            unsigned char :3;
11328
            unsigned char B4:1;
11329
            unsigned char B3:1;
11330
            unsigned char B2:1;
11331
            unsigned char B1:1;
11332
            unsigned char B0:1;
11333
        } BIT;
11334
    } DDR;
11335
    unsigned char wk0[31];
11336
    union {
11337
        unsigned char BYTE;
11338
        struct {
11339
            unsigned char :3;
11340
            unsigned char B4:1;
11341
            unsigned char B3:1;
11342
            unsigned char B2:1;
11343
            unsigned char B1:1;
11344
            unsigned char B0:1;
11345
        } BIT;
11346
    } DR;
11347
    unsigned char wk1[31];
11348
    union {
11349
        unsigned char BYTE;
11350
        struct {
11351
            unsigned char :3;
11352
            unsigned char B4:1;
11353
            unsigned char B3:1;
11354
            unsigned char B2:1;
11355
            unsigned char B1:1;
11356
            unsigned char B0:1;
11357
        } BIT;
11358
    } PORT;
11359
    unsigned char wk2[31];
11360
    union {
11361
        unsigned char BYTE;
11362
        struct {
11363
            unsigned char :3;
11364
            unsigned char B4:1;
11365
            unsigned char B3:1;
11366
            unsigned char B2:1;
11367
            unsigned char B1:1;
11368
            unsigned char B0:1;
11369
        } BIT;
11370
    } ICR;
11371
};
11372
 
11373
struct st_portg {
11374
    union {
11375
        unsigned char BYTE;
11376
        struct {
11377
            unsigned char B7:1;
11378
            unsigned char B6:1;
11379
            unsigned char B5:1;
11380
            unsigned char B4:1;
11381
            unsigned char B3:1;
11382
            unsigned char B2:1;
11383
            unsigned char B1:1;
11384
            unsigned char B0:1;
11385
        } BIT;
11386
    } DDR;
11387
    unsigned char wk0[31];
11388
    union {
11389
        unsigned char BYTE;
11390
        struct {
11391
            unsigned char B7:1;
11392
            unsigned char B6:1;
11393
            unsigned char B5:1;
11394
            unsigned char B4:1;
11395
            unsigned char B3:1;
11396
            unsigned char B2:1;
11397
            unsigned char B1:1;
11398
            unsigned char B0:1;
11399
        } BIT;
11400
    } DR;
11401
    unsigned char wk1[31];
11402
    union {
11403
        unsigned char BYTE;
11404
        struct {
11405
            unsigned char B7:1;
11406
            unsigned char B6:1;
11407
            unsigned char B5:1;
11408
            unsigned char B4:1;
11409
            unsigned char B3:1;
11410
            unsigned char B2:1;
11411
            unsigned char B1:1;
11412
            unsigned char B0:1;
11413
        } BIT;
11414
    } PORT;
11415
    unsigned char wk2[31];
11416
    union {
11417
        unsigned char BYTE;
11418
        struct {
11419
            unsigned char B7:1;
11420
            unsigned char B6:1;
11421
            unsigned char B5:1;
11422
            unsigned char B4:1;
11423
            unsigned char B3:1;
11424
            unsigned char B2:1;
11425
            unsigned char B1:1;
11426
            unsigned char B0:1;
11427
        } BIT;
11428
    } ICR;
11429
    unsigned char wk3[95];
11430
    union {
11431
        unsigned char BYTE;
11432
        struct {
11433
            unsigned char B7:1;
11434
            unsigned char B6:1;
11435
            unsigned char B5:1;
11436
            unsigned char B4:1;
11437
            unsigned char B3:1;
11438
            unsigned char B2:1;
11439
            unsigned char B1:1;
11440
            unsigned char B0:1;
11441
        } BIT;
11442
    } PCR;
11443
};
11444
 
11445
struct st_ioport {
11446
    union {
11447
        unsigned char BYTE;
11448
        struct {
11449
            unsigned char CS7E:1;
11450
            unsigned char CS6E:1;
11451
            unsigned char CS5E:1;
11452
            unsigned char CS4E:1;
11453
            unsigned char CS3E:1;
11454
            unsigned char CS2E:1;
11455
            unsigned char CS1E:1;
11456
            unsigned char CS0E:1;
11457
        } BIT;
11458
    } PF0CSE;
11459
    union {
11460
        unsigned char BYTE;
11461
        struct {
11462
            unsigned char CS7S:2;
11463
            unsigned char CS6S:2;
11464
            unsigned char CS5S:2;
11465
            unsigned char CS4S:2;
11466
        } BIT;
11467
    } PF1CSS;
11468
    union {
11469
        unsigned char BYTE;
11470
        struct {
11471
            unsigned char CS3S:2;
11472
            unsigned char CS2S:2;
11473
            unsigned char CS1S:2;
11474
            unsigned char :1;
11475
            unsigned char CS0S:1;
11476
        } BIT;
11477
    } PF2CSS;
11478
    union {
11479
        unsigned char BYTE;
11480
        struct {
11481
            unsigned char A23E:1;
11482
            unsigned char A22E:1;
11483
            unsigned char A21E:1;
11484
            unsigned char A20E:1;
11485
            unsigned char A19E:1;
11486
            unsigned char A18E:1;
11487
            unsigned char A17E:1;
11488
            unsigned char A16E:1;
11489
        } BIT;
11490
    } PF3BUS;
11491
    union {
11492
        unsigned char BYTE;
11493
        struct {
11494
            unsigned char A15E:1;
11495
            unsigned char A14E:1;
11496
            unsigned char A13E:1;
11497
            unsigned char A12E:1;
11498
            unsigned char A11E:1;
11499
            unsigned char A10E:1;
11500
            unsigned char ADRLE:2;
11501
        } BIT;
11502
    } PF4BUS;
11503
    union {
11504
        unsigned char BYTE;
11505
        struct {
11506
            unsigned char WR32BC32E:1;
11507
            unsigned char WR1BC1E:1;
11508
            unsigned char DH32E:1;
11509
            unsigned char DHE:1;
11510
            unsigned char :2;
11511
            unsigned char ADRHMS:1;
11512
            unsigned char :1;
11513
        } BIT;
11514
    } PF5BUS;
11515
    union {
11516
        unsigned char BYTE;
11517
        struct {
11518
            unsigned char SDCLKE:1;
11519
            unsigned char DQM1E:1;
11520
            unsigned char :1;
11521
            unsigned char MDSDE:1;
11522
            unsigned char :2;
11523
            unsigned char WAITS:2;
11524
        } BIT;
11525
    } PF6BUS;
11526
    union {
11527
        unsigned char BYTE;
11528
        struct {
11529
            unsigned char EDMA1S:2;
11530
            unsigned char EDMA0S:2;
11531
            unsigned char :4;
11532
        } BIT;
11533
    } PF7DMA;
11534
    union {
11535
        unsigned char BYTE;
11536
        struct {
11537
            unsigned char ITS15:1;
11538
            unsigned char :1;
11539
            unsigned char ITS13:1;
11540
            unsigned char :1;
11541
            unsigned char ITS11:1;
11542
            unsigned char ITS10:1;
11543
            unsigned char ITS9:1;
11544
            unsigned char ITS8:1;
11545
        } BIT;
11546
    } PF8IRQ;
11547
    union {
11548
        unsigned char BYTE;
11549
        struct {
11550
            unsigned char ITS7:1;
11551
            unsigned char ITS6:1;
11552
            unsigned char ITS5:1;
11553
            unsigned char ITS4:1;
11554
            unsigned char ITS3:1;
11555
            unsigned char ITS2:1;
11556
            unsigned char ITS1:1;
11557
            unsigned char ITS0:1;
11558
        } BIT;
11559
    } PF9IRQ;
11560
    union {
11561
        unsigned char BYTE;
11562
        struct {
11563
            unsigned char :7;
11564
            unsigned char ADTRG0S:1;
11565
        } BIT;
11566
    } PFAADC;
11567
    union {
11568
        unsigned char BYTE;
11569
        struct {
11570
            unsigned char :4;
11571
            unsigned char TMR3S:1;
11572
            unsigned char TMR2S:1;
11573
            unsigned char :2;
11574
        } BIT;
11575
    } PFBTMR;
11576
    union {
11577
        unsigned char BYTE;
11578
        struct {
11579
            unsigned char TCLKS:1;
11580
            unsigned char MTUS6:1;
11581
            unsigned char MTUS5:1;
11582
            unsigned char MTUS4:1;
11583
            unsigned char MTUS3:1;
11584
            unsigned char MTUS2:1;
11585
            unsigned char MTUS1:1;
11586
            unsigned char MTUS0:1;
11587
        } BIT;
11588
    } PFCMTU;
11589
    union {
11590
        unsigned char BYTE;
11591
        struct {
11592
            unsigned char TCLKS:1;
11593
            unsigned char MTUS6:1;
11594
            unsigned char :6;
11595
        } BIT;
11596
    } PFDMTU;
11597
    union {
11598
        unsigned char BYTE;
11599
        struct {
11600
            unsigned char EE:1;
11601
            unsigned char :2;
11602
            unsigned char PHYMODE:1;
11603
            unsigned char ENETE3:1;
11604
            unsigned char ENETE2:1;
11605
            unsigned char ENETE1:1;
11606
            unsigned char ENETE0:1;
11607
        } BIT;
11608
    } PFENET;
11609
    union {
11610
        unsigned char BYTE;
11611
        struct {
11612
            unsigned char :1;
11613
            unsigned char SCI6S:1;
11614
            unsigned char :2;
11615
            unsigned char SCI3S:1;
11616
            unsigned char SCI2S:1;
11617
            unsigned char SCI1S:1;
11618
            unsigned char :1;
11619
        } BIT;
11620
    } PFFSCI;
11621
    union {
11622
        unsigned char BYTE;
11623
        struct {
11624
            unsigned char SSL3E:1;
11625
            unsigned char SSL2E:1;
11626
            unsigned char SSL1E:1;
11627
            unsigned char SSL0E:1;
11628
            unsigned char MISOE:1;
11629
            unsigned char MOSIE:1;
11630
            unsigned char RSPCKE:1;
11631
            unsigned char RSPIS:1;
11632
        } BIT;
11633
    } PFGSPI;
11634
    union {
11635
        unsigned char BYTE;
11636
        struct {
11637
            unsigned char SSL3E:1;
11638
            unsigned char SSL2E:1;
11639
            unsigned char SSL1E:1;
11640
            unsigned char SSL0E:1;
11641
            unsigned char MISOE:1;
11642
            unsigned char MOSIE:1;
11643
            unsigned char RSPCKE:1;
11644
            unsigned char RSPIS:1;
11645
        } BIT;
11646
    } PFHSPI;
11647
    unsigned char wk0[1];
11648
    union {
11649
        unsigned char BYTE;
11650
        struct {
11651
            unsigned char :7;
11652
            unsigned char CAN0E:1;
11653
        } BIT;
11654
    } PFJCAN;
11655
    union {
11656
        unsigned char BYTE;
11657
        struct {
11658
            unsigned char :3;
11659
            unsigned char USBE:1;
11660
            unsigned char PDHZS:1;
11661
            unsigned char PUPHZS:1;
11662
            unsigned char USBMD:2;
11663
        } BIT;
11664
    } PFKUSB;
11665
    union {
11666
        unsigned char BYTE;
11667
        struct {
11668
            unsigned char :3;
11669
            unsigned char USBE:1;
11670
            unsigned char PDHZS:1;
11671
            unsigned char PUPHZS:1;
11672
            unsigned char USBMD:2;
11673
        } BIT;
11674
    } PFLUSB;
11675
    union {
11676
        unsigned char BYTE;
11677
        struct {
11678
            unsigned char POE7E:1;
11679
            unsigned char POE6E:1;
11680
            unsigned char POE5E:1;
11681
            unsigned char POE4E:1;
11682
            unsigned char POE3E:1;
11683
            unsigned char POE2E:1;
11684
            unsigned char POE1E:1;
11685
            unsigned char POE0E:1;
11686
        } BIT;
11687
    } PFMPOE;
11688
    union {
11689
        unsigned char BYTE;
11690
        struct {
11691
            unsigned char :6;
11692
            unsigned char POE9E:1;
11693
            unsigned char POE8E:1;
11694
        } BIT;
11695
    } PFNPOE;
11696
};
11697
 
11698
struct st_flash {
11699
    unsigned char DMMY;
11700
    union {
11701
        unsigned char BYTE;
11702
        struct {
11703
            unsigned char :6;
11704
            unsigned char FLWE:2;
11705
        } BIT;
11706
    } FWEPROR;
11707
    unsigned char wk0[7799160];
11708
    union {
11709
        unsigned char BYTE;
11710
        struct {
11711
            unsigned char :3;
11712
            unsigned char FRDMD:1;
11713
            unsigned char :4;
11714
        } BIT;
11715
    } FMODR;
11716
    unsigned char wk1[13];
11717
    union {
11718
        unsigned char BYTE;
11719
        struct {
11720
            unsigned char ROMAE:1;
11721
            unsigned char :2;
11722
            unsigned char CMDLK:1;
11723
            unsigned char DFLAE:1;
11724
            unsigned char :1;
11725
            unsigned char DFLRPE:1;
11726
            unsigned char DFLWPE:1;
11727
        } BIT;
11728
    } FASTAT;
11729
    union {
11730
        unsigned char BYTE;
11731
        struct {
11732
            unsigned char ROMAEIE:1;
11733
            unsigned char :2;
11734
            unsigned char CMDLKIE:1;
11735
            unsigned char DFLAEIE:1;
11736
            unsigned char :1;
11737
            unsigned char DFLRPEIE:1;
11738
            unsigned char DFLWPEIE:1;
11739
        } BIT;
11740
    } FAEINT;
11741
    union {
11742
        unsigned char BYTE;
11743
        struct {
11744
            unsigned char :7;
11745
            unsigned char FRDYIE:1;
11746
        } BIT;
11747
    } FRDYIE;
11748
    unsigned char wk2[45];
11749
    union {
11750
        unsigned short WORD;
11751
        struct {
11752
            unsigned short KEY:8;
11753
            unsigned short DBRE07:1;
11754
            unsigned short DBRE06:1;
11755
            unsigned short DBRE05:1;
11756
            unsigned short DBRE04:1;
11757
            unsigned short DBRE03:1;
11758
            unsigned short DBRE02:1;
11759
            unsigned short DBRE01:1;
11760
            unsigned short DBRE00:1;
11761
        } BIT;
11762
    } DFLRE0;
11763
    union {
11764
        unsigned short WORD;
11765
        struct {
11766
            unsigned short KEY:8;
11767
            unsigned short DBRE15:1;
11768
            unsigned short DBRE14:1;
11769
            unsigned short DBRE13:1;
11770
            unsigned short DBRE12:1;
11771
            unsigned short DBRE11:1;
11772
            unsigned short DBRE10:1;
11773
            unsigned short DBRE09:1;
11774
            unsigned short DBRE08:1;
11775
        } BIT;
11776
    } DFLRE1;
11777
    unsigned char wk3[12];
11778
    union {
11779
        unsigned short WORD;
11780
        struct {
11781
            unsigned short KEY:8;
11782
            unsigned short DBWE07:1;
11783
            unsigned short DBWE06:1;
11784
            unsigned short DBWE05:1;
11785
            unsigned short DBWE04:1;
11786
            unsigned short DBWE03:1;
11787
            unsigned short DBWE02:1;
11788
            unsigned short DBWE01:1;
11789
            unsigned short DBWE00:1;
11790
        } BIT;
11791
    } DFLWE0;
11792
    union {
11793
        unsigned short WORD;
11794
        struct {
11795
            unsigned short KEY:8;
11796
            unsigned short DBWE15:1;
11797
            unsigned short DBWE14:1;
11798
            unsigned short DBWE13:1;
11799
            unsigned short DBWE12:1;
11800
            unsigned short DBWE11:1;
11801
            unsigned short DBWE10:1;
11802
            unsigned short DBWE09:1;
11803
            unsigned short DBWE08:1;
11804
        } BIT;
11805
    } DFLWE1;
11806
    union {
11807
        unsigned short WORD;
11808
        struct {
11809
            unsigned short KEY:8;
11810
            unsigned short :7;
11811
            unsigned short FCRME:1;
11812
        } BIT;
11813
    } FCURAME;
11814
    unsigned char wk4[15194];
11815
    union {
11816
        unsigned char BYTE;
11817
        struct {
11818
            unsigned char FRDY:1;
11819
            unsigned char ILGLERR:1;
11820
            unsigned char ERSERR:1;
11821
            unsigned char PRGERR:1;
11822
            unsigned char SUSRDY:1;
11823
            unsigned char :1;
11824
            unsigned char ERSSPD:1;
11825
            unsigned char PRGSPD:1;
11826
        } BIT;
11827
    } FSTATR0;
11828
    union {
11829
        unsigned char BYTE;
11830
        struct {
11831
            unsigned char FCUERR:1;
11832
            unsigned char :2;
11833
            unsigned char FLOCKST:1;
11834
            unsigned char :4;
11835
        } BIT;
11836
    } FSTATR1;
11837
    union {
11838
        unsigned short WORD;
11839
        struct {
11840
            unsigned short FEKEY:8;
11841
            unsigned short FENTRYD:1;
11842
            unsigned short :6;
11843
            unsigned short FENTRY0:1;
11844
        } BIT;
11845
    } FENTRYR;
11846
    union {
11847
        unsigned short WORD;
11848
        struct {
11849
            unsigned short FPKEY:8;
11850
            unsigned short :7;
11851
            unsigned short FPROTCN:1;
11852
        } BIT;
11853
    } FPROTR;
11854
    union {
11855
        unsigned short WORD;
11856
        struct {
11857
            unsigned short FPKEY:8;
11858
            unsigned short :7;
11859
            unsigned short FRESET:1;
11860
        } BIT;
11861
    } FRESETR;
11862
    unsigned char wk5[2];
11863
    union {
11864
        unsigned short WORD;
11865
        struct {
11866
            unsigned short CMDR:8;
11867
            unsigned short PCMDR:8;
11868
        } BIT;
11869
    } FCMDR;
11870
    unsigned char wk6[12];
11871
    union {
11872
        unsigned short WORD;
11873
        struct {
11874
            unsigned short :15;
11875
            unsigned short ESUSPMD:1;
11876
        } BIT;
11877
    } FCPSR;
11878
    union {
11879
        unsigned short WORD;
11880
        struct {
11881
            unsigned short :5;
11882
            unsigned short BCADR:8;
11883
            unsigned short :2;
11884
            unsigned short BCSIZE:1;
11885
        } BIT;
11886
    } DFLBCCNT;
11887
    union {
11888
        unsigned short WORD;
11889
        struct {
11890
            unsigned short :8;
11891
            unsigned short PEERRST:8;
11892
        } BIT;
11893
    } FPESTAT;
11894
    union {
11895
        unsigned short WORD;
11896
        struct {
11897
            unsigned short :15;
11898
            unsigned short BCST:1;
11899
        } BIT;
11900
    } DFLBCSTAT;
11901
    unsigned char wk7[24];
11902
    union {
11903
        unsigned short WORD;
11904
        struct {
11905
            unsigned short :8;
11906
            unsigned short PCKA:8;
11907
        } BIT;
11908
    } PCKAR;
11909
};
11910
 
11911
struct st_rtc {
11912
    union {
11913
        unsigned char BYTE;
11914
        struct {
11915
            unsigned char F64HZ:1;
11916
            unsigned char F32HZ:1;
11917
            unsigned char F16HZ:1;
11918
            unsigned char F8HZ:1;
11919
            unsigned char F4HZ:1;
11920
            unsigned char F2HZ:1;
11921
            unsigned char F1HZ:1;
11922
            unsigned char :1;
11923
        } BIT;
11924
    } R64CNT;
11925
    unsigned char wk0[1];
11926
    union {
11927
        unsigned char BYTE;
11928
        struct {
11929
            unsigned char :1;
11930
            unsigned char SEC10:3;
11931
            unsigned char SEC1:4;
11932
        } BIT;
11933
    } RSECCNT;
11934
    unsigned char wk1[1];
11935
    union {
11936
        unsigned char BYTE;
11937
        struct {
11938
            unsigned char :1;
11939
            unsigned char MIN10:3;
11940
            unsigned char MIN1:4;
11941
        } BIT;
11942
    } RMINCNT;
11943
    unsigned char wk2[1];
11944
    union {
11945
        unsigned char BYTE;
11946
        struct {
11947
            unsigned char :2;
11948
            unsigned char HOUR10:2;
11949
            unsigned char HOUR1:4;
11950
        } BIT;
11951
    } RHRCNT;
11952
    unsigned char wk3[1];
11953
    union {
11954
        unsigned char BYTE;
11955
        struct {
11956
            unsigned char :5;
11957
            unsigned char DAY:3;
11958
        } BIT;
11959
    } RWKCNT;
11960
    unsigned char wk4[1];
11961
    union {
11962
        unsigned char BYTE;
11963
        struct {
11964
            unsigned char :2;
11965
            unsigned char DAY10:2;
11966
            unsigned char DAY1:4;
11967
        } BIT;
11968
    } RDAYCNT;
11969
    unsigned char wk5[1];
11970
    union {
11971
        unsigned char BYTE;
11972
        struct {
11973
            unsigned char :3;
11974
            unsigned char MON10:1;
11975
            unsigned char MON1:4;
11976
        } BIT;
11977
    } RMONCNT;
11978
    unsigned char wk6[1];
11979
    union {
11980
        unsigned short WORD;
11981
        struct {
11982
            unsigned short YEAR1000:4;
11983
            unsigned short YEAR100:4;
11984
            unsigned short YEAR10:4;
11985
            unsigned short YEAR1:4;
11986
        } BIT;
11987
    } RYRCNT;
11988
    union {
11989
        unsigned char BYTE;
11990
        struct {
11991
            unsigned char ENB:1;
11992
            unsigned char SEC10:3;
11993
            unsigned char SEC1:4;
11994
        } BIT;
11995
    } RSECAR;
11996
    unsigned char wk7[1];
11997
    union {
11998
        unsigned char BYTE;
11999
        struct {
12000
            unsigned char ENB:1;
12001
            unsigned char MIN10:3;
12002
            unsigned char MIN1:4;
12003
        } BIT;
12004
    } RMINAR;
12005
    unsigned char wk8[1];
12006
    union {
12007
        unsigned char BYTE;
12008
        struct {
12009
            unsigned char ENB:1;
12010
            unsigned char :1;
12011
            unsigned char HOUR10:2;
12012
            unsigned char HOUR1:4;
12013
        } BIT;
12014
    } RHRAR;
12015
    unsigned char wk9[1];
12016
    union {
12017
        unsigned char BYTE;
12018
        struct {
12019
            unsigned char ENB:1;
12020
            unsigned char :4;
12021
            unsigned char DAY:3;
12022
        } BIT;
12023
    } RWKAR;
12024
    unsigned char wk10[1];
12025
    union {
12026
        unsigned char BYTE;
12027
        struct {
12028
            unsigned char ENB:1;
12029
            unsigned char :1;
12030
            unsigned char DAY10:2;
12031
            unsigned char DAY1:4;
12032
        } BIT;
12033
    } RDAYAR;
12034
    unsigned char wk11[1];
12035
    union {
12036
        unsigned char BYTE;
12037
        struct {
12038
            unsigned char ENB:1;
12039
            unsigned char :2;
12040
            unsigned char MON10:1;
12041
            unsigned char MON1:4;
12042
        } BIT;
12043
    } RMONAR;
12044
    unsigned char wk12[1];
12045
    union {
12046
        unsigned short WORD;
12047
        struct {
12048
            unsigned short YEAR1000:4;
12049
            unsigned short YEAR100:4;
12050
            unsigned short YEAR10:4;
12051
            unsigned short YEAR1:4;
12052
        } BIT;
12053
    } RYRAR;
12054
    union {
12055
        unsigned char BYTE;
12056
        struct {
12057
            unsigned char ENB:1;
12058
            unsigned char :7;
12059
        } BIT;
12060
    } RYRAREN;
12061
    unsigned char wk13[3];
12062
    union {
12063
        unsigned char BYTE;
12064
        struct {
12065
            unsigned char :1;
12066
            unsigned char PES:3;
12067
            unsigned char :1;
12068
            unsigned char PIE:1;
12069
            unsigned char CIE:1;
12070
            unsigned char AIE:1;
12071
        } BIT;
12072
    } RCR1;
12073
    unsigned char wk14[1];
12074
    union {
12075
        unsigned char BYTE;
12076
        struct {
12077
            unsigned char :4;
12078
            unsigned char RTCOE:1;
12079
            unsigned char ADJ:1;
12080
            unsigned char RESET:1;
12081
            unsigned char START:1;
12082
        } BIT;
12083
    } RCR2;
12084
};
12085
 
12086
struct st_can {
12087
    struct {
12088
        union {
12089
            unsigned long LONG;
12090
            union {
12091
                unsigned short H;
12092
                unsigned short L;
12093
            } WORD;
12094
            struct {
12095
                unsigned char HH;
12096
                unsigned char HL;
12097
                unsigned char LH;
12098
                unsigned char LL;
12099
            } BYTE;
12100
            struct {
12101
                unsigned long IDE:1;
12102
                unsigned long RTR:1;
12103
                unsigned long :1;
12104
                unsigned long SID:11;
12105
                unsigned long EID:18;
12106
            } BIT;
12107
        } ID;
12108
        union {
12109
            unsigned short WORD;
12110
            struct {
12111
                unsigned char :8;
12112
                unsigned char :4;
12113
                unsigned char DLC:4;
12114
            } BIT;
12115
        } DLC;
12116
        unsigned char DATA[8];
12117
        union{
12118
            unsigned short WORD;
12119
            struct {
12120
                unsigned char TSH;
12121
                unsigned char TSL;
12122
            } BYTE;
12123
        } TS;
12124
    } MB[32];
12125
    union {
12126
        unsigned long LONG;
12127
        struct {
12128
            unsigned short H;
12129
            unsigned short L;
12130
        } WORD;
12131
        struct {
12132
            unsigned char HH;
12133
            unsigned char HL;
12134
            unsigned char LH;
12135
            unsigned char LL;
12136
        } BYTE;
12137
        struct {
12138
            unsigned long :3;
12139
            unsigned long SID:11;
12140
            unsigned long EID:18;
12141
        } BIT;
12142
    } MKR[8];
12143
    union {
12144
        unsigned long LONG;
12145
        struct {
12146
            unsigned short H;
12147
            unsigned short L;
12148
        } WORD;
12149
        struct {
12150
            unsigned char HH;
12151
            unsigned char HL;
12152
            unsigned char LH;
12153
            unsigned char LL;
12154
        } BYTE;
12155
        struct {
12156
            unsigned long IDE:1;
12157
            unsigned long RTR:1;
12158
            unsigned long :1;
12159
            unsigned long SID:11;
12160
            unsigned long EID:18;
12161
        } BIT;
12162
    } FIDCR0;
12163
    union {
12164
        unsigned long LONG;
12165
        struct {
12166
            unsigned short H;
12167
            unsigned short L;
12168
        } WORD;
12169
        struct {
12170
            unsigned char HH;
12171
            unsigned char HL;
12172
            unsigned char LH;
12173
            unsigned char LL;
12174
        } BYTE;
12175
        struct {
12176
            unsigned long IDE:1;
12177
            unsigned long RTR:1;
12178
            unsigned long :1;
12179
            unsigned long SID:11;
12180
            unsigned long EID:18;
12181
        } BIT;
12182
    } FIDCR1;
12183
    unsigned long MKIVLR;
12184
    unsigned long MIER;
12185
    unsigned char wk32[1008];
12186
    union {
12187
        unsigned char BYTE;
12188
        union {
12189
            struct {
12190
                unsigned char TRMREQ:1;
12191
                unsigned char RECREQ:1;
12192
                unsigned char :1;
12193
                unsigned char ONESHOT:1;
12194
                unsigned char :1;
12195
                unsigned char TRMABT:1;
12196
                unsigned char TRMACTIVE:1;
12197
                unsigned char SENTDATA:1;
12198
            } TX;
12199
            struct {
12200
                unsigned char TRMREQ:1;
12201
                unsigned char RECREQ:1;
12202
                unsigned char :1;
12203
                unsigned char ONESHOT:1;
12204
                unsigned char :1;
12205
                unsigned char MSGLOST:1;
12206
                unsigned char INVALDATA:1;
12207
                unsigned char NEWDATA:1;
12208
            } RX;
12209
        } BIT;
12210
    } MCTL[32];
12211
    union {
12212
        unsigned short WORD;
12213
        struct {
12214
            unsigned char H;
12215
            unsigned char L;
12216
        } BYTE;
12217
        struct {
12218
            unsigned char :2;
12219
            unsigned char RBOC:1;
12220
            unsigned char BOM:2;
12221
            unsigned char SLPM:1;
12222
            unsigned char CANM:2;
12223
            unsigned char TSPS:2;
12224
            unsigned char TSRC:1;
12225
            unsigned char TPM:1;
12226
            unsigned char MLM:1;
12227
            unsigned char IDFM:2;
12228
            unsigned char MBM:1;
12229
        } BIT;
12230
    } CTLR;
12231
    union {
12232
        unsigned short WORD;
12233
        struct {
12234
            unsigned char H;
12235
            unsigned char L;
12236
        } BYTE;
12237
        struct {
12238
            unsigned char :1;
12239
            unsigned char RECST:1;
12240
            unsigned char TRMST:1;
12241
            unsigned char BOST:1;
12242
            unsigned char EPST:1;
12243
            unsigned char SLPST:1;
12244
            unsigned char HLTST:1;
12245
            unsigned char RSTST:1;
12246
            unsigned char EST:1;
12247
            unsigned char TABST:1;
12248
            unsigned char FMLST:1;
12249
            unsigned char NMLST:1;
12250
            unsigned char TFST:1;
12251
            unsigned char RFST:1;
12252
            unsigned char SDST:1;
12253
            unsigned char NDST:1;
12254
        } BIT;
12255
    } STR;
12256
    union {
12257
        unsigned long LONG;
12258
        struct {
12259
            unsigned short H;
12260
            unsigned short L;
12261
        } WORD;
12262
        struct {
12263
            unsigned char HH;
12264
            unsigned char HL;
12265
            unsigned char LH;
12266
            unsigned char LL;
12267
        } BYTE;
12268
        struct {
12269
            unsigned long TSEG1:4;
12270
            unsigned long :2;
12271
            unsigned long BRP:10;
12272
            unsigned long :2;
12273
            unsigned long SJW:2;
12274
            unsigned long :1;
12275
            unsigned long TSEG2:3;
12276
            unsigned long :8;
12277
        } BIT;
12278
    } BCR;
12279
    union {
12280
        unsigned char BYTE;
12281
        struct {
12282
            unsigned char RFEST:1;
12283
            unsigned char RFWST:1;
12284
            unsigned char RFFST:1;
12285
            unsigned char RFMLF:1;
12286
            unsigned char RFUST:3;
12287
            unsigned char RFE:1;
12288
        } BIT;
12289
    } RFCR;
12290
    unsigned char RFPCR;
12291
    union {
12292
        unsigned char BYTE;
12293
        struct {
12294
            unsigned char TFEST:1;
12295
            unsigned char TFFST:1;
12296
            unsigned char :2;
12297
            unsigned char TFUST:3;
12298
            unsigned char TFE:1;
12299
        } BIT;
12300
    } TFCR;
12301
    unsigned char TFPCR;
12302
    union {
12303
        unsigned char BYTE;
12304
        struct {
12305
            unsigned char BLIE:1;
12306
            unsigned char OLIE:1;
12307
            unsigned char ORIE:1;
12308
            unsigned char BORIE:1;
12309
            unsigned char BOEIE:1;
12310
            unsigned char EPIE:1;
12311
            unsigned char EWIE:1;
12312
            unsigned char BEIE:1;
12313
        } BIT;
12314
    } EIER;
12315
    union {
12316
        unsigned char BYTE;
12317
        struct {
12318
            unsigned char BLIF:1;
12319
            unsigned char OLIF:1;
12320
            unsigned char ORIF:1;
12321
            unsigned char BORIF:1;
12322
            unsigned char BOEIF:1;
12323
            unsigned char EPIF:1;
12324
            unsigned char EWIF:1;
12325
            unsigned char BEIF:1;
12326
        } BIT;
12327
    } EIFR;
12328
    unsigned char RECR;
12329
    unsigned char TECR;
12330
    union {
12331
        unsigned char BYTE;
12332
        struct {
12333
            unsigned char EDPM:1;
12334
            unsigned char ADEF:1;
12335
            unsigned char BE0F:1;
12336
            unsigned char BE1F:1;
12337
            unsigned char CEF:1;
12338
            unsigned char AEF:1;
12339
            unsigned char FEF:1;
12340
            unsigned char SEF:1;
12341
        } BIT;
12342
    } ECSR;
12343
    unsigned char CSSR;
12344
    union {
12345
        unsigned char BYTE;
12346
        struct {
12347
            unsigned char SEST:1;
12348
            unsigned char :2;
12349
            unsigned char MBNST:5;
12350
        } BIT;
12351
    } MSSR;
12352
    union {
12353
        unsigned char BYTE;
12354
        struct {
12355
            unsigned char :6;
12356
            unsigned char MBSM:2;
12357
        } BIT;
12358
    } MSMR;
12359
    unsigned short TSR;
12360
    unsigned short AFSR;
12361
    union {
12362
        unsigned char BYTE;
12363
        struct {
12364
            unsigned char :5;
12365
            unsigned char TSTM:2;
12366
            unsigned char TSTE:1;
12367
        } BIT;
12368
    } TCR;
12369
};
12370
 
12371
struct st_usb0 {
12372
    union {
12373
        unsigned short WORD;
12374
        struct {
12375
            unsigned short :5;
12376
            unsigned short SCKE:1;
12377
            unsigned short :3;
12378
            unsigned short DCFM:1;
12379
            unsigned short DRPD:1;
12380
            unsigned short DPRPU:1;
12381
            unsigned short :3;
12382
            unsigned short USBE:1;
12383
        } BIT;
12384
    } SYSCFG;
12385
    unsigned char wk0[2];
12386
    union {
12387
        unsigned short WORD;
12388
        struct {
12389
            unsigned short OVCMON:2;
12390
            unsigned short :7;
12391
            unsigned short HTACT:1;
12392
            unsigned short :3;
12393
            unsigned short IDMON:1;
12394
            unsigned short LNST:2;
12395
        } BIT;
12396
    } SYSSTS0;
12397
    unsigned char wk1[2];
12398
    union {
12399
        unsigned short WORD;
12400
        struct {
12401
            unsigned short :4;
12402
            unsigned short HNPBTOA:1;
12403
            unsigned short EXICEN:1;
12404
            unsigned short VBUSEN:1;
12405
            unsigned short WKUP:1;
12406
            unsigned short RWUPE:1;
12407
            unsigned short USBRST:1;
12408
            unsigned short RESUME:1;
12409
            unsigned short UACT:1;
12410
            unsigned short :1;
12411
            unsigned short RHST:3;
12412
        } BIT;
12413
    } DVSTCTR0;
12414
    unsigned char wk2[10];
12415
    union {
12416
        unsigned short WORD;
12417
        struct {
12418
            unsigned char L;
12419
            unsigned char H;
12420
        } BYTE;
12421
    } CFIFO;
12422
    unsigned char wk3[2];
12423
    union {
12424
        unsigned short WORD;
12425
        struct {
12426
            unsigned char L;
12427
            unsigned char H;
12428
        } BYTE;
12429
    } D0FIFO;
12430
    unsigned char wk4[2];
12431
    union {
12432
        unsigned short WORD;
12433
        struct {
12434
            unsigned char L;
12435
            unsigned char H;
12436
        } BYTE;
12437
    } D1FIFO;
12438
    unsigned char wk5[2];
12439
    union {
12440
        unsigned short WORD;
12441
        struct {
12442
            unsigned short RCNT:1;
12443
            unsigned short REW:1;
12444
            unsigned short :3;
12445
            unsigned short MBW:1;
12446
            unsigned short :1;
12447
            unsigned short BIGEND:1;
12448
            unsigned short :2;
12449
            unsigned short ISEL:1;
12450
            unsigned short :1;
12451
            unsigned short CURPIPE:4;
12452
        } BIT;
12453
    } CFIFOSEL;
12454
    union {
12455
        unsigned short WORD;
12456
        struct {
12457
            unsigned short BVAL:1;
12458
            unsigned short BCLR:1;
12459
            unsigned short FRDY:1;
12460
            unsigned short :4;
12461
            unsigned short TLN:1;
12462
            unsigned short DTLN:8;
12463
        } BIT;
12464
    } CFIFOCTR;
12465
    unsigned char wk6[4];
12466
    union {
12467
        unsigned short WORD;
12468
        struct {
12469
            unsigned short RCNT:1;
12470
            unsigned short REW:1;
12471
            unsigned short DCLRM:1;
12472
            unsigned short DREQE:1;
12473
            unsigned short :1;
12474
            unsigned short MBW:1;
12475
            unsigned short :1;
12476
            unsigned short BIGEND:1;
12477
            unsigned short :4;
12478
            unsigned short CURPIPE:4;
12479
        } BIT;
12480
    } D0FIFOSEL;
12481
    union {
12482
        unsigned short WORD;
12483
        struct {
12484
            unsigned short BVAL:1;
12485
            unsigned short BCLR:1;
12486
            unsigned short FRDY:1;
12487
            unsigned short :4;
12488
            unsigned short TLN:1;
12489
            unsigned short DTLN:8;
12490
        } BIT;
12491
    } D0FIFOCTR;
12492
    union {
12493
        unsigned short WORD;
12494
        struct {
12495
            unsigned short RCNT:1;
12496
            unsigned short REW:1;
12497
            unsigned short DCLRM:1;
12498
            unsigned short DREQE:1;
12499
            unsigned short :1;
12500
            unsigned short MBW:1;
12501
            unsigned short :1;
12502
            unsigned short BIGEND:1;
12503
            unsigned short :4;
12504
            unsigned short CURPIPE:4;
12505
        } BIT;
12506
    } D1FIFOSEL;
12507
    union {
12508
        unsigned short WORD;
12509
        struct {
12510
            unsigned short BVAL:1;
12511
            unsigned short BCLR:1;
12512
            unsigned short FRDY:1;
12513
            unsigned short :4;
12514
            unsigned short TLN:1;
12515
            unsigned short DTLN:8;
12516
        } BIT;
12517
    } D1FIFOCTR;
12518
    union {
12519
        unsigned short WORD;
12520
        struct {
12521
            unsigned short VBSE:1;
12522
            unsigned short RSME:1;
12523
            unsigned short SOFE:1;
12524
            unsigned short DVSE:1;
12525
            unsigned short CTRE:1;
12526
            unsigned short BEMPE:1;
12527
            unsigned short NRDYE:1;
12528
            unsigned short BRDYE:1;
12529
            unsigned short :8;
12530
        } BIT;
12531
    } INTENB0;
12532
    union {
12533
        unsigned short WORD;
12534
        struct {
12535
            unsigned short OVRCRE:1;
12536
            unsigned short BCHGE:1;
12537
            unsigned short :1;
12538
            unsigned short DTCHE:1;
12539
            unsigned short ATTCHE:1;
12540
            unsigned short :4;
12541
            unsigned short EOFERRE:1;
12542
            unsigned short SIGNE:1;
12543
            unsigned short SACKE:1;
12544
            unsigned short :4;
12545
        } BIT;
12546
    } INTENB1;
12547
    unsigned char wk7[2];
12548
    union {
12549
        unsigned short WORD;
12550
        struct {
12551
            unsigned short :6;
12552
            unsigned short PIPE9BRDYE:1;
12553
            unsigned short PIPE8BRDYE:1;
12554
            unsigned short PIPE7BRDYE:1;
12555
            unsigned short PIPE6BRDYE:1;
12556
            unsigned short PIPE5BRDYE:1;
12557
            unsigned short PIPE4BRDYE:1;
12558
            unsigned short PIPE3BRDYE:1;
12559
            unsigned short PIPE2BRDYE:1;
12560
            unsigned short PIPE1BRDYE:1;
12561
            unsigned short PIPE0BRDYE:1;
12562
        } BIT;
12563
    } BRDYENB;
12564
    union {
12565
        unsigned short WORD;
12566
        struct {
12567
            unsigned short :6;
12568
            unsigned short PIPE9BRDYE:1;
12569
            unsigned short PIPE8BRDYE:1;
12570
            unsigned short PIPE7BRDYE:1;
12571
            unsigned short PIPE6BRDYE:1;
12572
            unsigned short PIPE5BRDYE:1;
12573
            unsigned short PIPE4BRDYE:1;
12574
            unsigned short PIPE3BRDYE:1;
12575
            unsigned short PIPE2BRDYE:1;
12576
            unsigned short PIPE1BRDYE:1;
12577
            unsigned short PIPE0BRDYE:1;
12578
        } BIT;
12579
    } NRDYENB;
12580
    union {
12581
        unsigned short WORD;
12582
        struct {
12583
            unsigned short :6;
12584
            unsigned short PIPE9BEMPE:1;
12585
            unsigned short PIPE8BEMPE:1;
12586
            unsigned short PIPE7BEMPE:1;
12587
            unsigned short PIPE6BEMPE:1;
12588
            unsigned short PIPE5BEMPE:1;
12589
            unsigned short PIPE4BEMPE:1;
12590
            unsigned short PIPE3BEMPE:1;
12591
            unsigned short PIPE2BEMPE:1;
12592
            unsigned short PIPE1BEMPE:1;
12593
            unsigned short PIPE0BEMPE:1;
12594
        } BIT;
12595
    } BEMPENB;
12596
    union {
12597
        unsigned short WORD;
12598
        struct {
12599
            unsigned short :7;
12600
            unsigned short TRNENSEL:1;
12601
            unsigned short :1;
12602
            unsigned short BRDYM:1;
12603
            unsigned short :1;
12604
            unsigned short EDGESTS:1;
12605
            unsigned short :4;
12606
        } BIT;
12607
    } SOFCFG;
12608
    unsigned char wk8[2];
12609
    union {
12610
        unsigned short WORD;
12611
        struct {
12612
            unsigned short VBINT:1;
12613
            unsigned short RESM:1;
12614
            unsigned short SOFR:1;
12615
            unsigned short DVST:1;
12616
            unsigned short CTRT:1;
12617
            unsigned short BEMP:1;
12618
            unsigned short NRDY:1;
12619
            unsigned short BRDY:1;
12620
            unsigned short VBSTS:1;
12621
            unsigned short DVSQ:3;
12622
            unsigned short VALID:1;
12623
            unsigned short CTSQ:3;
12624
        } BIT;
12625
    } INTSTS0;
12626
    union {
12627
        unsigned short WORD;
12628
        struct {
12629
            unsigned short OVRCR:1;
12630
            unsigned short BCHG:1;
12631
            unsigned short :1;
12632
            unsigned short DTCH:1;
12633
            unsigned short ATTCH:1;
12634
            unsigned short :4;
12635
            unsigned short EOFERR:1;
12636
            unsigned short SIGN:1;
12637
            unsigned short SACK:1;
12638
            unsigned short :4;
12639
        } BIT;
12640
    } INTSTS1;
12641
    unsigned char wk9[2];
12642
    union {
12643
        unsigned short WORD;
12644
        struct {
12645
            unsigned short :6;
12646
            unsigned short PIPE9BRDY:1;
12647
            unsigned short PIPE8BRDY:1;
12648
            unsigned short PIPE7BRDY:1;
12649
            unsigned short PIPE6BRDY:1;
12650
            unsigned short PIPE5BRDY:1;
12651
            unsigned short PIPE4BRDY:1;
12652
            unsigned short PIPE3BRDY:1;
12653
            unsigned short PIPE2BRDY:1;
12654
            unsigned short PIPE1BRDY:1;
12655
            unsigned short PIPE0BRDY:1;
12656
        } BIT;
12657
    } BRDYSTS;
12658
    union {
12659
        unsigned short WORD;
12660
        struct {
12661
            unsigned short :6;
12662
            unsigned short PIPE9BRDY:1;
12663
            unsigned short PIPE8BRDY:1;
12664
            unsigned short PIPE7BRDY:1;
12665
            unsigned short PIPE6BRDY:1;
12666
            unsigned short PIPE5BRDY:1;
12667
            unsigned short PIPE4BRDY:1;
12668
            unsigned short PIPE3BRDY:1;
12669
            unsigned short PIPE2BRDY:1;
12670
            unsigned short PIPE1BRDY:1;
12671
            unsigned short PIPE0BRDY:1;
12672
        } BIT;
12673
    } NRDYSTS;
12674
    union {
12675
        unsigned short WORD;
12676
        struct {
12677
            unsigned short :6;
12678
            unsigned short PIPE9BENP:1;
12679
            unsigned short PIPE8BENP:1;
12680
            unsigned short PIPE7BENP:1;
12681
            unsigned short PIPE6BENP:1;
12682
            unsigned short PIPE5BENP:1;
12683
            unsigned short PIPE4BENP:1;
12684
            unsigned short PIPE3BENP:1;
12685
            unsigned short PIPE2BENP:1;
12686
            unsigned short PIPE1BENP:1;
12687
            unsigned short PIPE0BENP:1;
12688
        } BIT;
12689
    } BEMPSTS;
12690
    union {
12691
        unsigned short WORD;
12692
        struct {
12693
            unsigned short OVRN:1;
12694
            unsigned short CRCE:1;
12695
            unsigned short :3;
12696
            unsigned short FRNM:11;
12697
        } BIT;
12698
    } FRMNUM;
12699
    union {
12700
        unsigned short WORD;
12701
        struct {
12702
            unsigned short DVCHG:1;
12703
            unsigned short :15;
12704
        } BIT;
12705
    } DVCHGR;
12706
    union {
12707
        unsigned short WORD;
12708
        struct {
12709
            unsigned short :4;
12710
            unsigned short STSRECOV:4;
12711
            unsigned short :1;
12712
            unsigned short USBADDR:7;
12713
        } BIT;
12714
    } USBADDR;
12715
    unsigned char wk10[2];
12716
    union {
12717
        unsigned short WORD;
12718
        struct {
12719
            unsigned short BREQUEST:8;
12720
            unsigned short BMREQUESTTYPE:8;
12721
        } BIT;
12722
    } USBREQ;
12723
    unsigned short USBVAL;
12724
    unsigned short USBINDX;
12725
    unsigned short USBLENG;
12726
    union {
12727
        unsigned short WORD;
12728
        struct {
12729
            unsigned short :8;
12730
            unsigned short SHTNAK:1;
12731
            unsigned short :2;
12732
            unsigned short DIR:1;
12733
            unsigned short :4;
12734
        } BIT;
12735
    } DCPCFG;
12736
    union {
12737
        unsigned short WORD;
12738
        struct {
12739
            unsigned short DEVSEL:4;
12740
            unsigned short :5;
12741
            unsigned short MXPS:7;
12742
        } BIT;
12743
    } DCPMAXP;
12744
    union {
12745
        unsigned short WORD;
12746
        struct {
12747
            unsigned short BSTS:1;
12748
            unsigned short SUREQ:1;
12749
            unsigned short :2;
12750
            unsigned short SUREQCLR:1;
12751
            unsigned short :2;
12752
            unsigned short SQCLR:1;
12753
            unsigned short SQSET:1;
12754
            unsigned short SQMON:1;
12755
            unsigned short PBUSY:1;
12756
            unsigned short :2;
12757
            unsigned short CCPL:1;
12758
            unsigned short PID:2;
12759
        } BIT;
12760
    } DCPCTR;
12761
    unsigned char wk11[2];
12762
    union {
12763
        unsigned short WORD;
12764
        struct {
12765
            unsigned short :12;
12766
            unsigned short PIPESEL:4;
12767
        } BIT;
12768
    } PIPESEL;
12769
    unsigned char wk12[2];
12770
    union {
12771
        unsigned short WORD;
12772
        struct {
12773
            unsigned short TYPE:2;
12774
            unsigned short :3;
12775
            unsigned short BFRE:1;
12776
            unsigned short DBLB:1;
12777
            unsigned short :1;
12778
            unsigned short SHTNAK:1;
12779
            unsigned short :2;
12780
            unsigned short DIR:1;
12781
            unsigned short EPNUM:4;
12782
        } BIT;
12783
    } PIPECFG;
12784
    unsigned char wk13[2];
12785
    union {
12786
        unsigned short WORD;
12787
        struct {
12788
            unsigned short DEVSEL:4;
12789
            unsigned short :3;
12790
            unsigned short XPS:1;
12791
            unsigned short MXPS:8;
12792
        } BIT;
12793
    } PIPEMAXP;
12794
    union {
12795
        unsigned short WORD;
12796
        struct {
12797
            unsigned short :3;
12798
            unsigned short IFIS:1;
12799
            unsigned short :9;
12800
            unsigned short IITV:3;
12801
        } BIT;
12802
    } PIPEPERI;
12803
    union {
12804
        unsigned short WORD;
12805
        struct {
12806
            unsigned short BSTS:1;
12807
            unsigned short INBUFM:1;
12808
            unsigned short :3;
12809
            unsigned short ATREPM:1;
12810
            unsigned short ACLRM:1;
12811
            unsigned short SQCLR:1;
12812
            unsigned short SQSET:1;
12813
            unsigned short SQMON:1;
12814
            unsigned short PBUSY:1;
12815
            unsigned short :3;
12816
            unsigned short PID:2;
12817
        } BIT;
12818
    } PIPE1CTR;
12819
    union {
12820
        unsigned short WORD;
12821
        struct {
12822
            unsigned short BSTS:1;
12823
            unsigned short INBUFM:1;
12824
            unsigned short :3;
12825
            unsigned short ATREPM:1;
12826
            unsigned short ACLRM:1;
12827
            unsigned short SQCLR:1;
12828
            unsigned short SQSET:1;
12829
            unsigned short SQMON:1;
12830
            unsigned short PBUSY:1;
12831
            unsigned short :3;
12832
            unsigned short PID:2;
12833
        } BIT;
12834
    } PIPE2CTR;
12835
    union {
12836
        unsigned short WORD;
12837
        struct {
12838
            unsigned short BSTS:1;
12839
            unsigned short INBUFM:1;
12840
            unsigned short :3;
12841
            unsigned short ATREPM:1;
12842
            unsigned short ACLRM:1;
12843
            unsigned short SQCLR:1;
12844
            unsigned short SQSET:1;
12845
            unsigned short SQMON:1;
12846
            unsigned short PBUSY:1;
12847
            unsigned short :3;
12848
            unsigned short PID:2;
12849
        } BIT;
12850
    } PIPE3CTR;
12851
    union {
12852
        unsigned short WORD;
12853
        struct {
12854
            unsigned short BSTS:1;
12855
            unsigned short INBUFM:1;
12856
            unsigned short :3;
12857
            unsigned short ATREPM:1;
12858
            unsigned short ACLRM:1;
12859
            unsigned short SQCLR:1;
12860
            unsigned short SQSET:1;
12861
            unsigned short SQMON:1;
12862
            unsigned short PBUSY:1;
12863
            unsigned short :3;
12864
            unsigned short PID:2;
12865
        } BIT;
12866
    } PIPE4CTR;
12867
    union {
12868
        unsigned short WORD;
12869
        struct {
12870
            unsigned short BSTS:1;
12871
            unsigned short INBUFM:1;
12872
            unsigned short :3;
12873
            unsigned short ATREPM:1;
12874
            unsigned short ACLRM:1;
12875
            unsigned short SQCLR:1;
12876
            unsigned short SQSET:1;
12877
            unsigned short SQMON:1;
12878
            unsigned short PBUSY:1;
12879
            unsigned short :3;
12880
            unsigned short PID:2;
12881
        } BIT;
12882
    } PIPE5CTR;
12883
    union {
12884
        unsigned short WORD;
12885
        struct {
12886
            unsigned short BSTS:1;
12887
            unsigned short :5;
12888
            unsigned short ACLRM:1;
12889
            unsigned short SQCLR:1;
12890
            unsigned short SQSET:1;
12891
            unsigned short SQMON:1;
12892
            unsigned short PBUSY:1;
12893
            unsigned short :3;
12894
            unsigned short PID:2;
12895
        } BIT;
12896
    } PIPE6CTR;
12897
    union {
12898
        unsigned short WORD;
12899
        struct {
12900
            unsigned short BSTS:1;
12901
            unsigned short :5;
12902
            unsigned short ACLRM:1;
12903
            unsigned short SQCLR:1;
12904
            unsigned short SQSET:1;
12905
            unsigned short SQMON:1;
12906
            unsigned short PBUSY:1;
12907
            unsigned short :3;
12908
            unsigned short PID:2;
12909
        } BIT;
12910
    } PIPE7CTR;
12911
    union {
12912
        unsigned short WORD;
12913
        struct {
12914
            unsigned short BSTS:1;
12915
            unsigned short :5;
12916
            unsigned short ACLRM:1;
12917
            unsigned short SQCLR:1;
12918
            unsigned short SQSET:1;
12919
            unsigned short SQMON:1;
12920
            unsigned short PBUSY:1;
12921
            unsigned short :3;
12922
            unsigned short PID:2;
12923
        } BIT;
12924
    } PIPE8CTR;
12925
    union {
12926
        unsigned short WORD;
12927
        struct {
12928
            unsigned short BSTS:1;
12929
            unsigned short :5;
12930
            unsigned short ACLRM:1;
12931
            unsigned short SQCLR:1;
12932
            unsigned short SQSET:1;
12933
            unsigned short SQMON:1;
12934
            unsigned short PBUSY:1;
12935
            unsigned short :3;
12936
            unsigned short PID:2;
12937
        } BIT;
12938
    } PIPE9CTR;
12939
    unsigned char wk14[14];
12940
    union {
12941
        unsigned short WORD;
12942
        struct {
12943
            unsigned short :6;
12944
            unsigned short TRENB:1;
12945
            unsigned short TRCLR:1;
12946
            unsigned short :8;
12947
        } BIT;
12948
    } PIPE1TRE;
12949
    unsigned short PIPE1TRN;
12950
    union {
12951
        unsigned short WORD;
12952
        struct {
12953
            unsigned short :6;
12954
            unsigned short TRENB:1;
12955
            unsigned short TRCLR:1;
12956
            unsigned short :8;
12957
        } BIT;
12958
    } PIPE2TRE;
12959
    unsigned short PIPE2TRN;
12960
    union {
12961
        unsigned short WORD;
12962
        struct {
12963
            unsigned short :6;
12964
            unsigned short TRENB:1;
12965
            unsigned short TRCLR:1;
12966
            unsigned short :8;
12967
        } BIT;
12968
    } PIPE3TRE;
12969
    unsigned short PIPE3TRN;
12970
    union {
12971
        unsigned short WORD;
12972
        struct {
12973
            unsigned short :6;
12974
            unsigned short TRENB:1;
12975
            unsigned short TRCLR:1;
12976
            unsigned short :8;
12977
        } BIT;
12978
    } PIPE4TRE;
12979
    unsigned short PIPE4TRN;
12980
    union {
12981
        unsigned short WORD;
12982
        struct {
12983
            unsigned short :6;
12984
            unsigned short TRENB:1;
12985
            unsigned short TRCLR:1;
12986
            unsigned short :8;
12987
        } BIT;
12988
    } PIPE5TRE;
12989
    unsigned short PIPE5TRN;
12990
    unsigned char wk15[44];
12991
    union {
12992
        unsigned short WORD;
12993
        struct {
12994
            unsigned short :8;
12995
            unsigned short USBSPD:2;
12996
            unsigned short :6;
12997
        } BIT;
12998
    } DEVADD0;
12999
    union {
13000
        unsigned short WORD;
13001
        struct {
13002
            unsigned short :8;
13003
            unsigned short USBSPD:2;
13004
            unsigned short :6;
13005
        } BIT;
13006
    } DEVADD1;
13007
    union {
13008
        unsigned short WORD;
13009
        struct {
13010
            unsigned short :8;
13011
            unsigned short USBSPD:2;
13012
            unsigned short :6;
13013
        } BIT;
13014
    } DEVADD2;
13015
    union {
13016
        unsigned short WORD;
13017
        struct {
13018
            unsigned short :8;
13019
            unsigned short USBSPD:2;
13020
            unsigned short :6;
13021
        } BIT;
13022
    } DEVADD3;
13023
    union {
13024
        unsigned short WORD;
13025
        struct {
13026
            unsigned short :8;
13027
            unsigned short USBSPD:2;
13028
            unsigned short :6;
13029
        } BIT;
13030
    } DEVADD4;
13031
    union {
13032
        unsigned short WORD;
13033
        struct {
13034
            unsigned short :8;
13035
            unsigned short USBSPD:2;
13036
            unsigned short :6;
13037
        } BIT;
13038
    } DEVADD5;
13039
};
13040
 
13041
struct st_usb {
13042
    union {
13043
        unsigned long LONG;
13044
        struct {
13045
            unsigned long DVSTS1:1;
13046
            unsigned long :1;
13047
            unsigned long DOVCB1:1;
13048
            unsigned long DOVCA1:1;
13049
            unsigned long :2;
13050
            unsigned long DM1:1;
13051
            unsigned long DP1:1;
13052
            unsigned long DVBSTS0:1;
13053
            unsigned long :1;
13054
            unsigned long DOVCB0:1;
13055
            unsigned long DOVCA0:1;
13056
            unsigned long :2;
13057
            unsigned long DM0:1;
13058
            unsigned long DP0:1;
13059
            unsigned long :3;
13060
            unsigned long FIXPHY1:1;
13061
            unsigned long :3;
13062
            unsigned long SRPC1:1;
13063
            unsigned long :3;
13064
            unsigned long FIXPHY0:1;
13065
            unsigned long :3;
13066
            unsigned long SRPC0:1;
13067
        } BIT;
13068
    } DPUSR0R;
13069
    union {
13070
        unsigned long LONG;
13071
        struct {
13072
            unsigned long DVBINT1:1;
13073
            unsigned long :1;
13074
            unsigned long DOVRCRB1:1;
13075
            unsigned long DOVRCRA1:1;
13076
            unsigned long :2;
13077
            unsigned long DMINT1:1;
13078
            unsigned long DPINT1:1;
13079
            unsigned long DVBINT0:1;
13080
            unsigned long :1;
13081
            unsigned long DOVRCRB0:1;
13082
            unsigned long DOVRCRA0:1;
13083
            unsigned long :2;
13084
            unsigned long DMINT0:1;
13085
            unsigned long DPINT0:1;
13086
            unsigned long DVBSE1:1;
13087
            unsigned long :1;
13088
            unsigned long DOVRCRBE1:1;
13089
            unsigned long DOVRCRAE1:1;
13090
            unsigned long :2;
13091
            unsigned long DMINTE1:1;
13092
            unsigned long DPINTE1:1;
13093
            unsigned long DVBSE0:1;
13094
            unsigned long :1;
13095
            unsigned long DOVRCRBE0:1;
13096
            unsigned long DOVRCRAE0:1;
13097
            unsigned long :2;
13098
            unsigned long DMINTE0:1;
13099
            unsigned long DPINTE0:1;
13100
        } BIT;
13101
    } DPUSR1R;
13102
};
13103
 
13104
struct st_edmac {
13105
    union {
13106
        unsigned long LONG;
13107
        struct {
13108
            unsigned long :25;
13109
            unsigned long DE:1;
13110
            unsigned long DL:2;
13111
            unsigned long :3;
13112
            unsigned long SWR:1;
13113
        } BIT;
13114
    } EDMR;
13115
    unsigned char wk0[4];
13116
    union {
13117
        unsigned long LONG;
13118
        struct {
13119
            unsigned long :31;
13120
            unsigned long TR:1;
13121
        } BIT;
13122
    } EDTRR;
13123
    unsigned char wk1[4];
13124
    union {
13125
        unsigned long LONG;
13126
        struct {
13127
            unsigned long :31;
13128
            unsigned long RR:1;
13129
        } BIT;
13130
    } EDRRR;
13131
    unsigned char wk2[4];
13132
    void *TDLAR;
13133
    unsigned char wk3[4];
13134
    void *RDLAR;
13135
    unsigned char wk4[4];
13136
    union {
13137
        unsigned long LONG;
13138
        struct {
13139
            unsigned long :1;
13140
            unsigned long TWB:1;
13141
            unsigned long :3;
13142
            unsigned long TABT:1;
13143
            unsigned long RABT:1;
13144
            unsigned long RFCOF:1;
13145
            unsigned long ADE:1;
13146
            unsigned long ECI:1;
13147
            unsigned long TC:1;
13148
            unsigned long TDE:1;
13149
            unsigned long TFUF:1;
13150
            unsigned long FR:1;
13151
            unsigned long RDE:1;
13152
            unsigned long RFOF:1;
13153
            unsigned long :4;
13154
            unsigned long CND:1;
13155
            unsigned long DLC:1;
13156
            unsigned long CD:1;
13157
            unsigned long TRO:1;
13158
            unsigned long RMAF:1;
13159
            unsigned long :2;
13160
            unsigned long RRF:1;
13161
            unsigned long RTLF:1;
13162
            unsigned long RTSF:1;
13163
            unsigned long PRE:1;
13164
            unsigned long CERF:1;
13165
        } BIT;
13166
    } EESR;
13167
    unsigned char wk5[4];
13168
    union {
13169
        unsigned long LONG;
13170
        struct {
13171
            unsigned long :1;
13172
            unsigned long TWBIP:1;
13173
            unsigned long :3;
13174
            unsigned long TABTIP:1;
13175
            unsigned long RABTIP:1;
13176
            unsigned long RFCOFIP:1;
13177
            unsigned long ADEIP:1;
13178
            unsigned long ECIIP:1;
13179
            unsigned long TCIP:1;
13180
            unsigned long TDEIP:1;
13181
            unsigned long TFUFIP:1;
13182
            unsigned long FRIP:1;
13183
            unsigned long RDEIP:1;
13184
            unsigned long RFOFIP:1;
13185
            unsigned long :4;
13186
            unsigned long CNDIP:1;
13187
            unsigned long DLCIP:1;
13188
            unsigned long CDIP:1;
13189
            unsigned long TROIP:1;
13190
            unsigned long RMAFIP:1;
13191
            unsigned long :2;
13192
            unsigned long RRFIP:1;
13193
            unsigned long RTLFIP:1;
13194
            unsigned long RTSFIP:1;
13195
            unsigned long PREIP:1;
13196
            unsigned long CERFIP:1;
13197
        } BIT;
13198
    } EESIPR;
13199
    unsigned char wk6[4];
13200
    union {
13201
        unsigned long LONG;
13202
        struct {
13203
            unsigned long :20;
13204
            unsigned long CNDCE:1;
13205
            unsigned long DLCCE:1;
13206
            unsigned long CDCE:1;
13207
            unsigned long TROCE:1;
13208
            unsigned long RMAFCE:1;
13209
            unsigned long :2;
13210
            unsigned long RRFCE:1;
13211
            unsigned long RTLFCE:1;
13212
            unsigned long RTSFCE:1;
13213
            unsigned long PRECE:1;
13214
            unsigned long CERFCE:1;
13215
        } BIT;
13216
    } TRSCER;
13217
    unsigned char wk7[4];
13218
    union {
13219
        unsigned long LONG;
13220
        struct {
13221
            unsigned long :16;
13222
            unsigned long MFC:16;
13223
        } BIT;
13224
    } RMFCR;
13225
    unsigned char wk8[4];
13226
    union {
13227
        unsigned long LONG;
13228
        struct {
13229
            unsigned long :21;
13230
            unsigned long TFT:11;
13231
        } BIT;
13232
    } TFTR;
13233
    unsigned char wk9[4];
13234
    union {
13235
        unsigned long LONG;
13236
        struct {
13237
            unsigned long :19;
13238
            unsigned long TFD:5;
13239
            unsigned long :3;
13240
            unsigned long RFD:5;
13241
        } BIT;
13242
    } FDR;
13243
    unsigned char wk10[4];
13244
    union {
13245
        unsigned long LONG;
13246
        struct {
13247
            unsigned long :30;
13248
            unsigned long RNC:1;
13249
            unsigned long RNR:1;
13250
        } BIT;
13251
    } RMCR;
13252
    unsigned char wk11[8];
13253
    union {
13254
        unsigned long LONG;
13255
        struct {
13256
            unsigned long :16;
13257
            unsigned long UNDER:16;
13258
        } BIT;
13259
    } TFUCR;
13260
    union {
13261
        unsigned long LONG;
13262
        struct {
13263
            unsigned long :16;
13264
            unsigned long OVER:16;
13265
        } BIT;
13266
    } RFOCR;
13267
    union {
13268
        unsigned long LONG;
13269
        struct {
13270
            unsigned long :31;
13271
            unsigned long TLB:1;
13272
        } BIT;
13273
    } IOSR;
13274
    union {
13275
        unsigned long LONG;
13276
        struct {
13277
            unsigned long :13;
13278
            unsigned long RFFO:3;
13279
            unsigned long :13;
13280
            unsigned long RFDO:3;
13281
        } BIT;
13282
    } FCFTR;
13283
    unsigned char wk12[4];
13284
    union {
13285
        unsigned long LONG;
13286
        struct {
13287
            unsigned long :14;
13288
            unsigned long PADS:2;
13289
            unsigned long :10;
13290
            unsigned long PADR:6;
13291
        } BIT;
13292
    } RPADIR;
13293
    union {
13294
        unsigned long LONG;
13295
        struct {
13296
            unsigned long :27;
13297
            unsigned long TIM:1;
13298
            unsigned long :3;
13299
            unsigned long TIS:1;
13300
        } BIT;
13301
    } TRIMD;
13302
    unsigned char wk13[72];
13303
    void *RBWAR;
13304
    void *RDFAR;
13305
    unsigned char wk14[4];
13306
    void *TBRAR;
13307
    void *TDFAR;
13308
};
13309
 
13310
struct st_etherc {
13311
    union {
13312
        unsigned long LONG;
13313
        struct {
13314
            unsigned long :11;
13315
            unsigned long TPC:1;
13316
            unsigned long ZPE:1;
13317
            unsigned long PFR:1;
13318
            unsigned long RXF:1;
13319
            unsigned long TXF:1;
13320
            unsigned long :3;
13321
            unsigned long PRCEF:1;
13322
            unsigned long :2;
13323
            unsigned long MPDE:1;
13324
            unsigned long :2;
13325
            unsigned long RE:1;
13326
            unsigned long TE:1;
13327
            unsigned long :1;
13328
            unsigned long ILB:1;
13329
            unsigned long RTM:1;
13330
            unsigned long DM:1;
13331
            unsigned long PRM:1;
13332
        } BIT;
13333
    } ECMR;
13334
    unsigned char wk0[4];
13335
    union {
13336
        unsigned long LONG;
13337
        struct {
13338
            unsigned long :20;
13339
            unsigned long RFL:12;
13340
        } BIT;
13341
    } RFLR;
13342
    unsigned char wk1[4];
13343
    union {
13344
        unsigned long LONG;
13345
        struct {
13346
            unsigned long :26;
13347
            unsigned long BFR:1;
13348
            unsigned long PSRTO:1;
13349
            unsigned long :1;
13350
            unsigned long LCHNG:1;
13351
            unsigned long MPD:1;
13352
            unsigned long ICD:1;
13353
        } BIT;
13354
    } ECSR;
13355
    unsigned char wk2[4];
13356
    union {
13357
        unsigned long LONG;
13358
        struct {
13359
            unsigned long :26;
13360
            unsigned long BFSIPR:1;
13361
            unsigned long PSRTOIP:1;
13362
            unsigned long :1;
13363
            unsigned long LCHNGIP:1;
13364
            unsigned long MPDIP:1;
13365
            unsigned long ICDIP:1;
13366
        } BIT;
13367
    } ECSIPR;
13368
    unsigned char wk3[4];
13369
    union {
13370
        unsigned long LONG;
13371
        struct {
13372
            unsigned long :28;
13373
            unsigned long MDI:1;
13374
            unsigned long MDO:1;
13375
            unsigned long MMD:1;
13376
            unsigned long MDC:1;
13377
        } BIT;
13378
    } PIR;
13379
    unsigned char wk4[4];
13380
    union {
13381
        unsigned long LONG;
13382
        struct {
13383
            unsigned long :31;
13384
            unsigned long LMON:1;
13385
        } BIT;
13386
    } PSR;
13387
    unsigned char wk5[20];
13388
    union {
13389
        unsigned long LONG;
13390
        struct {
13391
            unsigned long :12;
13392
            unsigned long RMD:20;
13393
        } BIT;
13394
    } RDMLR;
13395
    unsigned char wk6[12];
13396
    union {
13397
        unsigned long LONG;
13398
        struct {
13399
            unsigned long :27;
13400
            unsigned long IPG:5;
13401
        } BIT;
13402
    } IPGR;
13403
    union {
13404
        unsigned long LONG;
13405
        struct {
13406
            unsigned long :16;
13407
            unsigned long AP:16;
13408
        } BIT;
13409
    } APR;
13410
    union {
13411
        unsigned long LONG;
13412
        struct {
13413
            unsigned long :16;
13414
            unsigned long MP:16;
13415
        } BIT;
13416
    } MPR;
13417
    unsigned char wk7[4];
13418
    union {
13419
        unsigned long LONG;
13420
        struct {
13421
            unsigned long :24;
13422
            unsigned long RPAUSE:8;
13423
        } BIT;
13424
    } RFCF;
13425
    union {
13426
        unsigned long LONG;
13427
        struct {
13428
            unsigned long :16;
13429
            unsigned long TPAUSE:16;
13430
        } BIT;
13431
    } TPAUSER;
13432
    union {
13433
        unsigned long LONG;
13434
        struct {
13435
            unsigned long :24;
13436
            unsigned long TXP:8;
13437
        } BIT;
13438
    } TPAUSECR;
13439
    union {
13440
        unsigned long LONG;
13441
        struct {
13442
            unsigned long :16;
13443
            unsigned long BCF:16;
13444
        } BIT;
13445
    } BCFRR;
13446
    unsigned char wk8[80];
13447
    unsigned long MAHR;
13448
    unsigned char wk9[4];
13449
    union {
13450
        unsigned long LONG;
13451
        struct {
13452
            unsigned long :16;
13453
            unsigned long MA:16;
13454
        } BIT;
13455
    } MALR;
13456
    unsigned char wk10[4];
13457
    unsigned long TROCR;
13458
    unsigned long CDCR;
13459
    unsigned long LCCR;
13460
    unsigned long CNDCR;
13461
    unsigned char wk11[4];
13462
    unsigned long CEFCR;
13463
    unsigned long FRECR;
13464
    unsigned long TSFRCR;
13465
    unsigned long TLFRCR;
13466
    unsigned long RFCR;
13467
    unsigned long MAFCR;
13468
};
13469
 
13470
enum enum_ir {
13471
IR_BSC_BUSERR=16,
13472
IR_FCU_FIFERR=21,IR_FCU_FRDYI=23,
13473
IR_ICU_SWINT=27,
13474
IR_CMT0_CMI0,
13475
IR_CMT1_CMI1,
13476
IR_CMT2_CMI2,
13477
IR_CMT3_CMI3,
13478
IR_ETHER_EINT,
13479
IR_USB0_D0FIFO0=36,IR_USB0_D1FIFO0,IR_USB0_USBI0,
13480
IR_USB1_D0FIFO1=40,IR_USB1_D1FIFO1,IR_USB1_USBI1,
13481
IR_RSPI0_SPEI0=44,IR_RSPI0_SPRI0,IR_RSPI0_SPTI0,IR_RSPI0_SPII0,
13482
IR_RSPI1_SPEI1,IR_RSPI1_SPRI1,IR_RSPI1_SPTI1,IR_RSPI1_SPII1,
13483
IR_CAN0_ERS0=56,IR_CAN0_RXF0,IR_CAN0_TXF0,IR_CAN0_RXM0,IR_CAN0_TXM0,
13484
IR_RTC_PRD=62,IR_RTC_CUP,
13485
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,
13486
IR_USB_USBR0=90,IR_USB_USBR1,
13487
IR_RTC_ALM,
13488
IR_WDT_WOVI=96,
13489
IR_AD0_ADI0=98,
13490
IR_AD1_ADI1,
13491
IR_S12AD_ADI=102,
13492
IR_MTU0_TGIA0=114,IR_MTU0_TGIB0,IR_MTU0_TGIC0,IR_MTU0_TGID0,IR_MTU0_TCIV0,IR_MTU0_TGIE0,IR_MTU0_TGIF0,
13493
IR_MTU1_TGIA1,IR_MTU1_TGIB1,IR_MTU1_TCIV1,IR_MTU1_TCIU1,
13494
IR_MTU2_TGIA2,IR_MTU2_TGIB2,IR_MTU2_TCIV2,IR_MTU2_TCIU2,
13495
IR_MTU3_TGIA3,IR_MTU3_TGIB3,IR_MTU3_TGIC3,IR_MTU3_TGID3,IR_MTU3_TCIV3,
13496
IR_MTU4_TGIA4,IR_MTU4_TGIB4,IR_MTU4_TGIC4,IR_MTU4_TGID4,IR_MTU4_TCIV4,
13497
IR_MTU5_TGIU5,IR_MTU5_TGIV5,IR_MTU5_TGIW5,
13498
IR_MTU6_TGIA6,IR_MTU6_TGIB6,IR_MTU6_TGIC6,IR_MTU6_TGID6,IR_MTU6_TCIV6,IR_MTU6_TGIE6,IR_MTU6_TGIF6,
13499
IR_MTU7_TGIA7,IR_MTU7_TGIB7,IR_MTU7_TCIV7,IR_MTU7_TCIU7,
13500
IR_MTU8_TGIA8,IR_MTU8_TGIB8,IR_MTU8_TCIV8,IR_MTU8_TCIU8,
13501
IR_MTU9_TGIA9,IR_MTU9_TGIB9,IR_MTU9_TGIC9,IR_MTU9_TGID9,IR_MTU9_TCIV9,
13502
IR_MTU10_TGIA10,IR_MTU10_TGIB10,IR_MTU10_TGIC10,IR_MTU10_TGID10,IR_MTU10_TCIV10,
13503
IR_MTU11_TGIU11,IR_MTU11_TGIV11,IR_MTU11_TGIW11,
13504
IR_POE_OEI1,IR_POE_OEI2,IR_POE_OEI3,IR_POE_OEI4,
13505
IR_TMR0_CMIA0,IR_TMR0_CMIB0,IR_TMR0_OVI0,
13506
IR_TMR1_CMIA1,IR_TMR1_CMIB1,IR_TMR1_OVI1,
13507
IR_TMR2_CMIA2,IR_TMR2_CMIB2,IR_TMR2_OVI2,
13508
IR_TMR3_CMIA3,IR_TMR3_CMIB3,IR_TMR3_OVI3,
13509
IR_DMACA_DMAC0I=198,IR_DMACA_DMAC1I,IR_DMACA_DMAC2I,IR_DMACA_DMAC3I,
13510
IR_EXDMAC_EXDMAC0I,IR_EXDMAC_EXDMAC1I,
13511
IR_SCI0_ERI0=214,IR_SCI0_RXI0,IR_SCI0_TXI0,IR_SCI0_TEI0,
13512
IR_SCI1_ERI1,IR_SCI1_RXI1,IR_SCI1_TXI1,IR_SCI1_TEI1,
13513
IR_SCI2_ERI2,IR_SCI2_RXI2,IR_SCI2_TXI2,IR_SCI2_TEI2,
13514
IR_SCI3_ERI3,IR_SCI3_RXI3,IR_SCI3_TXI3,IR_SCI3_TEI3,
13515
IR_SCI5_ERI5=234,IR_SCI5_RXI5,IR_SCI5_TXI5,IR_SCI5_TEI5,
13516
IR_SCI6_ERI6,IR_SCI6_RXI6,IR_SCI6_TXI6,IR_SCI6_TEI6,
13517
IR_RIIC0_ICEEI0=246,IR_RIIC0_ICRXI0,IR_RIIC0_ICTXI0,IR_RIIC0_ICTEI0,
13518
IR_RIIC1_ICEEI1,IR_RIIC1_ICRXI1,IR_RIIC1_ICTXI1,IR_RIIC1_ICTEI1
13519
};
13520
 
13521
enum enum_dtce {
13522
DTCE_BSC_BUSERR=16,
13523
DTCE_FCU_FIFERR=21,DTCE_FCU_FRDYI=23,
13524
DTCE_ICU_SWINT=27,
13525
DTCE_CMT0_CMI0,
13526
DTCE_CMT1_CMI1,
13527
DTCE_CMT2_CMI2,
13528
DTCE_CMT3_CMI3,
13529
DTCE_ETHER_EINT,
13530
DTCE_USB0_D0FIFO0=36,DTCE_USB0_D1FIFO0,DTCE_USB0_USBI0,
13531
DTCE_USB1_D0FIFO1=40,DTCE_USB1_D1FIFO1,DTCE_USB1_USBI1,
13532
DTCE_RSPI0_SPEI0=44,DTCE_RSPI0_SPRI0,DTCE_RSPI0_SPTI0,DTCE_RSPI0_SPII0,
13533
DTCE_RSPI1_SPEI1,DTCE_RSPI1_SPRI1,DTCE_RSPI1_SPTI1,DTCE_RSPI1_SPII1,
13534
DTCE_CAN0_ERS0=56,DTCE_CAN0_RXF0,DTCE_CAN0_TXF0,DTCE_CAN0_RXM0,DTCE_CAN0_TXM0,
13535
DTCE_RTC_PRD=62,DTCE_RTC_CUP,
13536
DTCE_ICU_IRQ0,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,
13537
DTCE_USB_USBR0=90,DTCE_USB_USBR1,
13538
DTCE_RTC_ALM,
13539
DTCE_WDT_WOVI=96,
13540
DTCE_AD0_ADI0=98,
13541
DTCE_AD1_ADI1,
13542
DTCE_S12AD_ADI=102,
13543
DTCE_MTU0_TGIA0=114,DTCE_MTU0_TGIB0,DTCE_MTU0_TGIC0,DTCE_MTU0_TGID0,DTCE_MTU0_TCIV0,DTCE_MTU0_TGIE0,DTCE_MTU0_TGIF0,
13544
DTCE_MTU1_TGIA1,DTCE_MTU1_TGIB1,DTCE_MTU1_TCIV1,DTCE_MTU1_TCIU1,
13545
DTCE_MTU2_TGIA2,DTCE_MTU2_TGIB2,DTCE_MTU2_TCIV2,DTCE_MTU2_TCIU2,
13546
DTCE_MTU3_TGIA3,DTCE_MTU3_TGIB3,DTCE_MTU3_TGIC3,DTCE_MTU3_TGID3,DTCE_MTU3_TCIV3,
13547
DTCE_MTU4_TGIA4,DTCE_MTU4_TGIB4,DTCE_MTU4_TGIC4,DTCE_MTU4_TGID4,DTCE_MTU4_TCIV4,
13548
DTCE_MTU5_TGIU5,DTCE_MTU5_TGIV5,DTCE_MTU5_TGIW5,
13549
DTCE_MTU6_TGIA6,DTCE_MTU6_TGIB6,DTCE_MTU6_TGIC6,DTCE_MTU6_TGID6,DTCE_MTU6_TCIV6,DTCE_MTU6_TGIE6,DTCE_MTU6_TGIF6,
13550
DTCE_MTU7_TGIA7,DTCE_MTU7_TGIB7,DTCE_MTU7_TCIV7,DTCE_MTU7_TCIU7,
13551
DTCE_MTU8_TGIA8,DTCE_MTU8_TGIB8,DTCE_MTU8_TCIV8,DTCE_MTU8_TCIU8,
13552
DTCE_MTU9_TGIA9,DTCE_MTU9_TGIB9,DTCE_MTU9_TGIC9,DTCE_MTU9_TGID9,DTCE_MTU9_TCIV9,
13553
DTCE_MTU10_TGIA10,DTCE_MTU10_TGIB10,DTCE_MTU10_TGIC10,DTCE_MTU10_TGID10,DTCE_MTU10_TCIV10,
13554
DTCE_MTU11_TGIU11,DTCE_MTU11_TGIV11,DTCE_MTU11_TGIW11,
13555
DTCE_POE_OEI1,DTCE_POE_OEI2,DTCE_POE_OEI3,DTCE_POE_OEI4,
13556
DTCE_TMR0_CMIA0,DTCE_TMR0_CMIB0,DTCE_TMR0_OVI0,
13557
DTCE_TMR1_CMIA1,DTCE_TMR1_CMIB1,DTCE_TMR1_OVI1,
13558
DTCE_TMR2_CMIA2,DTCE_TMR2_CMIB2,DTCE_TMR2_OVI2,
13559
DTCE_TMR3_CMIA3,DTCE_TMR3_CMIB3,DTCE_TMR3_OVI3,
13560
DTCE_DMACA_DMAC0I=198,DTCE_DMACA_DMAC1I,DTCE_DMACA_DMAC2I,DTCE_DMACA_DMAC3I,
13561
DTCE_EXDMAC_EXDMAC0I,DTCE_EXDMAC_EXDMAC1I,
13562
DTCE_SCI0_ERI0=214,DTCE_SCI0_RXI0,DTCE_SCI0_TXI0,DTCE_SCI0_TEI0,
13563
DTCE_SCI1_ERI1,DTCE_SCI1_RXI1,DTCE_SCI1_TXI1,DTCE_SCI1_TEI1,
13564
DTCE_SCI2_ERI2,DTCE_SCI2_RXI2,DTCE_SCI2_TXI2,DTCE_SCI2_TEI2,
13565
DTCE_SCI3_ERI3,DTCE_SCI3_RXI3,DTCE_SCI3_TXI3,DTCE_SCI3_TEI3,
13566
DTCE_SCI5_ERI5=234,DTCE_SCI5_RXI5,DTCE_SCI5_TXI5,DTCE_SCI5_TEI5,
13567
DTCE_SCI6_ERI6,DTCE_SCI6_RXI6,DTCE_SCI6_TXI6,DTCE_SCI6_TEI6,
13568
DTCE_RIIC0_ICEEI0=246,DTCE_RIIC0_ICRXI0,DTCE_RIIC0_ICTXI0,DTCE_RIIC0_ICTEI0,
13569
DTCE_RIIC1_ICEEI1,DTCE_RIIC1_ICRXI1,DTCE_RIIC1_ICTXI1,DTCE_RIIC1_ICTEI1
13570
};
13571
 
13572
enum enum_ier {
13573
IER_BSC_BUSERR=0x02,
13574
IER_FCU_FIFERR=0x02,IER_FCU_FRDYI=0x02,
13575
IER_ICU_SWINT=0x03,
13576
IER_CMT0_CMI0=0x03,
13577
IER_CMT1_CMI1=0x03,
13578
IER_CMT2_CMI2=0x03,
13579
IER_CMT3_CMI3=0x03,
13580
IER_ETHER_EINT=0x04,
13581
IER_USB0_D0FIFO0=0x04,IER_USB0_D1FIFO0=0x04,IER_USB0_USBI0=0x04,
13582
IER_USB1_D0FIFO1=0x05,IER_USB1_D1FIFO1=0x05,IER_USB1_USBI1=0x05,
13583
IER_RSPI0_SPEI0=0x05,IER_RSPI0_SPRI0=0x05,IER_RSPI0_SPTI0=0x05,IER_RSPI0_SPII0=0x05,
13584
IER_RSPI1_SPEI1=0x06,IER_RSPI1_SPRI1=0x06,IER_RSPI1_SPTI1=0x06,IER_RSPI1_SPII1=0x06,
13585
IER_CAN0_ERS0=0x07,IER_CAN0_RXF0=0x07,IER_CAN0_TXF0=0x07,IER_CAN0_RXM0=0x07,IER_CAN0_TXM0=0x07,
13586
IER_RTC_PRD=0x07,IER_RTC_CUP=0x07,
13587
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,
13588
IER_USB_USBR0=0x0B,IER_USB_USBR1=0x0B,
13589
IER_RTC_ALM=0x0B,
13590
IER_WDT_WOVI=0x0C,
13591
IER_AD0_ADI0=0x0C,
13592
IER_AD1_ADI1=0x0C,
13593
IER_S12AD_ADI=0x0C,
13594
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,
13595
IER_MTU1_TGIA1=0x0F,IER_MTU1_TGIB1=0x0F,IER_MTU1_TCIV1=0x0F,IER_MTU1_TCIU1=0x0F,
13596
IER_MTU2_TGIA2=0x0F,IER_MTU2_TGIB2=0x0F,IER_MTU2_TCIV2=0x0F,IER_MTU2_TCIU2=0x10,
13597
IER_MTU3_TGIA3=0x10,IER_MTU3_TGIB3=0x10,IER_MTU3_TGIC3=0x10,IER_MTU3_TGID3=0x10,IER_MTU3_TCIV3=0x10,
13598
IER_MTU4_TGIA4=0x10,IER_MTU4_TGIB4=0x10,IER_MTU4_TGIC4=0x11,IER_MTU4_TGID4=0x11,IER_MTU4_TCIV4=0x11,
13599
IER_MTU5_TGIU5=0x11,IER_MTU5_TGIV5=0x11,IER_MTU5_TGIW5=0x10,
13600
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,
13601
IER_MTU7_TGIA7=0x12,IER_MTU7_TGIB7=0x12,IER_MTU7_TCIV7=0x12,IER_MTU7_TCIU7=0x13,
13602
IER_MTU8_TGIA8=0x13,IER_MTU8_TGIB8=0x13,IER_MTU8_TCIV8=0x13,IER_MTU8_TCIU8=0x13,
13603
IER_MTU9_TGIA9=0x13,IER_MTU9_TGIB9=0x13,IER_MTU9_TGIC9=0x13,IER_MTU9_TGID9=0x14,IER_MTU9_TCIV9=0x14,
13604
IER_MTU10_TGIA10=0x14,IER_MTU10_TGIB10=0x14,IER_MTU10_TGIC10=0x14,IER_MTU10_TGID10=0x14,IER_MTU10_TCIV10=0x14,
13605
IER_MTU11_TGIU11=0x14,IER_MTU11_TGIV11=0x15,IER_MTU11_TGIW11=0x15,
13606
IER_POE_OEI1=0x15,IER_POE_OEI2=0x15,IER_POE_OEI3=0x15,IER_POE_OEI4=0x15,
13607
IER_TMR0_CMIA0=0x15,IER_TMR0_CMIB0=0x15,IER_TMR0_OVI0=0x16,
13608
IER_TMR1_CMIA1=0x16,IER_TMR1_CMIB1=0x16,IER_TMR1_OVI1=0x16,
13609
IER_TMR2_CMIA2=0x16,IER_TMR2_CMIB2=0x16,IER_TMR2_OVI2=0x16,
13610
IER_TMR3_CMIA3=0x16,IER_TMR3_CMIB3=0x17,IER_TMR3_OVI3=0x17,
13611
IER_DMACA_DMAC0I=0x18,IER_DMACA_DMAC1I=0x18,IER_DMACA_DMAC2I=0x19,IER_DMACA_DMAC3I=0x19,
13612
IER_EXDMAC_EXDMAC0I=0x19,IER_EXDMAC_EXDMAC1I=0x19,
13613
IER_SCI0_ERI0=0x1A,IER_SCI0_RXI0=0x1A,IER_SCI0_TXI0=0x1B,IER_SCI0_TEI0=0x1B,
13614
IER_SCI1_ERI1=0x1B,IER_SCI1_RXI1=0x1B,IER_SCI1_TXI1=0x1B,IER_SCI1_TEI1=0x1B,
13615
IER_SCI2_ERI2=0x1B,IER_SCI2_RXI2=0x1B,IER_SCI2_TXI2=0x1C,IER_SCI2_TEI2=0x1C,
13616
IER_SCI3_ERI3=0x1C,IER_SCI3_RXI3=0x1C,IER_SCI3_TXI3=0x1C,IER_SCI3_TEI3=0x1C,
13617
IER_SCI5_ERI5=0x1D,IER_SCI5_RXI5=0x1D,IER_SCI5_TXI5=0x1D,IER_SCI5_TEI5=0x1D,
13618
IER_SCI6_ERI6=0x1D,IER_SCI6_RXI6=0x1D,IER_SCI6_TXI6=0x1E,IER_SCI6_TEI6=0x1E,
13619
IER_RIIC0_ICEEI0=0x1E,IER_RIIC0_ICRXI0=0x1E,IER_RIIC0_ICTXI0=0x1F,IER_RIIC0_ICTEI0=0x1F,
13620
IER_RIIC1_ICEEI1=0x1F,IER_RIIC1_ICRXI1=0x1F,IER_RIIC1_ICTXI1=0x1F,IER_RIIC1_ICTEI1=0x1F
13621
};
13622
 
13623
enum enum_ipr {
13624
IPR_BSC_BUSERR=0x00,
13625
IPR_FCU_FIFERR=0x01,IPR_FCU_FRDYI=0x02,
13626
IPR_ICU_SWINT=0x03,
13627
IPR_CMT0_CMI0=0x04,
13628
IPR_CMT1_CMI1=0x05,
13629
IPR_CMT2_CMI2=0x06,
13630
IPR_CMT3_CMI3=0x07,
13631
IPR_ETHER_EINT=0x08,
13632
IPR_USB0_D0FIFO0=0x0C,IPR_USB0_D1FIFO0=0x0D,IPR_USB0_USBI0=0x0E,
13633
IPR_USB1_D0FIFO1=0x10,IPR_USB1_D1FIFO1=0x11,IPR_USB1_USBI1=0x12,
13634
IPR_RSPI0_SPEI0=0x14,IPR_RSPI0_SPRI0=0x14,IPR_RSPI0_SPTI0=0x14,IPR_RSPI0_SPII0=0x14,
13635
IPR_RSPI1_SPEI1=0x15,IPR_RSPI1_SPRI1=0x15,IPR_RSPI1_SPTI1=0x15,IPR_RSPI1_SPII1=0x15,
13636
IPR_CAN0_ERS0=0x18,IPR_CAN0_RXF0=0x18,IPR_CAN0_TXF0=0x18,IPR_CAN0_RXM0=0x18,IPR_CAN0_TXM0=0x18,
13637
IPR_RTC_PRD=0x1E,IPR_RTC_CUP=0x1F,
13638
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,
13639
IPR_USB_USBR0=0x3A,IPR_USB_USBR1=0x3B,
13640
IPR_RTC_ALM=0x3C,
13641
IPR_WDT_WOVI=0x40,
13642
IPR_AD0_ADI0=0x44,
13643
IPR_AD1_ADI1=0x45,
13644
IPR_S12AD_ADI=0x48,
13645
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,
13646
IPR_MTU1_TGIA1=0x53,IPR_MTU1_TGIB1=0x53,IPR_MTU1_TCIV1=0x54,IPR_MTU1_TCIU1=0x54,
13647
IPR_MTU2_TGIA2=0x55,IPR_MTU2_TGIB2=0x55,IPR_MTU2_TCIV2=0x56,IPR_MTU2_TCIU2=0x56,
13648
IPR_MTU3_TGIA3=0x57,IPR_MTU3_TGIB3=0x57,IPR_MTU3_TGIC3=0x57,IPR_MTU3_TGID3=0x57,IPR_MTU3_TCIV3=0x58,
13649
IPR_MTU4_TGIA4=0x59,IPR_MTU4_TGIB4=0x59,IPR_MTU4_TGIC4=0x59,IPR_MTU4_TGID4=0x59,IPR_MTU4_TCIV4=0x5A,
13650
IPR_MTU5_TGIU5=0x5B,IPR_MTU5_TGIV5=0x5B,IPR_MTU5_TGIW5=0x5B,
13651
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,
13652
IPR_MTU7_TGIA7=0x5E,IPR_MTU7_TGIB7=0x5E,IPR_MTU7_TCIV7=0x5F,IPR_MTU7_TCIU7=0x5F,
13653
IPR_MTU8_TGIA8=0x60,IPR_MTU8_TGIB8=0x60,IPR_MTU8_TCIV8=0x61,IPR_MTU8_TCIU8=0x61,
13654
IPR_MTU9_TGIA9=0x62,IPR_MTU9_TGIB9=0x62,IPR_MTU9_TGIC9=0x62,IPR_MTU9_TGID9=0x62,IPR_MTU9_TCIV9=0x63,
13655
IPR_MTU10_TGIA10=0x64,IPR_MTU10_TGIB10=0x64,IPR_MTU10_TGIC10=0x64,IPR_MTU10_TGID10=0x64,IPR_MTU10_TCIV10=0x65,
13656
IPR_MTU11_TGIU11=0x66,IPR_MTU11_TGIV11=0x66,IPR_MTU11_TGIW11=0x66,
13657
IPR_POE_OEI1=0x67,IPR_POE_OEI2=0x67,IPR_POE_OEI3=0x67,IPR_POE_OEI4=0x67,
13658
IPR_TMR0_CMIA0=0x68,IPR_TMR0_CMIB0=0x68,IPR_TMR0_OVI0=0x68,
13659
IPR_TMR1_CMIA1=0x69,IPR_TMR1_CMIB1=0x69,IPR_TMR1_OVI1=0x69,
13660
IPR_TMR2_CMIA2=0x6A,IPR_TMR2_CMIB2=0x6A,IPR_TMR2_OVI2=0x6A,
13661
IPR_TMR3_CMIA3=0x6B,IPR_TMR3_CMIB3=0x6B,IPR_TMR3_OVI3=0x6B,
13662
IPR_DMACA_DMAC0I=0x70,IPR_DMACA_DMAC1I=0x71,IPR_DMACA_DMAC2I=0x72,IPR_DMACA_DMAC3I=0x73,
13663
IPR_EXDMAC_EXDMAC0I=0x74,IPR_EXDMAC_EXDMAC1I=0x75,
13664
IPR_SCI0_ERI0=0x80,IPR_SCI0_RXI0=0x80,IPR_SCI0_TXI0=0x80,IPR_SCI0_TEI0=0x80,
13665
IPR_SCI1_ERI1=0x81,IPR_SCI1_RXI1=0x81,IPR_SCI1_TXI1=0x81,IPR_SCI1_TEI1=0x81,
13666
IPR_SCI2_ERI2=0x82,IPR_SCI2_RXI2=0x82,IPR_SCI2_TXI2=0x82,IPR_SCI2_TEI2=0x82,
13667
IPR_SCI3_ERI3=0x83,IPR_SCI3_RXI3=0x83,IPR_SCI3_TXI3=0x83,IPR_SCI3_TEI3=0x83,
13668
IPR_SCI5_ERI5=0x85,IPR_SCI5_RXI5=0x85,IPR_SCI5_TXI5=0x85,IPR_SCI5_TEI5=0x85,
13669
IPR_SCI6_ERI6=0x86,IPR_SCI6_RXI6=0x86,IPR_SCI6_TXI6=0x86,IPR_SCI6_TEI6=0x86,
13670
IPR_RIIC0_ICEEI0=0x88,IPR_RIIC0_ICRXI0=0x89,IPR_RIIC0_ICTXI0=0x8A,IPR_RIIC0_ICTEI0=0x8B,
13671
IPR_RIIC1_ICEEI1=0x8C,IPR_RIIC1_ICRXI1=0x8D,IPR_RIIC1_ICTXI1=0x8E,IPR_RIIC1_ICTEI1=0x8F,
13672
IPR_BSC_=0x00,
13673
IPR_CMT0_=0x04,
13674
IPR_CMT1_=0x05,
13675
IPR_CMT2_=0x06,
13676
IPR_CMT3_=0x07,
13677
IPR_ETHER_=0x08,
13678
IPR_RSPI0_=0x14,
13679
IPR_RSPI1_=0x15,
13680
IPR_CAN0_=0x18,
13681
IPR_WDT_=0x40,
13682
IPR_AD0_=0x44,
13683
IPR_AD1_=0x45,
13684
IPR_S12AD_=0x48,
13685
IPR_MTU1_TGI=0x53,
13686
IPR_MTU1_TCI=0x54,
13687
IPR_MTU2_TGI=0x55,
13688
IPR_MTU2_TCI=0x56,
13689
IPR_MTU3_TGI=0x57,
13690
IPR_MTU4_TGI=0x59,
13691
IPR_MTU5_=0x5B,
13692
IPR_MTU5_TGI=0x5B,
13693
IPR_MTU7_TGI=0x5E,
13694
IPR_MTU7_TCI=0x5F,
13695
IPR_MTU8_TGI=0x60,
13696
IPR_MTU8_TCI=0x61,
13697
IPR_MTU9_TGI=0x62,
13698
IPR_MTU10_TGI=0x64,
13699
IPR_MTU11_=0x66,
13700
IPR_MTU11_TGI=0x66,
13701
IPR_POE_=0x67,
13702
IPR_POE_OEI=0x67,
13703
IPR_TMR0_=0x68,
13704
IPR_TMR1_=0x69,
13705
IPR_TMR2_=0x6A,
13706
IPR_TMR3_=0x6B,
13707
IPR_SCI0_=0x80,
13708
IPR_SCI1_=0x81,
13709
IPR_SCI2_=0x82,
13710
IPR_SCI3_=0x83,
13711
IPR_SCI5_=0x85,
13712
IPR_SCI6_=0x86
13713
};
13714
 
13715
#define IEN_BSC_BUSERR          IEN0
13716
#define IEN_FCU_FIFERR          IEN5
13717
#define IEN_FCU_FRDYI           IEN7
13718
#define IEN_ICU_SWINT           IEN3
13719
#define IEN_CMT0_CMI0           IEN4
13720
#define IEN_CMT1_CMI1           IEN5
13721
#define IEN_CMT2_CMI2           IEN6
13722
#define IEN_CMT3_CMI3           IEN7
13723
#define IEN_ETHER_EINT          IEN0
13724
#define IEN_USB0_D0FIFO0        IEN4
13725
#define IEN_USB0_D1FIFO0        IEN5
13726
#define IEN_USB0_USBI0          IEN6
13727
#define IEN_USB1_D0FIFO1        IEN0
13728
#define IEN_USB1_D1FIFO1        IEN1
13729
#define IEN_USB1_USBI1          IEN2
13730
#define IEN_RSPI0_SPEI0         IEN4
13731
#define IEN_RSPI0_SPRI0         IEN5
13732
#define IEN_RSPI0_SPTI0         IEN6
13733
#define IEN_RSPI0_SPII0         IEN7
13734
#define IEN_RSPI1_SPEI1         IEN0
13735
#define IEN_RSPI1_SPRI1         IEN1
13736
#define IEN_RSPI1_SPTI1         IEN2
13737
#define IEN_RSPI1_SPII1         IEN3
13738
#define IEN_CAN0_ERS0           IEN0
13739
#define IEN_CAN0_RXF0           IEN1
13740
#define IEN_CAN0_TXF0           IEN2
13741
#define IEN_CAN0_RXM0           IEN3
13742
#define IEN_CAN0_TXM0           IEN4
13743
#define IEN_RTC_PRD                     IEN6
13744
#define IEN_RTC_CUP                     IEN7
13745
#define IEN_ICU_IRQ0            IEN0
13746
#define IEN_ICU_IRQ1            IEN1
13747
#define IEN_ICU_IRQ2            IEN2
13748
#define IEN_ICU_IRQ3            IEN3
13749
#define IEN_ICU_IRQ4            IEN4
13750
#define IEN_ICU_IRQ5            IEN5
13751
#define IEN_ICU_IRQ6            IEN6
13752
#define IEN_ICU_IRQ7            IEN7
13753
#define IEN_ICU_IRQ8            IEN0
13754
#define IEN_ICU_IRQ9            IEN1
13755
#define IEN_ICU_IRQ10           IEN2
13756
#define IEN_ICU_IRQ11           IEN3
13757
#define IEN_ICU_IRQ12           IEN4
13758
#define IEN_ICU_IRQ13           IEN5
13759
#define IEN_ICU_IRQ14           IEN6
13760
#define IEN_ICU_IRQ15           IEN7
13761
#define IEN_USB_USBR0           IEN2
13762
#define IEN_USB_USBR1           IEN3
13763
#define IEN_RTC_ALM                     IEN4
13764
#define IEN_WDT_WOVI            IEN0
13765
#define IEN_AD0_ADI0            IEN2
13766
#define IEN_AD1_ADI1            IEN3
13767
#define IEN_S12AD_ADI           IEN6
13768
#define IEN_MTU0_TGIA0          IEN2
13769
#define IEN_MTU0_TGIB0          IEN3
13770
#define IEN_MTU0_TGIC0          IEN4
13771
#define IEN_MTU0_TGID0          IEN5
13772
#define IEN_MTU0_TCIV0          IEN6
13773
#define IEN_MTU0_TGIE0          IEN7
13774
#define IEN_MTU0_TGIF0          IEN0
13775
#define IEN_MTU1_TGIA1          IEN1
13776
#define IEN_MTU1_TGIB1          IEN2
13777
#define IEN_MTU1_TCIV1          IEN3
13778
#define IEN_MTU1_TCIU1          IEN4
13779
#define IEN_MTU2_TGIA2          IEN5
13780
#define IEN_MTU2_TGIB2          IEN6
13781
#define IEN_MTU2_TCIV2          IEN7
13782
#define IEN_MTU2_TCIU2          IEN0
13783
#define IEN_MTU3_TGIA3          IEN1
13784
#define IEN_MTU3_TGIB3          IEN2
13785
#define IEN_MTU3_TGIC3          IEN3
13786
#define IEN_MTU3_TGID3          IEN4
13787
#define IEN_MTU3_TCIV3          IEN5
13788
#define IEN_MTU4_TGIA4          IEN6
13789
#define IEN_MTU4_TGIB4          IEN7
13790
#define IEN_MTU4_TGIC4          IEN0
13791
#define IEN_MTU4_TGID4          IEN1
13792
#define IEN_MTU4_TCIV4          IEN2
13793
#define IEN_MTU5_TGIU5          IEN3
13794
#define IEN_MTU5_TGIV5          IEN4
13795
#define IEN_MTU5_TGIW5          IEN7
13796
#define IEN_MTU6_TGIA6          IEN6
13797
#define IEN_MTU6_TGIB6          IEN7
13798
#define IEN_MTU6_TGIC6          IEN0
13799
#define IEN_MTU6_TGID6          IEN1
13800
#define IEN_MTU6_TCIV6          IEN2
13801
#define IEN_MTU6_TGIE6          IEN3
13802
#define IEN_MTU6_TGIF6          IEN4
13803
#define IEN_MTU7_TGIA7          IEN5
13804
#define IEN_MTU7_TGIB7          IEN6
13805
#define IEN_MTU7_TCIV7          IEN7
13806
#define IEN_MTU7_TCIU7          IEN0
13807
#define IEN_MTU8_TGIA8          IEN1
13808
#define IEN_MTU8_TGIB8          IEN2
13809
#define IEN_MTU8_TCIV8          IEN3
13810
#define IEN_MTU8_TCIU8          IEN4
13811
#define IEN_MTU9_TGIA9          IEN5
13812
#define IEN_MTU9_TGIB9          IEN6
13813
#define IEN_MTU9_TGIC9          IEN7
13814
#define IEN_MTU9_TGID9          IEN0
13815
#define IEN_MTU9_TCIV9          IEN1
13816
#define IEN_MTU10_TGIA10        IEN2
13817
#define IEN_MTU10_TGIB10        IEN3
13818
#define IEN_MTU10_TGIC10        IEN4
13819
#define IEN_MTU10_TGID10        IEN5
13820
#define IEN_MTU10_TCIV10        IEN6
13821
#define IEN_MTU11_TGIU11        IEN7
13822
#define IEN_MTU11_TGIV11        IEN0
13823
#define IEN_MTU11_TGIW11        IEN1
13824
#define IEN_POE_OEI1            IEN2
13825
#define IEN_POE_OEI2            IEN3
13826
#define IEN_POE_OEI3            IEN4
13827
#define IEN_POE_OEI4            IEN5
13828
#define IEN_TMR0_CMIA0          IEN6
13829
#define IEN_TMR0_CMIB0          IEN7
13830
#define IEN_TMR0_OVI0           IEN0
13831
#define IEN_TMR1_CMIA1          IEN1
13832
#define IEN_TMR1_CMIB1          IEN2
13833
#define IEN_TMR1_OVI1           IEN3
13834
#define IEN_TMR2_CMIA2          IEN4
13835
#define IEN_TMR2_CMIB2          IEN5
13836
#define IEN_TMR2_OVI2           IEN6
13837
#define IEN_TMR3_CMIA3          IEN7
13838
#define IEN_TMR3_CMIB3          IEN0
13839
#define IEN_TMR3_OVI3           IEN1
13840
#define IEN_DMACA_DMAC0I        IEN6
13841
#define IEN_DMACA_DMAC1I        IEN7
13842
#define IEN_DMACA_DMAC2I        IEN0
13843
#define IEN_DMACA_DMAC3I        IEN1
13844
#define IEN_EXDMAC_EXDMAC0I     IEN2
13845
#define IEN_EXDMAC_EXDMAC1I     IEN3
13846
#define IEN_SCI0_ERI0           IEN6
13847
#define IEN_SCI0_RXI0           IEN7
13848
#define IEN_SCI0_TXI0           IEN0
13849
#define IEN_SCI0_TEI0           IEN1
13850
#define IEN_SCI1_ERI1           IEN2
13851
#define IEN_SCI1_RXI1           IEN3
13852
#define IEN_SCI1_TXI1           IEN4
13853
#define IEN_SCI1_TEI1           IEN5
13854
#define IEN_SCI2_ERI2           IEN6
13855
#define IEN_SCI2_RXI2           IEN7
13856
#define IEN_SCI2_TXI2           IEN0
13857
#define IEN_SCI2_TEI2           IEN1
13858
#define IEN_SCI3_ERI3           IEN2
13859
#define IEN_SCI3_RXI3           IEN3
13860
#define IEN_SCI3_TXI3           IEN4
13861
#define IEN_SCI3_TEI3           IEN5
13862
#define IEN_SCI5_ERI5           IEN2
13863
#define IEN_SCI5_RXI5           IEN3
13864
#define IEN_SCI5_TXI5           IEN4
13865
#define IEN_SCI5_TEI5           IEN5
13866
#define IEN_SCI6_ERI6           IEN6
13867
#define IEN_SCI6_RXI6           IEN7
13868
#define IEN_SCI6_TXI6           IEN0
13869
#define IEN_SCI6_TEI6           IEN1
13870
#define IEN_RIIC0_ICEEI0        IEN6
13871
#define IEN_RIIC0_ICRXI0        IEN7
13872
#define IEN_RIIC0_ICTXI0        IEN0
13873
#define IEN_RIIC0_ICTEI0        IEN1
13874
#define IEN_RIIC1_ICEEI1        IEN2
13875
#define IEN_RIIC1_ICRXI1        IEN3
13876
#define IEN_RIIC1_ICTXI1        IEN4
13877
#define IEN_RIIC1_ICTEI1        IEN5
13878
 
13879
#define VECT_BSC_BUSERR         16
13880
#define VECT_FCU_FIFERR         21
13881
#define VECT_FCU_FRDYI          23
13882
#define VECT_ICU_SWINT          27
13883
#define VECT_CMT0_CMI0          28
13884
#define VECT_CMT1_CMI1          29
13885
#define VECT_CMT2_CMI2          30
13886
#define VECT_CMT3_CMI3          31
13887
#define VECT_ETHER_EINT         32
13888
#define VECT_USB0_D0FIFO0       36
13889
#define VECT_USB0_D1FIFO0       37
13890
#define VECT_USB0_USBI0         38
13891
#define VECT_USB1_D0FIFO1       40
13892
#define VECT_USB1_D1FIFO1       41
13893
#define VECT_USB1_USBI1         42
13894
#define VECT_RSPI0_SPEI0        44
13895
#define VECT_RSPI0_SPRI0        45
13896
#define VECT_RSPI0_SPTI0        46
13897
#define VECT_RSPI0_SPII0        47
13898
#define VECT_RSPI1_SPEI1        48
13899
#define VECT_RSPI1_SPRI1        49
13900
#define VECT_RSPI1_SPTI1        50
13901
#define VECT_RSPI1_SPII1        51
13902
#define VECT_CAN0_ERS0          56
13903
#define VECT_CAN0_RXF0          57
13904
#define VECT_CAN0_TXF0          58
13905
#define VECT_CAN0_RXM0          59
13906
#define VECT_CAN0_TXM0          60
13907
#define VECT_RTC_PRD            62
13908
#define VECT_RTC_CUP            63
13909
#define VECT_ICU_IRQ0           64
13910
#define VECT_ICU_IRQ1           65
13911
#define VECT_ICU_IRQ2           66
13912
#define VECT_ICU_IRQ3           67
13913
#define VECT_ICU_IRQ4           68
13914
#define VECT_ICU_IRQ5           69
13915
#define VECT_ICU_IRQ6           70
13916
#define VECT_ICU_IRQ7           71
13917
#define VECT_ICU_IRQ8           72
13918
#define VECT_ICU_IRQ9           73
13919
#define VECT_ICU_IRQ10          74
13920
#define VECT_ICU_IRQ11          75
13921
#define VECT_ICU_IRQ12          76
13922
#define VECT_ICU_IRQ13          77
13923
#define VECT_ICU_IRQ14          78
13924
#define VECT_ICU_IRQ15          79
13925
#define VECT_USB_USBR0          90
13926
#define VECT_USB_USBR1          91
13927
#define VECT_RTC_ALM            92
13928
#define VECT_WDT_WOVI           96
13929
#define VECT_AD0_ADI0           98
13930
#define VECT_AD1_ADI1           99
13931
#define VECT_S12AD_ADI          102
13932
#define VECT_MTU0_TGIA0         114
13933
#define VECT_MTU0_TGIB0         115
13934
#define VECT_MTU0_TGIC0         116
13935
#define VECT_MTU0_TGID0         117
13936
#define VECT_MTU0_TCIV0         118
13937
#define VECT_MTU0_TGIE0         119
13938
#define VECT_MTU0_TGIF0         120
13939
#define VECT_MTU1_TGIA1         121
13940
#define VECT_MTU1_TGIB1         122
13941
#define VECT_MTU1_TCIV1         123
13942
#define VECT_MTU1_TCIU1         124
13943
#define VECT_MTU2_TGIA2         125
13944
#define VECT_MTU2_TGIB2         126
13945
#define VECT_MTU2_TCIV2         127
13946
#define VECT_MTU2_TCIU2         128
13947
#define VECT_MTU3_TGIA3         129
13948
#define VECT_MTU3_TGIB3         130
13949
#define VECT_MTU3_TGIC3         131
13950
#define VECT_MTU3_TGID3         132
13951
#define VECT_MTU3_TCIV3         133
13952
#define VECT_MTU4_TGIA4         134
13953
#define VECT_MTU4_TGIB4         135
13954
#define VECT_MTU4_TGIC4         136
13955
#define VECT_MTU4_TGID4         137
13956
#define VECT_MTU4_TCIV4         138
13957
#define VECT_MTU5_TGIU5         139
13958
#define VECT_MTU5_TGIV5         140
13959
#define VECT_MTU5_TGIW5         141
13960
#define VECT_MTU6_TGIA6         142
13961
#define VECT_MTU6_TGIB6         143
13962
#define VECT_MTU6_TGIC6         144
13963
#define VECT_MTU6_TGID6         145
13964
#define VECT_MTU6_TCIV6         146
13965
#define VECT_MTU6_TGIE6         147
13966
#define VECT_MTU6_TGIF6         148
13967
#define VECT_MTU7_TGIA7         149
13968
#define VECT_MTU7_TGIB7         150
13969
#define VECT_MTU7_TCIV7         151
13970
#define VECT_MTU7_TCIU7         152
13971
#define VECT_MTU8_TGIA8         153
13972
#define VECT_MTU8_TGIB8         154
13973
#define VECT_MTU8_TCIV8         155
13974
#define VECT_MTU8_TCIU8         156
13975
#define VECT_MTU9_TGIA9         157
13976
#define VECT_MTU9_TGIB9         158
13977
#define VECT_MTU9_TGIC9         159
13978
#define VECT_MTU9_TGID9         160
13979
#define VECT_MTU9_TCIV9         161
13980
#define VECT_MTU10_TGIA10       162
13981
#define VECT_MTU10_TGIB10       163
13982
#define VECT_MTU10_TGIC10       164
13983
#define VECT_MTU10_TGID10       165
13984
#define VECT_MTU10_TCIV10       166
13985
#define VECT_MTU11_TGIU11       167
13986
#define VECT_MTU11_TGIV11       168
13987
#define VECT_MTU11_TGIW11       169
13988
#define VECT_POE_OEI1           170
13989
#define VECT_POE_OEI2           171
13990
#define VECT_POE_OEI3           172
13991
#define VECT_POE_OEI4           173
13992
#define VECT_TMR0_CMIA0         174
13993
#define VECT_TMR0_CMIB0         175
13994
#define VECT_TMR0_OVI0          176
13995
#define VECT_TMR1_CMIA1         177
13996
#define VECT_TMR1_CMIB1         178
13997
#define VECT_TMR1_OVI1          179
13998
#define VECT_TMR2_CMIA2         180
13999
#define VECT_TMR2_CMIB2         181
14000
#define VECT_TMR2_OVI2          182
14001
#define VECT_TMR3_CMIA3         183
14002
#define VECT_TMR3_CMIB3         184
14003
#define VECT_TMR3_OVI3          185
14004
#define VECT_DMACA_DMAC0I       198
14005
#define VECT_DMACA_DMAC1I       199
14006
#define VECT_DMACA_DMAC2I       200
14007
#define VECT_DMACA_DMAC3I       201
14008
#define VECT_EXDMAC_EXDMAC0I    202
14009
#define VECT_EXDMAC_EXDMAC1I    203
14010
#define VECT_SCI0_ERI0          214
14011
#define VECT_SCI0_RXI0          215
14012
#define VECT_SCI0_TXI0          216
14013
#define VECT_SCI0_TEI0          217
14014
#define VECT_SCI1_ERI1          218
14015
#define VECT_SCI1_RXI1          219
14016
#define VECT_SCI1_TXI1          220
14017
#define VECT_SCI1_TEI1          221
14018
#define VECT_SCI2_ERI2          222
14019
#define VECT_SCI2_RXI2          223
14020
#define VECT_SCI2_TXI2          224
14021
#define VECT_SCI2_TEI2          225
14022
#define VECT_SCI3_ERI3          226
14023
#define VECT_SCI3_RXI3          227
14024
#define VECT_SCI3_TXI3          228
14025
#define VECT_SCI3_TEI3          229
14026
#define VECT_SCI5_ERI5          234
14027
#define VECT_SCI5_RXI5          235
14028
#define VECT_SCI5_TXI5          236
14029
#define VECT_SCI5_TEI5          237
14030
#define VECT_SCI6_ERI6          238
14031
#define VECT_SCI6_RXI6          239
14032
#define VECT_SCI6_TXI6          240
14033
#define VECT_SCI6_TEI6          241
14034
#define VECT_RIIC0_ICEEI0       246
14035
#define VECT_RIIC0_ICRXI0       247
14036
#define VECT_RIIC0_ICTXI0       248
14037
#define VECT_RIIC0_ICTEI0       249
14038
#define VECT_RIIC1_ICEEI1       250
14039
#define VECT_RIIC1_ICRXI1       251
14040
#define VECT_RIIC1_ICTXI1       252
14041
#define VECT_RIIC1_ICTEI1       253
14042
 
14043
#define MSTP_EXDMAC     SYSTEM.MSTPCRA.BIT.MSTPA29
14044
#define MSTP_DMACA      SYSTEM.MSTPCRA.BIT.MSTPA28
14045
#define MSTP_DTC        SYSTEM.MSTPCRA.BIT.MSTPA28
14046
#define MSTP_AD0        SYSTEM.MSTPCRA.BIT.MSTPA23
14047
#define MSTP_AD1        SYSTEM.MSTPCRA.BIT.MSTPA22
14048
#define MSTP_DA         SYSTEM.MSTPCRA.BIT.MSTPA19
14049
#define MSTP_S12AD      SYSTEM.MSTPCRA.BIT.MSTPA17
14050
#define MSTP_CMT0       SYSTEM.MSTPCRA.BIT.MSTPA15
14051
#define MSTP_CMT1       SYSTEM.MSTPCRA.BIT.MSTPA15
14052
#define MSTP_CMT2       SYSTEM.MSTPCRA.BIT.MSTPA14
14053
#define MSTP_CMT3       SYSTEM.MSTPCRA.BIT.MSTPA14
14054
#define MSTP_PPG0       SYSTEM.MSTPCRA.BIT.MSTPA11
14055
#define MSTP_PPG1       SYSTEM.MSTPCRA.BIT.MSTPA10
14056
#define MSTP_MTUA       SYSTEM.MSTPCRA.BIT.MSTPA9
14057
#define MSTP_MTU0       SYSTEM.MSTPCRA.BIT.MSTPA9
14058
#define MSTP_MTU1       SYSTEM.MSTPCRA.BIT.MSTPA9
14059
#define MSTP_MTU2       SYSTEM.MSTPCRA.BIT.MSTPA9
14060
#define MSTP_MTU3       SYSTEM.MSTPCRA.BIT.MSTPA9
14061
#define MSTP_MTU4       SYSTEM.MSTPCRA.BIT.MSTPA9
14062
#define MSTP_MTU5       SYSTEM.MSTPCRA.BIT.MSTPA9
14063
#define MSTP_MTUB       SYSTEM.MSTPCRA.BIT.MSTPA8
14064
#define MSTP_MTU6       SYSTEM.MSTPCRA.BIT.MSTPA8
14065
#define MSTP_MTU7       SYSTEM.MSTPCRA.BIT.MSTPA8
14066
#define MSTP_MTU8       SYSTEM.MSTPCRA.BIT.MSTPA8
14067
#define MSTP_MTU9       SYSTEM.MSTPCRA.BIT.MSTPA8
14068
#define MSTP_MTU10      SYSTEM.MSTPCRA.BIT.MSTPA8
14069
#define MSTP_MTU11      SYSTEM.MSTPCRA.BIT.MSTPA8
14070
#define MSTP_TMR0       SYSTEM.MSTPCRA.BIT.MSTPA5
14071
#define MSTP_TMR1       SYSTEM.MSTPCRA.BIT.MSTPA5
14072
#define MSTP_TMR01      SYSTEM.MSTPCRA.BIT.MSTPA5
14073
#define MSTP_TMR2       SYSTEM.MSTPCRA.BIT.MSTPA4
14074
#define MSTP_TMR3       SYSTEM.MSTPCRA.BIT.MSTPA4
14075
#define MSTP_TMR23      SYSTEM.MSTPCRA.BIT.MSTPA4
14076
#define MSTP_SCI0       SYSTEM.MSTPCRB.BIT.MSTPB31
14077
#define MSTP_SMCI0      SYSTEM.MSTPCRB.BIT.MSTPB31
14078
#define MSTP_SCI1       SYSTEM.MSTPCRB.BIT.MSTPB30
14079
#define MSTP_SMCI1      SYSTEM.MSTPCRB.BIT.MSTPB30
14080
#define MSTP_SCI2       SYSTEM.MSTPCRB.BIT.MSTPB29
14081
#define MSTP_SMCI2      SYSTEM.MSTPCRB.BIT.MSTPB29
14082
#define MSTP_SCI3       SYSTEM.MSTPCRB.BIT.MSTPB28
14083
#define MSTP_SMCI3      SYSTEM.MSTPCRB.BIT.MSTPB28
14084
#define MSTP_SCI5       SYSTEM.MSTPCRB.BIT.MSTPB26
14085
#define MSTP_SMCI5      SYSTEM.MSTPCRB.BIT.MSTPB26
14086
#define MSTP_SCI6       SYSTEM.MSTPCRB.BIT.MSTPB25
14087
#define MSTP_SMCI6      SYSTEM.MSTPCRB.BIT.MSTPB25
14088
#define MSTP_CRC        SYSTEM.MSTPCRB.BIT.MSTPB23
14089
#define MSTP_RIIC0      SYSTEM.MSTPCRB.BIT.MSTPB21
14090
#define MSTP_RIIC1      SYSTEM.MSTPCRB.BIT.MSTPB20
14091
#define MSTP_USB0       SYSTEM.MSTPCRB.BIT.MSTPB19
14092
#define MSTP_USB1       SYSTEM.MSTPCRB.BIT.MSTPB18
14093
#define MSTP_RSPI0      SYSTEM.MSTPCRB.BIT.MSTPB17
14094
#define MSTP_RSPI1      SYSTEM.MSTPCRB.BIT.MSTPB16
14095
#define MSTP_EDMAC      SYSTEM.MSTPCRB.BIT.MSTPB15
14096
#define MSTP_CAN0       SYSTEM.MSTPCRB.BIT.MSTPB0
14097
#define MSTP_RAM0       SYSTEM.MSTPCRC.BIT.MSTPC1
14098
#define MSTP_RAM1       SYSTEM.MSTPCRC.BIT.MSTPC0
14099
 
14100
#define __IR( x )               ICU.IR[ IR ## x ].BIT.IR
14101
#define  _IR( x )               __IR( x )
14102
#define   IR( x , y )   _IR( _ ## x ## _ ## y )
14103
#define __DTCE( x )             ICU.DTCER[ DTCE ## x ].BIT.DTCE
14104
#define  _DTCE( x )             __DTCE( x )
14105
#define   DTCE( x , y ) _DTCE( _ ## x ## _ ## y )
14106
#define __IEN( x )              ICU.IER[ IER ## x ].BIT.IEN ## x
14107
#define  _IEN( x )              __IEN( x )
14108
#define   IEN( x , y )  _IEN( _ ## x ## _ ## y )
14109
#define __IPR( x )              ICU.IPR[ IPR ## x ].BIT.IPR
14110
#define  _IPR( x )              __IPR( x )
14111
#define   IPR( x , y )  _IPR( _ ## x ## _ ## y )
14112
#define __VECT( x )             VECT ## x
14113
#define  _VECT( x )             __VECT( x )
14114
#define   VECT( x , y ) _VECT( _ ## x ## _ ## y )
14115
#define __MSTP( x )             MSTP ## x
14116
#define  _MSTP( x )             __MSTP( x )
14117
#define   MSTP( x )             _MSTP( _ ## x )
14118
 
14119
#define SYSTEM (*(volatile struct st_system *)0x80000)
14120
#define BSC (*(volatile struct st_bsc *)0x81300)
14121
#define DMAC0 (*(volatile struct st_dmac0 *)0x82000)
14122
#define DMAC1 (*(volatile struct st_dmac1 *)0x82040)
14123
#define DMAC2 (*(volatile struct st_dmac1 *)0x82080)
14124
#define DMAC3 (*(volatile struct st_dmac1 *)0x820C0)
14125
#define DMAC (*(volatile struct st_dmac *)0x82200)
14126
#define DTC (*(volatile struct st_dtc *)0x82400)
14127
#define EXDMAC0 (*(volatile struct st_exdmac0 *)0x82800)
14128
#define EXDMAC1 (*(volatile struct st_exdmac0 *)0x82840)
14129
#define EXDMAC (*(volatile struct st_exdmac *)0x82A00)
14130
#define ICU (*(volatile struct st_icu *)0x87000)
14131
#define CMT (*(volatile struct st_cmt *)0x88000)
14132
#define CMT0 (*(volatile struct st_cmt0 *)0x88002)
14133
#define CMT1 (*(volatile struct st_cmt0 *)0x88008)
14134
#define CMT2 (*(volatile struct st_cmt0 *)0x88012)
14135
#define CMT3 (*(volatile struct st_cmt0 *)0x88018)
14136
#define WDT (*(volatile union un_wdt *)0x88028)
14137
#define IWDT (*(volatile struct st_iwdt *)0x88030)
14138
#define AD0 (*(volatile struct st_ad *)0x88040)
14139
#define AD1 (*(volatile struct st_ad *)0x88060)
14140
#define DA (*(volatile struct st_da *)0x880C0)
14141
#define PPG0 (*(volatile struct st_ppg0 *)0x881E6)
14142
#define PPG1 (*(volatile struct st_ppg1 *)0x881F0)
14143
#define TMR0 (*(volatile struct st_tmr0 *)0x88200)
14144
#define TMR1 (*(volatile struct st_tmr1 *)0x88201)
14145
#define TMR01 (*(volatile struct st_tmr01 *)0x88204)
14146
#define TMR2 (*(volatile struct st_tmr0 *)0x88210)
14147
#define TMR3 (*(volatile struct st_tmr1 *)0x88211)
14148
#define TMR23 (*(volatile struct st_tmr01 *)0x88214)
14149
#define SCI0 (*(volatile struct st_sci *)0x88240)
14150
#define SCI1 (*(volatile struct st_sci *)0x88248)
14151
#define SCI2 (*(volatile struct st_sci *)0x88250)
14152
#define SCI3 (*(volatile struct st_sci *)0x88258)
14153
#define SCI5 (*(volatile struct st_sci *)0x88268)
14154
#define SCI6 (*(volatile struct st_sci *)0x88270)
14155
#define SMCI0 (*(volatile struct st_smci *)0x88240)
14156
#define SMCI1 (*(volatile struct st_smci *)0x88248)
14157
#define SMCI2 (*(volatile struct st_smci *)0x88250)
14158
#define SMCI3 (*(volatile struct st_smci *)0x88258)
14159
#define SMCI5 (*(volatile struct st_smci *)0x88268)
14160
#define SMCI6 (*(volatile struct st_smci *)0x88270)
14161
#define CRC (*(volatile struct st_crc *)0x88280)
14162
#define RIIC0 (*(volatile struct st_riic *)0x88300)
14163
#define RIIC1 (*(volatile struct st_riic *)0x88320)
14164
#define RSPI0 (*(volatile struct st_rspi *)0x88380)
14165
#define RSPI1 (*(volatile struct st_rspi *)0x883A0)
14166
#define MTUA (*(volatile struct st_mtu *)0x8860A)
14167
#define MTU0 (*(volatile struct st_mtu0 *)0x88700)
14168
#define MTU1 (*(volatile struct st_mtu1 *)0x88780)
14169
#define MTU2 (*(volatile struct st_mtu2 *)0x88800)
14170
#define MTU3 (*(volatile struct st_mtu3 *)0x88600)
14171
#define MTU4 (*(volatile struct st_mtu4 *)0x88600)
14172
#define MTU5 (*(volatile struct st_mtu5 *)0x88880)
14173
#define POE (*(volatile struct st_poe *)0x88900)
14174
#define MTUB (*(volatile struct st_mtu *)0x88A0A)
14175
#define MTU6 (*(volatile struct st_mtu0 *)0x88B00)
14176
#define MTU7 (*(volatile struct st_mtu1 *)0x88B80)
14177
#define MTU8 (*(volatile struct st_mtu2 *)0x88C00)
14178
#define MTU9 (*(volatile struct st_mtu3 *)0x88A00)
14179
#define MTU10 (*(volatile struct st_mtu4 *)0x88A00)
14180
#define MTU11 (*(volatile struct st_mtu5 *)0x88C80)
14181
#define S12AD (*(volatile struct st_s12ad *)0x89000)
14182
#define PORT0 (*(volatile struct st_port0 *)0x8C000)
14183
#define PORT1 (*(volatile struct st_port1 *)0x8C001)
14184
#define PORT2 (*(volatile struct st_port2 *)0x8C002)
14185
#define PORT3 (*(volatile struct st_port3 *)0x8C003)
14186
#define PORT4 (*(volatile struct st_port4 *)0x8C004)
14187
#define PORT5 (*(volatile struct st_port5 *)0x8C005)
14188
#define PORT6 (*(volatile struct st_port6 *)0x8C006)
14189
#define PORT7 (*(volatile struct st_port7 *)0x8C007)
14190
#define PORT8 (*(volatile struct st_port8 *)0x8C008)
14191
#define PORT9 (*(volatile struct st_port9 *)0x8C009)
14192
#define PORTA (*(volatile struct st_porta *)0x8C00A)
14193
#define PORTB (*(volatile struct st_portb *)0x8C00B)
14194
#define PORTC (*(volatile struct st_portc *)0x8C00C)
14195
#define PORTD (*(volatile struct st_portd *)0x8C00D)
14196
#define PORTE (*(volatile struct st_porte *)0x8C00E)
14197
#define PORTF (*(volatile struct st_portf *)0x8C00F)
14198
#define PORTG (*(volatile struct st_portg *)0x8C010)
14199
#define IOPORT (*(volatile struct st_ioport *)0x8C100)
14200
#define FLASH (*(volatile struct st_flash *)0x8C288)
14201
#define RTC (*(volatile struct st_rtc *)0x8C400)
14202
#define CAN0 (*(volatile struct st_can *)0x90200)
14203
#define USB0 (*(volatile struct st_usb0 *)0xA0000)
14204
#define USB1 (*(volatile struct st_usb0 *)0xA0200)
14205
#define USB (*(volatile struct st_usb *)0xA0400)
14206
#define EDMAC (*(volatile struct st_edmac *)0xC0000)
14207
#define ETHERC (*(volatile struct st_etherc *)0xC0100)
14208
 
14209
#endif /*endian*/
14210
 
14211
#endif /*IODEFINE_H*/

powered by: WebSVN 2.1.0

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