]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/RX200_RX210-RSK_Renesas/RTOSDemo/include/OLDiodefine.h
Update version numbers in preparation for new release.
[freertos] / FreeRTOS / Demo / RX200_RX210-RSK_Renesas / RTOSDemo / include / OLDiodefine.h
1 /********************************************************************************/\r
2 /*                                                                              */\r
3 /* Device     : RX/RX200/RX210                                                  */\r
4 /* File Name  : ioedfine.h                                                      */\r
5 /* Abstract   : Definition of I/O Register.                                     */\r
6 /* History    : V0.1  (2010-10-05)  [Hardware Manual Revision : 0.10]           */\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    : RX210                                                         */\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(MTU0,TGIV0) = 2;    expands to :                                   */\r
32 /*       IPR(MTU0,TGI  ) = 2;    // TGIV0,TGIE0,TGIF0 share IPR level.          */\r
33 /*         ICU.IPR[0x118].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[0x214].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                               expands to :  */\r
56 /*         SYSTEM.MSTPCRB.BIT.MSTPB31 = 0;                                      */\r
57 /*       MSTP(MTU4) = 0;    // MTU,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 __RX210IODEFINE_HEADER__\r
65 #define __RX210IODEFINE_HEADER__\r
66 #pragma bit_order left\r
67 #pragma unpack\r
68 struct st_bsc {\r
69         union {\r
70                 unsigned char BYTE;\r
71                 struct {\r
72                         unsigned char :7;\r
73                         unsigned char STSCLR:1;\r
74                 } BIT;\r
75         } BERCLR;\r
76         char           wk0[3];\r
77         union {\r
78                 unsigned char BYTE;\r
79                 struct {\r
80                         unsigned char :6;\r
81                         unsigned char TOEN:1;\r
82                         unsigned char IGAEN:1;\r
83                 } BIT;\r
84         } BEREN;\r
85         char           wk1[3];\r
86         union {\r
87                 unsigned char BYTE;\r
88                 struct {\r
89                         unsigned char :1;\r
90                         unsigned char MST:3;\r
91                         unsigned char :2;\r
92                         unsigned char TO:1;\r
93                         unsigned char IA:1;\r
94                 } BIT;\r
95         } BERSR1;\r
96         char           wk2[1];\r
97         union {\r
98                 unsigned short WORD;\r
99                 struct {\r
100                         unsigned short ADDR:13;\r
101                 } BIT;\r
102         } BERSR2;\r
103         char           wk3[4];\r
104         union {\r
105                 unsigned short WORD;\r
106                 struct {\r
107                         unsigned short :2;\r
108                         unsigned short BPEB:2;\r
109                         unsigned short BPFB:2;\r
110                         unsigned short BPHB:2;\r
111                         unsigned short BPGB:2;\r
112                         unsigned short BPIB:2;\r
113                         unsigned short BPRO:2;\r
114                         unsigned short BPRA:2;\r
115                 } BIT;\r
116         } BUSPRI;\r
117         char           wk4[7408];\r
118         union {\r
119                 unsigned short WORD;\r
120                 struct {\r
121                         unsigned short PRMOD:1;\r
122                         unsigned short :5;\r
123                         unsigned short PWENB:1;\r
124                         unsigned short PRENB:1;\r
125                         unsigned short :4;\r
126                         unsigned short EWENB:1;\r
127                         unsigned short :2;\r
128                         unsigned short WRMOD:1;\r
129                 } BIT;\r
130         } CS0MOD;\r
131         union {\r
132                 unsigned long LONG;\r
133                 struct {\r
134                         unsigned long :3;\r
135                         unsigned long CSRWAIT:5;\r
136                         unsigned long :3;\r
137                         unsigned long CSWWAIT:5;\r
138                         unsigned long :5;\r
139                         unsigned long CSPRWAIT:3;\r
140                         unsigned long :5;\r
141                         unsigned long CSPWWAIT:3;\r
142                 } BIT;\r
143         } CS0WCR1;\r
144         union {\r
145                 unsigned long LONG;\r
146                 struct {\r
147                         unsigned long :1;\r
148                         unsigned long CSON:3;\r
149                         unsigned long :1;\r
150                         unsigned long WDON:3;\r
151                         unsigned long :1;\r
152                         unsigned long WRON:3;\r
153                         unsigned long :1;\r
154                         unsigned long RDON:3;\r
155                         unsigned long :2;\r
156                         unsigned long AWAIT:2;\r
157                         unsigned long :1;\r
158                         unsigned long WDOFF:3;\r
159                         unsigned long :1;\r
160                         unsigned long CSWOFF:3;\r
161                         unsigned long :1;\r
162                         unsigned long CSROFF:3;\r
163                 } BIT;\r
164         } CS0WCR2;\r
165         char           wk5[6];\r
166         union {\r
167                 unsigned short WORD;\r
168                 struct {\r
169                         unsigned short PRMOD:1;\r
170                         unsigned short :5;\r
171                         unsigned short PWENB:1;\r
172                         unsigned short PRENB:1;\r
173                         unsigned short :4;\r
174                         unsigned short EWENB:1;\r
175                         unsigned short :2;\r
176                         unsigned short WRMOD:1;\r
177                 } BIT;\r
178         } CS1MOD;\r
179         union {\r
180                 unsigned long LONG;\r
181                 struct {\r
182                         unsigned long :3;\r
183                         unsigned long CSRWAIT:5;\r
184                         unsigned long :3;\r
185                         unsigned long CSWWAIT:5;\r
186                         unsigned long :5;\r
187                         unsigned long CSPRWAIT:3;\r
188                         unsigned long :5;\r
189                         unsigned long CSPWWAIT:3;\r
190                 } BIT;\r
191         } CS1WCR1;\r
192         union {\r
193                 unsigned long LONG;\r
194                 struct {\r
195                         unsigned long :1;\r
196                         unsigned long CSON:3;\r
197                         unsigned long :1;\r
198                         unsigned long WDON:3;\r
199                         unsigned long :1;\r
200                         unsigned long WRON:3;\r
201                         unsigned long :1;\r
202                         unsigned long RDON:3;\r
203                         unsigned long :2;\r
204                         unsigned long AWAIT:2;\r
205                         unsigned long :1;\r
206                         unsigned long WDOFF:3;\r
207                         unsigned long :1;\r
208                         unsigned long CSWOFF:3;\r
209                         unsigned long :1;\r
210                         unsigned long CSROFF:3;\r
211                 } BIT;\r
212         } CS1WCR2;\r
213         char           wk6[6];\r
214         union {\r
215                 unsigned short WORD;\r
216                 struct {\r
217                         unsigned short PRMOD:1;\r
218                         unsigned short :5;\r
219                         unsigned short PWENB:1;\r
220                         unsigned short PRENB:1;\r
221                         unsigned short :4;\r
222                         unsigned short EWENB:1;\r
223                         unsigned short :2;\r
224                         unsigned short WRMOD:1;\r
225                 } BIT;\r
226         } CS2MOD;\r
227         union {\r
228                 unsigned long LONG;\r
229                 struct {\r
230                         unsigned long :3;\r
231                         unsigned long CSRWAIT:5;\r
232                         unsigned long :3;\r
233                         unsigned long CSWWAIT:5;\r
234                         unsigned long :5;\r
235                         unsigned long CSPRWAIT:3;\r
236                         unsigned long :5;\r
237                         unsigned long CSPWWAIT:3;\r
238                 } BIT;\r
239         } CS2WCR1;\r
240         union {\r
241                 unsigned long LONG;\r
242                 struct {\r
243                         unsigned long :1;\r
244                         unsigned long CSON:3;\r
245                         unsigned long :1;\r
246                         unsigned long WDON:3;\r
247                         unsigned long :1;\r
248                         unsigned long WRON:3;\r
249                         unsigned long :1;\r
250                         unsigned long RDON:3;\r
251                         unsigned long :2;\r
252                         unsigned long AWAIT:2;\r
253                         unsigned long :1;\r
254                         unsigned long WDOFF:3;\r
255                         unsigned long :1;\r
256                         unsigned long CSWOFF:3;\r
257                         unsigned long :1;\r
258                         unsigned long CSROFF:3;\r
259                 } BIT;\r
260         } CS2WCR2;\r
261         char           wk7[6];\r
262         union {\r
263                 unsigned short WORD;\r
264                 struct {\r
265                         unsigned short PRMOD:1;\r
266                         unsigned short :5;\r
267                         unsigned short PWENB:1;\r
268                         unsigned short PRENB:1;\r
269                         unsigned short :4;\r
270                         unsigned short EWENB:1;\r
271                         unsigned short :2;\r
272                         unsigned short WRMOD:1;\r
273                 } BIT;\r
274         } CS3MOD;\r
275         union {\r
276                 unsigned long LONG;\r
277                 struct {\r
278                         unsigned long :3;\r
279                         unsigned long CSRWAIT:5;\r
280                         unsigned long :3;\r
281                         unsigned long CSWWAIT:5;\r
282                         unsigned long :5;\r
283                         unsigned long CSPRWAIT:3;\r
284                         unsigned long :5;\r
285                         unsigned long CSPWWAIT:3;\r
286                 } BIT;\r
287         } CS3WCR1;\r
288         union {\r
289                 unsigned long LONG;\r
290                 struct {\r
291                         unsigned long :1;\r
292                         unsigned long CSON:3;\r
293                         unsigned long :1;\r
294                         unsigned long WDON:3;\r
295                         unsigned long :1;\r
296                         unsigned long WRON:3;\r
297                         unsigned long :1;\r
298                         unsigned long RDON:3;\r
299                         unsigned long :2;\r
300                         unsigned long AWAIT:2;\r
301                         unsigned long :1;\r
302                         unsigned long WDOFF:3;\r
303                         unsigned long :1;\r
304                         unsigned long CSWOFF:3;\r
305                         unsigned long :1;\r
306                         unsigned long CSROFF:3;\r
307                 } BIT;\r
308         } CS3WCR2;\r
309         char           wk8[1990];\r
310         union {\r
311                 unsigned short WORD;\r
312                 struct {\r
313                         unsigned short :3;\r
314                         unsigned short MPXEN:1;\r
315                         unsigned short :3;\r
316                         unsigned short EMODE:1;\r
317                         unsigned short :2;\r
318                         unsigned short BSIZE:2;\r
319                         unsigned short :3;\r
320                         unsigned short EXENB:1;\r
321                 } BIT;\r
322         } CS0CR;\r
323         char           wk9[6];\r
324         union {\r
325                 unsigned short WORD;\r
326                 struct {\r
327                         unsigned short :4;\r
328                         unsigned short WRCV:4;\r
329                         unsigned short :4;\r
330                         unsigned short RRCV:4;\r
331                 } BIT;\r
332         } CS0REC;\r
333         char           wk10[6];\r
334         union {\r
335                 unsigned short WORD;\r
336                 struct {\r
337                         unsigned short :3;\r
338                         unsigned short MPXEN:1;\r
339                         unsigned short :3;\r
340                         unsigned short EMODE:1;\r
341                         unsigned short :2;\r
342                         unsigned short BSIZE:2;\r
343                         unsigned short :3;\r
344                         unsigned short EXENB:1;\r
345                 } BIT;\r
346         } CS1CR;\r
347         char           wk11[6];\r
348         union {\r
349                 unsigned short WORD;\r
350                 struct {\r
351                         unsigned short :4;\r
352                         unsigned short WRCV:4;\r
353                         unsigned short :4;\r
354                         unsigned short RRCV:4;\r
355                 } BIT;\r
356         } CS1REC;\r
357         char           wk12[6];\r
358         union {\r
359                 unsigned short WORD;\r
360                 struct {\r
361                         unsigned short :3;\r
362                         unsigned short MPXEN:1;\r
363                         unsigned short :3;\r
364                         unsigned short EMODE:1;\r
365                         unsigned short :2;\r
366                         unsigned short BSIZE:2;\r
367                         unsigned short :3;\r
368                         unsigned short EXENB:1;\r
369                 } BIT;\r
370         } CS2CR;\r
371         char           wk13[6];\r
372         union {\r
373                 unsigned short WORD;\r
374                 struct {\r
375                         unsigned short :4;\r
376                         unsigned short WRCV:4;\r
377                         unsigned short :4;\r
378                         unsigned short RRCV:4;\r
379                 } BIT;\r
380         } CS2REC;\r
381         char           wk14[6];\r
382         union {\r
383                 unsigned short WORD;\r
384                 struct {\r
385                         unsigned short :3;\r
386                         unsigned short MPXEN:1;\r
387                         unsigned short :3;\r
388                         unsigned short EMODE:1;\r
389                         unsigned short :2;\r
390                         unsigned short BSIZE:2;\r
391                         unsigned short :3;\r
392                         unsigned short EXENB:1;\r
393                 } BIT;\r
394         } CS3CR;\r
395         char           wk15[6];\r
396         union {\r
397                 unsigned short WORD;\r
398                 struct {\r
399                         unsigned short :4;\r
400                         unsigned short WRCV:4;\r
401                         unsigned short :4;\r
402                         unsigned short RRCV:4;\r
403                 } BIT;\r
404         } CS3REC;\r
405         char           wk16[68];\r
406         union {\r
407                 unsigned short WORD;\r
408                 struct {\r
409                         unsigned short RCVENM7:1;\r
410                         unsigned short RCVENM6:1;\r
411                         unsigned short RCVENM5:1;\r
412                         unsigned short RCVENM4:1;\r
413                         unsigned short RCVENM3:1;\r
414                         unsigned short RCVENM2:1;\r
415                         unsigned short RCVENM1:1;\r
416                         unsigned short RCVENM0:1;\r
417                         unsigned short RCVEN7:1;\r
418                         unsigned short RCVEN6:1;\r
419                         unsigned short RCVEN5:1;\r
420                         unsigned short RCVEN4:1;\r
421                         unsigned short RCVEN3:1;\r
422                         unsigned short RCVEN2:1;\r
423                         unsigned short RCVEN1:1;\r
424                         unsigned short RCVEN0:1;\r
425                 } BIT;\r
426         } CSRECEN;\r
427 };\r
428 \r
429 struct st_cac {\r
430         union {\r
431                 unsigned char BYTE;\r
432                 struct {\r
433                         unsigned char :7;\r
434                         unsigned char CFME:1;\r
435                 } BIT;\r
436         } CACR0;\r
437         union {\r
438                 unsigned char BYTE;\r
439                 struct {\r
440                         unsigned char EDGES:2;\r
441                         unsigned char TCSS:2;\r
442                         unsigned char FMCS:3;\r
443                         unsigned char CACIE:1;\r
444                 } BIT;\r
445         } CACR1;\r
446         union {\r
447                 unsigned char BYTE;\r
448                 struct {\r
449                         unsigned char :2;\r
450                         unsigned char RCDS:2;\r
451                         unsigned char RSCS:3;\r
452                         unsigned char RPS:1;\r
453                 } BIT;\r
454         } CACR2;\r
455         union {\r
456                 unsigned char BYTE;\r
457                 struct {\r
458                         unsigned char :1;\r
459                         unsigned char OVFFCL:1;\r
460                         unsigned char MENDFCL:1;\r
461                         unsigned char FERRFCL:1;\r
462                         unsigned char :1;\r
463                         unsigned char OVFIE:1;\r
464                         unsigned char MENDIE:1;\r
465                         unsigned char FERRIE:1;\r
466                 } BIT;\r
467         } CAICR;\r
468         union {\r
469                 unsigned char BYTE;\r
470                 struct {\r
471                         unsigned char :5;\r
472                         unsigned char OVFF:1;\r
473                         unsigned char MENDF:1;\r
474                         unsigned char FERRF:1;\r
475                 } BIT;\r
476         } CASTR;\r
477         char           wk0[1];\r
478         unsigned short CAULVR;\r
479         unsigned short CALLVR;\r
480         unsigned short CACNTBR;\r
481 };\r
482 \r
483 struct st_cmpb {\r
484         union {\r
485                 unsigned char BYTE;\r
486                 struct {\r
487                         unsigned char :3;\r
488                         unsigned char CPB2INI:1;\r
489                         unsigned char :3;\r
490                         unsigned char CPB1INI:1;\r
491                 } BIT;\r
492         } CPBCNT1;\r
493         char           wk0[1];\r
494         union {\r
495                 unsigned char BYTE;\r
496                 struct {\r
497                         unsigned char CPB2OUT:1;\r
498                         unsigned char :3;\r
499                         unsigned char CPB1OUT:1;\r
500                 } BIT;\r
501         } CPBFLG;\r
502         union {\r
503                 unsigned char BYTE;\r
504                 struct {\r
505                         unsigned char :1;\r
506                         unsigned char CPB2INTPL:1;\r
507                         unsigned char CPB2INTEG:1;\r
508                         unsigned char CPB2INTEN:1;\r
509                         unsigned char :1;\r
510                         unsigned char CPB1INTPL:1;\r
511                         unsigned char CPB1INTEG:1;\r
512                         unsigned char CPB1INTEN:1;\r
513                 } BIT;\r
514         } CPBINT;\r
515         union {\r
516                 unsigned char BYTE;\r
517                 struct {\r
518                         unsigned char CPB2F:2;\r
519                         unsigned char :1;\r
520                         unsigned char CPB2FEN:1;\r
521                         unsigned char CPB1F:2;\r
522                         unsigned char :1;\r
523                         unsigned char CPB1FEN:1;\r
524                 } BIT;\r
525         } CPBF;\r
526 };\r
527 \r
528 struct st_cmt {\r
529         union {\r
530                 unsigned short WORD;\r
531                 struct {\r
532                         unsigned short :14;\r
533                         unsigned short STR1:1;\r
534                         unsigned short STR0:1;\r
535                 } BIT;\r
536         } CMSTR0;\r
537         char           wk0[14];\r
538         union {\r
539                 unsigned short WORD;\r
540                 struct {\r
541                         unsigned short :14;\r
542                         unsigned short STR3:1;\r
543                         unsigned short STR2:1;\r
544                 } BIT;\r
545         } CMSTR1;\r
546 };\r
547 \r
548 struct st_cmt0 {\r
549         union {\r
550                 unsigned short WORD;\r
551                 struct {\r
552                         unsigned short :9;\r
553                         unsigned short CMIE:1;\r
554                         unsigned short :4;\r
555                         unsigned short CKS:2;\r
556                 } BIT;\r
557         } CMCR;\r
558         unsigned short CMCNT;\r
559         unsigned short CMCOR;\r
560 };\r
561 \r
562 struct st_crc {\r
563         union {\r
564                 unsigned char BYTE;\r
565                 struct {\r
566                         unsigned char DORCLR:1;\r
567                         unsigned char :4;\r
568                         unsigned char LMS:1;\r
569                         unsigned char GPS:2;\r
570                 } BIT;\r
571         } CRCCR;\r
572         unsigned char  CRCDIR;\r
573         unsigned short CRCDOR;\r
574 };\r
575 \r
576 struct st_da {\r
577         unsigned short DADR0;\r
578         unsigned short DADR1;\r
579         union {\r
580                 unsigned char BYTE;\r
581                 struct {\r
582                         unsigned char DAOE1:1;\r
583                         unsigned char DAOE0:1;\r
584                         unsigned char DAE:1;\r
585                 } BIT;\r
586         } DACR;\r
587         union {\r
588                 unsigned char BYTE;\r
589                 struct {\r
590                         unsigned char DPSEL:1;\r
591                 } BIT;\r
592         } DADPR;\r
593 };\r
594 \r
595 struct st_dmac {\r
596         union {\r
597                 unsigned char BYTE;\r
598                 struct {\r
599                         unsigned char :7;\r
600                         unsigned char DMST:1;\r
601                 } BIT;\r
602         } DMAST;\r
603 };\r
604 \r
605 struct st_dmac0 {\r
606         unsigned long  DMSAR;\r
607         unsigned long  DMDAR;\r
608         unsigned long  DMCRA;\r
609         unsigned short DMCRB;\r
610         char           wk0[2];\r
611         union {\r
612                 unsigned short WORD;\r
613                 struct {\r
614                         unsigned short MD:2;\r
615                         unsigned short DTS:2;\r
616                         unsigned short :2;\r
617                         unsigned short SZ:2;\r
618                         unsigned short :6;\r
619                         unsigned short DCTG:2;\r
620                 } BIT;\r
621         } DMTMD;\r
622         char           wk1[1];\r
623         union {\r
624                 unsigned char BYTE;\r
625                 struct {\r
626                         unsigned char :3;\r
627                         unsigned char DTIE:1;\r
628                         unsigned char ESIE:1;\r
629                         unsigned char RPTIE:1;\r
630                         unsigned char SARIE:1;\r
631                         unsigned char DARIE:1;\r
632                 } BIT;\r
633         } DMINT;\r
634         union {\r
635                 unsigned short WORD;\r
636                 struct {\r
637                         unsigned short SM:2;\r
638                         unsigned short :1;\r
639                         unsigned short SARA:5;\r
640                         unsigned short DM:2;\r
641                         unsigned short :1;\r
642                         unsigned short DARA:5;\r
643                 } BIT;\r
644         } DMAMD;\r
645         char           wk2[2];\r
646         unsigned long  DMOFR;\r
647         union {\r
648                 unsigned char BYTE;\r
649                 struct {\r
650                         unsigned char :7;\r
651                         unsigned char DTE:1;\r
652                 } BIT;\r
653         } DMCNT;\r
654         union {\r
655                 unsigned char BYTE;\r
656                 struct {\r
657                         unsigned char :3;\r
658                         unsigned char CLRS:1;\r
659                         unsigned char :3;\r
660                         unsigned char SWREQ:1;\r
661                 } BIT;\r
662         } DMREQ;\r
663         union {\r
664                 unsigned char BYTE;\r
665                 struct {\r
666                         unsigned char ACT:1;\r
667                         unsigned char :2;\r
668                         unsigned char DTIF:1;\r
669                         unsigned char :3;\r
670                         unsigned char ESIF:1;\r
671                 } BIT;\r
672         } DMSTS;\r
673         union {\r
674                 unsigned char BYTE;\r
675                 struct {\r
676                         unsigned char :7;\r
677                         unsigned char DISEL:1;\r
678                 } BIT;\r
679         } DMCSL;\r
680 };\r
681 \r
682 struct st_dmac1 {\r
683         unsigned long  DMSAR;\r
684         unsigned long  DMDAR;\r
685         unsigned long  DMCRA;\r
686         unsigned short DMCRB;\r
687         char           wk0[2];\r
688         union {\r
689                 unsigned short WORD;\r
690                 struct {\r
691                         unsigned short MD:2;\r
692                         unsigned short DTS:2;\r
693                         unsigned short :2;\r
694                         unsigned short SZ:2;\r
695                         unsigned short :6;\r
696                         unsigned short DCTG:2;\r
697                 } BIT;\r
698         } DMTMD;\r
699         char           wk1[1];\r
700         union {\r
701                 unsigned char BYTE;\r
702                 struct {\r
703                         unsigned char :3;\r
704                         unsigned char DTIE:1;\r
705                         unsigned char ESIE:1;\r
706                         unsigned char RPTIE:1;\r
707                         unsigned char SARIE:1;\r
708                         unsigned char DARIE:1;\r
709                 } BIT;\r
710         } DMINT;\r
711         union {\r
712                 unsigned short WORD;\r
713                 struct {\r
714                         unsigned short SM:2;\r
715                         unsigned short :1;\r
716                         unsigned short SARA:5;\r
717                         unsigned short DM:2;\r
718                         unsigned short :1;\r
719                         unsigned short DARA:5;\r
720                 } BIT;\r
721         } DMAMD;\r
722         char           wk2[6];\r
723         union {\r
724                 unsigned char BYTE;\r
725                 struct {\r
726                         unsigned char :7;\r
727                         unsigned char DTE:1;\r
728                 } BIT;\r
729         } DMCNT;\r
730         union {\r
731                 unsigned char BYTE;\r
732                 struct {\r
733                         unsigned char :3;\r
734                         unsigned char CLRS:1;\r
735                         unsigned char :3;\r
736                         unsigned char SWREQ:1;\r
737                 } BIT;\r
738         } DMREQ;\r
739         union {\r
740                 unsigned char BYTE;\r
741                 struct {\r
742                         unsigned char ACT:1;\r
743                         unsigned char :2;\r
744                         unsigned char DTIF:1;\r
745                         unsigned char :3;\r
746                         unsigned char ESIF:1;\r
747                 } BIT;\r
748         } DMSTS;\r
749         union {\r
750                 unsigned char BYTE;\r
751                 struct {\r
752                         unsigned char :7;\r
753                         unsigned char DISEL:1;\r
754                 } BIT;\r
755         } DMCSL;\r
756 };\r
757 \r
758 struct st_doc {\r
759         union {\r
760                 unsigned char BYTE;\r
761                 struct {\r
762                         unsigned char :1;\r
763                         unsigned char DOPCFCL:1;\r
764                         unsigned char DOPCF:1;\r
765                         unsigned char DOPCIE:1;\r
766                         unsigned char :1;\r
767                         unsigned char DCSEL:1;\r
768                         unsigned char OMS:2;\r
769                 } BIT;\r
770         } DOCR;\r
771         char           wk0[1];\r
772         unsigned short DODIR;\r
773         unsigned short DODSR;\r
774 };\r
775 \r
776 struct st_dtc {\r
777         union {\r
778                 unsigned char BYTE;\r
779                 struct {\r
780                         unsigned char :3;\r
781                         unsigned char RRS:1;\r
782                 } BIT;\r
783         } DTCCR;\r
784         char           wk0[3];\r
785         unsigned long  DTCVBR;\r
786         union {\r
787                 unsigned char BYTE;\r
788                 struct {\r
789                         unsigned char :7;\r
790                         unsigned char SHORT:1;\r
791                 } BIT;\r
792         } DTCADMOD;\r
793         char           wk1[3];\r
794         union {\r
795                 unsigned char BYTE;\r
796                 struct {\r
797                         unsigned char :7;\r
798                         unsigned char DTCST:1;\r
799                 } BIT;\r
800         } DTCST;\r
801         char           wk2[1];\r
802         union {\r
803                 unsigned short WORD;\r
804                 struct {\r
805                         unsigned short ACT:1;\r
806                         unsigned short :7;\r
807                         unsigned short VECN:8;\r
808                 } BIT;\r
809         } DTCSTS;\r
810 };\r
811 \r
812 struct st_elc {\r
813         union {\r
814                 unsigned char BYTE;\r
815                 struct {\r
816                         unsigned char ELCON:1;\r
817                 } BIT;\r
818         } ELCR;\r
819         union {\r
820                 unsigned char BYTE;\r
821                 struct {\r
822                         unsigned char ELS:8;\r
823                 } BIT;\r
824         } ELSR[30];\r
825         union {\r
826                 unsigned char BYTE;\r
827                 struct {\r
828                         unsigned char MTU3MD:2;\r
829                         unsigned char MTU2MD:2;\r
830                         unsigned char MTU1MD:2;\r
831                 } BIT;\r
832         } ELOPA;\r
833         union {\r
834                 unsigned char BYTE;\r
835                 struct {\r
836                         unsigned char :6;\r
837                         unsigned char MTU4MD:2;\r
838                 } BIT;\r
839         } ELOPB;\r
840         union {\r
841                 unsigned char BYTE;\r
842                 struct {\r
843                         unsigned char :4;\r
844                         unsigned char CMT1MD:2;\r
845                 } BIT;\r
846         } ELOPC;\r
847         union {\r
848                 unsigned char BYTE;\r
849                 struct {\r
850                         unsigned char :2;\r
851                         unsigned char TMR2MD:2;\r
852                         unsigned char :2;\r
853                         unsigned char TMR0MD:2;\r
854                 } BIT;\r
855         } ELOPD;\r
856         union {\r
857                 unsigned char BYTE;\r
858                 struct {\r
859                         unsigned char PRG7:1;\r
860                         unsigned char PRG6:1;\r
861                         unsigned char PRG5:1;\r
862                         unsigned char PRG4:1;\r
863                         unsigned char PRG3:1;\r
864                         unsigned char PRG2:1;\r
865                         unsigned char PRG1:1;\r
866                         unsigned char PRG0:1;\r
867                 } BIT;\r
868         } PGR1;\r
869         union {\r
870                 unsigned char BYTE;\r
871                 struct {\r
872                         unsigned char PRG7:1;\r
873                         unsigned char PRG6:1;\r
874                         unsigned char PRG5:1;\r
875                         unsigned char PRG4:1;\r
876                         unsigned char PRG3:1;\r
877                         unsigned char PRG2:1;\r
878                         unsigned char PRG1:1;\r
879                         unsigned char PRG0:1;\r
880                 } BIT;\r
881         } PGR2;\r
882         union {\r
883                 unsigned char BYTE;\r
884                 struct {\r
885                         unsigned char :1;\r
886                         unsigned char PGCO:3;\r
887                         unsigned char :1;\r
888                         unsigned char PGCOVE:1;\r
889                         unsigned char PGCI:2;\r
890                 } BIT;\r
891         } PGC1;\r
892         union {\r
893                 unsigned char BYTE;\r
894                 struct {\r
895                         unsigned char :1;\r
896                         unsigned char PGCO:3;\r
897                         unsigned char :1;\r
898                         unsigned char PGCOVE:1;\r
899                         unsigned char PGCI:2;\r
900                 } BIT;\r
901         } PGC2;\r
902         union {\r
903                 unsigned char BYTE;\r
904                 struct {\r
905                         unsigned char PDBF7:1;\r
906                         unsigned char PDBF6:1;\r
907                         unsigned char PDBF5:1;\r
908                         unsigned char PDBF4:1;\r
909                         unsigned char PDBF3:1;\r
910                         unsigned char PDBF2:1;\r
911                         unsigned char PDBF1:1;\r
912                         unsigned char PDBF0:1;\r
913                 } BIT;\r
914         } PDBF1;\r
915         union {\r
916                 unsigned char BYTE;\r
917                 struct {\r
918                         unsigned char PDBF7:1;\r
919                         unsigned char PDBF6:1;\r
920                         unsigned char PDBF5:1;\r
921                         unsigned char PDBF4:1;\r
922                         unsigned char PDBF3:1;\r
923                         unsigned char PDBF2:1;\r
924                         unsigned char PDBF1:1;\r
925                         unsigned char PDBF0:1;\r
926                 } BIT;\r
927         } PDBF2;\r
928         union {\r
929                 unsigned char BYTE;\r
930                 struct {\r
931                         unsigned char :1;\r
932                         unsigned char PSM:2;\r
933                         unsigned char PSP:2;\r
934                         unsigned char PSB:3;\r
935                 } BIT;\r
936         } PEL0;\r
937         union {\r
938                 unsigned char BYTE;\r
939                 struct {\r
940                         unsigned char :1;\r
941                         unsigned char PSM:2;\r
942                         unsigned char PSP:2;\r
943                         unsigned char PSB:3;\r
944                 } BIT;\r
945         } PEL1;\r
946         union {\r
947                 unsigned char BYTE;\r
948                 struct {\r
949                         unsigned char :1;\r
950                         unsigned char PSM:2;\r
951                         unsigned char PSP:2;\r
952                         unsigned char PSB:3;\r
953                 } BIT;\r
954         } PEL2;\r
955         union {\r
956                 unsigned char BYTE;\r
957                 struct {\r
958                         unsigned char :1;\r
959                         unsigned char PSM:2;\r
960                         unsigned char PSP:2;\r
961                         unsigned char PSB:3;\r
962                 } BIT;\r
963         } PEL3;\r
964         union {\r
965                 unsigned char BYTE;\r
966                 struct {\r
967                         unsigned char WI:1;\r
968                         unsigned char WE:1;\r
969                         unsigned char :5;\r
970                         unsigned char SEG:1;\r
971                 } BIT;\r
972         } ELSEGR;\r
973 };\r
974 \r
975 struct st_exsystem {\r
976         union {\r
977                 unsigned long LONG;\r
978                 struct {\r
979                         unsigned long :29;\r
980                         unsigned long MDE:3;\r
981                 } BIT;\r
982         } MDEB;\r
983         char           wk0[8388484];\r
984         union {\r
985                 unsigned long LONG;\r
986                 struct {\r
987                         unsigned long :29;\r
988                         unsigned long MDE:3;\r
989                 } BIT;\r
990         } MDES;\r
991         char           wk1[4];\r
992         union {\r
993                 unsigned long LONG;\r
994                 struct {\r
995                         unsigned long :23;\r
996                         unsigned long HOCOEN:1;\r
997                         unsigned long :5;\r
998                         unsigned long LVDAS:1;\r
999                         unsigned long VDSEL:2;\r
1000                 } BIT;\r
1001         } OFS1;\r
1002         union {\r
1003                 unsigned long LONG;\r
1004                 struct {\r
1005                         unsigned long :3;\r
1006                         unsigned long WDTRSTIRQS:1;\r
1007                         unsigned long WDTRPSS:2;\r
1008                         unsigned long WDTRPES:2;\r
1009                         unsigned long WDTCKS:4;\r
1010                         unsigned long WDTTOPS:2;\r
1011                         unsigned long WDTSTRT:1;\r
1012                         unsigned long :2;\r
1013                         unsigned long IWDTSLCSTP:1;\r
1014                         unsigned long :1;\r
1015                         unsigned long IWDTRSTIRQS:1;\r
1016                         unsigned long IWDTRPSS:2;\r
1017                         unsigned long IWDTRPES:2;\r
1018                         unsigned long IWDTCKS:4;\r
1019                         unsigned long IWDTTOPS:2;\r
1020                         unsigned long IWDTSTRT:1;\r
1021                 } BIT;\r
1022         } OFS0;\r
1023 };\r
1024 \r
1025 struct st_flash {\r
1026         union {\r
1027                 unsigned char BYTE;\r
1028                 struct {\r
1029                         unsigned char :6;\r
1030                         unsigned char FLWE:2;\r
1031                 } BIT;\r
1032         } FWEPROR;\r
1033         char           wk0[7799147];\r
1034         union {\r
1035                 unsigned char BYTE;\r
1036                 struct {\r
1037                         unsigned char :3;\r
1038                         unsigned char FRDMD:1;\r
1039                 } BIT;\r
1040         } FMODR;\r
1041         char           wk1[13];\r
1042         union {\r
1043                 unsigned char BYTE;\r
1044                 struct {\r
1045                         unsigned char ROMAE:1;\r
1046                         unsigned char :2;\r
1047                         unsigned char CMDLK:1;\r
1048                         unsigned char DFLAE:1;\r
1049                         unsigned char :1;\r
1050                         unsigned char DFLRPE:1;\r
1051                         unsigned char DFLWPE:1;\r
1052                 } BIT;\r
1053         } FASTAT;\r
1054         union {\r
1055                 unsigned char BYTE;\r
1056                 struct {\r
1057                         unsigned char ROMAEIE:1;\r
1058                         unsigned char :2;\r
1059                         unsigned char CMDLKIE:1;\r
1060                         unsigned char DFLAEIE:1;\r
1061                         unsigned char :1;\r
1062                         unsigned char DFLRPEIE:1;\r
1063                         unsigned char DFLWPEIE:1;\r
1064                 } BIT;\r
1065         } FAEINT;\r
1066         union {\r
1067                 unsigned char BYTE;\r
1068                 struct {\r
1069                         unsigned char :7;\r
1070                         unsigned char FRDYIE:1;\r
1071                 } BIT;\r
1072         } FRDYIE;\r
1073         char           wk2[45];\r
1074         union {\r
1075                 unsigned short WORD;\r
1076                 struct {\r
1077                         unsigned short KEY:8;\r
1078                         unsigned short :4;\r
1079                         unsigned short DBRE3:1;\r
1080                         unsigned short DBRE2:1;\r
1081                         unsigned short DBRE1:1;\r
1082                         unsigned short DBRE0:1;\r
1083                 } BIT;\r
1084         } DFLRE0;\r
1085         char           wk3[14];\r
1086         union {\r
1087                 unsigned short WORD;\r
1088                 struct {\r
1089                         unsigned short KEY:8;\r
1090                         unsigned short :4;\r
1091                         unsigned short DBWE3:1;\r
1092                         unsigned short DBWE2:1;\r
1093                         unsigned short DBWE1:1;\r
1094                         unsigned short DBWE0:1;\r
1095                 } BIT;\r
1096         } DFLWE0;\r
1097         char           wk4[2];\r
1098         union {\r
1099                 unsigned short WORD;\r
1100                 struct {\r
1101                         unsigned short KEY:8;\r
1102                         unsigned short :7;\r
1103                         unsigned short FCRME:1;\r
1104                 } BIT;\r
1105         } FCURAME;\r
1106         char           wk5[15194];\r
1107         union {\r
1108                 unsigned char BYTE;\r
1109                 struct {\r
1110                         unsigned char FRDY:1;\r
1111                         unsigned char ILGLERR:1;\r
1112                         unsigned char ERSERR:1;\r
1113                         unsigned char PRGERR:1;\r
1114                         unsigned char SUSRDY:1;\r
1115                         unsigned char :1;\r
1116                         unsigned char ERSSPD:1;\r
1117                         unsigned char PRGSPD:1;\r
1118                 } BIT;\r
1119         } FSTATR0;\r
1120         union {\r
1121                 unsigned char BYTE;\r
1122                 struct {\r
1123                         unsigned char FCUERR:1;\r
1124                         unsigned char :2;\r
1125                         unsigned char FLOCKST:1;\r
1126                 } BIT;\r
1127         } FSTATR1;\r
1128         union {\r
1129                 unsigned short WORD;\r
1130                 struct {\r
1131                         unsigned short FEKEY:8;\r
1132                         unsigned short FENTRYD:1;\r
1133                         unsigned short :6;\r
1134                         unsigned short FENTRY:1;\r
1135                 } BIT;\r
1136         } FENTRYR;\r
1137         union {\r
1138                 unsigned short WORD;\r
1139                 struct {\r
1140                         unsigned short FPKEY:8;\r
1141                         unsigned short :7;\r
1142                         unsigned short FPROTCN:1;\r
1143                 } BIT;\r
1144         } FPROTR;\r
1145         union {\r
1146                 unsigned short WORD;\r
1147                 struct {\r
1148                         unsigned short FRKEY:8;\r
1149                         unsigned short :7;\r
1150                         unsigned short FRESET:1;\r
1151                 } BIT;\r
1152         } FRESETR;\r
1153         char           wk6[2];\r
1154         union {\r
1155                 unsigned short WORD;\r
1156                 struct {\r
1157                         unsigned short CMDR:8;\r
1158                         unsigned short PCMDR:8;\r
1159                 } BIT;\r
1160         } FCMDR;\r
1161         char           wk7[12];\r
1162         union {\r
1163                 unsigned short WORD;\r
1164                 struct {\r
1165                         unsigned short :15;\r
1166                         unsigned short ESUSPMD:1;\r
1167                 } BIT;\r
1168         } FCPSR;\r
1169         union {\r
1170                 unsigned short WORD;\r
1171                 struct {\r
1172                         unsigned short BCSIZE:1;\r
1173                         unsigned short BCMODE:2;\r
1174                         unsigned short :2;\r
1175                         unsigned short BCADR:11;\r
1176                 } BIT;\r
1177         } DFLBCCNT;\r
1178         union {\r
1179                 unsigned short WORD;\r
1180                 struct {\r
1181                         unsigned short :8;\r
1182                         unsigned short PEERRST:8;\r
1183                 } BIT;\r
1184         } FPESTAT;\r
1185         union {\r
1186                 unsigned short WORD;\r
1187                 struct {\r
1188                         unsigned short :15;\r
1189                         unsigned short BCST:1;\r
1190                 } BIT;\r
1191         } DFLBCSTAT;\r
1192         char           wk8[24];\r
1193         union {\r
1194                 unsigned short WORD;\r
1195                 struct {\r
1196                         unsigned short :8;\r
1197                         unsigned short PCKA:8;\r
1198                 } BIT;\r
1199         } PCKAR;\r
1200 };\r
1201 \r
1202 struct st_icu {\r
1203         union {\r
1204                 unsigned char BYTE;\r
1205                 struct {\r
1206                         unsigned char :7;\r
1207                         unsigned char IR:1;\r
1208                 } BIT;\r
1209         } IR[250];\r
1210         char           wk0[6];\r
1211         union {\r
1212                 unsigned char BYTE;\r
1213                 struct {\r
1214                         unsigned char :7;\r
1215                         unsigned char DTCE:1;\r
1216                 } BIT;\r
1217         } DTCER[249];\r
1218         char           wk1[7];\r
1219         union {\r
1220                 unsigned char BYTE;\r
1221                 struct {\r
1222                         unsigned char IEN7:1;\r
1223                         unsigned char IEN6:1;\r
1224                         unsigned char IEN5:1;\r
1225                         unsigned char IEN4:1;\r
1226                         unsigned char IEN3:1;\r
1227                         unsigned char IEN2:1;\r
1228                         unsigned char IEN1:1;\r
1229                         unsigned char IEN0:1;\r
1230                 } BIT;\r
1231         } IER[32];\r
1232         char           wk2[192];\r
1233         union {\r
1234                 unsigned char BYTE;\r
1235                 struct {\r
1236                         unsigned char :7;\r
1237                         unsigned char SWINT:1;\r
1238                 } BIT;\r
1239         } SWINTR;\r
1240         char           wk3[15];\r
1241         union {\r
1242                 unsigned short WORD;\r
1243                 struct {\r
1244                         unsigned short FIEN:1;\r
1245                         unsigned short :7;\r
1246                         unsigned short FVCT:8;\r
1247                 } BIT;\r
1248         } FIR;\r
1249         char           wk4[14];\r
1250         union {\r
1251                 unsigned char BYTE;\r
1252                 struct {\r
1253                         unsigned char :4;\r
1254                         unsigned char IPR:4;\r
1255                 } BIT;\r
1256         } IPR[250];\r
1257         char           wk5[6];\r
1258         unsigned char  DMRSR0;\r
1259         char           wk6[3];\r
1260         unsigned char  DMRSR1;\r
1261         char           wk7[3];\r
1262         unsigned char  DMRSR2;\r
1263         char           wk8[3];\r
1264         unsigned char  DMRSR3;\r
1265         char           wk9[243];\r
1266         union {\r
1267                 unsigned char BYTE;\r
1268                 struct {\r
1269                         unsigned char :4;\r
1270                         unsigned char IRQMD:2;\r
1271                 } BIT;\r
1272         } IRQCR[8];\r
1273         char           wk10[120];\r
1274         union {\r
1275                 unsigned char BYTE;\r
1276                 struct {\r
1277                         unsigned char :1;\r
1278                         unsigned char SRAMST:1;\r
1279                         unsigned char LVD2ST:1;\r
1280                         unsigned char LVD1ST:1;\r
1281                         unsigned char IWDTST:1;\r
1282                         unsigned char WDTST:1;\r
1283                         unsigned char OSTST:1;\r
1284                         unsigned char NMIST:1;\r
1285                 } BIT;\r
1286         } NMISR;\r
1287         union {\r
1288                 unsigned char BYTE;\r
1289                 struct {\r
1290                         unsigned char :1;\r
1291                         unsigned char SRAMEN:1;\r
1292                         unsigned char LVD2EN:1;\r
1293                         unsigned char LVD1EN:1;\r
1294                         unsigned char IWDTEN:1;\r
1295                         unsigned char WDTEN:1;\r
1296                         unsigned char OSTEN:1;\r
1297                         unsigned char NMIEN:1;\r
1298                 } BIT;\r
1299         } NMIER;\r
1300         union {\r
1301                 unsigned char BYTE;\r
1302                 struct {\r
1303                         unsigned char :2;\r
1304                         unsigned char LVD2CLR:1;\r
1305                         unsigned char LVD1CLR:1;\r
1306                         unsigned char IWDTCLR:1;\r
1307                         unsigned char WDTCLR:1;\r
1308                         unsigned char OSTCLR:1;\r
1309                         unsigned char NMICLR:1;\r
1310                 } BIT;\r
1311         } NMICLR;\r
1312         union {\r
1313                 unsigned char BYTE;\r
1314                 struct {\r
1315                         unsigned char :4;\r
1316                         unsigned char NMIMD:1;\r
1317                 } BIT;\r
1318         } NMICR;\r
1319 };\r
1320 \r
1321 struct st_iwdt {\r
1322         unsigned char  IWDTRR;\r
1323         char           wk0[1];\r
1324         union {\r
1325                 unsigned short WORD;\r
1326                 struct {\r
1327                         unsigned short :2;\r
1328                         unsigned short RPSS:2;\r
1329                         unsigned short :2;\r
1330                         unsigned short RPES:2;\r
1331                         unsigned short CKS:4;\r
1332                         unsigned short :2;\r
1333                         unsigned short TOPS:2;\r
1334                 } BIT;\r
1335         } IWDTCR;\r
1336         union {\r
1337                 unsigned short WORD;\r
1338                 struct {\r
1339                         unsigned short REFEF:1;\r
1340                         unsigned short UNDFF:1;\r
1341                         unsigned short CNTVAL:14;\r
1342                 } BIT;\r
1343         } IWDTSR;\r
1344         union {\r
1345                 unsigned char BYTE;\r
1346                 struct {\r
1347                         unsigned char RSTIRQS:1;\r
1348                 } BIT;\r
1349         } IWDTRCR;\r
1350         char           wk1[1];\r
1351         union {\r
1352                 unsigned char BYTE;\r
1353                 struct {\r
1354                         unsigned char SLCSTP:1;\r
1355                 } BIT;\r
1356         } IWDTCSTPR;\r
1357 };\r
1358 \r
1359 struct st_mpc {\r
1360         union {\r
1361                 unsigned char BYTE;\r
1362                 struct {\r
1363                         unsigned char B0WI:1;\r
1364                         unsigned char PFSWE:1;\r
1365                 } BIT;\r
1366         } PWPR;\r
1367         char           wk0[35];\r
1368         union {\r
1369                 unsigned char BYTE;\r
1370                 struct {\r
1371                         unsigned char ASEL:1;\r
1372                 } BIT;\r
1373         } P03PFS;\r
1374         char           wk1[1];\r
1375         union {\r
1376                 unsigned char BYTE;\r
1377                 struct {\r
1378                         unsigned char ASEL:1;\r
1379                 } BIT;\r
1380         } P05PFS;\r
1381         char           wk2[1];\r
1382         union {\r
1383                 unsigned char BYTE;\r
1384                 struct {\r
1385                         unsigned char :4;\r
1386                         unsigned char PSEL:4;\r
1387                 } BIT;\r
1388         } P07PFS;\r
1389         char           wk3[2];\r
1390         union {\r
1391                 unsigned char BYTE;\r
1392                 struct {\r
1393                         unsigned char :1;\r
1394                         unsigned char ISEL:1;\r
1395                         unsigned char :2;\r
1396                         unsigned char PSEL:4;\r
1397                 } BIT;\r
1398         } P12PFS;\r
1399         union {\r
1400                 unsigned char BYTE;\r
1401                 struct {\r
1402                         unsigned char :1;\r
1403                         unsigned char ISEL:1;\r
1404                         unsigned char :2;\r
1405                         unsigned char PSEL:4;\r
1406                 } BIT;\r
1407         } P13PFS;\r
1408         union {\r
1409                 unsigned char BYTE;\r
1410                 struct {\r
1411                         unsigned char :1;\r
1412                         unsigned char ISEL:1;\r
1413                         unsigned char :2;\r
1414                         unsigned char PSEL:4;\r
1415                 } BIT;\r
1416         } P14PFS;\r
1417         union {\r
1418                 unsigned char BYTE;\r
1419                 struct {\r
1420                         unsigned char :1;\r
1421                         unsigned char ISEL:1;\r
1422                         unsigned char :2;\r
1423                         unsigned char PSEL:4;\r
1424                 } BIT;\r
1425         } P15PFS;\r
1426         union {\r
1427                 unsigned char BYTE;\r
1428                 struct {\r
1429                         unsigned char :1;\r
1430                         unsigned char ISEL:1;\r
1431                         unsigned char :2;\r
1432                         unsigned char PSEL:4;\r
1433                 } BIT;\r
1434         } P16PFS;\r
1435         union {\r
1436                 unsigned char BYTE;\r
1437                 struct {\r
1438                         unsigned char :1;\r
1439                         unsigned char ISEL:1;\r
1440                         unsigned char :2;\r
1441                         unsigned char PSEL:4;\r
1442                 } BIT;\r
1443         } P17PFS;\r
1444         union {\r
1445                 unsigned char BYTE;\r
1446                 struct {\r
1447                         unsigned char :4;\r
1448                         unsigned char PSEL:4;\r
1449                 } BIT;\r
1450         } P20PFS;\r
1451         union {\r
1452                 unsigned char BYTE;\r
1453                 struct {\r
1454                         unsigned char :4;\r
1455                         unsigned char PSEL:4;\r
1456                 } BIT;\r
1457         } P21PFS;\r
1458         union {\r
1459                 unsigned char BYTE;\r
1460                 struct {\r
1461                         unsigned char :4;\r
1462                         unsigned char PSEL:4;\r
1463                 } BIT;\r
1464         } P22PFS;\r
1465         union {\r
1466                 unsigned char BYTE;\r
1467                 struct {\r
1468                         unsigned char :4;\r
1469                         unsigned char PSEL:4;\r
1470                 } BIT;\r
1471         } P23PFS;\r
1472         union {\r
1473                 unsigned char BYTE;\r
1474                 struct {\r
1475                         unsigned char :4;\r
1476                         unsigned char PSEL:4;\r
1477                 } BIT;\r
1478         } P24PFS;\r
1479         union {\r
1480                 unsigned char BYTE;\r
1481                 struct {\r
1482                         unsigned char :4;\r
1483                         unsigned char PSEL:4;\r
1484                 } BIT;\r
1485         } P25PFS;\r
1486         union {\r
1487                 unsigned char BYTE;\r
1488                 struct {\r
1489                         unsigned char :4;\r
1490                         unsigned char PSEL:4;\r
1491                 } BIT;\r
1492         } P26PFS;\r
1493         union {\r
1494                 unsigned char BYTE;\r
1495                 struct {\r
1496                         unsigned char :4;\r
1497                         unsigned char PSEL:4;\r
1498                 } BIT;\r
1499         } P27PFS;\r
1500         union {\r
1501                 unsigned char BYTE;\r
1502                 struct {\r
1503                         unsigned char :1;\r
1504                         unsigned char ISEL:1;\r
1505                         unsigned char :2;\r
1506                         unsigned char PSEL:4;\r
1507                 } BIT;\r
1508         } P30PFS;\r
1509         union {\r
1510                 unsigned char BYTE;\r
1511                 struct {\r
1512                         unsigned char :1;\r
1513                         unsigned char ISEL:1;\r
1514                         unsigned char :2;\r
1515                         unsigned char PSEL:4;\r
1516                 } BIT;\r
1517         } P31PFS;\r
1518         union {\r
1519                 unsigned char BYTE;\r
1520                 struct {\r
1521                         unsigned char :1;\r
1522                         unsigned char ISEL:1;\r
1523                         unsigned char :2;\r
1524                         unsigned char PSEL:4;\r
1525                 } BIT;\r
1526         } P32PFS;\r
1527         union {\r
1528                 unsigned char BYTE;\r
1529                 struct {\r
1530                         unsigned char :1;\r
1531                         unsigned char ISEL:1;\r
1532                         unsigned char :2;\r
1533                         unsigned char PSEL:4;\r
1534                 } BIT;\r
1535         } P33PFS;\r
1536         union {\r
1537                 unsigned char BYTE;\r
1538                 struct {\r
1539                         unsigned char :1;\r
1540                         unsigned char ISEL:1;\r
1541                         unsigned char :2;\r
1542                         unsigned char PSEL:4;\r
1543                 } BIT;\r
1544         } P34PFS;\r
1545         char           wk4[3];\r
1546         union {\r
1547                 unsigned char BYTE;\r
1548                 struct {\r
1549                         unsigned char ASEL:1;\r
1550                 } BIT;\r
1551         } P40PFS;\r
1552         union {\r
1553                 unsigned char BYTE;\r
1554                 struct {\r
1555                         unsigned char ASEL:1;\r
1556                 } BIT;\r
1557         } P41PFS;\r
1558         union {\r
1559                 unsigned char BYTE;\r
1560                 struct {\r
1561                         unsigned char ASEL:1;\r
1562                 } BIT;\r
1563         } P42PFS;\r
1564         union {\r
1565                 unsigned char BYTE;\r
1566                 struct {\r
1567                         unsigned char ASEL:1;\r
1568                 } BIT;\r
1569         } P43PFS;\r
1570         union {\r
1571                 unsigned char BYTE;\r
1572                 struct {\r
1573                         unsigned char ASEL:1;\r
1574                 } BIT;\r
1575         } P44PFS;\r
1576         union {\r
1577                 unsigned char BYTE;\r
1578                 struct {\r
1579                         unsigned char ASEL:1;\r
1580                 } BIT;\r
1581         } P45PFS;\r
1582         union {\r
1583                 unsigned char BYTE;\r
1584                 struct {\r
1585                         unsigned char ASEL:1;\r
1586                 } BIT;\r
1587         } P46PFS;\r
1588         union {\r
1589                 unsigned char BYTE;\r
1590                 struct {\r
1591                         unsigned char ASEL:1;\r
1592                 } BIT;\r
1593         } P47PFS;\r
1594         char           wk5[4];\r
1595         union {\r
1596                 unsigned char BYTE;\r
1597                 struct {\r
1598                         unsigned char :4;\r
1599                         unsigned char PSEL:4;\r
1600                 } BIT;\r
1601         } P54PFS;\r
1602         union {\r
1603                 unsigned char BYTE;\r
1604                 struct {\r
1605                         unsigned char :4;\r
1606                         unsigned char PSEL:4;\r
1607                 } BIT;\r
1608         } P55PFS;\r
1609         char           wk6[34];\r
1610         union {\r
1611                 unsigned char BYTE;\r
1612                 struct {\r
1613                         unsigned char :4;\r
1614                         unsigned char PSEL:4;\r
1615                 } BIT;\r
1616         } PA0PFS;\r
1617         union {\r
1618                 unsigned char BYTE;\r
1619                 struct {\r
1620                         unsigned char :4;\r
1621                         unsigned char PSEL:4;\r
1622                 } BIT;\r
1623         } PA1PFS;\r
1624         union {\r
1625                 unsigned char BYTE;\r
1626                 struct {\r
1627                         unsigned char :4;\r
1628                         unsigned char PSEL:4;\r
1629                 } BIT;\r
1630         } PA2PFS;\r
1631         union {\r
1632                 unsigned char BYTE;\r
1633                 struct {\r
1634                         unsigned char :1;\r
1635                         unsigned char ISEL:1;\r
1636                         unsigned char :2;\r
1637                         unsigned char PSEL:4;\r
1638                 } BIT;\r
1639         } PA3PFS;\r
1640         union {\r
1641                 unsigned char BYTE;\r
1642                 struct {\r
1643                         unsigned char :1;\r
1644                         unsigned char ISEL:1;\r
1645                         unsigned char :2;\r
1646                         unsigned char PSEL:4;\r
1647                 } BIT;\r
1648         } PA4PFS;\r
1649         union {\r
1650                 unsigned char BYTE;\r
1651                 struct {\r
1652                         unsigned char :4;\r
1653                         unsigned char PSEL:4;\r
1654                 } BIT;\r
1655         } PA5PFS;\r
1656         union {\r
1657                 unsigned char BYTE;\r
1658                 struct {\r
1659                         unsigned char :4;\r
1660                         unsigned char PSEL:4;\r
1661                 } BIT;\r
1662         } PA6PFS;\r
1663         union {\r
1664                 unsigned char BYTE;\r
1665                 struct {\r
1666                         unsigned char :4;\r
1667                         unsigned char PSEL:4;\r
1668                 } BIT;\r
1669         } PA7PFS;\r
1670         union {\r
1671                 unsigned char BYTE;\r
1672                 struct {\r
1673                         unsigned char :4;\r
1674                         unsigned char PSEL:4;\r
1675                 } BIT;\r
1676         } PB0PFS;\r
1677         union {\r
1678                 unsigned char BYTE;\r
1679                 struct {\r
1680                         unsigned char :1;\r
1681                         unsigned char ISEL:1;\r
1682                         unsigned char :2;\r
1683                         unsigned char PSEL:4;\r
1684                 } BIT;\r
1685         } PB1PFS;\r
1686         union {\r
1687                 unsigned char BYTE;\r
1688                 struct {\r
1689                         unsigned char :4;\r
1690                         unsigned char PSEL:4;\r
1691                 } BIT;\r
1692         } PB2PFS;\r
1693         union {\r
1694                 unsigned char BYTE;\r
1695                 struct {\r
1696                         unsigned char :4;\r
1697                         unsigned char PSEL:4;\r
1698                 } BIT;\r
1699         } PB3PFS;\r
1700         union {\r
1701                 unsigned char BYTE;\r
1702                 struct {\r
1703                         unsigned char :4;\r
1704                         unsigned char PSEL:4;\r
1705                 } BIT;\r
1706         } PB4PFS;\r
1707         union {\r
1708                 unsigned char BYTE;\r
1709                 struct {\r
1710                         unsigned char :4;\r
1711                         unsigned char PSEL:4;\r
1712                 } BIT;\r
1713         } PB5PFS;\r
1714         union {\r
1715                 unsigned char BYTE;\r
1716                 struct {\r
1717                         unsigned char :4;\r
1718                         unsigned char PSEL:4;\r
1719                 } BIT;\r
1720         } PB6PFS;\r
1721         union {\r
1722                 unsigned char BYTE;\r
1723                 struct {\r
1724                         unsigned char :4;\r
1725                         unsigned char PSEL:4;\r
1726                 } BIT;\r
1727         } PB7PFS;\r
1728         union {\r
1729                 unsigned char BYTE;\r
1730                 struct {\r
1731                         unsigned char :4;\r
1732                         unsigned char PSEL:4;\r
1733                 } BIT;\r
1734         } PC0PFS;\r
1735         union {\r
1736                 unsigned char BYTE;\r
1737                 struct {\r
1738                         unsigned char :4;\r
1739                         unsigned char PSEL:4;\r
1740                 } BIT;\r
1741         } PC1PFS;\r
1742         union {\r
1743                 unsigned char BYTE;\r
1744                 struct {\r
1745                         unsigned char :4;\r
1746                         unsigned char PSEL:4;\r
1747                 } BIT;\r
1748         } PC2PFS;\r
1749         union {\r
1750                 unsigned char BYTE;\r
1751                 struct {\r
1752                         unsigned char :4;\r
1753                         unsigned char PSEL:4;\r
1754                 } BIT;\r
1755         } PC3PFS;\r
1756         union {\r
1757                 unsigned char BYTE;\r
1758                 struct {\r
1759                         unsigned char :4;\r
1760                         unsigned char PSEL:4;\r
1761                 } BIT;\r
1762         } PC4PFS;\r
1763         union {\r
1764                 unsigned char BYTE;\r
1765                 struct {\r
1766                         unsigned char :4;\r
1767                         unsigned char PSEL:4;\r
1768                 } BIT;\r
1769         } PC5PFS;\r
1770         union {\r
1771                 unsigned char BYTE;\r
1772                 struct {\r
1773                         unsigned char :4;\r
1774                         unsigned char PSEL:4;\r
1775                 } BIT;\r
1776         } PC6PFS;\r
1777         union {\r
1778                 unsigned char BYTE;\r
1779                 struct {\r
1780                         unsigned char :4;\r
1781                         unsigned char PSEL:4;\r
1782                 } BIT;\r
1783         } PC7PFS;\r
1784         union {\r
1785                 unsigned char BYTE;\r
1786                 struct {\r
1787                         unsigned char :1;\r
1788                         unsigned char ISEL:1;\r
1789                         unsigned char :2;\r
1790                         unsigned char PSEL:4;\r
1791                 } BIT;\r
1792         } PD0PFS;\r
1793         union {\r
1794                 unsigned char BYTE;\r
1795                 struct {\r
1796                         unsigned char :1;\r
1797                         unsigned char ISEL:1;\r
1798                         unsigned char :2;\r
1799                         unsigned char PSEL:4;\r
1800                 } BIT;\r
1801         } PD1PFS;\r
1802         union {\r
1803                 unsigned char BYTE;\r
1804                 struct {\r
1805                         unsigned char :1;\r
1806                         unsigned char ISEL:1;\r
1807                         unsigned char :2;\r
1808                         unsigned char PSEL:4;\r
1809                 } BIT;\r
1810         } PD2PFS;\r
1811         union {\r
1812                 unsigned char BYTE;\r
1813                 struct {\r
1814                         unsigned char :1;\r
1815                         unsigned char ISEL:1;\r
1816                         unsigned char :2;\r
1817                         unsigned char PSEL:4;\r
1818                 } BIT;\r
1819         } PD3PFS;\r
1820         union {\r
1821                 unsigned char BYTE;\r
1822                 struct {\r
1823                         unsigned char :1;\r
1824                         unsigned char ISEL:1;\r
1825                         unsigned char :2;\r
1826                         unsigned char PSEL:4;\r
1827                 } BIT;\r
1828         } PD4PFS;\r
1829         union {\r
1830                 unsigned char BYTE;\r
1831                 struct {\r
1832                         unsigned char :1;\r
1833                         unsigned char ISEL:1;\r
1834                         unsigned char :2;\r
1835                         unsigned char PSEL:4;\r
1836                 } BIT;\r
1837         } PD5PFS;\r
1838         union {\r
1839                 unsigned char BYTE;\r
1840                 struct {\r
1841                         unsigned char :1;\r
1842                         unsigned char ISEL:1;\r
1843                         unsigned char :2;\r
1844                         unsigned char PSEL:4;\r
1845                 } BIT;\r
1846         } PD6PFS;\r
1847         union {\r
1848                 unsigned char BYTE;\r
1849                 struct {\r
1850                         unsigned char :1;\r
1851                         unsigned char ISEL:1;\r
1852                         unsigned char :2;\r
1853                         unsigned char PSEL:4;\r
1854                 } BIT;\r
1855         } PD7PFS;\r
1856         union {\r
1857                 unsigned char BYTE;\r
1858                 struct {\r
1859                         unsigned char ASEL:1;\r
1860                         unsigned char :3;\r
1861                         unsigned char PSEL:4;\r
1862                 } BIT;\r
1863         } PE0PFS;\r
1864         union {\r
1865                 unsigned char BYTE;\r
1866                 struct {\r
1867                         unsigned char ASEL:1;\r
1868                         unsigned char :3;\r
1869                         unsigned char PSEL:4;\r
1870                 } BIT;\r
1871         } PE1PFS;\r
1872         union {\r
1873                 unsigned char BYTE;\r
1874                 struct {\r
1875                         unsigned char ASEL:1;\r
1876                         unsigned char ISEL:1;\r
1877                         unsigned char :2;\r
1878                         unsigned char PSEL:4;\r
1879                 } BIT;\r
1880         } PE2PFS;\r
1881         union {\r
1882                 unsigned char BYTE;\r
1883                 struct {\r
1884                         unsigned char ASEL:1;\r
1885                         unsigned char :3;\r
1886                         unsigned char PSEL:4;\r
1887                 } BIT;\r
1888         } PE3PFS;\r
1889         union {\r
1890                 unsigned char BYTE;\r
1891                 struct {\r
1892                         unsigned char ASEL:1;\r
1893                         unsigned char :3;\r
1894                         unsigned char PSEL:4;\r
1895                 } BIT;\r
1896         } PE4PFS;\r
1897         union {\r
1898                 unsigned char BYTE;\r
1899                 struct {\r
1900                         unsigned char ASEL:1;\r
1901                         unsigned char ISEL:1;\r
1902                         unsigned char :2;\r
1903                         unsigned char PSEL:4;\r
1904                 } BIT;\r
1905         } PE5PFS;\r
1906         union {\r
1907                 unsigned char BYTE;\r
1908                 struct {\r
1909                         unsigned char ASEL:1;\r
1910                         unsigned char ISEL:1;\r
1911                         unsigned char :2;\r
1912                         unsigned char PSEL:4;\r
1913                 } BIT;\r
1914         } PE6PFS;\r
1915         union {\r
1916                 unsigned char BYTE;\r
1917                 struct {\r
1918                         unsigned char ASEL:1;\r
1919                         unsigned char ISEL:1;\r
1920                         unsigned char :2;\r
1921                         unsigned char PSEL:4;\r
1922                 } BIT;\r
1923         } PE7PFS;\r
1924         char           wk7[16];\r
1925         union {\r
1926                 unsigned char BYTE;\r
1927                 struct {\r
1928                         unsigned char :4;\r
1929                         unsigned char PSEL:4;\r
1930                 } BIT;\r
1931         } PH0PFS;\r
1932         union {\r
1933                 unsigned char BYTE;\r
1934                 struct {\r
1935                         unsigned char :1;\r
1936                         unsigned char ISEL:1;\r
1937                         unsigned char :2;\r
1938                         unsigned char PSEL:4;\r
1939                 } BIT;\r
1940         } PH1PFS;\r
1941         union {\r
1942                 unsigned char BYTE;\r
1943                 struct {\r
1944                         unsigned char :1;\r
1945                         unsigned char ISEL:1;\r
1946                         unsigned char :2;\r
1947                         unsigned char PSEL:4;\r
1948                 } BIT;\r
1949         } PH2PFS;\r
1950         union {\r
1951                 unsigned char BYTE;\r
1952                 struct {\r
1953                         unsigned char :4;\r
1954                         unsigned char PSEL:4;\r
1955                 } BIT;\r
1956         } PH3PFS;\r
1957         char           wk8[5];\r
1958         union {\r
1959                 unsigned char BYTE;\r
1960                 struct {\r
1961                         unsigned char :4;\r
1962                         unsigned char PSEL:4;\r
1963                 } BIT;\r
1964         } PJ1PFS;\r
1965         char           wk9[1];\r
1966         union {\r
1967                 unsigned char BYTE;\r
1968                 struct {\r
1969                         unsigned char :4;\r
1970                         unsigned char PSEL:4;\r
1971                 } BIT;\r
1972         } PJ3PFS;\r
1973 };\r
1974 \r
1975 struct st_mtu {\r
1976         union {\r
1977                 unsigned char BYTE;\r
1978                 struct {\r
1979                         unsigned char :2;\r
1980                         unsigned char OE4D:1;\r
1981                         unsigned char OE4C:1;\r
1982                         unsigned char OE3D:1;\r
1983                         unsigned char OE4B:1;\r
1984                         unsigned char OE4A:1;\r
1985                         unsigned char OE3B:1;\r
1986                 } BIT;\r
1987         } TOER;\r
1988         char           wk0[2];\r
1989         union {\r
1990                 unsigned char BYTE;\r
1991                 struct {\r
1992                         unsigned char :1;\r
1993                         unsigned char BDC:1;\r
1994                         unsigned char N:1;\r
1995                         unsigned char P:1;\r
1996                         unsigned char FB:1;\r
1997                         unsigned char WF:1;\r
1998                         unsigned char VF:1;\r
1999                         unsigned char UF:1;\r
2000                 } BIT;\r
2001         } TGCR;\r
2002         union {\r
2003                 unsigned char BYTE;\r
2004                 struct {\r
2005                         unsigned char :1;\r
2006                         unsigned char PSYE:1;\r
2007                         unsigned char :2;\r
2008                         unsigned char TOCL:1;\r
2009                         unsigned char TOCS:1;\r
2010                         unsigned char OLSN:1;\r
2011                         unsigned char OLSP:1;\r
2012                 } BIT;\r
2013         } TOCR1;\r
2014         union {\r
2015                 unsigned char BYTE;\r
2016                 struct {\r
2017                         unsigned char BF:2;\r
2018                         unsigned char OLS3N:1;\r
2019                         unsigned char OLS3P:1;\r
2020                         unsigned char OLS2N:1;\r
2021                         unsigned char OLS2P:1;\r
2022                         unsigned char OLS1N:1;\r
2023                         unsigned char OLS1P:1;\r
2024                 } BIT;\r
2025         } TOCR2;\r
2026         char           wk1[4];\r
2027         unsigned short TCDR;\r
2028         unsigned short TDDR;\r
2029         char           wk2[8];\r
2030         unsigned short TCNTS;\r
2031         unsigned short TCBR;\r
2032         char           wk3[12];\r
2033         union {\r
2034                 unsigned char BYTE;\r
2035                 struct {\r
2036                         unsigned char T3AEN:1;\r
2037                         unsigned char T3ACOR:3;\r
2038                         unsigned char T4VEN:1;\r
2039                         unsigned char T4VCOR:3;\r
2040                 } BIT;\r
2041         } TITCR;\r
2042         union {\r
2043                 unsigned char BYTE;\r
2044                 struct {\r
2045                         unsigned char :1;\r
2046                         unsigned char T3ACNT:3;\r
2047                         unsigned char :1;\r
2048                         unsigned char T4VCNT:3;\r
2049                 } BIT;\r
2050         } TITCNT;\r
2051         union {\r
2052                 unsigned char BYTE;\r
2053                 struct {\r
2054                         unsigned char :6;\r
2055                         unsigned char BTE:2;\r
2056                 } BIT;\r
2057         } TBTER;\r
2058         char           wk4[1];\r
2059         union {\r
2060                 unsigned char BYTE;\r
2061                 struct {\r
2062                         unsigned char :7;\r
2063                         unsigned char TDER:1;\r
2064                 } BIT;\r
2065         } TDER;\r
2066         char           wk5[1];\r
2067         union {\r
2068                 unsigned char BYTE;\r
2069                 struct {\r
2070                         unsigned char :2;\r
2071                         unsigned char OLS3N:1;\r
2072                         unsigned char OLS3P:1;\r
2073                         unsigned char OLS2N:1;\r
2074                         unsigned char OLS2P:1;\r
2075                         unsigned char OLS1N:1;\r
2076                         unsigned char OLS1P:1;\r
2077                 } BIT;\r
2078         } TOLBR;\r
2079         char           wk6[41];\r
2080         union {\r
2081                 unsigned char BYTE;\r
2082                 struct {\r
2083                         unsigned char CCE:1;\r
2084                         unsigned char :6;\r
2085                         unsigned char WRE:1;\r
2086                 } BIT;\r
2087         } TWCR;\r
2088         char           wk7[31];\r
2089         union {\r
2090                 unsigned char BYTE;\r
2091                 struct {\r
2092                         unsigned char CST4:1;\r
2093                         unsigned char CST3:1;\r
2094                         unsigned char :3;\r
2095                         unsigned char CST2:1;\r
2096                         unsigned char CST1:1;\r
2097                         unsigned char CST0:1;\r
2098                 } BIT;\r
2099         } TSTR;\r
2100         union {\r
2101                 unsigned char BYTE;\r
2102                 struct {\r
2103                         unsigned char SYNC4:1;\r
2104                         unsigned char SYNC3:1;\r
2105                         unsigned char :3;\r
2106                         unsigned char SYNC2:1;\r
2107                         unsigned char SYNC1:1;\r
2108                         unsigned char SYNC0:1;\r
2109                 } BIT;\r
2110         } TSYR;\r
2111         char           wk8[2];\r
2112         union {\r
2113                 unsigned char BYTE;\r
2114                 struct {\r
2115                         unsigned char :7;\r
2116                         unsigned char RWE:1;\r
2117                 } BIT;\r
2118         } TRWER;\r
2119         char           wk9[11];\r
2120         unsigned char  NFCR0;\r
2121         unsigned char  NFCR1;\r
2122         unsigned char  NFCR2;\r
2123         unsigned char  NFCR3;\r
2124         unsigned char  NFCR4;\r
2125         unsigned char  NFCR5;\r
2126 };\r
2127 \r
2128 struct st_mtu0 {\r
2129         union {\r
2130                 unsigned char BYTE;\r
2131                 struct {\r
2132                         unsigned char CCLR:3;\r
2133                         unsigned char CKEG:2;\r
2134                         unsigned char TPSC:3;\r
2135                 } BIT;\r
2136         } TCR;\r
2137         union {\r
2138                 unsigned char BYTE;\r
2139                 struct {\r
2140                         unsigned char :1;\r
2141                         unsigned char BFE:1;\r
2142                         unsigned char BFB:1;\r
2143                         unsigned char BFA:1;\r
2144                         unsigned char MD:4;\r
2145                 } BIT;\r
2146         } TMDR;\r
2147         union {\r
2148                 unsigned char BYTE;\r
2149                 struct {\r
2150                         unsigned char IOB:4;\r
2151                         unsigned char IOA:4;\r
2152                 } BIT;\r
2153         } TIORH;\r
2154         union {\r
2155                 unsigned char BYTE;\r
2156                 struct {\r
2157                         unsigned char IOD:4;\r
2158                         unsigned char IOC:4;\r
2159                 } BIT;\r
2160         } TIORL;\r
2161         union {\r
2162                 unsigned char BYTE;\r
2163                 struct {\r
2164                         unsigned char TTGE:1;\r
2165                         unsigned char :2;\r
2166                         unsigned char TCIEV:1;\r
2167                         unsigned char TGIED:1;\r
2168                         unsigned char TGIEC:1;\r
2169                         unsigned char TGIEB:1;\r
2170                         unsigned char TGIEA:1;\r
2171                 } BIT;\r
2172         } TIER;\r
2173         union {\r
2174                 unsigned char BYTE;\r
2175                 struct {\r
2176                         unsigned char TCFD:1;\r
2177                 } BIT;\r
2178         } TSR;\r
2179         unsigned short TCNT;\r
2180         unsigned short TGRA;\r
2181         unsigned short TGRB;\r
2182         unsigned short TGRC;\r
2183         unsigned short TGRD;\r
2184         char           wk0[16];\r
2185         unsigned short TGRE;\r
2186         unsigned short TGRF;\r
2187         union {\r
2188                 unsigned char BYTE;\r
2189                 struct {\r
2190                         unsigned char :6;\r
2191                         unsigned char TGIEF:1;\r
2192                         unsigned char TGIEE:1;\r
2193                 } BIT;\r
2194         } TIER2;\r
2195         char           wk1[1];\r
2196         union {\r
2197                 unsigned char BYTE;\r
2198                 struct {\r
2199                         unsigned char :5;\r
2200                         unsigned char TTSE:1;\r
2201                         unsigned char TTSB:1;\r
2202                         unsigned char TTSA:1;\r
2203                 } BIT;\r
2204         } TBTM;\r
2205 };\r
2206 \r
2207 struct st_mtu1 {\r
2208         union {\r
2209                 unsigned char BYTE;\r
2210                 struct {\r
2211                         unsigned char :1;\r
2212                         unsigned char CCLR:2;\r
2213                         unsigned char CKEG:2;\r
2214                         unsigned char TPSC:3;\r
2215                 } BIT;\r
2216         } TCR;\r
2217         union {\r
2218                 unsigned char BYTE;\r
2219                 struct {\r
2220                         unsigned char :4;\r
2221                         unsigned char MD:4;\r
2222                 } BIT;\r
2223         } TMDR;\r
2224         union {\r
2225                 unsigned char BYTE;\r
2226                 struct {\r
2227                         unsigned char IOB:4;\r
2228                         unsigned char IOA:4;\r
2229                 } BIT;\r
2230         } TIOR;\r
2231         char           wk0[1];\r
2232         union {\r
2233                 unsigned char BYTE;\r
2234                 struct {\r
2235                         unsigned char TTGE:1;\r
2236                         unsigned char :1;\r
2237                         unsigned char TCIEU:1;\r
2238                         unsigned char TCIEV:1;\r
2239                         unsigned char :2;\r
2240                         unsigned char TGIEB:1;\r
2241                         unsigned char TGIEA:1;\r
2242                 } BIT;\r
2243         } TIER;\r
2244         union {\r
2245                 unsigned char BYTE;\r
2246                 struct {\r
2247                         unsigned char TCFD:1;\r
2248                 } BIT;\r
2249         } TSR;\r
2250         unsigned short TCNT;\r
2251         unsigned short TGRA;\r
2252         unsigned short TGRB;\r
2253         char           wk1[4];\r
2254         union {\r
2255                 unsigned char BYTE;\r
2256                 struct {\r
2257                         unsigned char :4;\r
2258                         unsigned char I2BE:1;\r
2259                         unsigned char I2AE:1;\r
2260                         unsigned char I1BE:1;\r
2261                         unsigned char I1AE:1;\r
2262                 } BIT;\r
2263         } TICCR;\r
2264 };\r
2265 \r
2266 struct st_mtu2 {\r
2267         union {\r
2268                 unsigned char BYTE;\r
2269                 struct {\r
2270                         unsigned char :1;\r
2271                         unsigned char CCLR:2;\r
2272                         unsigned char CKEG:2;\r
2273                         unsigned char TPSC:3;\r
2274                 } BIT;\r
2275         } TCR;\r
2276         union {\r
2277                 unsigned char BYTE;\r
2278                 struct {\r
2279                         unsigned char :4;\r
2280                         unsigned char MD:4;\r
2281                 } BIT;\r
2282         } TMDR;\r
2283         union {\r
2284                 unsigned char BYTE;\r
2285                 struct {\r
2286                         unsigned char IOB:4;\r
2287                         unsigned char IOA:4;\r
2288                 } BIT;\r
2289         } TIOR;\r
2290         char           wk0[1];\r
2291         union {\r
2292                 unsigned char BYTE;\r
2293                 struct {\r
2294                         unsigned char TTGE:1;\r
2295                         unsigned char :1;\r
2296                         unsigned char TCIEU:1;\r
2297                         unsigned char TCIEV:1;\r
2298                         unsigned char :2;\r
2299                         unsigned char TGIEB:1;\r
2300                         unsigned char TGIEA:1;\r
2301                 } BIT;\r
2302         } TIER;\r
2303         union {\r
2304                 unsigned char BYTE;\r
2305                 struct {\r
2306                         unsigned char TCFD:1;\r
2307                 } BIT;\r
2308         } TSR;\r
2309         unsigned short TCNT;\r
2310         unsigned short TGRA;\r
2311         unsigned short TGRB;\r
2312 };\r
2313 \r
2314 struct st_mtu3 {\r
2315         union {\r
2316                 unsigned char BYTE;\r
2317                 struct {\r
2318                         unsigned char CCLR:3;\r
2319                         unsigned char CKEG:2;\r
2320                         unsigned char TPSC:3;\r
2321                 } BIT;\r
2322         } TCR;\r
2323         char           wk0[1];\r
2324         union {\r
2325                 unsigned char BYTE;\r
2326                 struct {\r
2327                         unsigned char :2;\r
2328                         unsigned char BFB:1;\r
2329                         unsigned char BFA:1;\r
2330                         unsigned char MD:4;\r
2331                 } BIT;\r
2332         } TMDR;\r
2333         char           wk1[1];\r
2334         union {\r
2335                 unsigned char BYTE;\r
2336                 struct {\r
2337                         unsigned char IOB:4;\r
2338                         unsigned char IOA:4;\r
2339                 } BIT;\r
2340         } TIORH;\r
2341         union {\r
2342                 unsigned char BYTE;\r
2343                 struct {\r
2344                         unsigned char IOD:4;\r
2345                         unsigned char IOC:4;\r
2346                 } BIT;\r
2347         } TIORL;\r
2348         char           wk2[2];\r
2349         union {\r
2350                 unsigned char BYTE;\r
2351                 struct {\r
2352                         unsigned char TTGE:1;\r
2353                         unsigned char :2;\r
2354                         unsigned char TCIEV:1;\r
2355                         unsigned char TGIED:1;\r
2356                         unsigned char TGIEC:1;\r
2357                         unsigned char TGIEB:1;\r
2358                         unsigned char TGIEA:1;\r
2359                 } BIT;\r
2360         } TIER;\r
2361         char           wk3[7];\r
2362         unsigned short TCNT;\r
2363         char           wk4[6];\r
2364         unsigned short TGRA;\r
2365         unsigned short TGRB;\r
2366         char           wk5[8];\r
2367         unsigned short TGRC;\r
2368         unsigned short TGRD;\r
2369         char           wk6[4];\r
2370         union {\r
2371                 unsigned char BYTE;\r
2372                 struct {\r
2373                         unsigned char TCFD:1;\r
2374                 } BIT;\r
2375         } TSR;\r
2376         char           wk7[11];\r
2377         union {\r
2378                 unsigned char BYTE;\r
2379                 struct {\r
2380                         unsigned char :5;\r
2381                         unsigned char TTSE:1;\r
2382                         unsigned char TTSB:1;\r
2383                         unsigned char TTSA:1;\r
2384                 } BIT;\r
2385         } TBTM;\r
2386 };\r
2387 \r
2388 struct st_mtu4 {\r
2389         char           wk0[1];\r
2390         union {\r
2391                 unsigned char BYTE;\r
2392                 struct {\r
2393                         unsigned char CCLR:3;\r
2394                         unsigned char CKEG:2;\r
2395                         unsigned char TPSC:3;\r
2396                 } BIT;\r
2397         } TCR;\r
2398         char           wk1[1];\r
2399         union {\r
2400                 unsigned char BYTE;\r
2401                 struct {\r
2402                         unsigned char :2;\r
2403                         unsigned char BFB:1;\r
2404                         unsigned char BFA:1;\r
2405                         unsigned char MD:4;\r
2406                 } BIT;\r
2407         } TMDR;\r
2408         char           wk2[2];\r
2409         union {\r
2410                 unsigned char BYTE;\r
2411                 struct {\r
2412                         unsigned char IOB:4;\r
2413                         unsigned char IOA:4;\r
2414                 } BIT;\r
2415         } TIORH;\r
2416         union {\r
2417                 unsigned char BYTE;\r
2418                 struct {\r
2419                         unsigned char IOD:4;\r
2420                         unsigned char IOC:4;\r
2421                 } BIT;\r
2422         } TIORL;\r
2423         char           wk3[1];\r
2424         union {\r
2425                 unsigned char BYTE;\r
2426                 struct {\r
2427                         unsigned char TTGE:1;\r
2428                         unsigned char TTGE2:1;\r
2429                         unsigned char :1;\r
2430                         unsigned char TCIEV:1;\r
2431                         unsigned char TGIED:1;\r
2432                         unsigned char TGIEC:1;\r
2433                         unsigned char TGIEB:1;\r
2434                         unsigned char TGIEA:1;\r
2435                 } BIT;\r
2436         } TIER;\r
2437         char           wk4[8];\r
2438         unsigned short TCNT;\r
2439         char           wk5[8];\r
2440         unsigned short TGRA;\r
2441         unsigned short TGRB;\r
2442         char           wk6[8];\r
2443         unsigned short TGRC;\r
2444         unsigned short TGRD;\r
2445         char           wk7[1];\r
2446         union {\r
2447                 unsigned char BYTE;\r
2448                 struct {\r
2449                         unsigned char TCFD:1;\r
2450                 } BIT;\r
2451         } TSR;\r
2452         char           wk8[11];\r
2453         union {\r
2454                 unsigned char BYTE;\r
2455                 struct {\r
2456                         unsigned char :5;\r
2457                         unsigned char TTSE:1;\r
2458                         unsigned char TTSB:1;\r
2459                         unsigned char TTSA:1;\r
2460                 } BIT;\r
2461         } TBTM;\r
2462         char           wk9[6];\r
2463         union {\r
2464                 unsigned short WORD;\r
2465                 struct {\r
2466                         unsigned short BF:2;\r
2467                         unsigned short :6;\r
2468                         unsigned short UT4AE:1;\r
2469                         unsigned short DT4AE:1;\r
2470                         unsigned short UT4BE:1;\r
2471                         unsigned short DT4BE:1;\r
2472                         unsigned short ITA3AE:1;\r
2473                         unsigned short ITA4VE:1;\r
2474                         unsigned short ITB3AE:1;\r
2475                         unsigned short ITB4VE:1;\r
2476                 } BIT;\r
2477         } TADCR;\r
2478         char           wk10[2];\r
2479         unsigned short TADCORA;\r
2480         unsigned short TADCORB;\r
2481         unsigned short TADCOBRA;\r
2482         unsigned short TADCOBRB;\r
2483 };\r
2484 \r
2485 struct st_mtu5 {\r
2486         unsigned short TCNTU;\r
2487         unsigned short TGRU;\r
2488         union {\r
2489                 unsigned char BYTE;\r
2490                 struct {\r
2491                         unsigned char :6;\r
2492                         unsigned char TPSC:2;\r
2493                 } BIT;\r
2494         } TCRU;\r
2495         char           wk0[1];\r
2496         union {\r
2497                 unsigned char BYTE;\r
2498                 struct {\r
2499                         unsigned char :3;\r
2500                         unsigned char IOC:5;\r
2501                 } BIT;\r
2502         } TIORU;\r
2503         char           wk1[9];\r
2504         unsigned short TCNTV;\r
2505         unsigned short TGRV;\r
2506         union {\r
2507                 unsigned char BYTE;\r
2508                 struct {\r
2509                         unsigned char :6;\r
2510                         unsigned char TPSC:2;\r
2511                 } BIT;\r
2512         } TCRV;\r
2513         char           wk2[1];\r
2514         union {\r
2515                 unsigned char BYTE;\r
2516                 struct {\r
2517                         unsigned char :3;\r
2518                         unsigned char IOC:5;\r
2519                 } BIT;\r
2520         } TIORV;\r
2521         char           wk3[9];\r
2522         unsigned short TCNTW;\r
2523         unsigned short TGRW;\r
2524         union {\r
2525                 unsigned char BYTE;\r
2526                 struct {\r
2527                         unsigned char :6;\r
2528                         unsigned char TPSC:2;\r
2529                 } BIT;\r
2530         } TCRW;\r
2531         char           wk4[1];\r
2532         union {\r
2533                 unsigned char BYTE;\r
2534                 struct {\r
2535                         unsigned char :3;\r
2536                         unsigned char IOC:5;\r
2537                 } BIT;\r
2538         } TIORW;\r
2539         char           wk5[11];\r
2540         union {\r
2541                 unsigned char BYTE;\r
2542                 struct {\r
2543                         unsigned char :5;\r
2544                         unsigned char TGIE5U:1;\r
2545                         unsigned char TGIE5V:1;\r
2546                         unsigned char TGIE5W:1;\r
2547                 } BIT;\r
2548         } TIER;\r
2549         char           wk6[1];\r
2550         union {\r
2551                 unsigned char BYTE;\r
2552                 struct {\r
2553                         unsigned char :5;\r
2554                         unsigned char CSTU5:1;\r
2555                         unsigned char CSTV5:1;\r
2556                         unsigned char CSTW5:1;\r
2557                 } BIT;\r
2558         } TSTR;\r
2559         char           wk7[1];\r
2560         union {\r
2561                 unsigned char BYTE;\r
2562                 struct {\r
2563                         unsigned char :5;\r
2564                         unsigned char CMPCLR5U:1;\r
2565                         unsigned char CMPCLR5V:1;\r
2566                         unsigned char CMPCLR5W:1;\r
2567                 } BIT;\r
2568         } TCNTCMPCLR;\r
2569 };\r
2570 \r
2571 struct st_poe {\r
2572         union {\r
2573                 unsigned short WORD;\r
2574                 struct {\r
2575                         unsigned char H;\r
2576                         unsigned char L;\r
2577                 } BYTE;\r
2578                 struct {\r
2579                         unsigned char POE3F:1;\r
2580                         unsigned char POE2F:1;\r
2581                         unsigned char POE1F:1;\r
2582                         unsigned char POE0F:1;\r
2583                         unsigned char :3;\r
2584                         unsigned char PIE1:1;\r
2585                         unsigned char POE3M:2;\r
2586                         unsigned char POE2M:2;\r
2587                         unsigned char POE1M:2;\r
2588                         unsigned char POE0M:2;\r
2589                 } BIT;\r
2590         } ICSR1;\r
2591         union {\r
2592                 unsigned short WORD;\r
2593                 struct {\r
2594                         unsigned char H;\r
2595                         unsigned char L;\r
2596                 } BYTE;\r
2597                 struct {\r
2598                         unsigned char OSF1:1;\r
2599                         unsigned char :5;\r
2600                         unsigned char OCE1:1;\r
2601                         unsigned char OIE1:1;\r
2602                 } BIT;\r
2603         } OCSR1;\r
2604         char           wk0[4];\r
2605         union {\r
2606                 unsigned short WORD;\r
2607                 struct {\r
2608                         unsigned char H;\r
2609                         unsigned char L;\r
2610                 } BYTE;\r
2611                 struct {\r
2612                         unsigned char :3;\r
2613                         unsigned char POE8F:1;\r
2614                         unsigned char :2;\r
2615                         unsigned char POE8E:1;\r
2616                         unsigned char PIE2:1;\r
2617                         unsigned char :6;\r
2618                         unsigned char POE8M:2;\r
2619                 } BIT;\r
2620         } ICSR2;\r
2621         union {\r
2622                 unsigned char BYTE;\r
2623                 struct {\r
2624                         unsigned char :6;\r
2625                         unsigned char CH0HIZ:1;\r
2626                         unsigned char CH34HIZ:1;\r
2627                 } BIT;\r
2628         } SPOER;\r
2629         union {\r
2630                 unsigned char BYTE;\r
2631                 struct {\r
2632                         unsigned char :4;\r
2633                         unsigned char PE3ZE:1;\r
2634                         unsigned char PE2ZE:1;\r
2635                         unsigned char PE1ZE:1;\r
2636                         unsigned char PE0ZE:1;\r
2637                 } BIT;\r
2638         } POECR1;\r
2639         union {\r
2640                 unsigned char BYTE;\r
2641                 struct {\r
2642                         unsigned char :1;\r
2643                         unsigned char P1CZEA:1;\r
2644                         unsigned char P2CZEA:1;\r
2645                         unsigned char P3CZEA:1;\r
2646                 } BIT;\r
2647         } POECR2;\r
2648         char           wk1[1];\r
2649         union {\r
2650                 unsigned short WORD;\r
2651                 struct {\r
2652                         unsigned char H;\r
2653                         unsigned char L;\r
2654                 } BYTE;\r
2655                 struct {\r
2656                         unsigned char :6;\r
2657                         unsigned char OSTSTE:1;\r
2658                 } BIT;\r
2659         } ICSR3;\r
2660 };\r
2661 \r
2662 struct st_port {\r
2663         union {\r
2664                 unsigned char BYTE;\r
2665                 struct {\r
2666                         unsigned char CS7E:1;\r
2667                         unsigned char CS6E:1;\r
2668                         unsigned char CS5E:1;\r
2669                         unsigned char CS4E:1;\r
2670                         unsigned char CS3E:1;\r
2671                         unsigned char CS2E:1;\r
2672                         unsigned char CS1E:1;\r
2673                         unsigned char CS0E:1;\r
2674                 } BIT;\r
2675         } PFCSE;\r
2676         char           wk0[3];\r
2677         union {\r
2678                 unsigned char BYTE;\r
2679                 struct {\r
2680                         unsigned char A15E:1;\r
2681                         unsigned char A14E:1;\r
2682                         unsigned char A13E:1;\r
2683                         unsigned char A12E:1;\r
2684                         unsigned char A11E:1;\r
2685                         unsigned char A10E:1;\r
2686                         unsigned char A9E:1;\r
2687                         unsigned char A8E:1;\r
2688                 } BIT;\r
2689         } PFAOE0;\r
2690         union {\r
2691                 unsigned char BYTE;\r
2692                 struct {\r
2693                         unsigned char A23E:1;\r
2694                         unsigned char A22E:1;\r
2695                         unsigned char A21E:1;\r
2696                         unsigned char A20E:1;\r
2697                         unsigned char A19E:1;\r
2698                         unsigned char A18E:1;\r
2699                         unsigned char A17E:1;\r
2700                         unsigned char A16E:1;\r
2701                 } BIT;\r
2702         } PFAOE1;\r
2703         union {\r
2704                 unsigned char BYTE;\r
2705                 struct {\r
2706                         unsigned char :1;\r
2707                         unsigned char WR1BC1E:1;\r
2708                         unsigned char :1;\r
2709                         unsigned char DHE:1;\r
2710                         unsigned char :3;\r
2711                         unsigned char ADRLE:1;\r
2712                 } BIT;\r
2713         } PFBCR0;\r
2714         union {\r
2715                 unsigned char BYTE;\r
2716                 struct {\r
2717                         unsigned char :5;\r
2718                         unsigned char ALEOE:1;\r
2719                         unsigned char WAITS:2;\r
2720                 } BIT;\r
2721         } PFBCR1;\r
2722 };\r
2723 \r
2724 struct st_port0 {\r
2725         union {\r
2726                 unsigned char BYTE;\r
2727                 struct {\r
2728                         unsigned char B7:1;\r
2729                         unsigned char :1;\r
2730                         unsigned char B5:1;\r
2731                         unsigned char :1;\r
2732                         unsigned char B3:1;\r
2733                 } BIT;\r
2734         } PDR;\r
2735         char           wk0[31];\r
2736         union {\r
2737                 unsigned char BYTE;\r
2738                 struct {\r
2739                         unsigned char B7:1;\r
2740                         unsigned char :1;\r
2741                         unsigned char B5:1;\r
2742                         unsigned char :1;\r
2743                         unsigned char B3:1;\r
2744                 } BIT;\r
2745         } PODR;\r
2746         char           wk1[31];\r
2747         union {\r
2748                 unsigned char BYTE;\r
2749                 struct {\r
2750                         unsigned char B7:1;\r
2751                         unsigned char :1;\r
2752                         unsigned char B5:1;\r
2753                         unsigned char :1;\r
2754                         unsigned char B3:1;\r
2755                 } BIT;\r
2756         } PIDR;\r
2757         char           wk2[31];\r
2758         union {\r
2759                 unsigned char BYTE;\r
2760                 struct {\r
2761                         unsigned char B7:1;\r
2762                         unsigned char :1;\r
2763                         unsigned char B5:1;\r
2764                         unsigned char :1;\r
2765                         unsigned char B3:1;\r
2766                 } BIT;\r
2767         } PMR;\r
2768         char           wk3[95];\r
2769         union {\r
2770                 unsigned char BYTE;\r
2771                 struct {\r
2772                         unsigned char B7:1;\r
2773                         unsigned char :1;\r
2774                         unsigned char B5:1;\r
2775                         unsigned char :1;\r
2776                         unsigned char B3:1;\r
2777                 } BIT;\r
2778         } PCR;\r
2779 };\r
2780 \r
2781 struct st_port1 {\r
2782         union {\r
2783                 unsigned char BYTE;\r
2784                 struct {\r
2785                         unsigned char B7:1;\r
2786                         unsigned char B6:1;\r
2787                         unsigned char B5:1;\r
2788                         unsigned char B4:1;\r
2789                         unsigned char B3:1;\r
2790                         unsigned char B2:1;\r
2791                 } BIT;\r
2792         } PDR;\r
2793         char           wk0[31];\r
2794         union {\r
2795                 unsigned char BYTE;\r
2796                 struct {\r
2797                         unsigned char B7:1;\r
2798                         unsigned char B6:1;\r
2799                         unsigned char B5:1;\r
2800                         unsigned char B4:1;\r
2801                         unsigned char B3:1;\r
2802                         unsigned char B2:1;\r
2803                 } BIT;\r
2804         } PODR;\r
2805         char           wk1[31];\r
2806         union {\r
2807                 unsigned char BYTE;\r
2808                 struct {\r
2809                         unsigned char B7:1;\r
2810                         unsigned char B6:1;\r
2811                         unsigned char B5:1;\r
2812                         unsigned char B4:1;\r
2813                         unsigned char B3:1;\r
2814                         unsigned char B2:1;\r
2815                 } BIT;\r
2816         } PIDR;\r
2817         char           wk2[31];\r
2818         union {\r
2819                 unsigned char BYTE;\r
2820                 struct {\r
2821                         unsigned char B7:1;\r
2822                         unsigned char B6:1;\r
2823                         unsigned char B5:1;\r
2824                         unsigned char B4:1;\r
2825                         unsigned char B3:1;\r
2826                         unsigned char B2:1;\r
2827                 } BIT;\r
2828         } PMR;\r
2829         char           wk3[32];\r
2830         union {\r
2831                 unsigned char BYTE;\r
2832                 struct {\r
2833                         unsigned char :1;\r
2834                         unsigned char B6:1;\r
2835                         unsigned char :1;\r
2836                         unsigned char B4:1;\r
2837                 } BIT;\r
2838         } ODR0;\r
2839         union {\r
2840                 unsigned char BYTE;\r
2841                 struct {\r
2842                         unsigned char :1;\r
2843                         unsigned char B6:1;\r
2844                         unsigned char :1;\r
2845                         unsigned char B4:1;\r
2846                         unsigned char :1;\r
2847                         unsigned char B2:1;\r
2848                         unsigned char :1;\r
2849                         unsigned char B0:1;\r
2850                 } BIT;\r
2851         } ODR1;\r
2852         char           wk4[61];\r
2853         union {\r
2854                 unsigned char BYTE;\r
2855                 struct {\r
2856                         unsigned char B7:1;\r
2857                         unsigned char B6:1;\r
2858                         unsigned char B5:1;\r
2859                         unsigned char B4:1;\r
2860                         unsigned char B3:1;\r
2861                         unsigned char B2:1;\r
2862                 } BIT;\r
2863         } PCR;\r
2864         char           wk5[31];\r
2865         union {\r
2866                 unsigned char BYTE;\r
2867                 struct {\r
2868                         unsigned char B7:1;\r
2869                         unsigned char B6:1;\r
2870                         unsigned char B5:1;\r
2871                         unsigned char B4:1;\r
2872                         unsigned char B3:1;\r
2873                         unsigned char B2:1;\r
2874                 } BIT;\r
2875         } DSCR;\r
2876 };\r
2877 \r
2878 struct st_port2 {\r
2879         union {\r
2880                 unsigned char BYTE;\r
2881                 struct {\r
2882                         unsigned char B7:1;\r
2883                         unsigned char B6:1;\r
2884                         unsigned char B5:1;\r
2885                         unsigned char B4:1;\r
2886                         unsigned char B3:1;\r
2887                         unsigned char B2:1;\r
2888                         unsigned char B1:1;\r
2889                         unsigned char B0:1;\r
2890                 } BIT;\r
2891         } PDR;\r
2892         char           wk0[31];\r
2893         union {\r
2894                 unsigned char BYTE;\r
2895                 struct {\r
2896                         unsigned char B7:1;\r
2897                         unsigned char B6:1;\r
2898                         unsigned char B5:1;\r
2899                         unsigned char B4:1;\r
2900                         unsigned char B3:1;\r
2901                         unsigned char B2:1;\r
2902                         unsigned char B1:1;\r
2903                         unsigned char B0:1;\r
2904                 } BIT;\r
2905         } PODR;\r
2906         char           wk1[31];\r
2907         union {\r
2908                 unsigned char BYTE;\r
2909                 struct {\r
2910                         unsigned char B7:1;\r
2911                         unsigned char B6:1;\r
2912                         unsigned char B5:1;\r
2913                         unsigned char B4:1;\r
2914                         unsigned char B3:1;\r
2915                         unsigned char B2:1;\r
2916                         unsigned char B1:1;\r
2917                         unsigned char B0:1;\r
2918                 } BIT;\r
2919         } PIDR;\r
2920         char           wk2[31];\r
2921         union {\r
2922                 unsigned char BYTE;\r
2923                 struct {\r
2924                         unsigned char B7:1;\r
2925                         unsigned char B6:1;\r
2926                         unsigned char B5:1;\r
2927                         unsigned char B4:1;\r
2928                         unsigned char B3:1;\r
2929                         unsigned char B2:1;\r
2930                         unsigned char B1:1;\r
2931                         unsigned char B0:1;\r
2932                 } BIT;\r
2933         } PMR;\r
2934         char           wk3[33];\r
2935         union {\r
2936                 unsigned char BYTE;\r
2937                 struct {\r
2938                         unsigned char :1;\r
2939                         unsigned char B6:1;\r
2940                         unsigned char :1;\r
2941                         unsigned char B4:1;\r
2942                         unsigned char :1;\r
2943                         unsigned char B2:1;\r
2944                         unsigned char :1;\r
2945                         unsigned char B0:1;\r
2946                 } BIT;\r
2947         } ODR0;\r
2948         union {\r
2949                 unsigned char BYTE;\r
2950                 struct {\r
2951                         unsigned char :1;\r
2952                         unsigned char B6:1;\r
2953                         unsigned char :1;\r
2954                         unsigned char B4:1;\r
2955                         unsigned char :1;\r
2956                         unsigned char B2:1;\r
2957                         unsigned char :1;\r
2958                         unsigned char B0:1;\r
2959                 } BIT;\r
2960         } ODR1;\r
2961         char           wk4[60];\r
2962         union {\r
2963                 unsigned char BYTE;\r
2964                 struct {\r
2965                         unsigned char B7:1;\r
2966                         unsigned char B6:1;\r
2967                         unsigned char B5:1;\r
2968                         unsigned char B4:1;\r
2969                         unsigned char B3:1;\r
2970                         unsigned char B2:1;\r
2971                         unsigned char B1:1;\r
2972                         unsigned char B0:1;\r
2973                 } BIT;\r
2974         } PCR;\r
2975         char           wk5[31];\r
2976         union {\r
2977                 unsigned char BYTE;\r
2978                 struct {\r
2979                         unsigned char B7:1;\r
2980                         unsigned char B6:1;\r
2981                         unsigned char B5:1;\r
2982                         unsigned char B4:1;\r
2983                         unsigned char B3:1;\r
2984                         unsigned char B2:1;\r
2985                         unsigned char B1:1;\r
2986                         unsigned char B0:1;\r
2987                 } BIT;\r
2988         } DSCR;\r
2989 };\r
2990 \r
2991 struct st_port3 {\r
2992         union {\r
2993                 unsigned char BYTE;\r
2994                 struct {\r
2995                         unsigned char B7:1;\r
2996                         unsigned char B6:1;\r
2997                         unsigned char :1;\r
2998                         unsigned char B4:1;\r
2999                         unsigned char B3:1;\r
3000                         unsigned char B2:1;\r
3001                         unsigned char B1:1;\r
3002                         unsigned char B0:1;\r
3003                 } BIT;\r
3004         } PDR;\r
3005         char           wk0[31];\r
3006         union {\r
3007                 unsigned char BYTE;\r
3008                 struct {\r
3009                         unsigned char B7:1;\r
3010                         unsigned char B6:1;\r
3011                         unsigned char B5:1;\r
3012                         unsigned char B4:1;\r
3013                         unsigned char B3:1;\r
3014                         unsigned char B2:1;\r
3015                         unsigned char B1:1;\r
3016                         unsigned char B0:1;\r
3017                 } BIT;\r
3018         } PODR;\r
3019         char           wk1[31];\r
3020         union {\r
3021                 unsigned char BYTE;\r
3022                 struct {\r
3023                         unsigned char B7:1;\r
3024                         unsigned char B6:1;\r
3025                         unsigned char B5:1;\r
3026                         unsigned char B4:1;\r
3027                         unsigned char B3:1;\r
3028                         unsigned char B2:1;\r
3029                         unsigned char B1:1;\r
3030                         unsigned char B0:1;\r
3031                 } BIT;\r
3032         } PIDR;\r
3033         char           wk2[31];\r
3034         union {\r
3035                 unsigned char BYTE;\r
3036                 struct {\r
3037                         unsigned char B7:1;\r
3038                         unsigned char B6:1;\r
3039                         unsigned char B5:1;\r
3040                         unsigned char B4:1;\r
3041                         unsigned char B3:1;\r
3042                         unsigned char B2:1;\r
3043                         unsigned char B1:1;\r
3044                         unsigned char B0:1;\r
3045                 } BIT;\r
3046         } PMR;\r
3047         char           wk3[34];\r
3048         union {\r
3049                 unsigned char BYTE;\r
3050                 struct {\r
3051                         unsigned char :1;\r
3052                         unsigned char B6:1;\r
3053                         unsigned char :1;\r
3054                         unsigned char B4:1;\r
3055                         unsigned char :1;\r
3056                         unsigned char B2:1;\r
3057                         unsigned char :1;\r
3058                         unsigned char B0:1;\r
3059                 } BIT;\r
3060         } ODR0;\r
3061         union {\r
3062                 unsigned char BYTE;\r
3063                 struct {\r
3064                         unsigned char :1;\r
3065                         unsigned char B6:1;\r
3066                         unsigned char :1;\r
3067                         unsigned char B4:1;\r
3068                         unsigned char :1;\r
3069                         unsigned char B2:1;\r
3070                         unsigned char :1;\r
3071                         unsigned char B0:1;\r
3072                 } BIT;\r
3073         } ODR1;\r
3074         char           wk4[59];\r
3075         union {\r
3076                 unsigned char BYTE;\r
3077                 struct {\r
3078                         unsigned char B7:1;\r
3079                         unsigned char B6:1;\r
3080                         unsigned char B5:1;\r
3081                         unsigned char B4:1;\r
3082                         unsigned char B3:1;\r
3083                         unsigned char B2:1;\r
3084                         unsigned char B1:1;\r
3085                         unsigned char B0:1;\r
3086                 } BIT;\r
3087         } PCR;\r
3088         char           wk5[31];\r
3089         union {\r
3090                 unsigned char BYTE;\r
3091                 struct {\r
3092                         unsigned char B7:1;\r
3093                         unsigned char B6:1;\r
3094                         unsigned char B5:1;\r
3095                         unsigned char B4:1;\r
3096                         unsigned char B3:1;\r
3097                         unsigned char B2:1;\r
3098                         unsigned char B1:1;\r
3099                         unsigned char B0:1;\r
3100                 } BIT;\r
3101         } DSCR;\r
3102 };\r
3103 \r
3104 struct st_port4 {\r
3105         union {\r
3106                 unsigned char BYTE;\r
3107                 struct {\r
3108                         unsigned char B7:1;\r
3109                         unsigned char B6:1;\r
3110                         unsigned char B5:1;\r
3111                         unsigned char B4:1;\r
3112                         unsigned char B3:1;\r
3113                         unsigned char B2:1;\r
3114                         unsigned char B1:1;\r
3115                         unsigned char B0:1;\r
3116                 } BIT;\r
3117         } PDR;\r
3118         char           wk0[31];\r
3119         union {\r
3120                 unsigned char BYTE;\r
3121                 struct {\r
3122                         unsigned char B7:1;\r
3123                         unsigned char B6:1;\r
3124                         unsigned char B5:1;\r
3125                         unsigned char B4:1;\r
3126                         unsigned char B3:1;\r
3127                         unsigned char B2:1;\r
3128                         unsigned char B1:1;\r
3129                         unsigned char B0:1;\r
3130                 } BIT;\r
3131         } PODR;\r
3132         char           wk1[31];\r
3133         union {\r
3134                 unsigned char BYTE;\r
3135                 struct {\r
3136                         unsigned char B7:1;\r
3137                         unsigned char B6:1;\r
3138                         unsigned char B5:1;\r
3139                         unsigned char B4:1;\r
3140                         unsigned char B3:1;\r
3141                         unsigned char B2:1;\r
3142                         unsigned char B1:1;\r
3143                         unsigned char B0:1;\r
3144                 } BIT;\r
3145         } PIDR;\r
3146         char           wk2[31];\r
3147         union {\r
3148                 unsigned char BYTE;\r
3149                 struct {\r
3150                         unsigned char B7:1;\r
3151                         unsigned char B6:1;\r
3152                         unsigned char B5:1;\r
3153                         unsigned char B4:1;\r
3154                         unsigned char B3:1;\r
3155                         unsigned char B2:1;\r
3156                         unsigned char B1:1;\r
3157                         unsigned char B0:1;\r
3158                 } BIT;\r
3159         } PMR;\r
3160         char           wk3[95];\r
3161         union {\r
3162                 unsigned char BYTE;\r
3163                 struct {\r
3164                         unsigned char B7:1;\r
3165                         unsigned char B6:1;\r
3166                         unsigned char B5:1;\r
3167                         unsigned char B4:1;\r
3168                         unsigned char B3:1;\r
3169                         unsigned char B2:1;\r
3170                         unsigned char B1:1;\r
3171                         unsigned char B0:1;\r
3172                 } BIT;\r
3173         } PCR;\r
3174 };\r
3175 \r
3176 struct st_port5 {\r
3177         union {\r
3178                 unsigned char BYTE;\r
3179                 struct {\r
3180                         unsigned char :2;\r
3181                         unsigned char B5:1;\r
3182                         unsigned char B4:1;\r
3183                         unsigned char B3:1;\r
3184                         unsigned char B2:1;\r
3185                         unsigned char B1:1;\r
3186                         unsigned char B0:1;\r
3187                 } BIT;\r
3188         } PDR;\r
3189         char           wk0[31];\r
3190         union {\r
3191                 unsigned char BYTE;\r
3192                 struct {\r
3193                         unsigned char :2;\r
3194                         unsigned char B5:1;\r
3195                         unsigned char B4:1;\r
3196                         unsigned char B3:1;\r
3197                         unsigned char B2:1;\r
3198                         unsigned char B1:1;\r
3199                         unsigned char B0:1;\r
3200                 } BIT;\r
3201         } PODR;\r
3202         char           wk1[31];\r
3203         union {\r
3204                 unsigned char BYTE;\r
3205                 struct {\r
3206                         unsigned char :2;\r
3207                         unsigned char B5:1;\r
3208                         unsigned char B4:1;\r
3209                         unsigned char B3:1;\r
3210                         unsigned char B2:1;\r
3211                         unsigned char B1:1;\r
3212                         unsigned char B0:1;\r
3213                 } BIT;\r
3214         } PIDR;\r
3215         char           wk2[31];\r
3216         union {\r
3217                 unsigned char BYTE;\r
3218                 struct {\r
3219                         unsigned char :2;\r
3220                         unsigned char B5:1;\r
3221                         unsigned char B4:1;\r
3222                         unsigned char B3:1;\r
3223                         unsigned char B2:1;\r
3224                         unsigned char B1:1;\r
3225                         unsigned char B0:1;\r
3226                 } BIT;\r
3227         } PMR;\r
3228         char           wk3[95];\r
3229         union {\r
3230                 unsigned char BYTE;\r
3231                 struct {\r
3232                         unsigned char :2;\r
3233                         unsigned char B5:1;\r
3234                         unsigned char B4:1;\r
3235                         unsigned char B3:1;\r
3236                         unsigned char B2:1;\r
3237                         unsigned char B1:1;\r
3238                         unsigned char B0:1;\r
3239                 } BIT;\r
3240         } PCR;\r
3241         char           wk4[31];\r
3242         union {\r
3243                 unsigned char BYTE;\r
3244                 struct {\r
3245                         unsigned char :2;\r
3246                         unsigned char B5:1;\r
3247                         unsigned char B4:1;\r
3248                         unsigned char B3:1;\r
3249                         unsigned char B2:1;\r
3250                         unsigned char B1:1;\r
3251                         unsigned char B0:1;\r
3252                 } BIT;\r
3253         } DSCR;\r
3254 };\r
3255 \r
3256 struct st_porta {\r
3257         union {\r
3258                 unsigned char BYTE;\r
3259                 struct {\r
3260                         unsigned char B7:1;\r
3261                         unsigned char B6:1;\r
3262                         unsigned char B5:1;\r
3263                         unsigned char B4:1;\r
3264                         unsigned char B3:1;\r
3265                         unsigned char B2:1;\r
3266                         unsigned char B1:1;\r
3267                         unsigned char B0:1;\r
3268                 } BIT;\r
3269         } PDR;\r
3270         char           wk0[31];\r
3271         union {\r
3272                 unsigned char BYTE;\r
3273                 struct {\r
3274                         unsigned char B7:1;\r
3275                         unsigned char B6:1;\r
3276                         unsigned char B5:1;\r
3277                         unsigned char B4:1;\r
3278                         unsigned char B3:1;\r
3279                         unsigned char B2:1;\r
3280                         unsigned char B1:1;\r
3281                         unsigned char B0:1;\r
3282                 } BIT;\r
3283         } PODR;\r
3284         char           wk1[31];\r
3285         union {\r
3286                 unsigned char BYTE;\r
3287                 struct {\r
3288                         unsigned char B7:1;\r
3289                         unsigned char B6:1;\r
3290                         unsigned char B5:1;\r
3291                         unsigned char B4:1;\r
3292                         unsigned char B3:1;\r
3293                         unsigned char B2:1;\r
3294                         unsigned char B1:1;\r
3295                         unsigned char B0:1;\r
3296                 } BIT;\r
3297         } PIDR;\r
3298         char           wk2[31];\r
3299         union {\r
3300                 unsigned char BYTE;\r
3301                 struct {\r
3302                         unsigned char B7:1;\r
3303                         unsigned char B6:1;\r
3304                         unsigned char B5:1;\r
3305                         unsigned char B4:1;\r
3306                         unsigned char B3:1;\r
3307                         unsigned char B2:1;\r
3308                         unsigned char B1:1;\r
3309                         unsigned char B0:1;\r
3310                 } BIT;\r
3311         } PMR;\r
3312         char           wk3[41];\r
3313         union {\r
3314                 unsigned char BYTE;\r
3315                 struct {\r
3316                         unsigned char :1;\r
3317                         unsigned char B6:1;\r
3318                         unsigned char :1;\r
3319                         unsigned char B4:1;\r
3320                         unsigned char :1;\r
3321                         unsigned char B2:1;\r
3322                         unsigned char :1;\r
3323                         unsigned char B0:1;\r
3324                 } BIT;\r
3325         } ODR0;\r
3326         union {\r
3327                 unsigned char BYTE;\r
3328                 struct {\r
3329                         unsigned char :1;\r
3330                         unsigned char B6:1;\r
3331                         unsigned char :1;\r
3332                         unsigned char B4:1;\r
3333                         unsigned char :1;\r
3334                         unsigned char B2:1;\r
3335                         unsigned char :1;\r
3336                         unsigned char B0:1;\r
3337                 } BIT;\r
3338         } ODR1;\r
3339         char           wk4[52];\r
3340         union {\r
3341                 unsigned char BYTE;\r
3342                 struct {\r
3343                         unsigned char B7:1;\r
3344                         unsigned char B6:1;\r
3345                         unsigned char B5:1;\r
3346                         unsigned char B4:1;\r
3347                         unsigned char B3:1;\r
3348                         unsigned char B2:1;\r
3349                         unsigned char B1:1;\r
3350                         unsigned char B0:1;\r
3351                 } BIT;\r
3352         } PCR;\r
3353         char           wk5[31];\r
3354         union {\r
3355                 unsigned char BYTE;\r
3356                 struct {\r
3357                         unsigned char B7:1;\r
3358                         unsigned char B6:1;\r
3359                         unsigned char B5:1;\r
3360                         unsigned char B4:1;\r
3361                         unsigned char B3:1;\r
3362                         unsigned char B2:1;\r
3363                         unsigned char B1:1;\r
3364                         unsigned char B0:1;\r
3365                 } BIT;\r
3366         } DSCR;\r
3367 };\r
3368 \r
3369 struct st_portb {\r
3370         union {\r
3371                 unsigned char BYTE;\r
3372                 struct {\r
3373                         unsigned char B7:1;\r
3374                         unsigned char B6:1;\r
3375                         unsigned char B5:1;\r
3376                         unsigned char B4:1;\r
3377                         unsigned char B3:1;\r
3378                         unsigned char B2:1;\r
3379                         unsigned char B1:1;\r
3380                         unsigned char B0:1;\r
3381                 } BIT;\r
3382         } PDR;\r
3383         char           wk0[31];\r
3384         union {\r
3385                 unsigned char BYTE;\r
3386                 struct {\r
3387                         unsigned char B7:1;\r
3388                         unsigned char B6:1;\r
3389                         unsigned char B5:1;\r
3390                         unsigned char B4:1;\r
3391                         unsigned char B3:1;\r
3392                         unsigned char B2:1;\r
3393                         unsigned char B1:1;\r
3394                         unsigned char B0:1;\r
3395                 } BIT;\r
3396         } PODR;\r
3397         char           wk1[31];\r
3398         union {\r
3399                 unsigned char BYTE;\r
3400                 struct {\r
3401                         unsigned char B7:1;\r
3402                         unsigned char B6:1;\r
3403                         unsigned char B5:1;\r
3404                         unsigned char B4:1;\r
3405                         unsigned char B3:1;\r
3406                         unsigned char B2:1;\r
3407                         unsigned char B1:1;\r
3408                         unsigned char B0:1;\r
3409                 } BIT;\r
3410         } PIDR;\r
3411         char           wk2[31];\r
3412         union {\r
3413                 unsigned char BYTE;\r
3414                 struct {\r
3415                         unsigned char B7:1;\r
3416                         unsigned char B6:1;\r
3417                         unsigned char B5:1;\r
3418                         unsigned char B4:1;\r
3419                         unsigned char B3:1;\r
3420                         unsigned char B2:1;\r
3421                         unsigned char B1:1;\r
3422                         unsigned char B0:1;\r
3423                 } BIT;\r
3424         } PMR;\r
3425         char           wk3[42];\r
3426         union {\r
3427                 unsigned char BYTE;\r
3428                 struct {\r
3429                         unsigned char :1;\r
3430                         unsigned char B6:1;\r
3431                         unsigned char :1;\r
3432                         unsigned char B4:1;\r
3433                         unsigned char :1;\r
3434                         unsigned char B2:1;\r
3435                         unsigned char :1;\r
3436                         unsigned char B0:1;\r
3437                 } BIT;\r
3438         } ODR0;\r
3439         union {\r
3440                 unsigned char BYTE;\r
3441                 struct {\r
3442                         unsigned char :1;\r
3443                         unsigned char B6:1;\r
3444                         unsigned char :1;\r
3445                         unsigned char B4:1;\r
3446                         unsigned char :1;\r
3447                         unsigned char B2:1;\r
3448                         unsigned char :1;\r
3449                         unsigned char B0:1;\r
3450                 } BIT;\r
3451         } ODR1;\r
3452         char           wk4[51];\r
3453         union {\r
3454                 unsigned char BYTE;\r
3455                 struct {\r
3456                         unsigned char B7:1;\r
3457                         unsigned char B6:1;\r
3458                         unsigned char B5:1;\r
3459                         unsigned char B4:1;\r
3460                         unsigned char B3:1;\r
3461                         unsigned char B2:1;\r
3462                         unsigned char B1:1;\r
3463                         unsigned char B0:1;\r
3464                 } BIT;\r
3465         } PCR;\r
3466         char           wk5[31];\r
3467         union {\r
3468                 unsigned char BYTE;\r
3469                 struct {\r
3470                         unsigned char B7:1;\r
3471                         unsigned char B6:1;\r
3472                         unsigned char B5:1;\r
3473                         unsigned char B4:1;\r
3474                         unsigned char B3:1;\r
3475                         unsigned char B2:1;\r
3476                         unsigned char B1:1;\r
3477                         unsigned char B0:1;\r
3478                 } BIT;\r
3479         } DSCR;\r
3480 };\r
3481 \r
3482 struct st_portc {\r
3483         union {\r
3484                 unsigned char BYTE;\r
3485                 struct {\r
3486                         unsigned char B7:1;\r
3487                         unsigned char B6:1;\r
3488                         unsigned char B5:1;\r
3489                         unsigned char B4:1;\r
3490                         unsigned char B3:1;\r
3491                         unsigned char B2:1;\r
3492                         unsigned char B1:1;\r
3493                         unsigned char B0:1;\r
3494                 } BIT;\r
3495         } PDR;\r
3496         char           wk0[31];\r
3497         union {\r
3498                 unsigned char BYTE;\r
3499                 struct {\r
3500                         unsigned char B7:1;\r
3501                         unsigned char B6:1;\r
3502                         unsigned char B5:1;\r
3503                         unsigned char B4:1;\r
3504                         unsigned char B3:1;\r
3505                         unsigned char B2:1;\r
3506                         unsigned char B1:1;\r
3507                         unsigned char B0:1;\r
3508                 } BIT;\r
3509         } PODR;\r
3510         char           wk1[31];\r
3511         union {\r
3512                 unsigned char BYTE;\r
3513                 struct {\r
3514                         unsigned char B7:1;\r
3515                         unsigned char B6:1;\r
3516                         unsigned char B5:1;\r
3517                         unsigned char B4:1;\r
3518                         unsigned char B3:1;\r
3519                         unsigned char B2:1;\r
3520                         unsigned char B1:1;\r
3521                         unsigned char B0:1;\r
3522                 } BIT;\r
3523         } PIDR;\r
3524         char           wk2[31];\r
3525         union {\r
3526                 unsigned char BYTE;\r
3527                 struct {\r
3528                         unsigned char B7:1;\r
3529                         unsigned char B6:1;\r
3530                         unsigned char B5:1;\r
3531                         unsigned char B4:1;\r
3532                         unsigned char B3:1;\r
3533                         unsigned char B2:1;\r
3534                         unsigned char B1:1;\r
3535                         unsigned char B0:1;\r
3536                 } BIT;\r
3537         } PMR;\r
3538         char           wk3[43];\r
3539         union {\r
3540                 unsigned char BYTE;\r
3541                 struct {\r
3542                         unsigned char :1;\r
3543                         unsigned char B6:1;\r
3544                         unsigned char :1;\r
3545                         unsigned char B4:1;\r
3546                         unsigned char :1;\r
3547                         unsigned char B2:1;\r
3548                         unsigned char :1;\r
3549                         unsigned char B0:1;\r
3550                 } BIT;\r
3551         } ODR0;\r
3552         union {\r
3553                 unsigned char BYTE;\r
3554                 struct {\r
3555                         unsigned char :1;\r
3556                         unsigned char B6:1;\r
3557                         unsigned char :1;\r
3558                         unsigned char B4:1;\r
3559                         unsigned char :1;\r
3560                         unsigned char B2:1;\r
3561                         unsigned char :1;\r
3562                         unsigned char B0:1;\r
3563                 } BIT;\r
3564         } ODR1;\r
3565         char           wk4[50];\r
3566         union {\r
3567                 unsigned char BYTE;\r
3568                 struct {\r
3569                         unsigned char B7:1;\r
3570                         unsigned char B6:1;\r
3571                         unsigned char B5:1;\r
3572                         unsigned char B4:1;\r
3573                         unsigned char B3:1;\r
3574                         unsigned char B2:1;\r
3575                         unsigned char B1:1;\r
3576                         unsigned char B0:1;\r
3577                 } BIT;\r
3578         } PCR;\r
3579         char           wk5[31];\r
3580         union {\r
3581                 unsigned char BYTE;\r
3582                 struct {\r
3583                         unsigned char B7:1;\r
3584                         unsigned char B6:1;\r
3585                         unsigned char B5:1;\r
3586                         unsigned char B4:1;\r
3587                         unsigned char B3:1;\r
3588                         unsigned char B2:1;\r
3589                         unsigned char B1:1;\r
3590                         unsigned char B0:1;\r
3591                 } BIT;\r
3592         } DSCR;\r
3593 };\r
3594 \r
3595 struct st_portd {\r
3596         union {\r
3597                 unsigned char BYTE;\r
3598                 struct {\r
3599                         unsigned char B7:1;\r
3600                         unsigned char B6:1;\r
3601                         unsigned char B5:1;\r
3602                         unsigned char B4:1;\r
3603                         unsigned char B3:1;\r
3604                         unsigned char B2:1;\r
3605                         unsigned char B1:1;\r
3606                         unsigned char B0:1;\r
3607                 } BIT;\r
3608         } PDR;\r
3609         char           wk0[31];\r
3610         union {\r
3611                 unsigned char BYTE;\r
3612                 struct {\r
3613                         unsigned char B7:1;\r
3614                         unsigned char B6:1;\r
3615                         unsigned char B5:1;\r
3616                         unsigned char B4:1;\r
3617                         unsigned char B3:1;\r
3618                         unsigned char B2:1;\r
3619                         unsigned char B1:1;\r
3620                         unsigned char B0:1;\r
3621                 } BIT;\r
3622         } PODR;\r
3623         char           wk1[31];\r
3624         union {\r
3625                 unsigned char BYTE;\r
3626                 struct {\r
3627                         unsigned char B7:1;\r
3628                         unsigned char B6:1;\r
3629                         unsigned char B5:1;\r
3630                         unsigned char B4:1;\r
3631                         unsigned char B3:1;\r
3632                         unsigned char B2:1;\r
3633                         unsigned char B1:1;\r
3634                         unsigned char B0:1;\r
3635                 } BIT;\r
3636         } PIDR;\r
3637         char           wk2[31];\r
3638         union {\r
3639                 unsigned char BYTE;\r
3640                 struct {\r
3641                         unsigned char B7:1;\r
3642                         unsigned char B6:1;\r
3643                         unsigned char B5:1;\r
3644                         unsigned char B4:1;\r
3645                         unsigned char B3:1;\r
3646                         unsigned char B2:1;\r
3647                         unsigned char B1:1;\r
3648                         unsigned char B0:1;\r
3649                 } BIT;\r
3650         } PMR;\r
3651         char           wk3[95];\r
3652         union {\r
3653                 unsigned char BYTE;\r
3654                 struct {\r
3655                         unsigned char B7:1;\r
3656                         unsigned char B6:1;\r
3657                         unsigned char B5:1;\r
3658                         unsigned char B4:1;\r
3659                         unsigned char B3:1;\r
3660                         unsigned char B2:1;\r
3661                         unsigned char B1:1;\r
3662                         unsigned char B0:1;\r
3663                 } BIT;\r
3664         } PCR;\r
3665         char           wk4[31];\r
3666         union {\r
3667                 unsigned char BYTE;\r
3668                 struct {\r
3669                         unsigned char B7:1;\r
3670                         unsigned char B6:1;\r
3671                         unsigned char B5:1;\r
3672                         unsigned char B4:1;\r
3673                         unsigned char B3:1;\r
3674                         unsigned char B2:1;\r
3675                         unsigned char B1:1;\r
3676                         unsigned char B0:1;\r
3677                 } BIT;\r
3678         } DSCR;\r
3679 };\r
3680 \r
3681 struct st_porte {\r
3682         union {\r
3683                 unsigned char BYTE;\r
3684                 struct {\r
3685                         unsigned char B7:1;\r
3686                         unsigned char B6:1;\r
3687                         unsigned char B5:1;\r
3688                         unsigned char B4:1;\r
3689                         unsigned char B3:1;\r
3690                         unsigned char B2:1;\r
3691                         unsigned char B1:1;\r
3692                         unsigned char B0:1;\r
3693                 } BIT;\r
3694         } PDR;\r
3695         char           wk0[31];\r
3696         union {\r
3697                 unsigned char BYTE;\r
3698                 struct {\r
3699                         unsigned char B7:1;\r
3700                         unsigned char B6:1;\r
3701                         unsigned char B5:1;\r
3702                         unsigned char B4:1;\r
3703                         unsigned char B3:1;\r
3704                         unsigned char B2:1;\r
3705                         unsigned char B1:1;\r
3706                         unsigned char B0:1;\r
3707                 } BIT;\r
3708         } PODR;\r
3709         char           wk1[31];\r
3710         union {\r
3711                 unsigned char BYTE;\r
3712                 struct {\r
3713                         unsigned char B7:1;\r
3714                         unsigned char B6:1;\r
3715                         unsigned char B5:1;\r
3716                         unsigned char B4:1;\r
3717                         unsigned char B3:1;\r
3718                         unsigned char B2:1;\r
3719                         unsigned char B1:1;\r
3720                         unsigned char B0:1;\r
3721                 } BIT;\r
3722         } PIDR;\r
3723         char           wk2[31];\r
3724         union {\r
3725                 unsigned char BYTE;\r
3726                 struct {\r
3727                         unsigned char B7:1;\r
3728                         unsigned char B6:1;\r
3729                         unsigned char B5:1;\r
3730                         unsigned char B4:1;\r
3731                         unsigned char B3:1;\r
3732                         unsigned char B2:1;\r
3733                         unsigned char B1:1;\r
3734                         unsigned char B0:1;\r
3735                 } BIT;\r
3736         } PMR;\r
3737         char           wk3[45];\r
3738         union {\r
3739                 unsigned char BYTE;\r
3740                 struct {\r
3741                         unsigned char :1;\r
3742                         unsigned char B6:1;\r
3743                         unsigned char :1;\r
3744                         unsigned char B4:1;\r
3745                         unsigned char B3:1;\r
3746                         unsigned char B2:1;\r
3747                         unsigned char :1;\r
3748                         unsigned char B0:1;\r
3749                 } BIT;\r
3750         } ODR0;\r
3751         union {\r
3752                 unsigned char BYTE;\r
3753                 struct {\r
3754                         unsigned char :1;\r
3755                         unsigned char B6:1;\r
3756                         unsigned char :1;\r
3757                         unsigned char B4:1;\r
3758                         unsigned char :1;\r
3759                         unsigned char B2:1;\r
3760                         unsigned char B1:1;\r
3761                         unsigned char B0:1;\r
3762                 } BIT;\r
3763         } ODR1;\r
3764         char           wk4[48];\r
3765         union {\r
3766                 unsigned char BYTE;\r
3767                 struct {\r
3768                         unsigned char B7:1;\r
3769                         unsigned char B6:1;\r
3770                         unsigned char B5:1;\r
3771                         unsigned char B4:1;\r
3772                         unsigned char B3:1;\r
3773                         unsigned char B2:1;\r
3774                         unsigned char B1:1;\r
3775                         unsigned char B0:1;\r
3776                 } BIT;\r
3777         } PCR;\r
3778         char           wk5[31];\r
3779         union {\r
3780                 unsigned char BYTE;\r
3781                 struct {\r
3782                         unsigned char B7:1;\r
3783                         unsigned char B6:1;\r
3784                         unsigned char B5:1;\r
3785                         unsigned char B4:1;\r
3786                         unsigned char B3:1;\r
3787                         unsigned char B2:1;\r
3788                         unsigned char B1:1;\r
3789                         unsigned char B0:1;\r
3790                 } BIT;\r
3791         } DSCR;\r
3792 };\r
3793 \r
3794 struct st_porth {\r
3795         union {\r
3796                 unsigned char BYTE;\r
3797                 struct {\r
3798                         unsigned char :4;\r
3799                         unsigned char B3:1;\r
3800                         unsigned char B2:1;\r
3801                         unsigned char B1:1;\r
3802                         unsigned char B0:1;\r
3803                 } BIT;\r
3804         } PDR;\r
3805         char           wk0[31];\r
3806         union {\r
3807                 unsigned char BYTE;\r
3808                 struct {\r
3809                         unsigned char :4;\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         } PODR;\r
3816         char           wk1[31];\r
3817         union {\r
3818                 unsigned char BYTE;\r
3819                 struct {\r
3820                         unsigned char :4;\r
3821                         unsigned char B3:1;\r
3822                         unsigned char B2:1;\r
3823                         unsigned char B1:1;\r
3824                         unsigned char B0:1;\r
3825                 } BIT;\r
3826         } PIDR;\r
3827         char           wk2[31];\r
3828         union {\r
3829                 unsigned char BYTE;\r
3830                 struct {\r
3831                         unsigned char :4;\r
3832                         unsigned char B3:1;\r
3833                         unsigned char B2:1;\r
3834                         unsigned char B1:1;\r
3835                         unsigned char B0:1;\r
3836                 } BIT;\r
3837         } PMR;\r
3838         char           wk3[95];\r
3839         union {\r
3840                 unsigned char BYTE;\r
3841                 struct {\r
3842                         unsigned char :4;\r
3843                         unsigned char B3:1;\r
3844                         unsigned char B2:1;\r
3845                         unsigned char B1:1;\r
3846                         unsigned char B0:1;\r
3847                 } BIT;\r
3848         } PCR;\r
3849         char           wk4[31];\r
3850         union {\r
3851                 unsigned char BYTE;\r
3852                 struct {\r
3853                         unsigned char :4;\r
3854                         unsigned char B3:1;\r
3855                         unsigned char B2:1;\r
3856                         unsigned char B1:1;\r
3857                         unsigned char B0:1;\r
3858                 } BIT;\r
3859         } DSCR;\r
3860 };\r
3861 \r
3862 struct st_portj {\r
3863         union {\r
3864                 unsigned char BYTE;\r
3865                 struct {\r
3866                         unsigned char :4;\r
3867                         unsigned char B3:1;\r
3868                         unsigned char :1;\r
3869                         unsigned char B1:1;\r
3870                 } BIT;\r
3871         } PDR;\r
3872         char           wk0[31];\r
3873         union {\r
3874                 unsigned char BYTE;\r
3875                 struct {\r
3876                         unsigned char :4;\r
3877                         unsigned char B3:1;\r
3878                         unsigned char :1;\r
3879                         unsigned char B1:1;\r
3880                 } BIT;\r
3881         } PODR;\r
3882         char           wk1[31];\r
3883         union {\r
3884                 unsigned char BYTE;\r
3885                 struct {\r
3886                         unsigned char :4;\r
3887                         unsigned char B3:1;\r
3888                         unsigned char :1;\r
3889                         unsigned char B1:1;\r
3890                 } BIT;\r
3891         } PIDR;\r
3892         char           wk2[31];\r
3893         union {\r
3894                 unsigned char BYTE;\r
3895                 struct {\r
3896                         unsigned char :4;\r
3897                         unsigned char B3:1;\r
3898                         unsigned char :1;\r
3899                         unsigned char B1:1;\r
3900                 } BIT;\r
3901         } PMR;\r
3902         char           wk3[95];\r
3903         union {\r
3904                 unsigned char BYTE;\r
3905                 struct {\r
3906                         unsigned char :4;\r
3907                         unsigned char B3:1;\r
3908                         unsigned char :1;\r
3909                         unsigned char B1:1;\r
3910                 } BIT;\r
3911         } PCR;\r
3912         char           wk4[31];\r
3913         union {\r
3914                 unsigned char BYTE;\r
3915                 struct {\r
3916                         unsigned char :4;\r
3917                         unsigned char B3:1;\r
3918                         unsigned char :1;\r
3919                         unsigned char B1:1;\r
3920                 } BIT;\r
3921         } DSCR;\r
3922 };\r
3923 \r
3924 struct st_riic {\r
3925         union {\r
3926                 unsigned char BYTE;\r
3927                 struct {\r
3928                         unsigned char ICE:1;\r
3929                         unsigned char IICRST:1;\r
3930                         unsigned char CLO:1;\r
3931                         unsigned char SOWP:1;\r
3932                         unsigned char SCLO:1;\r
3933                         unsigned char SDAO:1;\r
3934                         unsigned char SCLI:1;\r
3935                         unsigned char SDAI:1;\r
3936                 } BIT;\r
3937         } ICCR1;\r
3938         union {\r
3939                 unsigned char BYTE;\r
3940                 struct {\r
3941                         unsigned char BBSY:1;\r
3942                         unsigned char MST:1;\r
3943                         unsigned char TRS:1;\r
3944                         unsigned char :1;\r
3945                         unsigned char SP:1;\r
3946                         unsigned char RS:1;\r
3947                         unsigned char ST:1;\r
3948                 } BIT;\r
3949         } ICCR2;\r
3950         union {\r
3951                 unsigned char BYTE;\r
3952                 struct {\r
3953                         unsigned char MTWP:1;\r
3954                         unsigned char CKS:3;\r
3955                         unsigned char BCWP:1;\r
3956                         unsigned char BC:3;\r
3957                 } BIT;\r
3958         } ICMR1;\r
3959         union {\r
3960                 unsigned char BYTE;\r
3961                 struct {\r
3962                         unsigned char DLCS:1;\r
3963                         unsigned char SDDL:3;\r
3964                         unsigned char :1;\r
3965                         unsigned char TMOH:1;\r
3966                         unsigned char TMOL:1;\r
3967                         unsigned char TMOS:1;\r
3968                 } BIT;\r
3969         } ICMR2;\r
3970         union {\r
3971                 unsigned char BYTE;\r
3972                 struct {\r
3973                         unsigned char SMBS:1;\r
3974                         unsigned char WAIT:1;\r
3975                         unsigned char RDRFS:1;\r
3976                         unsigned char ACKWP:1;\r
3977                         unsigned char ACKBT:1;\r
3978                         unsigned char ACKBR:1;\r
3979                         unsigned char NF:2;\r
3980                 } BIT;\r
3981         } ICMR3;\r
3982         union {\r
3983                 unsigned char BYTE;\r
3984                 struct {\r
3985                         unsigned char :1;\r
3986                         unsigned char SCLE:1;\r
3987                         unsigned char NFE:1;\r
3988                         unsigned char NACKE:1;\r
3989                         unsigned char SALE:1;\r
3990                         unsigned char NALE:1;\r
3991                         unsigned char MALE:1;\r
3992                         unsigned char TMOE:1;\r
3993                 } BIT;\r
3994         } ICFER;\r
3995         union {\r
3996                 unsigned char BYTE;\r
3997                 struct {\r
3998                         unsigned char HOAE:1;\r
3999                         unsigned char :1;\r
4000                         unsigned char DIDE:1;\r
4001                         unsigned char :1;\r
4002                         unsigned char GCAE:1;\r
4003                         unsigned char SAR2E:1;\r
4004                         unsigned char SAR1E:1;\r
4005                         unsigned char SAR0E:1;\r
4006                 } BIT;\r
4007         } ICSER;\r
4008         union {\r
4009                 unsigned char BYTE;\r
4010                 struct {\r
4011                         unsigned char TIE:1;\r
4012                         unsigned char TEIE:1;\r
4013                         unsigned char RIE:1;\r
4014                         unsigned char NAKIE:1;\r
4015                         unsigned char SPIE:1;\r
4016                         unsigned char STIE:1;\r
4017                         unsigned char ALIE:1;\r
4018                         unsigned char TMOIE:1;\r
4019                 } BIT;\r
4020         } ICIER;\r
4021         union {\r
4022                 unsigned char BYTE;\r
4023                 struct {\r
4024                         unsigned char HOA:1;\r
4025                         unsigned char :1;\r
4026                         unsigned char DID:1;\r
4027                         unsigned char :1;\r
4028                         unsigned char GCA:1;\r
4029                         unsigned char AAS2:1;\r
4030                         unsigned char AAS1:1;\r
4031                         unsigned char AAS0:1;\r
4032                 } BIT;\r
4033         } ICSR1;\r
4034         union {\r
4035                 unsigned char BYTE;\r
4036                 struct {\r
4037                         unsigned char TDRE:1;\r
4038                         unsigned char TEND:1;\r
4039                         unsigned char RDRF:1;\r
4040                         unsigned char NACKF:1;\r
4041                         unsigned char STOP:1;\r
4042                         unsigned char START:1;\r
4043                         unsigned char AL:1;\r
4044                         unsigned char TMOF:1;\r
4045                 } BIT;\r
4046         } ICSR2;\r
4047         union {\r
4048                 unsigned char BYTE;\r
4049                 struct {\r
4050                         unsigned char SVA:7;\r
4051                         unsigned char SVA0:1;\r
4052                 } BIT;\r
4053         } SARL0;\r
4054         union {\r
4055                 unsigned char BYTE;\r
4056                 struct {\r
4057                         unsigned char :5;\r
4058                         unsigned char SVA:2;\r
4059                         unsigned char FS:1;\r
4060                 } BIT;\r
4061         } SARU0;\r
4062         union {\r
4063                 unsigned char BYTE;\r
4064                 struct {\r
4065                         unsigned char SVA:7;\r
4066                         unsigned char SVA0:1;\r
4067                 } BIT;\r
4068         } SARL1;\r
4069         union {\r
4070                 unsigned char BYTE;\r
4071                 struct {\r
4072                         unsigned char :5;\r
4073                         unsigned char SVA:2;\r
4074                         unsigned char FS:1;\r
4075                 } BIT;\r
4076         } SARU1;\r
4077         union {\r
4078                 unsigned char BYTE;\r
4079                 struct {\r
4080                         unsigned char SVA:7;\r
4081                         unsigned char SVA0:1;\r
4082                 } BIT;\r
4083         } SARL2;\r
4084         union {\r
4085                 unsigned char BYTE;\r
4086                 struct {\r
4087                         unsigned char :5;\r
4088                         unsigned char SVA:2;\r
4089                         unsigned char FS:1;\r
4090                 } BIT;\r
4091         } SARU2;\r
4092         union {\r
4093                 unsigned char BYTE;\r
4094                 struct {\r
4095                         unsigned char :3;\r
4096                         unsigned char BRL:5;\r
4097                 } BIT;\r
4098         } ICBRL;\r
4099         union {\r
4100                 unsigned char BYTE;\r
4101                 struct {\r
4102                         unsigned char :3;\r
4103                         unsigned char BRH:5;\r
4104                 } BIT;\r
4105         } ICBRH;\r
4106         unsigned char  ICDRT;\r
4107         unsigned char  ICDRR;\r
4108 };\r
4109 \r
4110 struct st_rspi {\r
4111         union {\r
4112                 unsigned char BYTE;\r
4113                 struct {\r
4114                         unsigned char SPRIE:1;\r
4115                         unsigned char SPE:1;\r
4116                         unsigned char SPTIE:1;\r
4117                         unsigned char SPEIE:1;\r
4118                         unsigned char MSTR:1;\r
4119                         unsigned char MODFEN:1;\r
4120                         unsigned char TXMD:1;\r
4121                         unsigned char SPMS:1;\r
4122                 } BIT;\r
4123         } SPCR;\r
4124         union {\r
4125                 unsigned char BYTE;\r
4126                 struct {\r
4127                         unsigned char :4;\r
4128                         unsigned char SSL3P:1;\r
4129                         unsigned char SSL2P:1;\r
4130                         unsigned char SSL1P:1;\r
4131                         unsigned char SSL0P:1;\r
4132                 } BIT;\r
4133         } SSLP;\r
4134         union {\r
4135                 unsigned char BYTE;\r
4136                 struct {\r
4137                         unsigned char :2;\r
4138                         unsigned char MOIFE:1;\r
4139                         unsigned char MOIFV:1;\r
4140                         unsigned char :1;\r
4141                         unsigned char SPOM:1;\r
4142                         unsigned char SPLP2:1;\r
4143                         unsigned char SPLP:1;\r
4144                 } BIT;\r
4145         } SPPCR;\r
4146         union {\r
4147                 unsigned char BYTE;\r
4148                 struct {\r
4149                         unsigned char :4;\r
4150                         unsigned char PERF:1;\r
4151                         unsigned char MODF:1;\r
4152                         unsigned char IDLNF:1;\r
4153                         unsigned char OVRF:1;\r
4154                 } BIT;\r
4155         } SPSR;\r
4156         union {\r
4157                 unsigned long LONG;\r
4158                 struct {\r
4159                         unsigned short H;\r
4160                         unsigned short L;\r
4161                 } WORD;\r
4162         } SPDR;\r
4163         union {\r
4164                 unsigned char BYTE;\r
4165                 struct {\r
4166                         unsigned char :5;\r
4167                         unsigned char SPSLN:3;\r
4168                 } BIT;\r
4169         } SPSCR;\r
4170         union {\r
4171                 unsigned char BYTE;\r
4172                 struct {\r
4173                         unsigned char :1;\r
4174                         unsigned char SPECM:3;\r
4175                         unsigned char :1;\r
4176                         unsigned char SPCP:3;\r
4177                 } BIT;\r
4178         } SPSSR;\r
4179         union {\r
4180                 unsigned char BYTE;\r
4181                 struct {\r
4182                         unsigned char SPR7:1;\r
4183                         unsigned char SPR6:1;\r
4184                         unsigned char SPR5:1;\r
4185                         unsigned char SPR4:1;\r
4186                         unsigned char SPR3:1;\r
4187                         unsigned char SPR2:1;\r
4188                         unsigned char SPR1:1;\r
4189                         unsigned char SPR0:1;\r
4190                 } BIT;\r
4191         } SPBR;\r
4192         union {\r
4193                 unsigned char BYTE;\r
4194                 struct {\r
4195                         unsigned char :2;\r
4196                         unsigned char SPLW:1;\r
4197                         unsigned char SPRDTD:1;\r
4198                         unsigned char SLSEL:2;\r
4199                         unsigned char SPFC:2;\r
4200                 } BIT;\r
4201         } SPDCR;\r
4202         union {\r
4203                 unsigned char BYTE;\r
4204                 struct {\r
4205                         unsigned char :5;\r
4206                         unsigned char SCKDL:3;\r
4207                 } BIT;\r
4208         } SPCKD;\r
4209         union {\r
4210                 unsigned char BYTE;\r
4211                 struct {\r
4212                         unsigned char :5;\r
4213                         unsigned char SLNDL:3;\r
4214                 } BIT;\r
4215         } SSLND;\r
4216         union {\r
4217                 unsigned char BYTE;\r
4218                 struct {\r
4219                         unsigned char :5;\r
4220                         unsigned char SPNDL:3;\r
4221                 } BIT;\r
4222         } SPND;\r
4223         union {\r
4224                 unsigned char BYTE;\r
4225                 struct {\r
4226                         unsigned char :4;\r
4227                         unsigned char PTE:1;\r
4228                         unsigned char SPIIE:1;\r
4229                         unsigned char SPOE:1;\r
4230                         unsigned char SPPE:1;\r
4231                 } BIT;\r
4232         } SPCR2;\r
4233         union {\r
4234                 unsigned short WORD;\r
4235                 struct {\r
4236                         unsigned short SCKDEN:1;\r
4237                         unsigned short SLNDEN:1;\r
4238                         unsigned short SPNDEN:1;\r
4239                         unsigned short LSBF:1;\r
4240                         unsigned short SPB:4;\r
4241                         unsigned short SSLKP:1;\r
4242                         unsigned short SSLA:3;\r
4243                         unsigned short BRDV:2;\r
4244                         unsigned short CPOL:1;\r
4245                         unsigned short CPHA:1;\r
4246                 } BIT;\r
4247         } SPCMD0;\r
4248         union {\r
4249                 unsigned short WORD;\r
4250                 struct {\r
4251                         unsigned short SCKDEN:1;\r
4252                         unsigned short SLNDEN:1;\r
4253                         unsigned short SPNDEN:1;\r
4254                         unsigned short LSBF:1;\r
4255                         unsigned short SPB:4;\r
4256                         unsigned short SSLKP:1;\r
4257                         unsigned short SSLA:3;\r
4258                         unsigned short BRDV:2;\r
4259                         unsigned short CPOL:1;\r
4260                         unsigned short CPHA:1;\r
4261                 } BIT;\r
4262         } SPCMD1;\r
4263         union {\r
4264                 unsigned short WORD;\r
4265                 struct {\r
4266                         unsigned short SCKDEN:1;\r
4267                         unsigned short SLNDEN:1;\r
4268                         unsigned short SPNDEN:1;\r
4269                         unsigned short LSBF:1;\r
4270                         unsigned short SPB:4;\r
4271                         unsigned short SSLKP:1;\r
4272                         unsigned short SSLA:3;\r
4273                         unsigned short BRDV:2;\r
4274                         unsigned short CPOL:1;\r
4275                         unsigned short CPHA:1;\r
4276                 } BIT;\r
4277         } SPCMD2;\r
4278         union {\r
4279                 unsigned short WORD;\r
4280                 struct {\r
4281                         unsigned short SCKDEN:1;\r
4282                         unsigned short SLNDEN:1;\r
4283                         unsigned short SPNDEN:1;\r
4284                         unsigned short LSBF:1;\r
4285                         unsigned short SPB:4;\r
4286                         unsigned short SSLKP:1;\r
4287                         unsigned short SSLA:3;\r
4288                         unsigned short BRDV:2;\r
4289                         unsigned short CPOL:1;\r
4290                         unsigned short CPHA:1;\r
4291                 } BIT;\r
4292         } SPCMD3;\r
4293         union {\r
4294                 unsigned short WORD;\r
4295                 struct {\r
4296                         unsigned short SCKDEN:1;\r
4297                         unsigned short SLNDEN:1;\r
4298                         unsigned short SPNDEN:1;\r
4299                         unsigned short LSBF:1;\r
4300                         unsigned short SPB:4;\r
4301                         unsigned short SSLKP:1;\r
4302                         unsigned short SSLA:3;\r
4303                         unsigned short BRDV:2;\r
4304                         unsigned short CPOL:1;\r
4305                         unsigned short CPHA:1;\r
4306                 } BIT;\r
4307         } SPCMD4;\r
4308         union {\r
4309                 unsigned short WORD;\r
4310                 struct {\r
4311                         unsigned short SCKDEN:1;\r
4312                         unsigned short SLNDEN:1;\r
4313                         unsigned short SPNDEN:1;\r
4314                         unsigned short LSBF:1;\r
4315                         unsigned short SPB:4;\r
4316                         unsigned short SSLKP:1;\r
4317                         unsigned short SSLA:3;\r
4318                         unsigned short BRDV:2;\r
4319                         unsigned short CPOL:1;\r
4320                         unsigned short CPHA:1;\r
4321                 } BIT;\r
4322         } SPCMD5;\r
4323         union {\r
4324                 unsigned short WORD;\r
4325                 struct {\r
4326                         unsigned short SCKDEN:1;\r
4327                         unsigned short SLNDEN:1;\r
4328                         unsigned short SPNDEN:1;\r
4329                         unsigned short LSBF:1;\r
4330                         unsigned short SPB:4;\r
4331                         unsigned short SSLKP:1;\r
4332                         unsigned short SSLA:3;\r
4333                         unsigned short BRDV:2;\r
4334                         unsigned short CPOL:1;\r
4335                         unsigned short CPHA:1;\r
4336                 } BIT;\r
4337         } SPCMD6;\r
4338         union {\r
4339                 unsigned short WORD;\r
4340                 struct {\r
4341                         unsigned short SCKDEN:1;\r
4342                         unsigned short SLNDEN:1;\r
4343                         unsigned short SPNDEN:1;\r
4344                         unsigned short LSBF:1;\r
4345                         unsigned short SPB:4;\r
4346                         unsigned short SSLKP:1;\r
4347                         unsigned short SSLA:3;\r
4348                         unsigned short BRDV:2;\r
4349                         unsigned short CPOL:1;\r
4350                         unsigned short CPHA:1;\r
4351                 } BIT;\r
4352         } SPCMD7;\r
4353 };\r
4354 \r
4355 struct st_rtc {\r
4356         union {\r
4357                 unsigned char BYTE;\r
4358                 struct {\r
4359                         unsigned char :1;\r
4360                         unsigned char F1HZ:1;\r
4361                         unsigned char F2HZ:1;\r
4362                         unsigned char F4HZ:1;\r
4363                         unsigned char F8HZ:1;\r
4364                         unsigned char F16HZ:1;\r
4365                         unsigned char F32HZ:1;\r
4366                         unsigned char F64HZ:1;\r
4367                 } BIT;\r
4368         } R64CNT;\r
4369         char           wk0[1];\r
4370         union {\r
4371                 unsigned char BYTE;\r
4372                 struct {\r
4373                         unsigned char :1;\r
4374                         unsigned char SEC10:3;\r
4375                         unsigned char SEC1:4;\r
4376                 } BIT;\r
4377         } RSECCNT;\r
4378         char           wk1[1];\r
4379         union {\r
4380                 unsigned char BYTE;\r
4381                 struct {\r
4382                         unsigned char :1;\r
4383                         unsigned char MIN10:3;\r
4384                         unsigned char MIN1:4;\r
4385                 } BIT;\r
4386         } RMINCNT;\r
4387         char           wk2[1];\r
4388         union {\r
4389                 unsigned char BYTE;\r
4390                 struct {\r
4391                         unsigned char :1;\r
4392                         unsigned char PM:1;\r
4393                         unsigned char HR10:2;\r
4394                         unsigned char HR1:4;\r
4395                 } BIT;\r
4396         } RHRCNT;\r
4397         char           wk3[1];\r
4398         union {\r
4399                 unsigned char BYTE;\r
4400                 struct {\r
4401                         unsigned char :5;\r
4402                         unsigned char DAYW:3;\r
4403                 } BIT;\r
4404         } RWKCNT;\r
4405         char           wk4[1];\r
4406         union {\r
4407                 unsigned char BYTE;\r
4408                 struct {\r
4409                         unsigned char :2;\r
4410                         unsigned char DATE10:2;\r
4411                         unsigned char DATE1:4;\r
4412                 } BIT;\r
4413         } RDAYCNT;\r
4414         char           wk5[1];\r
4415         union {\r
4416                 unsigned char BYTE;\r
4417                 struct {\r
4418                         unsigned char :3;\r
4419                         unsigned char MON10:1;\r
4420                         unsigned char MON1:4;\r
4421                 } BIT;\r
4422         } RMONCNT;\r
4423         char           wk6[1];\r
4424         union {\r
4425                 unsigned short WORD;\r
4426                 struct {\r
4427                         unsigned short :8;\r
4428                         unsigned short YR10:4;\r
4429                         unsigned short YR1:4;\r
4430                 } BIT;\r
4431         } RYRCNT;\r
4432         union {\r
4433                 unsigned char BYTE;\r
4434                 struct {\r
4435                         unsigned char ENB:1;\r
4436                         unsigned char SEC10:3;\r
4437                         unsigned char SEC1:4;\r
4438                 } BIT;\r
4439         } RSECAR;\r
4440         char           wk7[1];\r
4441         union {\r
4442                 unsigned char BYTE;\r
4443                 struct {\r
4444                         unsigned char ENB:1;\r
4445                         unsigned char MIN10:3;\r
4446                         unsigned char MIN1:4;\r
4447                 } BIT;\r
4448         } RMINAR;\r
4449         char           wk8[1];\r
4450         union {\r
4451                 unsigned char BYTE;\r
4452                 struct {\r
4453                         unsigned char ENB:1;\r
4454                         unsigned char PM:1;\r
4455                         unsigned char HR10:2;\r
4456                         unsigned char HR1:4;\r
4457                 } BIT;\r
4458         } RHRAR;\r
4459         char           wk9[1];\r
4460         union {\r
4461                 unsigned char BYTE;\r
4462                 struct {\r
4463                         unsigned char ENB:1;\r
4464                         unsigned char :4;\r
4465                         unsigned char DAYW:3;\r
4466                 } BIT;\r
4467         } RWKAR;\r
4468         char           wk10[1];\r
4469         union {\r
4470                 unsigned char BYTE;\r
4471                 struct {\r
4472                         unsigned char ENB:1;\r
4473                         unsigned char :1;\r
4474                         unsigned char DATE10:2;\r
4475                         unsigned char DATE1:4;\r
4476                 } BIT;\r
4477         } RDAYAR;\r
4478         char           wk11[1];\r
4479         union {\r
4480                 unsigned char BYTE;\r
4481                 struct {\r
4482                         unsigned char ENB:1;\r
4483                         unsigned char :2;\r
4484                         unsigned char MON10:1;\r
4485                         unsigned char MON1:4;\r
4486                 } BIT;\r
4487         } RMONAR;\r
4488         char           wk12[1];\r
4489         union {\r
4490                 unsigned short WORD;\r
4491                 struct {\r
4492                         unsigned short :8;\r
4493                         unsigned short YR10:4;\r
4494                         unsigned short YR1:4;\r
4495                 } BIT;\r
4496         } RYRAR;\r
4497         union {\r
4498                 unsigned char BYTE;\r
4499                 struct {\r
4500                         unsigned char ENB:1;\r
4501                 } BIT;\r
4502         } RYRAREN;\r
4503         char           wk13[3];\r
4504         union {\r
4505                 unsigned char BYTE;\r
4506                 struct {\r
4507                         unsigned char PES:4;\r
4508                         unsigned char :1;\r
4509                         unsigned char PIE:1;\r
4510                         unsigned char CIE:1;\r
4511                         unsigned char AIE:1;\r
4512                 } BIT;\r
4513         } RCR1;\r
4514         char           wk14[1];\r
4515         union {\r
4516                 unsigned char BYTE;\r
4517                 struct {\r
4518                         unsigned char :1;\r
4519                         unsigned char HR24:1;\r
4520                         unsigned char AADJP:1;\r
4521                         unsigned char AADJE:1;\r
4522                         unsigned char RTCOE:1;\r
4523                         unsigned char ADJ30:1;\r
4524                         unsigned char RESET:1;\r
4525                         unsigned char START:1;\r
4526                 } BIT;\r
4527         } RCR2;\r
4528         char           wk15[9];\r
4529         union {\r
4530                 unsigned char BYTE;\r
4531                 struct {\r
4532                         unsigned char PMADJ:2;\r
4533                         unsigned char ADJ:6;\r
4534                 } BIT;\r
4535         } RADJ;\r
4536         char           wk16[17];\r
4537         union {\r
4538                 unsigned char BYTE;\r
4539                 struct {\r
4540                         unsigned char TCEN:1;\r
4541                         unsigned char :1;\r
4542                         unsigned char TCNF:2;\r
4543                         unsigned char :1;\r
4544                         unsigned char TCST:1;\r
4545                         unsigned char TCCT:2;\r
4546                 } BIT;\r
4547         } RTCCR0;\r
4548         char           wk17[1];\r
4549         union {\r
4550                 unsigned char BYTE;\r
4551                 struct {\r
4552                         unsigned char TCEN:1;\r
4553                         unsigned char :1;\r
4554                         unsigned char TCNF:2;\r
4555                         unsigned char :1;\r
4556                         unsigned char TCST:1;\r
4557                         unsigned char TCCT:2;\r
4558                 } BIT;\r
4559         } RTCCR1;\r
4560         char           wk18[1];\r
4561         union {\r
4562                 unsigned char BYTE;\r
4563                 struct {\r
4564                         unsigned char TCEN:1;\r
4565                         unsigned char :1;\r
4566                         unsigned char TCNF:2;\r
4567                         unsigned char :1;\r
4568                         unsigned char TCST:1;\r
4569                         unsigned char TCCT:2;\r
4570                 } BIT;\r
4571         } RTCCR2;\r
4572         char           wk19[13];\r
4573         union {\r
4574                 unsigned char BYTE;\r
4575                 struct {\r
4576                         unsigned char :1;\r
4577                         unsigned char SEC10:3;\r
4578                         unsigned char SEC1:4;\r
4579                 } BIT;\r
4580         } RSECCP0;\r
4581         char           wk20[1];\r
4582         union {\r
4583                 unsigned char BYTE;\r
4584                 struct {\r
4585                         unsigned char :1;\r
4586                         unsigned char MIN10:3;\r
4587                         unsigned char MIN1:4;\r
4588                 } BIT;\r
4589         } RMINCP0;\r
4590         char           wk21[1];\r
4591         union {\r
4592                 unsigned char BYTE;\r
4593                 struct {\r
4594                         unsigned char :1;\r
4595                         unsigned char PM:1;\r
4596                         unsigned char HR10:2;\r
4597                         unsigned char HR1:4;\r
4598                 } BIT;\r
4599         } RHRCP0;\r
4600         char           wk22[3];\r
4601         union {\r
4602                 unsigned char BYTE;\r
4603                 struct {\r
4604                         unsigned char :1;\r
4605                         unsigned char DATE10:3;\r
4606                         unsigned char DATE1:4;\r
4607                 } BIT;\r
4608         } RDAYCP0;\r
4609         char           wk23[1];\r
4610         union {\r
4611                 unsigned char BYTE;\r
4612                 struct {\r
4613                         unsigned char :3;\r
4614                         unsigned char MON10:1;\r
4615                         unsigned char MON1:4;\r
4616                 } BIT;\r
4617         } RMONCP0;\r
4618         char           wk24[5];\r
4619         union {\r
4620                 unsigned char BYTE;\r
4621                 struct {\r
4622                         unsigned char :1;\r
4623                         unsigned char SEC10:3;\r
4624                         unsigned char SEC1:4;\r
4625                 } BIT;\r
4626         } RSECCP1;\r
4627         char           wk25[1];\r
4628         union {\r
4629                 unsigned char BYTE;\r
4630                 struct {\r
4631                         unsigned char :1;\r
4632                         unsigned char MIN10:3;\r
4633                         unsigned char MIN1:4;\r
4634                 } BIT;\r
4635         } RMINCP1;\r
4636         char           wk26[1];\r
4637         union {\r
4638                 unsigned char BYTE;\r
4639                 struct {\r
4640                         unsigned char :1;\r
4641                         unsigned char PM:1;\r
4642                         unsigned char HR10:2;\r
4643                         unsigned char HR1:4;\r
4644                 } BIT;\r
4645         } RHRCP1;\r
4646         char           wk27[3];\r
4647         union {\r
4648                 unsigned char BYTE;\r
4649                 struct {\r
4650                         unsigned char :1;\r
4651                         unsigned char DATE10:3;\r
4652                         unsigned char DATE1:4;\r
4653                 } BIT;\r
4654         } RDAYCP1;\r
4655         char           wk28[1];\r
4656         union {\r
4657                 unsigned char BYTE;\r
4658                 struct {\r
4659                         unsigned char :3;\r
4660                         unsigned char MON10:1;\r
4661                         unsigned char MON1:4;\r
4662                 } BIT;\r
4663         } RMONCP1;\r
4664         char           wk29[5];\r
4665         union {\r
4666                 unsigned char BYTE;\r
4667                 struct {\r
4668                         unsigned char :1;\r
4669                         unsigned char SEC10:3;\r
4670                         unsigned char SEC1:4;\r
4671                 } BIT;\r
4672         } RSECCP2;\r
4673         char           wk30[1];\r
4674         union {\r
4675                 unsigned char BYTE;\r
4676                 struct {\r
4677                         unsigned char :1;\r
4678                         unsigned char MIN10:3;\r
4679                         unsigned char MIN1:4;\r
4680                 } BIT;\r
4681         } RMINCP2;\r
4682         char           wk31[1];\r
4683         union {\r
4684                 unsigned char BYTE;\r
4685                 struct {\r
4686                         unsigned char :1;\r
4687                         unsigned char PM:1;\r
4688                         unsigned char HR10:2;\r
4689                         unsigned char HR1:4;\r
4690                 } BIT;\r
4691         } RHRCP2;\r
4692         char           wk32[3];\r
4693         union {\r
4694                 unsigned char BYTE;\r
4695                 struct {\r
4696                         unsigned char :1;\r
4697                         unsigned char DATE10:3;\r
4698                         unsigned char DATE1:4;\r
4699                 } BIT;\r
4700         } RDAYCP2;\r
4701         char           wk33[1];\r
4702         union {\r
4703                 unsigned char BYTE;\r
4704                 struct {\r
4705                         unsigned char :3;\r
4706                         unsigned char MON10:1;\r
4707                         unsigned char MON1:4;\r
4708                 } BIT;\r
4709         } RMONCP2;\r
4710 };\r
4711 \r
4712 struct st_s12ad {\r
4713         union {\r
4714                 unsigned short WORD;\r
4715                 struct {\r
4716                         unsigned short ADST:1;\r
4717                         unsigned short ADCS:2;\r
4718                         unsigned short ADIE:1;\r
4719                         unsigned short :2;\r
4720                         unsigned short TRGE:1;\r
4721                         unsigned short EXTRG:1;\r
4722                         unsigned short DBLE:1;\r
4723                         unsigned short GBADIE:1;\r
4724                         unsigned short :1;\r
4725                         unsigned short DBLANS:5;\r
4726                 } BIT;\r
4727         } ADCSR;\r
4728         char           wk0[2];\r
4729         union {\r
4730                 unsigned short WORD;\r
4731                 struct {\r
4732                         unsigned short ANSA15:1;\r
4733                         unsigned short ANSA14:1;\r
4734                         unsigned short ANSA13:1;\r
4735                         unsigned short ANSA12:1;\r
4736                         unsigned short ANSA11:1;\r
4737                         unsigned short ANSA10:1;\r
4738                         unsigned short ANSA9:1;\r
4739                         unsigned short ANSA8:1;\r
4740                         unsigned short ANSA7:1;\r
4741                         unsigned short ANSA6:1;\r
4742                         unsigned short ANSA5:1;\r
4743                         unsigned short ANSA4:1;\r
4744                         unsigned short ANSA3:1;\r
4745                         unsigned short ANSA2:1;\r
4746                         unsigned short ANSA1:1;\r
4747                         unsigned short ANSA0:1;\r
4748                 } BIT;\r
4749         } ADANSA;\r
4750         char           wk1[2];\r
4751         union {\r
4752                 unsigned short WORD;\r
4753                 struct {\r
4754                         unsigned short ADS15:1;\r
4755                         unsigned short ADS14:1;\r
4756                         unsigned short ADS13:1;\r
4757                         unsigned short ADS12:1;\r
4758                         unsigned short ADS11:1;\r
4759                         unsigned short ADS10:1;\r
4760                         unsigned short ADS9:1;\r
4761                         unsigned short ADS8:1;\r
4762                         unsigned short ADS7:1;\r
4763                         unsigned short ADS6:1;\r
4764                         unsigned short ADS5:1;\r
4765                         unsigned short ADS4:1;\r
4766                         unsigned short ADS3:1;\r
4767                         unsigned short ADS2:1;\r
4768                         unsigned short ADS1:1;\r
4769                         unsigned short ADS0:1;\r
4770                 } BIT;\r
4771         } ADADS;\r
4772         char           wk2[2];\r
4773         union {\r
4774                 unsigned char BYTE;\r
4775                 struct {\r
4776                         unsigned char :6;\r
4777                         unsigned char ADC:2;\r
4778                 } BIT;\r
4779         } ADADC;\r
4780         char           wk3[1];\r
4781         union {\r
4782                 unsigned short WORD;\r
4783                 struct {\r
4784                         unsigned short ADRFMT:1;\r
4785                         unsigned short :3;\r
4786                         unsigned short DIAGM:1;\r
4787                         unsigned short DIAGLD:1;\r
4788                         unsigned short DIAGVAL:2;\r
4789                         unsigned short :2;\r
4790                         unsigned short ACE:1;\r
4791                 } BIT;\r
4792         } ADCER;\r
4793         union {\r
4794                 unsigned short WORD;\r
4795                 struct {\r
4796                         unsigned short :4;\r
4797                         unsigned short TRSA:4;\r
4798                         unsigned short :4;\r
4799                         unsigned short TRSB:4;\r
4800                 } BIT;\r
4801         } ADSTRGR;\r
4802         union {\r
4803                 unsigned short WORD;\r
4804                 struct {\r
4805                         unsigned short :6;\r
4806                         unsigned short OCS:1;\r
4807                         unsigned short TSS:1;\r
4808                         unsigned short :6;\r
4809                         unsigned short OCSAD:1;\r
4810                 } BIT;\r
4811         } ADEXICR;\r
4812         union {\r
4813                 unsigned short WORD;\r
4814                 struct {\r
4815                         unsigned short ANSB15:1;\r
4816                         unsigned short ANSB14:1;\r
4817                         unsigned short ANSB13:1;\r
4818                         unsigned short ANSB12:1;\r
4819                         unsigned short ANSB11:1;\r
4820                         unsigned short ANSB10:1;\r
4821                         unsigned short ANSB9:1;\r
4822                         unsigned short ANSB8:1;\r
4823                         unsigned short ANSB7:1;\r
4824                         unsigned short ANSB6:1;\r
4825                         unsigned short ANSB5:1;\r
4826                         unsigned short ANSB4:1;\r
4827                         unsigned short ANSB3:1;\r
4828                         unsigned short ANSB2:1;\r
4829                         unsigned short ANSB1:1;\r
4830                         unsigned short ANSB0:1;\r
4831                 } BIT;\r
4832         } ADANSB;\r
4833         char           wk4[2];\r
4834         unsigned short ADDBLDR;\r
4835         unsigned short ADTSDR;\r
4836         unsigned short ADOCDR;\r
4837         union {\r
4838                 unsigned short WORD;\r
4839                 union {\r
4840                         struct {\r
4841                                 unsigned short DIAGST:2;\r
4842                                 unsigned short :2;\r
4843                                 unsigned short DATA:10;\r
4844                         } LEFT;\r
4845                         struct {\r
4846                                 unsigned short DATA:10;\r
4847                                 unsigned short :4;\r
4848                                 unsigned short DIAGST:2;\r
4849                         } RIGHT;\r
4850                 } BIT;\r
4851         } ADRD;\r
4852         unsigned short ADDR0;\r
4853         unsigned short ADDR1;\r
4854         unsigned short ADDR2;\r
4855         unsigned short ADDR3;\r
4856         unsigned short ADDR4;\r
4857         unsigned short ADDR5;\r
4858         unsigned short ADDR6;\r
4859         unsigned short ADDR7;\r
4860         unsigned short ADDR8;\r
4861         unsigned short ADDR9;\r
4862         unsigned short ADDR10;\r
4863         unsigned short ADDR11;\r
4864         unsigned short ADDR12;\r
4865         unsigned short ADDR13;\r
4866         unsigned short ADDR14;\r
4867         unsigned short ADDR15;\r
4868         char           wk5[32];\r
4869         unsigned char  ADSSTR0;\r
4870         unsigned char  ADSSTRL;\r
4871         char           wk6[4];\r
4872         union {\r
4873                 unsigned short WORD;\r
4874                 struct {\r
4875                         unsigned short :5;\r
4876                         unsigned short SHANS:3;\r
4877                         unsigned short SSTSH:8;\r
4878                 } BIT;\r
4879         } ADSHCR;\r
4880         char           wk7[8];\r
4881         unsigned char  ADSSTRT;\r
4882         unsigned char  ADSSTRO;\r
4883         char           wk8[1];\r
4884         unsigned char  ADSSTR1;\r
4885         unsigned char  ADSSTR2;\r
4886         unsigned char  ADSSTR3;\r
4887         unsigned char  ADSSTR4;\r
4888         unsigned char  ADSSTR5;\r
4889         unsigned char  ADSSTR6;\r
4890         unsigned char  ADSSTR7;\r
4891         union {\r
4892                 unsigned char BYTE;\r
4893                 struct {\r
4894                         unsigned char :3;\r
4895                         unsigned char ADNDIS:5;\r
4896                 } BIT;\r
4897         } ADDISCR;\r
4898 };\r
4899 \r
4900 struct st_sci0 {\r
4901         union {\r
4902                 unsigned char BYTE;\r
4903                 struct {\r
4904                         unsigned char CM:1;\r
4905                         unsigned char CHR:1;\r
4906                         unsigned char PE:1;\r
4907                         unsigned char PM:1;\r
4908                         unsigned char STOP:1;\r
4909                         unsigned char MP:1;\r
4910                         unsigned char CKS:2;\r
4911                 } BIT;\r
4912         } SMR;\r
4913         unsigned char  BRR;\r
4914         union {\r
4915                 unsigned char BYTE;\r
4916                 struct {\r
4917                         unsigned char TIE:1;\r
4918                         unsigned char RIE:1;\r
4919                         unsigned char TE:1;\r
4920                         unsigned char RE:1;\r
4921                         unsigned char MPIE:1;\r
4922                         unsigned char TEIE:1;\r
4923                         unsigned char CKE:2;\r
4924                 } BIT;\r
4925         } SCR;\r
4926         unsigned char  TDR;\r
4927         union {\r
4928                 unsigned char BYTE;\r
4929                 struct {\r
4930                         unsigned char :2;\r
4931                         unsigned char ORER:1;\r
4932                         unsigned char FER:1;\r
4933                         unsigned char PER:1;\r
4934                         unsigned char TEND:1;\r
4935                         unsigned char MPB:1;\r
4936                         unsigned char MPBT:1;\r
4937                 } BIT;\r
4938         } SSR;\r
4939         unsigned char  RDR;\r
4940         union {\r
4941                 unsigned char BYTE;\r
4942                 struct {\r
4943                         unsigned char :4;\r
4944                         unsigned char SDIR:1;\r
4945                         unsigned char SINV:1;\r
4946                         unsigned char :1;\r
4947                         unsigned char SMIF:1;\r
4948                 } BIT;\r
4949         } SCMR;\r
4950         union {\r
4951                 unsigned char BYTE;\r
4952                 struct {\r
4953                         unsigned char :2;\r
4954                         unsigned char NFEN:1;\r
4955                         unsigned char ABCS:1;\r
4956                         unsigned char :3;\r
4957                         unsigned char ACS0:1;\r
4958                 } BIT;\r
4959         } SEMR;\r
4960         union {\r
4961                 unsigned char BYTE;\r
4962                 struct {\r
4963                         unsigned char :5;\r
4964                         unsigned char NFCS:3;\r
4965                 } BIT;\r
4966         } SNFR;\r
4967         union {\r
4968                 unsigned char BYTE;\r
4969                 struct {\r
4970                         unsigned char IICDL:5;\r
4971                         unsigned char :2;\r
4972                         unsigned char IICM:1;\r
4973                 } BIT;\r
4974         } SIMR1;\r
4975         union {\r
4976                 unsigned char BYTE;\r
4977                 struct {\r
4978                         unsigned char :2;\r
4979                         unsigned char IICACKT:1;\r
4980                         unsigned char :3;\r
4981                         unsigned char IICCSC:1;\r
4982                         unsigned char IICINTM:1;\r
4983                 } BIT;\r
4984         } SIMR2;\r
4985         union {\r
4986                 unsigned char BYTE;\r
4987                 struct {\r
4988                         unsigned char IICSCLS:2;\r
4989                         unsigned char IICSDAS:2;\r
4990                         unsigned char :1;\r
4991                         unsigned char IICSTPREQ:1;\r
4992                         unsigned char IICRSTAREQ:1;\r
4993                         unsigned char IICSTAREQ:1;\r
4994                 } BIT;\r
4995         } SIMR3;\r
4996         union {\r
4997                 unsigned char BYTE;\r
4998                 struct {\r
4999                         unsigned char :5;\r
5000                         unsigned char IICBBS:1;\r
5001                         unsigned char :1;\r
5002                         unsigned char IICACKR:1;\r
5003                 } BIT;\r
5004         } SISR;\r
5005         union {\r
5006                 unsigned char BYTE;\r
5007                 struct {\r
5008                         unsigned char CKPH:1;\r
5009                         unsigned char CKPOL:1;\r
5010                         unsigned char :1;\r
5011                         unsigned char MFF:1;\r
5012                         unsigned char :1;\r
5013                         unsigned char MSS:1;\r
5014                         unsigned char CTSE:1;\r
5015                         unsigned char SSE:1;\r
5016                 } BIT;\r
5017         } SECR;\r
5018 };\r
5019 \r
5020 struct st_sci1 {\r
5021         union {\r
5022                 unsigned char BYTE;\r
5023                 struct {\r
5024                         unsigned char CM:1;\r
5025                         unsigned char CHR:1;\r
5026                         unsigned char PE:1;\r
5027                         unsigned char PM:1;\r
5028                         unsigned char STOP:1;\r
5029                         unsigned char MP:1;\r
5030                         unsigned char CKS:2;\r
5031                 } BIT;\r
5032         } SMR;\r
5033         unsigned char  BRR;\r
5034         union {\r
5035                 unsigned char BYTE;\r
5036                 struct {\r
5037                         unsigned char TIE:1;\r
5038                         unsigned char RIE:1;\r
5039                         unsigned char TE:1;\r
5040                         unsigned char RE:1;\r
5041                         unsigned char MPIE:1;\r
5042                         unsigned char TEIE:1;\r
5043                         unsigned char CKE:2;\r
5044                 } BIT;\r
5045         } SCR;\r
5046         unsigned char  TDR;\r
5047         union {\r
5048                 unsigned char BYTE;\r
5049                 struct {\r
5050                         unsigned char :2;\r
5051                         unsigned char ORER:1;\r
5052                         unsigned char FER:1;\r
5053                         unsigned char PER:1;\r
5054                         unsigned char TEND:1;\r
5055                         unsigned char MPB:1;\r
5056                         unsigned char MPBT:1;\r
5057                 } BIT;\r
5058         } SSR;\r
5059         unsigned char  RDR;\r
5060         union {\r
5061                 unsigned char BYTE;\r
5062                 struct {\r
5063                         unsigned char :4;\r
5064                         unsigned char SDIR:1;\r
5065                         unsigned char SINV:1;\r
5066                         unsigned char :1;\r
5067                         unsigned char SMIF:1;\r
5068                 } BIT;\r
5069         } SCMR;\r
5070         union {\r
5071                 unsigned char BYTE;\r
5072                 struct {\r
5073                         unsigned char :2;\r
5074                         unsigned char NFEN:1;\r
5075                         unsigned char ABCS:1;\r
5076                         unsigned char :3;\r
5077                         unsigned char ACS0:1;\r
5078                 } BIT;\r
5079         } SEMR;\r
5080         union {\r
5081                 unsigned char BYTE;\r
5082                 struct {\r
5083                         unsigned char :5;\r
5084                         unsigned char NFCS:3;\r
5085                 } BIT;\r
5086         } SNFR;\r
5087         union {\r
5088                 unsigned char BYTE;\r
5089                 struct {\r
5090                         unsigned char IICDL:5;\r
5091                         unsigned char :2;\r
5092                         unsigned char IICM:1;\r
5093                 } BIT;\r
5094         } SIMR1;\r
5095         union {\r
5096                 unsigned char BYTE;\r
5097                 struct {\r
5098                         unsigned char :2;\r
5099                         unsigned char IICACKT:1;\r
5100                         unsigned char :3;\r
5101                         unsigned char IICCSC:1;\r
5102                         unsigned char IICINTM:1;\r
5103                 } BIT;\r
5104         } SIMR2;\r
5105         union {\r
5106                 unsigned char BYTE;\r
5107                 struct {\r
5108                         unsigned char IICSCLS:2;\r
5109                         unsigned char IICSDAS:2;\r
5110                         unsigned char :1;\r
5111                         unsigned char IICSTPREQ:1;\r
5112                         unsigned char IICRSTAREQ:1;\r
5113                         unsigned char IICSTAREQ:1;\r
5114                 } BIT;\r
5115         } SIMR3;\r
5116         union {\r
5117                 unsigned char BYTE;\r
5118                 struct {\r
5119                         unsigned char :7;\r
5120                         unsigned char IICACKR:1;\r
5121                 } BIT;\r
5122         } SISR;\r
5123         union {\r
5124                 unsigned char BYTE;\r
5125                 struct {\r
5126                         unsigned char CKPH:1;\r
5127                         unsigned char CKPOL:1;\r
5128                         unsigned char :1;\r
5129                         unsigned char MFF:1;\r
5130                         unsigned char :1;\r
5131                         unsigned char MSS:1;\r
5132                         unsigned char CTSE:1;\r
5133                         unsigned char SSE:1;\r
5134                 } BIT;\r
5135         } SECR;\r
5136 };\r
5137 \r
5138 struct st_sci12 {\r
5139         union {\r
5140                 unsigned char BYTE;\r
5141                 struct {\r
5142                         unsigned char CM:1;\r
5143                         unsigned char CHR:1;\r
5144                         unsigned char PE:1;\r
5145                         unsigned char PM:1;\r
5146                         unsigned char STOP:1;\r
5147                         unsigned char MP:1;\r
5148                         unsigned char CKS:2;\r
5149                 } BIT;\r
5150         } SMR;\r
5151         unsigned char  BRR;\r
5152         union {\r
5153                 unsigned char BYTE;\r
5154                 struct {\r
5155                         unsigned char TIE:1;\r
5156                         unsigned char RIE:1;\r
5157                         unsigned char TE:1;\r
5158                         unsigned char RE:1;\r
5159                         unsigned char MPIE:1;\r
5160                         unsigned char TEIE:1;\r
5161                         unsigned char CKE:2;\r
5162                 } BIT;\r
5163         } SCR;\r
5164         unsigned char  TDR;\r
5165         union {\r
5166                 unsigned char BYTE;\r
5167                 struct {\r
5168                         unsigned char :2;\r
5169                         unsigned char ORER:1;\r
5170                         unsigned char FER:1;\r
5171                         unsigned char PER:1;\r
5172                         unsigned char TEND:1;\r
5173                         unsigned char MPB:1;\r
5174                         unsigned char MPBT:1;\r
5175                 } BIT;\r
5176         } SSR;\r
5177         unsigned char  RDR;\r
5178         union {\r
5179                 unsigned char BYTE;\r
5180                 struct {\r
5181                         unsigned char :4;\r
5182                         unsigned char SDIR:1;\r
5183                         unsigned char SINV:1;\r
5184                         unsigned char :1;\r
5185                         unsigned char SMIF:1;\r
5186                 } BIT;\r
5187         } SCMR;\r
5188         union {\r
5189                 unsigned char BYTE;\r
5190                 struct {\r
5191                         unsigned char :2;\r
5192                         unsigned char NFEN:1;\r
5193                         unsigned char ABCS:1;\r
5194                         unsigned char :3;\r
5195                         unsigned char ACS0:1;\r
5196                 } BIT;\r
5197         } SEMR;\r
5198         union {\r
5199                 unsigned char BYTE;\r
5200                 struct {\r
5201                         unsigned char :5;\r
5202                         unsigned char NFCS:3;\r
5203                 } BIT;\r
5204         } SNFR;\r
5205         union {\r
5206                 unsigned char BYTE;\r
5207                 struct {\r
5208                         unsigned char IICDL:5;\r
5209                         unsigned char :2;\r
5210                         unsigned char IICM:1;\r
5211                 } BIT;\r
5212         } SIMR1;\r
5213         union {\r
5214                 unsigned char BYTE;\r
5215                 struct {\r
5216                         unsigned char :2;\r
5217                         unsigned char IICACKT:1;\r
5218                         unsigned char :3;\r
5219                         unsigned char IICCSC:1;\r
5220                         unsigned char IICINTM:1;\r
5221                 } BIT;\r
5222         } SIMR2;\r
5223         union {\r
5224                 unsigned char BYTE;\r
5225                 struct {\r
5226                         unsigned char IICSCLS:2;\r
5227                         unsigned char IICSDAS:2;\r
5228                         unsigned char :1;\r
5229                         unsigned char IICSTPREQ:1;\r
5230                         unsigned char IICRSTAREQ:1;\r
5231                         unsigned char IICSTAREQ:1;\r
5232                 } BIT;\r
5233         } SIMR3;\r
5234         union {\r
5235                 unsigned char BYTE;\r
5236                 struct {\r
5237                         unsigned char :7;\r
5238                         unsigned char IICACKR:1;\r
5239                 } BIT;\r
5240         } SISR;\r
5241         union {\r
5242                 unsigned char BYTE;\r
5243                 struct {\r
5244                         unsigned char CKPH:1;\r
5245                         unsigned char CKPOL:1;\r
5246                         unsigned char :1;\r
5247                         unsigned char MFF:1;\r
5248                         unsigned char :1;\r
5249                         unsigned char MSS:1;\r
5250                         unsigned char CTSE:1;\r
5251                         unsigned char SSE:1;\r
5252                 } BIT;\r
5253         } SECR;\r
5254         char           wk0[18];\r
5255         union {\r
5256                 unsigned char BYTE;\r
5257                 struct {\r
5258                         unsigned char :7;\r
5259                         unsigned char SCIXE:1;\r
5260                 } BIT;\r
5261         } MER;\r
5262         union {\r
5263                 unsigned char BYTE;\r
5264                 struct {\r
5265                         unsigned char :4;\r
5266                         unsigned char BRME:1;\r
5267                         unsigned char RXDSF:1;\r
5268                         unsigned char SFSF:1;\r
5269                 } BIT;\r
5270         } CR0;\r
5271         union {\r
5272                 unsigned char BYTE;\r
5273                 struct {\r
5274                         unsigned char PIBS:3;\r
5275                         unsigned char PIBE:1;\r
5276                         unsigned char CF1DS:2;\r
5277                         unsigned char CF0RE:1;\r
5278                         unsigned char BFE:1;\r
5279                 } BIT;\r
5280         } CR1;\r
5281         union {\r
5282                 unsigned char BYTE;\r
5283                 struct {\r
5284                         unsigned char RTS:2;\r
5285                         unsigned char BCCS:2;\r
5286                         unsigned char :1;\r
5287                         unsigned char DFCS:3;\r
5288                 } BIT;\r
5289         } CR2;\r
5290         union {\r
5291                 unsigned char BYTE;\r
5292                 struct {\r
5293                         unsigned char :7;\r
5294                         unsigned char SDST:1;\r
5295                 } BIT;\r
5296         } CR3;\r
5297         union {\r
5298                 unsigned char BYTE;\r
5299                 struct {\r
5300                         unsigned char :3;\r
5301                         unsigned char SHARPS:1;\r
5302                         unsigned char TXPLOD:1;\r
5303                         unsigned char TXPHOD:1;\r
5304                         unsigned char RXDXPS:1;\r
5305                         unsigned char TXDXPS:1;\r
5306                 } BIT;\r
5307         } PCR;\r
5308         union {\r
5309                 unsigned char BYTE;\r
5310                 struct {\r
5311                         unsigned char :2;\r
5312                         unsigned char AEDIE:1;\r
5313                         unsigned char BCDIE:1;\r
5314                         unsigned char PIBDIE:1;\r
5315                         unsigned char CF1MIE:1;\r
5316                         unsigned char CF0MIE:1;\r
5317                         unsigned char BFDIE:1;\r
5318                 } BIT;\r
5319         } ICR;\r
5320         union {\r
5321                 unsigned char BYTE;\r
5322                 struct {\r
5323                         unsigned char :2;\r
5324                         unsigned char AEDF:1;\r
5325                         unsigned char BCDF:1;\r
5326                         unsigned char PIBDF:1;\r
5327                         unsigned char CF1MF:1;\r
5328                         unsigned char CF0MF:1;\r
5329                         unsigned char BFDF:1;\r
5330                 } BIT;\r
5331         } STR;\r
5332         union {\r
5333                 unsigned char BYTE;\r
5334                 struct {\r
5335                         unsigned char :2;\r
5336                         unsigned char AEDCL:1;\r
5337                         unsigned char BCDCL:1;\r
5338                         unsigned char PIBDCL:1;\r
5339                         unsigned char CF1MCL:1;\r
5340                         unsigned char CF0MCL:1;\r
5341                         unsigned char BFDCL:1;\r
5342                 } BIT;\r
5343         } STCR;\r
5344         unsigned char  CF0DR;\r
5345         union {\r
5346                 unsigned char BYTE;\r
5347                 struct {\r
5348                         unsigned char CF0CE7:1;\r
5349                         unsigned char CF0CE6:1;\r
5350                         unsigned char CF0CE5:1;\r
5351                         unsigned char CF0CE4:1;\r
5352                         unsigned char CF0CE3:1;\r
5353                         unsigned char CF0CE2:1;\r
5354                         unsigned char CF0CE1:1;\r
5355                         unsigned char CF0CE0:1;\r
5356                 } BIT;\r
5357         } CF0CR;\r
5358         unsigned char  CF0RR;\r
5359         unsigned char  PCF1DR;\r
5360         unsigned char  SCF1DR;\r
5361         union {\r
5362                 unsigned char BYTE;\r
5363                 struct {\r
5364                         unsigned char CF1CE7:1;\r
5365                         unsigned char CF1CE6:1;\r
5366                         unsigned char CF1CE5:1;\r
5367                         unsigned char CF1CE4:1;\r
5368                         unsigned char CF1CE3:1;\r
5369                         unsigned char CF1CE2:1;\r
5370                         unsigned char CF1CE1:1;\r
5371                         unsigned char CF1CE0:1;\r
5372                 } BIT;\r
5373         } CF1CR;\r
5374         unsigned char  CF1RR;\r
5375         union {\r
5376                 unsigned char BYTE;\r
5377                 struct {\r
5378                         unsigned char :7;\r
5379                         unsigned char TCST:1;\r
5380                 } BIT;\r
5381         } TCR;\r
5382         union {\r
5383                 unsigned char BYTE;\r
5384                 struct {\r
5385                         unsigned char :1;\r
5386                         unsigned char TCSS:3;\r
5387                         unsigned char TWRC:1;\r
5388                         unsigned char :1;\r
5389                         unsigned char TOMS:2;\r
5390                 } BIT;\r
5391         } TMR;\r
5392         unsigned char  TPRE;\r
5393         unsigned char  TCNT;\r
5394 };\r
5395 \r
5396 struct st_smci {\r
5397         union {\r
5398                 unsigned char BYTE;\r
5399                 struct {\r
5400                         unsigned char GM:1;\r
5401                         unsigned char BCLK:1;\r
5402                         unsigned char PE:1;\r
5403                         unsigned char PM:1;\r
5404                         unsigned char BCP:2;\r
5405                         unsigned char CKS:2;\r
5406                 } BIT;\r
5407         } SMR;\r
5408         unsigned char  BRR;\r
5409         union {\r
5410                 unsigned char BYTE;\r
5411                 struct {\r
5412                         unsigned char TIE:1;\r
5413                         unsigned char RIE:1;\r
5414                         unsigned char TE:1;\r
5415                         unsigned char RE:1;\r
5416                         unsigned char :1;\r
5417                         unsigned char TEIE:1;\r
5418                         unsigned char CKE:2;\r
5419                 } BIT;\r
5420         } SCR;\r
5421         unsigned char  TDR;\r
5422         union {\r
5423                 unsigned char BYTE;\r
5424                 struct {\r
5425                         unsigned char :2;\r
5426                         unsigned char ORER:1;\r
5427                         unsigned char ERS:1;\r
5428                         unsigned char PER:1;\r
5429                         unsigned char TEND:1;\r
5430                 } BIT;\r
5431         } SSR;\r
5432         unsigned char  RDR;\r
5433         union {\r
5434                 unsigned char BYTE;\r
5435                 struct {\r
5436                         unsigned char BCP2:1;\r
5437                         unsigned char :3;\r
5438                         unsigned char SDIR:1;\r
5439                         unsigned char SINV:1;\r
5440                         unsigned char :1;\r
5441                         unsigned char SMIF:1;\r
5442                 } BIT;\r
5443         } SCMR;\r
5444 };\r
5445 \r
5446 struct st_system {\r
5447         union {\r
5448                 unsigned short WORD;\r
5449                 struct {\r
5450                         unsigned short :15;\r
5451                         unsigned short MD:1;\r
5452                 } BIT;\r
5453         } MDMONR;\r
5454         union {\r
5455                 unsigned short WORD;\r
5456                 struct {\r
5457                         unsigned short :10;\r
5458                         unsigned short UBTS:1;\r
5459                         unsigned short BOTS:1;\r
5460                         unsigned short :2;\r
5461                         unsigned short EXB:1;\r
5462                         unsigned short IROM:1;\r
5463                 } BIT;\r
5464         } MDSR;\r
5465         char           wk0[2];\r
5466         union {\r
5467                 unsigned short WORD;\r
5468                 struct {\r
5469                         unsigned short KEY:8;\r
5470                         unsigned short :6;\r
5471                         unsigned short EXBE:1;\r
5472                         unsigned short ROME:1;\r
5473                 } BIT;\r
5474         } SYSCR0;\r
5475         union {\r
5476                 unsigned short WORD;\r
5477                 struct {\r
5478                         unsigned short :15;\r
5479                         unsigned short RAME:1;\r
5480                 } BIT;\r
5481         } SYSCR1;\r
5482         char           wk1[2];\r
5483         union {\r
5484                 unsigned short WORD;\r
5485                 struct {\r
5486                         unsigned short SSBY:1;\r
5487                         unsigned short OPE:1;\r
5488                 } BIT;\r
5489         } SBYCR;\r
5490         char           wk2[2];\r
5491         union {\r
5492                 unsigned long LONG;\r
5493                 struct {\r
5494                         unsigned long ACSE:1;\r
5495                         unsigned long :2;\r
5496                         unsigned long MSTPA28:1;\r
5497                         unsigned long :8;\r
5498                         unsigned long MSTPA19:1;\r
5499                         unsigned long :1;\r
5500                         unsigned long MSTPA17:1;\r
5501                         unsigned long :1;\r
5502                         unsigned long MSTPA15:1;\r
5503                         unsigned long MSTPA14:1;\r
5504                         unsigned long :4;\r
5505                         unsigned long MSTPA9:1;\r
5506                         unsigned long :3;\r
5507                         unsigned long MSTPA5:1;\r
5508                         unsigned long MSTPA4:1;\r
5509                 } BIT;\r
5510         } MSTPCRA;\r
5511         union {\r
5512                 unsigned long LONG;\r
5513                 struct {\r
5514                         unsigned long MSTPB31:1;\r
5515                         unsigned long MSTPB30:1;\r
5516                         unsigned long :3;\r
5517                         unsigned long MSTPB26:1;\r
5518                         unsigned long MSTPB25:1;\r
5519                         unsigned long :1;\r
5520                         unsigned long MSTPB23:1;\r
5521                         unsigned long :1;\r
5522                         unsigned long MSTPB21:1;\r
5523                         unsigned long :3;\r
5524                         unsigned long MSTPB17:1;\r
5525                         unsigned long :6;\r
5526                         unsigned long MSTPB10:1;\r
5527                         unsigned long MSTPB9:1;\r
5528                         unsigned long MSTPB8:1;\r
5529                         unsigned long :1;\r
5530                         unsigned long MSTPB6:1;\r
5531                         unsigned long :1;\r
5532                         unsigned long MSTPB4:1;\r
5533                 } BIT;\r
5534         } MSTPCRB;\r
5535         union {\r
5536                 unsigned long LONG;\r
5537                 struct {\r
5538                         unsigned long :4;\r
5539                         unsigned long MSTPC27:1;\r
5540                         unsigned long MSTPC26:1;\r
5541                         unsigned long :25;\r
5542                         unsigned long MSTPC0:1;\r
5543                 } BIT;\r
5544         } MSTPCRC;\r
5545         char           wk3[4];\r
5546         union {\r
5547                 unsigned long LONG;\r
5548                 struct {\r
5549                         unsigned long FCK:4;\r
5550                         unsigned long ICK:4;\r
5551                         unsigned long PSTOP1:1;\r
5552                         unsigned long :3;\r
5553                         unsigned long BCK:4;\r
5554                         unsigned long PCKA:4;\r
5555                         unsigned long PCKB:4;\r
5556                         unsigned long PCKC:4;\r
5557                         unsigned long PCKD:4;\r
5558                 } BIT;\r
5559         } SCKCR;\r
5560         char           wk4[2];\r
5561         union {\r
5562                 unsigned short WORD;\r
5563                 struct {\r
5564                         unsigned short :5;\r
5565                         unsigned short CKSEL:3;\r
5566                 } BIT;\r
5567         } SCKCR3;\r
5568         union {\r
5569                 unsigned short WORD;\r
5570                 struct {\r
5571                         unsigned short :3;\r
5572                         unsigned short STC:5;\r
5573                         unsigned short :6;\r
5574                         unsigned short PLIDIV:2;\r
5575                 } BIT;\r
5576         } PLLCR;\r
5577         union {\r
5578                 unsigned char BYTE;\r
5579                 struct {\r
5580                         unsigned char :7;\r
5581                         unsigned char PLLEN:1;\r
5582                 } BIT;\r
5583         } PLLCR2;\r
5584         char           wk5[5];\r
5585         union {\r
5586                 unsigned char BYTE;\r
5587                 struct {\r
5588                         unsigned char :7;\r
5589                         unsigned char BCLKDIV:1;\r
5590                 } BIT;\r
5591         } BCKCR;\r
5592         char           wk6[1];\r
5593         union {\r
5594                 unsigned char BYTE;\r
5595                 struct {\r
5596                         unsigned char :6;\r
5597                         unsigned char MOSEL:1;\r
5598                         unsigned char MOSTP:1;\r
5599                 } BIT;\r
5600         } MOSCCR;\r
5601         union {\r
5602                 unsigned char BYTE;\r
5603                 struct {\r
5604                         unsigned char :6;\r
5605                         unsigned char SOSEL:1;\r
5606                         unsigned char SOSTP:1;\r
5607                 } BIT;\r
5608         } SOSCCR;\r
5609         union {\r
5610                 unsigned char BYTE;\r
5611                 struct {\r
5612                         unsigned char :7;\r
5613                         unsigned char LCSTP:1;\r
5614                 } BIT;\r
5615         } LOCOCR;\r
5616         union {\r
5617                 unsigned char BYTE;\r
5618                 struct {\r
5619                         unsigned char :7;\r
5620                         unsigned char ILCSTP:1;\r
5621                 } BIT;\r
5622         } ILOCOCR;\r
5623         union {\r
5624                 unsigned char BYTE;\r
5625                 struct {\r
5626                         unsigned char :7;\r
5627                         unsigned char HCSTP:1;\r
5628                 } BIT;\r
5629         } HOCOCR;\r
5630         char           wk7[9];\r
5631         union {\r
5632                 unsigned char BYTE;\r
5633                 struct {\r
5634                         unsigned char OSTDE:1;\r
5635                         unsigned char :6;\r
5636                         unsigned char OSTDIE:1;\r
5637                 } BIT;\r
5638         } OSTDCR;\r
5639         union {\r
5640                 unsigned char BYTE;\r
5641                 struct {\r
5642                         unsigned char :7;\r
5643                         unsigned char OSTDF:1;\r
5644                 } BIT;\r
5645         } OSTDSR;\r
5646         char           wk8[94];\r
5647         union {\r
5648                 unsigned char BYTE;\r
5649                 struct {\r
5650                         unsigned char :3;\r
5651                         unsigned char LPWSTS:1;\r
5652                         unsigned char :1;\r
5653                         unsigned char LPWM:3;\r
5654                 } BIT;\r
5655         } NMPCCR;\r
5656         union {\r
5657                 unsigned char BYTE;\r
5658                 struct {\r
5659                         unsigned char RSTCKEN:1;\r
5660                         unsigned char :4;\r
5661                         unsigned char RSTCKSEL:3;\r
5662                 } BIT;\r
5663         } RSTCKCR;\r
5664         union {\r
5665                 unsigned char BYTE;\r
5666                 struct {\r
5667                         unsigned char :3;\r
5668                         unsigned char MSTS:5;\r
5669                 } BIT;\r
5670         } MOSCWTCR;\r
5671         union {\r
5672                 unsigned char BYTE;\r
5673                 struct {\r
5674                         unsigned char :3;\r
5675                         unsigned char SSTS:5;\r
5676                 } BIT;\r
5677         } SOSCWTCR;\r
5678         char           wk9[2];\r
5679         union {\r
5680                 unsigned char BYTE;\r
5681                 struct {\r
5682                         unsigned char :3;\r
5683                         unsigned char PSTS:5;\r
5684                 } BIT;\r
5685         } PLLWTCR;\r
5686         char           wk10[25];\r
5687         union {\r
5688                 unsigned char BYTE;\r
5689                 struct {\r
5690                         unsigned char :5;\r
5691                         unsigned char SWRF:1;\r
5692                         unsigned char WDRF:1;\r
5693                         unsigned char IWDRF:1;\r
5694                 } BIT;\r
5695         } RSTSR2;\r
5696         char           wk11[1];\r
5697         union {\r
5698                 unsigned short WORD;\r
5699                 struct {\r
5700                         unsigned short KEY:8;\r
5701                         unsigned short SWRR:8;\r
5702                 } BIT;\r
5703         } SWRR;\r
5704         char           wk12[28];\r
5705         union {\r
5706                 unsigned char BYTE;\r
5707                 struct {\r
5708                         unsigned char :5;\r
5709                         unsigned char LVD1IRQSEL:1;\r
5710                         unsigned char LVD1IDTSEL:2;\r
5711                 } BIT;\r
5712         } LVD1CR1;\r
5713         union {\r
5714                 unsigned char BYTE;\r
5715                 struct {\r
5716                         unsigned char :6;\r
5717                         unsigned char LVD1MON:1;\r
5718                         unsigned char LVD1DET:1;\r
5719                 } BIT;\r
5720         } LVD1SR;\r
5721         union {\r
5722                 unsigned char BYTE;\r
5723                 struct {\r
5724                         unsigned char :5;\r
5725                         unsigned char LVD2IRQSEL:1;\r
5726                         unsigned char LVD2IDTSEL:2;\r
5727                 } BIT;\r
5728         } LVD2CR1;\r
5729         union {\r
5730                 unsigned char BYTE;\r
5731                 struct {\r
5732                         unsigned char :6;\r
5733                         unsigned char LVD2MON:1;\r
5734                         unsigned char LVD2DET:1;\r
5735                 } BIT;\r
5736         } LVD2SR;\r
5737         char           wk13[794];\r
5738         union {\r
5739                 unsigned short WORD;\r
5740                 struct {\r
5741                         unsigned short PRKEY:8;\r
5742                         unsigned short PRC7:1;\r
5743                         unsigned short PRC6:1;\r
5744                         unsigned short PRC5:1;\r
5745                         unsigned short PRC4:1;\r
5746                         unsigned short PRC3:1;\r
5747                         unsigned short PRC2:1;\r
5748                         unsigned short PRC1:1;\r
5749                         unsigned short PRC0:1;\r
5750                 } BIT;\r
5751         } PRCR;\r
5752         char           wk14[48768];\r
5753         union {\r
5754                 unsigned char BYTE;\r
5755                 struct {\r
5756                         unsigned char DPSBY:1;\r
5757                         unsigned char IOKEEP:1;\r
5758                         unsigned char :4;\r
5759                         unsigned char DEEPCUT1:1;\r
5760                 } BIT;\r
5761         } DPSBYCR;\r
5762         char           wk15[1];\r
5763         union {\r
5764                 unsigned char BYTE;\r
5765                 struct {\r
5766                         unsigned char DIRQ7E:1;\r
5767                         unsigned char DIRQ6E:1;\r
5768                         unsigned char DIRQ5E:1;\r
5769                         unsigned char DIRQ4E:1;\r
5770                         unsigned char DIRQ3E:1;\r
5771                         unsigned char DIRQ2E:1;\r
5772                         unsigned char DIRQ1E:1;\r
5773                         unsigned char DIRQ0E:1;\r
5774                 } BIT;\r
5775         } DPSIER0;\r
5776         char           wk16[1];\r
5777         union {\r
5778                 unsigned char BYTE;\r
5779                 struct {\r
5780                         unsigned char :1;\r
5781                         unsigned char DI2CCIE:1;\r
5782                         unsigned char DI2CDIE:1;\r
5783                         unsigned char DNMIE:1;\r
5784                         unsigned char DRTCAIE:1;\r
5785                         unsigned char DRTCIIE:1;\r
5786                         unsigned char DLVD2IE:1;\r
5787                         unsigned char DLVD1IE:1;\r
5788                 } BIT;\r
5789         } DPSIER2;\r
5790         char           wk17[1];\r
5791         union {\r
5792                 unsigned char BYTE;\r
5793                 struct {\r
5794                         unsigned char DIRQ7F:1;\r
5795                         unsigned char DIRQ6F:1;\r
5796                         unsigned char DIRQ5F:1;\r
5797                         unsigned char DIRQ4F:1;\r
5798                         unsigned char DIRQ3F:1;\r
5799                         unsigned char DIRQ2F:1;\r
5800                         unsigned char DIRQ1F:1;\r
5801                         unsigned char DIRQ0F:1;\r
5802                 } BIT;\r
5803         } DPSIFR0;\r
5804         char           wk18[1];\r
5805         union {\r
5806                 unsigned char BYTE;\r
5807                 struct {\r
5808                         unsigned char :1;\r
5809                         unsigned char DRIICCIF:1;\r
5810                         unsigned char DRIICDIF:1;\r
5811                         unsigned char DNMIF:1;\r
5812                         unsigned char DRTCAIF:1;\r
5813                         unsigned char DRTCIIF:1;\r
5814                         unsigned char DLVD2IF:1;\r
5815                         unsigned char DLVD1IF:1;\r
5816                 } BIT;\r
5817         } DPSIFR2;\r
5818         char           wk19[1];\r
5819         union {\r
5820                 unsigned char BYTE;\r
5821                 struct {\r
5822                         unsigned char DIRQ7EG:1;\r
5823                         unsigned char DIRQ6EG:1;\r
5824                         unsigned char DIRQ5EG:1;\r
5825                         unsigned char DIRQ4EG:1;\r
5826                         unsigned char DIRQ3EG:1;\r
5827                         unsigned char DIRQ2EG:1;\r
5828                         unsigned char DIRQ1EG:1;\r
5829                         unsigned char DIRQ0EG:1;\r
5830                 } BIT;\r
5831         } DPSIEGR0;\r
5832         char           wk20[1];\r
5833         union {\r
5834                 unsigned char BYTE;\r
5835                 struct {\r
5836                         unsigned char :1;\r
5837                         unsigned char DRIICCEG:1;\r
5838                         unsigned char DRIICDEG:1;\r
5839                         unsigned char DNMIEG:1;\r
5840                         unsigned char :2;\r
5841                         unsigned char DLVD2EG:1;\r
5842                         unsigned char DLVD1EG:1;\r
5843                 } BIT;\r
5844         } DPSIEGR2;\r
5845         char           wk21[2];\r
5846         union {\r
5847                 unsigned char BYTE;\r
5848                 struct {\r
5849                         unsigned char :6;\r
5850                         unsigned char HCUT:1;\r
5851                         unsigned char FCUT:1;\r
5852                 } BIT;\r
5853         } FHSSBYCR;\r
5854         union {\r
5855                 unsigned char BYTE;\r
5856                 struct {\r
5857                         unsigned char DPSRSTF:1;\r
5858                         unsigned char :3;\r
5859                         unsigned char LVD2RF:1;\r
5860                         unsigned char LVD1RF:1;\r
5861                         unsigned char LVD0RF:1;\r
5862                         unsigned char PORF:1;\r
5863                 } BIT;\r
5864         } RSTSR0;\r
5865         union {\r
5866                 unsigned char BYTE;\r
5867                 struct {\r
5868                         unsigned char :7;\r
5869                         unsigned char CWSF:1;\r
5870                 } BIT;\r
5871         } RSTSR1;\r
5872         char           wk22[1];\r
5873         union {\r
5874                 unsigned char BYTE;\r
5875                 struct {\r
5876                         unsigned char :5;\r
5877                         unsigned char MOSCDRV:2;\r
5878                         unsigned char MOFXIN:1;\r
5879                 } BIT;\r
5880         } MOFCR;\r
5881         union {\r
5882                 unsigned char BYTE;\r
5883                 struct {\r
5884                         unsigned char :7;\r
5885                         unsigned char HOCOPCNT:1;\r
5886                 } BIT;\r
5887         } HOCOPCR;\r
5888         char           wk23[2];\r
5889         union {\r
5890                 unsigned char BYTE;\r
5891                 struct {\r
5892                         unsigned char :1;\r
5893                         unsigned char LVD2E:1;\r
5894                         unsigned char LVD1E:1;\r
5895                         unsigned char :1;\r
5896                         unsigned char EXVCCINP2:1;\r
5897                 } BIT;\r
5898         } LVCMPCR;\r
5899         union {\r
5900                 unsigned char BYTE;\r
5901                 struct {\r
5902                         unsigned char LVD2LVL:4;\r
5903                         unsigned char LVD1LVL:4;\r
5904                 } BIT;\r
5905         } LVDLVLR;\r
5906         char           wk24[1];\r
5907         union {\r
5908                 unsigned char BYTE;\r
5909                 struct {\r
5910                         unsigned char LVD1RN:1;\r
5911                         unsigned char LVD1RI:1;\r
5912                         unsigned char LVD1FSAMP:2;\r
5913                         unsigned char :1;\r
5914                         unsigned char LVD1CMPE:1;\r
5915                         unsigned char LVD1DFDIS:1;\r
5916                         unsigned char LVD1RIE:1;\r
5917                 } BIT;\r
5918         } LVD1CR0;\r
5919         union {\r
5920                 unsigned char BYTE;\r
5921                 struct {\r
5922                         unsigned char LVD2RN:1;\r
5923                         unsigned char LVD2RI:1;\r
5924                         unsigned char LVD2FSAMP:2;\r
5925                         unsigned char :1;\r
5926                         unsigned char LVD2CMPE:1;\r
5927                         unsigned char LVD2DFDIS:1;\r
5928                         unsigned char LVD2RIE:1;\r
5929                 } BIT;\r
5930         } LVD2CR0;\r
5931         char           wk25[3];\r
5932         union {\r
5933                 unsigned char BYTE;\r
5934                 struct {\r
5935                         unsigned char :6;\r
5936                         unsigned char SELICONST:2;\r
5937                 } BIT;\r
5938         } SELICONSTCR;\r
5939         unsigned char  DPSBKR[32];\r
5940 };\r
5941 \r
5942 struct st_temps {\r
5943         union {\r
5944                 unsigned char BYTE;\r
5945                 struct {\r
5946                         unsigned char TSEN:1;\r
5947                         unsigned char PGAEN:1;\r
5948                         unsigned char :4;\r
5949                         unsigned char PGAGAIN:2;\r
5950                 } BIT;\r
5951         } TSCR;\r
5952 };\r
5953 \r
5954 struct st_tmr0 {\r
5955         union {\r
5956                 unsigned char BYTE;\r
5957                 struct {\r
5958                         unsigned char CMIEB:1;\r
5959                         unsigned char CMIEA:1;\r
5960                         unsigned char OVIE:1;\r
5961                         unsigned char CCLR:2;\r
5962                 } BIT;\r
5963         } TCR;\r
5964         char           wk0[1];\r
5965         union {\r
5966                 unsigned char BYTE;\r
5967                 struct {\r
5968                         unsigned char :4;\r
5969                         unsigned char OSB:2;\r
5970                         unsigned char OSA:2;\r
5971                 } BIT;\r
5972         } TCSR;\r
5973         char           wk1[1];\r
5974         unsigned char  TCORA;\r
5975         char           wk2[1];\r
5976         unsigned char  TCORB;\r
5977         char           wk3[1];\r
5978         unsigned char  TCNT;\r
5979         char           wk4[1];\r
5980         union {\r
5981                 unsigned char BYTE;\r
5982                 struct {\r
5983                         unsigned char TMRIS:1;\r
5984                         unsigned char :2;\r
5985                         unsigned char CSS:2;\r
5986                         unsigned char CKS:3;\r
5987                 } BIT;\r
5988         } TCCR;\r
5989         char           wk5[1];\r
5990         union {\r
5991                 unsigned char BYTE;\r
5992                 struct {\r
5993                         unsigned char :7;\r
5994                         unsigned char TCS:1;\r
5995                 } BIT;\r
5996         } TCSTR;\r
5997 };\r
5998 \r
5999 struct st_tmr1 {\r
6000         union {\r
6001                 unsigned char BYTE;\r
6002                 struct {\r
6003                         unsigned char CMIEB:1;\r
6004                         unsigned char CMIEA:1;\r
6005                         unsigned char OVIE:1;\r
6006                         unsigned char CCLR:2;\r
6007                 } BIT;\r
6008         } TCR;\r
6009         char           wk0[1];\r
6010         union {\r
6011                 unsigned char BYTE;\r
6012                 struct {\r
6013                         unsigned char :4;\r
6014                         unsigned char OSB:2;\r
6015                         unsigned char OSA:2;\r
6016                 } BIT;\r
6017         } TCSR;\r
6018         char           wk1[1];\r
6019         unsigned char  TCORA;\r
6020         char           wk2[1];\r
6021         unsigned char  TCORB;\r
6022         char           wk3[1];\r
6023         unsigned char  TCNT;\r
6024         char           wk4[1];\r
6025         union {\r
6026                 unsigned char BYTE;\r
6027                 struct {\r
6028                         unsigned char TMRIS:1;\r
6029                         unsigned char :2;\r
6030                         unsigned char CSS:2;\r
6031                         unsigned char CKS:3;\r
6032                 } BIT;\r
6033         } TCCR;\r
6034 };\r
6035 \r
6036 struct st_tmr01 {\r
6037         unsigned short TCORA;\r
6038         unsigned short TCORB;\r
6039         unsigned short TCNT;\r
6040         unsigned short TCCR;\r
6041 };\r
6042 \r
6043 struct st_wdt {\r
6044         unsigned char  WDTRR;\r
6045         char           wk0[1];\r
6046         union {\r
6047                 unsigned short WORD;\r
6048                 struct {\r
6049                         unsigned short :2;\r
6050                         unsigned short RPSS:2;\r
6051                         unsigned short :2;\r
6052                         unsigned short RPES:2;\r
6053                         unsigned short CKS:4;\r
6054                         unsigned short :2;\r
6055                         unsigned short TOPS:2;\r
6056                 } BIT;\r
6057         } WDTCR;\r
6058         union {\r
6059                 unsigned short WORD;\r
6060                 struct {\r
6061                         unsigned short REFEF:1;\r
6062                         unsigned short UNDFF:1;\r
6063                         unsigned short CNTVAL:14;\r
6064                 } BIT;\r
6065         } WDTSR;\r
6066         union {\r
6067                 unsigned char BYTE;\r
6068                 struct {\r
6069                         unsigned char RSTIRQS:1;\r
6070                 } BIT;\r
6071         } WDTRCR;\r
6072 };\r
6073 \r
6074 enum enum_ir {\r
6075 IR_BSC_BUSERR=16,IR_FCUIF_FCUERR=21,IR_FCUIF_FRDYI=23,\r
6076 IR_ICU_SWINT=27,\r
6077 IR_CMT0_CMI0,\r
6078 IR_CMT1_CMI1,\r
6079 IR_CMT2_CMI2,\r
6080 IR_CMT3_CMI3,\r
6081 IR_CAC_FERRF,IR_CAC_MENDF,IR_CAC_OVFF,\r
6082 IR_RSPI0_SPEI2=44,IR_RSPI0_SPRI0,IR_RSPI0_SPTI0,IR_RSPI0_SPII0,\r
6083 IR_DOC_DOPCF=57,\r
6084 IR_CMPB0_COMPB0,\r
6085 IR_CMPB1_COMPB1,\r
6086 IR_RTC_COUNTUP=63,\r
6087 IR_ICU_IRQ0,IR_ICU_IRQ1,IR_ICU_IRQ2,IR_ICU_IRQ3,IR_ICU_IRQ4,IR_ICU_IRQ5,IR_ICU_IRQ6,IR_ICU_IRQ7,\r
6088 IR_LVDCMPA_LVD1COMPA1=88,IR_LVDCMPA_LVD1COMPA2,\r
6089 IR_RTC_ALM=92,IR_RTC_PRD,\r
6090 IR_S12AD_S12ADI=102,IR_S12AD_GBADI,\r
6091 IR_ELC_ELSR18I=106,IR_ELC_ELSR19I,\r
6092 IR_MTU0_TGIA0=114,IR_MTU0_TGIB0,IR_MTU0_TGIC0,IR_MTU0_TGID0,IR_MTU0_TGIV0,IR_MTU0_TGIE0,IR_MTU0_TGIF0,\r
6093 IR_MTU1_TGIA1,IR_MTU1_TGIB1,IR_MTU1_TGIV1,IR_MTU1_TGIU1,\r
6094 IR_MTU2_TGIA2,IR_MTU2_TGIB2,IR_MTU2_TGIV2,IR_MTU2_TGIU2,\r
6095 IR_MTU3_TGIA3,IR_MTU3_TGIB3,IR_MTU3_TGIC3,IR_MTU3_TGID3,IR_MTU3_TGIV3,\r
6096 IR_MTU4_TGIA4,IR_MTU4_TGIB4,IR_MTU4_TGIC4,IR_MTU4_TGID4,IR_MTU4_TGIV4,\r
6097 IR_MTU5_TGIU5,IR_MTU5_TGIV5,IR_MTU5_TGIW5,\r
6098 IR_POE_OEI1=170,IR_POE_OEI2,\r
6099 IR_TMR0_CMIA0=174,IR_TMR0_CMIB0,IR_TMR0_OVI0,\r
6100 IR_TMR1_CMIA1,IR_TMR1_CMIB1,IR_TMR1_OVI1,\r
6101 IR_TMR2_CMIA2,IR_TMR2_CMIB2,IR_TMR2_OVI2,\r
6102 IR_TMR3_CMIA3,IR_TMR3_CMIB3,IR_TMR3_OVI3,\r
6103 IR_DMAC_DMAC0I=198,IR_DMAC_DMAC1I,IR_DMAC_DMAC2I,IR_DMAC_DMAC3I,\r
6104 IR_SCI0_ERI0=214,IR_SCI0_RXI0,IR_SCI0_TXI0,IR_SCI0_TEI0,\r
6105 IR_SCI1_ERI1,IR_SCI1_RXI1,IR_SCI1_TXI1,IR_SCI1_TEI1,\r
6106 IR_SCI5_ERI5,IR_SCI5_RXI5,IR_SCI5_TXI5,IR_SCI5_TEI5,\r
6107 IR_SCI6_ERI6,IR_SCI6_RXI6,IR_SCI6_TXI6,IR_SCI6_TEI6,\r
6108 IR_SCI8_ERI8,IR_SCI8_RXI8,IR_SCI8_TXI8,IR_SCI8_TEI8,\r
6109 IR_SCI9_ERI9,IR_SCI9_RXI9,IR_SCI9_TXI9,IR_SCI9_TEI9,\r
6110 IR_SCI12_ERI12,IR_SCI12_RXI12,IR_SCI12_TXI12,IR_SCI12_TEI12,IR_SCI12_SCIX0,IR_SCI12_SCIX1,IR_SCI12_SCIX2,IR_SCI12_SCIX3,\r
6111 IR_RIIC0_EEI0,IR_RIIC0_RXI0,IR_RIIC0_TXI0,IR_RIIC0_TEI0\r
6112 };\r
6113 \r
6114 enum enum_dtce {\r
6115 DTCE_ICU_SWINT=27,\r
6116 DTCE_CMT0_CMI0,\r
6117 DTCE_CMT1_CMI1,\r
6118 DTCE_CMT2_CMI2,\r
6119 DTCE_CMT3_CMI3,\r
6120 DTCE_RSPI0_SPRI0=45,DTCE_RSPI0_SPTI0,\r
6121 DTCE_CMPB0_COMPB0=58,\r
6122 DTCE_CMPB1_COMPB1,\r
6123 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,\r
6124 DTCE_LVDCMPA_LVD1COMPA1=88,DTCE_LVDCMPA_LVD1COMPA2,\r
6125 DTCE_S12AD_S12ADI=102,DTCE_S12AD_GBADI,\r
6126 DTCE_ELC_ELSR18I=106,DTCE_ELC_ELSR19I,\r
6127 DTCE_MTU0_TGIA0=114,DTCE_MTU0_TGIB0,DTCE_MTU0_TGIC0,DTCE_MTU0_TGID0,\r
6128 DTCE_MTU1_TGIA1=121,DTCE_MTU1_TGIB1,\r
6129 DTCE_MTU2_TGIA2=125,DTCE_MTU2_TGIB2,\r
6130 DTCE_MTU3_TGIA3=129,DTCE_MTU3_TGIB3,DTCE_MTU3_TGIC3,DTCE_MTU3_TGID3,\r
6131 DTCE_MTU4_TGIA4=134,DTCE_MTU4_TGIB4,DTCE_MTU4_TGIC4,DTCE_MTU4_TGID4,DTCE_MTU4_TGIV4,\r
6132 DTCE_MTU5_TGIU5,DTCE_MTU5_TGIV5,DTCE_MTU5_TGIW5,\r
6133 DTCE_TMR0_CMIA0=174,DTCE_TMR0_CMIB0,\r
6134 DTCE_TMR1_CMIA1=177,DTCE_TMR1_CMIB1,\r
6135 DTCE_TMR2_CMIA2=180,DTCE_TMR2_CMIB2,\r
6136 DTCE_TMR3_CMIA3=183,DTCE_TMR3_CMIB3,\r
6137 DTCE_DMAC_DMAC0I=198,DTCE_DMAC_DMAC1I,DTCE_DMAC_DMAC2I,DTCE_DMAC_DMAC3I,\r
6138 DTCE_SCI0_RXI0=215,DTCE_SCI0_TXI0,\r
6139 DTCE_SCI1_RXI1=219,DTCE_SCI1_TXI1,\r
6140 DTCE_SCI5_RXI5=223,DTCE_SCI5_TXI5,\r
6141 DTCE_SCI6_RXI6=227,DTCE_SCI6_TXI6,\r
6142 DTCE_SCI8_RXI8=231,DTCE_SCI8_TXI8,\r
6143 DTCE_SCI9_RXI9=235,DTCE_SCI9_TXI9,\r
6144 DTCE_SCI12_RXI12=239,DTCE_SCI12_TXI12,\r
6145 DTCE_RIIC0_RXI0=247,DTCE_RIIC0_TXI0\r
6146 };\r
6147 \r
6148 enum enum_ier {\r
6149 IER_BSC_BUSERR=0x02,\r
6150 IER_FCUIF_FCUERR=0x02,IER_FCUIF_FRDYI=0x02,\r
6151 IER_ICU_SWINT=0x03,\r
6152 IER_CMT0_CMI0=0x03,\r
6153 IER_CMT1_CMI1=0x03,\r
6154 IER_CMT2_CMI2=0x03,\r
6155 IER_CMT3_CMI3=0x03,\r
6156 IER_CAC_FERRF=0x04,IER_CAC_MENDF=0x04,IER_CAC_OVFF=0x04,\r
6157 IER_RSPI0_SPEI2=0x05,IER_RSPI0_SPRI0=0x05,IER_RSPI0_SPTI0=0x05,IER_RSPI0_SPII0=0x05,\r
6158 IER_DOC_DOPCF=0x07,\r
6159 IER_CMPB0_COMPB0=0x07,\r
6160 IER_CMPB1_COMPB1=0x07,\r
6161 IER_RTC_COUNTUP=0x07,\r
6162 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,\r
6163 IER_LVDCMPA_LVD1COMPA1=0x0B,IER_LVDCMPA_LVD1COMPA2=0x0B,\r
6164 IER_RTC_ALM=0x0B,IER_RTC_PRD=0x0B,\r
6165 IER_S12AD_S12ADI=0x0C,IER_S12AD_GBADI=0x0C,\r
6166 IER_ELC_ELSR18I=0x0D,IER_ELC_ELSR19I=0x0D,\r
6167 IER_MTU0_TGIA0=0x0E,IER_MTU0_TGIB0=0x0E,IER_MTU0_TGIC0=0x0E,IER_MTU0_TGID0=0x0E,IER_MTU0_TGIV0=0x0E,IER_MTU0_TGIE0=0x0E,IER_MTU0_TGIF0=0x0F,\r
6168 IER_MTU1_TGIA1=0x0F,IER_MTU1_TGIB1=0x0F,IER_MTU1_TGIV1=0x0F,IER_MTU1_TGIU1=0x0F,\r
6169 IER_MTU2_TGIA2=0x0F,IER_MTU2_TGIB2=0x0F,IER_MTU2_TGIV2=0x0F,IER_MTU2_TGIU2=0x0F,\r
6170 IER_MTU3_TGIA3=0x10,IER_MTU3_TGIB3=0x10,IER_MTU3_TGIC3=0x10,IER_MTU3_TGID3=0x10,IER_MTU3_TGIV3=0x10,\r
6171 IER_MTU4_TGIA4=0x10,IER_MTU4_TGIB4=0x10,IER_MTU4_TGIC4=0x11,IER_MTU4_TGID4=0x11,IER_MTU4_TGIV4=0x11,\r
6172 IER_MTU5_TGIU5=0x11,IER_MTU5_TGIV5=0x11,IER_MTU5_TGIW5=0x11,\r
6173 IER_POE_OEI1=0x15,IER_POE_OEI2=0x15,\r
6174 IER_TMR0_CMIA0=0x15,IER_TMR0_CMIB0=0x15,IER_TMR0_OVI0=0x16,\r
6175 IER_TMR1_CMIA1=0x16,IER_TMR1_CMIB1=0x16,IER_TMR1_OVI1=0x16,\r
6176 IER_TMR2_CMIA2=0x16,IER_TMR2_CMIB2=0x16,IER_TMR2_OVI2=0x16,\r
6177 IER_TMR3_CMIA3=0x16,IER_TMR3_CMIB3=0x17,IER_TMR3_OVI3=0x17,\r
6178 IER_DMAC_DMAC0I=0x18,IER_DMAC_DMAC1I=0x18,IER_DMAC_DMAC2I=0x19,IER_DMAC_DMAC3I=0x19,\r
6179 IER_SCI0_ERI0=0x1A,IER_SCI0_RXI0=0x1A,IER_SCI0_TXI0=0x1B,IER_SCI0_TEI0=0x1B,\r
6180 IER_SCI1_ERI1=0x1B,IER_SCI1_RXI1=0x1B,IER_SCI1_TXI1=0x1B,IER_SCI1_TEI1=0x1B,\r
6181 IER_SCI5_ERI5=0x1B,IER_SCI5_RXI5=0x1B,IER_SCI5_TXI5=0x1C,IER_SCI5_TEI5=0x1C,\r
6182 IER_SCI6_ERI6=0x1C,IER_SCI6_RXI6=0x1C,IER_SCI6_TXI6=0x1C,IER_SCI6_TEI6=0x1C,\r
6183 IER_SCI8_ERI8=0x1C,IER_SCI8_RXI8=0x1C,IER_SCI8_TXI8=0x1D,IER_SCI8_TEI8=0x1D,\r
6184 IER_SCI9_ERI9=0x1D,IER_SCI9_RXI9=0x1D,IER_SCI9_TXI9=0x1D,IER_SCI9_TEI9=0x1D,\r
6185 IER_SCI12_ERI12=0x1D,IER_SCI12_RXI12=0x1D,IER_SCI12_TXI12=0x1E,IER_SCI12_TEI12=0x1E,IER_SCI12_SCIX0=0x1E,IER_SCI12_SCIX1=0x1E,IER_SCI12_SCIX2=0x1E,IER_SCI12_SCIX3=0x1E,\r
6186 IER_RIIC0_EEI0=0x1E,IER_RIIC0_RXI0=0x1E,IER_RIIC0_TXI0=0x1F,IER_RIIC0_TEI0=0x1F\r
6187 };\r
6188 \r
6189 enum enum_ipr {\r
6190 IPR_BSC_BUSERR=0x00,\r
6191 IPR_FCUIF_FCUERR=0x01,IPR_FCUIF_FRDYI=0x02,\r
6192 IPR_ICU_SWINT=0x03,\r
6193 IPR_CMT0_CMI0=0x04,\r
6194 IPR_CMT1_CMI1=0x05,\r
6195 IPR_CMT2_CMI2=0x06,\r
6196 IPR_CMT3_CMI3=0x07,\r
6197 IPR_CAC_FERRF=0x32,IPR_CAC_MENDF=0x33,IPR_CAC_OVFF=0x34,\r
6198 IPR_RSPI0_SPEI2=0x44,IPR_RSPI0_SPRI0=0x44,IPR_RSPI0_SPTI0=0x44,IPR_RSPI0_SPII0=0x44,\r
6199 IPR_DOC_DOPCF=0x57,\r
6200 IPR_CMPB0_COMPB0=0x58,\r
6201 IPR_CMPB1_COMPB1=0x59,\r
6202 IPR_RTC_COUNTUP=0x63,\r
6203 IPR_ICU_IRQ0=0x64,IPR_ICU_IRQ1=0x65,IPR_ICU_IRQ2=0x66,IPR_ICU_IRQ3=0x67,IPR_ICU_IRQ4=0x68,IPR_ICU_IRQ5=0x69,IPR_ICU_IRQ6=0x70,IPR_ICU_IRQ7=0x71,\r
6204 IPR_LVDCMPA_LVD1COMPA1=0x88,IPR_LVDCMPA_LVD1COMPA2=0x89,\r
6205 IPR_RTC_ALM=0x92,IPR_RTC_PRD=0x93,\r
6206 IPR_S12AD_S12ADI=0x102,IPR_S12AD_GBADI=0x103,\r
6207 IPR_ELC_ELSR18I=0x106,IPR_ELC_ELSR19I=0x107,\r
6208 IPR_MTU0_TGIA0=0x114,IPR_MTU0_TGIB0=0x114,IPR_MTU0_TGIC0=0x114,IPR_MTU0_TGID0=0x114,IPR_MTU0_TGIV0=0x118,IPR_MTU0_TGIE0=0x118,IPR_MTU0_TGIF0=0x118,\r
6209 IPR_MTU1_TGIA1=0x121,IPR_MTU1_TGIB1=0x121,IPR_MTU1_TGIV1=0x123,IPR_MTU1_TGIU1=0x123,\r
6210 IPR_MTU2_TGIA2=0x125,IPR_MTU2_TGIB2=0x125,IPR_MTU2_TGIV2=0x127,IPR_MTU2_TGIU2=0x127,\r
6211 IPR_MTU3_TGIA3=0x129,IPR_MTU3_TGIB3=0x129,IPR_MTU3_TGIC3=0x129,IPR_MTU3_TGID3=0x129,IPR_MTU3_TGIV3=0x133,\r
6212 IPR_MTU4_TGIA4=0x134,IPR_MTU4_TGIB4=0x134,IPR_MTU4_TGIC4=0x134,IPR_MTU4_TGID4=0x134,IPR_MTU4_TGIV4=0x138,\r
6213 IPR_MTU5_TGIU5=0x139,IPR_MTU5_TGIV5=0x139,IPR_MTU5_TGIW5=0x139,\r
6214 IPR_POE_OEI1=0x170,IPR_POE_OEI2=0x171,\r
6215 IPR_TMR0_CMIA0=0x174,IPR_TMR0_CMIB0=0x174,IPR_TMR0_OVI0=0x174,\r
6216 IPR_TMR1_CMIA1=0x177,IPR_TMR1_CMIB1=0x177,IPR_TMR1_OVI1=0x177,\r
6217 IPR_TMR2_CMIA2=0x180,IPR_TMR2_CMIB2=0x180,IPR_TMR2_OVI2=0x180,\r
6218 IPR_TMR3_CMIA3=0x183,IPR_TMR3_CMIB3=0x183,IPR_TMR3_OVI3=0x183,\r
6219 IPR_DMAC_DMAC0I=0x198,IPR_DMAC_DMAC1I=0x199,IPR_DMAC_DMAC2I=0x200,IPR_DMAC_DMAC3I=0x201,\r
6220 IPR_SCI0_ERI0=0x214,IPR_SCI0_RXI0=0x214,IPR_SCI0_TXI0=0x214,IPR_SCI0_TEI0=0x214,\r
6221 IPR_SCI1_ERI1=0x218,IPR_SCI1_RXI1=0x218,IPR_SCI1_TXI1=0x218,IPR_SCI1_TEI1=0x218,\r
6222 IPR_SCI5_ERI5=0x222,IPR_SCI5_RXI5=0x222,IPR_SCI5_TXI5=0x222,IPR_SCI5_TEI5=0x222,\r
6223 IPR_SCI6_ERI6=0x226,IPR_SCI6_RXI6=0x226,IPR_SCI6_TXI6=0x226,IPR_SCI6_TEI6=0x226,\r
6224 IPR_SCI8_ERI8=0x230,IPR_SCI8_RXI8=0x230,IPR_SCI8_TXI8=0x230,IPR_SCI8_TEI8=0x230,\r
6225 IPR_SCI9_ERI9=0x234,IPR_SCI9_RXI9=0x234,IPR_SCI9_TXI9=0x234,IPR_SCI9_TEI9=0x234,\r
6226 IPR_SCI12_ERI12=0x238,IPR_SCI12_RXI12=0x238,IPR_SCI12_TXI12=0x238,IPR_SCI12_TEI12=0x238,IPR_SCI12_SCIX0=0x242,IPR_SCI12_SCIX1=0x243,IPR_SCI12_SCIX2=0x244,IPR_SCI12_SCIX3=0x245,\r
6227 IPR_RIIC0_EEI0=0x246,IPR_RIIC0_RXI0=0x247,IPR_RIIC0_TXI0=0x248,IPR_RIIC0_TEI0=0x249,\r
6228 IPR_MTU0_TGI=0x118,\r
6229 IPR_MTU1_TGI=0x123,\r
6230 IPR_MTU2_TGI=0x127,\r
6231 IPR_MTU5_=0x139,\r
6232 IPR_MTU5_TGI=0x139,\r
6233 IPR_TMR0_=0x174,\r
6234 IPR_TMR1_=0x177,\r
6235 IPR_TMR2_=0x180,\r
6236 IPR_TMR3_=0x183,\r
6237 IPR_SCI0_=0x214,\r
6238 IPR_SCI1_=0x218,\r
6239 IPR_SCI5_=0x222,\r
6240 IPR_SCI6_=0x226,\r
6241 IPR_SCI8_=0x230,\r
6242 IPR_SCI9_=0x234\r
6243 };\r
6244 \r
6245 #define IEN_BSC_BUSERR          IEN0\r
6246 #define IEN_FCUIF_FCUERR        IEN5\r
6247 #define IEN_FCUIF_FRDYI         IEN7\r
6248 #define IEN_ICU_SWINT           IEN3\r
6249 #define IEN_CMT0_CMI0           IEN4\r
6250 #define IEN_CMT1_CMI1           IEN5\r
6251 #define IEN_CMT2_CMI2           IEN6\r
6252 #define IEN_CMT3_CMI3           IEN7\r
6253 #define IEN_CAC_FERRF           IEN0\r
6254 #define IEN_CAC_MENDF           IEN1\r
6255 #define IEN_CAC_OVFF            IEN2\r
6256 #define IEN_RSPI0_SPEI2         IEN4\r
6257 #define IEN_RSPI0_SPRI0         IEN5\r
6258 #define IEN_RSPI0_SPTI0         IEN6\r
6259 #define IEN_RSPI0_SPII0         IEN7\r
6260 #define IEN_DOC_DOPCF           IEN1\r
6261 #define IEN_CMPB0_COMPB0        IEN2\r
6262 #define IEN_CMPB1_COMPB1        IEN3\r
6263 #define IEN_RTC_COUNTUP         IEN7\r
6264 #define IEN_ICU_IRQ0            IEN0\r
6265 #define IEN_ICU_IRQ1            IEN1\r
6266 #define IEN_ICU_IRQ2            IEN2\r
6267 #define IEN_ICU_IRQ3            IEN3\r
6268 #define IEN_ICU_IRQ4            IEN4\r
6269 #define IEN_ICU_IRQ5            IEN5\r
6270 #define IEN_ICU_IRQ6            IEN6\r
6271 #define IEN_ICU_IRQ7            IEN7\r
6272 #define IEN_LVDCMPA_LVD1COMPA1  IEN0\r
6273 #define IEN_LVDCMPA_LVD1COMPA2  IEN1\r
6274 #define IEN_RTC_ALM                     IEN4\r
6275 #define IEN_RTC_PRD                     IEN5\r
6276 #define IEN_S12AD_S12ADI        IEN6\r
6277 #define IEN_S12AD_GBADI         IEN7\r
6278 #define IEN_ELC_ELSR18I         IEN2\r
6279 #define IEN_ELC_ELSR19I         IEN3\r
6280 #define IEN_MTU0_TGIA0          IEN2\r
6281 #define IEN_MTU0_TGIB0          IEN3\r
6282 #define IEN_MTU0_TGIC0          IEN4\r
6283 #define IEN_MTU0_TGID0          IEN5\r
6284 #define IEN_MTU0_TGIV0          IEN6\r
6285 #define IEN_MTU0_TGIE0          IEN7\r
6286 #define IEN_MTU0_TGIF0          IEN0\r
6287 #define IEN_MTU1_TGIA1          IEN1\r
6288 #define IEN_MTU1_TGIB1          IEN2\r
6289 #define IEN_MTU1_TGIV1          IEN3\r
6290 #define IEN_MTU1_TGIU1          IEN4\r
6291 #define IEN_MTU2_TGIA2          IEN1\r
6292 #define IEN_MTU2_TGIB2          IEN2\r
6293 #define IEN_MTU2_TGIV2          IEN3\r
6294 #define IEN_MTU2_TGIU2          IEN4\r
6295 #define IEN_MTU3_TGIA3          IEN1\r
6296 #define IEN_MTU3_TGIB3          IEN2\r
6297 #define IEN_MTU3_TGIC3          IEN3\r
6298 #define IEN_MTU3_TGID3          IEN4\r
6299 #define IEN_MTU3_TGIV3          IEN5\r
6300 #define IEN_MTU4_TGIA4          IEN6\r
6301 #define IEN_MTU4_TGIB4          IEN7\r
6302 #define IEN_MTU4_TGIC4          IEN0\r
6303 #define IEN_MTU4_TGID4          IEN1\r
6304 #define IEN_MTU4_TGIV4          IEN2\r
6305 #define IEN_MTU5_TGIU5          IEN3\r
6306 #define IEN_MTU5_TGIV5          IEN4\r
6307 #define IEN_MTU5_TGIW5          IEN5\r
6308 #define IEN_POE_OEI1            IEN2\r
6309 #define IEN_POE_OEI2            IEN3\r
6310 #define IEN_TMR0_CMIA0          IEN6\r
6311 #define IEN_TMR0_CMIB0          IEN7\r
6312 #define IEN_TMR0_OVI0           IEN0\r
6313 #define IEN_TMR1_CMIA1          IEN1\r
6314 #define IEN_TMR1_CMIB1          IEN2\r
6315 #define IEN_TMR1_OVI1           IEN3\r
6316 #define IEN_TMR2_CMIA2          IEN4\r
6317 #define IEN_TMR2_CMIB2          IEN5\r
6318 #define IEN_TMR2_OVI2           IEN6\r
6319 #define IEN_TMR3_CMIA3          IEN7\r
6320 #define IEN_TMR3_CMIB3          IEN0\r
6321 #define IEN_TMR3_OVI3           IEN1\r
6322 #define IEN_DMAC_DMAC0I         IEN6\r
6323 #define IEN_DMAC_DMAC1I         IEN7\r
6324 #define IEN_DMAC_DMAC2I         IEN0\r
6325 #define IEN_DMAC_DMAC3I         IEN1\r
6326 #define IEN_SCI0_ERI0           IEN6\r
6327 #define IEN_SCI0_RXI0           IEN7\r
6328 #define IEN_SCI0_TXI0           IEN0\r
6329 #define IEN_SCI0_TEI0           IEN1\r
6330 #define IEN_SCI1_ERI1           IEN2\r
6331 #define IEN_SCI1_RXI1           IEN3\r
6332 #define IEN_SCI1_TXI1           IEN4\r
6333 #define IEN_SCI1_TEI1           IEN5\r
6334 #define IEN_SCI5_ERI5           IEN6\r
6335 #define IEN_SCI5_RXI5           IEN7\r
6336 #define IEN_SCI5_TXI5           IEN0\r
6337 #define IEN_SCI5_TEI5           IEN1\r
6338 #define IEN_SCI6_ERI6           IEN2\r
6339 #define IEN_SCI6_RXI6           IEN3\r
6340 #define IEN_SCI6_TXI6           IEN4\r
6341 #define IEN_SCI6_TEI6           IEN5\r
6342 #define IEN_SCI8_ERI8           IEN6\r
6343 #define IEN_SCI8_RXI8           IEN7\r
6344 #define IEN_SCI8_TXI8           IEN0\r
6345 #define IEN_SCI8_TEI8           IEN1\r
6346 #define IEN_SCI9_ERI9           IEN2\r
6347 #define IEN_SCI9_RXI9           IEN3\r
6348 #define IEN_SCI9_TXI9           IEN4\r
6349 #define IEN_SCI9_TEI9           IEN5\r
6350 #define IEN_SCI12_ERI12         IEN6\r
6351 #define IEN_SCI12_RXI12         IEN7\r
6352 #define IEN_SCI12_TXI12         IEN0\r
6353 #define IEN_SCI12_TEI12         IEN1\r
6354 #define IEN_SCI12_SCIX0         IEN2\r
6355 #define IEN_SCI12_SCIX1         IEN3\r
6356 #define IEN_SCI12_SCIX2         IEN4\r
6357 #define IEN_SCI12_SCIX3         IEN5\r
6358 #define IEN_RIIC0_EEI0          IEN6\r
6359 #define IEN_RIIC0_RXI0          IEN7\r
6360 #define IEN_RIIC0_TXI0          IEN0\r
6361 #define IEN_RIIC0_TEI0          IEN1\r
6362 \r
6363 #define VECT_BSC_BUSERR         16\r
6364 #define VECT_FCUIF_FCUERR       21\r
6365 #define VECT_FCUIF_FRDYI        23\r
6366 #define VECT_ICU_SWINT          27\r
6367 #define VECT_CMT0_CMI0          28\r
6368 #define VECT_CMT1_CMI1          29\r
6369 #define VECT_CMT2_CMI2          30\r
6370 #define VECT_CMT3_CMI3          31\r
6371 #define VECT_CAC_FERRF          32\r
6372 #define VECT_CAC_MENDF          33\r
6373 #define VECT_CAC_OVFF           34\r
6374 #define VECT_RSPI0_SPEI2        44\r
6375 #define VECT_RSPI0_SPRI0        45\r
6376 #define VECT_RSPI0_SPTI0        46\r
6377 #define VECT_RSPI0_SPII0        47\r
6378 #define VECT_DOC_DOPCF          57\r
6379 #define VECT_CMPB0_COMPB0       58\r
6380 #define VECT_CMPB1_COMPB1       59\r
6381 #define VECT_RTC_COUNTUP        63\r
6382 #define VECT_ICU_IRQ0           64\r
6383 #define VECT_ICU_IRQ1           65\r
6384 #define VECT_ICU_IRQ2           66\r
6385 #define VECT_ICU_IRQ3           67\r
6386 #define VECT_ICU_IRQ4           68\r
6387 #define VECT_ICU_IRQ5           69\r
6388 #define VECT_ICU_IRQ6           70\r
6389 #define VECT_ICU_IRQ7           71\r
6390 #define VECT_LVDCMPA_LVD1COMPA1 88\r
6391 #define VECT_LVDCMPA_LVD1COMPA2 89\r
6392 #define VECT_RTC_ALM            92\r
6393 #define VECT_RTC_PRD            93\r
6394 #define VECT_S12AD_S12ADI       102\r
6395 #define VECT_S12AD_GBADI        103\r
6396 #define VECT_ELC_ELSR18I        106\r
6397 #define VECT_ELC_ELSR19I        107\r
6398 #define VECT_MTU0_TGIA0         114\r
6399 #define VECT_MTU0_TGIB0         115\r
6400 #define VECT_MTU0_TGIC0         116\r
6401 #define VECT_MTU0_TGID0         117\r
6402 #define VECT_MTU0_TGIV0         118\r
6403 #define VECT_MTU0_TGIE0         119\r
6404 #define VECT_MTU0_TGIF0         120\r
6405 #define VECT_MTU1_TGIA1         121\r
6406 #define VECT_MTU1_TGIB1         122\r
6407 #define VECT_MTU1_TGIV1         123\r
6408 #define VECT_MTU1_TGIU1         124\r
6409 #define VECT_MTU2_TGIA2         125\r
6410 #define VECT_MTU2_TGIB2         126\r
6411 #define VECT_MTU2_TGIV2         127\r
6412 #define VECT_MTU2_TGIU2         128\r
6413 #define VECT_MTU3_TGIA3         129\r
6414 #define VECT_MTU3_TGIB3         130\r
6415 #define VECT_MTU3_TGIC3         131\r
6416 #define VECT_MTU3_TGID3         132\r
6417 #define VECT_MTU3_TGIV3         133\r
6418 #define VECT_MTU4_TGIA4         134\r
6419 #define VECT_MTU4_TGIB4         135\r
6420 #define VECT_MTU4_TGIC4         136\r
6421 #define VECT_MTU4_TGID4         137\r
6422 #define VECT_MTU4_TGIV4         138\r
6423 #define VECT_MTU5_TGIU5         139\r
6424 #define VECT_MTU5_TGIV5         140\r
6425 #define VECT_MTU5_TGIW5         141\r
6426 #define VECT_POE_OEI1           170\r
6427 #define VECT_POE_OEI2           171\r
6428 #define VECT_TMR0_CMIA0         174\r
6429 #define VECT_TMR0_CMIB0         175\r
6430 #define VECT_TMR0_OVI0          176\r
6431 #define VECT_TMR1_CMIA1         177\r
6432 #define VECT_TMR1_CMIB1         178\r
6433 #define VECT_TMR1_OVI1          179\r
6434 #define VECT_TMR2_CMIA2         180\r
6435 #define VECT_TMR2_CMIB2         181\r
6436 #define VECT_TMR2_OVI2          182\r
6437 #define VECT_TMR3_CMIA3         183\r
6438 #define VECT_TMR3_CMIB3         184\r
6439 #define VECT_TMR3_OVI3          185\r
6440 #define VECT_DMAC_DMAC0I        198\r
6441 #define VECT_DMAC_DMAC1I        199\r
6442 #define VECT_DMAC_DMAC2I        200\r
6443 #define VECT_DMAC_DMAC3I        201\r
6444 #define VECT_SCI0_ERI0          214\r
6445 #define VECT_SCI0_RXI0          215\r
6446 #define VECT_SCI0_TXI0          216\r
6447 #define VECT_SCI0_TEI0          217\r
6448 #define VECT_SCI1_ERI1          218\r
6449 #define VECT_SCI1_RXI1          219\r
6450 #define VECT_SCI1_TXI1          220\r
6451 #define VECT_SCI1_TEI1          221\r
6452 #define VECT_SCI5_ERI5          222\r
6453 #define VECT_SCI5_RXI5          223\r
6454 #define VECT_SCI5_TXI5          224\r
6455 #define VECT_SCI5_TEI5          225\r
6456 #define VECT_SCI6_ERI6          226\r
6457 #define VECT_SCI6_RXI6          227\r
6458 #define VECT_SCI6_TXI6          228\r
6459 #define VECT_SCI6_TEI6          229\r
6460 #define VECT_SCI8_ERI8          230\r
6461 #define VECT_SCI8_RXI8          231\r
6462 #define VECT_SCI8_TXI8          232\r
6463 #define VECT_SCI8_TEI8          233\r
6464 #define VECT_SCI9_ERI9          234\r
6465 #define VECT_SCI9_RXI9          235\r
6466 #define VECT_SCI9_TXI9          236\r
6467 #define VECT_SCI9_TEI9          237\r
6468 #define VECT_SCI12_ERI12        238\r
6469 #define VECT_SCI12_RXI12        239\r
6470 #define VECT_SCI12_TXI12        240\r
6471 #define VECT_SCI12_TEI12        241\r
6472 #define VECT_SCI12_SCIX0        242\r
6473 #define VECT_SCI12_SCIX1        243\r
6474 #define VECT_SCI12_SCIX2        244\r
6475 #define VECT_SCI12_SCIX3        245\r
6476 #define VECT_RIIC0_EEI0         246\r
6477 #define VECT_RIIC0_RXI0         247\r
6478 #define VECT_RIIC0_TXI0         248\r
6479 #define VECT_RIIC0_TEI0         249\r
6480 \r
6481 #define MSTP_DTC        SYSTEM.MSTPCRA.BIT.MSTPA28\r
6482 #define MSTP_DMAC       SYSTEM.MSTPCRA.BIT.MSTPA28\r
6483 #define MSTP_DMAC0      SYSTEM.MSTPCRA.BIT.MSTPA28\r
6484 #define MSTP_DMAC1      SYSTEM.MSTPCRA.BIT.MSTPA28\r
6485 #define MSTP_DMAC2      SYSTEM.MSTPCRA.BIT.MSTPA28\r
6486 #define MSTP_DMAC3      SYSTEM.MSTPCRA.BIT.MSTPA28\r
6487 #define MSTP_DA         SYSTEM.MSTPCRA.BIT.MSTPA19\r
6488 #define MSTP_S12AD      SYSTEM.MSTPCRA.BIT.MSTPA17\r
6489 #define MSTP_CMT0       SYSTEM.MSTPCRA.BIT.MSTPA15\r
6490 #define MSTP_CMT1       SYSTEM.MSTPCRA.BIT.MSTPA15\r
6491 #define MSTP_CMT2       SYSTEM.MSTPCRA.BIT.MSTPA14\r
6492 #define MSTP_CMT3       SYSTEM.MSTPCRA.BIT.MSTPA14\r
6493 #define MSTP_MTU        SYSTEM.MSTPCRA.BIT.MSTPA9\r
6494 #define MSTP_MTU0       SYSTEM.MSTPCRA.BIT.MSTPA9\r
6495 #define MSTP_MTU1       SYSTEM.MSTPCRA.BIT.MSTPA9\r
6496 #define MSTP_MTU2       SYSTEM.MSTPCRA.BIT.MSTPA9\r
6497 #define MSTP_MTU3       SYSTEM.MSTPCRA.BIT.MSTPA9\r
6498 #define MSTP_MTU4       SYSTEM.MSTPCRA.BIT.MSTPA9\r
6499 #define MSTP_MTU5       SYSTEM.MSTPCRA.BIT.MSTPA9\r
6500 #define MSTP_TMR0       SYSTEM.MSTPCRA.BIT.MSTPA5\r
6501 #define MSTP_TMR1       SYSTEM.MSTPCRA.BIT.MSTPA5\r
6502 #define MSTP_TMR01      SYSTEM.MSTPCRA.BIT.MSTPA5\r
6503 #define MSTP_TMR2       SYSTEM.MSTPCRA.BIT.MSTPA4\r
6504 #define MSTP_TMR3       SYSTEM.MSTPCRA.BIT.MSTPA4\r
6505 #define MSTP_TMR23      SYSTEM.MSTPCRA.BIT.MSTPA4\r
6506 #define MSTP_SCI0       SYSTEM.MSTPCRB.BIT.MSTPB31\r
6507 #define MSTP_SCI1       SYSTEM.MSTPCRB.BIT.MSTPB30\r
6508 #define MSTP_SCI5       SYSTEM.MSTPCRB.BIT.MSTPB26\r
6509 #define MSTP_SCI6       SYSTEM.MSTPCRB.BIT.MSTPB25\r
6510 #define MSTP_CRC        SYSTEM.MSTPCRB.BIT.MSTPB23\r
6511 #define MSTP_RIIC0      SYSTEM.MSTPCRB.BIT.MSTPB21\r
6512 #define MSTP_RSPI0      SYSTEM.MSTPCRB.BIT.MSTPB17\r
6513 #define MSTP_CMPB       SYSTEM.MSTPCRB.BIT.MSTPB10\r
6514 #define MSTP_ELC        SYSTEM.MSTPCRB.BIT.MSTPB9\r
6515 #define MSTP_TEMPS      SYSTEM.MSTPCRB.BIT.MSTPB8\r
6516 #define MSTP_DOC        SYSTEM.MSTPCRB.BIT.MSTPB6\r
6517 #define MSTP_SCI12      SYSTEM.MSTPCRB.BIT.MSTPB4\r
6518 #define MSTP_SCI8       SYSTEM.MSTPCRC.BIT.MSTPC27\r
6519 #define MSTP_SCI9       SYSTEM.MSTPCRC.BIT.MSTPC26\r
6520 #define MSTP_RAM0       SYSTEM.MSTPCRC.BIT.MSTPC0\r
6521 \r
6522 #define __IR( x )               ICU.IR[ IR ## x ].BIT.IR\r
6523 #define  _IR( x )               __IR( x )\r
6524 #define   IR( x , y )   _IR( _ ## x ## _ ## y )\r
6525 #define __DTCE( x )             ICU.DTCER[ DTCE ## x ].BIT.DTCE\r
6526 #define  _DTCE( x )             __DTCE( x )\r
6527 #define   DTCE( x , y ) _DTCE( _ ## x ## _ ## y )\r
6528 #define __IEN( x )              ICU.IER[ IER ## x ].BIT.IEN ## x\r
6529 #define  _IEN( x )              __IEN( x )\r
6530 #define   IEN( x , y )  _IEN( _ ## x ## _ ## y )\r
6531 #define __IPR( x )              ICU.IPR[ IPR ## x ].BIT.IPR\r
6532 #define  _IPR( x )              __IPR( x )\r
6533 #define   IPR( x , y )  _IPR( _ ## x ## _ ## y )\r
6534 #define __VECT( x )             VECT ## x\r
6535 #define  _VECT( x )             __VECT( x )\r
6536 #define   VECT( x , y ) _VECT( _ ## x ## _ ## y )\r
6537 #define __MSTP( x )             MSTP ## x\r
6538 #define  _MSTP( x )             __MSTP( x )\r
6539 #define   MSTP( x )             _MSTP( _ ## x )\r
6540 \r
6541 #define BSC             (*(volatile struct st_bsc      __evenaccess *)0x81300)\r
6542 #define CAC             (*(volatile struct st_cac      __evenaccess *)0x8B000)\r
6543 #define CMPB    (*(volatile struct st_cmpb     __evenaccess *)0x8C580)\r
6544 #define CMT             (*(volatile struct st_cmt      __evenaccess *)0x88000)\r
6545 #define CMT0    (*(volatile struct st_cmt0     __evenaccess *)0x88002)\r
6546 #define CMT1    (*(volatile struct st_cmt0     __evenaccess *)0x88008)\r
6547 #define CMT2    (*(volatile struct st_cmt0     __evenaccess *)0x88012)\r
6548 #define CMT3    (*(volatile struct st_cmt0     __evenaccess *)0x88018)\r
6549 #define CRC             (*(volatile struct st_crc      __evenaccess *)0x88280)\r
6550 #define DA              (*(volatile struct st_da       __evenaccess *)0x880C0)\r
6551 #define DMAC    (*(volatile struct st_dmac     __evenaccess *)0x82200)\r
6552 #define DMAC0   (*(volatile struct st_dmac0    __evenaccess *)0x82000)\r
6553 #define DMAC1   (*(volatile struct st_dmac1    __evenaccess *)0x82040)\r
6554 #define DMAC2   (*(volatile struct st_dmac1    __evenaccess *)0x82080)\r
6555 #define DMAC3   (*(volatile struct st_dmac1    __evenaccess *)0x820C0)\r
6556 #define DOC             (*(volatile struct st_doc      __evenaccess *)0x8B080)\r
6557 #define DTC             (*(volatile struct st_dtc      __evenaccess *)0x82400)\r
6558 #define ELC             (*(volatile struct st_elc      __evenaccess *)0x8B100)\r
6559 #define EXSYSTEM                (*(volatile struct st_exsystem __evenaccess *)0xFF7FFFF8)\r
6560 #define FLASH   (*(volatile struct st_flash    __evenaccess *)0x8C296)\r
6561 #define ICU             (*(volatile struct st_icu      __evenaccess *)0x87000)\r
6562 #define IWDT    (*(volatile struct st_iwdt     __evenaccess *)0x88030)\r
6563 #define MPC             (*(volatile struct st_mpc      __evenaccess *)0x8C11F)\r
6564 #define MTU             (*(volatile struct st_mtu      __evenaccess *)0x8860A)\r
6565 #define MTU0    (*(volatile struct st_mtu0     __evenaccess *)0x88700)\r
6566 #define MTU1    (*(volatile struct st_mtu1     __evenaccess *)0x88780)\r
6567 #define MTU2    (*(volatile struct st_mtu2     __evenaccess *)0x88800)\r
6568 #define MTU3    (*(volatile struct st_mtu3     __evenaccess *)0x88600)\r
6569 #define MTU4    (*(volatile struct st_mtu4     __evenaccess *)0x88600)\r
6570 #define MTU5    (*(volatile struct st_mtu5     __evenaccess *)0x88880)\r
6571 #define POE             (*(volatile struct st_poe      __evenaccess *)0x88900)\r
6572 #define PORT    (*(volatile struct st_port     __evenaccess *)0x8C100)\r
6573 #define PORT0   (*(volatile struct st_port0    __evenaccess *)0x8C000)\r
6574 #define PORT1   (*(volatile struct st_port1    __evenaccess *)0x8C001)\r
6575 #define PORT2   (*(volatile struct st_port2    __evenaccess *)0x8C002)\r
6576 #define PORT3   (*(volatile struct st_port3    __evenaccess *)0x8C003)\r
6577 #define PORT4   (*(volatile struct st_port4    __evenaccess *)0x8C004)\r
6578 #define PORT5   (*(volatile struct st_port5    __evenaccess *)0x8C005)\r
6579 #define PORTA   (*(volatile struct st_porta    __evenaccess *)0x8C00A)\r
6580 #define PORTB   (*(volatile struct st_portb    __evenaccess *)0x8C00B)\r
6581 #define PORTC   (*(volatile struct st_portc    __evenaccess *)0x8C00C)\r
6582 #define PORTD   (*(volatile struct st_portd    __evenaccess *)0x8C00D)\r
6583 #define PORTE   (*(volatile struct st_porte    __evenaccess *)0x8C00E)\r
6584 #define PORTH   (*(volatile struct st_porth    __evenaccess *)0x8C011)\r
6585 #define PORTJ   (*(volatile struct st_portj    __evenaccess *)0x8C012)\r
6586 #define RIIC0   (*(volatile struct st_riic     __evenaccess *)0x88300)\r
6587 #define RSPI0   (*(volatile struct st_rspi     __evenaccess *)0x88380)\r
6588 #define RTC             (*(volatile struct st_rtc      __evenaccess *)0x8C400)\r
6589 #define S12AD   (*(volatile struct st_s12ad    __evenaccess *)0x89000)\r
6590 #define SCI0    (*(volatile struct st_sci0     __evenaccess *)0x8A000)\r
6591 #define SCI1    (*(volatile struct st_sci1     __evenaccess *)0x8A020)\r
6592 #define SCI5    (*(volatile struct st_sci1     __evenaccess *)0x8A0A0)\r
6593 #define SCI6    (*(volatile struct st_sci1     __evenaccess *)0x8A0C0)\r
6594 #define SCI8    (*(volatile struct st_sci1     __evenaccess *)0x8A100)\r
6595 #define SCI9    (*(volatile struct st_sci1     __evenaccess *)0x8A120)\r
6596 #define SCI12   (*(volatile struct st_sci12    __evenaccess *)0x8B300)\r
6597 #define SMCI0   (*(volatile struct st_smci     __evenaccess *)0x8A000)\r
6598 #define SMCI1   (*(volatile struct st_smci     __evenaccess *)0x8A020)\r
6599 #define SMCI5   (*(volatile struct st_smci     __evenaccess *)0x8A0A0)\r
6600 #define SMCI6   (*(volatile struct st_smci     __evenaccess *)0x8A0C0)\r
6601 #define SMCI8   (*(volatile struct st_smci     __evenaccess *)0x8A100)\r
6602 #define SMCI9   (*(volatile struct st_smci     __evenaccess *)0x8A120)\r
6603 #define SMCI12  (*(volatile struct st_smci     __evenaccess *)0x8B300)\r
6604 #define SYSTEM  (*(volatile struct st_system   __evenaccess *)0x80000)\r
6605 #define TEMPS   (*(volatile struct st_temps    __evenaccess *)0x8C500)\r
6606 #define TMR0    (*(volatile struct st_tmr0     __evenaccess *)0x88200)\r
6607 #define TMR1    (*(volatile struct st_tmr1     __evenaccess *)0x88201)\r
6608 #define TMR2    (*(volatile struct st_tmr0     __evenaccess *)0x88210)\r
6609 #define TMR3    (*(volatile struct st_tmr1     __evenaccess *)0x88211)\r
6610 #define TMR01   (*(volatile struct st_tmr01    __evenaccess *)0x88204)\r
6611 #define TMR23   (*(volatile struct st_tmr01    __evenaccess *)0x88214)\r
6612 #define WDT             (*(volatile struct st_wdt      __evenaccess *)0x88020)\r
6613 #pragma bit_order\r
6614 #pragma packoption\r
6615 #endif