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