summaryrefslogtreecommitdiffstats
path: root/bsps/m68k/include/mcf532x/mcf532x.h
blob: 798fb1175b533ec92d79230f580e34345a94b44a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
/*
 * File:    mcf532x.h
 * Purpose: Register and bit definitions
 */

#ifndef __MCF532X_H__
#define __MCF532X_H__

/*********************************************************************
*
* Cache
*
*********************************************************************/

#define MCF_CACR_CENB                     (1 << 31)
#define MCF_CACR_ESB                      (1 << 29)
#define MCF_CACR_DPI                      (1 << 28)
#define MCF_CACR_HLCK                     (1 << 27)
#define MCF_CACR_CINVA                    (1 << 24)
#define MCF_CACR_DNFB                     (1 << 10)
#define MCF_CACR_DCM(A)                   (((A) & 0x3) << 8)
#define MCF_CACR_DW                       (1 << 5)
#define MCF_CACR_EUSP                     (1 << 4)

#define MCF_ACR_ADDR_BASE(A)              (((A) & 0xFF) << 24)
#define MCF_ACR_ADDR_MASK(A)              (((A) & 0xFF) << 16)
#define MCF_ACR_E                         (1 << 15)
#define MCF_ACR_S(A)                      (((A) & 0x3) << 13)
#define MCF_ACR_CM(A)                     (((A) & 0x3) << 5)
#define MCF_ACR_W                         (1 << 2)

/*********************************************************************
*
* System Control Module (SCM)
*
*********************************************************************/

/* Register read/write macros */
#define MCF_SCM_MPR0                      (*(vuint32*)(0xEC000000))
#define MCF_SCM_MPR1                      (*(vuint32*)(0xFC000000))
#define MCF_SCM_BMT0                      (*(vuint32*)(0xEC000054))
#define MCF_SCM_BMT1                      (*(vuint32*)(0xFC000054))
#define MCF_SCM_PACRA                     (*(vuint32*)(0xFC000020))
#define MCF_SCM_PACRB                     (*(vuint32*)(0xFC000024))
#define MCF_SCM_PACRC                     (*(vuint32*)(0xFC000028))
#define MCF_SCM_PACRD                     (*(vuint32*)(0xFC00002C))
#define MCF_SCM_PACRE                     (*(vuint32*)(0xFC000040))
#define MCF_SCM_PACRF                     (*(vuint32*)(0xFC000044))
#define MCF_SCM_PACRG                     (*(vuint32*)(0xEC000048))
#define MCF_SCM_PACRH                     (*(vuint32*)(0xEC000040))
#define MCF_SCM_CWCR                      (*(vuint16*)(0xFC040016))
#define MCF_SCM_CWSR                      (*(vuint8 *)(0xFC04001B))
#define MCF_SCM_CWIR                      (*(vuint8 *)(0xFC04001F))
#define MCF_SCM_BCR                       (*(vuint32*)(0xFC040024))
#define MCF_SCM_CFADR                     (*(vuint32*)(0xFC040070))
#define MCF_SCM_CFIER                     (*(vuint8 *)(0xFC040075))
#define MCF_SCM_CFLOC                     (*(vuint8 *)(0xFC040076))
#define MCF_SCM_CFATR                     (*(vuint8 *)(0xFC040077))
#define MCF_SCM_CFDTR                     (*(vuint32*)(0xFC04007C))

/* Bit definitions and macros for MCF_SCM_MPR */
#define MCF_SCM_MPR_MPROT6(x)             (((x)&0x0000000F)<<4)
#define MCF_SCM_MPR_MPROT5(x)             (((x)&0x0000000F)<<8)
#define MCF_SCM_MPR_MPROT4(x)             (((x)&0x0000000F)<<12)
#define MCF_SCM_MPR_MPROT2(x)             (((x)&0x0000000F)<<20)
#define MCF_SCM_MPR_MPROT1(x)             (((x)&0x0000000F)<<24)
#define MCF_SCM_MPR_MPROT0(x)             (((x)&0x0000000F)<<28)
#define MCF_SCM_MPR_MPROT_MTR             (0x4)
#define MCF_SCM_MPR_MPROT_MTW             (0x2)
#define MCF_SCM_MPR_MPROT_MPL             (0x1)

/* Bit definitions and macros for MCF_SCM_BMT */
#define MCF_SCM_BMT_BMT(x)                (((x)&0x00000007)<<0)
#define MCF_SCM_BMT_BME                   (0x00000008)
#define MCF_SCM_BMT_BMT_1024              (0x00000000)
#define MCF_SCM_BMT_BMT_512               (0x00000001)
#define MCF_SCM_BMT_BMT_256               (0x00000002)
#define MCF_SCM_BMT_BMT_128               (0x00000003)
#define MCF_SCM_BMT_BMT_64                (0x00000004)
#define MCF_SCM_BMT_BMT_32                (0x00000005)
#define MCF_SCM_BMT_BMT_16                (0x00000006)
#define MCF_SCM_BMT_BMT_8                 (0x00000007)

/* Bit definitions and macros for MCF_SCM_PACRA */
#define MCF_SCM_PACRA_PACR2(x)            (((x)&0x0000000F)<<20)
#define MCF_SCM_PACRA_PACR1(x)            (((x)&0x0000000F)<<24)
#define MCF_SCM_PACRA_PACR0(x)            (((x)&0x0000000F)<<28)
#define MCF_SCM_PACRA_PACR_SP             (0x4)
#define MCF_SCM_PACRA_PACR_WP             (0x2)
#define MCF_SCM_PACRA_PACR_TP             (0x1)

/* Bit definitions and macros for MCF_SCM_PACRB */
#define MCF_SCM_PACRB_PACR12(x)           (((x)&0x0000000F)<<12)
#define MCF_SCM_PACRB_PACR8(x)            (((x)&0x0000000F)<<28)

/* Bit definitions and macros for MCF_SCM_PACRC */
#define MCF_SCM_PACRC_PACR23(x)           (((x)&0x0000000F)<<0)
#define MCF_SCM_PACRC_PACR22(x)           (((x)&0x0000000F)<<4)
#define MCF_SCM_PACRC_PACR21(x)           (((x)&0x0000000F)<<8)
#define MCF_SCM_PACRC_PACR19(x)           (((x)&0x0000000F)<<16)
#define MCF_SCM_PACRC_PACR18(x)           (((x)&0x0000000F)<<20)
#define MCF_SCM_PACRC_PACR17(x)           (((x)&0x0000000F)<<24)
#define MCF_SCM_PACRC_PACR16(x)           (((x)&0x0000000F)<<28)

/* Bit definitions and macros for MCF_SCM_PACRD */
#define MCF_SCM_PACRD_PACR31(x)           (((x)&0x0000000F)<<0)
#define MCF_SCM_PACRD_PACR30(x)           (((x)&0x0000000F)<<4)
#define MCF_SCM_PACRD_PACR29(x)           (((x)&0x0000000F)<<8)
#define MCF_SCM_PACRD_PACR28(x)           (((x)&0x0000000F)<<12)
#define MCF_SCM_PACRD_PACR26(x)           (((x)&0x0000000F)<<20)
#define MCF_SCM_PACRD_PACR25(x)           (((x)&0x0000000F)<<24)
#define MCF_SCM_PACRD_PACR24(x)           (((x)&0x0000000F)<<28)

/* Bit definitions and macros for MCF_SCM_PACRE */
#define MCF_SCM_PACRE_PACR38(x)           (((x)&0x0000000F)<<4)
#define MCF_SCM_PACRE_PACR37(x)           (((x)&0x0000000F)<<8)
#define MCF_SCM_PACRE_PACR36(x)           (((x)&0x0000000F)<<12)
#define MCF_SCM_PACRE_PACR35(x)           (((x)&0x0000000F)<<16)
#define MCF_SCM_PACRE_PACR34(x)           (((x)&0x0000000F)<<20)
#define MCF_SCM_PACRE_PACR33(x)           (((x)&0x0000000F)<<24)
#define MCF_SCM_PACRE_PACR32(x)           (((x)&0x0000000F)<<28)

/* Bit definitions and macros for MCF_SCM_PACRF */
#define MCF_SCM_PACRF_PACR47(x)           (((x)&0x0000000F)<<0)
#define MCF_SCM_PACRF_PACR46(x)           (((x)&0x0000000F)<<4)
#define MCF_SCM_PACRF_PACR45(x)           (((x)&0x0000000F)<<8)
#define MCF_SCM_PACRF_PACR44(x)           (((x)&0x0000000F)<<12)
#define MCF_SCM_PACRF_PACR43(x)           (((x)&0x0000000F)<<16)
#define MCF_SCM_PACRF_PACR42(x)           (((x)&0x0000000F)<<20)
#define MCF_SCM_PACRF_PACR41(x)           (((x)&0x0000000F)<<24)
#define MCF_SCM_PACRF_PACR40(x)           (((x)&0x0000000F)<<28)

/* Bit definitions and macros for MCF_SCM_PACRG */
#define MCF_SCM_PACRG_PACR48(x)           (((x)&0x0000000F)<<28)

/* Bit definitions and macros for MCF_SCM_PACRH */
#define MCF_SCM_PACRH_PACR58(x)           (((x)&0x0000000F)<<20)
#define MCF_SCM_PACRH_PACR57(x)           (((x)&0x0000000F)<<24)
#define MCF_SCM_PACRH_PACR56(x)           (((x)&0x0000000F)<<28)

/* Bit definitions and macros for MCF_SCM_CWCR */
#define MCF_SCM_CWCR_CWT(x)               (((x)&0x001F)<<0)
#define MCF_SCM_CWCR_CWRI(x)              (((x)&0x0003)<<5)
#define MCF_SCM_CWCR_CWE                  (0x0080)
#define MCF_SCM_CWCR_CWR_WH               (0x0100)
#define MCF_SCM_CWCR_RO                   (0x8000)
#define MCF_SCM_CWCR_CWRI_INT             (0x0000)
#define MCF_SCM_CWCR_CWRI_INT_THEN_RESET  (0x0020)
#define MCF_SCM_CWCR_CWRI_RESET           (0x0040)
#define MCF_SCM_CWCR_CWRI_WINDOW          (0x0060)

/* Bit definitions and macros for MCF_SCM_CWSR */
#define MCF_SCM_CWSR_CWSR(x)              (((x)&0xFF)<<0)

/* Bit definitions and macros for MCF_SCM_CWIR */
#define MCF_SCM_CWIR_CWIC                 (0x01)
#define MCF_SCM_CWIR_CFEI                 (0x02)

/* Bit definitions and macros for MCF_SCM_BCR */
#define MCF_SCM_BCR_S1                    (0x00000002)
#define MCF_SCM_BCR_S4                    (0x00000010)
#define MCF_SCM_BCR_S6                    (0x00000040)
#define MCF_SCM_BCR_S7                    (0x00000080)
#define MCF_SCM_BCR_GBW                   (0x00000100)
#define MCF_SCM_BCR_GBR                   (0x00000200)

/* Bit definitions and macros for MCF_SCM_CFADR */
#define MCF_SCM_CFADR_ADDR(x)             (((x)&0xFFFFFFFF)<<0)

/* Bit definitions and macros for MCF_SCM_CFIER */
#define MCF_SCM_CFIER_ECFEI               (0x01)

/* Bit definitions and macros for MCF_SCM_CFLOC */
#define MCF_SCM_CFLOC_LOC                 (0x80)

/* Bit definitions and macros for MCF_SCM_CFATR */
#define MCF_SCM_CFATR_TYPE                (0x01)
#define MCF_SCM_CFATR_MODE                (0x02)
#define MCF_SCM_CFATR_CACHE               (0x08)
#define MCF_SCM_CFATR_SIZE(x)             (((x)&0x07)<<4)
#define MCF_SCM_CFATR_WRITE               (0x80)

/* Bit definitions and macros for MCF_SCM_CFDTR */
#define MCF_SCM_CFDTR_CFDTR(x)            (((x)&0xFFFFFFFF)<<0)

/*********************************************************************
*
* Message Digest Hardware Accelerator (MDHA)
*
*********************************************************************/

/* Register read/write macros */
#define MCF_MDHA_MDMR               (*(vuint32*)(0xEC080000))
#define MCF_MDHA_MDCR               (*(vuint32*)(0xEC080004))
#define MCF_MDHA_MDCMR              (*(vuint32*)(0xEC080008))
#define MCF_MDHA_MDSR               (*(vuint32*)(0xEC08000C))
#define MCF_MDHA_MDISR              (*(vuint32*)(0xEC080010))
#define MCF_MDHA_MDIMR              (*(vuint32*)(0xEC080014))
#define MCF_MDHA_MDDSR              (*(vuint32*)(0xEC08001C))
#define MCF_MDHA_MDIN               (*(vuint32*)(0xEC080020))
#define MCF_MDHA_MDA0               (*(vuint32*)(0xEC080030))
#define MCF_MDHA_MDB0               (*(vuint32*)(0xEC080034))
#define MCF_MDHA_MDC0               (*(vuint32*)(0xEC080038))
#define MCF_MDHA_MDD0               (*(vuint32*)(0xEC08003C))
#define MCF_MDHA_MDE0               (*(vuint32*)(0xEC080040))
#define MCF_MDHA_MDMDS              (*(vuint32*)(0xEC080044))
#define MCF_MDHA_MDA1               (*(vuint32*)(0xEC080070))
#define MCF_MDHA_MDB1               (*(vuint32*)(0xEC080074))
#define MCF_MDHA_MDC1               (*(vuint32*)(0xEC080078))
#define MCF_MDHA_MDD1               (*(vuint32*)(0xEC08007C))
#define MCF_MDHA_MDE1               (*(vuint32*)(0xEC080080))

/* Bit definitions and macros for MCF_MDHA_MDMR */
#define MCF_MDHA_MDMR_ALG           (0x00000001)
#define MCF_MDHA_MDMR_PDATA         (0x00000004)
#define MCF_MDHA_MDMR_MAC(x)        (((x)&0x00000003)<<3)
#define MCF_MDHA_MDMR_INIT          (0x00000020)
#define MCF_MDHA_MDMR_IPAD          (0x00000040)
#define MCF_MDHA_MDMR_OPAD          (0x00000080)
#define MCF_MDHA_MDMR_SWAP          (0x00000100)
#define MCF_MDHA_MDMR_MACFULL       (0x00000200)
#define MCF_MDHA_MDMR_SSL           (0x00000400)

/* Bit definitions and macros for MCF_MDHA_MDCR */
#define MCF_MDHA_MDCR_IE            (0x00000001)
#define MCF_MDHA_MDCR_DMA           (0x00000002)
#define MCF_MDHA_MDCR_ENDIAN        (0x00000004)
#define MCF_MDHA_MDCR_DMAL(x)       (((x)&0x0000001F)<<16)

/* Bit definitions and macros for MCF_MDHA_MDCMR */
#define MCF_MDHA_MDCMR_SWR          (0x00000001)
#define MCF_MDHA_MDCMR_RI           (0x00000002)
#define MCF_MDHA_MDCMR_CI           (0x00000004)
#define MCF_MDHA_MDCMR_GO           (0x00000008)

/* Bit definitions and macros for MCF_MDHA_MDSR */
#define MCF_MDHA_MDSR_INT           (0x00000001)
#define MCF_MDHA_MDSR_DONE          (0x00000002)
#define MCF_MDHA_MDSR_ERR           (0x00000004)
#define MCF_MDHA_MDSR_RD            (0x00000008)
#define MCF_MDHA_MDSR_BUSY          (0x00000010)
#define MCF_MDHA_MDSR_END           (0x00000020)
#define MCF_MDHA_MDSR_HSH           (0x00000040)
#define MCF_MDHA_MDSR_GNW           (0x00000080)
#define MCF_MDHA_MDSR_FS(x)         (((x)&0x00000007)<<8)
#define MCF_MDHA_MDSR_APD(x)        (((x)&0x00000007)<<13)
#define MCF_MDHA_MDSR_IFL(x)        (((x)&0x000000FF)<<16)

/* Bit definitions and macros for MCF_MDHA_MDISR */
#define MCF_MDHA_MDISR_IFO          (0x00000001)
#define MCF_MDHA_MDISR_NON          (0x00000004)
#define MCF_MDHA_MDISR_IME          (0x00000010)
#define MCF_MDHA_MDISR_IDS          (0x00000020)
#define MCF_MDHA_MDISR_RMDP         (0x00000080)
#define MCF_MDHA_MDISR_ERE          (0x00000100)
#define MCF_MDHA_MDISR_GTDS         (0x00000200)

/* Bit definitions and macros for MCF_MDHA_MDIMR */
#define MCF_MDHA_MDIMR_IFO          (0x00000001)
#define MCF_MDHA_MDIMR_NON          (0x00000004)
#define MCF_MDHA_MDIMR_IME          (0x00000010)
#define MCF_MDHA_MDIMR_IDS          (0x00000020)
#define MCF_MDHA_MDIMR_RMDP         (0x00000080)
#define MCF_MDHA_MDIMR_ERE          (0x00000100)
#define MCF_MDHA_MDIMR_GTDS         (0x00000200)

/* Bit definitions and macros for MCF_MDHA_MDDSR */
#define MCF_MDHA_MDDSR_DATASIZE(x)  (((x)&0x1FFFFFFF)<<0)

/* Bit definitions and macros for MCF_MDHA_MDIN */
#define MCF_MDHA_MDIN_DATAIN(x)     (((x)&0xFFFFFFFF)<<0)

/* Bit definitions and macros for MCF_MDHA_MDA0 */
#define MCF_MDHA_MDA0_DATA(x)       (((x)&0xFFFFFFFF)<<0)

/* Bit definitions and macros for MCF_MDHA_MDB0 */
#define MCF_MDHA_MDB0_DATA(x)       (((x)&0xFFFFFFFF)<<0)

/* Bit definitions and macros for MCF_MDHA_MDC0 */
#define MCF_MDHA_MDC0_DATA(x)       (((x)&0xFFFFFFFF)<<0)

/* Bit definitions and macros for MCF_MDHA_MDD0 */
#define MCF_MDHA_MDD0_DATA(x)       (((x)&0xFFFFFFFF)<<0)

/* Bit definitions and macros for MCF_MDHA_MDE0 */
#define MCF_MDHA_MDE0_DATA(x)       (((x)&0xFFFFFFFF)<<0)

/* Bit definitions and macros for MCF_MDHA_MDMDS */
#define MCF_MDHA_MDMDS_DATASIZE(x)  (((x)&0xFFFFFFFF)<<0)

/* Bit definitions and macros for MCF_MDHA_MDA1 */
#define MCF_MDHA_MDA1_DATA(x)       (((x)&0xFFFFFFFF)<<0)

/* Bit definitions and macros for MCF_MDHA_MDB1 */
#define MCF_MDHA_MDB1_DATA(x)       (((x)&0xFFFFFFFF)<<0)

/* Bit definitions and macros for MCF_MDHA_MDC1 */
#define MCF_MDHA_MDC1_DATA(x)       (((x)&0xFFFFFFFF)<<0)

/* Bit definitions and macros for MCF_MDHA_MDD1 */
#define MCF_MDHA_MDD1_DATA(x)       (((x)&0xFFFFFFFF)<<0)

/* Bit definitions and macros for MCF_MDHA_MDE1 */
#define MCF_MDHA_MDE1_DATA(x)       (((x)&0xFFFFFFFF)<<0)

/*********************************************************************
*
* Symmetric Key Hardware Accelerator (SKHA)
*
*********************************************************************/

/* Register read/write macros */
#define MCF_SKHA_SKMR               (*(vuint32*)(0xEC084000))
#define MCF_SKHA_SKCR               (*(vuint32*)(0xEC084004))
#define MCF_SKHA_SKCMR              (*(vuint32*)(0xEC084008))
#define MCF_SKHA_SKSR               (*(vuint32*)(0xEC08400C))
#define MCF_SKHA_SKISR              (*(vuint32*)(0xEC084010))
#define MCF_SKHA_SKIMR              (*(vuint32*)(0xEC084014))
#define MCF_SKHA_SKKSR              (*(vuint32*)(0xEC084018))
#define MCF_SKHA_SKDSR              (*(vuint32*)(0xEC08401C))
#define MCF_SKHA_SKIN               (*(vuint32*)(0xEC084020))
#define MCF_SKHA_SKOUT              (*(vuint32*)(0xEC084024))
#define MCF_SKHA_SKK0               (*(vuint32*)(0xEC084030))
#define MCF_SKHA_SKK1               (*(vuint32*)(0xEC084034))
#define MCF_SKHA_SKK2               (*(vuint32*)(0xEC084038))
#define MCF_SKHA_SKK3               (*(vuint32*)(0xEC08403C))
#define MCF_SKHA_SKK4               (*(vuint32*)(0xEC084040))
#define MCF_SKHA_SKK5               (*(vuint32*)(0xEC084044))
#define MCF_SKHA_SKK(x)             (*(vuint32*)(0xEC084030+((x)*0x004)))
#define MCF_SKHA_SKC0               (*(vuint32*)(0xEC084070))
#define MCF_SKHA_SKC1               (*(vuint32*)(0xEC084074))
#define MCF_SKHA_SKC2               (*(vuint32*)(0xEC084078))
#define MCF_SKHA_SKC3               (*(vuint32*)(0xEC08407C))
#define MCF_SKHA_SKC4               (*(vuint32*)(0xEC084080))
#define MCF_SKHA_SKC5               (*(vuint32*)(0xEC084084))
#define MCF_SKHA_SKC6               (*(vuint32*)(0xEC084088))
#define MCF_SKHA_SKC7               (*(vuint32*)(0xEC08408C))
#define MCF_SKHA_SKC8               (*(vuint32*)(0xEC084090))
#define MCF_SKHA_SKC9               (*(vuint32*)(0xEC084094))
#define MCF_SKHA_SKC10              (*(vuint32*)(0xEC084098))
#define MCF_SKHA_SKC11              (*(vuint32*)(0xEC08409C))
#define MCF_SKHA_SKC(x)             (*(vuint32*)(0xEC084070+((x)*0x004)))

/* Bit definitions and macros for MCF_SKHA_SKMR */
#define MCF_SKHA_SKMR_ALG(x)        (((x)&0x00000003)<<0)
#define MCF_SKHA_SKMR_DIR           (0x00000004)
#define MCF_SKHA_SKMR_CM(x)         (((x)&0x00000003)<<3)
#define MCF_SKHA_SKMR_DKP           (0x00000100)
#define MCF_SKHA_SKMR_CTRM(x)       (((x)&0x0000000F)<<9)
#define MCF_SKHA_SKMR_CM_ECB        (0x00000000)
#define MCF_SKHA_SKMR_CM_CBC        (0x00000008)
#define MCF_SKHA_SKMR_CM_CTR        (0x00000018)
#define MCF_SKHA_SKMR_DIR_DEC       (0x00000000)
#define MCF_SKHA_SKMR_DIR_ENC       (0x00000004)
#define MCF_SKHA_SKMR_ALG_AES       (0x00000000)
#define MCF_SKHA_SKMR_ALG_DES       (0x00000001)
#define MCF_SKHA_SKMR_ALG_TDES      (0x00000002)

/* Bit definitions and macros for MCF_SKHA_SKCR */
#define MCF_SKHA_SKCR_IE            (0x00000001)
#define MCF_SKHA_SKCR_IDMA          (0x00000002)
#define MCF_SKHA_SKCR_ODMA          (0x00000004)
#define MCF_SKHA_SKCR_ENDIAN        (0x00000008)
#define MCF_SKHA_SKCR_IDMAL(x)      (((x)&0x0000003F)<<16)
#define MCF_SKHA_SKCR_ODMAL(x)      (((x)&0x0000003F)<<24)

/* Bit definitions and macros for MCF_SKHA_SKCMR */
#define MCF_SKHA_SKCMR_SWR          (0x00000001)
#define MCF_SKHA_SKCMR_RI           (0x00000002)
#define MCF_SKHA_SKCMR_CI           (0x00000004)
#define MCF_SKHA_SKCMR_GO           (0x00000008)

/* Bit definitions and macros for MCF_SKHA_SKSR */
#define MCF_SKHA_SKSR_INT           (0x00000001)
#define MCF_SKHA_SKSR_DONE          (0x00000002)
#define MCF_SKHA_SKSR_ERR           (0x00000004)
#define MCF_SKHA_SKSR_RD            (0x00000008)
#define MCF_SKHA_SKSR_BUSY          (0x00000010)
#define MCF_SKHA_SKSR_IFL(x)        (((x)&0x000000FF)<<16)
#define MCF_SKHA_SKSR_OFL(x)        (((x)&0x000000FF)<<24)

/* Bit definitions and macros for MCF_SKHA_SKISR */
#define MCF_SKHA_SKISR_IFO          (0x00000001)
#define MCF_SKHA_SKISR_OFU          (0x00000002)
#define MCF_SKHA_SKISR_NEIF         (0x00000004)
#define MCF_SKHA_SKISR_NEOF         (0x00000008)
#define MCF_SKHA_SKISR_IME          (0x00000010)
#define MCF_SKHA_SKISR_DSE          (0x00000020)
#define MCF_SKHA_SKISR_KSE          (0x00000040)
#define MCF_SKHA_SKISR_RMDP         (0x00000080)
#define MCF_SKHA_SKISR_ERE          (0x00000100)
#define MCF_SKHA_SKISR_KPE          (0x00000200)
#define MCF_SKHA_SKISR_KRE          (0x00000400)
#define MCF_SKHA_SKISR_DRL          (0x00000800)

/* Bit definitions and macros for MCF_SKHA_SKIMR */
#define MCF_SKHA_SKIMR_IFO          (0x00000001)
#define MCF_SKHA_SKIMR_OFU          (0x00000002)
#define MCF_SKHA_SKIMR_NEIF         (0x00000004)
#define MCF_SKHA_SKIMR_NEOF         (0x00000008)
#define MCF_SKHA_SKIMR_IME          (0x00000010)
#define MCF_SKHA_SKIMR_DSE          (0x00000020)
#define MCF_SKHA_SKIMR_KSE          (0x00000040)
#define MCF_SKHA_SKIMR_RMDP         (0x00000080)
#define MCF_SKHA_SKIMR_ERE          (0x00000100)
#define MCF_SKHA_SKIMR_KPE          (0x00000200)
#define MCF_SKHA_SKIMR_KRE          (0x00000400)
#define MCF_SKHA_SKIMR_DRL          (0x00000800)

/* Bit definitions and macros for MCF_SKHA_SKKSR */
#define MCF_SKHA_SKKSR_KEYSIZE(x)   (((x)&0x0000003F)<<0)

/* Bit definitions and macros for MCF_SKHA_SKDSR */
#define MCF_SKHA_SKDSR_DATASIZE(x)  (((x)&0xFFFFFFFF)<<0)

/* Bit definitions and macros for MCF_SKHA_SKIN */
#define MCF_SKHA_SKIN_DATAIN(x)     (((x)&0xFFFFFFFF)<<0)

/* Bit definitions and macros for MCF_SKHA_SKOUT */
#define MCF_SKHA_SKOUT_DATAOUT(x)   (((x)&0xFFFFFFFF)<<0)

/* Bit definitions and macros for MCF_SKHA_SKK */
#define MCF_SKHA_SKK_KEY(x)         (((x)&0xFFFFFFFF)<<0)

/* Bit definitions and macros for MCF_SKHA_SKC */
#define MCF_SKHA_SKC_CONTEXT(x)     (((x)&0xFFFFFFFF)<<0)

/*********************************************************************
*
* Random Number Generator (RNG)
*
*********************************************************************/

/* Register read/write macros */
#define MCF_RNG_RNGCR             (*(vuint32*)(0xEC088000))
#define MCF_RNG_RNGSR             (*(vuint32*)(0xEC088004))
#define MCF_RNG_RNGER             (*(vuint32*)(0xEC088008))
#define MCF_RNG_RNGOUT            (*(vuint32*)(0xEC08800C))

/* Bit definitions and macros for MCF_RNG_RNGCR */
#define MCF_RNG_RNGCR_GO          (0x00000001)
#define MCF_RNG_RNGCR_HA          (0x00000002)
#define MCF_RNG_RNGCR_IM          (0x00000004)
#define MCF_RNG_RNGCR_CI          (0x00000008)

/* Bit definitions and macros for MCF_RNG_RNGSR */
#define MCF_RNG_RNGSR_SV          (0x00000001)
#define MCF_RNG_RNGSR_LRS         (0x00000002)
#define MCF_RNG_RNGSR_FUF         (0x00000004)
#define MCF_RNG_RNGSR_EI          (0x00000008)
#define MCF_RNG_RNGSR_OFL(x)      (((x)&0x000000FF)<<8)
#define MCF_RNG_RNGSR_OFS(x)      (((x)&0x000000FF)<<16)

/* Bit definitions and macros for MCF_RNG_RNGER */
#define MCF_RNG_RNGER_ENTROPY(x)  (((x)&0xFFFFFFFF)<<0)

/* Bit definitions and macros for MCF_RNG_RNGOUT */
#define MCF_RNG_RNGOUT_OUTPUT(x)  (((x)&0xFFFFFFFF)<<0)

/*********************************************************************
*
* Power Management Module (PMM)
*
*********************************************************************/

/* Register read/write macros */
#define MCF_PMM_WCR                             (*(vuint8 *)(0xFC040013))
#define MCF_PMM_PPMSR0                          (*(vuint8 *)(0xFC04002C))
#define MCF_PMM_PPMSR1                          (*(vuint8 *)(0xFC04002E))
#define MCF_PMM_PPMCR0                          (*(vuint8 *)(0xFC04002D))
#define MCF_PMM_PPMCR1                          (*(vuint8 *)(0xFC04002F))
#define MCF_PMM_PPMHR0                          (*(vuint32*)(0xFC040030))
#define MCF_PMM_PPMLR0                          (*(vuint32*)(0xFC040034))
#define MCF_PMM_PPMHR1                          (*(vuint32*)(0xFC040038))
#define MCF_PMM_LPCR                            (*(vuint8 *)(0xFC0A0007))

/* Bit definitions and macros for MCF_PMM_WCR */
#define MCF_PMM_WCR_PRILVL(x)                   (((x)&0x07)<<0)
#define MCF_PMM_WCR_ENBWCR                      (0x80)

/* Bit definitions and macros for MCF_PMM_PPMSR */
#define MCF_PMM_PPMSR_SMCD(x)                   (((x)&0x3F)<<0)
#define MCF_PMM_PPMSR_SAMCD                     (0x40)

/* Bit definitions and macros for MCF_PMM_PPMCR */
#define MCF_PMM_PPMCR_CMCD(x)                   (((x)&0x3F)<<0)
#define MCF_PMM_PPMCR_CAMCD                     (0x40)

/* Bit definitions and macros for MCF_PMM_PPMHR0 */
#define MCF_PMM_PPMHR0_CD32                     (0x00000001)
#define MCF_PMM_PPMHR0_CD33                     (0x00000002)
#define MCF_PMM_PPMHR0_CD34                     (0x00000004)
#define MCF_PMM_PPMHR0_CD35                     (0x00000008)
#define MCF_PMM_PPMHR0_CD36                     (0x00000010)
#define MCF_PMM_PPMHR0_CD37                     (0x00000020)
#define MCF_PMM_PPMHR0_CD38                     (0x00000040)
#define MCF_PMM_PPMHR0_CD40                     (0x00000100)
#define MCF_PMM_PPMHR0_CD41                     (0x00000200)
#define MCF_PMM_PPMHR0_CD42                     (0x00000400)
#define MCF_PMM_PPMHR0_CD43                     (0x00000800)
#define MCF_PMM_PPMHR0_CD44                     (0x00001000)
#define MCF_PMM_PPMHR0_CD45                     (0x00002000)
#define MCF_PMM_PPMHR0_CD46                     (0x00004000)
#define MCF_PMM_PPMHR0_CD47                     (0x00008000)
#define MCF_PMM_PPMHR0_CD48                     (0x00010000)

/* Bit definitions and macros for MCF_PMM_PPMLR0 */
#define MCF_PMM_PPMLR0_CD2                      (0x00000004)
#define MCF_PMM_PPMLR0_CD8                      (0x00000100)
#define MCF_PMM_PPMLR0_CD12                     (0x00001000)
#define MCF_PMM_PPMLR0_CD17                     (0x00020000)
#define MCF_PMM_PPMLR0_CD18                     (0x00040000)
#define MCF_PMM_PPMLR0_CD19                     (0x00080000)
#define MCF_PMM_PPMLR0_CD21                     (0x00200000)
#define MCF_PMM_PPMLR0_CD22                     (0x00400000)
#define MCF_PMM_PPMLR0_CD23                     (0x00800000)
#define MCF_PMM_PPMLR0_CD24                     (0x01000000)
#define MCF_PMM_PPMLR0_CD25                     (0x02000000)
#define MCF_PMM_PPMLR0_CD26                     (0x04000000)
#define MCF_PMM_PPMLR0_CD28                     (0x10000000)
#define MCF_PMM_PPMLR0_CD29                     (0x20000000)
#define MCF_PMM_PPMLR0_CD30                     (0x40000000)
#define MCF_PMM_PPMLR0_CD31                     (0x80000000)

/* Bit definitions and macros for MCF_PMM_PPMHR1 */
#define MCF_PMM_PPMHR1_CD32                     (0x00000001)
#define MCF_PMM_PPMHR1_CD33                     (0x00000002)
#define MCF_PMM_PPMHR1_CD34                     (0x00000004)

/* Bit definitions and macros for MCF_PMM_LPCR */
#define MCF_PMM_LPCR_STPMD(x)                   (((x)&0x03)<<3)
#define MCF_PMM_LPCR_FWKUP                      (0x20)
#define MCF_PMM_LPCR_LPMD(x)                    (((x)&0x03)<<6)
#define MCF_PMM_LPCR_LPMD_RUN                   (0x00)
#define MCF_PMM_LPCR_LPMD_DOZE                  (0x40)
#define MCF_PMM_LPCR_LPMD_WAIT                  (0x80)
#define MCF_PMM_LPCR_LPMD_STOP                  (0xC0)
#define MCF_PMM_LPCR_STPMD_SYS_DISABLED         (0x00)
#define MCF_PMM_LPCR_STPMD_SYS_BUSCLK_DISABLED  (0x04)
#define MCF_PMM_LPCR_STPMD_ONLY_OSC_ENABLED     (0x08)
#define MCF_PMM_LPCR_STPMD_ALL_DISABLED         (0x0C)

/*********************************************************************
*
* Cross-bar switch (XBS)
*
*********************************************************************/

/* Register read/write macros */
#define MCF_XBS_PRS1                     (*(vuint32*)(0xFC004100))
#define MCF_XBS_PRS2                     (*(vuint32*)(0xFC004200))
#define MCF_XBS_PRS3                     (*(vuint32*)(0xFC004300))
#define MCF_XBS_PRS4                     (*(vuint32*)(0xFC004400))
#define MCF_XBS_PRS5                     (*(vuint32*)(0xFC004500))
#define MCF_XBS_PRS6                     (*(vuint32*)(0xFC004600))
#define MCF_XBS_PRS7                     (*(vuint32*)(0xFC004700))
#define MCF_XBS_PRS(x)                   (*(vuint32*)(0xFC004100+((x-1)*0x100)))
#define MCF_XBS_CRS1                     (*(vuint32*)(0xFC004110))
#define MCF_XBS_CRS2                     (*(vuint32*)(0xFC004210))
#define MCF_XBS_CRS3                     (*(vuint32*)(0xFC004310))
#define MCF_XBS_CRS4                     (*(vuint32*)(0xFC004410))
#define MCF_XBS_CRS5                     (*(vuint32*)(0xFC004510))
#define MCF_XBS_CRS6                     (*(vuint32*)(0xFC004610))
#define MCF_XBS_CRS7                     (*(vuint32*)(0xFC004710))
#define MCF_XBS_CRS(x)                   (*(vuint32*)(0xFC004110+((x-1)*0x100)))

/* Bit definitions and macros for MCF_XBS_PRS */
#define MCF_XBS_PRS_M0(x)                (((x)&0x00000007)<<0)
#define MCF_XBS_PRS_M1(x)                (((x)&0x00000007)<<4)
#define MCF_XBS_PRS_M2(x)                (((x)&0x00000007)<<8)
#define MCF_XBS_PRS_M4(x)                (((x)&0x00000007)<<16)
#define MCF_XBS_PRS_M5(x)                (((x)&0x00000007)<<20)
#define MCF_XBS_PRS_M6(x)                (((x)&0x00000007)<<24)

/* Bit definitions and macros for MCF_XBS_CRS */
#define MCF_XBS_CRS_PARK(x)              (((x)&0x00000007)<<0)
#define MCF_XBS_CRS_PCTL(x)              (((x)&0x00000003)<<4)
#define MCF_XBS_CRS_ARB                  (0x00000100)
#define MCF_XBS_CRS_RO                   (0x80000000)
#define MCF_XBS_CRS_PCTL_PARK_FIELD      (0x00000000)
#define MCF_XBS_CRS_PCTL_PARK_ON_LAST    (0x00000010)
#define MCF_XBS_CRS_PCTL_PARK_NO_MASTER  (0x00000020)
#define MCF_XBS_CRS_PCTL_PARK_CORE       (0x00000000)
#define MCF_XBS_CRS_PCTL_PARK_EDMA       (0x00000001)
#define MCF_XBS_CRS_PCTL_PARK_FEC        (0x00000002)

/*********************************************************************
*
* FlexBus Chip Selects (FBCS)
*
*********************************************************************/

/* Register read/write macros */
#define MCF_FBCS0_CSAR           (*(vuint32*)(0xFC008000))
#define MCF_FBCS0_CSMR           (*(vuint32*)(0xFC008004))
#define MCF_FBCS0_CSCR           (*(vuint32*)(0xFC008008))
#define MCF_FBCS1_CSAR           (*(vuint32*)(0xFC00800C))
#define MCF_FBCS1_CSMR           (*(vuint32*)(0xFC008010))
#define MCF_FBCS1_CSCR           (*(vuint32*)(0xFC008014))
#define MCF_FBCS2_CSAR           (*(vuint32*)(0xFC008018))
#define MCF_FBCS2_CSMR           (*(vuint32*)(0xFC00801C))
#define MCF_FBCS2_CSCR           (*(vuint32*)(0xFC008020))
#define MCF_FBCS3_CSAR           (*(vuint32*)(0xFC008024))
#define MCF_FBCS3_CSMR           (*(vuint32*)(0xFC008028))
#define MCF_FBCS3_CSCR           (*(vuint32*)(0xFC00802C))
#define MCF_FBCS4_CSAR           (*(vuint32*)(0xFC008030))
#define MCF_FBCS4_CSMR           (*(vuint32*)(0xFC008034))
#define MCF_FBCS4_CSCR           (*(vuint32*)(0xFC008038))
#define MCF_FBCS5_CSAR           (*(vuint32*)(0xFC00803C))
#define MCF_FBCS5_CSMR           (*(vuint32*)(0xFC008040))
#define MCF_FBCS5_CSCR           (*(vuint32*)(0xFC008044))
#define MCF_FBCS_CSAR(x)         (*(vuint32*)(0xFC008000+((x)*0x00C)))
#define MCF_FBCS_CSMR(x)         (*(vuint32*)(0xFC008004+((x)*0x00C)))
#define MCF_FBCS_CSCR(x)         (*(vuint32*)(0xFC008008+((x)*0x00C)))

/* Bit definitions and macros for MCF_FBCS_CSAR */
#define MCF_FBCS_CSAR_BA(x)      ((x)&0xFFFF0000)

/* Bit definitions and macros for MCF_FBCS_CSMR */
#define MCF_FBCS_CSMR_V          (0x00000001)
#define MCF_FBCS_CSMR_WP         (0x00000100)
#define MCF_FBCS_CSMR_BAM(x)     (((x)&0x0000FFFF)<<16)
#define MCF_FBCS_CSMR_BAM_4G     (0xFFFF0000)
#define MCF_FBCS_CSMR_BAM_2G     (0x7FFF0000)
#define MCF_FBCS_CSMR_BAM_1G     (0x3FFF0000)
#define MCF_FBCS_CSMR_BAM_1024M  (0x3FFF0000)
#define MCF_FBCS_CSMR_BAM_512M   (0x1FFF0000)
#define MCF_FBCS_CSMR_BAM_256M   (0x0FFF0000)
#define MCF_FBCS_CSMR_BAM_128M   (0x07FF0000)
#define MCF_FBCS_CSMR_BAM_64M    (0x03FF0000)
#define MCF_FBCS_CSMR_BAM_32M    (0x01FF0000)
#define MCF_FBCS_CSMR_BAM_16M    (0x00FF0000)
#define MCF_FBCS_CSMR_BAM_8M     (0x007F0000)
#define MCF_FBCS_CSMR_BAM_4M     (0x003F0000)
#define MCF_FBCS_CSMR_BAM_2M     (0x001F0000)
#define MCF_FBCS_CSMR_BAM_1M     (0x000F0000)
#define MCF_FBCS_CSMR_BAM_1024K  (0x000F0000)
#define MCF_FBCS_CSMR_BAM_512K   (0x00070000)
#define MCF_FBCS_CSMR_BAM_256K   (0x00030000)
#define MCF_FBCS_CSMR_BAM_128K   (0x00010000)
#define MCF_FBCS_CSMR_BAM_64K    (0x00000000)

/* Bit definitions and macros for MCF_FBCS_CSCR */
#define MCF_FBCS_CSCR_BSTW       (0x00000008)
#define MCF_FBCS_CSCR_BSTR       (0x00000010)
#define MCF_FBCS_CSCR_BEM        (0x00000020)
#define MCF_FBCS_CSCR_PS(x)      (((x)&0x00000003)<<6)
#define MCF_FBCS_CSCR_AA         (0x00000100)
#define MCF_FBCS_CSCR_SBM        (0x00000200)
#define MCF_FBCS_CSCR_WS(x)      (((x)&0x0000003F)<<10)
#define MCF_FBCS_CSCR_WRAH(x)    (((x)&0x00000003)<<16)
#define MCF_FBCS_CSCR_RDAH(x)    (((x)&0x00000003)<<18)
#define MCF_FBCS_CSCR_ASET(x)    (((x)&0x00000003)<<20)
#define MCF_FBCS_CSCR_SWSEN      (0x00800000)
#define MCF_FBCS_CSCR_SWS(x)     (((x)&0x0000003F)<<26)
#define MCF_FBCS_CSCR_PS_8       (0x00000040)
#define MCF_FBCS_CSCR_PS_16      (0x00000080)
#define MCF_FBCS_CSCR_PS_32      (0x00000000)

/*********************************************************************
*
* FlexCAN Module (CAN)
*
*********************************************************************/

/* Register read/write macros */
#define MCF_CAN_CANMCR                   (*(vuint32*)(0xFC020000))
#define MCF_CAN_CANCTRL                  (*(vuint32*)(0xFC020004))
#define MCF_CAN_TIMER                    (*(vuint32*)(0xFC020008))
#define MCF_CAN_RXGMASK                  (*(vuint32*)(0xFC020010))
#define MCF_CAN_RX14MASK                 (*(vuint32*)(0xFC020014))
#define MCF_CAN_RX15MASK                 (*(vuint32*)(0xFC020018))
#define MCF_CAN_ERRCNT                   (*(vuint32*)(0xFC02001C))
#define MCF_CAN_ERRSTAT                  (*(vuint32*)(0xFC020020))
#define MCF_CAN_IMASK                    (*(vuint32*)(0xFC020028))
#define MCF_CAN_IFLAG                    (*(vuint32*)(0xFC020030))

/* Bit definitions and macros for MCF_CAN_CANMCR */
#define MCF_CAN_CANMCR_MAXMB(x)          (((x)&0x0000000F)<<0)
#define MCF_CAN_CANMCR_LPMACK            (0x00100000)
#define MCF_CAN_CANMCR_SUPV              (0x00800000)
#define MCF_CAN_CANMCR_FRZACK            (0x01000000)
#define MCF_CAN_CANMCR_SOFTRST           (0x02000000)
#define MCF_CAN_CANMCR_NOTRDY            (0x08000000)
#define MCF_CAN_CANMCR_HALT              (0x10000000)
#define MCF_CAN_CANMCR_FRZ               (0x40000000)
#define MCF_CAN_CANMCR_MDIS              (0x80000000)

/* Bit definitions and macros for MCF_CAN_CANCTRL */
#define MCF_CAN_CANCTRL_PROPSEG(x)       (((x)&0x00000007)<<0)
#define MCF_CAN_CANCTRL_LOM              (0x00000008)
#define MCF_CAN_CANCTRL_LBUF             (0x00000010)
#define MCF_CAN_CANCTRL_TSYNC            (0x00000020)
#define MCF_CAN_CANCTRL_BOFFREC          (0x00000040)
#define MCF_CAN_CANCTRL_SAMP             (0x00000080)
#define MCF_CAN_CANCTRL_LPB              (0x00001000)
#define MCF_CAN_CANCTRL_CLKSRC           (0x00002000)
#define MCF_CAN_CANCTRL_ERRMSK           (0x00004000)
#define MCF_CAN_CANCTRL_BOFFMSK          (0x00008000)
#define MCF_CAN_CANCTRL_PSEG2(x)         (((x)&0x00000007)<<16)
#define MCF_CAN_CANCTRL_PSEG1(x)         (((x)&0x00000007)<<19)
#define MCF_CAN_CANCTRL_RJW(x)           (((x)&0x00000003)<<22)
#define MCF_CAN_CANCTRL_PRESDIV(x)       (((x)&0x000000FF)<<24)

/* Bit definitions and macros for MCF_CAN_TIMER */
#define MCF_CAN_TIMER_TIMER(x)           (((x)&0x0000FFFF)<<0)

/* Bit definitions and macros for MCF_CAN_RXGMASK */
#define MCF_CAN_RXGMASK_MI(x)            (((x)&0x1FFFFFFF)<<0)

/* Bit definitions and macros for MCF_CAN_RX14MASK */
#define MCF_CAN_RX14MASK_MI(x)           (((x)&0x1FFFFFFF)<<0)

/* Bit definitions and macros for MCF_CAN_RX15MASK */
#define MCF_CAN_RX15MASK_MI(x)           (((x)&0x1FFFFFFF)<<0)

/* Bit definitions and macros for MCF_CAN_ERRCNT */
#define MCF_CAN_ERRCNT_TXECTR(x)         (((x)&0x000000FF)<<0)
#define MCF_CAN_ERRCNT_RXECTR(x)         (((x)&0x000000FF)<<8)

/* Bit definitions and macros for MCF_CAN_ERRSTAT */
#define MCF_CAN_ERRSTAT_WAKINT           (0x00000001)
#define MCF_CAN_ERRSTAT_ERRINT           (0x00000002)
#define MCF_CAN_ERRSTAT_BOFFINT          (0x00000004)
#define MCF_CAN_ERRSTAT_FLTCONF(x)       (((x)&0x00000003)<<4)
#define MCF_CAN_ERRSTAT_TXRX             (0x00000040)
#define MCF_CAN_ERRSTAT_IDLE             (0x00000080)
#define MCF_CAN_ERRSTAT_RXWRN            (0x00000100)
#define MCF_CAN_ERRSTAT_TXWRN            (0x00000200)
#define MCF_CAN_ERRSTAT_STFERR           (0x00000400)
#define MCF_CAN_ERRSTAT_FRMERR           (0x00000800)
#define MCF_CAN_ERRSTAT_CRCERR           (0x00001000)
#define MCF_CAN_ERRSTAT_ACKERR           (0x00002000)
#define MCF_CAN_ERRSTAT_BITERR(x)        (((x)&0x00000003)<<14)
#define MCF_CAN_ERRSTAT_FLTCONF_ACTIVE   (0x00000000)
#define MCF_CAN_ERRSTAT_FLTCONF_PASSIVE  (0x00000010)
#define MCF_CAN_ERRSTAT_FLTCONF_BUSOFF   (0x00000020)

/* Bit definitions and macros for MCF_CAN_IMASK */
#define MCF_CAN_IMASK_BUF0M              (0x00000001)
#define MCF_CAN_IMASK_BUF1M              (0x00000002)
#define MCF_CAN_IMASK_BUF2M              (0x00000004)
#define MCF_CAN_IMASK_BUF3M              (0x00000008)
#define MCF_CAN_IMASK_BUF4M              (0x00000010)
#define MCF_CAN_IMASK_BUF5M              (0x00000020)
#define MCF_CAN_IMASK_BUF6M              (0x00000040)
#define MCF_CAN_IMASK_BUF7M              (0x00000080)
#define MCF_CAN_IMASK_BUF8M              (0x00000100)
#define MCF_CAN_IMASK_BUF9M              (0x00000200)
#define MCF_CAN_IMASK_BUF10M             (0x00000400)
#define MCF_CAN_IMASK_BUF11M             (0x00000800)
#define MCF_CAN_IMASK_BUF12M             (0x00001000)
#define MCF_CAN_IMASK_BUF13M             (0x00002000)
#define MCF_CAN_IMASK_BUF14M             (0x00004000)
#define MCF_CAN_IMASK_BUF15M             (0x00008000)
#define MCF_CAN_IMASK_BUF(x)             (1<<x)

/* Bit definitions and macros for MCF_CAN_IFLAG */
#define MCF_CAN_IFLAG_BUF0I              (0x00000001)
#define MCF_CAN_IFLAG_BUF1I              (0x00000002)
#define MCF_CAN_IFLAG_BUF2I              (0x00000004)
#define MCF_CAN_IFLAG_BUF3I              (0x00000008)
#define MCF_CAN_IFLAG_BUF4I              (0x00000010)
#define MCF_CAN_IFLAG_BUF5I              (0x00000020)
#define MCF_CAN_IFLAG_BUF6I              (0x00000040)
#define MCF_CAN_IFLAG_BUF7I              (0x00000080)
#define MCF_CAN_IFLAG_BUF8I              (0x00000100)
#define MCF_CAN_IFLAG_BUF9I              (0x00000200)
#define MCF_CAN_IFLAG_BUF10I             (0x00000400)
#define MCF_CAN_IFLAG_BUF11I             (0x00000800)
#define MCF_CAN_IFLAG_BUF12I             (0x00001000)
#define MCF_CAN_IFLAG_BUF13I             (0x00002000)
#define MCF_CAN_IFLAG_BUF14I             (0x00004000)
#define MCF_CAN_IFLAG_BUF15I             (0x00008000)
#define MCF_CAN_IFLAG_BUF(x)             (1<<x)

/*********************************************************************
*
* Fast Ethernet Controller (FEC)
*
*********************************************************************/

/* Register read/write macros */
#define MCF_FEC_EIR                   (*(vuint32*)(0xFC030004))
#define MCF_FEC_EIMR                  (*(vuint32*)(0xFC030008))
#define MCF_FEC_RDAR                  (*(vuint32*)(0xFC030010))
#define MCF_FEC_TDAR                  (*(vuint32*)(0xFC030014))
#define MCF_FEC_ECR                   (*(vuint32*)(0xFC030024))
#define MCF_FEC_MMFR                  (*(vuint32*)(0xFC030040))
#define MCF_FEC_MSCR                  (*(vuint32*)(0xFC030044))
#define MCF_FEC_MIBC                  (*(vuint32*)(0xFC030064))
#define MCF_FEC_RCR                   (*(vuint32*)(0xFC030084))
#define MCF_FEC_TCR                   (*(vuint32*)(0xFC0300C4))
#define MCF_FEC_PALR                  (*(vuint32*)(0xFC0300E4))
#define MCF_FEC_PAUR                  (*(vuint32*)(0xFC0300E8))
#define MCF_FEC_OPD                   (*(vuint32*)(0xFC0300EC))
#define MCF_FEC_IAUR                  (*(vuint32*)(0xFC030118))
#define MCF_FEC_IALR                  (*(vuint32*)(0xFC03011C))
#define MCF_FEC_GAUR                  (*(vuint32*)(0xFC030120))
#define MCF_FEC_GALR                  (*(vuint32*)(0xFC030124))
#define MCF_FEC_TFWR                  (*(vuint32*)(0xFC030144))
#define MCF_FEC_FRBR                  (*(vuint32*)(0xFC03014C))
#define MCF_FEC_FRSR                  (*(vuint32*)(0xFC030150))
#define MCF_FEC_ERDSR                 (*(vuint32*)(0xFC030180))
#define MCF_FEC_ETDSR                 (*(vuint32*)(0xFC030184))
#define MCF_FEC_EMRBR                 (*(vuint32*)(0xFC030188))
#define MCF_FEC_RMON_T_DROP           (*(vuint32*)(0xFC030200))
#define MCF_FEC_RMON_T_PACKETS        (*(vuint32*)(0xFC030204))
#define MCF_FEC_RMON_T_BC_PKT         (*(vuint32*)(0xFC030208))
#define MCF_FEC_RMON_T_MC_PKT         (*(vuint32*)(0xFC03020C))
#define MCF_FEC_RMON_T_CRC_ALIGN      (*(vuint32*)(0xFC030210))
#define MCF_FEC_RMON_T_UNDERSIZE      (*(vuint32*)(0xFC030214))
#define MCF_FEC_RMON_T_OVERSIZE       (*(vuint32*)(0xFC030218))
#define MCF_FEC_RMON_T_FRAG           (*(vuint32*)(0xFC03021C))
#define MCF_FEC_RMON_T_JAB            (*(vuint32*)(0xFC030220))
#define MCF_FEC_RMON_T_COL            (*(vuint32*)(0xFC030224))
#define MCF_FEC_RMON_T_P64            (*(vuint32*)(0xFC030228))
#define MCF_FEC_RMON_T_P65TO127       (*(vuint32*)(0xFC03022C))
#define MCF_FEC_RMON_T_P128TO255      (*(vuint32*)(0xFC030230))
#define MCF_FEC_RMON_T_P256TO511      (*(vuint32*)(0xFC030234))
#define MCF_FEC_RMON_T_P512TO1023     (*(vuint32*)(0xFC030238))
#define MCF_FEC_RMON_T_P1024TO2047    (*(vuint32*)(0xFC03023C))
#define MCF_FEC_RMON_T_P_GTE2048      (*(vuint32*)(0xFC030240))
#define MCF_FEC_RMON_T_OCTETS         (*(vuint32*)(0xFC030244))
#define MCF_FEC_IEEE_T_DROP           (*(vuint32*)(0xFC030248))
#define MCF_FEC_IEEE_T_FRAME_OK       (*(vuint32*)(0xFC03024C))
#define MCF_FEC_IEEE_T_1COL           (*(vuint32*)(0xFC030250))
#define MCF_FEC_IEEE_T_MCOL           (*(vuint32*)(0xFC030254))
#define MCF_FEC_IEEE_T_DEF            (*(vuint32*)(0xFC030258))
#define MCF_FEC_IEEE_T_LCOL           (*(vuint32*)(0xFC03025C))
#define MCF_FEC_IEEE_T_EXCOL          (*(vuint32*)(0xFC030260))
#define MCF_FEC_IEEE_T_MACERR         (*(vuint32*)(0xFC030264))
#define MCF_FEC_IEEE_T_CSERR          (*(vuint32*)(0xFC030268))
#define MCF_FEC_IEEE_T_SQE            (*(vuint32*)(0xFC03026C))
#define MCF_FEC_IEEE_T_FDXFC          (*(vuint32*)(0xFC030270))
#define MCF_FEC_IEEE_T_OCTETS_OK      (*(vuint32*)(0xFC030274))
#define MCF_FEC_RMON_R_PACKETS        (*(vuint32*)(0xFC030284))
#define MCF_FEC_RMON_R_BC_PKT         (*(vuint32*)(0xFC030288))
#define MCF_FEC_RMON_R_MC_PKT         (*(vuint32*)(0xFC03028C))
#define MCF_FEC_RMON_R_CRC_ALIGN      (*(vuint32*)(0xFC030290))
#define MCF_FEC_RMON_R_UNDERSIZE      (*(vuint32*)(0xFC030294))
#define MCF_FEC_RMON_R_OVERSIZE       (*(vuint32*)(0xFC030298))
#define MCF_FEC_RMON_R_FRAG           (*(vuint32*)(0xFC03029C))
#define MCF_FEC_RMON_R_JAB            (*(vuint32*)(0xFC0302A0))
#define MCF_FEC_RMON_R_RESVD_0        (*(vuint32*)(0xFC0302A4))
#define MCF_FEC_RMON_R_P64            (*(vuint32*)(0xFC0302A8))
#define MCF_FEC_RMON_R_P65TO127       (*(vuint32*)(0xFC0302AC))
#define MCF_FEC_RMON_R_P128TO255      (*(vuint32*)(0xFC0302B0))
#define MCF_FEC_RMON_R_P256TO511      (*(vuint32*)(0xFC0302B4))
#define MCF_FEC_RMON_R_512TO1023      (*(vuint32*)(0xFC0302B8))
#define MCF_FEC_RMON_R_P_GTE2048      (*(vuint32*)(0xFC0302C0))
#define MCF_FEC_RMON_R_1024TO2047     (*(vuint32*)(0xFC0302BC))
#define MCF_FEC_RMON_R_OCTETS         (*(vuint32*)(0xFC0302C4))
#define MCF_FEC_IEEE_R_DROP           (*(vuint32*)(0xFC0302C8))
#define MCF_FEC_IEEE_R_FRAME_OK       (*(vuint32*)(0xFC0302CC))
#define MCF_FEC_IEEE_R_CRC            (*(vuint32*)(0xFC0302D0))
#define MCF_FEC_IEEE_R_ALIGN          (*(vuint32*)(0xFC0302D4))
#define MCF_FEC_IEEE_R_MACERR         (*(vuint32*)(0xFC0302D8))
#define MCF_FEC_IEEE_R_FDXFC          (*(vuint32*)(0xFC0302DC))
#define MCF_FEC_IEEE_R_OCTETS_OK      (*(vuint32*)(0xFC0302E0))

/* Bit definitions and macros for MCF_FEC_EIR */
#define MCF_FEC_EIR_UN                (0x00080000)
#define MCF_FEC_EIR_RL                (0x00100000)
#define MCF_FEC_EIR_LC                (0x00200000)
#define MCF_FEC_EIR_EBERR             (0x00400000)
#define MCF_FEC_EIR_MII               (0x00800000)
#define MCF_FEC_EIR_RXB               (0x01000000)
#define MCF_FEC_EIR_RXF               (0x02000000)
#define MCF_FEC_EIR_TXB               (0x04000000)
#define MCF_FEC_EIR_TXF               (0x08000000)
#define MCF_FEC_EIR_GRA               (0x10000000)
#define MCF_FEC_EIR_BABT              (0x20000000)
#define MCF_FEC_EIR_BABR              (0x40000000)
#define MCF_FEC_EIR_HBERR             (0x80000000)
#define MCF_FEC_EIR_CLEAR_ALL         (0xFFFFFFFF)

/* Bit definitions and macros for MCF_FEC_EIMR */
#define MCF_FEC_EIMR_UN               (0x00080000)
#define MCF_FEC_EIMR_RL               (0x00100000)
#define MCF_FEC_EIMR_LC               (0x00200000)
#define MCF_FEC_EIMR_EBERR            (0x00400000)
#define MCF_FEC_EIMR_MII              (0x00800000)
#define MCF_FEC_EIMR_RXB              (0x01000000)
#define MCF_FEC_EIMR_RXF              (0x02000000)
#define MCF_FEC_EIMR_TXB              (0x04000000)
#define MCF_FEC_EIMR_TXF              (0x08000000)
#define MCF_FEC_EIMR_GRA              (0x10000000)
#define MCF_FEC_EIMR_BABT             (0x20000000)
#define MCF_FEC_EIMR_BABR             (0x40000000)
#define MCF_FEC_EIMR_HBERR            (0x80000000)
#define MCF_FEC_EIMR_MASK_ALL         (0x00000000)
#define MCF_FEC_EIMR_UNMASK_ALL       (0xFFFFFFFF)

/* Bit definitions and macros for MCF_FEC_RDAR */
#define MCF_FEC_RDAR_R_DES_ACTIVE     (0x01000000)

/* Bit definitions and macros for MCF_FEC_TDAR */
#define MCF_FEC_TDAR_X_DES_ACTIVE     (0x01000000)

/* Bit definitions and macros for MCF_FEC_ECR */
#define MCF_FEC_ECR_RESET             (0x00000001)
#define MCF_FEC_ECR_ETHER_EN          (0x00000002)

/* Bit definitions and macros for MCF_FEC_MMFR */
#define MCF_FEC_MMFR_DATA(x)          (((x)&0x0000FFFF)<<0)
#define MCF_FEC_MMFR_TA(x)            (((x)&0x00000003)<<16)
#define MCF_FEC_MMFR_RA(x)            (((x)&0x0000001F)<<18)
#define MCF_FEC_MMFR_PA(x)            (((x)&0x0000001F)<<23)
#define MCF_FEC_MMFR_OP(x)            (((x)&0x00000003)<<28)
#define MCF_FEC_MMFR_ST(x)            (((x)&0x00000003)<<30)
#define MCF_FEC_MMFR_ST_01            (0x40000000)
#define MCF_FEC_MMFR_OP_READ          (0x20000000)
#define MCF_FEC_MMFR_OP_WRITE         (0x10000000)
#define MCF_FEC_MMFR_TA_10            (0x00020000)

/* Bit definitions and macros for MCF_FEC_MSCR */
#define MCF_FEC_MSCR_MII_SPEED(x)     (((x)&0x0000003F)<<1)
#define MCF_FEC_MSCR_DIS_PREAMBLE     (0x00000080)

/* Bit definitions and macros for MCF_FEC_MIBC */
#define MCF_FEC_MIBC_MIB_IDLE         (0x40000000)
#define MCF_FEC_MIBC_MIB_DISABLE      (0x80000000)

/* Bit definitions and macros for MCF_FEC_RCR */
#define MCF_FEC_RCR_LOOP              (0x00000001)
#define MCF_FEC_RCR_DRT               (0x00000002)
#define MCF_FEC_RCR_MII_MODE          (0x00000004)
#define MCF_FEC_RCR_PROM              (0x00000008)
#define MCF_FEC_RCR_BC_REJ            (0x00000010)
#define MCF_FEC_RCR_FCE               (0x00000020)
#define MCF_FEC_RCR_MAX_FL(x)         (((x)&0x000007FF)<<16)

/* Bit definitions and macros for MCF_FEC_TCR */
#define MCF_FEC_TCR_GTS               (0x00000001)
#define MCF_FEC_TCR_HBC               (0x00000002)
#define MCF_FEC_TCR_FDEN              (0x00000004)
#define MCF_FEC_TCR_TFC_PAUSE         (0x00000008)
#define MCF_FEC_TCR_RFC_PAUSE         (0x00000010)

/* Bit definitions and macros for MCF_FEC_PALR */
#define MCF_FEC_PALR_PADDR1(x)        (((x)&0xFFFFFFFF)<<0)

/* Bit definitions and macros for MCF_FEC_PAUR */
#define MCF_FEC_PAUR_TYPE(x)          (((x)&0x0000FFFF)<<0)
#define MCF_FEC_PAUR_PADDR2(x)        (((x)&0x0000FFFF)<<16)

/* Bit definitions and macros for MCF_FEC_OPD */
#define MCF_FEC_OPD_PAUSE_DUR(x)      (((x)&0x0000FFFF)<<0)
#define MCF_FEC_OPD_OPCODE(x)         (((x)&0x0000FFFF)<<16)

/* Bit definitions and macros for MCF_FEC_IAUR */
#define MCF_FEC_IAUR_IADDR1(x)        (((x)&0xFFFFFFFF)<<0)

/* Bit definitions and macros for MCF_FEC_IALR */
#define MCF_FEC_IALR_IADDR2(x)        (((x)&0xFFFFFFFF)<<0)

/* Bit definitions and macros for MCF_FEC_GAUR */
#define MCF_FEC_GAUR_GADDR1(x)        (((x)&0xFFFFFFFF)<<0)

/* Bit definitions and macros for MCF_FEC_GALR */
#define MCF_FEC_GALR_GADDR2(x)        (((x)&0xFFFFFFFF)<<0)

/* Bit definitions and macros for MCF_FEC_TFWR */
#define MCF_FEC_TFWR_X_WMRK(x)        (((x)&0x00000003)<<0)

/* Bit definitions and macros for MCF_FEC_FRBR */
#define MCF_FEC_FRBR_R_BOUND(x)       (((x)&0x000000FF)<<2)

/* Bit definitions and macros for MCF_FEC_FRSR */
#define MCF_FEC_FRSR_R_FSTART(x)      (((x)&0x000000FF)<<2)

/* Bit definitions and macros for MCF_FEC_ERDSR */
#define MCF_FEC_ERDSR_R_DES_START(x)  (((x)&0x3FFFFFFF)<<2)

/* Bit definitions and macros for MCF_FEC_ETDSR */
#define MCF_FEC_ETDSR_X_DES_START(x)  (((x)&0x3FFFFFFF)<<2)

/* Bit definitions and macros for MCF_FEC_EMRBR */
#define MCF_FEC_EMRBR_R_BUF_SIZE(x)   (((x)&0x0000007F)<<4)

#define MCF_FEC_TxBD_R					0x8000
#define MCF_FEC_TxBD_BUSY				0x4000
#define MCF_FEC_TxBD_TO1				0x4000
#define MCF_FEC_TxBD_W					0x2000
#define MCF_FEC_TxBD_TO2				0x1000
#define MCF_FEC_TxBD_FIRST				0x1000
#define MCF_FEC_TxBD_L					0x0800
#define MCF_FEC_TxBD_TC					0x0400
#define MCF_FEC_TxBD_DEF				0x0200
#define MCF_FEC_TxBD_HB					0x0100
#define MCF_FEC_TxBD_LC					0x0080
#define MCF_FEC_TxBD_RL					0x0040
#define MCF_FEC_TxBD_UN					0x0002
#define MCF_FEC_TxBD_CSL				0x0001
#define MCF_FEC_RxBD_E					0x8000
#define MCF_FEC_RxBD_INUSE				0x4000
#define MCF_FEC_RxBD_R01				0x4000
#define MCF_FEC_RxBD_W					0x2000
#define MCF_FEC_RxBD_R02				0x1000
#define MCF_FEC_RxBD_L					0x0800
#define MCF_FEC_RxBD_M					0x0100
#define MCF_FEC_RxBD_BC					0x0080
#define MCF_FEC_RxBD_MC					0x0040
#define MCF_FEC_RxBD_LG					0x0020
#define MCF_FEC_RxBD_NO					0x0010
#define MCF_FEC_RxBD_CR					0x0004
#define MCF_FEC_RxBD_OV					0x0002
#define MCF_FEC_RxBD_TR					0x0001

/*********************************************************************
*
* Enhanced DMA (EDMA)
*
*********************************************************************/

/* Register read/write macros */
#define MCF_EDMA_CR                          (*(vuint32*)(0xFC044000))
#define MCF_EDMA_ES                          (*(vuint32*)(0xFC044004))
#define MCF_EDMA_ERQ                         (*(vuint16*)(0xFC04400E))
#define MCF_EDMA_EEI                         (*(vuint16*)(0xFC044016))
#define MCF_EDMA_SERQ                        (*(vuint8 *)(0xFC044018))
#define MCF_EDMA_CERQ                        (*(vuint8 *)(0xFC044019))
#define MCF_EDMA_SEEI                        (*(vuint8 *)(0xFC04401A))
#define MCF_EDMA_CEEI                        (*(vuint8 *)(0xFC04401B))
#define MCF_EDMA_CINT                        (*(vuint8 *)(0xFC04401C))
#define MCF_EDMA_CERR                        (*(vuint8 *)(0xFC04401D))
#define MCF_EDMA_SSRT                        (*(vuint8 *)(0xFC04401E))
#define MCF_EDMA_CDNE                        (*(vuint8 *)(0xFC04401F))
#define MCF_EDMA_INT                         (*(vuint16*)(0xFC044026))
#define MCF_EDMA_ERR                         (*(vuint16*)(0xFC04402E))
#define MCF_EDMA_DCHPRI0                     (*(vuint8 *)(0xFC044100))
#define MCF_EDMA_DCHPRI1                     (*(vuint8 *)(0xFC044101))
#define MCF_EDMA_DCHPRI2                     (*(vuint8 *)(0xFC044102))
#define MCF_EDMA_DCHPRI3                     (*(vuint8 *)(0xFC044103))
#define MCF_EDMA_DCHPRI4                     (*(vuint8 *)(0xFC044104))
#define MCF_EDMA_DCHPRI5                     (*(vuint8 *)(0xFC044105))
#define MCF_EDMA_DCHPRI6                     (*(vuint8 *)(0xFC044106))
#define MCF_EDMA_DCHPRI7                     (*(vuint8 *)(0xFC044107))
#define MCF_EDMA_DCHPRI8                     (*(vuint8 *)(0xFC044108))
#define MCF_EDMA_DCHPRI9                     (*(vuint8 *)(0xFC044109))
#define MCF_EDMA_DCHPRI10                    (*(vuint8 *)(0xFC04410A))
#define MCF_EDMA_DCHPRI11                    (*(vuint8 *)(0xFC04410B))
#define MCF_EDMA_DCHPRI12                    (*(vuint8 *)(0xFC04410C))
#define MCF_EDMA_DCHPRI13                    (*(vuint8 *)(0xFC04410D))
#define MCF_EDMA_DCHPRI14                    (*(vuint8 *)(0xFC04410E))
#define MCF_EDMA_DCHPRI15                    (*(vuint8 *)(0xFC04410F))
#define MCF_EDMA_DCHPRI(x)                   (*(vuint8 *)(0xFC044100+((x)*0x001)))
#define MCF_EDMA_TCD0_SADDR                  (*(vuint32*)(0xFC045000))
#define MCF_EDMA_TCD1_SADDR                  (*(vuint32*)(0xFC045020))
#define MCF_EDMA_TCD2_SADDR                  (*(vuint32*)(0xFC045040))
#define MCF_EDMA_TCD3_SADDR                  (*(vuint32*)(0xFC045060))
#define MCF_EDMA_TCD4_SADDR                  (*(vuint32*)(0xFC045080))
#define MCF_EDMA_TCD5_SADDR                  (*(vuint32*)(0xFC0450A0))
#define MCF_EDMA_TCD6_SADDR                  (*(vuint32*)(0xFC0450C0))
#define MCF_EDMA_TCD7_SADDR                  (*(vuint32*)(0xFC0450E0))
#define MCF_EDMA_TCD8_SADDR                  (*(vuint32*)(0xFC045100))
#define MCF_EDMA_TCD9_SADDR                  (*(vuint32*)(0xFC045120))
#define MCF_EDMA_TCD10_SADDR                 (*(vuint32*)(0xFC045140))
#define MCF_EDMA_TCD11_SADDR                 (*(vuint32*)(0xFC045160))
#define MCF_EDMA_TCD12_SADDR                 (*(vuint32*)(0xFC045180))
#define MCF_EDMA_TCD13_SADDR                 (*(vuint32*)(0xFC0451A0))
#define MCF_EDMA_TCD14_SADDR                 (*(vuint32*)(0xFC0451C0))
#define MCF_EDMA_TCD15_SADDR                 (*(vuint32*)(0xFC0451E0))
#define MCF_EDMA_TCD_SADDR(x)                (*(vuint32*)(0xFC045000+((x)*0x020)))
#define MCF_EDMA_TCD0_ATTR                   (*(vuint16*)(0xFC045004))
#define MCF_EDMA_TCD1_ATTR                   (*(vuint16*)(0xFC045024))
#define MCF_EDMA_TCD2_ATTR                   (*(vuint16*)(0xFC045044))
#define MCF_EDMA_TCD3_ATTR                   (*(vuint16*)(0xFC045064))
#define MCF_EDMA_TCD4_ATTR                   (*(vuint16*)(0xFC045084))
#define MCF_EDMA_TCD5_ATTR                   (*(vuint16*)(0xFC0450A4))
#define MCF_EDMA_TCD6_ATTR                   (*(vuint16*)(0xFC0450C4))
#define MCF_EDMA_TCD7_ATTR                   (*(vuint16*)(0xFC0450E4))
#define MCF_EDMA_TCD8_ATTR                   (*(vuint16*)(0xFC045104))
#define MCF_EDMA_TCD9_ATTR                   (*(vuint16*)(0xFC045124))
#define MCF_EDMA_TCD10_ATTR                  (*(vuint16*)(0xFC045144))
#define MCF_EDMA_TCD11_ATTR                  (*(vuint16*)(0xFC045164))
#define MCF_EDMA_TCD12_ATTR                  (*(vuint16*)(0xFC045184))
#define MCF_EDMA_TCD13_ATTR                  (*(vuint16*)(0xFC0451A4))
#define MCF_EDMA_TCD14_ATTR                  (*(vuint16*)(0xFC0451C4))
#define MCF_EDMA_TCD15_ATTR                  (*(vuint16*)(0xFC0451E4))
#define MCF_EDMA_TCD_ATTR(x)                 (*(vuint16*)(0xFC045004+((x)*0x020)))
#define MCF_EDMA_TCD0_SOFF                   (*(vuint16*)(0xFC045006))
#define MCF_EDMA_TCD1_SOFF                   (*(vuint16*)(0xFC045026))
#define MCF_EDMA_TCD2_SOFF                   (*(vuint16*)(0xFC045046))
#define MCF_EDMA_TCD3_SOFF                   (*(vuint16*)(0xFC045066))
#define MCF_EDMA_TCD4_SOFF                   (*(vuint16*)(0xFC045086))
#define MCF_EDMA_TCD5_SOFF                   (*(vuint16*)(0xFC0450A6))
#define MCF_EDMA_TCD6_SOFF                   (*(vuint16*)(0xFC0450C6))
#define MCF_EDMA_TCD7_SOFF                   (*(vuint16*)(0xFC0450E6))
#define MCF_EDMA_TCD8_SOFF                   (*(vuint16*)(0xFC045106))
#define MCF_EDMA_TCD9_SOFF                   (*(vuint16*)(0xFC045126))
#define MCF_EDMA_TCD10_SOFF                  (*(vuint16*)(0xFC045146))
#define MCF_EDMA_TCD11_SOFF                  (*(vuint16*)(0xFC045166))
#define MCF_EDMA_TCD12_SOFF                  (*(vuint16*)(0xFC045186))
#define MCF_EDMA_TCD13_SOFF                  (*(vuint16*)(0xFC0451A6))
#define MCF_EDMA_TCD14_SOFF                  (*(vuint16*)(0xFC0451C6))
#define MCF_EDMA_TCD15_SOFF                  (*(vuint16*)(0xFC0451E6))
#define MCF_EDMA_TCD_SOFF(x)                 (*(vuint16*)(0xFC045006+((x)*0x020)))
#define MCF_EDMA_TCD0_NBYTES                 (*(vuint32*)(0xFC045008))
#define MCF_EDMA_TCD1_NBYTES                 (*(vuint32*)(0xFC045028))
#define MCF_EDMA_TCD2_NBYTES                 (*(vuint32*)(0xFC045048))
#define MCF_EDMA_TCD3_NBYTES                 (*(vuint32*)(0xFC045068))
#define MCF_EDMA_TCD4_NBYTES                 (*(vuint32*)(0xFC045088))
#define MCF_EDMA_TCD5_NBYTES                 (*(vuint32*)(0xFC0450A8))
#define MCF_EDMA_TCD6_NBYTES                 (*(vuint32*)(0xFC0450C8))
#define MCF_EDMA_TCD7_NBYTES                 (*(vuint32*)(0xFC0450E8))
#define MCF_EDMA_TCD8_NBYTES                 (*(vuint32*)(0xFC045108))
#define MCF_EDMA_TCD9_NBYTES                 (*(vuint32*)(0xFC045128))
#define MCF_EDMA_TCD10_NBYTES                (*(vuint32*)(0xFC045148))
#define MCF_EDMA_TCD11_NBYTES                (*(vuint32*)(0xFC045168))
#define MCF_EDMA_TCD12_NBYTES                (*(vuint32*)(0xFC045188))
#define MCF_EDMA_TCD13_NBYTES                (*(vuint32*)(0xFC0451A8))
#define MCF_EDMA_TCD14_NBYTES                (*(vuint32*)(0xFC0451C8))
#define MCF_EDMA_TCD15_NBYTES                (*(vuint32*)(0xFC0451E8))
#define MCF_EDMA_TCD_NBYTES(x)               (*(vuint32*)(0xFC045008+((x)*0x020)))
#define MCF_EDMA_TCD0_SLAST                  (*(vuint32*)(0xFC04500C))
#define MCF_EDMA_TCD1_SLAST                  (*(vuint32*)(0xFC04502C))
#define MCF_EDMA_TCD2_SLAST                  (*(vuint32*)(0xFC04504C))
#define MCF_EDMA_TCD3_SLAST                  (*(vuint32*)(0xFC04506C))
#define MCF_EDMA_TCD4_SLAST                  (*(vuint32*)(0xFC04508C))
#define MCF_EDMA_TCD5_SLAST                  (*(vuint32*)(0xFC0450AC))
#define MCF_EDMA_TCD6_SLAST                  (*(vuint32*)(0xFC0450CC))
#define MCF_EDMA_TCD7_SLAST                  (*(vuint32*)(0xFC0450EC))
#define MCF_EDMA_TCD8_SLAST                  (*(vuint32*)(0xFC04510C))
#define MCF_EDMA_TCD9_SLAST                  (*(vuint32*)(0xFC04512C))
#define MCF_EDMA_TCD10_SLAST                 (*(vuint32*)(0xFC04514C))
#define MCF_EDMA_TCD11_SLAST                 (*(vuint32*)(0xFC04516C))
#define MCF_EDMA_TCD12_SLAST                 (*(vuint32*)(0xFC04518C))
#define MCF_EDMA_TCD13_SLAST                 (*(vuint32*)(0xFC0451AC))
#define MCF_EDMA_TCD14_SLAST                 (*(vuint32*)(0xFC0451CC))
#define MCF_EDMA_TCD15_SLAST                 (*(vuint32*)(0xFC0451EC))
#define MCF_EDMA_TCD_SLAST(x)                (*(vuint32*)(0xFC04500C+((x)*0x020)))
#define MCF_EDMA_TCD0_DADDR                  (*(vuint32*)(0xFC045010))
#define MCF_EDMA_TCD1_DADDR                  (*(vuint32*)(0xFC045030))
#define MCF_EDMA_TCD2_DADDR                  (*(vuint32*)(0xFC045050))
#define MCF_EDMA_TCD3_DADDR                  (*(vuint32*)(0xFC045070))
#define MCF_EDMA_TCD4_DADDR                  (*(vuint32*)(0xFC045090))
#define MCF_EDMA_TCD5_DADDR                  (*(vuint32*)(0xFC0450B0))
#define MCF_EDMA_TCD6_DADDR                  (*(vuint32*)(0xFC0450D0))
#define MCF_EDMA_TCD7_DADDR                  (*(vuint32*)(0xFC0450F0))
#define MCF_EDMA_TCD8_DADDR                  (*(vuint32*)(0xFC045110))
#define MCF_EDMA_TCD9_DADDR                  (*(vuint32*)(0xFC045130))
#define MCF_EDMA_TCD10_DADDR                 (*(vuint32*)(0xFC045150))
#define MCF_EDMA_TCD11_DADDR                 (*(vuint32*)(0xFC045170))
#define MCF_EDMA_TCD12_DADDR                 (*(vuint32*)(0xFC045190))
#define MCF_EDMA_TCD13_DADDR                 (*(vuint32*)(0xFC0451B0))
#define MCF_EDMA_TCD14_DADDR                 (*(vuint32*)(0xFC0451D0))
#define MCF_EDMA_TCD15_DADDR                 (*(vuint32*)(0xFC0451F0))
#define MCF_EDMA_TCD_DADDR(x)                (*(vuint32*)(0xFC045010+((x)*0x020)))
#define MCF_EDMA_TCD0_CITER                  (*(vuint16*)(0xFC045014))
#define MCF_EDMA_TCD1_CITER                  (*(vuint16*)(0xFC045034))
#define MCF_EDMA_TCD2_CITER                  (*(vuint16*)(0xFC045054))
#define MCF_EDMA_TCD3_CITER                  (*(vuint16*)(0xFC045074))
#define MCF_EDMA_TCD4_CITER                  (*(vuint16*)(0xFC045094))
#define MCF_EDMA_TCD5_CITER                  (*(vuint16*)(0xFC0450B4))
#define MCF_EDMA_TCD6_CITER                  (*(vuint16*)(0xFC0450D4))
#define MCF_EDMA_TCD7_CITER                  (*(vuint16*)(0xFC0450F4))
#define MCF_EDMA_TCD8_CITER                  (*(vuint16*)(0xFC045114))
#define MCF_EDMA_TCD9_CITER                  (*(vuint16*)(0xFC045134))
#define MCF_EDMA_TCD10_CITER                 (*(vuint16*)(0xFC045154))
#define MCF_EDMA_TCD11_CITER                 (*(vuint16*)(0xFC045174))
#define MCF_EDMA_TCD12_CITER                 (*(vuint16*)(0xFC045194))
#define MCF_EDMA_TCD13_CITER                 (*(vuint16*)(0xFC0451B4))
#define MCF_EDMA_TCD14_CITER                 (*(vuint16*)(0xFC0451D4))
#define MCF_EDMA_TCD15_CITER                 (*(vuint16*)(0xFC0451F4))
#define MCF_EDMA_TCD_CITER(x)                (*(vuint16*)(0xFC045014+((x)*0x020)))
#define MCF_EDMA_TCD0_CITER_ELINK            (*(vuint16*)(0xFC045014))
#define MCF_EDMA_TCD1_CITER_ELINK            (*(vuint16*)(0xFC045034))
#define MCF_EDMA_TCD2_CITER_ELINK            (*(vuint16*)(0xFC045054))
#define MCF_EDMA_TCD3_CITER_ELINK            (*(vuint16*)(0xFC045074))
#define MCF_EDMA_TCD4_CITER_ELINK            (*(vuint16*)(0xFC045094))
#define MCF_EDMA_TCD5_CITER_ELINK            (*(vuint16*)(0xFC0450B4))
#define MCF_EDMA_TCD6_CITER_ELINK            (*(vuint16*)(0xFC0450D4))
#define MCF_EDMA_TCD7_CITER_ELINK            (*(vuint16*)(0xFC0450F4))
#define MCF_EDMA_TCD8_CITER_ELINK            (*(vuint16*)(0xFC045114))
#define MCF_EDMA_TCD9_CITER_ELINK            (*(vuint16*)(0xFC045134))
#define MCF_EDMA_TCD10_CITER_ELINK           (*(vuint16*)(0xFC045154))
#define MCF_EDMA_TCD11_CITER_ELINK           (*(vuint16*)(0xFC045174))
#define MCF_EDMA_TCD12_CITER_ELINK           (*(vuint16*)(0xFC045194))
#define MCF_EDMA_TCD13_CITER_ELINK           (*(vuint16*)(0xFC0451B4))
#define MCF_EDMA_TCD14_CITER_ELINK           (*(vuint16*)(0xFC0451D4))
#define MCF_EDMA_TCD15_CITER_ELINK           (*(vuint16*)(0xFC0451F4))
#define MCF_EDMA_TCD_CITER_ELINK(x)          (*(vuint16*)(0xFC045014+((x)*0x020)))
#define MCF_EDMA_TCD0_DOFF                   (*(vuint16*)(0xFC045016))
#define MCF_EDMA_TCD1_DOFF                   (*(vuint16*)(0xFC045036))
#define MCF_EDMA_TCD2_DOFF                   (*(vuint16*)(0xFC045056))
#define MCF_EDMA_TCD3_DOFF                   (*(vuint16*)(0xFC045076))
#define MCF_EDMA_TCD4_DOFF                   (*(vuint16*)(0xFC045096))
#define MCF_EDMA_TCD5_DOFF                   (*(vuint16*)(0xFC0450B6))
#define MCF_EDMA_TCD6_DOFF                   (*(vuint16*)(0xFC0450D6))
#define MCF_EDMA_TCD7_DOFF                   (*(vuint16*)(0xFC0450F6))
#define MCF_EDMA_TCD8_DOFF                   (*(vuint16*)(0xFC045116))
#define MCF_EDMA_TCD9_DOFF                   (*(vuint16*)(0xFC045136))
#define MCF_EDMA_TCD10_DOFF                  (*(vuint16*)(0xFC045156))
#define MCF_EDMA_TCD11_DOFF                  (*(vuint16*)(0xFC045176))
#define MCF_EDMA_TCD12_DOFF                  (*(vuint16*)(0xFC045196))
#define MCF_EDMA_TCD13_DOFF                  (*(vuint16*)(0xFC0451B6))
#define MCF_EDMA_TCD14_DOFF                  (*(vuint16*)(0xFC0451D6))
#define MCF_EDMA_TCD15_DOFF                  (*(vuint16*)(0xFC0451F6))
#define MCF_EDMA_TCD_DOFF(x)                 (*(vuint16*)(0xFC045016+((x)*0x020)))
#define MCF_EDMA_TCD0_DLAST_SGA              (*(vuint32*)(0xFC045018))
#define MCF_EDMA_TCD1_DLAST_SGA              (*(vuint32*)(0xFC045038))
#define MCF_EDMA_TCD2_DLAST_SGA              (*(vuint32*)(0xFC045058))
#define MCF_EDMA_TCD3_DLAST_SGA              (*(vuint32*)(0xFC045078))
#define MCF_EDMA_TCD4_DLAST_SGA              (*(vuint32*)(0xFC045098))
#define MCF_EDMA_TCD5_DLAST_SGA              (*(vuint32*)(0xFC0450B8))
#define MCF_EDMA_TCD6_DLAST_SGA              (*(vuint32*)(0xFC0450D8))
#define MCF_EDMA_TCD7_DLAST_SGA              (*(vuint32*)(0xFC0450F8))
#define MCF_EDMA_TCD8_DLAST_SGA              (*(vuint32*)(0xFC045118))
#define MCF_EDMA_TCD9_DLAST_SGA              (*(vuint32*)(0xFC045138))
#define MCF_EDMA_TCD10_DLAST_SGA             (*(vuint32*)(0xFC045158))
#define MCF_EDMA_TCD11_DLAST_SGA             (*(vuint32*)(0xFC045178))
#define MCF_EDMA_TCD12_DLAST_SGA             (*(vuint32*)(0xFC045198))
#define MCF_EDMA_TCD13_DLAST_SGA             (*(vuint32*)(0xFC0451B8))
#define MCF_EDMA_TCD14_DLAST_SGA             (*(vuint32*)(0xFC0451D8))
#define MCF_EDMA_TCD15_DLAST_SGA             (*(vuint32*)(0xFC0451F8))
#define MCF_EDMA_TCD_DLAST_SGA(x)            (*(vuint32*)(0xFC045018+((x)*0x020)))
#define MCF_EDMA_TCD0_BITER                  (*(vuint16*)(0xFC04501C))
#define MCF_EDMA_TCD1_BITER                  (*(vuint16*)(0xFC04503C))
#define MCF_EDMA_TCD2_BITER                  (*(vuint16*)(0xFC04505C))
#define MCF_EDMA_TCD3_BITER                  (*(vuint16*)(0xFC04507C))
#define MCF_EDMA_TCD4_BITER                  (*(vuint16*)(0xFC04509C))
#define MCF_EDMA_TCD5_BITER                  (*(vuint16*)(0xFC0450BC))
#define MCF_EDMA_TCD6_BITER                  (*(vuint16*)(0xFC0450DC))
#define MCF_EDMA_TCD7_BITER                  (*(vuint16*)(0xFC0450FC))
#define MCF_EDMA_TCD8_BITER                  (*(vuint16*)(0xFC04511C))
#define MCF_EDMA_TCD9_BITER                  (*(vuint16*)(0xFC04513C))
#define MCF_EDMA_TCD10_BITER                 (*(vuint16*)(0xFC04515C))
#define MCF_EDMA_TCD11_BITER                 (*(vuint16*)(0xFC04517C))
#define MCF_EDMA_TCD12_BITER                 (*(vuint16*)(0xFC04519C))
#define MCF_EDMA_TCD13_BITER                 (*(vuint16*)(0xFC0451BC))
#define MCF_EDMA_TCD14_BITER                 (*(vuint16*)(0xFC0451DC))
#define MCF_EDMA_TCD15_BITER                 (*(vuint16*)(0xFC0451FC))
#define MCF_EDMA_TCD_BITER(x)                (*(vuint16*)(0xFC04501C+((x)*0x020)))
#define MCF_EDMA_TCD0_BITER_ELINK            (*(vuint16*)(0xFC04501C))
#define MCF_EDMA_TCD1_BITER_ELINK            (*(vuint16*)(0xFC04503C))
#define MCF_EDMA_TCD2_BITER_ELINK            (*(vuint16*)(0xFC04505C))
#define MCF_EDMA_TCD3_BITER_ELINK            (*(vuint16*)(0xFC04507C))
#define MCF_EDMA_TCD4_BITER_ELINK            (*(vuint16*)(0xFC04509C))
#define MCF_EDMA_TCD5_BITER_ELINK            (*(vuint16*)(0xFC0450BC))
#define MCF_EDMA_TCD6_BITER_ELINK            (*(vuint16*)(0xFC0450DC))
#define MCF_EDMA_TCD7_BITER_ELINK            (*(vuint16*)(0xFC0450FC))
#define MCF_EDMA_TCD8_BITER_ELINK            (*(vuint16*)(0xFC04511C))
#define MCF_EDMA_TCD9_BITER_ELINK            (*(vuint16*)(0xFC04513C))
#define MCF_EDMA_TCD10_BITER_ELINK           (*(vuint16*)(0xFC04515C))
#define MCF_EDMA_TCD11_BITER_ELINK           (*(vuint16*)(0xFC04517C))
#define MCF_EDMA_TCD12_BITER_ELINK           (*(vuint16*)(0xFC04519C))
#define MCF_EDMA_TCD13_BITER_ELINK           (*(vuint16*)(0xFC0451BC))
#define MCF_EDMA_TCD14_BITER_ELINK           (*(vuint16*)(0xFC0451DC))
#define MCF_EDMA_TCD15_BITER_ELINK           (*(vuint16*)(0xFC0451FC))
#define MCF_EDMA_TCD_BITER_ELINK(x)          (*(vuint16*)(0xFC04501C+((x)*0x020)))
#define MCF_EDMA_TCD0_CSR                    (*(vuint16*)(0xFC04501E))
#define MCF_EDMA_TCD1_CSR                    (*(vuint16*)(0xFC04503E))
#define MCF_EDMA_TCD2_CSR                    (*(vuint16*)(0xFC04505E))
#define MCF_EDMA_TCD3_CSR                    (*(vuint16*)(0xFC04507E))
#define MCF_EDMA_TCD4_CSR                    (*(vuint16*)(0xFC04509E))
#define MCF_EDMA_TCD5_CSR                    (*(vuint16*)(0xFC0450BE))
#define MCF_EDMA_TCD6_CSR                    (*(vuint16*)(0xFC0450DE))
#define MCF_EDMA_TCD7_CSR                    (*(vuint16*)(0xFC0450FE))
#define MCF_EDMA_TCD8_CSR                    (*(vuint16*)(0xFC04511E))
#define MCF_EDMA_TCD9_CSR                    (*(vuint16*)(0xFC04513E))
#define MCF_EDMA_TCD10_CSR                   (*(vuint16*)(0xFC04515E))
#define MCF_EDMA_TCD11_CSR                   (*(vuint16*)(0xFC04517E))
#define MCF_EDMA_TCD12_CSR                   (*(vuint16*)(0xFC04519E))
#define MCF_EDMA_TCD13_CSR                   (*(vuint16*)(0xFC0451BE))
#define MCF_EDMA_TCD14_CSR                   (*(vuint16*)(0xFC0451DE))
#define MCF_EDMA_TCD15_CSR                   (*(vuint16*)(0xFC0451FE))
#define MCF_EDMA_TCD_CSR(x)                  (*(vuint16*)(0xFC04501E +((x)*0x020)))

/* Bit definitions and macros for MCF_EDMA_CR */
#define MCF_EDMA_CR_EDBG                     (0x00000002)
#define MCF_EDMA_CR_ERCA                     (0x00000004)

/* Bit definitions and macros for MCF_EDMA_ES */
#define MCF_EDMA_ES_DBE                      (0x00000001)
#define MCF_EDMA_ES_SBE                      (0x00000002)
#define MCF_EDMA_ES_SGE                      (0x00000004)
#define MCF_EDMA_ES_NCE                      (0x00000008)
#define MCF_EDMA_ES_DOE                      (0x00000010)
#define MCF_EDMA_ES_DAE                      (0x00000020)
#define MCF_EDMA_ES_SOE                      (0x00000040)
#define MCF_EDMA_ES_SAE                      (0x00000080)
#define MCF_EDMA_ES_ERRCHN(x)                (((x)&0x0000000F)<<8)
#define MCF_EDMA_ES_CPE                      (0x00004000)
#define MCF_EDMA_ES_VLD                      (0x80000000)

/* Bit definitions and macros for MCF_EDMA_ERQ */
#define MCF_EDMA_ERQ_ERQ0                    (0x0001)
#define MCF_EDMA_ERQ_ERQ1                    (0x0002)
#define MCF_EDMA_ERQ_ERQ2                    (0x0004)
#define MCF_EDMA_ERQ_ERQ3                    (0x0008)
#define MCF_EDMA_ERQ_ERQ4                    (0x0010)
#define MCF_EDMA_ERQ_ERQ5                    (0x0020)
#define MCF_EDMA_ERQ_ERQ6                    (0x0040)
#define MCF_EDMA_ERQ_ERQ7                    (0x0080)
#define MCF_EDMA_ERQ_ERQ8                    (0x0100)
#define MCF_EDMA_ERQ_ERQ9                    (0x0200)
#define MCF_EDMA_ERQ_ERQ10                   (0x0400)
#define MCF_EDMA_ERQ_ERQ11                   (0x0800)
#define MCF_EDMA_ERQ_ERQ12                   (0x1000)
#define MCF_EDMA_ERQ_ERQ13                   (0x2000)
#define MCF_EDMA_ERQ_ERQ14                   (0x4000)
#define MCF_EDMA_ERQ_ERQ15                   (0x8000)

/* Bit definitions and macros for MCF_EDMA_EEI */
#define MCF_EDMA_EEI_EEI0                    (0x0001)
#define MCF_EDMA_EEI_EEI1                    (0x0002)
#define MCF_EDMA_EEI_EEI2                    (0x0004)
#define MCF_EDMA_EEI_EEI3                    (0x0008)
#define MCF_EDMA_EEI_EEI4                    (0x0010)
#define MCF_EDMA_EEI_EEI5                    (0x0020)
#define MCF_EDMA_EEI_EEI6                    (0x0040)
#define MCF_EDMA_EEI_EEI7                    (0x0080)
#define MCF_EDMA_EEI_EEI8                    (0x0100)
#define MCF_EDMA_EEI_EEI9                    (0x0200)
#define MCF_EDMA_EEI_EEI10                   (0x0400)
#define MCF_EDMA_EEI_EEI11                   (0x0800)
#define MCF_EDMA_EEI_EEI12                   (0x1000)
#define MCF_EDMA_EEI_EEI13                   (0x2000)
#define MCF_EDMA_EEI_EEI14                   (0x4000)
#define MCF_EDMA_EEI_EEI15                   (0x8000)

/* Bit definitions and macros for MCF_EDMA_SERQ */
#define MCF_EDMA_SERQ_SERQ(x)                (((x)&0x0F)<<0)
#define MCF_EDMA_SERQ_SAER                   (0x40)

/* Bit definitions and macros for MCF_EDMA_CERQ */
#define MCF_EDMA_CERQ_CERQ(x)                (((x)&0x0F)<<0)
#define MCF_EDMA_CERQ_CAER                   (0x40)

/* Bit definitions and macros for MCF_EDMA_SEEI */
#define MCF_EDMA_SEEI_SEEI(x)                (((x)&0x0F)<<0)
#define MCF_EDMA_SEEI_SAEE                   (0x40)

/* Bit definitions and macros for MCF_EDMA_CEEI */
#define MCF_EDMA_CEEI_CEEI(x)                (((x)&0x0F)<<0)
#define MCF_EDMA_CEEI_CAEE                   (0x40)

/* Bit definitions and macros for MCF_EDMA_CINT */
#define MCF_EDMA_CINT_CINT(x)                (((x)&0x0F)<<0)
#define MCF_EDMA_CINT_CAIR                   (0x40)

/* Bit definitions and macros for MCF_EDMA_CERR */
#define MCF_EDMA_CERR_CERR(x)                (((x)&0x0F)<<0)
#define MCF_EDMA_CERR_CAER                   (0x40)

/* Bit definitions and macros for MCF_EDMA_SSRT */
#define MCF_EDMA_SSRT_SSRT(x)                (((x)&0x0F)<<0)
#define MCF_EDMA_SSRT_SAST                   (0x40)

/* Bit definitions and macros for MCF_EDMA_CDNE */
#define MCF_EDMA_CDNE_CDNE(x)                (((x)&0x0F)<<0)
#define MCF_EDMA_CDNE_CADN                   (0x40)

/* Bit definitions and macros for MCF_EDMA_INT */
#define MCF_EDMA_INT_INT0                    (0x0001)
#define MCF_EDMA_INT_INT1                    (0x0002)
#define MCF_EDMA_INT_INT2                    (0x0004)
#define MCF_EDMA_INT_INT3                    (0x0008)
#define MCF_EDMA_INT_INT4                    (0x0010)
#define MCF_EDMA_INT_INT5                    (0x0020)
#define MCF_EDMA_INT_INT6                    (0x0040)
#define MCF_EDMA_INT_INT7                    (0x0080)
#define MCF_EDMA_INT_INT8                    (0x0100)
#define MCF_EDMA_INT_INT9                    (0x0200)
#define MCF_EDMA_INT_INT10                   (0x0400)
#define MCF_EDMA_INT_INT11                   (0x0800)
#define MCF_EDMA_INT_INT12                   (0x1000)
#define MCF_EDMA_INT_INT13                   (0x2000)
#define MCF_EDMA_INT_INT14                   (0x4000)
#define MCF_EDMA_INT_INT15                   (0x8000)

/* Bit definitions and macros for MCF_EDMA_ERR */
#define MCF_EDMA_ERR_ERR0                    (0x0001)
#define MCF_EDMA_ERR_ERR1                    (0x0002)
#define MCF_EDMA_ERR_ERR2                    (0x0004)
#define MCF_EDMA_ERR_ERR3                    (0x0008)
#define MCF_EDMA_ERR_ERR4                    (0x0010)
#define MCF_EDMA_ERR_ERR5                    (0x0020)
#define MCF_EDMA_ERR_ERR6                    (0x0040)
#define MCF_EDMA_ERR_ERR7                    (0x0080)
#define MCF_EDMA_ERR_ERR8                    (0x0100)
#define MCF_EDMA_ERR_ERR9                    (0x0200)
#define MCF_EDMA_ERR_ERR10                   (0x0400)
#define MCF_EDMA_ERR_ERR11                   (0x0800)
#define MCF_EDMA_ERR_ERR12                   (0x1000)
#define MCF_EDMA_ERR_ERR13                   (0x2000)
#define MCF_EDMA_ERR_ERR14                   (0x4000)
#define MCF_EDMA_ERR_ERR15                   (0x8000)

/* Bit definitions and macros for MCF_EDMA_DCHPRI */
#define MCF_EDMA_DCHPRI_CHPRI(x)             (((x)&0x0F)<<0)
#define MCF_EDMA_DCHPRI_ECP                  (0x80)

/* Bit definitions and macros for MCF_EDMA_TCD_SADDR */
#define MCF_EDMA_TCD_SADDR_SADDR(x)          (((x)&0xFFFFFFFF)<<0)

/* Bit definitions and macros for MCF_EDMA_TCD_ATTR */
#define MCF_EDMA_TCD_ATTR_DSIZE(x)           (((x)&0x0007)<<0)
#define MCF_EDMA_TCD_ATTR_DMOD(x)            (((x)&0x001F)<<3)
#define MCF_EDMA_TCD_ATTR_SSIZE(x)           (((x)&0x0007)<<8)
#define MCF_EDMA_TCD_ATTR_SMOD(x)            (((x)&0x001F)<<11)
#define MCF_EDMA_TCD_ATTR_SSIZE_8BIT         (0x0000)
#define MCF_EDMA_TCD_ATTR_SSIZE_16BIT        (0x0100)
#define MCF_EDMA_TCD_ATTR_SSIZE_32BIT        (0x0200)
#define MCF_EDMA_TCD_ATTR_SSIZE_16BYTE       (0x0400)
#define MCF_EDMA_TCD_ATTR_DSIZE_8BIT         (0x0000)
#define MCF_EDMA_TCD_ATTR_DSIZE_16BIT        (0x0001)
#define MCF_EDMA_TCD_ATTR_DSIZE_32BIT        (0x0002)
#define MCF_EDMA_TCD_ATTR_DSIZE_16BYTE       (0x0004)

/* Bit definitions and macros for MCF_EDMA_TCD_SOFF */
#define MCF_EDMA_TCD_SOFF_SOFF(x)            (((x)&0xFFFF)<<0)

/* Bit definitions and macros for MCF_EDMA_TCD_NBYTES */
#define MCF_EDMA_TCD_NBYTES_NBYTES(x)        (((x)&0xFFFFFFFF)<<0)

/* Bit definitions and macros for MCF_EDMA_TCD_SLAST */
#define MCF_EDMA_TCD_SLAST_SLAST(x)          (((x)&0xFFFFFFFF)<<0)

/* Bit definitions and macros for MCF_EDMA_TCD_DADDR */
#define MCF_EDMA_TCD_DADDR_DADDR(x)          (((x)&0xFFFFFFFF)<<0)

/* Bit definitions and macros for MCF_EDMA_TCD_CITER */
#define MCF_EDMA_TCD_CITER_CITER(x)          (((x)&0x7FFF)<<0)
#define MCF_EDMA_TCD_CITER_E_LINK            (0x8000)

/* Bit definitions and macros for MCF_EDMA_TCD_CITER_ELINK */
#define MCF_EDMA_TCD_CITER_ELINK_CITER(x)    (((x)&0x01FF)<<0)
#define MCF_EDMA_TCD_CITER_ELINK_LINKCH(x)   (((x)&0x003F)<<9)
#define MCF_EDMA_TCD_CITER_ELINK_E_LINK      (0x8000)

/* Bit definitions and macros for MCF_EDMA_TCD_DOFF */
#define MCF_EDMA_TCD_DOFF_DOFF(x)            (((x)&0xFFFF)<<0)

/* Bit definitions and macros for MCF_EDMA_TCD_DLAST_SGA */
#define MCF_EDMA_TCD_DLAST_SGA_DLAST_SGA(x)  (((x)&0xFFFFFFFF)<<0)

/* Bit definitions and macros for MCF_EDMA_TCD_BITER */
#define MCF_EDMA_TCD_BITER_BITER(x)          (((x)&0x7FFF)<<0)
#define MCF_EDMA_TCD_BITER_E_LINK            (0x8000)

/* Bit definitions and macros for MCF_EDMA_TCD_BITER_ELINK */
#define MCF_EDMA_TCD_BITER_ELINK_BITER(x)    (((x)&0x01FF)<<0)
#define MCF_EDMA_TCD_BITER_ELINK_LINKCH(x)   (((x)&0x003F)<<9)
#define MCF_EDMA_TCD_BITER_ELINK_E_LINK      (0x8000)

/* Bit definitions and macros for MCF_EDMA_TCD_CSR */
#define MCF_EDMA_TCD_CSR_START               (0x0001)
#define MCF_EDMA_TCD_CSR_INT_MAJOR           (0x0002)
#define MCF_EDMA_TCD_CSR_INT_HALF            (0x0004)
#define MCF_EDMA_TCD_CSR_D_REQ               (0x0008)
#define MCF_EDMA_TCD_CSR_E_SG                (0x0010)
#define MCF_EDMA_TCD_CSR_E_LINK              (0x0020)
#define MCF_EDMA_TCD_CSR_ACTIVE              (0x0040)
#define MCF_EDMA_TCD_CSR_DONE                (0x0080)
#define MCF_EDMA_TCD_CSR_LINKCH(x)           (((x)&0x003F)<<8)
#define MCF_EDMA_TCD_CSR_BWC(x)              (((x)&0x0003)<<14)
#define MCF_EDMA_TCD_CSR_BWC_NO_STALL        (0x0000)
#define MCF_EDMA_TCD_CSR_BWC_4CYC_STALL      (0x8000)
#define MCF_EDMA_TCD_CSR_BWC_8CYC_STALL      (0xC000)

/*********************************************************************
*
* Interrupt Controller (INTC)
*
*********************************************************************/

/* Register read/write macros */
#define MCF_INTC0_IPRH             (*(vuint32*)(0xFC048000))
#define MCF_INTC0_IPRL             (*(vuint32*)(0xFC048004))
#define MCF_INTC0_IMRH             (*(vuint32*)(0xFC048008))
#define MCF_INTC0_IMRL             (*(vuint32*)(0xFC04800C))
#define MCF_INTC0_INTFRCH          (*(vuint32*)(0xFC048010))
#define MCF_INTC0_INTFRCL          (*(vuint32*)(0xFC048014))
#define MCF_INTC0_ICONFIG          (*(vuint16*)(0xFC04801A))
#define MCF_INTC0_SIMR             (*(vuint8 *)(0xFC04801C))
#define MCF_INTC0_CIMR             (*(vuint8 *)(0xFC04801D))
#define MCF_INTC0_CLMASK           (*(vuint8 *)(0xFC04801E))
#define MCF_INTC0_SLMASK           (*(vuint8 *)(0xFC04801F))
#define MCF_INTC0_ICR0             (*(vuint8 *)(0xFC048040))
#define MCF_INTC0_ICR1             (*(vuint8 *)(0xFC048041))
#define MCF_INTC0_ICR2             (*(vuint8 *)(0xFC048042))
#define MCF_INTC0_ICR3             (*(vuint8 *)(0xFC048043))
#define MCF_INTC0_ICR4             (*(vuint8 *)(0xFC048044))
#define MCF_INTC0_ICR5             (*(vuint8 *)(0xFC048045))
#define MCF_INTC0_ICR6             (*(vuint8 *)(0xFC048046))
#define MCF_INTC0_ICR7             (*(vuint8 *)(0xFC048047))
#define MCF_INTC0_ICR8             (*(vuint8 *)(0xFC048048))
#define MCF_INTC0_ICR9             (*(vuint8 *)(0xFC048049))
#define MCF_INTC0_ICR10            (*(vuint8 *)(0xFC04804A))
#define MCF_INTC0_ICR11            (*(vuint8 *)(0xFC04804B))
#define MCF_INTC0_ICR12            (*(vuint8 *)(0xFC04804C))
#define MCF_INTC0_ICR13            (*(vuint8 *)(0xFC04804D))
#define MCF_INTC0_ICR14            (*(vuint8 *)(0xFC04804E))
#define MCF_INTC0_ICR15            (*(vuint8 *)(0xFC04804F))
#define MCF_INTC0_ICR16            (*(vuint8 *)(0xFC048050))
#define MCF_INTC0_ICR17            (*(vuint8 *)(0xFC048051))
#define MCF_INTC0_ICR18            (*(vuint8 *)(0xFC048052))
#define MCF_INTC0_ICR19            (*(vuint8 *)(0xFC048053))
#define MCF_INTC0_ICR20            (*(vuint8 *)(0xFC048054))
#define MCF_INTC0_ICR21            (*(vuint8 *)(0xFC048055))
#define MCF_INTC0_ICR22            (*(vuint8 *)(0xFC048056))
#define MCF_INTC0_ICR23            (*(vuint8 *)(0xFC048057))
#define MCF_INTC0_ICR24            (*(vuint8 *)(0xFC048058))
#define MCF_INTC0_ICR25            (*(vuint8 *)(0xFC048059))
#define MCF_INTC0_ICR26            (*(vuint8 *)(0xFC04805A))
#define MCF_INTC0_ICR27            (*(vuint8 *)(0xFC04805B))
#define MCF_INTC0_ICR28            (*(vuint8 *)(0xFC04805C))
#define MCF_INTC0_ICR29            (*(vuint8 *)(0xFC04805D))
#define MCF_INTC0_ICR30            (*(vuint8 *)(0xFC04805E))
#define MCF_INTC0_ICR31            (*(vuint8 *)(0xFC04805F))
#define MCF_INTC0_ICR32            (*(vuint8 *)(0xFC048060))
#define MCF_INTC0_ICR33            (*(vuint8 *)(0xFC048061))
#define MCF_INTC0_ICR34            (*(vuint8 *)(0xFC048062))
#define MCF_INTC0_ICR35            (*(vuint8 *)(0xFC048063))
#define MCF_INTC0_ICR36            (*(vuint8 *)(0xFC048064))
#define MCF_INTC0_ICR37            (*(vuint8 *)(0xFC048065))
#define MCF_INTC0_ICR38            (*(vuint8 *)(0xFC048066))
#define MCF_INTC0_ICR39            (*(vuint8 *)(0xFC048067))
#define MCF_INTC0_ICR40            (*(vuint8 *)(0xFC048068))
#define MCF_INTC0_ICR41            (*(vuint8 *)(0xFC048069))
#define MCF_INTC0_ICR42            (*(vuint8 *)(0xFC04806A))
#define MCF_INTC0_ICR43            (*(vuint8 *)(0xFC04806B))
#define MCF_INTC0_ICR44            (*(vuint8 *)(0xFC04806C))
#define MCF_INTC0_ICR45            (*(vuint8 *)(0xFC04806D))
#define MCF_INTC0_ICR46            (*(vuint8 *)(0xFC04806E))
#define MCF_INTC0_ICR47            (*(vuint8 *)(0xFC04806F))
#define MCF_INTC0_ICR48            (*(vuint8 *)(0xFC048070))
#define MCF_INTC0_ICR49            (*(vuint8 *)(0xFC048071))
#define MCF_INTC0_ICR50            (*(vuint8 *)(0xFC048072))
#define MCF_INTC0_ICR51            (*(vuint8 *)(0xFC048073))
#define MCF_INTC0_ICR52            (*(vuint8 *)(0xFC048074))
#define MCF_INTC0_ICR53            (*(vuint8 *)(0xFC048075))
#define MCF_INTC0_ICR54            (*(vuint8 *)(0xFC048076))
#define MCF_INTC0_ICR55            (*(vuint8 *)(0xFC048077))
#define MCF_INTC0_ICR56            (*(vuint8 *)(0xFC048078))
#define MCF_INTC0_ICR57            (*(vuint8 *)(0xFC048079))
#define MCF_INTC0_ICR58            (*(vuint8 *)(0xFC04807A))
#define MCF_INTC0_ICR59            (*(vuint8 *)(0xFC04807B))
#define MCF_INTC0_ICR60            (*(vuint8 *)(0xFC04807C))
#define MCF_INTC0_ICR61            (*(vuint8 *)(0xFC04807D))
#define MCF_INTC0_ICR62            (*(vuint8 *)(0xFC04807E))
#define MCF_INTC0_ICR63            (*(vuint8 *)(0xFC04807F))
#define MCF_INTC0_ICR(x)           (*(vuint8 *)(0xFC048040+((x)*0x001)))
#define MCF_INTC0_SWIACK           (*(vuint8 *)(0xFC0480E0))
#define MCF_INTC0_L1IACK           (*(vuint8 *)(0xFC0480E4))
#define MCF_INTC0_L2IACK           (*(vuint8 *)(0xFC0480E8))
#define MCF_INTC0_L3IACK           (*(vuint8 *)(0xFC0480EC))
#define MCF_INTC0_L4IACK           (*(vuint8 *)(0xFC0480F0))
#define MCF_INTC0_L5IACK           (*(vuint8 *)(0xFC0480F4))
#define MCF_INTC0_L6IACK           (*(vuint8 *)(0xFC0480F8))
#define MCF_INTC0_L7IACK           (*(vuint8 *)(0xFC0480FC))
#define MCF_INTC0_LIACK(x)         (*(vuint8 *)(0xFC0480E4+((x-1)*0x004)))
#define MCF_INTC1_IPRH             (*(vuint32*)(0xFC04C000))
#define MCF_INTC1_IPRL             (*(vuint32*)(0xFC04C004))
#define MCF_INTC1_IMRH             (*(vuint32*)(0xFC04C008))
#define MCF_INTC1_IMRL             (*(vuint32*)(0xFC04C00C))
#define MCF_INTC1_INTFRCH          (*(vuint32*)(0xFC04C010))
#define MCF_INTC1_INTFRCL          (*(vuint32*)(0xFC04C014))
#define MCF_INTC1_ICONFIG          (*(vuint16*)(0xFC04C01A))
#define MCF_INTC1_SIMR             (*(vuint8 *)(0xFC04C01C))
#define MCF_INTC1_CIMR             (*(vuint8 *)(0xFC04C01D))
#define MCF_INTC1_CLMASK           (*(vuint8 *)(0xFC04C01E))
#define MCF_INTC1_SLMASK           (*(vuint8 *)(0xFC04C01F))
#define MCF_INTC1_ICR0             (*(vuint8 *)(0xFC04C040))
#define MCF_INTC1_ICR1             (*(vuint8 *)(0xFC04C041))
#define MCF_INTC1_ICR2             (*(vuint8 *)(0xFC04C042))
#define MCF_INTC1_ICR3             (*(vuint8 *)(0xFC04C043))
#define MCF_INTC1_ICR4             (*(vuint8 *)(0xFC04C044))
#define MCF_INTC1_ICR5             (*(vuint8 *)(0xFC04C045))
#define MCF_INTC1_ICR6             (*(vuint8 *)(0xFC04C046))
#define MCF_INTC1_ICR7             (*(vuint8 *)(0xFC04C047))
#define MCF_INTC1_ICR8             (*(vuint8 *)(0xFC04C048))
#define MCF_INTC1_ICR9             (*(vuint8 *)(0xFC04C049))
#define MCF_INTC1_ICR10            (*(vuint8 *)(0xFC04C04A))
#define MCF_INTC1_ICR11            (*(vuint8 *)(0xFC04C04B))
#define MCF_INTC1_ICR12            (*(vuint8 *)(0xFC04C04C))
#define MCF_INTC1_ICR13            (*(vuint8 *)(0xFC04C04D))
#define MCF_INTC1_ICR14            (*(vuint8 *)(0xFC04C04E))
#define MCF_INTC1_ICR15            (*(vuint8 *)(0xFC04C04F))
#define MCF_INTC1_ICR16            (*(vuint8 *)(0xFC04C050))
#define MCF_INTC1_ICR17            (*(vuint8 *)(0xFC04C051))
#define MCF_INTC1_ICR18            (*(vuint8 *)(0xFC04C052))
#define MCF_INTC1_ICR19            (*(vuint8 *)(0xFC04C053))
#define MCF_INTC1_ICR20            (*(vuint8 *)(0xFC04C054))
#define MCF_INTC1_ICR21            (*(vuint8 *)(0xFC04C055))
#define MCF_INTC1_ICR22            (*(vuint8 *)(0xFC04C056))
#define MCF_INTC1_ICR23            (*(vuint8 *)(0xFC04C057))
#define MCF_INTC1_ICR24            (*(vuint8 *)(0xFC04C058))
#define MCF_INTC1_ICR25            (*(vuint8 *)(0xFC04C059))
#define MCF_INTC1_ICR26            (*(vuint8 *)(0xFC04C05A))
#define MCF_INTC1_ICR27            (*(vuint8 *)(0xFC04C05B))
#define MCF_INTC1_ICR28            (*(vuint8 *)(0xFC04C05C))
#define MCF_INTC1_ICR29            (*(vuint8 *)(0xFC04C05D))
#define MCF_INTC1_ICR30            (*(vuint8 *)(0xFC04C05E))
#define MCF_INTC1_ICR31            (*(vuint8 *)(0xFC04C05F))
#define MCF_INTC1_ICR32            (*(vuint8 *)(0xFC04C060))
#define MCF_INTC1_ICR33            (*(vuint8 *)(0xFC04C061))
#define MCF_INTC1_ICR34            (*(vuint8 *)(0xFC04C062))
#define MCF_INTC1_ICR35            (*(vuint8 *)(0xFC04C063))
#define MCF_INTC1_ICR36            (*(vuint8 *)(0xFC04C064))
#define MCF_INTC1_ICR37            (*(vuint8 *)(0xFC04C065))
#define MCF_INTC1_ICR38            (*(vuint8 *)(0xFC04C066))
#define MCF_INTC1_ICR39            (*(vuint8 *)(0xFC04C067))
#define MCF_INTC1_ICR40            (*(vuint8 *)(0xFC04C068))
#define MCF_INTC1_ICR41            (*(vuint8 *)(0xFC04C069))
#define MCF_INTC1_ICR42            (*(vuint8 *)(0xFC04C06A))
#define MCF_INTC1_ICR43            (*(vuint8 *)(0xFC04C06B))
#define MCF_INTC1_ICR44            (*(vuint8 *)(0xFC04C06C))
#define MCF_INTC1_ICR45            (*(vuint8 *)(0xFC04C06D))
#define MCF_INTC1_ICR46            (*(vuint8 *)(0xFC04C06E))
#define MCF_INTC1_ICR47            (*(vuint8 *)(0xFC04C06F))
#define MCF_INTC1_ICR48            (*(vuint8 *)(0xFC04C070))
#define MCF_INTC1_ICR49            (*(vuint8 *)(0xFC04C071))
#define MCF_INTC1_ICR50            (*(vuint8 *)(0xFC04C072))
#define MCF_INTC1_ICR51            (*(vuint8 *)(0xFC04C073))
#define MCF_INTC1_ICR52            (*(vuint8 *)(0xFC04C074))
#define MCF_INTC1_ICR53            (*(vuint8 *)(0xFC04C075))
#define MCF_INTC1_ICR54            (*(vuint8 *)(0xFC04C076))
#define MCF_INTC1_ICR55            (*(vuint8 *)(0xFC04C077))
#define MCF_INTC1_ICR56            (*(vuint8 *)(0xFC04C078))
#define MCF_INTC1_ICR57            (*(vuint8 *)(0xFC04C079))
#define MCF_INTC1_ICR58            (*(vuint8 *)(0xFC04C07A))
#define MCF_INTC1_ICR59            (*(vuint8 *)(0xFC04C07B))
#define MCF_INTC1_ICR60            (*(vuint8 *)(0xFC04C07C))
#define MCF_INTC1_ICR61            (*(vuint8 *)(0xFC04C07D))
#define MCF_INTC1_ICR62            (*(vuint8 *)(0xFC04C07E))
#define MCF_INTC1_ICR63            (*(vuint8 *)(0xFC04C07F))
#define MCF_INTC1_ICR(x)           (*(vuint8 *)(0xFC04C040+((x)*0x001)))
#define MCF_INTC1_SWIACK           (*(vuint8 *)(0xFC04C0E0))
#define MCF_INTC1_L1IACK           (*(vuint8 *)(0xFC04C0E4))
#define MCF_INTC1_L2IACK           (*(vuint8 *)(0xFC04C0E8))
#define MCF_INTC1_L3IACK           (*(vuint8 *)(0xFC04C0EC))
#define MCF_INTC1_L4IACK           (*(vuint8 *)(0xFC04C0F0))
#define MCF_INTC1_L5IACK           (*(vuint8 *)(0xFC04C0F4))
#define MCF_INTC1_L6IACK           (*(vuint8 *)(0xFC04C0F8))
#define MCF_INTC1_L7IACK           (*(vuint8 *)(0xFC04C0FC))
#define MCF_INTC1_LIACK(x)         (*(vuint8 *)(0xFC04C0E4+((x-1)*0x004)))
#define MCF_INTC_IPRH(x)           (*(vuint32*)(0xFC048000+((x)*0x4000)))
#define MCF_INTC_IPRL(x)           (*(vuint32*)(0xFC048004+((x)*0x4000)))
#define MCF_INTC_IMRH(x)           (*(vuint32*)(0xFC048008+((x)*0x4000)))
#define MCF_INTC_IMRL(x)           (*(vuint32*)(0xFC04800C+((x)*0x4000)))
#define MCF_INTC_INTFRCH(x)        (*(vuint32*)(0xFC048010+((x)*0x4000)))
#define MCF_INTC_INTFRCL(x)        (*(vuint32*)(0xFC048014+((x)*0x4000)))
#define MCF_INTC_ICONFIG(x)        (*(vuint16*)(0xFC04801A+((x)*0x4000)))
#define MCF_INTC_SIMR(x)           (*(vuint8 *)(0xFC04801C+((x)*0x4000)))
#define MCF_INTC_CIMR(x)           (*(vuint8 *)(0xFC04801D+((x)*0x4000)))
#define MCF_INTC_CLMASK(x)         (*(vuint8 *)(0xFC04801E+((x)*0x4000)))
#define MCF_INTC_SLMASK(x)         (*(vuint8 *)(0xFC04801F+((x)*0x4000)))
#define MCF_INTC_ICR0(x)           (*(vuint8 *)(0xFC048040+((x)*0x4000)))
#define MCF_INTC_ICR1(x)           (*(vuint8 *)(0xFC048041+((x)*0x4000)))
#define MCF_INTC_ICR2(x)           (*(vuint8 *)(0xFC048042+((x)*0x4000)))
#define MCF_INTC_ICR3(x)           (*(vuint8 *)(0xFC048043+((x)*0x4000)))
#define MCF_INTC_ICR4(x)           (*(vuint8 *)(0xFC048044+((x)*0x4000)))
#define MCF_INTC_ICR5(x)           (*(vuint8 *)(0xFC048045+((x)*0x4000)))
#define MCF_INTC_ICR6(x)           (*(vuint8 *)(0xFC048046+((x)*0x4000)))
#define MCF_INTC_ICR7(x)           (*(vuint8 *)(0xFC048047+((x)*0x4000)))
#define MCF_INTC_ICR8(x)           (*(vuint8 *)(0xFC048048+((x)*0x4000)))
#define MCF_INTC_ICR9(x)           (*(vuint8 *)(0xFC048049+((x)*0x4000)))
#define MCF_INTC_ICR10(x)          (*(vuint8 *)(0xFC04804A+((x)*0x4000)))
#define MCF_INTC_ICR11(x)          (*(vuint8 *)(0xFC04804B+((x)*0x4000)))
#define MCF_INTC_ICR12(x)          (*(vuint8 *)(0xFC04804C+((x)*0x4000)))
#define MCF_INTC_ICR13(x)          (*(vuint8 *)(0xFC04804D+((x)*0x4000)))
#define MCF_INTC_ICR14(x)          (*(vuint8 *)(0xFC04804E+((x)*0x4000)))
#define MCF_INTC_ICR15(x)          (*(vuint8 *)(0xFC04804F+((x)*0x4000)))
#define MCF_INTC_ICR16(x)          (*(vuint8 *)(0xFC048050+((x)*0x4000)))
#define MCF_INTC_ICR17(x)          (*(vuint8 *)(0xFC048051+((x)*0x4000)))
#define MCF_INTC_ICR18(x)          (*(vuint8 *)(0xFC048052+((x)*0x4000)))
#define MCF_INTC_ICR19(x)          (*(vuint8 *)(0xFC048053+((x)*0x4000)))
#define MCF_INTC_ICR20(x)          (*(vuint8 *)(0xFC048054+((x)*0x4000)))
#define MCF_INTC_ICR21(x)          (*(vuint8 *)(0xFC048055+((x)*0x4000)))
#define MCF_INTC_ICR22(x)          (*(vuint8 *)(0xFC048056+((x)*0x4000)))
#define MCF_INTC_ICR23(x)          (*(vuint8 *)(0xFC048057+((x)*0x4000)))
#define MCF_INTC_ICR24(x)          (*(vuint8 *)(0xFC048058+((x)*0x4000)))
#define MCF_INTC_ICR25(x)          (*(vuint8 *)(0xFC048059+((x)*0x4000)))
#define MCF_INTC_ICR26(x)          (*(vuint8 *)(0xFC04805A+((x)*0x4000)))
#define MCF_INTC_ICR27(x)          (*(vuint8 *)(0xFC04805B+((x)*0x4000)))
#define MCF_INTC_ICR28(x)          (*(vuint8 *)(0xFC04805C+((x)*0x4000)))
#define MCF_INTC_ICR29(x)          (*(vuint8 *)(0xFC04805D+((x)*0x4000)))
#define MCF_INTC_ICR30(x)          (*(vuint8 *)(0xFC04805E+((x)*0x4000)))
#define MCF_INTC_ICR31(x)          (*(vuint8 *)(0xFC04805F+((x)*0x4000)))
#define MCF_INTC_ICR32(x)          (*(vuint8 *)(0xFC048060+((x)*0x4000)))
#define MCF_INTC_ICR33(x)          (*(vuint8 *)(0xFC048061+((x)*0x4000)))
#define MCF_INTC_ICR34(x)          (*(vuint8 *)(0xFC048062+((x)*0x4000)))
#define MCF_INTC_ICR35(x)          (*(vuint8 *)(0xFC048063+((x)*0x4000)))
#define MCF_INTC_ICR36(x)          (*(vuint8 *)(0xFC048064+((x)*0x4000)))
#define MCF_INTC_ICR37(x)          (*(vuint8 *)(0xFC048065+((x)*0x4000)))
#define MCF_INTC_ICR38(x)          (*(vuint8 *)(0xFC048066+((x)*0x4000)))
#define MCF_INTC_ICR39(x)          (*(vuint8 *)(0xFC048067+((x)*0x4000)))
#define MCF_INTC_ICR40(x)          (*(vuint8 *)(0xFC048068+((x)*0x4000)))
#define MCF_INTC_ICR41(x)          (*(vuint8 *)(0xFC048069+((x)*0x4000)))
#define MCF_INTC_ICR42(x)          (*(vuint8 *)(0xFC04806A+((x)*0x4000)))
#define MCF_INTC_ICR43(x)          (*(vuint8 *)(0xFC04806B+((x)*0x4000)))
#define MCF_INTC_ICR44(x)          (*(vuint8 *)(0xFC04806C+((x)*0x4000)))
#define MCF_INTC_ICR45(x)          (*(vuint8 *)(0xFC04806D+((x)*0x4000)))
#define MCF_INTC_ICR46(x)          (*(vuint8 *)(0xFC04806E+((x)*0x4000)))
#define MCF_INTC_ICR47(x)          (*(vuint8 *)(0xFC04806F+((x)*0x4000)))
#define MCF_INTC_ICR48(x)          (*(vuint8 *)(0xFC048070+((x)*0x4000)))
#define MCF_INTC_ICR49(x)          (*(vuint8 *)(0xFC048071+((x)*0x4000)))
#define MCF_INTC_ICR50(x)          (*(vuint8 *)(0xFC048072+((x)*0x4000)))
#define MCF_INTC_ICR51(x)          (*(vuint8 *)(0xFC048073+((x)*0x4000)))
#define MCF_INTC_ICR52(x)          (*(vuint8 *)(0xFC048074+((x)*0x4000)))
#define MCF_INTC_ICR53(x)          (*(vuint8 *)(0xFC048075+((x)*0x4000)))
#define MCF_INTC_ICR54(x)          (*(vuint8 *)(0xFC048076+((x)*0x4000)))
#define MCF_INTC_ICR55(x)          (*(vuint8 *)(0xFC048077+((x)*0x4000)))
#define MCF_INTC_ICR56(x)          (*(vuint8 *)(0xFC048078+((x)*0x4000)))
#define MCF_INTC_ICR57(x)          (*(vuint8 *)(0xFC048079+((x)*0x4000)))
#define MCF_INTC_ICR58(x)          (*(vuint8 *)(0xFC04807A+((x)*0x4000)))
#define MCF_INTC_ICR59(x)          (*(vuint8 *)(0xFC04807B+((x)*0x4000)))
#define MCF_INTC_ICR60(x)          (*(vuint8 *)(0xFC04807C+((x)*0x4000)))
#define MCF_INTC_ICR61(x)          (*(vuint8 *)(0xFC04807D+((x)*0x4000)))
#define MCF_INTC_ICR62(x)          (*(vuint8 *)(0xFC04807E+((x)*0x4000)))
#define MCF_INTC_ICR63(x)          (*(vuint8 *)(0xFC04807F+((x)*0x4000)))
#define MCF_INTC_SWIACK(x)         (*(vuint8 *)(0xFC0480E0+((x)*0x4000)))
#define MCF_INTC_L1IACK(x)         (*(vuint8 *)(0xFC0480E4+((x)*0x4000)))
#define MCF_INTC_L2IACK(x)         (*(vuint8 *)(0xFC0480E8+((x)*0x4000)))
#define MCF_INTC_L3IACK(x)         (*(vuint8 *)(0xFC0480EC+((x)*0x4000)))
#define MCF_INTC_L4IACK(x)         (*(vuint8 *)(0xFC0480F0+((x)*0x4000)))
#define MCF_INTC_L5IACK(x)         (*(vuint8 *)(0xFC0480F4+((x)*0x4000)))
#define MCF_INTC_L6IACK(x)         (*(vuint8 *)(0xFC0480F8+((x)*0x4000)))
#define MCF_INTC_L7IACK(x)         (*(vuint8 *)(0xFC0480FC+((x)*0x4000)))

/* Bit definitions and macros for MCF_INTC_IPRH */
#define MCF_INTC_IPRH_INT32        (0x00000001)
#define MCF_INTC_IPRH_INT33        (0x00000002)
#define MCF_INTC_IPRH_INT34        (0x00000004)
#define MCF_INTC_IPRH_INT35        (0x00000008)
#define MCF_INTC_IPRH_INT36        (0x00000010)
#define MCF_INTC_IPRH_INT37        (0x00000020)
#define MCF_INTC_IPRH_INT38        (0x00000040)
#define MCF_INTC_IPRH_INT39        (0x00000080)
#define MCF_INTC_IPRH_INT40        (0x00000100)
#define MCF_INTC_IPRH_INT41        (0x00000200)
#define MCF_INTC_IPRH_INT42        (0x00000400)
#define MCF_INTC_IPRH_INT43        (0x00000800)
#define MCF_INTC_IPRH_INT44        (0x00001000)
#define MCF_INTC_IPRH_INT45        (0x00002000)
#define MCF_INTC_IPRH_INT46        (0x00004000)
#define MCF_INTC_IPRH_INT47        (0x00008000)
#define MCF_INTC_IPRH_INT48        (0x00010000)
#define MCF_INTC_IPRH_INT49        (0x00020000)
#define MCF_INTC_IPRH_INT50        (0x00040000)
#define MCF_INTC_IPRH_INT51        (0x00080000)
#define MCF_INTC_IPRH_INT52        (0x00100000)
#define MCF_INTC_IPRH_INT53        (0x00200000)
#define MCF_INTC_IPRH_INT54        (0x00400000)
#define MCF_INTC_IPRH_INT55        (0x00800000)
#define MCF_INTC_IPRH_INT56        (0x01000000)
#define MCF_INTC_IPRH_INT57        (0x02000000)
#define MCF_INTC_IPRH_INT58        (0x04000000)
#define MCF_INTC_IPRH_INT59        (0x08000000)
#define MCF_INTC_IPRH_INT60        (0x10000000)
#define MCF_INTC_IPRH_INT61        (0x20000000)
#define MCF_INTC_IPRH_INT62        (0x40000000)
#define MCF_INTC_IPRH_INT63        (0x80000000)

/* Bit definitions and macros for MCF_INTC_IPRL */
#define MCF_INTC_IPRL_INT0         (0x00000001)
#define MCF_INTC_IPRL_INT1         (0x00000002)
#define MCF_INTC_IPRL_INT2         (0x00000004)
#define MCF_INTC_IPRL_INT3         (0x00000008)
#define MCF_INTC_IPRL_INT4         (0x00000010)
#define MCF_INTC_IPRL_INT5         (0x00000020)
#define MCF_INTC_IPRL_INT6         (0x00000040)
#define MCF_INTC_IPRL_INT7         (0x00000080)
#define MCF_INTC_IPRL_INT8         (0x00000100)
#define MCF_INTC_IPRL_INT9         (0x00000200)
#define MCF_INTC_IPRL_INT10        (0x00000400)
#define MCF_INTC_IPRL_INT11        (0x00000800)
#define MCF_INTC_IPRL_INT12        (0x00001000)
#define MCF_INTC_IPRL_INT13        (0x00002000)
#define MCF_INTC_IPRL_INT14        (0x00004000)
#define MCF_INTC_IPRL_INT15        (0x00008000)
#define MCF_INTC_IPRL_INT16        (0x00010000)
#define MCF_INTC_IPRL_INT17        (0x00020000)
#define MCF_INTC_IPRL_INT18        (0x00040000)
#define MCF_INTC_IPRL_INT19        (0x00080000)
#define MCF_INTC_IPRL_INT20        (0x00100000)
#define MCF_INTC_IPRL_INT21        (0x00200000)
#define MCF_INTC_IPRL_INT22        (0x00400000)
#define MCF_INTC_IPRL_INT23        (0x00800000)
#define MCF_INTC_IPRL_INT24        (0x01000000)
#define MCF_INTC_IPRL_INT25        (0x02000000)
#define MCF_INTC_IPRL_INT26        (0x04000000)
#define MCF_INTC_IPRL_INT27        (0x08000000)
#define MCF_INTC_IPRL_INT28        (0x10000000)
#define MCF_INTC_IPRL_INT29        (0x20000000)
#define MCF_INTC_IPRL_INT30        (0x40000000)
#define MCF_INTC_IPRL_INT31        (0x80000000)

/* Bit definitions and macros for MCF_INTC_IMRH */
#define MCF_INTC_IMRH_INT_MASK32   (0x00000001)
#define MCF_INTC_IMRH_INT_MASK33   (0x00000002)
#define MCF_INTC_IMRH_INT_MASK34   (0x00000004)
#define MCF_INTC_IMRH_INT_MASK35   (0x00000008)
#define MCF_INTC_IMRH_INT_MASK36   (0x00000010)
#define MCF_INTC_IMRH_INT_MASK37   (0x00000020)
#define MCF_INTC_IMRH_INT_MASK38   (0x00000040)
#define MCF_INTC_IMRH_INT_MASK39   (0x00000080)
#define MCF_INTC_IMRH_INT_MASK40   (0x00000100)
#define MCF_INTC_IMRH_INT_MASK41   (0x00000200)
#define MCF_INTC_IMRH_INT_MASK42   (0x00000400)
#define MCF_INTC_IMRH_INT_MASK43   (0x00000800)
#define MCF_INTC_IMRH_INT_MASK44   (0x00001000)
#define MCF_INTC_IMRH_INT_MASK45   (0x00002000)
#define MCF_INTC_IMRH_INT_MASK46   (0x00004000)
#define MCF_INTC_IMRH_INT_MASK47   (0x00008000)
#define MCF_INTC_IMRH_INT_MASK48   (0x00010000)
#define MCF_INTC_IMRH_INT_MASK49   (0x00020000)
#define MCF_INTC_IMRH_INT_MASK50   (0x00040000)
#define MCF_INTC_IMRH_INT_MASK51   (0x00080000)
#define MCF_INTC_IMRH_INT_MASK52   (0x00100000)
#define MCF_INTC_IMRH_INT_MASK53   (0x00200000)
#define MCF_INTC_IMRH_INT_MASK54   (0x00400000)
#define MCF_INTC_IMRH_INT_MASK55   (0x00800000)
#define MCF_INTC_IMRH_INT_MASK56   (0x01000000)
#define MCF_INTC_IMRH_INT_MASK57   (0x02000000)
#define MCF_INTC_IMRH_INT_MASK58   (0x04000000)
#define MCF_INTC_IMRH_INT_MASK59   (0x08000000)
#define MCF_INTC_IMRH_INT_MASK60   (0x10000000)
#define MCF_INTC_IMRH_INT_MASK61   (0x20000000)
#define MCF_INTC_IMRH_INT_MASK62   (0x40000000)
#define MCF_INTC_IMRH_INT_MASK63   (0x80000000)

/* Bit definitions and macros for MCF_INTC_IMRL */
#define MCF_INTC_IMRL_INT_MASK0    (0x00000001)
#define MCF_INTC_IMRL_INT_MASK1    (0x00000002)
#define MCF_INTC_IMRL_INT_MASK2    (0x00000004)
#define MCF_INTC_IMRL_INT_MASK3    (0x00000008)
#define MCF_INTC_IMRL_INT_MASK4    (0x00000010)
#define MCF_INTC_IMRL_INT_MASK5    (0x00000020)
#define MCF_INTC_IMRL_INT_MASK6    (0x00000040)
#define MCF_INTC_IMRL_INT_MASK7    (0x00000080)
#define MCF_INTC_IMRL_INT_MASK8    (0x00000100)
#define MCF_INTC_IMRL_INT_MASK9    (0x00000200)
#define MCF_INTC_IMRL_INT_MASK10   (0x00000400)
#define MCF_INTC_IMRL_INT_MASK11   (0x00000800)
#define MCF_INTC_IMRL_INT_MASK12   (0x00001000)
#define MCF_INTC_IMRL_INT_MASK13   (0x00002000)
#define MCF_INTC_IMRL_INT_MASK14   (0x00004000)
#define MCF_INTC_IMRL_INT_MASK15   (0x00008000)
#define MCF_INTC_IMRL_INT_MASK16   (0x00010000)
#define MCF_INTC_IMRL_INT_MASK17   (0x00020000)
#define MCF_INTC_IMRL_INT_MASK18   (0x00040000)
#define MCF_INTC_IMRL_INT_MASK19   (0x00080000)
#define MCF_INTC_IMRL_INT_MASK20   (0x00100000)
#define MCF_INTC_IMRL_INT_MASK21   (0x00200000)
#define MCF_INTC_IMRL_INT_MASK22   (0x00400000)
#define MCF_INTC_IMRL_INT_MASK23   (0x00800000)
#define MCF_INTC_IMRL_INT_MASK24   (0x01000000)
#define MCF_INTC_IMRL_INT_MASK25   (0x02000000)
#define MCF_INTC_IMRL_INT_MASK26   (0x04000000)
#define MCF_INTC_IMRL_INT_MASK27   (0x08000000)
#define MCF_INTC_IMRL_INT_MASK28   (0x10000000)
#define MCF_INTC_IMRL_INT_MASK29   (0x20000000)
#define MCF_INTC_IMRL_INT_MASK30   (0x40000000)
#define MCF_INTC_IMRL_INT_MASK31   (0x80000000)

/* Bit definitions and macros for MCF_INTC_INTFRCH */
#define MCF_INTC_INTFRCH_INTFRC32  (0x00000001)
#define MCF_INTC_INTFRCH_INTFRC33  (0x00000002)
#define MCF_INTC_INTFRCH_INTFRC34  (0x00000004)
#define MCF_INTC_INTFRCH_INTFRC35  (0x00000008)
#define MCF_INTC_INTFRCH_INTFRC36  (0x00000010)
#define MCF_INTC_INTFRCH_INTFRC37  (0x00000020)
#define MCF_INTC_INTFRCH_INTFRC38  (0x00000040)
#define MCF_INTC_INTFRCH_INTFRC39  (0x00000080)
#define MCF_INTC_INTFRCH_INTFRC40  (0x00000100)
#define MCF_INTC_INTFRCH_INTFRC41  (0x00000200)
#define MCF_INTC_INTFRCH_INTFRC42  (0x00000400)
#define MCF_INTC_INTFRCH_INTFRC43  (0x00000800)
#define MCF_INTC_INTFRCH_INTFRC44  (0x00001000)
#define MCF_INTC_INTFRCH_INTFRC45  (0x00002000)
#define MCF_INTC_INTFRCH_INTFRC46  (0x00004000)
#define MCF_INTC_INTFRCH_INTFRC47  (0x00008000)
#define MCF_INTC_INTFRCH_INTFRC48  (0x00010000)
#define MCF_INTC_INTFRCH_INTFRC49  (0x00020000)
#define MCF_INTC_INTFRCH_INTFRC50  (0x00040000)
#define MCF_INTC_INTFRCH_INTFRC51  (0x00080000)
#define MCF_INTC_INTFRCH_INTFRC52  (0x00100000)
#define MCF_INTC_INTFRCH_INTFRC53  (0x00200000)
#define MCF_INTC_INTFRCH_INTFRC54  (0x00400000)
#define MCF_INTC_INTFRCH_INTFRC55  (0x00800000)
#define MCF_INTC_INTFRCH_INTFRC56  (0x01000000)
#define MCF_INTC_INTFRCH_INTFRC57  (0x02000000)
#define MCF_INTC_INTFRCH_INTFRC58  (0x04000000)
#define MCF_INTC_INTFRCH_INTFRC59  (0x08000000)
#define MCF_INTC_INTFRCH_INTFRC60  (0x10000000)
#define MCF_INTC_INTFRCH_INTFRC61  (0x20000000)
#define MCF_INTC_INTFRCH_INTFRC62  (0x40000000)
#define MCF_INTC_INTFRCH_INTFRC63  (0x80000000)

/* Bit definitions and macros for MCF_INTC_INTFRCL */
#define MCF_INTC_INTFRCL_INTFRC0   (0x00000001)
#define MCF_INTC_INTFRCL_INTFRC1   (0x00000002)
#define MCF_INTC_INTFRCL_INTFRC2   (0x00000004)
#define MCF_INTC_INTFRCL_INTFRC3   (0x00000008)
#define MCF_INTC_INTFRCL_INTFRC4   (0x00000010)
#define MCF_INTC_INTFRCL_INTFRC5   (0x00000020)
#define MCF_INTC_INTFRCL_INTFRC6   (0x00000040)
#define MCF_INTC_INTFRCL_INTFRC7   (0x00000080)
#define MCF_INTC_INTFRCL_INTFRC8   (0x00000100)
#define MCF_INTC_INTFRCL_INTFRC9   (0x00000200)
#define MCF_INTC_INTFRCL_INTFRC10  (0x00000400)
#define MCF_INTC_INTFRCL_INTFRC11  (0x00000800)
#define MCF_INTC_INTFRCL_INTFRC12  (0x00001000)
#define MCF_INTC_INTFRCL_INTFRC13  (0x00002000)
#define MCF_INTC_INTFRCL_INTFRC14  (0x00004000)
#define MCF_INTC_INTFRCL_INTFRC15  (0x00008000)
#define MCF_INTC_INTFRCL_INTFRC16  (0x00010000)
#define MCF_INTC_INTFRCL_INTFRC17  (0x00020000)
#define MCF_INTC_INTFRCL_INTFRC18  (0x00040000)
#define MCF_INTC_INTFRCL_INTFRC19  (0x00080000)
#define MCF_INTC_INTFRCL_INTFRC20  (0x00100000)
#define MCF_INTC_INTFRCL_INTFRC21  (0x00200000)
#define MCF_INTC_INTFRCL_INTFRC22  (0x00400000)
#define MCF_INTC_INTFRCL_INTFRC23  (0x00800000)
#define MCF_INTC_INTFRCL_INTFRC24  (0x01000000)
#define MCF_INTC_INTFRCL_INTFRC25  (0x02000000)
#define MCF_INTC_INTFRCL_INTFRC26  (0x04000000)
#define MCF_INTC_INTFRCL_INTFRC27  (0x08000000)
#define MCF_INTC_INTFRCL_INTFRC28  (0x10000000)
#define MCF_INTC_INTFRCL_INTFRC29  (0x20000000)
#define MCF_INTC_INTFRCL_INTFRC30  (0x40000000)
#define MCF_INTC_INTFRCL_INTFRC31  (0x80000000)

/* Bit definitions and macros for MCF_INTC_ICONFIG */
#define MCF_INTC_ICONFIG_EMASK     (0x0020)
#define MCF_INTC_ICONFIG_ELVLPRI1  (0x0200)
#define MCF_INTC_ICONFIG_ELVLPRI2  (0x0400)
#define MCF_INTC_ICONFIG_ELVLPRI3  (0x0800)
#define MCF_INTC_ICONFIG_ELVLPRI4  (0x1000)
#define MCF_INTC_ICONFIG_ELVLPRI5  (0x2000)
#define MCF_INTC_ICONFIG_ELVLPRI6  (0x4000)
#define MCF_INTC_ICONFIG_ELVLPRI7  (0x8000)

/* Bit definitions and macros for MCF_INTC_SIMR */
#define MCF_INTC_SIMR_SIMR(x)      (((x)&0x7F)<<0)

/* Bit definitions and macros for MCF_INTC_CIMR */
#define MCF_INTC_CIMR_CIMR(x)      (((x)&0x7F)<<0)

/* Bit definitions and macros for MCF_INTC_CLMASK */
#define MCF_INTC_CLMASK_CLMASK(x)  (((x)&0x0F)<<0)

/* Bit definitions and macros for MCF_INTC_SLMASK */
#define MCF_INTC_SLMASK_SLMASK(x)  (((x)&0x0F)<<0)

/* Bit definitions and macros for MCF_INTC_ICR */
#define MCF_INTC_ICR_IL(x)         (((x)&0x07)<<0)

/* Bit definitions and macros for MCF_INTC_SWIACK */
#define MCF_INTC_SWIACK_VECTOR(x)  (((x)&0xFF)<<0)

/* Bit definitions and macros for MCF_INTC_LIACK */
#define MCF_INTC_LIACK_VECTOR(x)   (((x)&0xFF)<<0)

/*********************************************************************
*
* Interrupt Controller (INTC_IACK)
*
*********************************************************************/

/* Register read/write macros */
#define MCF_INTC_IACK_GSWIACK            (*(vuint8 *)(0xFC0540E0))
#define MCF_INTC_IACK_GL1IACK            (*(vuint8 *)(0xFC0540E4))
#define MCF_INTC_IACK_GL2IACK            (*(vuint8 *)(0xFC0540E8))
#define MCF_INTC_IACK_GL3IACK            (*(vuint8 *)(0xFC0540EC))
#define MCF_INTC_IACK_GL4IACK            (*(vuint8 *)(0xFC0540F0))
#define MCF_INTC_IACK_GL5IACK            (*(vuint8 *)(0xFC0540F4))
#define MCF_INTC_IACK_GL6IACK            (*(vuint8 *)(0xFC0540F8))
#define MCF_INTC_IACK_GL7IACK            (*(vuint8 *)(0xFC0540FC))
#define MCF_INTC_IACK_GLIACK(x)          (*(vuint8 *)(0xFC0540E4+((x-1)*0x004)))

/* Bit definitions and macros for MCF_INTC_IACK_GSWIACK */
#define MCF_INTC_IACK_GSWIACK_VECTOR(x)  (((x)&0xFF)<<0)

/* Bit definitions and macros for MCF_INTC_IACK_GLIACK */
#define MCF_INTC_IACK_GLIACK_VECTOR(x)   (((x)&0xFF)<<0)

/*********************************************************************
*
* I2C Module (I2C)
*
*********************************************************************/

/* Register read/write macros */
#define MCF_I2C_I2AR          (*(vuint8 *)(0xFC058000))
#define MCF_I2C_I2FDR         (*(vuint8 *)(0xFC058004))
#define MCF_I2C_I2CR          (*(vuint8 *)(0xFC058008))
#define MCF_I2C_I2SR          (*(vuint8 *)(0xFC05800C))
#define MCF_I2C_I2DR          (*(vuint8 *)(0xFC058010))

/* Bit definitions and macros for MCF_I2C_I2AR */
#define MCF_I2C_I2AR_ADR(x)   (((x)&0x7F)<<1)

/* Bit definitions and macros for MCF_I2C_I2FDR */
#define MCF_I2C_I2FDR_IC(x)   (((x)&0x3F)<<0)

/* Bit definitions and macros for MCF_I2C_I2CR */
#define MCF_I2C_I2CR_RSTA     (0x04)
#define MCF_I2C_I2CR_TXAK     (0x08)
#define MCF_I2C_I2CR_MTX      (0x10)
#define MCF_I2C_I2CR_MSTA     (0x20)
#define MCF_I2C_I2CR_IIEN     (0x40)
#define MCF_I2C_I2CR_IEN      (0x80)

/* Bit definitions and macros for MCF_I2C_I2SR */
#define MCF_I2C_I2SR_RXAK     (0x01)
#define MCF_I2C_I2SR_IIF      (0x02)
#define MCF_I2C_I2SR_SRW      (0x04)
#define MCF_I2C_I2SR_IAL      (0x10)
#define MCF_I2C_I2SR_IBB      (0x20)
#define MCF_I2C_I2SR_IAAS     (0x40)
#define MCF_I2C_I2SR_ICF      (0x80)

/* Bit definitions and macros for MCF_I2C_I2DR */
#define MCF_I2C_I2DR_DATA(x)  (((x)&0xFF)<<0)

/*********************************************************************
*
* Queued Serial Peripheral Interface (QSPI)
*
*********************************************************************/

/* Register read/write macros */
#define MCF_QSPI_QMR           (*(vuint16*)(0xFC05C000))
#define MCF_QSPI_QDLYR         (*(vuint16*)(0xFC05C004))
#define MCF_QSPI_QWR           (*(vuint16*)(0xFC05C008))
#define MCF_QSPI_QIR           (*(vuint16*)(0xFC05C00C))
#define MCF_QSPI_QAR           (*(vuint16*)(0xFC05C010))
#define MCF_QSPI_QDR           (*(vuint16*)(0xFC05C014))

/* Bit definitions and macros for MCF_QSPI_QMR */
#define MCF_QSPI_QMR_BAUD(x)   (((x)&0x00FF)<<0)
#define MCF_QSPI_QMR_CPHA      (0x0100)
#define MCF_QSPI_QMR_CPOL      (0x0200)
#define MCF_QSPI_QMR_BITS(x)   (((x)&0x000F)<<10)
#define MCF_QSPI_QMR_DOHIE     (0x4000)
#define MCF_QSPI_QMR_MSTR      (0x8000)

/* Bit definitions and macros for MCF_QSPI_QDLYR */
#define MCF_QSPI_QDLYR_DTL(x)  (((x)&0x00FF)<<0)
#define MCF_QSPI_QDLYR_QCD(x)  (((x)&0x007F)<<8)
#define MCF_QSPI_QDLYR_SPE     (0x8000)

/* Bit definitions and macros for MCF_QSPI_QWR */
#define MCF_QSPI_QWR_NEWQP(x)  (((x)&0x000F)<<0)
#define MCF_QSPI_QWR_ENDQP(x)  (((x)&0x000F)<<8)
#define MCF_QSPI_QWR_CSIV      (0x1000)
#define MCF_QSPI_QWR_WRTO      (0x2000)
#define MCF_QSPI_QWR_WREN      (0x4000)
#define MCF_QSPI_QWR_HALT      (0x8000)

/* Bit definitions and macros for MCF_QSPI_QIR */
#define MCF_QSPI_QIR_SPIF      (0x0001)
#define MCF_QSPI_QIR_ABRT      (0x0004)
#define MCF_QSPI_QIR_WCEF      (0x0008)
#define MCF_QSPI_QIR_SPIFE     (0x0100)
#define MCF_QSPI_QIR_ABRTE     (0x0400)
#define MCF_QSPI_QIR_WCEFE     (0x0800)
#define MCF_QSPI_QIR_ABRTL     (0x1000)
#define MCF_QSPI_QIR_ABRTB     (0x4000)
#define MCF_QSPI_QIR_WCEFB     (0x8000)

/* Bit definitions and macros for MCF_QSPI_QAR */
#define MCF_QSPI_QAR_ADDR(x)   (((x)&0x003F)<<0)
#define MCF_QSPI_QAR_TRANS     (0x0000)
#define MCF_QSPI_QAR_RECV      (0x0010)
#define MCF_QSPI_QAR_CMD       (0x0020)

/* Bit definitions and macros for MCF_QSPI_QDR */
#define MCF_QSPI_QDR_DATA(x)   (((x)&0xFFFF)<<0)
#define MCF_QSPI_QDR_CONT      (0x8000)
#define MCF_QSPI_QDR_BITSE     (0x4000)
#define MCF_QSPI_QDR_DT        (0x2000)
#define MCF_QSPI_QDR_DSCK      (0x1000)
#define MCF_QSPI_QDR_QSPI_CS3  (0x0800)
#define MCF_QSPI_QDR_QSPI_CS2  (0x0400)
#define MCF_QSPI_QDR_QSPI_CS1  (0x0200)
#define MCF_QSPI_QDR_QSPI_CS0  (0x0100)

/*********************************************************************
*
* Universal Asynchronous Receiver Transmitter (UART)
*
*********************************************************************/

/* Register read/write macros */
#define MCF_UART0_UMR                 (*(vuint8 *)(0xFC060000))
#define MCF_UART0_USR                 (*(vuint8 *)(0xFC060004))
#define MCF_UART0_UCSR                (*(vuint8 *)(0xFC060004))
#define MCF_UART0_UCR                 (*(vuint8 *)(0xFC060008))
#define MCF_UART0_URB                 (*(vuint8 *)(0xFC06000C))
#define MCF_UART0_UTB                 (*(vuint8 *)(0xFC06000C))
#define MCF_UART0_UIPCR               (*(vuint8 *)(0xFC060010))
#define MCF_UART0_UACR                (*(vuint8 *)(0xFC060010))
#define MCF_UART0_UISR                (*(vuint8 *)(0xFC060014))
#define MCF_UART0_UIMR                (*(vuint8 *)(0xFC060014))
#define MCF_UART0_UBG1                (*(vuint8 *)(0xFC060018))
#define MCF_UART0_UBG2                (*(vuint8 *)(0xFC06001C))
#define MCF_UART0_UIP                 (*(vuint8 *)(0xFC060034))
#define MCF_UART0_UOP1                (*(vuint8 *)(0xFC060038))
#define MCF_UART0_UOP0                (*(vuint8 *)(0xFC06003C))
#define MCF_UART1_UMR                 (*(vuint8 *)(0xFC064000))
#define MCF_UART1_USR                 (*(vuint8 *)(0xFC064004))
#define MCF_UART1_UCSR                (*(vuint8 *)(0xFC064004))
#define MCF_UART1_UCR                 (*(vuint8 *)(0xFC064008))
#define MCF_UART1_URB                 (*(vuint8 *)(0xFC06400C))
#define MCF_UART1_UTB                 (*(vuint8 *)(0xFC06400C))
#define MCF_UART1_UIPCR               (*(vuint8 *)(0xFC064010))
#define MCF_UART1_UACR                (*(vuint8 *)(0xFC064010))
#define MCF_UART1_UISR                (*(vuint8 *)(0xFC064014))
#define MCF_UART1_UIMR                (*(vuint8 *)(0xFC064014))
#define MCF_UART1_UBG1                (*(vuint8 *)(0xFC064018))
#define MCF_UART1_UBG2                (*(vuint8 *)(0xFC06401C))
#define MCF_UART1_UIP                 (*(vuint8 *)(0xFC064034))
#define MCF_UART1_UOP1                (*(vuint8 *)(0xFC064038))
#define MCF_UART1_UOP0                (*(vuint8 *)(0xFC06403C))
#define MCF_UART2_UMR                 (*(vuint8 *)(0xFC068000))
#define MCF_UART2_USR                 (*(vuint8 *)(0xFC068004))
#define MCF_UART2_UCSR                (*(vuint8 *)(0xFC068004))
#define MCF_UART2_UCR                 (*(vuint8 *)(0xFC068008))
#define MCF_UART2_URB                 (*(vuint8 *)(0xFC06800C))
#define MCF_UART2_UTB                 (*(vuint8 *)(0xFC06800C))
#define MCF_UART2_UIPCR               (*(vuint8 *)(0xFC068010))
#define MCF_UART2_UACR                (*(vuint8 *)(0xFC068010))
#define MCF_UART2_UISR                (*(vuint8 *)(0xFC068014))
#define MCF_UART2_UIMR                (*(vuint8 *)(0xFC068014))
#define MCF_UART2_UBG1                (*(vuint8 *)(0xFC068018))
#define MCF_UART2_UBG2                (*(vuint8 *)(0xFC06801C))
#define MCF_UART2_UIP                 (*(vuint8 *)(0xFC068034))
#define MCF_UART2_UOP1                (*(vuint8 *)(0xFC068038))
#define MCF_UART2_UOP0                (*(vuint8 *)(0xFC06803C))
#define MCF_UART_UMR(x)               (*(vuint8 *)(0xFC060000+((x)*0x4000)))
#define MCF_UART_USR(x)               (*(vuint8 *)(0xFC060004+((x)*0x4000)))
#define MCF_UART_UCSR(x)              (*(vuint8 *)(0xFC060004+((x)*0x4000)))
#define MCF_UART_UCR(x)               (*(vuint8 *)(0xFC060008+((x)*0x4000)))
#define MCF_UART_URB(x)               (*(vuint8 *)(0xFC06000C+((x)*0x4000)))
#define MCF_UART_UTB(x)               (*(vuint8 *)(0xFC06000C+((x)*0x4000)))
#define MCF_UART_UIPCR(x)             (*(vuint8 *)(0xFC060010+((x)*0x4000)))
#define MCF_UART_UACR(x)              (*(vuint8 *)(0xFC060010+((x)*0x4000)))
#define MCF_UART_UISR(x)              (*(vuint8 *)(0xFC060014+((x)*0x4000)))
#define MCF_UART_UIMR(x)              (*(vuint8 *)(0xFC060014+((x)*0x4000)))
#define MCF_UART_UBG1(x)              (*(vuint8 *)(0xFC060018+((x)*0x4000)))
#define MCF_UART_UBG2(x)              (*(vuint8 *)(0xFC06001C+((x)*0x4000)))
#define MCF_UART_UIP(x)               (*(vuint8 *)(0xFC060034+((x)*0x4000)))
#define MCF_UART_UOP1(x)              (*(vuint8 *)(0xFC060038+((x)*0x4000)))
#define MCF_UART_UOP0(x)              (*(vuint8 *)(0xFC06003C+((x)*0x4000)))

/* Bit definitions and macros for MCF_UART_UMR */
#define MCF_UART_UMR_BC(x)            (((x)&0x03)<<0)
#define MCF_UART_UMR_PT               (0x04)
#define MCF_UART_UMR_PM(x)            (((x)&0x03)<<3)
#define MCF_UART_UMR_ERR              (0x20)
#define MCF_UART_UMR_RXIRQ            (0x40)
#define MCF_UART_UMR_RXRTS            (0x80)
#define MCF_UART_UMR_SB(x)            (((x)&0x0F)<<0)
#define MCF_UART_UMR_TXCTS            (0x10)
#define MCF_UART_UMR_TXRTS            (0x20)
#define MCF_UART_UMR_CM(x)            (((x)&0x03)<<6)
#define MCF_UART_UMR_PM_MULTI_ADDR    (0x1C)
#define MCF_UART_UMR_PM_MULTI_DATA    (0x18)
#define MCF_UART_UMR_PM_NONE          (0x10)
#define MCF_UART_UMR_PM_FORCE_HI      (0x0C)
#define MCF_UART_UMR_PM_FORCE_LO      (0x08)
#define MCF_UART_UMR_PM_ODD           (0x04)
#define MCF_UART_UMR_PM_EVEN          (0x00)
#define MCF_UART_UMR_BC_5             (0x00)
#define MCF_UART_UMR_BC_6             (0x01)
#define MCF_UART_UMR_BC_7             (0x02)
#define MCF_UART_UMR_BC_8             (0x03)
#define MCF_UART_UMR_CM_NORMAL        (0x00)
#define MCF_UART_UMR_CM_ECHO          (0x40)
#define MCF_UART_UMR_CM_LOCAL_LOOP    (0x80)
#define MCF_UART_UMR_CM_REMOTE_LOOP   (0xC0)
#define MCF_UART_UMR_SB_STOP_BITS_1   (0x07)
#define MCF_UART_UMR_SB_STOP_BITS_15  (0x08)
#define MCF_UART_UMR_SB_STOP_BITS_2   (0x0F)

/* Bit definitions and macros for MCF_UART_USR */
#define MCF_UART_USR_RXRDY            (0x01)
#define MCF_UART_USR_FFULL            (0x02)
#define MCF_UART_USR_TXRDY            (0x04)
#define MCF_UART_USR_TXEMP            (0x08)
#define MCF_UART_USR_OE               (0x10)
#define MCF_UART_USR_PE               (0x20)
#define MCF_UART_USR_FE               (0x40)
#define MCF_UART_USR_RB               (0x80)

/* Bit definitions and macros for MCF_UART_UCSR */
#define MCF_UART_UCSR_TCS(x)          (((x)&0x0F)<<0)
#define MCF_UART_UCSR_RCS(x)          (((x)&0x0F)<<4)
#define MCF_UART_UCSR_RCS_SYS_CLK     (0xD0)
#define MCF_UART_UCSR_RCS_CTM16       (0xE0)
#define MCF_UART_UCSR_RCS_CTM         (0xF0)
#define MCF_UART_UCSR_TCS_SYS_CLK     (0x0D)
#define MCF_UART_UCSR_TCS_CTM16       (0x0E)
#define MCF_UART_UCSR_TCS_CTM         (0x0F)

/* Bit definitions and macros for MCF_UART_UCR */
#define MCF_UART_UCR_RXC(x)           (((x)&0x03)<<0)
#define MCF_UART_UCR_TXC(x)           (((x)&0x03)<<2)
#define MCF_UART_UCR_MISC(x)          (((x)&0x07)<<4)
#define MCF_UART_UCR_NONE             (0x00)
#define MCF_UART_UCR_STOP_BREAK       (0x70)
#define MCF_UART_UCR_START_BREAK      (0x60)
#define MCF_UART_UCR_BKCHGINT         (0x50)
#define MCF_UART_UCR_RESET_ERROR      (0x40)
#define MCF_UART_UCR_RESET_TX         (0x30)
#define MCF_UART_UCR_RESET_RX         (0x20)
#define MCF_UART_UCR_RESET_MR         (0x10)
#define MCF_UART_UCR_TX_DISABLED      (0x08)
#define MCF_UART_UCR_TX_ENABLED       (0x04)
#define MCF_UART_UCR_RX_DISABLED      (0x02)
#define MCF_UART_UCR_RX_ENABLED       (0x01)

/* Bit definitions and macros for MCF_UART_UIPCR */
#define MCF_UART_UIPCR_CTS            (0x01)
#define MCF_UART_UIPCR_COS            (0x10)

/* Bit definitions and macros for MCF_UART_UACR */
#define MCF_UART_UACR_IEC             (0x01)

/* Bit definitions and macros for MCF_UART_UISR */
#define MCF_UART_UISR_TXRDY           (0x01)
#define MCF_UART_UISR_RXRDY_FU        (0x02)
#define MCF_UART_UISR_DB              (0x04)
#define MCF_UART_UISR_RXFTO           (0x08)
#define MCF_UART_UISR_TXFIFO          (0x10)
#define MCF_UART_UISR_RXFIFO          (0x20)
#define MCF_UART_UISR_COS             (0x80)

/* Bit definitions and macros for MCF_UART_UIMR */
#define MCF_UART_UIMR_TXRDY           (0x01)
#define MCF_UART_UIMR_RXRDY_FU        (0x02)
#define MCF_UART_UIMR_DB              (0x04)
#define MCF_UART_UIMR_COS             (0x80)

/* Bit definitions and macros for MCF_UART_UIP */
#define MCF_UART_UIP_CTS              (0x01)

/* Bit definitions and macros for MCF_UART_UOP1 */
#define MCF_UART_UOP1_RTS             (0x01)

/* Bit definitions and macros for MCF_UART_UOP0 */
#define MCF_UART_UOP0_RTS             (0x01)

/*********************************************************************
*
* DMA Timers (DTIM)
*
*********************************************************************/

/* Register read/write macros */
#define MCF_DTIM0_DTMR           (*(vuint16*)(0xFC070000))
#define MCF_DTIM0_DTXMR          (*(vuint8 *)(0xFC070002))
#define MCF_DTIM0_DTER           (*(vuint8 *)(0xFC070003))
#define MCF_DTIM0_DTRR           (*(vuint32*)(0xFC070004))
#define MCF_DTIM0_DTCR           (*(vuint32*)(0xFC070008))
#define MCF_DTIM0_DTCN           (*(vuint32*)(0xFC07000C))
#define MCF_DTIM1_DTMR           (*(vuint16*)(0xFC074000))
#define MCF_DTIM1_DTXMR          (*(vuint8 *)(0xFC074002))
#define MCF_DTIM1_DTER           (*(vuint8 *)(0xFC074003))
#define MCF_DTIM1_DTRR           (*(vuint32*)(0xFC074004))
#define MCF_DTIM1_DTCR           (*(vuint32*)(0xFC074008))
#define MCF_DTIM1_DTCN           (*(vuint32*)(0xFC07400C))
#define MCF_DTIM2_DTMR           (*(vuint16*)(0xFC078000))
#define MCF_DTIM2_DTXMR          (*(vuint8 *)(0xFC078002))
#define MCF_DTIM2_DTER           (*(vuint8 *)(0xFC078003))
#define MCF_DTIM2_DTRR           (*(vuint32*)(0xFC078004))
#define MCF_DTIM2_DTCR           (*(vuint32*)(0xFC078008))
#define MCF_DTIM2_DTCN           (*(vuint32*)(0xFC07800C))
#define MCF_DTIM3_DTMR           (*(vuint16*)(0xFC07C000))
#define MCF_DTIM3_DTXMR          (*(vuint8 *)(0xFC07C002))
#define MCF_DTIM3_DTER           (*(vuint8 *)(0xFC07C003))
#define MCF_DTIM3_DTRR           (*(vuint32*)(0xFC07C004))
#define MCF_DTIM3_DTCR           (*(vuint32*)(0xFC07C008))
#define MCF_DTIM3_DTCN           (*(vuint32*)(0xFC07C00C))
#define MCF_DTIM_DTMR(x)         (*(vuint16*)(0xFC070000+((x)*0x4000)))
#define MCF_DTIM_DTXMR(x)        (*(vuint8 *)(0xFC070002+((x)*0x4000)))
#define MCF_DTIM_DTER(x)         (*(vuint8 *)(0xFC070003+((x)*0x4000)))
#define MCF_DTIM_DTRR(x)         (*(vuint32*)(0xFC070004+((x)*0x4000)))
#define MCF_DTIM_DTCR(x)         (*(vuint32*)(0xFC070008+((x)*0x4000)))
#define MCF_DTIM_DTCN(x)         (*(vuint32*)(0xFC07000C+((x)*0x4000)))

/* Bit definitions and macros for MCF_DTIM_DTMR */
#define MCF_DTIM_DTMR_RST        (0x0001)
#define MCF_DTIM_DTMR_CLK(x)     (((x)&0x0003)<<1)
#define MCF_DTIM_DTMR_FRR        (0x0008)
#define MCF_DTIM_DTMR_ORRI       (0x0010)
#define MCF_DTIM_DTMR_OM         (0x0020)
#define MCF_DTIM_DTMR_CE(x)      (((x)&0x0003)<<6)
#define MCF_DTIM_DTMR_PS(x)      (((x)&0x00FF)<<8)
#define MCF_DTIM_DTMR_CE_ANY     (0x00C0)
#define MCF_DTIM_DTMR_CE_FALL    (0x0080)
#define MCF_DTIM_DTMR_CE_RISE    (0x0040)
#define MCF_DTIM_DTMR_CE_NONE    (0x0000)
#define MCF_DTIM_DTMR_CLK_DTIN   (0x0006)
#define MCF_DTIM_DTMR_CLK_DIV16  (0x0004)
#define MCF_DTIM_DTMR_CLK_DIV1   (0x0002)
#define MCF_DTIM_DTMR_CLK_STOP   (0x0000)

/* Bit definitions and macros for MCF_DTIM_DTXMR */
#define MCF_DTIM_DTXMR_MODE16    (0x01)
#define MCF_DTIM_DTXMR_DMAEN     (0x80)

/* Bit definitions and macros for MCF_DTIM_DTER */
#define MCF_DTIM_DTER_CAP        (0x01)
#define MCF_DTIM_DTER_REF        (0x02)

/* Bit definitions and macros for MCF_DTIM_DTRR */
#define MCF_DTIM_DTRR_REF(x)     (((x)&0xFFFFFFFF)<<0)

/* Bit definitions and macros for MCF_DTIM_DTCR */
#define MCF_DTIM_DTCR_CAP(x)     (((x)&0xFFFFFFFF)<<0)

/* Bit definitions and macros for MCF_DTIM_DTCN */
#define MCF_DTIM_DTCN_CNT(x)     (((x)&0xFFFFFFFF)<<0)

/*********************************************************************
*
* Programmable Interrupt Timer Modules (PIT)
*
*********************************************************************/

/* Register read/write macros */
#define MCF_PIT0_PCSR        (*(vuint16*)(0xFC080000))
#define MCF_PIT0_PMR         (*(vuint16*)(0xFC080002))
#define MCF_PIT0_PCNTR       (*(vuint16*)(0xFC080004))
#define MCF_PIT1_PCSR        (*(vuint16*)(0xFC084000))
#define MCF_PIT1_PMR         (*(vuint16*)(0xFC084002))
#define MCF_PIT1_PCNTR       (*(vuint16*)(0xFC084004))
#define MCF_PIT2_PCSR        (*(vuint16*)(0xFC088000))
#define MCF_PIT2_PMR         (*(vuint16*)(0xFC088002))
#define MCF_PIT2_PCNTR       (*(vuint16*)(0xFC088004))
#define MCF_PIT3_PCSR        (*(vuint16*)(0xFC08C000))
#define MCF_PIT3_PMR         (*(vuint16*)(0xFC08C002))
#define MCF_PIT3_PCNTR       (*(vuint16*)(0xFC08C004))
#define MCF_PIT_PCSR(x)      (*(vuint16*)(0xFC080000+((x)*0x4000)))
#define MCF_PIT_PMR(x)       (*(vuint16*)(0xFC080002+((x)*0x4000)))
#define MCF_PIT_PCNTR(x)     (*(vuint16*)(0xFC080004+((x)*0x4000)))

/* Bit definitions and macros for MCF_PIT_PCSR */
#define MCF_PIT_PCSR_EN      (0x0001)
#define MCF_PIT_PCSR_RLD     (0x0002)
#define MCF_PIT_PCSR_PIF     (0x0004)
#define MCF_PIT_PCSR_PIE     (0x0008)
#define MCF_PIT_PCSR_OVW     (0x0010)
#define MCF_PIT_PCSR_HALTED  (0x0020)
#define MCF_PIT_PCSR_DOZE    (0x0040)
#define MCF_PIT_PCSR_PRE(x)  (((x)&0x000F)<<8)

/* Bit definitions and macros for MCF_PIT_PMR */
#define MCF_PIT_PMR_PM(x)    (((x)&0xFFFF)<<0)

/* Bit definitions and macros for MCF_PIT_PCNTR */
#define MCF_PIT_PCNTR_PC(x)  (((x)&0xFFFF)<<0)

/*********************************************************************
*
* Pulse Width Modulation (PWM)
*
*********************************************************************/

/* Register read/write macros */
#define MCF_PWM_PWME               (*(vuint8 *)(0xFC090020))
#define MCF_PWM_PWMPOL             (*(vuint8 *)(0xFC090021))
#define MCF_PWM_PWMCLK             (*(vuint8 *)(0xFC090022))
#define MCF_PWM_PWMPRCLK           (*(vuint8 *)(0xFC090023))
#define MCF_PWM_PWMCAE             (*(vuint8 *)(0xFC090024))
#define MCF_PWM_PWMCTL             (*(vuint8 *)(0xFC090025))
#define MCF_PWM_PWMSCLA            (*(vuint8 *)(0xFC090028))
#define MCF_PWM_PWMSCLB            (*(vuint8 *)(0xFC090029))
#define MCF_PWM_PWMCNT0            (*(vuint8 *)(0xFC09002C))
#define MCF_PWM_PWMCNT1            (*(vuint8 *)(0xFC09002D))
#define MCF_PWM_PWMCNT2            (*(vuint8 *)(0xFC09002E))
#define MCF_PWM_PWMCNT3            (*(vuint8 *)(0xFC09002F))
#define MCF_PWM_PWMCNT4            (*(vuint8 *)(0xFC090030))
#define MCF_PWM_PWMCNT5            (*(vuint8 *)(0xFC090031))
#define MCF_PWM_PWMCNT6            (*(vuint8 *)(0xFC090032))
#define MCF_PWM_PWMCNT7            (*(vuint8 *)(0xFC090033))
#define MCF_PWM_PWMCNT(x)          (*(vuint8 *)(0xFC09002C+((x)*0x001)))
#define MCF_PWM_PWMPER0            (*(vuint8 *)(0xFC090034))
#define MCF_PWM_PWMPER1            (*(vuint8 *)(0xFC090035))
#define MCF_PWM_PWMPER2            (*(vuint8 *)(0xFC090036))
#define MCF_PWM_PWMPER3            (*(vuint8 *)(0xFC090037))
#define MCF_PWM_PWMPER4            (*(vuint8 *)(0xFC090038))
#define MCF_PWM_PWMPER5            (*(vuint8 *)(0xFC090039))
#define MCF_PWM_PWMPER6            (*(vuint8 *)(0xFC09003A))
#define MCF_PWM_PWMPER7            (*(vuint8 *)(0xFC09003B))
#define MCF_PWM_PWMPER(x)          (*(vuint8 *)(0xFC090034+((x)*0x001)))
#define MCF_PWM_PWMDTY0            (*(vuint8 *)(0xFC09003C))
#define MCF_PWM_PWMDTY1            (*(vuint8 *)(0xFC09003D))
#define MCF_PWM_PWMDTY2            (*(vuint8 *)(0xFC09003E))
#define MCF_PWM_PWMDTY3            (*(vuint8 *)(0xFC09003F))
#define MCF_PWM_PWMDTY4            (*(vuint8 *)(0xFC090040))
#define MCF_PWM_PWMDTY5            (*(vuint8 *)(0xFC090041))
#define MCF_PWM_PWMDTY6            (*(vuint8 *)(0xFC090042))
#define MCF_PWM_PWMDTY7            (*(vuint8 *)(0xFC090043))
#define MCF_PWM_PWMDTY(x)          (*(vuint8 *)(0xFC09003C+((x)*0x001)))
#define MCF_PWM_PWMSDN             (*(vuint8 *)(0xFC090044))

/* Bit definitions and macros for MCF_PWM_PWME */
#define MCF_PWM_PWME_PWME0         (0x01)
#define MCF_PWM_PWME_PWME1         (0x02)
#define MCF_PWM_PWME_PWME2         (0x04)
#define MCF_PWM_PWME_PWME3         (0x08)
#define MCF_PWM_PWME_PWME4         (0x10)
#define MCF_PWM_PWME_PWME5         (0x20)
#define MCF_PWM_PWME_PWME6         (0x40)
#define MCF_PWM_PWME_PWME7         (0x80)

/* Bit definitions and macros for MCF_PWM_PWMPOL */
#define MCF_PWM_PWMPOL_PPOL0       (0x01)
#define MCF_PWM_PWMPOL_PPOL1       (0x02)
#define MCF_PWM_PWMPOL_PPOL2       (0x04)
#define MCF_PWM_PWMPOL_PPOL3       (0x08)
#define MCF_PWM_PWMPOL_PPOL4       (0x10)
#define MCF_PWM_PWMPOL_PPOL5       (0x20)
#define MCF_PWM_PWMPOL_PPOL6       (0x40)
#define MCF_PWM_PWMPOL_PPOL7       (0x80)

/* Bit definitions and macros for MCF_PWM_PWMCLK */
#define MCF_PWM_PWMCLK_PCLK0       (0x01)
#define MCF_PWM_PWMCLK_PCLK1       (0x02)
#define MCF_PWM_PWMCLK_PCLK2       (0x04)
#define MCF_PWM_PWMCLK_PCLK3       (0x08)
#define MCF_PWM_PWMCLK_PCLK4       (0x10)
#define MCF_PWM_PWMCLK_PCLK5       (0x20)
#define MCF_PWM_PWMCLK_PCLK6       (0x40)
#define MCF_PWM_PWMCLK_PCLK7       (0x80)

/* Bit definitions and macros for MCF_PWM_PWMPRCLK */
#define MCF_PWM_PWMPRCLK_PCKA(x)   (((x)&0x07)<<0)
#define MCF_PWM_PWMPRCLK_PCKB(x)   (((x)&0x07)<<4)

/* Bit definitions and macros for MCF_PWM_PWMCAE */
#define MCF_PWM_PWMCAE_CAE0        (0x01)
#define MCF_PWM_PWMCAE_CAE1        (0x02)
#define MCF_PWM_PWMCAE_CAE2        (0x04)
#define MCF_PWM_PWMCAE_CAE3        (0x08)
#define MCF_PWM_PWMCAE_CAE4        (0x10)
#define MCF_PWM_PWMCAE_CAE5        (0x20)
#define MCF_PWM_PWMCAE_CAE6        (0x40)
#define MCF_PWM_PWMCAE_CAE7        (0x80)

/* Bit definitions and macros for MCF_PWM_PWMCTL */
#define MCF_PWM_PWMCTL_PFRZ        (0x04)
#define MCF_PWM_PWMCTL_PSWAI       (0x08)
#define MCF_PWM_PWMCTL_CON01       (0x10)
#define MCF_PWM_PWMCTL_CON23       (0x20)
#define MCF_PWM_PWMCTL_CON45       (0x40)
#define MCF_PWM_PWMCTL_CON67       (0x80)

/* Bit definitions and macros for MCF_PWM_PWMSCLA */
#define MCF_PWM_PWMSCLA_SCALEA(x)  (((x)&0xFF)<<0)

/* Bit definitions and macros for MCF_PWM_PWMSCLB */
#define MCF_PWM_PWMSCLB_SCALEB(x)  (((x)&0xFF)<<0)

/* Bit definitions and macros for MCF_PWM_PWMCNT */
#define MCF_PWM_PWMCNT_COUNT(x)    (((x)&0xFF)<<0)

/* Bit definitions and macros for MCF_PWM_PWMPER */
#define MCF_PWM_PWMPER_PERIOD(x)   (((x)&0xFF)<<0)

/* Bit definitions and macros for MCF_PWM_PWMDTY */
#define MCF_PWM_PWMDTY_DUTY(x)     (((x)&0xFF)<<0)

/* Bit definitions and macros for MCF_PWM_PWMSDN */
#define MCF_PWM_PWMSDN_SDNEN       (0x01)
#define MCF_PWM_PWMSDN_PWM7IL      (0x02)
#define MCF_PWM_PWMSDN_PWM7IN      (0x04)
#define MCF_PWM_PWMSDN_LVL         (0x10)
#define MCF_PWM_PWMSDN_RESTART     (0x20)
#define MCF_PWM_PWMSDN_IE          (0x40)
#define MCF_PWM_PWMSDN_IF          (0x80)

/*********************************************************************
*
* Edge Port Module (EPORT)
*
*********************************************************************/

/* Register read/write macros */
#define MCF_EPORT_EPPAR                (*(vuint16*)(0xFC094000))
#define MCF_EPORT_EPDDR                (*(vuint8 *)(0xFC094002))
#define MCF_EPORT_EPIER                (*(vuint8 *)(0xFC094003))
#define MCF_EPORT_EPDR                 (*(vuint8 *)(0xFC094004))
#define MCF_EPORT_EPPDR                (*(vuint8 *)(0xFC094005))
#define MCF_EPORT_EPFR                 (*(vuint8 *)(0xFC094006))

/* Bit definitions and macros for MCF_EPORT_EPPAR */
#define MCF_EPORT_EPPAR_EPPA1(x)       (((x)&0x0003)<<2)
#define MCF_EPORT_EPPAR_EPPA2(x)       (((x)&0x0003)<<4)
#define MCF_EPORT_EPPAR_EPPA3(x)       (((x)&0x0003)<<6)
#define MCF_EPORT_EPPAR_EPPA4(x)       (((x)&0x0003)<<8)
#define MCF_EPORT_EPPAR_EPPA5(x)       (((x)&0x0003)<<10)
#define MCF_EPORT_EPPAR_EPPA6(x)       (((x)&0x0003)<<12)
#define MCF_EPORT_EPPAR_EPPA7(x)       (((x)&0x0003)<<14)
#define MCF_EPORT_EPPAR_LEVEL          (0)
#define MCF_EPORT_EPPAR_RISING         (1)
#define MCF_EPORT_EPPAR_FALLING        (2)
#define MCF_EPORT_EPPAR_BOTH           (3)
#define MCF_EPORT_EPPAR_EPPA7_LEVEL    (0x0000)
#define MCF_EPORT_EPPAR_EPPA7_RISING   (0x4000)
#define MCF_EPORT_EPPAR_EPPA7_FALLING  (0x8000)
#define MCF_EPORT_EPPAR_EPPA7_BOTH     (0xC000)
#define MCF_EPORT_EPPAR_EPPA6_LEVEL    (0x0000)
#define MCF_EPORT_EPPAR_EPPA6_RISING   (0x1000)
#define MCF_EPORT_EPPAR_EPPA6_FALLING  (0x2000)
#define MCF_EPORT_EPPAR_EPPA6_BOTH     (0x3000)
#define MCF_EPORT_EPPAR_EPPA5_LEVEL    (0x0000)
#define MCF_EPORT_EPPAR_EPPA5_RISING   (0x0400)
#define MCF_EPORT_EPPAR_EPPA5_FALLING  (0x0800)
#define MCF_EPORT_EPPAR_EPPA5_BOTH     (0x0C00)
#define MCF_EPORT_EPPAR_EPPA4_LEVEL    (0x0000)
#define MCF_EPORT_EPPAR_EPPA4_RISING   (0x0100)
#define MCF_EPORT_EPPAR_EPPA4_FALLING  (0x0200)
#define MCF_EPORT_EPPAR_EPPA4_BOTH     (0x0300)
#define MCF_EPORT_EPPAR_EPPA3_LEVEL    (0x0000)
#define MCF_EPORT_EPPAR_EPPA3_RISING   (0x0040)
#define MCF_EPORT_EPPAR_EPPA3_FALLING  (0x0080)
#define MCF_EPORT_EPPAR_EPPA3_BOTH     (0x00C0)
#define MCF_EPORT_EPPAR_EPPA2_LEVEL    (0x0000)
#define MCF_EPORT_EPPAR_EPPA2_RISING   (0x0010)
#define MCF_EPORT_EPPAR_EPPA2_FALLING  (0x0020)
#define MCF_EPORT_EPPAR_EPPA2_BOTH     (0x0030)
#define MCF_EPORT_EPPAR_EPPA1_LEVEL    (0x0000)
#define MCF_EPORT_EPPAR_EPPA1_RISING   (0x0004)
#define MCF_EPORT_EPPAR_EPPA1_FALLING  (0x0008)
#define MCF_EPORT_EPPAR_EPPA1_BOTH     (0x000C)

/* Bit definitions and macros for MCF_EPORT_EPDDR */
#define MCF_EPORT_EPDDR_EPDD1          (0x02)
#define MCF_EPORT_EPDDR_EPDD2          (0x04)
#define MCF_EPORT_EPDDR_EPDD3          (0x08)
#define MCF_EPORT_EPDDR_EPDD4          (0x10)
#define MCF_EPORT_EPDDR_EPDD5          (0x20)
#define MCF_EPORT_EPDDR_EPDD6          (0x40)
#define MCF_EPORT_EPDDR_EPDD7          (0x80)

/* Bit definitions and macros for MCF_EPORT_EPIER */
#define MCF_EPORT_EPIER_EPIE1          (0x02)
#define MCF_EPORT_EPIER_EPIE2          (0x04)
#define MCF_EPORT_EPIER_EPIE3          (0x08)
#define MCF_EPORT_EPIER_EPIE4          (0x10)
#define MCF_EPORT_EPIER_EPIE5          (0x20)
#define MCF_EPORT_EPIER_EPIE6          (0x40)
#define MCF_EPORT_EPIER_EPIE7          (0x80)

/* Bit definitions and macros for MCF_EPORT_EPDR */
#define MCF_EPORT_EPDR_EPD1            (0x02)
#define MCF_EPORT_EPDR_EPD2            (0x04)
#define MCF_EPORT_EPDR_EPD3            (0x08)
#define MCF_EPORT_EPDR_EPD4            (0x10)
#define MCF_EPORT_EPDR_EPD5            (0x20)
#define MCF_EPORT_EPDR_EPD6            (0x40)
#define MCF_EPORT_EPDR_EPD7            (0x80)

/* Bit definitions and macros for MCF_EPORT_EPPDR */
#define MCF_EPORT_EPPDR_EPPD1          (0x02)
#define MCF_EPORT_EPPDR_EPPD2          (0x04)
#define MCF_EPORT_EPPDR_EPPD3          (0x08)
#define MCF_EPORT_EPPDR_EPPD4          (0x10)
#define MCF_EPORT_EPPDR_EPPD5          (0x20)
#define MCF_EPORT_EPPDR_EPPD6          (0x40)
#define MCF_EPORT_EPPDR_EPPD7          (0x80)

/* Bit definitions and macros for MCF_EPORT_EPFR */
#define MCF_EPORT_EPFR_EPF1            (0x02)
#define MCF_EPORT_EPFR_EPF2            (0x04)
#define MCF_EPORT_EPFR_EPF3            (0x08)
#define MCF_EPORT_EPFR_EPF4            (0x10)
#define MCF_EPORT_EPFR_EPF5            (0x20)
#define MCF_EPORT_EPFR_EPF6            (0x40)
#define MCF_EPORT_EPFR_EPF7            (0x80)

/*********************************************************************
*
* Watchdog Timer Modules (WTM)
*
*********************************************************************/

/* Register read/write macros */
#define MCF_WTM_WCR          (*(vuint16*)(0xFC098000))
#define MCF_WTM_WMR          (*(vuint16*)(0xFC098002))
#define MCF_WTM_WCNTR        (*(vuint16*)(0xFC098004))
#define MCF_WTM_WSR          (*(vuint16*)(0xFC098006))

/* Bit definitions and macros for MCF_WTM_WCR */
#define MCF_WTM_WCR_EN       (0x0001)
#define MCF_WTM_WCR_HALTED   (0x0002)
#define MCF_WTM_WCR_DOZE     (0x0004)
#define MCF_WTM_WCR_WAIT     (0x0008)

/* Bit definitions and macros for MCF_WTM_WMR */
#define MCF_WTM_WMR_WM(x)    (((x)&0xFFFF)<<0)

/* Bit definitions and macros for MCF_WTM_WCNTR */
#define MCF_WTM_WCNTR_WC(x)  (((x)&0xFFFF)<<0)

/* Bit definitions and macros for MCF_WTM_WSR */
#define MCF_WTM_WSR_WS(x)    (((x)&0xFFFF)<<0)

/*********************************************************************
*
* Chip Configuration Module (CCM)
*
*********************************************************************/

/* Register read/write macros */
#define MCF_CCM_CCR               (*(vuint16*)(0xFC0A0004))
#define MCF_CCM_RCON              (*(vuint16*)(0xFC0A0008))
#define MCF_CCM_CIR               (*(vuint16*)(0xFC0A000A))
#define MCF_CCM_MISCCR            (*(vuint16*)(0xFC0A0010))
#define MCF_CCM_CDR               (*(vuint16*)(0xFC0A0012))
#define MCF_CCM_UHCSR             (*(vuint16*)(0xFC0A0014))
#define MCF_CCM_UOCSR             (*(vuint16*)(0xFC0A0016))

/* Bit definitions and macros for MCF_CCM_CCR */
#define MCF_CCM_CCR_RESERVED      (0x0001)
#define MCF_CCM_CCR_PLL_MODE      (0x0003)
#define MCF_CCM_CCR_OSC_MODE      (0x0005)
#define MCF_CCM_CCR_BOOTPS(x)     (((x)&0x0003)<<3|0x0001)
#define MCF_CCM_CCR_LOAD          (0x0021)
#define MCF_CCM_CCR_LIMP          (0x0041)
#define MCF_CCM_CCR_CSC(x)        (((x)&0x0003)<<8|0x0001)

/* Bit definitions and macros for MCF_CCM_RCON */
#define MCF_CCM_RCON_RESERVED     (0x0001)
#define MCF_CCM_RCON_PLL_MODE     (0x0003)
#define MCF_CCM_RCON_OSC_MODE     (0x0005)
#define MCF_CCM_RCON_BOOTPS(x)    (((x)&0x0003)<<3|0x0001)
#define MCF_CCM_RCON_LOAD         (0x0021)
#define MCF_CCM_RCON_LIMP         (0x0041)
#define MCF_CCM_RCON_CSC(x)       (((x)&0x0003)<<8|0x0001)

/* Bit definitions and macros for MCF_CCM_CIR */
#define MCF_CCM_CIR_PRN(x)        (((x)&0x003F)<<0)
#define MCF_CCM_CIR_PIN(x)        (((x)&0x03FF)<<6)

/* Bit definitions and macros for MCF_CCM_MISCCR */
#define MCF_CCM_MISCCR_USBSRC     (0x0001)
#define MCF_CCM_MISCCR_USBDIV     (0x0002)
#define MCF_CCM_MISCCR_SSI_SRC    (0x0010)
#define MCF_CCM_MISCCR_TIM_DMA    (0x0020)
#define MCF_CCM_MISCCR_SSI_PUS    (0x0040)
#define MCF_CCM_MISCCR_SSI_PUE    (0x0080)
#define MCF_CCM_MISCCR_LCD_CHEN   (0x0100)
#define MCF_CCM_MISCCR_LIMP       (0x1000)
#define MCF_CCM_MISCCR_PLL_LOCK   (0x2000)

/* Bit definitions and macros for MCF_CCM_CDR */
#define MCF_CCM_CDR_SSIDIV(x)     (((x)&0x003F)<<0)
#define MCF_CCM_CDR_LPDIV(x)      (((x)&0x000F)<<8)

/* Bit definitions and macros for MCF_CCM_UHCSR */
#define MCF_CCM_UHCSR_XPDE        (0x0001)
#define MCF_CCM_UHCSR_UHMIE       (0x0002)
#define MCF_CCM_UHCSR_WKUP        (0x0004)
#define MCF_CCM_UHCSR_PORTIND(x)  (((x)&0x0003)<<14)

/* Bit definitions and macros for MCF_CCM_UOCSR */
#define MCF_CCM_UOCSR_XPDE        (0x0001)
#define MCF_CCM_UOCSR_UOMIE       (0x0002)
#define MCF_CCM_UOCSR_WKUP        (0x0004)
#define MCF_CCM_UOCSR_PWRFLT      (0x0008)
#define MCF_CCM_UOCSR_SEND        (0x0010)
#define MCF_CCM_UOCSR_VVLD        (0x0020)
#define MCF_CCM_UOCSR_BVLD        (0x0040)
#define MCF_CCM_UOCSR_AVLD        (0x0080)
#define MCF_CCM_UOCSR_DPPU        (0x0100)
#define MCF_CCM_UOCSR_DCR_VBUS    (0x0200)
#define MCF_CCM_UOCSR_CRG_VBUS    (0x0400)
#define MCF_CCM_UOCSR_DRV_VBUS    (0x0800)
#define MCF_CCM_UOCSR_DMPD        (0x1000)
#define MCF_CCM_UOCSR_DPPD        (0x2000)
#define MCF_CCM_UOCSR_PORTIND(x)  (((x)&0x0003)<<14)

/*********************************************************************
*
* Reset Controller Module (RCM)
*
*********************************************************************/

/* Register read/write macros */
#define MCF_RCM_RCR            (*(vuint8 *)(0xFC0A0000))
#define MCF_RCM_RSR            (*(vuint8 *)(0xFC0A0001))

/* Bit definitions and macros for MCF_RCM_RCR */
#define MCF_RCM_RCR_FRCRSTOUT  (0x40)
#define MCF_RCM_RCR_SOFTRST    (0x80)

/* Bit definitions and macros for MCF_RCM_RSR */
#define MCF_RCM_RSR_LOL        (0x01)
#define MCF_RCM_RSR_WDR_CORE   (0x02)
#define MCF_RCM_RSR_EXT        (0x04)
#define MCF_RCM_RSR_POR        (0x08)
#define MCF_RCM_RSR_WDR_CHIP   (0x10)
#define MCF_RCM_RSR_SOFT       (0x20)

/*********************************************************************
*
* General Purpose I/O (GPIO)
*
*********************************************************************/

/* Register read/write macros */
#define MCF_GPIO_PODR_FECH                         (*(vuint8 *)(0xFC0A4000))
#define MCF_GPIO_PODR_FECL                         (*(vuint8 *)(0xFC0A4001))
#define MCF_GPIO_PODR_SSI                          (*(vuint8 *)(0xFC0A4002))
#define MCF_GPIO_PODR_BUSCTL                       (*(vuint8 *)(0xFC0A4003))
#define MCF_GPIO_PODR_BE                           (*(vuint8 *)(0xFC0A4004))
#define MCF_GPIO_PODR_CS                           (*(vuint8 *)(0xFC0A4005))
#define MCF_GPIO_PODR_PWM                          (*(vuint8 *)(0xFC0A4006))
#define MCF_GPIO_PODR_FECI2C                       (*(vuint8 *)(0xFC0A4007))
#define MCF_GPIO_PODR_UART                         (*(vuint8 *)(0xFC0A4009))
#define MCF_GPIO_PODR_QSPI                         (*(vuint8 *)(0xFC0A400A))
#define MCF_GPIO_PODR_TIMER                        (*(vuint8 *)(0xFC0A400B))
#define MCF_GPIO_PODR_LCDDATAH                     (*(vuint8 *)(0xFC0A400D))
#define MCF_GPIO_PODR_LCDDATAM                     (*(vuint8 *)(0xFC0A400E))
#define MCF_GPIO_PODR_LCDDATAL                     (*(vuint8 *)(0xFC0A400F))
#define MCF_GPIO_PODR_LCDCTLH                      (*(vuint8 *)(0xFC0A4010))
#define MCF_GPIO_PODR_LCDCTLL                      (*(vuint8 *)(0xFC0A4011))
#define MCF_GPIO_PDDR_FECH                         (*(vuint8 *)(0xFC0A4014))
#define MCF_GPIO_PDDR_FECL                         (*(vuint8 *)(0xFC0A4015))
#define MCF_GPIO_PDDR_SSI                          (*(vuint8 *)(0xFC0A4016))
#define MCF_GPIO_PDDR_BUSCTL                       (*(vuint8 *)(0xFC0A4017))
#define MCF_GPIO_PDDR_BE                           (*(vuint8 *)(0xFC0A4018))
#define MCF_GPIO_PDDR_CS                           (*(vuint8 *)(0xFC0A4019))
#define MCF_GPIO_PDDR_PWM                          (*(vuint8 *)(0xFC0A401A))
#define MCF_GPIO_PDDR_FECI2C                       (*(vuint8 *)(0xFC0A401B))
#define MCF_GPIO_PDDR_UART                         (*(vuint8 *)(0xFC0A401D))
#define MCF_GPIO_PDDR_QSPI                         (*(vuint8 *)(0xFC0A401E))
#define MCF_GPIO_PDDR_TIMER                        (*(vuint8 *)(0xFC0A401F))
#define MCF_GPIO_PDDR_LCDDATAH                     (*(vuint8 *)(0xFC0A4021))
#define MCF_GPIO_PDDR_LCDDATAM                     (*(vuint8 *)(0xFC0A4022))
#define MCF_GPIO_PDDR_LCDDATAL                     (*(vuint8 *)(0xFC0A4023))
#define MCF_GPIO_PDDR_LCDCTLH                      (*(vuint8 *)(0xFC0A4024))
#define MCF_GPIO_PDDR_LCDCTLL                      (*(vuint8 *)(0xFC0A4025))
#define MCF_GPIO_PPDSDR_FECH                       (*(vuint8 *)(0xFC0A4028))
#define MCF_GPIO_PPDSDR_FECL                       (*(vuint8 *)(0xFC0A4029))
#define MCF_GPIO_PPDSDR_SSI                        (*(vuint8 *)(0xFC0A402A))
#define MCF_GPIO_PPDSDR_BUSCTL                     (*(vuint8 *)(0xFC0A402B))
#define MCF_GPIO_PPDSDR_BE                         (*(vuint8 *)(0xFC0A402C))
#define MCF_GPIO_PPDSDR_CS                         (*(vuint8 *)(0xFC0A402D))
#define MCF_GPIO_PPDSDR_PWM                        (*(vuint8 *)(0xFC0A402E))
#define MCF_GPIO_PPDSDR_FECI2C                     (*(vuint8 *)(0xFC0A402F))
#define MCF_GPIO_PPDSDR_UART                       (*(vuint8 *)(0xFC0A4031))
#define MCF_GPIO_PPDSDR_QSPI                       (*(vuint8 *)(0xFC0A4032))
#define MCF_GPIO_PPDSDR_TIMER                      (*(vuint8 *)(0xFC0A4033))
#define MCF_GPIO_PPDSDR_LCDDATAH                   (*(vuint8 *)(0xFC0A4035))
#define MCF_GPIO_PPDSDR_LCDDATAM                   (*(vuint8 *)(0xFC0A4036))
#define MCF_GPIO_PPDSDR_LCDDATAL                   (*(vuint8 *)(0xFC0A4037))
#define MCF_GPIO_PPDSDR_LCDCTLH                    (*(vuint8 *)(0xFC0A4038))
#define MCF_GPIO_PPDSDR_LCDCTLL                    (*(vuint8 *)(0xFC0A4039))
#define MCF_GPIO_PCLRR_FECH                        (*(vuint8 *)(0xFC0A403C))
#define MCF_GPIO_PCLRR_FECL                        (*(vuint8 *)(0xFC0A403D))
#define MCF_GPIO_PCLRR_SSI                         (*(vuint8 *)(0xFC0A403E))
#define MCF_GPIO_PCLRR_BUSCTL                      (*(vuint8 *)(0xFC0A403F))
#define MCF_GPIO_PCLRR_BE                          (*(vuint8 *)(0xFC0A4040))
#define MCF_GPIO_PCLRR_CS                          (*(vuint8 *)(0xFC0A4041))
#define MCF_GPIO_PCLRR_PWM                         (*(vuint8 *)(0xFC0A4042))
#define MCF_GPIO_PCLRR_FECI2C                      (*(vuint8 *)(0xFC0A4043))
#define MCF_GPIO_PCLRR_UART                        (*(vuint8 *)(0xFC0A4045))
#define MCF_GPIO_PCLRR_QSPI                        (*(vuint8 *)(0xFC0A4046))
#define MCF_GPIO_PCLRR_TIMER                       (*(vuint8 *)(0xFC0A4047))
#define MCF_GPIO_PCLRR_LCDDATAH                    (*(vuint8 *)(0xFC0A4049))
#define MCF_GPIO_PCLRR_LCDDATAM                    (*(vuint8 *)(0xFC0A404A))
#define MCF_GPIO_PCLRR_LCDDATAL                    (*(vuint8 *)(0xFC0A404B))
#define MCF_GPIO_PCLRR_LCDCTLH                     (*(vuint8 *)(0xFC0A404C))
#define MCF_GPIO_PCLRR_LCDCTLL                     (*(vuint8 *)(0xFC0A404D))
#define MCF_GPIO_PAR_FEC                           (*(vuint8 *)(0xFC0A4050))
#define MCF_GPIO_PAR_PWM                           (*(vuint8 *)(0xFC0A4051))
#define MCF_GPIO_PAR_BUSCTL                        (*(vuint8 *)(0xFC0A4052))
#define MCF_GPIO_PAR_FECI2C                        (*(vuint8 *)(0xFC0A4053))
#define MCF_GPIO_PAR_BE                            (*(vuint8 *)(0xFC0A4054))
#define MCF_GPIO_PAR_CS                            (*(vuint8 *)(0xFC0A4055))
#define MCF_GPIO_PAR_SSI                           (*(vuint16*)(0xFC0A4056))
#define MCF_GPIO_PAR_UART                          (*(vuint16*)(0xFC0A4058))
#define MCF_GPIO_PAR_QSPI                          (*(vuint16*)(0xFC0A405A))
#define MCF_GPIO_PAR_TIMER                         (*(vuint8 *)(0xFC0A405C))
#define MCF_GPIO_PAR_LCDDATA                       (*(vuint8 *)(0xFC0A405D))
#define MCF_GPIO_PAR_LCDCTL                        (*(vuint16*)(0xFC0A405E))
#define MCF_GPIO_PAR_IRQ                           (*(vuint16*)(0xFC0A4060))
#define MCF_GPIO_MSCR_FLEXBUS                      (*(vuint8 *)(0xFC0A4064))
#define MCF_GPIO_MSCR_SDRAM                        (*(vuint8 *)(0xFC0A4065))
#define MCF_GPIO_DSCR_I2C                          (*(vuint8 *)(0xFC0A4068))
#define MCF_GPIO_DSCR_PWM                          (*(vuint8 *)(0xFC0A4069))
#define MCF_GPIO_DSCR_FEC                          (*(vuint8 *)(0xFC0A406A))
#define MCF_GPIO_DSCR_UART                         (*(vuint8 *)(0xFC0A406B))
#define MCF_GPIO_DSCR_QSPI                         (*(vuint8 *)(0xFC0A406C))
#define MCF_GPIO_DSCR_TIMER                        (*(vuint8 *)(0xFC0A406D))
#define MCF_GPIO_DSCR_SSI                          (*(vuint8 *)(0xFC0A406E))
#define MCF_GPIO_DSCR_LCD                          (*(vuint8 *)(0xFC0A406F))
#define MCF_GPIO_DSCR_DEBUG                        (*(vuint8 *)(0xFC0A4070))
#define MCF_GPIO_DSCR_CLKRST                       (*(vuint8 *)(0xFC0A4071))
#define MCF_GPIO_DSCR_IRQ                          (*(vuint8 *)(0xFC0A4072))

/* Bit definitions and macros for MCF_GPIO_PODR_FECH */
#define MCF_GPIO_PODR_FECH_PODR_FECH0              (0x01)
#define MCF_GPIO_PODR_FECH_PODR_FECH1              (0x02)
#define MCF_GPIO_PODR_FECH_PODR_FECH2              (0x04)
#define MCF_GPIO_PODR_FECH_PODR_FECH3              (0x08)
#define MCF_GPIO_PODR_FECH_PODR_FECH4              (0x10)
#define MCF_GPIO_PODR_FECH_PODR_FECH5              (0x20)
#define MCF_GPIO_PODR_FECH_PODR_FECH6              (0x40)
#define MCF_GPIO_PODR_FECH_PODR_FECH7              (0x80)

/* Bit definitions and macros for MCF_GPIO_PODR_FECL */
#define MCF_GPIO_PODR_FECL_PODR_FECL0              (0x01)
#define MCF_GPIO_PODR_FECL_PODR_FECL1              (0x02)
#define MCF_GPIO_PODR_FECL_PODR_FECL2              (0x04)
#define MCF_GPIO_PODR_FECL_PODR_FECL3              (0x08)
#define MCF_GPIO_PODR_FECL_PODR_FECL4              (0x10)
#define MCF_GPIO_PODR_FECL_PODR_FECL5              (0x20)
#define MCF_GPIO_PODR_FECL_PODR_FECL6              (0x40)
#define MCF_GPIO_PODR_FECL_PODR_FECL7              (0x80)

/* Bit definitions and macros for MCF_GPIO_PODR_SSI */
#define MCF_GPIO_PODR_SSI_PODR_SSI0                (0x01)
#define MCF_GPIO_PODR_SSI_PODR_SSI1                (0x02)
#define MCF_GPIO_PODR_SSI_PODR_SSI2                (0x04)
#define MCF_GPIO_PODR_SSI_PODR_SSI3                (0x08)
#define MCF_GPIO_PODR_SSI_PODR_SSI4                (0x10)

/* Bit definitions and macros for MCF_GPIO_PODR_BUSCTL */
#define MCF_GPIO_PODR_BUSCTL_PODR_BUSCTL0          (0x01)
#define MCF_GPIO_PODR_BUSCTL_PODR_BUSCTL1          (0x02)
#define MCF_GPIO_PODR_BUSCTL_PODR_BUSCTL2          (0x04)
#define MCF_GPIO_PODR_BUSCTL_PODR_BUSCTL3          (0x08)

/* Bit definitions and macros for MCF_GPIO_PODR_BE */
#define MCF_GPIO_PODR_BE_PODR_BE0                  (0x01)
#define MCF_GPIO_PODR_BE_PODR_BE1                  (0x02)
#define MCF_GPIO_PODR_BE_PODR_BE2                  (0x04)
#define MCF_GPIO_PODR_BE_PODR_BE3                  (0x08)

/* Bit definitions and macros for MCF_GPIO_PODR_CS */
#define MCF_GPIO_PODR_CS_PODR_CS1                  (0x02)
#define MCF_GPIO_PODR_CS_PODR_CS2                  (0x04)
#define MCF_GPIO_PODR_CS_PODR_CS3                  (0x08)
#define MCF_GPIO_PODR_CS_PODR_CS4                  (0x10)
#define MCF_GPIO_PODR_CS_PODR_CS5                  (0x20)

/* Bit definitions and macros for MCF_GPIO_PODR_PWM */
#define MCF_GPIO_PODR_PWM_PODR_PWM2                (0x04)
#define MCF_GPIO_PODR_PWM_PODR_PWM3                (0x08)
#define MCF_GPIO_PODR_PWM_PODR_PWM4                (0x10)
#define MCF_GPIO_PODR_PWM_PODR_PWM5                (0x20)

/* Bit definitions and macros for MCF_GPIO_PODR_FECI2C */
#define MCF_GPIO_PODR_FECI2C_PODR_FECI2C0          (0x01)
#define MCF_GPIO_PODR_FECI2C_PODR_FECI2C1          (0x02)
#define MCF_GPIO_PODR_FECI2C_PODR_FECI2C2          (0x04)
#define MCF_GPIO_PODR_FECI2C_PODR_FECI2C3          (0x08)

/* Bit definitions and macros for MCF_GPIO_PODR_UART */
#define MCF_GPIO_PODR_UART_PODR_UART0              (0x01)
#define MCF_GPIO_PODR_UART_PODR_UART1              (0x02)
#define MCF_GPIO_PODR_UART_PODR_UART2              (0x04)
#define MCF_GPIO_PODR_UART_PODR_UART3              (0x08)
#define MCF_GPIO_PODR_UART_PODR_UART4              (0x10)
#define MCF_GPIO_PODR_UART_PODR_UART5              (0x20)
#define MCF_GPIO_PODR_UART_PODR_UART6              (0x40)
#define MCF_GPIO_PODR_UART_PODR_UART7              (0x80)

/* Bit definitions and macros for MCF_GPIO_PODR_QSPI */
#define MCF_GPIO_PODR_QSPI_PODR_QSPI0              (0x01)
#define MCF_GPIO_PODR_QSPI_PODR_QSPI1              (0x02)
#define MCF_GPIO_PODR_QSPI_PODR_QSPI2              (0x04)
#define MCF_GPIO_PODR_QSPI_PODR_QSPI3              (0x08)
#define MCF_GPIO_PODR_QSPI_PODR_QSPI4              (0x10)
#define MCF_GPIO_PODR_QSPI_PODR_QSPI5              (0x20)

/* Bit definitions and macros for MCF_GPIO_PODR_TIMER */
#define MCF_GPIO_PODR_TIMER_PODR_TIMER0            (0x01)
#define MCF_GPIO_PODR_TIMER_PODR_TIMER1            (0x02)
#define MCF_GPIO_PODR_TIMER_PODR_TIMER2            (0x04)
#define MCF_GPIO_PODR_TIMER_PODR_TIMER3            (0x08)

/* Bit definitions and macros for MCF_GPIO_PODR_LCDDATAH */
#define MCF_GPIO_PODR_LCDDATAH_PODR_LCDDATAH0      (0x01)
#define MCF_GPIO_PODR_LCDDATAH_PODR_LCDDATAH1      (0x02)

/* Bit definitions and macros for MCF_GPIO_PODR_LCDDATAM */
#define MCF_GPIO_PODR_LCDDATAM_PODR_LCDDATAM0      (0x01)
#define MCF_GPIO_PODR_LCDDATAM_PODR_LCDDATAM1      (0x02)
#define MCF_GPIO_PODR_LCDDATAM_PODR_LCDDATAM2      (0x04)
#define MCF_GPIO_PODR_LCDDATAM_PODR_LCDDATAM3      (0x08)
#define MCF_GPIO_PODR_LCDDATAM_PODR_LCDDATAM4      (0x10)
#define MCF_GPIO_PODR_LCDDATAM_PODR_LCDDATAM5      (0x20)
#define MCF_GPIO_PODR_LCDDATAM_PODR_LCDDATAM6      (0x40)
#define MCF_GPIO_PODR_LCDDATAM_PODR_LCDDATAM7      (0x80)

/* Bit definitions and macros for MCF_GPIO_PODR_LCDDATAL */
#define MCF_GPIO_PODR_LCDDATAL_PODR_LCDDATAL0      (0x01)
#define MCF_GPIO_PODR_LCDDATAL_PODR_LCDDATAL1      (0x02)
#define MCF_GPIO_PODR_LCDDATAL_PODR_LCDDATAL2      (0x04)
#define MCF_GPIO_PODR_LCDDATAL_PODR_LCDDATAL3      (0x08)
#define MCF_GPIO_PODR_LCDDATAL_PODR_LCDDATAL4      (0x10)
#define MCF_GPIO_PODR_LCDDATAL_PODR_LCDDATAL5      (0x20)
#define MCF_GPIO_PODR_LCDDATAL_PODR_LCDDATAL6      (0x40)
#define MCF_GPIO_PODR_LCDDATAL_PODR_LCDDATAL7      (0x80)

/* Bit definitions and macros for MCF_GPIO_PODR_LCDCTLH */
#define MCF_GPIO_PODR_LCDCTLH_PODR_LCDCTLH0        (0x01)

/* Bit definitions and macros for MCF_GPIO_PODR_LCDCTLL */
#define MCF_GPIO_PODR_LCDCTLL_PODR_LCDCTLL0        (0x01)
#define MCF_GPIO_PODR_LCDCTLL_PODR_LCDCTLL1        (0x02)
#define MCF_GPIO_PODR_LCDCTLL_PODR_LCDCTLL2        (0x04)
#define MCF_GPIO_PODR_LCDCTLL_PODR_LCDCTLL3        (0x08)
#define MCF_GPIO_PODR_LCDCTLL_PODR_LCDCTLL4        (0x10)
#define MCF_GPIO_PODR_LCDCTLL_PODR_LCDCTLL5        (0x20)
#define MCF_GPIO_PODR_LCDCTLL_PODR_LCDCTLL6        (0x40)
#define MCF_GPIO_PODR_LCDCTLL_PODR_LCDCTLL7        (0x80)

/* Bit definitions and macros for MCF_GPIO_PDDR_FECH */
#define MCF_GPIO_PDDR_FECH_PDDR_FECH0              (0x01)
#define MCF_GPIO_PDDR_FECH_PDDR_FECH1              (0x02)
#define MCF_GPIO_PDDR_FECH_PDDR_FECH2              (0x04)
#define MCF_GPIO_PDDR_FECH_PDDR_FECH3              (0x08)
#define MCF_GPIO_PDDR_FECH_PDDR_FECH4              (0x10)
#define MCF_GPIO_PDDR_FECH_PDDR_FECH5              (0x20)
#define MCF_GPIO_PDDR_FECH_PDDR_FECH6              (0x40)
#define MCF_GPIO_PDDR_FECH_PDDR_FECH7              (0x80)

/* Bit definitions and macros for MCF_GPIO_PDDR_FECL */
#define MCF_GPIO_PDDR_FECL_PDDR_FECL0              (0x01)
#define MCF_GPIO_PDDR_FECL_PDDR_FECL1              (0x02)
#define MCF_GPIO_PDDR_FECL_PDDR_FECL2              (0x04)
#define MCF_GPIO_PDDR_FECL_PDDR_FECL3              (0x08)
#define MCF_GPIO_PDDR_FECL_PDDR_FECL4              (0x10)
#define MCF_GPIO_PDDR_FECL_PDDR_FECL5              (0x20)
#define MCF_GPIO_PDDR_FECL_PDDR_FECL6              (0x40)
#define MCF_GPIO_PDDR_FECL_PDDR_FECL7              (0x80)

/* Bit definitions and macros for MCF_GPIO_PDDR_SSI */
#define MCF_GPIO_PDDR_SSI_PDDR_SSI0                (0x01)
#define MCF_GPIO_PDDR_SSI_PDDR_SSI1                (0x02)
#define MCF_GPIO_PDDR_SSI_PDDR_SSI2                (0x04)
#define MCF_GPIO_PDDR_SSI_PDDR_SSI3                (0x08)
#define MCF_GPIO_PDDR_SSI_PDDR_SSI4                (0x10)

/* Bit definitions and macros for MCF_GPIO_PDDR_BUSCTL */
#define MCF_GPIO_PDDR_BUSCTL_PDDR_BUSCTL0          (0x01)
#define MCF_GPIO_PDDR_BUSCTL_PDDR_BUSCTL1          (0x02)
#define MCF_GPIO_PDDR_BUSCTL_PDDR_BUSCTL2          (0x04)
#define MCF_GPIO_PDDR_BUSCTL_PDDR_BUSCTL3          (0x08)

/* Bit definitions and macros for MCF_GPIO_PDDR_BE */
#define MCF_GPIO_PDDR_BE_PDDR_BE0                  (0x01)
#define MCF_GPIO_PDDR_BE_PDDR_BE1                  (0x02)
#define MCF_GPIO_PDDR_BE_PDDR_BE2                  (0x04)
#define MCF_GPIO_PDDR_BE_PDDR_BE3                  (0x08)

/* Bit definitions and macros for MCF_GPIO_PDDR_CS */
#define MCF_GPIO_PDDR_CS_PDDR_CS1                  (0x02)
#define MCF_GPIO_PDDR_CS_PDDR_CS2                  (0x04)
#define MCF_GPIO_PDDR_CS_PDDR_CS3                  (0x08)
#define MCF_GPIO_PDDR_CS_PDDR_CS4                  (0x10)
#define MCF_GPIO_PDDR_CS_PDDR_CS5                  (0x20)

/* Bit definitions and macros for MCF_GPIO_PDDR_PWM */
#define MCF_GPIO_PDDR_PWM_PDDR_PWM2                (0x04)
#define MCF_GPIO_PDDR_PWM_PDDR_PWM3                (0x08)
#define MCF_GPIO_PDDR_PWM_PDDR_PWM4                (0x10)
#define MCF_GPIO_PDDR_PWM_PDDR_PWM5                (0x20)

/* Bit definitions and macros for MCF_GPIO_PDDR_FECI2C */
#define MCF_GPIO_PDDR_FECI2C_PDDR_FECI2C0          (0x01)
#define MCF_GPIO_PDDR_FECI2C_PDDR_FECI2C1          (0x02)
#define MCF_GPIO_PDDR_FECI2C_PDDR_FECI2C2          (0x04)
#define MCF_GPIO_PDDR_FECI2C_PDDR_FECI2C3          (0x08)

/* Bit definitions and macros for MCF_GPIO_PDDR_UART */
#define MCF_GPIO_PDDR_UART_PDDR_UART0              (0x01)
#define MCF_GPIO_PDDR_UART_PDDR_UART1              (0x02)
#define MCF_GPIO_PDDR_UART_PDDR_UART2              (0x04)
#define MCF_GPIO_PDDR_UART_PDDR_UART3              (0x08)
#define MCF_GPIO_PDDR_UART_PDDR_UART4              (0x10)
#define MCF_GPIO_PDDR_UART_PDDR_UART5              (0x20)
#define MCF_GPIO_PDDR_UART_PDDR_UART6              (0x40)
#define MCF_GPIO_PDDR_UART_PDDR_UART7              (0x80)

/* Bit definitions and macros for MCF_GPIO_PDDR_QSPI */
#define MCF_GPIO_PDDR_QSPI_PDDR_QSPI0              (0x01)
#define MCF_GPIO_PDDR_QSPI_PDDR_QSPI1              (0x02)
#define MCF_GPIO_PDDR_QSPI_PDDR_QSPI2              (0x04)
#define MCF_GPIO_PDDR_QSPI_PDDR_QSPI3              (0x08)
#define MCF_GPIO_PDDR_QSPI_PDDR_QSPI4              (0x10)
#define MCF_GPIO_PDDR_QSPI_PDDR_QSPI5              (0x20)

/* Bit definitions and macros for MCF_GPIO_PDDR_TIMER */
#define MCF_GPIO_PDDR_TIMER_PDDR_TIMER0            (0x01)
#define MCF_GPIO_PDDR_TIMER_PDDR_TIMER1            (0x02)
#define MCF_GPIO_PDDR_TIMER_PDDR_TIMER2            (0x04)
#define MCF_GPIO_PDDR_TIMER_PDDR_TIMER3            (0x08)

/* Bit definitions and macros for MCF_GPIO_PDDR_LCDDATAH */
#define MCF_GPIO_PDDR_LCDDATAH_PDDR_LCDDATAH0      (0x01)
#define MCF_GPIO_PDDR_LCDDATAH_PDDR_LCDDATAH1      (0x02)

/* Bit definitions and macros for MCF_GPIO_PDDR_LCDDATAM */
#define MCF_GPIO_PDDR_LCDDATAM_PDDR_LCDDATAM0      (0x01)
#define MCF_GPIO_PDDR_LCDDATAM_PDDR_LCDDATAM1      (0x02)
#define MCF_GPIO_PDDR_LCDDATAM_PDDR_LCDDATAM2      (0x04)
#define MCF_GPIO_PDDR_LCDDATAM_PDDR_LCDDATAM3      (0x08)
#define MCF_GPIO_PDDR_LCDDATAM_PDDR_LCDDATAM4      (0x10)
#define MCF_GPIO_PDDR_LCDDATAM_PDDR_LCDDATAM5      (0x20)
#define MCF_GPIO_PDDR_LCDDATAM_PDDR_LCDDATAM6      (0x40)
#define MCF_GPIO_PDDR_LCDDATAM_PDDR_LCDDATAM7      (0x80)

/* Bit definitions and macros for MCF_GPIO_PDDR_LCDDATAL */
#define MCF_GPIO_PDDR_LCDDATAL_PDDR_LCDDATAL0      (0x01)
#define MCF_GPIO_PDDR_LCDDATAL_PDDR_LCDDATAL1      (0x02)
#define MCF_GPIO_PDDR_LCDDATAL_PDDR_LCDDATAL2      (0x04)
#define MCF_GPIO_PDDR_LCDDATAL_PDDR_LCDDATAL3      (0x08)
#define MCF_GPIO_PDDR_LCDDATAL_PDDR_LCDDATAL4      (0x10)
#define MCF_GPIO_PDDR_LCDDATAL_PDDR_LCDDATAL5      (0x20)
#define MCF_GPIO_PDDR_LCDDATAL_PDDR_LCDDATAL6      (0x40)
#define MCF_GPIO_PDDR_LCDDATAL_PDDR_LCDDATAL7      (0x80)

/* Bit definitions and macros for MCF_GPIO_PDDR_LCDCTLH */
#define MCF_GPIO_PDDR_LCDCTLH_PDDR_LCDCTLH0        (0x01)

/* Bit definitions and macros for MCF_GPIO_PDDR_LCDCTLL */
#define MCF_GPIO_PDDR_LCDCTLL_PDDR_LCDCTLL0        (0x01)
#define MCF_GPIO_PDDR_LCDCTLL_PDDR_LCDCTLL1        (0x02)
#define MCF_GPIO_PDDR_LCDCTLL_PDDR_LCDCTLL2        (0x04)
#define MCF_GPIO_PDDR_LCDCTLL_PDDR_LCDCTLL3        (0x08)
#define MCF_GPIO_PDDR_LCDCTLL_PDDR_LCDCTLL4        (0x10)
#define MCF_GPIO_PDDR_LCDCTLL_PDDR_LCDCTLL5        (0x20)
#define MCF_GPIO_PDDR_LCDCTLL_PDDR_LCDCTLL6        (0x40)
#define MCF_GPIO_PDDR_LCDCTLL_PDDR_LCDCTLL7        (0x80)

/* Bit definitions and macros for MCF_GPIO_PPDSDR_FECH */
#define MCF_GPIO_PPDSDR_FECH_PPDSDR_FECH0          (0x01)
#define MCF_GPIO_PPDSDR_FECH_PPDSDR_FECH1          (0x02)
#define MCF_GPIO_PPDSDR_FECH_PPDSDR_FECH2          (0x04)
#define MCF_GPIO_PPDSDR_FECH_PPDSDR_FECH3          (0x08)
#define MCF_GPIO_PPDSDR_FECH_PPDSDR_FECH4          (0x10)
#define MCF_GPIO_PPDSDR_FECH_PPDSDR_FECH5          (0x20)
#define MCF_GPIO_PPDSDR_FECH_PPDSDR_FECH6          (0x40)
#define MCF_GPIO_PPDSDR_FECH_PPDSDR_FECH7          (0x80)

/* Bit definitions and macros for MCF_GPIO_PPDSDR_FECL */
#define MCF_GPIO_PPDSDR_FECL_PPDSDR_FECL0          (0x01)
#define MCF_GPIO_PPDSDR_FECL_PPDSDR_FECL1          (0x02)
#define MCF_GPIO_PPDSDR_FECL_PPDSDR_FECL2          (0x04)
#define MCF_GPIO_PPDSDR_FECL_PPDSDR_FECL3          (0x08)
#define MCF_GPIO_PPDSDR_FECL_PPDSDR_FECL4          (0x10)
#define MCF_GPIO_PPDSDR_FECL_PPDSDR_FECL5          (0x20)
#define MCF_GPIO_PPDSDR_FECL_PPDSDR_FECL6          (0x40)
#define MCF_GPIO_PPDSDR_FECL_PPDSDR_FECL7          (0x80)

/* Bit definitions and macros for MCF_GPIO_PPDSDR_SSI */
#define MCF_GPIO_PPDSDR_SSI_PPDSDR_SSI0            (0x01)
#define MCF_GPIO_PPDSDR_SSI_PPDSDR_SSI1            (0x02)
#define MCF_GPIO_PPDSDR_SSI_PPDSDR_SSI2            (0x04)
#define MCF_GPIO_PPDSDR_SSI_PPDSDR_SSI3            (0x08)
#define MCF_GPIO_PPDSDR_SSI_PPDSDR_SSI4            (0x10)

/* Bit definitions and macros for MCF_GPIO_PPDSDR_BUSCTL */
#define MCF_GPIO_PPDSDR_BUSCTL_PPDSDR_BUSCTL0      (0x01)
#define MCF_GPIO_PPDSDR_BUSCTL_PPDSDR_BUSCTL1      (0x02)
#define MCF_GPIO_PPDSDR_BUSCTL_PPDSDR_BUSCTL2      (0x04)
#define MCF_GPIO_PPDSDR_BUSCTL_PPDSDR_BUSCTL3      (0x08)

/* Bit definitions and macros for MCF_GPIO_PPDSDR_BE */
#define MCF_GPIO_PPDSDR_BE_PPDSDR_BE0              (0x01)
#define MCF_GPIO_PPDSDR_BE_PPDSDR_BE1              (0x02)
#define MCF_GPIO_PPDSDR_BE_PPDSDR_BE2              (0x04)
#define MCF_GPIO_PPDSDR_BE_PPDSDR_BE3              (0x08)

/* Bit definitions and macros for MCF_GPIO_PPDSDR_CS */
#define MCF_GPIO_PPDSDR_CS_PPDSDR_CS1              (0x02)
#define MCF_GPIO_PPDSDR_CS_PPDSDR_CS2              (0x04)
#define MCF_GPIO_PPDSDR_CS_PPDSDR_CS3              (0x08)
#define MCF_GPIO_PPDSDR_CS_PPDSDR_CS4              (0x10)
#define MCF_GPIO_PPDSDR_CS_PPDSDR_CS5              (0x20)

/* Bit definitions and macros for MCF_GPIO_PPDSDR_PWM */
#define MCF_GPIO_PPDSDR_PWM_PPDSDR_PWM2            (0x04)
#define MCF_GPIO_PPDSDR_PWM_PPDSDR_PWM3            (0x08)
#define MCF_GPIO_PPDSDR_PWM_PPDSDR_PWM4            (0x10)
#define MCF_GPIO_PPDSDR_PWM_PPDSDR_PWM5            (0x20)

/* Bit definitions and macros for MCF_GPIO_PPDSDR_FECI2C */
#define MCF_GPIO_PPDSDR_FECI2C_PPDSDR_FECI2C0      (0x01)
#define MCF_GPIO_PPDSDR_FECI2C_PPDSDR_FECI2C1      (0x02)
#define MCF_GPIO_PPDSDR_FECI2C_PPDSDR_FECI2C2      (0x04)
#define MCF_GPIO_PPDSDR_FECI2C_PPDSDR_FECI2C3      (0x08)

/* Bit definitions and macros for MCF_GPIO_PPDSDR_UART */
#define MCF_GPIO_PPDSDR_UART_PPDSDR_UART0          (0x01)
#define MCF_GPIO_PPDSDR_UART_PPDSDR_UART1          (0x02)
#define MCF_GPIO_PPDSDR_UART_PPDSDR_UART2          (0x04)
#define MCF_GPIO_PPDSDR_UART_PPDSDR_UART3          (0x08)
#define MCF_GPIO_PPDSDR_UART_PPDSDR_UART4          (0x10)
#define MCF_GPIO_PPDSDR_UART_PPDSDR_UART5          (0x20)
#define MCF_GPIO_PPDSDR_UART_PPDSDR_UART6          (0x40)
#define MCF_GPIO_PPDSDR_UART_PPDSDR_UART7          (0x80)

/* Bit definitions and macros for MCF_GPIO_PPDSDR_QSPI */
#define MCF_GPIO_PPDSDR_QSPI_PPDSDR_QSPI0          (0x01)
#define MCF_GPIO_PPDSDR_QSPI_PPDSDR_QSPI1          (0x02)
#define MCF_GPIO_PPDSDR_QSPI_PPDSDR_QSPI2          (0x04)
#define MCF_GPIO_PPDSDR_QSPI_PPDSDR_QSPI3          (0x08)
#define MCF_GPIO_PPDSDR_QSPI_PPDSDR_QSPI4          (0x10)
#define MCF_GPIO_PPDSDR_QSPI_PPDSDR_QSPI5          (0x20)

/* Bit definitions and macros for MCF_GPIO_PPDSDR_TIMER */
#define MCF_GPIO_PPDSDR_TIMER_PPDSDR_TIMER0        (0x01)
#define MCF_GPIO_PPDSDR_TIMER_PPDSDR_TIMER1        (0x02)
#define MCF_GPIO_PPDSDR_TIMER_PPDSDR_TIMER2        (0x04)
#define MCF_GPIO_PPDSDR_TIMER_PPDSDR_TIMER3        (0x08)

/* Bit definitions and macros for MCF_GPIO_PPDSDR_LCDDATAH */
#define MCF_GPIO_PPDSDR_LCDDATAH_PPDSDR_LCDDATAH0  (0x01)
#define MCF_GPIO_PPDSDR_LCDDATAH_PPDSDR_LCDDATAH1  (0x02)

/* Bit definitions and macros for MCF_GPIO_PPDSDR_LCDDATAM */
#define MCF_GPIO_PPDSDR_LCDDATAM_PPDSDR_LCDDATAM0  (0x01)
#define MCF_GPIO_PPDSDR_LCDDATAM_PPDSDR_LCDDATAM1  (0x02)
#define MCF_GPIO_PPDSDR_LCDDATAM_PPDSDR_LCDDATAM2  (0x04)
#define MCF_GPIO_PPDSDR_LCDDATAM_PPDSDR_LCDDATAM3  (0x08)
#define MCF_GPIO_PPDSDR_LCDDATAM_PPDSDR_LCDDATAM4  (0x10)
#define MCF_GPIO_PPDSDR_LCDDATAM_PPDSDR_LCDDATAM5  (0x20)
#define MCF_GPIO_PPDSDR_LCDDATAM_PPDSDR_LCDDATAM6  (0x40)
#define MCF_GPIO_PPDSDR_LCDDATAM_PPDSDR_LCDDATAM7  (0x80)

/* Bit definitions and macros for MCF_GPIO_PPDSDR_LCDDATAL */
#define MCF_GPIO_PPDSDR_LCDDATAL_PPDSDR_LCDDATAL0  (0x01)
#define MCF_GPIO_PPDSDR_LCDDATAL_PPDSDR_LCDDATAL1  (0x02)
#define MCF_GPIO_PPDSDR_LCDDATAL_PPDSDR_LCDDATAL2  (0x04)
#define MCF_GPIO_PPDSDR_LCDDATAL_PPDSDR_LCDDATAL3  (0x08)
#define MCF_GPIO_PPDSDR_LCDDATAL_PPDSDR_LCDDATAL4  (0x10)
#define MCF_GPIO_PPDSDR_LCDDATAL_PPDSDR_LCDDATAL5  (0x20)
#define MCF_GPIO_PPDSDR_LCDDATAL_PPDSDR_LCDDATAL6  (0x40)
#define MCF_GPIO_PPDSDR_LCDDATAL_PPDSDR_LCDDATAL7  (0x80)

/* Bit definitions and macros for MCF_GPIO_PPDSDR_LCDCTLH */
#define MCF_GPIO_PPDSDR_LCDCTLH_PPDSDR_LCDCTLH0    (0x01)

/* Bit definitions and macros for MCF_GPIO_PPDSDR_LCDCTLL */
#define MCF_GPIO_PPDSDR_LCDCTLL_PPDSDR_LCDCTLL0    (0x01)
#define MCF_GPIO_PPDSDR_LCDCTLL_PPDSDR_LCDCTLL1    (0x02)
#define MCF_GPIO_PPDSDR_LCDCTLL_PPDSDR_LCDCTLL2    (0x04)
#define MCF_GPIO_PPDSDR_LCDCTLL_PPDSDR_LCDCTLL3    (0x08)
#define MCF_GPIO_PPDSDR_LCDCTLL_PPDSDR_LCDCTLL4    (0x10)
#define MCF_GPIO_PPDSDR_LCDCTLL_PPDSDR_LCDCTLL5    (0x20)
#define MCF_GPIO_PPDSDR_LCDCTLL_PPDSDR_LCDCTLL6    (0x40)
#define MCF_GPIO_PPDSDR_LCDCTLL_PPDSDR_LCDCTLL7    (0x80)

/* Bit definitions and macros for MCF_GPIO_PCLRR_FECH */
#define MCF_GPIO_PCLRR_FECH_PCLRR_FECH0            (0x01)
#define MCF_GPIO_PCLRR_FECH_PCLRR_FECH1            (0x02)
#define MCF_GPIO_PCLRR_FECH_PCLRR_FECH2            (0x04)
#define MCF_GPIO_PCLRR_FECH_PCLRR_FECH3            (0x08)
#define MCF_GPIO_PCLRR_FECH_PCLRR_FECH4            (0x10)
#define MCF_GPIO_PCLRR_FECH_PCLRR_FECH5            (0x20)
#define MCF_GPIO_PCLRR_FECH_PCLRR_FECH6            (0x40)
#define MCF_GPIO_PCLRR_FECH_PCLRR_FECH7            (0x80)

/* Bit definitions and macros for MCF_GPIO_PCLRR_FECL */
#define MCF_GPIO_PCLRR_FECL_PCLRR_FECL0            (0x01)
#define MCF_GPIO_PCLRR_FECL_PCLRR_FECL1            (0x02)
#define MCF_GPIO_PCLRR_FECL_PCLRR_FECL2            (0x04)
#define MCF_GPIO_PCLRR_FECL_PCLRR_FECL3            (0x08)
#define MCF_GPIO_PCLRR_FECL_PCLRR_FECL4            (0x10)
#define MCF_GPIO_PCLRR_FECL_PCLRR_FECL5            (0x20)
#define MCF_GPIO_PCLRR_FECL_PCLRR_FECL6            (0x40)
#define MCF_GPIO_PCLRR_FECL_PCLRR_FECL7            (0x80)

/* Bit definitions and macros for MCF_GPIO_PCLRR_SSI */
#define MCF_GPIO_PCLRR_SSI_PCLRR_SSI0              (0x01)
#define MCF_GPIO_PCLRR_SSI_PCLRR_SSI1              (0x02)
#define MCF_GPIO_PCLRR_SSI_PCLRR_SSI2              (0x04)
#define MCF_GPIO_PCLRR_SSI_PCLRR_SSI3              (0x08)
#define MCF_GPIO_PCLRR_SSI_PCLRR_SSI4              (0x10)

/* Bit definitions and macros for MCF_GPIO_PCLRR_BUSCTL */
#define MCF_GPIO_PCLRR_BUSCTL_PCLRR_BUSCTL0        (0x01)
#define MCF_GPIO_PCLRR_BUSCTL_PCLRR_BUSCTL1        (0x02)
#define MCF_GPIO_PCLRR_BUSCTL_PCLRR_BUSCTL2        (0x04)
#define MCF_GPIO_PCLRR_BUSCTL_PCLRR_BUSCTL3        (0x08)

/* Bit definitions and macros for MCF_GPIO_PCLRR_BE */
#define MCF_GPIO_PCLRR_BE_PCLRR_BE0                (0x01)
#define MCF_GPIO_PCLRR_BE_PCLRR_BE1                (0x02)
#define MCF_GPIO_PCLRR_BE_PCLRR_BE2                (0x04)
#define MCF_GPIO_PCLRR_BE_PCLRR_BE3                (0x08)

/* Bit definitions and macros for MCF_GPIO_PCLRR_CS */
#define MCF_GPIO_PCLRR_CS_PCLRR_CS1                (0x02)
#define MCF_GPIO_PCLRR_CS_PCLRR_CS2                (0x04)
#define MCF_GPIO_PCLRR_CS_PCLRR_CS3                (0x08)
#define MCF_GPIO_PCLRR_CS_PCLRR_CS4                (0x10)
#define MCF_GPIO_PCLRR_CS_PCLRR_CS5                (0x20)

/* Bit definitions and macros for MCF_GPIO_PCLRR_PWM */
#define MCF_GPIO_PCLRR_PWM_PCLRR_PWM2              (0x04)
#define MCF_GPIO_PCLRR_PWM_PCLRR_PWM3              (0x08)
#define MCF_GPIO_PCLRR_PWM_PCLRR_PWM4              (0x10)
#define MCF_GPIO_PCLRR_PWM_PCLRR_PWM5              (0x20)

/* Bit definitions and macros for MCF_GPIO_PCLRR_FECI2C */
#define MCF_GPIO_PCLRR_FECI2C_PCLRR_FECI2C0        (0x01)
#define MCF_GPIO_PCLRR_FECI2C_PCLRR_FECI2C1        (0x02)
#define MCF_GPIO_PCLRR_FECI2C_PCLRR_FECI2C2        (0x04)
#define MCF_GPIO_PCLRR_FECI2C_PCLRR_FECI2C3        (0x08)

/* Bit definitions and macros for MCF_GPIO_PCLRR_UART */
#define MCF_GPIO_PCLRR_UART_PCLRR_UART0            (0x01)
#define MCF_GPIO_PCLRR_UART_PCLRR_UART1            (0x02)
#define MCF_GPIO_PCLRR_UART_PCLRR_UART2            (0x04)
#define MCF_GPIO_PCLRR_UART_PCLRR_UART3            (0x08)
#define MCF_GPIO_PCLRR_UART_PCLRR_UART4            (0x10)
#define MCF_GPIO_PCLRR_UART_PCLRR_UART5            (0x20)
#define MCF_GPIO_PCLRR_UART_PCLRR_UART6            (0x40)
#define MCF_GPIO_PCLRR_UART_PCLRR_UART7            (0x80)

/* Bit definitions and macros for MCF_GPIO_PCLRR_QSPI */
#define MCF_GPIO_PCLRR_QSPI_PCLRR_QSPI0            (0x01)
#define MCF_GPIO_PCLRR_QSPI_PCLRR_QSPI1            (0x02)
#define MCF_GPIO_PCLRR_QSPI_PCLRR_QSPI2            (0x04)
#define MCF_GPIO_PCLRR_QSPI_PCLRR_QSPI3            (0x08)
#define MCF_GPIO_PCLRR_QSPI_PCLRR_QSPI4            (0x10)
#define MCF_GPIO_PCLRR_QSPI_PCLRR_QSPI5            (0x20)

/* Bit definitions and macros for MCF_GPIO_PCLRR_TIMER */
#define MCF_GPIO_PCLRR_TIMER_PCLRR_TIMER0          (0x01)
#define MCF_GPIO_PCLRR_TIMER_PCLRR_TIMER1          (0x02)
#define MCF_GPIO_PCLRR_TIMER_PCLRR_TIMER2          (0x04)
#define MCF_GPIO_PCLRR_TIMER_PCLRR_TIMER3          (0x08)

/* Bit definitions and macros for MCF_GPIO_PCLRR_LCDDATAH */
#define MCF_GPIO_PCLRR_LCDDATAH_PCLRR_LCDDATAH0    (0x01)
#define MCF_GPIO_PCLRR_LCDDATAH_PCLRR_LCDDATAH1    (0x02)

/* Bit definitions and macros for MCF_GPIO_PCLRR_LCDDATAM */
#define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM0    (0x01)
#define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM1    (0x02)
#define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM2    (0x04)
#define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM3    (0x08)
#define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM4    (0x10)
#define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM5    (0x20)
#define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM6    (0x40)
#define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM7    (0x80)

/* Bit definitions and macros for MCF_GPIO_PCLRR_LCDDATAL */
#define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL0    (0x01)
#define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL1    (0x02)
#define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL2    (0x04)
#define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL3    (0x08)
#define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL4    (0x10)
#define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL5    (0x20)
#define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL6    (0x40)
#define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL7    (0x80)

/* Bit definitions and macros for MCF_GPIO_PCLRR_LCDCTLH */
#define MCF_GPIO_PCLRR_LCDCTLH_PCLRR_LCDCTLH0      (0x01)

/* Bit definitions and macros for MCF_GPIO_PCLRR_LCDCTLL */
#define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL0      (0x01)
#define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL1      (0x02)
#define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL2      (0x04)
#define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL3      (0x08)
#define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL4      (0x10)
#define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL5      (0x20)
#define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL6      (0x40)
#define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL7      (0x80)

/* Bit definitions and macros for MCF_GPIO_PAR_FEC */
#define MCF_GPIO_PAR_FEC_PAR_FEC_MII(x)            (((x)&0x03)<<0)
#define MCF_GPIO_PAR_FEC_PAR_FEC_7W(x)             (((x)&0x03)<<2)
#define MCF_GPIO_PAR_FEC_PAR_FEC_7W_GPIO           (0x00)
#define MCF_GPIO_PAR_FEC_PAR_FEC_7W_URTS1          (0x04)
#define MCF_GPIO_PAR_FEC_PAR_FEC_7W_FEC            (0x0C)
#define MCF_GPIO_PAR_FEC_PAR_FEC_MII_GPIO          (0x00)
#define MCF_GPIO_PAR_FEC_PAR_FEC_MII_UART          (0x01)
#define MCF_GPIO_PAR_FEC_PAR_FEC_MII_FEC           (0x03)

/* Bit definitions and macros for MCF_GPIO_PAR_PWM */
#define MCF_GPIO_PAR_PWM_PAR_PWM1(x)               (((x)&0x03)<<0)
#define MCF_GPIO_PAR_PWM_PAR_PWM3(x)               (((x)&0x03)<<2)
#define MCF_GPIO_PAR_PWM_PAR_PWM5                  (0x10)
#define MCF_GPIO_PAR_PWM_PAR_PWM7                  (0x20)

/* Bit definitions and macros for MCF_GPIO_PAR_BUSCTL */
#define MCF_GPIO_PAR_BUSCTL_PAR_TS(x)              (((x)&0x03)<<3)
#define MCF_GPIO_PAR_BUSCTL_PAR_RWB                (0x20)
#define MCF_GPIO_PAR_BUSCTL_PAR_TA                 (0x40)
#define MCF_GPIO_PAR_BUSCTL_PAR_OE                 (0x80)
#define MCF_GPIO_PAR_BUSCTL_PAR_OE_GPIO            (0x00)
#define MCF_GPIO_PAR_BUSCTL_PAR_OE_OE              (0x80)
#define MCF_GPIO_PAR_BUSCTL_PAR_TA_GPIO            (0x00)
#define MCF_GPIO_PAR_BUSCTL_PAR_TA_TA              (0x40)
#define MCF_GPIO_PAR_BUSCTL_PAR_RWB_GPIO           (0x00)
#define MCF_GPIO_PAR_BUSCTL_PAR_RWB_RWB            (0x20)
#define MCF_GPIO_PAR_BUSCTL_PAR_TS_GPIO            (0x00)
#define MCF_GPIO_PAR_BUSCTL_PAR_TS_DACK0           (0x10)
#define MCF_GPIO_PAR_BUSCTL_PAR_TS_TS              (0x18)

/* Bit definitions and macros for MCF_GPIO_PAR_FECI2C */
#define MCF_GPIO_PAR_FECI2C_PAR_SDA(x)             (((x)&0x03)<<0)
#define MCF_GPIO_PAR_FECI2C_PAR_SCL(x)             (((x)&0x03)<<2)
#define MCF_GPIO_PAR_FECI2C_PAR_MDIO(x)            (((x)&0x03)<<4)
#define MCF_GPIO_PAR_FECI2C_PAR_MDC(x)             (((x)&0x03)<<6)
#define MCF_GPIO_PAR_FECI2C_PAR_MDC_GPIO           (0x00)
#define MCF_GPIO_PAR_FECI2C_PAR_MDC_UTXD2          (0x40)
#define MCF_GPIO_PAR_FECI2C_PAR_MDC_SCL            (0x80)
#define MCF_GPIO_PAR_FECI2C_PAR_MDC_EMDC           (0xC0)
#define MCF_GPIO_PAR_FECI2C_PAR_MDIO_GPIO          (0x00)
#define MCF_GPIO_PAR_FECI2C_PAR_MDIO_URXD2         (0x10)
#define MCF_GPIO_PAR_FECI2C_PAR_MDIO_SDA           (0x20)
#define MCF_GPIO_PAR_FECI2C_PAR_MDIO_EMDIO         (0x30)
#define MCF_GPIO_PAR_FECI2C_PAR_SCL_GPIO           (0x00)
#define MCF_GPIO_PAR_FECI2C_PAR_SCL_UTXD2          (0x04)
#define MCF_GPIO_PAR_FECI2C_PAR_SCL_SCL            (0x0C)
#define MCF_GPIO_PAR_FECI2C_PAR_SDA_GPIO           (0x00)
#define MCF_GPIO_PAR_FECI2C_PAR_SDA_URXD2          (0x01)
#define MCF_GPIO_PAR_FECI2C_PAR_SDA_SDA            (0x03)

/* Bit definitions and macros for MCF_GPIO_PAR_BE */
#define MCF_GPIO_PAR_BE_PAR_BE0                    (0x01)
#define MCF_GPIO_PAR_BE_PAR_BE1                    (0x02)
#define MCF_GPIO_PAR_BE_PAR_BE2                    (0x04)
#define MCF_GPIO_PAR_BE_PAR_BE3                    (0x08)

/* Bit definitions and macros for MCF_GPIO_PAR_CS */
#define MCF_GPIO_PAR_CS_PAR_CS1                    (0x02)
#define MCF_GPIO_PAR_CS_PAR_CS2                    (0x04)
#define MCF_GPIO_PAR_CS_PAR_CS3                    (0x08)
#define MCF_GPIO_PAR_CS_PAR_CS4                    (0x10)
#define MCF_GPIO_PAR_CS_PAR_CS5                    (0x20)
#define MCF_GPIO_PAR_CS_PAR_CS_CS1_GPIO            (0x00)
#define MCF_GPIO_PAR_CS_PAR_CS_CS1_SDCS1           (0x01)
#define MCF_GPIO_PAR_CS_PAR_CS_CS1_CS1             (0x03)

/* Bit definitions and macros for MCF_GPIO_PAR_SSI */
#define MCF_GPIO_PAR_SSI_PAR_MCLK                  (0x0080)
#define MCF_GPIO_PAR_SSI_PAR_TXD(x)                (((x)&0x0003)<<8)
#define MCF_GPIO_PAR_SSI_PAR_RXD(x)                (((x)&0x0003)<<10)
#define MCF_GPIO_PAR_SSI_PAR_FS(x)                 (((x)&0x0003)<<12)
#define MCF_GPIO_PAR_SSI_PAR_BCLK(x)               (((x)&0x0003)<<14)

/* Bit definitions and macros for MCF_GPIO_PAR_UART */
#define MCF_GPIO_PAR_UART_PAR_UTXD0                (0x0001)
#define MCF_GPIO_PAR_UART_PAR_URXD0                (0x0002)
#define MCF_GPIO_PAR_UART_PAR_URTS0                (0x0004)
#define MCF_GPIO_PAR_UART_PAR_UCTS0                (0x0008)
#define MCF_GPIO_PAR_UART_PAR_UTXD1(x)             (((x)&0x0003)<<4)
#define MCF_GPIO_PAR_UART_PAR_URXD1(x)             (((x)&0x0003)<<6)
#define MCF_GPIO_PAR_UART_PAR_URTS1(x)             (((x)&0x0003)<<8)
#define MCF_GPIO_PAR_UART_PAR_UCTS1(x)             (((x)&0x0003)<<10)
#define MCF_GPIO_PAR_UART_PAR_UCTS1_GPIO           (0x0000)
#define MCF_GPIO_PAR_UART_PAR_UCTS1_SSI_BCLK       (0x0800)
#define MCF_GPIO_PAR_UART_PAR_UCTS1_ULPI_D7        (0x0400)
#define MCF_GPIO_PAR_UART_PAR_UCTS1_UCTS1          (0x0C00)
#define MCF_GPIO_PAR_UART_PAR_URTS1_GPIO           (0x0000)
#define MCF_GPIO_PAR_UART_PAR_URTS1_SSI_FS         (0x0200)
#define MCF_GPIO_PAR_UART_PAR_URTS1_ULPI_D6        (0x0100)
#define MCF_GPIO_PAR_UART_PAR_URTS1_URTS1          (0x0300)
#define MCF_GPIO_PAR_UART_PAR_URXD1_GPIO           (0x0000)
#define MCF_GPIO_PAR_UART_PAR_URXD1_SSI_RXD        (0x0080)
#define MCF_GPIO_PAR_UART_PAR_URXD1_ULPI_D5        (0x0040)
#define MCF_GPIO_PAR_UART_PAR_URXD1_URXD1          (0x00C0)
#define MCF_GPIO_PAR_UART_PAR_UTXD1_GPIO           (0x0000)
#define MCF_GPIO_PAR_UART_PAR_UTXD1_SSI_TXD        (0x0020)
#define MCF_GPIO_PAR_UART_PAR_UTXD1_ULPI_D4        (0x0010)
#define MCF_GPIO_PAR_UART_PAR_UTXD1_UTXD1          (0x0030)

/* Bit definitions and macros for MCF_GPIO_PAR_QSPI */
#define MCF_GPIO_PAR_QSPI_PAR_SCK(x)               (((x)&0x0003)<<4)
#define MCF_GPIO_PAR_QSPI_PAR_DOUT(x)              (((x)&0x0003)<<6)
#define MCF_GPIO_PAR_QSPI_PAR_DIN(x)               (((x)&0x0003)<<8)
#define MCF_GPIO_PAR_QSPI_PAR_PCS0(x)              (((x)&0x0003)<<10)
#define MCF_GPIO_PAR_QSPI_PAR_PCS1(x)              (((x)&0x0003)<<12)
#define MCF_GPIO_PAR_QSPI_PAR_PCS2(x)              (((x)&0x0003)<<14)

/* Bit definitions and macros for MCF_GPIO_PAR_TIMER */
#define MCF_GPIO_PAR_TIMER_PAR_TIN0(x)             (((x)&0x03)<<0)
#define MCF_GPIO_PAR_TIMER_PAR_TIN1(x)             (((x)&0x03)<<2)
#define MCF_GPIO_PAR_TIMER_PAR_TIN2(x)             (((x)&0x03)<<4)
#define MCF_GPIO_PAR_TIMER_PAR_TIN3(x)             (((x)&0x03)<<6)
#define MCF_GPIO_PAR_TIMER_PAR_TIN3_GPIO           (0x00)
#define MCF_GPIO_PAR_TIMER_PAR_TIN3_TOUT3          (0x80)
#define MCF_GPIO_PAR_TIMER_PAR_TIN3_URXD2          (0x40)
#define MCF_GPIO_PAR_TIMER_PAR_TIN3_TIN3           (0xC0)
#define MCF_GPIO_PAR_TIMER_PAR_TIN2_GPIO           (0x00)
#define MCF_GPIO_PAR_TIMER_PAR_TIN2_TOUT2          (0x20)
#define MCF_GPIO_PAR_TIMER_PAR_TIN2_UTXD2          (0x10)
#define MCF_GPIO_PAR_TIMER_PAR_TIN2_TIN2           (0x30)
#define MCF_GPIO_PAR_TIMER_PAR_TIN1_GPIO           (0x00)
#define MCF_GPIO_PAR_TIMER_PAR_TIN1_TOUT1          (0x08)
#define MCF_GPIO_PAR_TIMER_PAR_TIN1_DACK1          (0x04)
#define MCF_GPIO_PAR_TIMER_PAR_TIN1_TIN1           (0x0C)
#define MCF_GPIO_PAR_TIMER_PAR_TIN0_GPIO           (0x00)
#define MCF_GPIO_PAR_TIMER_PAR_TIN0_TOUT0          (0x02)
#define MCF_GPIO_PAR_TIMER_PAR_TIN0_DREQ0          (0x01)
#define MCF_GPIO_PAR_TIMER_PAR_TIN0_TIN0           (0x03)

/* Bit definitions and macros for MCF_GPIO_PAR_LCDDATA */
#define MCF_GPIO_PAR_LCDDATA_PAR_LD7_0(x)          (((x)&0x03)<<0)
#define MCF_GPIO_PAR_LCDDATA_PAR_LD15_8(x)         (((x)&0x03)<<2)
#define MCF_GPIO_PAR_LCDDATA_PAR_LD16(x)           (((x)&0x03)<<4)
#define MCF_GPIO_PAR_LCDDATA_PAR_LD17(x)           (((x)&0x03)<<6)

/* Bit definitions and macros for MCF_GPIO_PAR_LCDCTL */
#define MCF_GPIO_PAR_LCDCTL_PAR_CLS                (0x0001)
#define MCF_GPIO_PAR_LCDCTL_PAR_PS                 (0x0002)
#define MCF_GPIO_PAR_LCDCTL_PAR_REV                (0x0004)
#define MCF_GPIO_PAR_LCDCTL_PAR_SPL_SPR            (0x0008)
#define MCF_GPIO_PAR_LCDCTL_PAR_CONTRAST           (0x0010)
#define MCF_GPIO_PAR_LCDCTL_PAR_LSCLK              (0x0020)
#define MCF_GPIO_PAR_LCDCTL_PAR_LP_HSYNC           (0x0040)
#define MCF_GPIO_PAR_LCDCTL_PAR_FLM_VSYNC          (0x0080)
#define MCF_GPIO_PAR_LCDCTL_PAR_ACD_OE             (0x0100)

/* Bit definitions and macros for MCF_GPIO_PAR_IRQ */
#define MCF_GPIO_PAR_IRQ_PAR_IRQ1(x)               (((x)&0x0003)<<4)
#define MCF_GPIO_PAR_IRQ_PAR_IRQ2(x)               (((x)&0x0003)<<6)
#define MCF_GPIO_PAR_IRQ_PAR_IRQ4(x)               (((x)&0x0003)<<8)
#define MCF_GPIO_PAR_IRQ_PAR_IRQ5(x)               (((x)&0x0003)<<10)
#define MCF_GPIO_PAR_IRQ_PAR_IRQ6(x)               (((x)&0x0003)<<12)

/* Bit definitions and macros for MCF_GPIO_MSCR_FLEXBUS */
#define MCF_GPIO_MSCR_FLEXBUS_MSCR_ADDRCTL(x)      (((x)&0x03)<<0)
#define MCF_GPIO_MSCR_FLEXBUS_MSCR_DLOWER(x)       (((x)&0x03)<<2)
#define MCF_GPIO_MSCR_FLEXBUS_MSCR_DUPPER(x)       (((x)&0x03)<<4)

/* Bit definitions and macros for MCF_GPIO_MSCR_SDRAM */
#define MCF_GPIO_MSCR_SDRAM_MSCR_SDRAM(x)          (((x)&0x03)<<0)
#define MCF_GPIO_MSCR_SDRAM_MSCR_SDCLK(x)          (((x)&0x03)<<2)
#define MCF_GPIO_MSCR_SDRAM_MSCR_SDCLKB(x)         (((x)&0x03)<<4)

/* Bit definitions and macros for MCF_GPIO_DSCR_I2C */
#define MCF_GPIO_DSCR_I2C_I2C_DSE(x)               (((x)&0x03)<<0)

/* Bit definitions and macros for MCF_GPIO_DSCR_PWM */
#define MCF_GPIO_DSCR_PWM_PWM_DSE(x)               (((x)&0x03)<<0)

/* Bit definitions and macros for MCF_GPIO_DSCR_FEC */
#define MCF_GPIO_DSCR_FEC_FEC_DSE(x)               (((x)&0x03)<<0)

/* Bit definitions and macros for MCF_GPIO_DSCR_UART */
#define MCF_GPIO_DSCR_UART_UART0_DSE(x)            (((x)&0x03)<<0)
#define MCF_GPIO_DSCR_UART_UART1_DSE(x)            (((x)&0x03)<<2)

/* Bit definitions and macros for MCF_GPIO_DSCR_QSPI */
#define MCF_GPIO_DSCR_QSPI_QSPI_DSE(x)             (((x)&0x03)<<0)

/* Bit definitions and macros for MCF_GPIO_DSCR_TIMER */
#define MCF_GPIO_DSCR_TIMER_TIMER_DSE(x)           (((x)&0x03)<<0)

/* Bit definitions and macros for MCF_GPIO_DSCR_SSI */
#define MCF_GPIO_DSCR_SSI_SSI_DSE(x)               (((x)&0x03)<<0)

/* Bit definitions and macros for MCF_GPIO_DSCR_LCD */
#define MCF_GPIO_DSCR_LCD_LCD_DSE(x)               (((x)&0x03)<<0)

/* Bit definitions and macros for MCF_GPIO_DSCR_DEBUG */
#define MCF_GPIO_DSCR_DEBUG_DEBUG_DSE(x)           (((x)&0x03)<<0)

/* Bit definitions and macros for MCF_GPIO_DSCR_CLKRST */
#define MCF_GPIO_DSCR_CLKRST_MSCR_FBCLK(x)         (((x)&0x03)<<0)
#define MCF_GPIO_DSCR_CLKRST_RSTOUT_DSE(x)         (((x)&0x03)<<2)

/* Bit definitions and macros for MCF_GPIO_DSCR_IRQ */
#define MCF_GPIO_DSCR_IRQ_IRQ_DSE(x)               (((x)&0x03)<<0)

/*********************************************************************
*
* Real-time Clock (RTC)
*
*********************************************************************/

/* Register read/write macros */
#define MCF_RTC_HOURMIN              (*(vuint32*)(0xFC0A8000))
#define MCF_RTC_SECONDS              (*(vuint32*)(0xFC0A8004))
#define MCF_RTC_ALRM_HM              (*(vuint32*)(0xFC0A8008))
#define MCF_RTC_ALRM_SEC             (*(vuint32*)(0xFC0A800C))
#define MCF_RTC_CR                   (*(vuint32*)(0xFC0A8010))
#define MCF_RTC_ISR                  (*(vuint32*)(0xFC0A8014))
#define MCF_RTC_IER                  (*(vuint32*)(0xFC0A8018))
#define MCF_RTC_STPWCH               (*(vuint32*)(0xFC0A801C))
#define MCF_RTC_DAYS                 (*(vuint32*)(0xFC0A8020))
#define MCF_RTC_ALRM_DAY             (*(vuint32*)(0xFC0A8024))

/* Bit definitions and macros for MCF_RTC_HOURMIN */
#define MCF_RTC_HOURMIN_MINUTES(x)   (((x)&0x0000003F)<<0)
#define MCF_RTC_HOURMIN_HOURS(x)     (((x)&0x0000001F)<<8)

/* Bit definitions and macros for MCF_RTC_SECONDS */
#define MCF_RTC_SECONDS_SECONDS(x)   (((x)&0x0000003F)<<0)

/* Bit definitions and macros for MCF_RTC_ALRM_HM */
#define MCF_RTC_ALRM_HM_MINUTES(x)   (((x)&0x0000003F)<<0)
#define MCF_RTC_ALRM_HM_HOURS(x)     (((x)&0x0000001F)<<8)

/* Bit definitions and macros for MCF_RTC_ALRM_SEC */
#define MCF_RTC_ALRM_SEC_SECONDS(x)  (((x)&0x0000003F)<<0)

/* Bit definitions and macros for MCF_RTC_CR */
#define MCF_RTC_CR_SWR               (0x00000001)
#define MCF_RTC_CR_XTL(x)            (((x)&0x00000003)<<5)
#define MCF_RTC_CR_EN                (0x00000080)
#define MCF_RTC_CR_32768             (0x0)
#define MCF_RTC_CR_32000             (0x1)
#define MCF_RTC_CR_38400             (0x2)

/* Bit definitions and macros for MCF_RTC_ISR */
#define MCF_RTC_ISR_SW               (0x00000001)
#define MCF_RTC_ISR_MIN              (0x00000002)
#define MCF_RTC_ISR_ALM              (0x00000004)
#define MCF_RTC_ISR_DAY              (0x00000008)
#define MCF_RTC_ISR_1HZ              (0x00000010)
#define MCF_RTC_ISR_HR               (0x00000020)
#define MCF_RTC_ISR_2HZ              (0x00000080)
#define MCF_RTC_ISR_SAM0             (0x00000100)
#define MCF_RTC_ISR_SAM1             (0x00000200)
#define MCF_RTC_ISR_SAM2             (0x00000400)
#define MCF_RTC_ISR_SAM3             (0x00000800)
#define MCF_RTC_ISR_SAM4             (0x00001000)
#define MCF_RTC_ISR_SAM5             (0x00002000)
#define MCF_RTC_ISR_SAM6             (0x00004000)
#define MCF_RTC_ISR_SAM7             (0x00008000)

/* Bit definitions and macros for MCF_RTC_IER */
#define MCF_RTC_IER_SW               (0x00000001)
#define MCF_RTC_IER_MIN              (0x00000002)
#define MCF_RTC_IER_ALM              (0x00000004)
#define MCF_RTC_IER_DAY              (0x00000008)
#define MCF_RTC_IER_1HZ              (0x00000010)
#define MCF_RTC_IER_HR               (0x00000020)
#define MCF_RTC_IER_2HZ              (0x00000080)
#define MCF_RTC_IER_SAM0             (0x00000100)
#define MCF_RTC_IER_SAM1             (0x00000200)
#define MCF_RTC_IER_SAM2             (0x00000400)
#define MCF_RTC_IER_SAM3             (0x00000800)
#define MCF_RTC_IER_SAM4             (0x00001000)
#define MCF_RTC_IER_SAM5             (0x00002000)
#define MCF_RTC_IER_SAM6             (0x00004000)
#define MCF_RTC_IER_SAM7             (0x00008000)

/* Bit definitions and macros for MCF_RTC_STPWCH */
#define MCF_RTC_STPWCH_CNT(x)        (((x)&0x0000003F)<<0)

/* Bit definitions and macros for MCF_RTC_DAYS */
#define MCF_RTC_DAYS_DAYS(x)         (((x)&0x0000FFFF)<<0)

/* Bit definitions and macros for MCF_RTC_ALRM_DAY */
#define MCF_RTC_ALRM_DAY_DAYS(x)     (((x)&0x0000FFFF)<<0)

/*********************************************************************
*
* LCD Controller (LCDC)
*
*********************************************************************/

/* Register read/write macros */
#define MCF_LCDC_LSSAR                  (*(vuint32*)(0xFC0AC000))
#define MCF_LCDC_LSR                    (*(vuint32*)(0xFC0AC004))
#define MCF_LCDC_LVPWR                  (*(vuint32*)(0xFC0AC008))
#define MCF_LCDC_LCPR                   (*(vuint32*)(0xFC0AC00C))
#define MCF_LCDC_LCWHBR                 (*(vuint32*)(0xFC0AC010))
#define MCF_LCDC_LCCMR                  (*(vuint32*)(0xFC0AC014))
#define MCF_LCDC_LPCR                   (*(vuint32*)(0xFC0AC018))
#define MCF_LCDC_LHCR                   (*(vuint32*)(0xFC0AC01C))
#define MCF_LCDC_LVCR                   (*(vuint32*)(0xFC0AC020))
#define MCF_LCDC_LPOR                   (*(vuint32*)(0xFC0AC024))
#define MCF_LCDC_LSCR                   (*(vuint32*)(0xFC0AC028))
#define MCF_LCDC_LPCCR                  (*(vuint32*)(0xFC0AC02C))
#define MCF_LCDC_LDCR                   (*(vuint32*)(0xFC0AC030))
#define MCF_LCDC_LRMCR                  (*(vuint32*)(0xFC0AC034))
#define MCF_LCDC_LICR                   (*(vuint32*)(0xFC0AC038))
#define MCF_LCDC_LIER                   (*(vuint32*)(0xFC0AC03C))
#define MCF_LCDC_LISR                   (*(vuint32*)(0xFC0AC040))
#define MCF_LCDC_LGWSAR                 (*(vuint32*)(0xFC0AC050))
#define MCF_LCDC_LGWSR                  (*(vuint32*)(0xFC0AC054))
#define MCF_LCDC_LGWVPWR                (*(vuint32*)(0xFC0AC058))
#define MCF_LCDC_LGWPOR                 (*(vuint32*)(0xFC0AC05C))
#define MCF_LCDC_LGWPR                  (*(vuint32*)(0xFC0AC060))
#define MCF_LCDC_LGWCR                  (*(vuint32*)(0xFC0AC064))
#define MCF_LCDC_LGWDCR                 (*(vuint32*)(0xFC0AC068))
#define MCF_LCDC_BPLUT_BASE             (*(vuint32*)(0xFC0AC800))
#define MCF_LCDC_GWLUT_BASE             (*(vuint32*)(0xFC0ACC00))

/* Bit definitions and macros for MCF_LCDC_LSSAR */
#define MCF_LCDC_LSSAR_SSA(x)           (((x)&0x3FFFFFFF)<<2)

/* Bit definitions and macros for MCF_LCDC_LSR */
#define MCF_LCDC_LSR_YMAX(x)            (((x)&0x000003FF)<<0)
#define MCF_LCDC_LSR_XMAX(x)            (((x)&0x0000003F)<<20)

/* Bit definitions and macros for MCF_LCDC_LVPWR */
#define MCF_LCDC_LVPWR_VPW(x)           (((x)&0x000003FF)<<0)

/* Bit definitions and macros for MCF_LCDC_LCPR */
#define MCF_LCDC_LCPR_CYP(x)            (((x)&0x000003FF)<<0)
#define MCF_LCDC_LCPR_CXP(x)            (((x)&0x000003FF)<<16)
#define MCF_LCDC_LCPR_OP                (0x10000000)
#define MCF_LCDC_LCPR_CC(x)             (((x)&0x00000003)<<30)
#define MCF_LCDC_LCPR_CC_TRANSPARENT    (0x00000000)
#define MCF_LCDC_LCPR_CC_OR             (0x40000000)
#define MCF_LCDC_LCPR_CC_XOR            (0x80000000)
#define MCF_LCDC_LCPR_CC_AND            (0xC0000000)
#define MCF_LCDC_LCPR_OP_ON             (0x10000000)
#define MCF_LCDC_LCPR_OP_OFF            (0x00000000)

/* Bit definitions and macros for MCF_LCDC_LCWHBR */
#define MCF_LCDC_LCWHBR_BD(x)           (((x)&0x000000FF)<<0)
#define MCF_LCDC_LCWHBR_CH(x)           (((x)&0x0000001F)<<16)
#define MCF_LCDC_LCWHBR_CW(x)           (((x)&0x0000001F)<<24)
#define MCF_LCDC_LCWHBR_BK_EN           (0x80000000)
#define MCF_LCDC_LCWHBR_BK_EN_ON        (0x80000000)
#define MCF_LCDC_LCWHBR_BK_EN_OFF       (0x00000000)

/* Bit definitions and macros for MCF_LCDC_LCCMR */
#define MCF_LCDC_LCCMR_CUR_COL_B(x)     (((x)&0x0000003F)<<0)
#define MCF_LCDC_LCCMR_CUR_COL_G(x)     (((x)&0x0000003F)<<6)
#define MCF_LCDC_LCCMR_CUR_COL_R(x)     (((x)&0x0000003F)<<12)

/* Bit definitions and macros for MCF_LCDC_LPCR */
#define MCF_LCDC_LPCR_PCD(x)            (((x)&0x0000003F)<<0)
#define MCF_LCDC_LPCR_SHARP             (0x00000040)
#define MCF_LCDC_LPCR_SCLKSEL           (0x00000080)
#define MCF_LCDC_LPCR_ACD(x)            (((x)&0x0000007F)<<8)
#define MCF_LCDC_LPCR_ACDSEL            (0x00008000)
#define MCF_LCDC_LPCR_REV_VS            (0x00010000)
#define MCF_LCDC_LPCR_SWAP_SEL          (0x00020000)
#define MCF_LCDC_LPCR_ENDSEL            (0x00040000)
#define MCF_LCDC_LPCR_SCLKIDLE          (0x00080000)
#define MCF_LCDC_LPCR_OEPOL             (0x00100000)
#define MCF_LCDC_LPCR_CLKPOL            (0x00200000)
#define MCF_LCDC_LPCR_LPPOL             (0x00400000)
#define MCF_LCDC_LPCR_FLM               (0x00800000)
#define MCF_LCDC_LPCR_PIXPOL            (0x01000000)
#define MCF_LCDC_LPCR_BPIX(x)           (((x)&0x00000007)<<25)
#define MCF_LCDC_LPCR_PBSIZ(x)          (((x)&0x00000003)<<28)
#define MCF_LCDC_LPCR_COLOR             (0x40000000)
#define MCF_LCDC_LPCR_TFT               (0x80000000)
#define MCF_LCDC_LPCR_MODE_MONOCHROME   (0x00000000)
#define MCF_LCDC_LPCR_MODE_CSTN         (0x40000000)
#define MCF_LCDC_LPCR_MODE_TFT          (0xC0000000)
#define MCF_LCDC_LPCR_PBSIZ_1           (0x00000000)
#define MCF_LCDC_LPCR_PBSIZ_2           (0x10000000)
#define MCF_LCDC_LPCR_PBSIZ_4           (0x20000000)
#define MCF_LCDC_LPCR_PBSIZ_8           (0x30000000)
#define MCF_LCDC_LPCR_BPIX_1bpp         (0x00000000)
#define MCF_LCDC_LPCR_BPIX_2bpp         (0x02000000)
#define MCF_LCDC_LPCR_BPIX_4bpp         (0x04000000)
#define MCF_LCDC_LPCR_BPIX_8bpp         (0x06000000)
#define MCF_LCDC_LPCR_BPIX_12bpp        (0x08000000)
#define MCF_LCDC_LPCR_BPIX_16bpp        (0x0A000000)
#define MCF_LCDC_LPCR_BPIX_18bpp        (0x0C000000)

/* Bit definitions and macros for MCF_LCDC_LHCR */
#define MCF_LCDC_LHCR_H_WAIT_2(x)       (((x)&0x000000FF)<<0)
#define MCF_LCDC_LHCR_H_WAIT_1(x)       (((x)&0x000000FF)<<8)
#define MCF_LCDC_LHCR_H_WIDTH(x)        (((x)&0x0000003F)<<26)

/* Bit definitions and macros for MCF_LCDC_LVCR */
#define MCF_LCDC_LVCR_V_WAIT_2(x)       (((x)&0x000000FF)<<0)
#define MCF_LCDC_LVCR_V_WAIT_1(x)       (((x)&0x000000FF)<<8)
#define MCF_LCDC_LVCR_V_WIDTH(x)        (((x)&0x0000003F)<<26)

/* Bit definitions and macros for MCF_LCDC_LPOR */
#define MCF_LCDC_LPOR_POS(x)            (((x)&0x0000001F)<<0)

/* Bit definitions and macros for MCF_LCDC_LPCCR */
#define MCF_LCDC_LPCCR_PW(x)            (((x)&0x000000FF)<<0)
#define MCF_LCDC_LPCCR_CC_EN            (0x00000100)
#define MCF_LCDC_LPCCR_SCR(x)           (((x)&0x00000003)<<9)
#define MCF_LCDC_LPCCR_LDMSK            (0x00008000)
#define MCF_LCDC_LPCCR_CLS_HI_WIDTH(x)  (((x)&0x000001FF)<<16)
#define MCF_LCDC_LPCCR_SCR_LINEPULSE    (0x00000000)
#define MCF_LCDC_LPCCR_SCR_PIXELCLK     (0x00002000)
#define MCF_LCDC_LPCCR_SCR_LCDCLOCK     (0x00004000)

/* Bit definitions and macros for MCF_LCDC_LDCR */
#define MCF_LCDC_LDCR_TM(x)             (((x)&0x0000001F)<<0)
#define MCF_LCDC_LDCR_HM(x)             (((x)&0x0000001F)<<16)
#define MCF_LCDC_LDCR_BURST             (0x80000000)

/* Bit definitions and macros for MCF_LCDC_LRMCR */
#define MCF_LCDC_LRMCR_SEL_REF          (0x00000001)

/* Bit definitions and macros for MCF_LCDC_LICR */
#define MCF_LCDC_LICR_INTCON            (0x00000001)
#define MCF_LCDC_LICR_INTSYN            (0x00000004)
#define MCF_LCDC_LICR_GW_INT_CON        (0x00000010)

/* Bit definitions and macros for MCF_LCDC_LIER */
#define MCF_LCDC_LIER_BOF_EN            (0x00000001)
#define MCF_LCDC_LIER_EOF_EN            (0x00000002)
#define MCF_LCDC_LIER_ERR_RES_EN        (0x00000004)
#define MCF_LCDC_LIER_UDR_ERR_EN        (0x00000008)
#define MCF_LCDC_LIER_GW_BOF_EN         (0x00000010)
#define MCF_LCDC_LIER_GW_EOF_EN         (0x00000020)
#define MCF_LCDC_LIER_GW_ERR_RES_EN     (0x00000040)
#define MCF_LCDC_LIER_GW_UDR_ERR_EN     (0x00000080)

/* Bit definitions and macros for MCF_LCDC_LISR */
#define MCF_LCDC_LISR_BOF               (0x00000001)
#define MCF_LCDC_LISR_EOF               (0x00000002)
#define MCF_LCDC_LISR_ERR_RES           (0x00000004)
#define MCF_LCDC_LISR_UDR_ERR           (0x00000008)
#define MCF_LCDC_LISR_GW_BOF            (0x00000010)
#define MCF_LCDC_LISR_GW_EOF            (0x00000020)
#define MCF_LCDC_LISR_GW_ERR_RES        (0x00000040)
#define MCF_LCDC_LISR_GW_UDR_ERR        (0x00000080)

/* Bit definitions and macros for MCF_LCDC_LGWSAR */
#define MCF_LCDC_LGWSAR_GWSA(x)         (((x)&0x3FFFFFFF)<<2)

/* Bit definitions and macros for MCF_LCDC_LGWSR */
#define MCF_LCDC_LGWSR_GWH(x)           (((x)&0x000003FF)<<0)
#define MCF_LCDC_LGWSR_GWW(x)           (((x)&0x0000003F)<<20)

/* Bit definitions and macros for MCF_LCDC_LGWVPWR */
#define MCF_LCDC_LGWVPWR_GWVPW(x)       (((x)&0x000003FF)<<0)

/* Bit definitions and macros for MCF_LCDC_LGWPOR */
#define MCF_LCDC_LGWPOR_GWPO(x)         (((x)&0x0000001F)<<0)

/* Bit definitions and macros for MCF_LCDC_LGWPR */
#define MCF_LCDC_LGWPR_GWYP(x)          (((x)&0x000003FF)<<0)
#define MCF_LCDC_LGWPR_GWXP(x)          (((x)&0x000003FF)<<16)

/* Bit definitions and macros for MCF_LCDC_LGWCR */
#define MCF_LCDC_LGWCR_GWCKB(x)         (((x)&0x0000003F)<<0)
#define MCF_LCDC_LGWCR_GWCKG(x)         (((x)&0x0000003F)<<6)
#define MCF_LCDC_LGWCR_GWCKR(x)         (((x)&0x0000003F)<<12)
#define MCF_LCDC_LGWCR_GW_RVS           (0x00200000)
#define MCF_LCDC_LGWCR_GWE              (0x00400000)
#define MCF_LCDC_LGWCR_GWCKE            (0x00800000)
#define MCF_LCDC_LGWCR_GWAV(x)          (((x)&0x000000FF)<<24)

/* Bit definitions and macros for MCF_LCDC_LGWDCR */
#define MCF_LCDC_LGWDCR_GWTM(x)         (((x)&0x0000001F)<<0)
#define MCF_LCDC_LGWDCR_GWHM(x)         (((x)&0x0000001F)<<16)
#define MCF_LCDC_LGWDCR_GWBT            (0x80000000)

/* Bit definitions and macros for MCF_LCDC_LSCR */
#define MCF_LCDC_LSCR_PS_RISE_DELAY(x)    (((x)&0x0000003F)<<26)
#define MCF_LCDC_LSCR_CLS_RISE_DELAY(x)   (((x)&0x000000FF)<<16)
#define MCF_LCDC_LSCR_REV_TOGGLE_DELAY(x) (((x)&0x0000000F)<<8)
#define MCF_LCDC_LSCR_GRAY_2(x)  		  (((x)&0x0000000F)<<4)
#define MCF_LCDC_LSCR_GRAY_1(x)  		  (((x)&0x0000000F)<<0)

/* Bit definitions and macros for MCF_LCDC_BPLUT_BASE */
#define MCF_LCDC_BPLUT_BASE_BASE(x)     (((x)&0xFFFFFFFF)<<0)

/* Bit definitions and macros for MCF_LCDC_GWLUT_BASE */
#define MCF_LCDC_GWLUT_BASE_BASE(x)     (((x)&0xFFFFFFFF)<<0)

/*********************************************************************
*
* USB Controller (USB)
*
*********************************************************************/

/* Register read/write macros */
#define MCF_USB0_ID                              (*(vuint32*)(0xFC0B0000))
#define MCF_USB0_HWGENERAL                       (*(vuint32*)(0xFC0B0004))
#define MCF_USB0_HWHOST                          (*(vuint32*)(0xFC0B0008))
#define MCF_USB0_HWDEVICE                        (*(vuint32*)(0xFC0B000C))
#define MCF_USB0_HWTXBUF                         (*(vuint32*)(0xFC0B0010))
#define MCF_USB0_HWRXBUF                         (*(vuint32*)(0xFC0B0014))
#define MCF_USB0_CAPLENGTH                       (*(vuint8 *)(0xFC0B0100))
#define MCF_USB0_HCIVERSION                      (*(vuint16*)(0xFC0B0102))
#define MCF_USB0_HCSPARAMS                       (*(vuint32*)(0xFC0B0104))
#define MCF_USB0_HCCPARAMS                       (*(vuint32*)(0xFC0B0108))
#define MCF_USB0_DCIVERSION                      (*(vuint16*)(0xFC0B0120))
#define MCF_USB0_DCCPARAMS                       (*(vuint32*)(0xFC0B0124))
#define MCF_USB0_USBCMD                          (*(vuint32*)(0xFC0B0140))
#define MCF_USB0_USBSTS                          (*(vuint32*)(0xFC0B0144))
#define MCF_USB0_USBINTR                         (*(vuint32*)(0xFC0B0148))
#define MCF_USB0_FRINDEX                         (*(vuint32*)(0xFC0B014C))
#define MCF_USB0_PERIODICLISTBASE                (*(vuint32*)(0xFC0B0154))
#define MCF_USB0_DEVICEADDR                      (*(vuint32*)(0xFC0B0154))
#define MCF_USB0_ASYNCLISTADDR                   (*(vuint32*)(0xFC0B0158))
#define MCF_USB0_EPLISTADDR                      (*(vuint32*)(0xFC0B0158))
#define MCF_USB0_ASYNCTTSTS                      (*(vuint32*)(0xFC0B015C))
#define MCF_USB0_BURSTSIZE                       (*(vuint32*)(0xFC0B0160))
#define MCF_USB0_TXFILLTUNING                    (*(vuint32*)(0xFC0B0164))
#define MCF_USB0_TXTTFILLTUNING                  (*(vuint32*)(0xFC0B0168))
#define MCF_USB_ULPI0_VIEWPORT                   (*(vuint32*)(0xFC0B0170))
#define MCF_USB0_CONFIGFLAG                      (*(vuint32*)(0xFC0B0180))
#define MCF_USB0_PORTSC                          (*(vuint32*)(0xFC0B0184))
#define MCF_USB0_OTGSC                           (*(vuint32*)(0xFC0B01A4))
#define MCF_USB0_USBMODE                         (*(vuint32*)(0xFC0B01A8))
#define MCF_USB0_EPSETUPSR                       (*(vuint32*)(0xFC0B01AC))
#define MCF_USB0_EPPRIME                         (*(vuint32*)(0xFC0B01B0))
#define MCF_USB0_EPFLUSH                         (*(vuint32*)(0xFC0B01B4))
#define MCF_USB0_EPSR                            (*(vuint32*)(0xFC0B01B8))
#define MCF_USB0_EPCOMPLETE                      (*(vuint32*)(0xFC0B01BC))
#define MCF_USB0_EPCR0                           (*(vuint32*)(0xFC0B01C0))
#define MCF_USB0_EPCR1                           (*(vuint32*)(0xFC0B01C4))
#define MCF_USB0_EPCR2                           (*(vuint32*)(0xFC0B01C8))
#define MCF_USB0_EPCR3                           (*(vuint32*)(0xFC0B01CC))
#define MCF_USB0_EPCR(x)                         (*(vuint32*)(0xFC0B01C4+((x-1)*0x004)))
#define MCF_USB1_ID                              (*(vuint32*)(0xFC0B4000))
#define MCF_USB1_HWGENERAL                       (*(vuint32*)(0xFC0B4004))
#define MCF_USB1_HWHOST                          (*(vuint32*)(0xFC0B4008))
#define MCF_USB1_HWDEVICE                        (*(vuint32*)(0xFC0B400C))
#define MCF_USB1_HWTXBUF                         (*(vuint32*)(0xFC0B4010))
#define MCF_USB1_HWRXBUF                         (*(vuint32*)(0xFC0B4014))
#define MCF_USB1_CAPLENGTH                       (*(vuint8 *)(0xFC0B4100))
#define MCF_USB1_HCIVERSION                      (*(vuint16*)(0xFC0B4102))
#define MCF_USB1_HCSPARAMS                       (*(vuint32*)(0xFC0B4104))
#define MCF_USB1_HCCPARAMS                       (*(vuint32*)(0xFC0B4108))
#define MCF_USB1_DCIVERSION                      (*(vuint16*)(0xFC0B4120))
#define MCF_USB1_DCCPARAMS                       (*(vuint32*)(0xFC0B4124))
#define MCF_USB1_USBCMD                          (*(vuint32*)(0xFC0B4140))
#define MCF_USB1_USBSTS                          (*(vuint32*)(0xFC0B4144))
#define MCF_USB1_USBINTR                         (*(vuint32*)(0xFC0B4148))
#define MCF_USB1_FRINDEX                         (*(vuint32*)(0xFC0B414C))
#define MCF_USB1_PERIODICLISTBASE                (*(vuint32*)(0xFC0B4154))
#define MCF_USB1_DEVICEADDR                      (*(vuint32*)(0xFC0B4154))
#define MCF_USB1_ASYNCLISTADDR                   (*(vuint32*)(0xFC0B4158))
#define MCF_USB1_EPLISTADDR                      (*(vuint32*)(0xFC0B4158))
#define MCF_USB1_ASYNCTTSTS                      (*(vuint32*)(0xFC0B415C))
#define MCF_USB1_BURSTSIZE                       (*(vuint32*)(0xFC0B4160))
#define MCF_USB1_TXFILLTUNING                    (*(vuint32*)(0xFC0B4164))
#define MCF_USB1_TXTTFILLTUNING                  (*(vuint32*)(0xFC0B4168))
#define MCF_USB_ULPI1_VIEWPORT                   (*(vuint32*)(0xFC0B4170))
#define MCF_USB1_CONFIGFLAG                      (*(vuint32*)(0xFC0B4180))
#define MCF_USB1_PORTSC                          (*(vuint32*)(0xFC0B4184))
#define MCF_USB1_OTGSC                           (*(vuint32*)(0xFC0B41A4))
#define MCF_USB1_USBMODE                         (*(vuint32*)(0xFC0B41A8))
#define MCF_USB1_EPSETUPSR                       (*(vuint32*)(0xFC0B41AC))
#define MCF_USB1_EPPRIME                         (*(vuint32*)(0xFC0B41B0))
#define MCF_USB1_EPFLUSH                         (*(vuint32*)(0xFC0B41B4))
#define MCF_USB1_EPSR                            (*(vuint32*)(0xFC0B41B8))
#define MCF_USB1_EPCOMPLETE                      (*(vuint32*)(0xFC0B41BC))
#define MCF_USB1_EPCR0                           (*(vuint32*)(0xFC0B41C0))
#define MCF_USB1_EPCR1                           (*(vuint32*)(0xFC0B41C4))
#define MCF_USB1_EPCR2                           (*(vuint32*)(0xFC0B41C8))
#define MCF_USB1_EPCR3                           (*(vuint32*)(0xFC0B41CC))
#define MCF_USB1_EPCR(x)                         (*(vuint32*)(0xFC0B41C4+((x-1)*0x004)))
#define MCF_USB_ID(x)                            (*(vuint32*)(0xFC0B0000+((x)*0x4000)))
#define MCF_USB_HWGENERAL(x)                     (*(vuint32*)(0xFC0B0004+((x)*0x4000)))
#define MCF_USB_HWHOST(x)                        (*(vuint32*)(0xFC0B0008+((x)*0x4000)))
#define MCF_USB_HWDEVICE(x)                      (*(vuint32*)(0xFC0B000C+((x)*0x4000)))
#define MCF_USB_HWTXBUF(x)                       (*(vuint32*)(0xFC0B0010+((x)*0x4000)))
#define MCF_USB_HWRXBUF(x)                       (*(vuint32*)(0xFC0B0014+((x)*0x4000)))
#define MCF_USB_CAPLENGTH(x)                     (*(vuint8 *)(0xFC0B0100+((x)*0x4000)))
#define MCF_USB_HCIVERSION(x)                    (*(vuint16*)(0xFC0B0102+((x)*0x4000)))
#define MCF_USB_HCSPARAMS(x)                     (*(vuint32*)(0xFC0B0104+((x)*0x4000)))
#define MCF_USB_HCCPARAMS(x)                     (*(vuint32*)(0xFC0B0108+((x)*0x4000)))
#define MCF_USB_DCIVERSION(x)                    (*(vuint16*)(0xFC0B0120+((x)*0x4000)))
#define MCF_USB_DCCPARAMS(x)                     (*(vuint32*)(0xFC0B0124+((x)*0x4000)))
#define MCF_USB_USBCMD(x)                        (*(vuint32*)(0xFC0B0140+((x)*0x4000)))
#define MCF_USB_USBSTS(x)                        (*(vuint32*)(0xFC0B0144+((x)*0x4000)))
#define MCF_USB_USBINTR(x)                       (*(vuint32*)(0xFC0B0148+((x)*0x4000)))
#define MCF_USB_FRINDEX(x)                       (*(vuint32*)(0xFC0B014C+((x)*0x4000)))
#define MCF_USB_PERIODICLISTBASE(x)              (*(vuint32*)(0xFC0B0154+((x)*0x4000)))
#define MCF_USB_DEVICEADDR(x)                    (*(vuint32*)(0xFC0B0154+((x)*0x4000)))
#define MCF_USB_ASYNCLISTADDR(x)                 (*(vuint32*)(0xFC0B0158+((x)*0x4000)))
#define MCF_USB_EPLISTADDR(x)                    (*(vuint32*)(0xFC0B0158+((x)*0x4000)))
#define MCF_USB_ASYNCTTSTS(x)                    (*(vuint32*)(0xFC0B015C+((x)*0x4000)))
#define MCF_USB_BURSTSIZE(x)                     (*(vuint32*)(0xFC0B0160+((x)*0x4000)))
#define MCF_USB_TXFILLTUNING(x)                  (*(vuint32*)(0xFC0B0164+((x)*0x4000)))
#define MCF_USB_TXTTFILLTUNING(x)                (*(vuint32*)(0xFC0B0168+((x)*0x4000)))
#define MCF_USB_ULPI_VIEWPORT(x)                 (*(vuint32*)(0xFC0B0170+((x)*0x4000)))
#define MCF_USB_CONFIGFLAG(x)                    (*(vuint32*)(0xFC0B0180+((x)*0x4000)))
#define MCF_USB_PORTSC(x)                        (*(vuint32*)(0xFC0B0184+((x)*0x4000)))
#define MCF_USB_OTGSC(x)                         (*(vuint32*)(0xFC0B01A4+((x)*0x4000)))
#define MCF_USB_USBMODE(x)                       (*(vuint32*)(0xFC0B01A8+((x)*0x4000)))
#define MCF_USB_EPSETUPSR(x)                     (*(vuint32*)(0xFC0B01AC+((x)*0x4000)))
#define MCF_USB_EPPRIME(x)                       (*(vuint32*)(0xFC0B01B0+((x)*0x4000)))
#define MCF_USB_EPFLUSH(x)                       (*(vuint32*)(0xFC0B01B4+((x)*0x4000)))
#define MCF_USB_EPSR(x)                          (*(vuint32*)(0xFC0B01B8+((x)*0x4000)))
#define MCF_USB_EPCOMPLETE(x)                    (*(vuint32*)(0xFC0B01BC+((x)*0x4000)))
#define MCF_USB_EPCR0(x)                         (*(vuint32*)(0xFC0B01C0+((x)*0x4000)))
#define MCF_USB_EPCR1(x)                         (*(vuint32*)(0xFC0B01C4+((x)*0x4000)))
#define MCF_USB_EPCR2(x)                         (*(vuint32*)(0xFC0B01C8+((x)*0x4000)))
#define MCF_USB_EPCR3(x)                         (*(vuint32*)(0xFC0B01CC+((x)*0x4000)))

/* Bit definitions and macros for MCF_USB_ID */
#define MCF_USB_ID_RESERVED                      (0x0000C000)
#define MCF_USB_ID_ID(x)                         (((x)&0x0000003F)<<0|0x0000C000)
#define MCF_USB_ID_NID(x)                        (((x)&0x0000003F)<<8|0x0000C000)
#define MCF_USB_ID_REVISION(x)                   (((x)&0x000000FF)<<16|0x0000C000)

/* Bit definitions and macros for MCF_USB_HWGENERAL */
#define MCF_USB_HWGENERAL_RT                     (0x00000001)
#define MCF_USB_HWGENERAL_CLKC(x)                (((x)&0x00000003)<<1)
#define MCF_USB_HWGENERAL_BWT                    (0x00000008)
#define MCF_USB_HWGENERAL_PHYW(x)                (((x)&0x00000003)<<4)
#define MCF_USB_HWGENERAL_PHYM(x)                (((x)&0x00000007)<<6)
#define MCF_USB_HWGENERAL_SM(x)                  (((x)&0x00000003)<<9)

/* Bit definitions and macros for MCF_USB_HWHOST */
#define MCF_USB_HWHOST_HC                        (0x00000001)
#define MCF_USB_HWHOST_NPORT(x)                  (((x)&0x00000007)<<1)
#define MCF_USB_HWHOST_TTASY(x)                  (((x)&0x000000FF)<<16)
#define MCF_USB_HWHOST_TTPER(x)                  (((x)&0x000000FF)<<24)

/* Bit definitions and macros for MCF_USB_HWDEVICE */
#define MCF_USB_HWDEVICE_DC                      (0x00000001)
#define MCF_USB_HWDEVICE_DEVEP(x)                (((x)&0x0000001F)<<1)

/* Bit definitions and macros for MCF_USB_HWTXBUF */
#define MCF_USB_HWTXBUF_TXBURST(x)               (((x)&0x000000FF)<<0)
#define MCF_USB_HWTXBUF_TXADD(x)                 (((x)&0x000000FF)<<8)
#define MCF_USB_HWTXBUF_TXCHANADD(x)             (((x)&0x000000FF)<<16)
#define MCF_USB_HWTXBUF_TXLC                     (0x80000000)

/* Bit definitions and macros for MCF_USB_HWRXBUF */
#define MCF_USB_HWRXBUF_RXBURST(x)               (((x)&0x000000FF)<<0)
#define MCF_USB_HWRXBUF_RXADD(x)                 (((x)&0x000000FF)<<8)

/* Bit definitions and macros for MCF_USB_CAPLENGTH */
#define MCF_USB_CAPLENGTH_CAPLENGTH(x)           (((x)&0xFF)<<0)

/* Bit definitions and macros for MCF_USB_HCIVERSION */
#define MCF_USB_HCIVERSION_HCIVERSION(x)         (((x)&0xFFFF)<<0)

/* Bit definitions and macros for MCF_USB_HCSPARAMS */
#define MCF_USB_HCSPARAMS_N_PORTS(x)             (((x)&0x0000000F)<<0)
#define MCF_USB_HCSPARAMS_PPC                    (0x00000010)
#define MCF_USB_HCSPARAMS_N_PCC(x)               (((x)&0x0000000F)<<8)
#define MCF_USB_HCSPARAMS_N_CC(x)                (((x)&0x0000000F)<<12)
#define MCF_USB_HCSPARAMS_PI                     (0x00010000)
#define MCF_USB_HCSPARAMS_N_PTT(x)               (((x)&0x0000000F)<<20)
#define MCF_USB_HCSPARAMS_N_TT(x)                (((x)&0x0000000F)<<24)

/* Bit definitions and macros for MCF_USB_HCCPARAMS */
#define MCF_USB_HCCPARAMS_ADC                    (0x00000001)
#define MCF_USB_HCCPARAMS_PFL                    (0x00000002)
#define MCF_USB_HCCPARAMS_ASP                    (0x00000004)
#define MCF_USB_HCCPARAMS_IST(x)                 (((x)&0x0000000F)<<4)
#define MCF_USB_HCCPARAMS_EECP(x)                (((x)&0x000000FF)<<8)

/* Bit definitions and macros for MCF_USB_DCIVERSION */
#define MCF_USB_DCIVERSION_DCIVERSION(x)         (((x)&0xFFFF)<<0)

/* Bit definitions and macros for MCF_USB_DCCPARAMS */
#define MCF_USB_DCCPARAMS_DEN(x)                 (((x)&0x0000001F)<<0)
#define MCF_USB_DCCPARAMS_DC                     (0x00000080)
#define MCF_USB_DCCPARAMS_HC                     (0x00000100)

/* Bit definitions and macros for MCF_USB_USBCMD */
#define MCF_USB_USBCMD_RS                        (0x00000001)
#define MCF_USB_USBCMD_RST                       (0x00000002)
#define MCF_USB_USBCMD_FS0                       (0x00000004)
#define MCF_USB_USBCMD_FS1                       (0x00000008)
#define MCF_USB_USBCMD_PSE                       (0x00000010)
#define MCF_USB_USBCMD_ASE                       (0x00000020)
#define MCF_USB_USBCMD_IAA                       (0x00000040)
#define MCF_USB_USBCMD_LR                        (0x00000080)
#define MCF_USB_USBCMD_ASP(x)                    (((x)&0x00000003)<<8)
#define MCF_USB_USBCMD_ASPE                      (0x00000800)
#define MCF_USB_USBCMD_SUTW                      (0x00002000)
#define MCF_USB_USBCMD_ATDTW                     (0x00004000)
#define MCF_USB_USBCMD_FS2                       (0x00008000)
#define MCF_USB_USBCMD_ITC(x)                    (((x)&0x000000FF)<<16)
#define MCF_USB_USBCMD_ITC_IMM                   (0x00000000)
#define MCF_USB_USBCMD_ITC_1                     (0x00010000)
#define MCF_USB_USBCMD_ITC_2                     (0x00020000)
#define MCF_USB_USBCMD_ITC_4                     (0x00040000)
#define MCF_USB_USBCMD_ITC_8                     (0x00080000)
#define MCF_USB_USBCMD_ITC_16                    (0x00100000)
#define MCF_USB_USBCMD_ITC_32                    (0x00200000)
#define MCF_USB_USBCMD_ITC_40                    (0x00400000)
#define MCF_USB_USBCMD_FS_1024                   (0x00000000)
#define MCF_USB_USBCMD_FS_512                    (0x00000004)
#define MCF_USB_USBCMD_FS_256                    (0x00000008)
#define MCF_USB_USBCMD_FS_128                    (0x0000000C)
#define MCF_USB_USBCMD_FS_64                     (0x00008000)
#define MCF_USB_USBCMD_FS_32                     (0x00008004)
#define MCF_USB_USBCMD_FS_16                     (0x00008008)
#define MCF_USB_USBCMD_FS_8                      (0x0000800C)

/* Bit definitions and macros for MCF_USB_USBSTS */
#define MCF_USB_USBSTS_UI                        (0x00000001)
#define MCF_USB_USBSTS_UEI                       (0x00000002)
#define MCF_USB_USBSTS_PCI                       (0x00000004)
#define MCF_USB_USBSTS_FRI                       (0x00000008)
#define MCF_USB_USBSTS_SEI                       (0x00000010)
#define MCF_USB_USBSTS_AAI                       (0x00000020)
#define MCF_USB_USBSTS_URI                       (0x00000040)
#define MCF_USB_USBSTS_SRI                       (0x00000080)
#define MCF_USB_USBSTS_SLI                       (0x00000100)
#define MCF_USB_USBSTS_HCH                       (0x00001000)
#define MCF_USB_USBSTS_RCL                       (0x00002000)
#define MCF_USB_USBSTS_PS                        (0x00004000)
#define MCF_USB_USBSTS_AS                        (0x00008000)

/* Bit definitions and macros for MCF_USB_USBINTR */
#define MCF_USB_USBINTR_UE                       (0x00000001)
#define MCF_USB_USBINTR_UEE                      (0x00000002)
#define MCF_USB_USBINTR_PCE                      (0x00000004)
#define MCF_USB_USBINTR_FRE                      (0x00000008)
#define MCF_USB_USBINTR_SEE                      (0x00000010)
#define MCF_USB_USBINTR_AAE                      (0x00000020)
#define MCF_USB_USBINTR_URE                      (0x00000040)
#define MCF_USB_USBINTR_SRE                      (0x00000080)
#define MCF_USB_USBINTR_SLE                      (0x00000100)

/* Bit definitions and macros for MCF_USB_FRINDEX */
#define MCF_USB_FRINDEX_FRINDEX(x)               (((x)&0x00003FFF)<<0)

/* Bit definitions and macros for MCF_USB_PERIODICLISTBASE */
#define MCF_USB_PERIODICLISTBASE_PERBASE(x)      (((x)&0x000FFFFF)<<12)

/* Bit definitions and macros for MCF_USB_DEVICEADDR */
#define MCF_USB_DEVICEADDR_USBADR(x)             (((x)&0x0000007F)<<25)

/* Bit definitions and macros for MCF_USB_ASYNCLISTADDR */
#define MCF_USB_ASYNCLISTADDR_ASYBASE(x)         (((x)&0x07FFFFFF)<<5)

/* Bit definitions and macros for MCF_USB_EPLISTADDR */
#define MCF_USB_EPLISTADDR_EPBASE(x)             (((x)&0x001FFFFF)<<11)

/* Bit definitions and macros for MCF_USB_ASYNCTTSTS */
#define MCF_USB_ASYNCTTSTS_TTAS                  (0x00000001)
#define MCF_USB_ASYNCTTSTS_TTAC                  (0x00000002)

/* Bit definitions and macros for MCF_USB_BURSTSIZE */
#define MCF_USB_BURSTSIZE_RXPBURST(x)            (((x)&0x000000FF)<<0)
#define MCF_USB_BURSTSIZE_TXPBURST(x)            (((x)&0x000000FF)<<8)

/* Bit definitions and macros for MCF_USB_TXFILLTUNING */
#define MCF_USB_TXFILLTUNING_TXSCHOH(x)          (((x)&0x000000FF)<<0)
#define MCF_USB_TXFILLTUNING_TXSCHHEALTH(x)      (((x)&0x0000001F)<<8)
#define MCF_USB_TXFILLTUNING_TXFIFOTHRES(x)      (((x)&0x0000003F)<<16)

/* Bit definitions and macros for MCF_USB_TXTTFILLTUNING */
#define MCF_USB_TXTTFILLTUNING_TXTTSCHOH(x)      (((x)&0x0000001F)<<0)
#define MCF_USB_TXTTFILLTUNING_TXTTSCHHEALTH(x)  (((x)&0x0000001F)<<8)

/* Bit definitions and macros for MCF_USB_CONFIGFLAG */
#define MCF_USB_CONFIGFLAG_CONFIGFLAG(x)         (((x)&0xFFFFFFFF)<<0)

/* Bit definitions and macros for MCF_USB_PORTSC */
#define MCF_USB_PORTSC_CCS                       (0x00000001)
#define MCF_USB_PORTSC_CSC                       (0x00000002)
#define MCF_USB_PORTSC_PE                        (0x00000004)
#define MCF_USB_PORTSC_PEC                       (0x00000008)
#define MCF_USB_PORTSC_OCA                       (0x00000010)
#define MCF_USB_PORTSC_OCC                       (0x00000020)
#define MCF_USB_PORTSC_FPR                       (0x00000040)
#define MCF_USB_PORTSC_SUSP                      (0x00000080)
#define MCF_USB_PORTSC_PR                        (0x00000100)
#define MCF_USB_PORTSC_LS(x)                     (((x)&0x00000003)<<10)
#define MCF_USB_PORTSC_PP                        (0x00001000)
#define MCF_USB_PORTSC_PO                        (0x00002000)
#define MCF_USB_PORTSC_PIC(x)                    (((x)&0x00000003)<<14)
#define MCF_USB_PORTSC_PTC(x)                    (((x)&0x0000000F)<<16)
#define MCF_USB_PORTSC_WLCN                      (0x00100000)
#define MCF_USB_PORTSC_WKDS                      (0x00200000)
#define MCF_USB_PORTSC_WKOC                      (0x00400000)
#define MCF_USB_PORTSC_PHCD                      (0x00800000)
#define MCF_USB_PORTSC_PFSC                      (0x01000000)
#define MCF_USB_PORTSC_PSPD(x)                   (((x)&0x00000003)<<26)
#define MCF_USB_PORTSC_PTS(x)                    (((x)&0x00000003)<<30)
#define MCF_USB_PORTSC_PTS_ULPI                  (0x80000000)
#define MCF_USB_PORTSC_PTS_FS_LS                 (0xC0000000)
#define MCF_USB_PORTSC_PSPD_FULL                 (0x00000000)
#define MCF_USB_PORTSC_PSPD_LOW                  (0x04000000)
#define MCF_USB_PORTSC_PSPD_HIGH                 (0x08000000)
#define MCF_USB_PORTSC_PTC_DISBALE               (0x00000000)
#define MCF_USB_PORTSC_PTC_JSTATE                (0x00010000)
#define MCF_USB_PORTSC_PTC_KSTATE                (0x00020000)
#define MCF_USB_PORTSC_PTC_SEQ_NAK               (0x00030000)
#define MCF_USB_PORTSC_PTC_PACKET                (0x00040000)
#define MCF_USB_PORTSC_PTC_FORCE_ENABLE          (0x00050000)
#define MCF_USB_PORTSC_PIC_OFF                   (0x00000000)
#define MCF_USB_PORTSC_PIC_AMBER                 (0x00004000)
#define MCF_USB_PORTSC_PIC_GREEN                 (0x00008000)
#define MCF_USB_PORTSC_LS_SE0                    (0x00000000)
#define MCF_USB_PORTSC_LS_JSTATE                 (0x00000400)
#define MCF_USB_PORTSC_LS_KSTATE                 (0x00000800)

/* Bit definitions and macros for MCF_USB_OTGSC */
#define MCF_USB_OTGSC_VD                         (0x00000001)
#define MCF_USB_OTGSC_VC                         (0x00000002)
#define MCF_USB_OTGSC_OT                         (0x00000008)
#define MCF_USB_OTGSC_DP                         (0x00000010)
#define MCF_USB_OTGSC_ID                         (0x00000100)
#define MCF_USB_OTGSC_AVV                        (0x00000200)
#define MCF_USB_OTGSC_ASV                        (0x00000400)
#define MCF_USB_OTGSC_BSV                        (0x00000800)
#define MCF_USB_OTGSC_BSE                        (0x00001000)
#define MCF_USB_OTGSC_1MST                       (0x00002000)
#define MCF_USB_OTGSC_DPS                        (0x00004000)
#define MCF_USB_OTGSC_IDIS                       (0x00010000)
#define MCF_USB_OTGSC_AVVIS                      (0x00020000)
#define MCF_USB_OTGSC_ASVIS                      (0x00040000)
#define MCF_USB_OTGSC_BSVIS                      (0x00080000)
#define MCF_USB_OTGSC_BSEIS                      (0x00100000)
#define MCF_USB_OTGSC_1MSS                       (0x00200000)
#define MCF_USB_OTGSC_DPIS                       (0x00400000)
#define MCF_USB_OTGSC_IDIE                       (0x01000000)
#define MCF_USB_OTGSC_AVVIE                      (0x02000000)
#define MCF_USB_OTGSC_ASVIE                      (0x04000000)
#define MCF_USB_OTGSC_BSVIE                      (0x08000000)
#define MCF_USB_OTGSC_BSEIE                      (0x10000000)
#define MCF_USB_OTGSC_1MSE                       (0x20000000)
#define MCF_USB_OTGSC_DPIE                       (0x40000000)
#define MCF_USB_OTGSC_CLEAR                      (0x007F0000)
#define MCF_USB_OTGSC_ENABLE_ALL                 (0x7F000000)

/* Bit definitions and macros for MCF_USB_USBMODE */
#define MCF_USB_USBMODE_CM(x)                    (((x)&0x00000003)<<0)
#define MCF_USB_USBMODE_ES                       (0x00000004)
#define MCF_USB_USBMODE_SLOM                     (0x00000008)
#define MCF_USB_USBMODE_SDIS                     (0x00000010)
#define MCF_USB_USBMODE_CM_IDLE                  (0x00000000)
#define MCF_USB_USBMODE_CM_DEVICE                (0x00000002)
#define MCF_USB_USBMODE_CM_HOST                  (0x00000003)

/* Bit definitions and macros for MCF_USB_EPSETUPSR */
#define MCF_USB_EPSETUPSR_EPSETUPSTAT(x)         (((x)&0x0000003F)<<0)

/* Bit definitions and macros for MCF_USB_EPPRIME */
#define MCF_USB_EPPRIME_PERB(x)                  (((x)&0x0000003F)<<0)
#define MCF_USB_EPPRIME_PETB(x)                  (((x)&0x0000003F)<<16)
#define MCF_USB_EPPRIME_PETB0                    (0x00010000)
#define MCF_USB_EPPRIME_PETB1                    (0x00020000)
#define MCF_USB_EPPRIME_PETB2                    (0x00040000)
#define MCF_USB_EPPRIME_PETB3                    (0x00080000)
#define MCF_USB_EPPRIME_PETB4                    (0x00100000)
#define MCF_USB_EPPRIME_PETB5                    (0x00200000)
#define MCF_USB_EPPRIME_PERB0                    (0x00000001)
#define MCF_USB_EPPRIME_PERB1                    (0x00000002)
#define MCF_USB_EPPRIME_PERB2                    (0x00000004)
#define MCF_USB_EPPRIME_PERB3                    (0x00000008)
#define MCF_USB_EPPRIME_PERB4                    (0x00000010)
#define MCF_USB_EPPRIME_PERB5                    (0x00000020)

/* Bit definitions and macros for MCF_USB_EPFLUSH */
#define MCF_USB_EPFLUSH_FERB(x)                  (((x)&0x0000003F)<<0)
#define MCF_USB_EPFLUSH_FETB(x)                  (((x)&0x0000003F)<<16)
#define MCF_USB_EPFLUSH_FETB0                    (0x00010000)
#define MCF_USB_EPFLUSH_FETB1                    (0x00020000)
#define MCF_USB_EPFLUSH_FETB2                    (0x00040000)
#define MCF_USB_EPFLUSH_FETB3                    (0x00080000)
#define MCF_USB_EPFLUSH_FETB4                    (0x00100000)
#define MCF_USB_EPFLUSH_FETB5                    (0x00200000)
#define MCF_USB_EPFLUSH_FERB0                    (0x00000001)
#define MCF_USB_EPFLUSH_FERB1                    (0x00000002)
#define MCF_USB_EPFLUSH_FERB2                    (0x00000004)
#define MCF_USB_EPFLUSH_FERB3                    (0x00000008)
#define MCF_USB_EPFLUSH_FERB4                    (0x00000010)
#define MCF_USB_EPFLUSH_FERB5                    (0x00000020)

/* Bit definitions and macros for MCF_USB_EPSR */
#define MCF_USB_EPSR_ERBR(x)                     (((x)&0x0000003F)<<0)
#define MCF_USB_EPSR_ETBR(x)                     (((x)&0x0000003F)<<16)
#define MCF_USB_EPSR_ETBR0                       (0x00010000)
#define MCF_USB_EPSR_ETBR1                       (0x00020000)
#define MCF_USB_EPSR_ETBR2                       (0x00040000)
#define MCF_USB_EPSR_ETBR3                       (0x00080000)
#define MCF_USB_EPSR_ETBR4                       (0x00100000)
#define MCF_USB_EPSR_ETBR5                       (0x00200000)
#define MCF_USB_EPSR_ERBR0                       (0x00000001)
#define MCF_USB_EPSR_ERBR1                       (0x00000002)
#define MCF_USB_EPSR_ERBR2                       (0x00000004)
#define MCF_USB_EPSR_ERBR3                       (0x00000008)
#define MCF_USB_EPSR_ERBR4                       (0x00000010)
#define MCF_USB_EPSR_ERBR5                       (0x00000020)

/* Bit definitions and macros for MCF_USB_EPCOMPLETE */
#define MCF_USB_EPCOMPLETE_ERCE(x)               (((x)&0x0000003F)<<0)
#define MCF_USB_EPCOMPLETE_ETCE(x)               (((x)&0x0000003F)<<16)
#define MCF_USB_EPCOMPLETE_ETCE0                 (0x00010000)
#define MCF_USB_EPCOMPLETE_ETCE1                 (0x00020000)
#define MCF_USB_EPCOMPLETE_ETCE2                 (0x00040000)
#define MCF_USB_EPCOMPLETE_ETCE3                 (0x00080000)
#define MCF_USB_EPCOMPLETE_ETCE4                 (0x00100000)
#define MCF_USB_EPCOMPLETE_ETCE5                 (0x00200000)
#define MCF_USB_EPCOMPLETE_ERCE0                 (0x00000001)
#define MCF_USB_EPCOMPLETE_ERCE1                 (0x00000002)
#define MCF_USB_EPCOMPLETE_ERCE2                 (0x00000004)
#define MCF_USB_EPCOMPLETE_ERCE3                 (0x00000008)
#define MCF_USB_EPCOMPLETE_ERCE4                 (0x00000010)
#define MCF_USB_EPCOMPLETE_ERCE5                 (0x00000020)

/* Bit definitions and macros for MCF_USB_EPCR0 */
#define MCF_USB_EPCR0_RXS                        (0x00000001)
#define MCF_USB_EPCR0_RXT(x)                     (((x)&0x00000003)<<2)
#define MCF_USB_EPCR0_RXE                        (0x00000080)
#define MCF_USB_EPCR0_TXS                        (0x00010000)
#define MCF_USB_EPCR0_TXT(x)                     (((x)&0x00000003)<<18)
#define MCF_USB_EPCR0_TXE                        (0x00800000)

/* Bit definitions and macros for MCF_USB_EPCR */
#define MCF_USB_EPCR_RXS                         (0x00000001)
#define MCF_USB_EPCR_RXD                         (0x00000002)
#define MCF_USB_EPCR_RXT(x)                      (((x)&0x00000003)<<2)
#define MCF_USB_EPCR_RXI                         (0x00000020)
#define MCF_USB_EPCR_RXR                         (0x00000040)
#define MCF_USB_EPCR_RXE                         (0x00000080)
#define MCF_USB_EPCR_TXS                         (0x00010000)
#define MCF_USB_EPCR_TXD                         (0x00020000)
#define MCF_USB_EPCR_TXT(x)                      (((x)&0x00000003)<<18)
#define MCF_USB_EPCR_TXI                         (0x00200000)
#define MCF_USB_EPCR_TXR                         (0x00400000)
#define MCF_USB_EPCR_TXE                         (0x00800000)
#define MCF_USB_EPCR_TXT_CONTROL                 (0x00000000)
#define MCF_USB_EPCR_TXT_ISO                     (0x00040000)
#define MCF_USB_EPCR_TXT_BULK                    (0x00080000)
#define MCF_USB_EPCR_TXT_INT                     (0x000C0000)
#define MCF_USB_EPCR_RXT_CONTROL                 (0x00000000)
#define MCF_USB_EPCR_RXT_ISO                     (0x00000004)
#define MCF_USB_EPCR_RXT_BULK                    (0x00000008)
#define MCF_USB_EPCR_RXT_INT                     (0x0000000C)

/*********************************************************************
*
* SDRAM Controller (SDRAMC)
*
*********************************************************************/

/* Register read/write macros */
#define MCF_SDRAMC_SDMR                (*(vuint32*)(0xFC0B8000))
#define MCF_SDRAMC_SDCR                (*(vuint32*)(0xFC0B8004))
#define MCF_SDRAMC_SDCFG1              (*(vuint32*)(0xFC0B8008))
#define MCF_SDRAMC_SDCFG2              (*(vuint32*)(0xFC0B800C))
#define MCF_SDRAMC_SDDS                (*(vuint32*)(0xFC0B8100))
#define MCF_SDRAMC_SDCS0               (*(vuint32*)(0xFC0B8110))
#define MCF_SDRAMC_SDCS1               (*(vuint32*)(0xFC0B8114))
#define MCF_SDRAMC_SDCS2               (*(vuint32*)(0xFC0B8118))
#define MCF_SDRAMC_SDCS3               (*(vuint32*)(0xFC0B811C))
#define MCF_SDRAMC_SDCS(x)             (*(vuint32*)(0xFC0B8110+((x)*0x004)))

/* Bit definitions and macros for MCF_SDRAMC_SDMR */
#define MCF_SDRAMC_SDMR_CMD            (0x00010000)
#define MCF_SDRAMC_SDMR_AD(x)          (((x)&0x00000FFF)<<18)
#define MCF_SDRAMC_SDMR_BNKAD(x)       (((x)&0x00000003)<<30)
#define MCF_SDRAMC_SDMR_BNKAD_LMR      (0x00000000)
#define MCF_SDRAMC_SDMR_BNKAD_LEMR     (0x40000000)

/* Bit definitions and macros for MCF_SDRAMC_SDCR */
#define MCF_SDRAMC_SDCR_IPALL          (0x00000002)
#define MCF_SDRAMC_SDCR_IREF           (0x00000004)
#define MCF_SDRAMC_SDCR_DQS_OE(x)      (((x)&0x0000000F)<<8)
#define MCF_SDRAMC_SDCR_PS(x)          (((x)&0x00000003)<<12)
#define MCF_SDRAMC_SDCR_RCNT(x)        (((x)&0x0000003F)<<16)
#define MCF_SDRAMC_SDCR_MUX(x)         (((x)&0x00000003)<<24)
#define MCF_SDRAMC_SDCR_REF            (0x10000000)
#define MCF_SDRAMC_SDCR_DDR            (0x20000000)
#define MCF_SDRAMC_SDCR_CKE            (0x40000000)
#define MCF_SDRAMC_SDCR_MODE_EN        (0x80000000)
#define MCF_SDRAMC_SDCR_PS_16          (0x00002000)
#define MCF_SDRAMC_SDCR_PS_32          (0x00000000)

/* Bit definitions and macros for MCF_SDRAMC_SDCFG1 */
#define MCF_SDRAMC_SDCFG1_WTLAT(x)     (((x)&0x00000007)<<4)
#define MCF_SDRAMC_SDCFG1_REF2ACT(x)   (((x)&0x0000000F)<<8)
#define MCF_SDRAMC_SDCFG1_PRE2ACT(x)   (((x)&0x00000007)<<12)
#define MCF_SDRAMC_SDCFG1_ACT2RW(x)    (((x)&0x00000007)<<16)
#define MCF_SDRAMC_SDCFG1_RDLAT(x)     (((x)&0x0000000F)<<20)
#define MCF_SDRAMC_SDCFG1_SWT2RD(x)    (((x)&0x00000007)<<24)
#define MCF_SDRAMC_SDCFG1_SRD2RW(x)    (((x)&0x0000000F)<<28)

/* Bit definitions and macros for MCF_SDRAMC_SDCFG2 */
#define MCF_SDRAMC_SDCFG2_BL(x)        (((x)&0x0000000F)<<16)
#define MCF_SDRAMC_SDCFG2_BRD2WT(x)    (((x)&0x0000000F)<<20)
#define MCF_SDRAMC_SDCFG2_BWT2RW(x)    (((x)&0x0000000F)<<24)
#define MCF_SDRAMC_SDCFG2_BRD2PRE(x)   (((x)&0x0000000F)<<28)

/* Bit definitions and macros for MCF_SDRAMC_SDDS */
#define MCF_SDRAMC_SDDS_SB_D(x)        (((x)&0x00000003)<<0)
#define MCF_SDRAMC_SDDS_SB_S(x)        (((x)&0x00000003)<<2)
#define MCF_SDRAMC_SDDS_SB_A(x)        (((x)&0x00000003)<<4)
#define MCF_SDRAMC_SDDS_SB_C(x)        (((x)&0x00000003)<<6)
#define MCF_SDRAMC_SDDS_SB_E(x)        (((x)&0x00000003)<<8)

/* Bit definitions and macros for MCF_SDRAMC_SDCS */
#define MCF_SDRAMC_SDCS_CSSZ(x)        (((x)&0x0000001F)<<0)
#define MCF_SDRAMC_SDCS_BASE(x)        (((x)&0x00000FFF)<<20)
#define MCF_SDRAMC_SDCS_BA(x)          ((x)&0xFFF00000)
#define MCF_SDRAMC_SDCS_CSSZ_DIABLE    (0x00000000)
#define MCF_SDRAMC_SDCS_CSSZ_1MBYTE    (0x00000013)
#define MCF_SDRAMC_SDCS_CSSZ_2MBYTE    (0x00000014)
#define MCF_SDRAMC_SDCS_CSSZ_4MBYTE    (0x00000015)
#define MCF_SDRAMC_SDCS_CSSZ_8MBYTE    (0x00000016)
#define MCF_SDRAMC_SDCS_CSSZ_16MBYTE   (0x00000017)
#define MCF_SDRAMC_SDCS_CSSZ_32MBYTE   (0x00000018)
#define MCF_SDRAMC_SDCS_CSSZ_64MBYTE   (0x00000019)
#define MCF_SDRAMC_SDCS_CSSZ_128MBYTE  (0x0000001A)
#define MCF_SDRAMC_SDCS_CSSZ_256MBYTE  (0x0000001B)
#define MCF_SDRAMC_SDCS_CSSZ_512MBYTE  (0x0000001C)
#define MCF_SDRAMC_SDCS_CSSZ_1GBYTE    (0x0000001D)
#define MCF_SDRAMC_SDCS_CSSZ_2GBYTE    (0x0000001E)
#define MCF_SDRAMC_SDCS_CSSZ_4GBYTE    (0x0000001F)

/*********************************************************************
*
* Synchronous Serial Interface (SSI)
*
*********************************************************************/

/* Register read/write macros */
#define MCF_SSI_TX0                 (*(vuint32*)(0xFC0BC000))
#define MCF_SSI_TX1                 (*(vuint32*)(0xFC0BC004))
#define MCF_SSI_RX0                 (*(vuint32*)(0xFC0BC008))
#define MCF_SSI_RX1                 (*(vuint32*)(0xFC0BC00C))
#define MCF_SSI_CR                  (*(vuint32*)(0xFC0BC010))
#define MCF_SSI_ISR                 (*(vuint32*)(0xFC0BC014))
#define MCF_SSI_IER                 (*(vuint32*)(0xFC0BC018))
#define MCF_SSI_TCR                 (*(vuint32*)(0xFC0BC01C))
#define MCF_SSI_RCR                 (*(vuint32*)(0xFC0BC020))
#define MCF_SSI_CCR                 (*(vuint32*)(0xFC0BC024))
#define MCF_SSI_FCSR                (*(vuint32*)(0xFC0BC02C))
#define MCF_SSI_ACR                 (*(vuint32*)(0xFC0BC038))
#define MCF_SSI_ACADD               (*(vuint32*)(0xFC0BC03C))
#define MCF_SSI_ACDAT               (*(vuint32*)(0xFC0BC040))
#define MCF_SSI_ATAG                (*(vuint32*)(0xFC0BC044))
#define MCF_SSI_TMASK               (*(vuint32*)(0xFC0BC048))
#define MCF_SSI_RMASK               (*(vuint32*)(0xFC0BC04C))

/* Bit definitions and macros for MCF_SSI_TX */
#define MCF_SSI_TX_SSI_TX(x)        (((x)&0xFFFFFFFF)<<0)

/* Bit definitions and macros for MCF_SSI_RX */
#define MCF_SSI_RX_SSI_RX(x)        (((x)&0xFFFFFFFF)<<0)

/* Bit definitions and macros for MCF_SSI_CR */
#define MCF_SSI_CR_SSI_EN           (0x00000001)
#define MCF_SSI_CR_TE               (0x00000002)
#define MCF_SSI_CR_RE               (0x00000004)
#define MCF_SSI_CR_NET              (0x00000008)
#define MCF_SSI_CR_SYN              (0x00000010)
#define MCF_SSI_CR_I2S(x)           (((x)&0x00000003)<<5)
#define MCF_SSI_CR_MCE              (0x00000080)
#define MCF_SSI_CR_TCH              (0x00000100)
#define MCF_SSI_CR_CIS              (0x00000200)
#define MCF_SSI_CR_I2S_NORMAL       (0x00000000)
#define MCF_SSI_CR_I2S_MASTER       (0x00000020)
#define MCF_SSI_CR_I2S_SLAVE        (0x00000040)

/* Bit definitions and macros for MCF_SSI_ISR */
#define MCF_SSI_ISR_TFE0            (0x00000001)
#define MCF_SSI_ISR_TFE1            (0x00000002)
#define MCF_SSI_ISR_RFF0            (0x00000004)
#define MCF_SSI_ISR_RFF1            (0x00000008)
#define MCF_SSI_ISR_RLS             (0x00000010)
#define MCF_SSI_ISR_TLS             (0x00000020)
#define MCF_SSI_ISR_RFS             (0x00000040)
#define MCF_SSI_ISR_TFS             (0x00000080)
#define MCF_SSI_ISR_TUE0            (0x00000100)
#define MCF_SSI_ISR_TUE1            (0x00000200)
#define MCF_SSI_ISR_ROE0            (0x00000400)
#define MCF_SSI_ISR_ROE1            (0x00000800)
#define MCF_SSI_ISR_TDE0            (0x00001000)
#define MCF_SSI_ISR_TDE1            (0x00002000)
#define MCF_SSI_ISR_RDR0            (0x00004000)
#define MCF_SSI_ISR_RDR1            (0x00008000)
#define MCF_SSI_ISR_RXT             (0x00010000)
#define MCF_SSI_ISR_CMDDU           (0x00020000)
#define MCF_SSI_ISR_CMDAU           (0x00040000)

/* Bit definitions and macros for MCF_SSI_IER */
#define MCF_SSI_IER_TFE0            (0x00000001)
#define MCF_SSI_IER_TFE1            (0x00000002)
#define MCF_SSI_IER_RFF0            (0x00000004)
#define MCF_SSI_IER_RFF1            (0x00000008)
#define MCF_SSI_IER_RLS             (0x00000010)
#define MCF_SSI_IER_TLS             (0x00000020)
#define MCF_SSI_IER_RFS             (0x00000040)
#define MCF_SSI_IER_TFS             (0x00000080)
#define MCF_SSI_IER_TUE0            (0x00000100)
#define MCF_SSI_IER_TUE1            (0x00000200)
#define MCF_SSI_IER_ROE0            (0x00000400)
#define MCF_SSI_IER_ROE1            (0x00000800)
#define MCF_SSI_IER_TDE0            (0x00001000)
#define MCF_SSI_IER_TDE1            (0x00002000)
#define MCF_SSI_IER_RDR0            (0x00004000)
#define MCF_SSI_IER_RDR1            (0x00008000)
#define MCF_SSI_IER_RXT             (0x00010000)
#define MCF_SSI_IER_CMDU            (0x00020000)
#define MCF_SSI_IER_CMDAU           (0x00040000)
#define MCF_SSI_IER_TIE             (0x00080000)
#define MCF_SSI_IER_TDMAE           (0x00100000)
#define MCF_SSI_IER_RIE             (0x00200000)
#define MCF_SSI_IER_RDMAE           (0x00400000)

/* Bit definitions and macros for MCF_SSI_TCR */
#define MCF_SSI_TCR_TEFS            (0x00000001)
#define MCF_SSI_TCR_TFSL            (0x00000002)
#define MCF_SSI_TCR_TFSI            (0x00000004)
#define MCF_SSI_TCR_TSCKP           (0x00000008)
#define MCF_SSI_TCR_TSHFD           (0x00000010)
#define MCF_SSI_TCR_TXDIR           (0x00000020)
#define MCF_SSI_TCR_TFDIR           (0x00000040)
#define MCF_SSI_TCR_TFEN0           (0x00000080)
#define MCF_SSI_TCR_TFEN1           (0x00000100)
#define MCF_SSI_TCR_TXBIT0          (0x00000200)

/* Bit definitions and macros for MCF_SSI_RCR */
#define MCF_SSI_RCR_REFS            (0x00000001)
#define MCF_SSI_RCR_RFSL            (0x00000002)
#define MCF_SSI_RCR_RFSI            (0x00000004)
#define MCF_SSI_RCR_RSCKP           (0x00000008)
#define MCF_SSI_RCR_RSHFD           (0x00000010)
#define MCF_SSI_RCR_RFEN0           (0x00000080)
#define MCF_SSI_RCR_RFEN1           (0x00000100)
#define MCF_SSI_RCR_RXBIT0          (0x00000200)
#define MCF_SSI_RCR_RXEXT           (0x00000400)

/* Bit definitions and macros for MCF_SSI_CCR */
#define MCF_SSI_CCR_PM(x)           (((x)&0x000000FF)<<0)
#define MCF_SSI_CCR_DC(x)           (((x)&0x0000001F)<<8)
#define MCF_SSI_CCR_WL(x)           (((x)&0x0000000F)<<13)
#define MCF_SSI_CCR_PSR             (0x00020000)
#define MCF_SSI_CCR_DIV2            (0x00040000)

/* Bit definitions and macros for MCF_SSI_FCSR */
#define MCF_SSI_FCSR_TFWM0(x)       (((x)&0x0000000F)<<0)
#define MCF_SSI_FCSR_RFWM0(x)       (((x)&0x0000000F)<<4)
#define MCF_SSI_FCSR_TFCNT0(x)      (((x)&0x0000000F)<<8)
#define MCF_SSI_FCSR_RFCNT0(x)      (((x)&0x0000000F)<<12)
#define MCF_SSI_FCSR_TFWM1(x)       (((x)&0x0000000F)<<16)
#define MCF_SSI_FCSR_RFWM1(x)       (((x)&0x0000000F)<<20)
#define MCF_SSI_FCSR_TFCNT1(x)      (((x)&0x0000000F)<<24)
#define MCF_SSI_FCSR_RFCNT1(x)      (((x)&0x0000000F)<<28)

/* Bit definitions and macros for MCF_SSI_ACR */
#define MCF_SSI_ACR_AC97EN          (0x00000001)
#define MCF_SSI_ACR_FV              (0x00000002)
#define MCF_SSI_ACR_TIF             (0x00000004)
#define MCF_SSI_ACR_RD              (0x00000008)
#define MCF_SSI_ACR_WR              (0x00000010)
#define MCF_SSI_ACR_FRDIV(x)        (((x)&0x0000003F)<<5)

/* Bit definitions and macros for MCF_SSI_ACADD */
#define MCF_SSI_ACADD_SSI_ACADD(x)  (((x)&0x0007FFFF)<<0)

/* Bit definitions and macros for MCF_SSI_ACDAT */
#define MCF_SSI_ACDAT_SSI_ACDAT(x)  (((x)&0x0007FFFF)<<0)

/* Bit definitions and macros for MCF_SSI_ATAG */
#define MCF_SSI_ATAG_DDI_ATAG(x)    (((x)&0x0000FFFF)<<0)

/* Bit definitions and macros for MCF_SSI_TMASK */
#define MCF_SSI_TMASK_SSI_TMASK(x)  (((x)&0xFFFFFFFF)<<0)

/* Bit definitions and macros for MCF_SSI_RMASK */
#define MCF_SSI_RMASK_SSI_RMASK(x)  (((x)&0xFFFFFFFF)<<0)

/*********************************************************************
*
* Phase Locked Loop (PLL)
*
*********************************************************************/

/* Register read/write macros */
#define MCF_PLL_PODR              (*(vuint8 *)(0xFC0C0000))
#define MCF_PLL_PLLCR             (*(vuint8 *)(0xFC0C0004))
#define MCF_PLL_PMDR              (*(vuint8 *)(0xFC0C0008))
#define MCF_PLL_PFDR              (*(vuint8 *)(0xFC0C000C))

/* Bit definitions and macros for MCF_PLL_PODR */
#define MCF_PLL_PODR_BUSDIV(x)    (((x)&0x0F)<<0)
#define MCF_PLL_PODR_CPUDIV(x)    (((x)&0x0F)<<4)

/* Bit definitions and macros for MCF_PLL_PLLCR */
#define MCF_PLL_PLLCR_DITHDEV(x)  (((x)&0x07)<<0)
#define MCF_PLL_PLLCR_DITHEN      (0x80)

/* Bit definitions and macros for MCF_PLL_PMDR */
#define MCF_PLL_PMDR_MODDIV(x)    (((x)&0xFF)<<0)

/* Bit definitions and macros for MCF_PLL_PFDR */
#define MCF_PLL_PFDR_MFD(x)       (((x)&0xFF)<<0)

/********************************************************************/

#endif /* __MCF532X_H__ */