summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2007-08-06nouveau: Give DRM its own gpu channelBen Skeggs
If your card doesn't have working context switching, it is now broken.
2007-08-06nouveau: Determine trapped channel id from active grctx on >=NV40Ben Skeggs
2007-08-06nouveau: Various internal and external API changesBen Skeggs
1. DRM_NOUVEAU_GPUOBJ_FREE Used to free GPU objects. The obvious usage case is for Gr objects, but notifiers can also be destroyed in the same way. GPU objects gain a destructor method and private data fields with this change, so other specialised cases (like notifiers) can be implemented on top of gpuobjs. 2. DRM_NOUVEAU_CHANNEL_FREE 3. DRM_NOUVEAU_CARD_INIT Ideally we'd do init during module load, but this isn't currently possible. Doing init during firstopen() is bad as X has a love of opening/closing the DRM many times during startup. Once the modesetting-101 branch is merged this can go away. IRQs are enabled in nouveau_card_init() now, rather than having the X server call drmCtlInstHandler(). We'll need this for when we give the kernel module its own channel. 4. DRM_NOUVEAU_GETPARAM Add CHIPSET_ID value, which will return the chipset id derived from NV_PMC_BOOT_0. 4. Use list_* in a few places, rather than home-brewed stuff.
2007-08-06nouveau: Pass channel struct around instead of channel id.Ben Skeggs
2007-08-03nouveau:nv10: fill and use load,save graph context functionsPatrice Mandin
2007-08-02Remove the pinned buffer from the LRU when pinning.Eric Anholt
Also, be a little safer with setting the pinned flag within the struct lock. I'm not 100% sure if this is required, but it seems like it might be.
2007-08-02Add a couple of doxygen comments from reading the code.Eric Anholt
2007-08-02Merge branch 'master' of git+ssh://pmandin@git.freedesktop.org/git/mesa/drmPatrice Mandin
2007-08-02Add libdrm source dir, to build tests from a different build dirPatrice Mandin
2007-08-02drm: add unlocked ioctl code path - not used yetDave Airlie
2007-07-31Refactor register dumping code.Ian Romanick
2007-08-01drm/fence: shut up lockdepDave Airlie
2007-07-31drm: fix fencing refcount errorDave Airlie
This extra increase was causing fence leaks on my system, due to create/user add already increasing it twice no need for a 3rd go.
2007-07-30Move additional GE initialization into the kernel.Ian Romanick
This code comes directly from the X server.
2007-07-30Fix GE shut-down sequence.Ian Romanick
When the GE is shut down, an empty command packet without a begin-link must be sent. After this command is sent, wait for the hardware to go idle. Finally, turn off the GE and disable MMIO.
2007-07-30Use DRM_READ/DRM_WRITE macros instead of directly accessing MMIO space.Ian Romanick
2007-07-30Use OUT3C5B macro instead of assuming little-endian byte order.Ian Romanick
2007-07-27Convert to new ioctl interface between core DRM and device-specific module.Ian Romanick
2007-07-27nouveau: creating notifier in PCI memory for PCIGARTArthur Huillet
2007-07-26Eliminate use of DRM_ERR.Ian Romanick
2007-07-26Eliminate unnecessary (and now wrong) call gto drm_sg_free.Ian Romanick
2007-07-26Merge branch 'master' of ssh+git://git.freedesktop.org/git/mesa/drm into ↵Ian Romanick
xgi-0-0-2 Conflicts: linux-core/drmP.h linux-core/drm_scatter.c
2007-07-26debug print ioctl return value as -integer rather than fffffwhatever.Eric Anholt
2007-07-26Copy the important parts of object_validate into object_create().Eric Anholt
This should let us allocate buffers without holding the hardware lock. While here, add DRM_DEBUG info for the drm_bo ioctls, so you can see something more specific than just the cmd value per ioctl.
2007-07-26Replace NO_MOVE/NO_EVICT flags to buffer objects with an ioctl to set pinning.Eric Anholt
This cleans up the create/validate interfaces for this very uncommon path, and makes pinned object creation much easier to use for the X Server.
2007-07-26drm/bo: set the req pointer for each buffer to validateDave Airlie
2007-07-26drm: fix size argument for copy to/from userDave Airlie
2007-07-25Improve the drawable test to use multiple drawables.Eric Anholt
2007-07-25Fix copy'n'paste-o in FreeBSD drawable code.Eric Anholt
2007-07-24Fix typo on previous commit. Sigh...Ian Romanick
2007-07-24Pass correct offset to xgi_find_pcie_virt.Ian Romanick
The wrong offset was being passed to xgi_find_pcie_virt. This would cause an oops in addFlush2D.
2007-07-24Fix license formatting.Ian Romanick
2007-07-24Fix flags for serveral ioctls.Ian Romanick
2007-07-24Fix bug preventing X server from restarting.Ian Romanick
The core DRM lastclose routine automatically destroys all mappings and releases SG memory. XP10 DRM and DDX assumed this data stayed around until module unload. xgi_bootstrap was reworked to recreate all these mappings. In addition, the drm_addmap for the GART backing store was moved into the kernel. This causes a change to the ioctl protocol and a version bump.
2007-07-23Minor log message clean up.Ian Romanick
2007-07-23Minor log message clean up.Ian Romanick
2007-07-23linux: Make DRM_IOCTL_GET_CLIENT return EINVAL when it can't find client #idx.Eric Anholt
Fixes the getclient test and dritest -c.
2007-07-23Eliminate XGI_CHECK_PCI_CONFIG.Ian Romanick
Based on review comments from airlied, XGI_CHECK_PCI_CONFIG is removed. He believes (and I tend to agree) that this is a largely unnecessary workaround for a bug elsewhere.
2007-07-23drm_rmmap_ioctl(): remove dead codeAdrian Bunk
This patch removes some obviously dead code spotted by the Coverity checker. Signed-off-by: Adrian Bunk <bunk@stusta.de>
2007-07-21Bump version.Ian Romanick
2007-07-21Remove some extraneous debug messages.Ian Romanick
2007-07-21xgi_mem_alloc::offset is a hardware offset, so it should be u32, not long.Ian Romanick
2007-07-21Rename and document fields of xgi_cmdring_info.Ian Romanick
2007-07-21Make s_cmdring a field in the xgi_info structure instead of a global.Ian Romanick
2007-07-21Clean up xgi_cmd_info and associated code.Ian Romanick
There were numerous unnecessary fields in xgi_cmd_info. The remaining fields had pretty crummy names. Cut out the cruft, and rename the rest. As a result, the unused parameter "triggerCounter" to triggerHWCommandList can be removed.
2007-07-21Fix misc ioctl issues, makes Nouveau run.Pekka Paalanen
Debug print fix in drm_release(). Forgotten local variable init in drm_setversion(). Unnecessary put_user() in drm_addmap_ioctl(). ioctl->cmd check broken in drm_ioctl(); workaround.
2007-07-21fix missing brace placement for IOC_INDave Airlie
2007-07-21fix drm no-compile due to BSD :-)Dave Airlie
2007-07-20Replace DRM_IOCTL_ARGS with (dev, data, file_priv) and remove DRM_DEVICE.Eric Anholt
The data is now in kernel space, copied in/out as appropriate according to the This results in DRM_COPY_{TO,FROM}_USER going away, and error paths to deal with those failures. This also means that XFree86 4.2.0 support for i810 DRM is lost.
2007-07-20Replace filp in ioctl arguments with drm_file *file_priv.Eric Anholt
As a fallout, replace filp storage with file_priv storage for "unique identifier of a client" all over the DRM. There is a 1:1 mapping, so this should be a noop. This could be a minor performance improvement, as everything on Linux dereferenced filp to get file_priv anyway, while only the mmap ioctls went the other direction.
'>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
/*
 * Copyright 2007 Advanced Micro Devices, Inc.
 * All Rights Reserved.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 * and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice (including the next
 * paragraph) shall be included in all copies or substantial portions of the
 * Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 * IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE
 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 *
 */

#ifndef RADEON_MICROCODE_H
#define RADEON_MICROCODE_H

/* production radeon ucode r1xx-r6xx */
static const u32 R100_cp_microcode[][2]={
    { 0x21007000, 0000000000 },
    { 0x20007000, 0000000000 },
    { 0x000000b4, 0x00000004 },
    { 0x000000b8, 0x00000004 },
    { 0x6f5b4d4c, 0000000000 },
    { 0x4c4c427f, 0000000000 },
    { 0x5b568a92, 0000000000 },
    { 0x4ca09c6d, 0000000000 },
    { 0xad4c4c4c, 0000000000 },
    { 0x4ce1af3d, 0000000000 },
    { 0xd8afafaf, 0000000000 },
    { 0xd64c4cdc, 0000000000 },
    { 0x4cd10d10, 0000000000 },
    { 0x000f0000, 0x00000016 },
    { 0x362f242d, 0000000000 },
    { 0x00000012, 0x00000004 },
    { 0x000f0000, 0x00000016 },
    { 0x362f282d, 0000000000 },
    { 0x000380e7, 0x00000002 },
    { 0x04002c97, 0x00000002 },
    { 0x000f0001, 0x00000016 },
    { 0x333a3730, 0000000000 },
    { 0x000077ef, 0x00000002 },
    { 0x00061000, 0x00000002 },
    { 0x00000021, 0x0000001a },
    { 0x00004000, 0x0000001e },
    { 0x00061000, 0x00000002 },
    { 0x00000021, 0x0000001a },
    { 0x00004000, 0x0000001e },
    { 0x00061000, 0x00000002 },
    { 0x00000021, 0x0000001a },
    { 0x00004000, 0x0000001e },
    { 0x00000017, 0x00000004 },
    { 0x0003802b, 0x00000002 },
    { 0x040067e0, 0x00000002 },
    { 0x00000017, 0x00000004 },
    { 0x000077e0, 0x00000002 },
    { 0x00065000, 0x00000002 },
    { 0x000037e1, 0x00000002 },
    { 0x040067e1, 0x00000006 },
    { 0x000077e0, 0x00000002 },
    { 0x000077e1, 0x00000002 },
    { 0x000077e1, 0x00000006 },
    { 0xffffffff, 0000000000 },
    { 0x10000000, 0000000000 },
    { 0x0003802b, 0x00000002 },
    { 0x040067e0, 0x00000006 },
    { 0x00007675, 0x00000002 },
    { 0x00007676, 0x00000002 },
    { 0x00007677, 0x00000002 },
    { 0x00007678, 0x00000006 },
    { 0x0003802c, 0x00000002 },
    { 0x04002676, 0x00000002 },
    { 0x00007677, 0x00000002 },
    { 0x00007678, 0x00000006 },
    { 0x0000002f, 0x00000018 },
    { 0x0000002f, 0x00000018 },
    { 0000000000, 0x00000006 },
    { 0x00000030, 0x00000018 },
    { 0x00000030, 0x00000018 },
    { 0000000000, 0x00000006 },
    { 0x01605000, 0x00000002 },
    { 0x00065000, 0x00000002 },
    { 0x00098000, 0x00000002 },
    { 0x00061000, 0x00000002 },
    { 0x64c0603e, 0x00000004 },
    { 0x000380e6, 0x00000002 },
    { 0x040025c5, 0x00000002 },
    { 0x00080000, 0x00000016 },
    { 0000000000, 0000000000 },
    { 0x0400251d, 0x00000002 },
    { 0x00007580, 0x00000002 },
    { 0x00067581, 0x00000002 },
    { 0x04002580, 0x00000002 },
    { 0x00067581, 0x00000002 },
    { 0x00000049, 0x00000004 },
    { 0x00005000, 0000000000 },
    { 0x000380e6, 0x00000002 },
    { 0x040025c5, 0x00000002 },
    { 0x00061000, 0x00000002 },
    { 0x0000750e, 0x00000002 },
    { 0x00019000, 0x00000002 },
    { 0x00011055, 0x00000014 },
    { 0x00000055, 0x00000012 },
    { 0x0400250f, 0x00000002 },
    { 0x0000504f, 0x00000004 },
    { 0x000380e6, 0x00000002 },
    { 0x040025c5, 0x00000002 },
    { 0x00007565, 0x00000002 },
    { 0x00007566, 0x00000002 },
    { 0x00000058, 0x00000004 },
    { 0x000380e6, 0x00000002 },
    { 0x040025c5, 0x00000002 },
    { 0x01e655b4, 0x00000002 },
    { 0x4401b0e4, 0x00000002 },
    { 0x01c110e4, 0x00000002 },
    { 0x26667066, 0x00000018 },
    { 0x040c2565, 0x00000002 },
    { 0x00000066, 0x00000018 },
    { 0x04002564, 0x00000002 },
    { 0x00007566, 0x00000002 },
    { 0x0000005d, 0x00000004 },
    { 0x00401069, 0x00000008 },
    { 0x00101000, 0x00000002 },
    { 0x000d80ff, 0x00000002 },
    { 0x0080006c, 0x00000008 },
    { 0x000f9000, 0x00000002 },
    { 0x000e00ff, 0x00000002 },
    { 0000000000, 0x00000006 },
    { 0x0000008f, 0x00000018 },
    { 0x0000005b, 0x00000004 },
    { 0x000380e6, 0x00000002 },
    { 0x040025c5, 0x00000002 },
    { 0x00007576, 0x00000002 },
    { 0x00065000, 0x00000002 },
    { 0x00009000, 0x00000002 },
    { 0x00041000, 0x00000002 },
    { 0x0c00350e, 0x00000002 },
    { 0x00049000, 0x00000002 },
    { 0x00051000, 0x00000002 },
    { 0x01e785f8, 0x00000002 },
    { 0x00200000, 0x00000002 },
    { 0x0060007e, 0x0000000c },
    { 0x00007563, 0x00000002 },
    { 0x006075f0, 0x00000021 },
    { 0x20007073, 0x00000004 },
    { 0x00005073, 0x00000004 },
    { 0x000380e6, 0x00000002 },
    { 0x040025c5, 0x00000002 },
    { 0x00007576, 0x00000002 },
    { 0x00007577, 0x00000002 },
    { 0x0000750e, 0x00000002 },
    { 0x0000750f, 0x00000002 },
    { 0x00a05000, 0x00000002 },
    { 0x00600083, 0x0000000c },
    { 0x006075f0, 0x00000021 },
    { 0x000075f8, 0x00000002 },
    { 0x00000083, 0x00000004 },
    { 0x000a750e, 0x00000002 },
    { 0x000380e6, 0x00000002 },
    { 0x040025c5, 0x00000002 },
    { 0x0020750f, 0x00000002 },
    { 0x00600086, 0x00000004 },
    { 0x00007570, 0x00000002 },
    { 0x00007571, 0x00000002 },
    { 0x00007572, 0x00000006 },
    { 0x000380e6, 0x00000002 },
    { 0x040025c5, 0x00000002 },
    { 0x00005000, 0x00000002 },
    { 0x00a05000, 0x00000002 },
    { 0x00007568, 0x00000002 },
    { 0x00061000, 0x00000002 },
    { 0x00000095, 0x0000000c },
    { 0x00058000, 0x00000002 },
    { 0x0c607562, 0x00000002 },
    { 0x00000097, 0x00000004 },
    { 0x000380e6, 0x00000002 },
    { 0x040025c5, 0x00000002 },
    { 0x00600096, 0x00000004 },
    { 0x400070e5, 0000000000 },
    { 0x000380e6, 0x00000002 },
    { 0x040025c5, 0x00000002 },
    { 0x000380e5, 0x00000002 },
    { 0x000000a8, 0x0000001c },
    { 0x000650aa, 0x00000018 },
    { 0x040025bb, 0x00000002 },
    { 0x000610ab, 0x00000018 },
    { 0x040075bc, 0000000000 },
    { 0x000075bb, 0x00000002 },
    { 0x000075bc, 0000000000 },
    { 0x00090000, 0x00000006 },
    { 0x00090000, 0x00000002 },
    { 0x000d8002, 0x00000006 },
    { 0x00007832, 0x00000002 },
    { 0x00005000, 0x00000002 },
    { 0x000380e7, 0x00000002 },
    { 0x04002c97, 0x00000002 },
    { 0x00007820, 0x00000002 },
    { 0x00007821, 0x00000002 },
    { 0x00007800, 0000000000 },
    { 0x01200000, 0x00000002 },
    { 0x20077000, 0x00000002 },
    { 0x01200000, 0x00000002 },
    { 0x20007000, 0x00000002 },
    { 0x00061000, 0x00000002 },
    { 0x0120751b, 0x00000002 },
    { 0x8040750a, 0x00000002 },
    { 0x8040750b, 0x00000002 },
    { 0x00110000, 0x00000002 },
    { 0x000380e5, 0x00000002 },
    { 0x000000c6, 0x0000001c },
    { 0x000610ab, 0x00000018 },
    { 0x844075bd, 0x00000002 },
    { 0x000610aa, 0x00000018 },
    { 0x840075bb, 0x00000002 },
    { 0x000610ab, 0x00000018 },
    { 0x844075bc, 0x00000002 },
    { 0x000000c9, 0x00000004 },
    { 0x804075bd, 0x00000002 },
    { 0x800075bb, 0x00000002 },
    { 0x804075bc, 0x00000002 },
    { 0x00108000, 0x00000002 },
    { 0x01400000, 0x00000002 },
    { 0x006000cd, 0x0000000c },
    { 0x20c07000, 0x00000020 },
    { 0x000000cf, 0x00000012 },
    { 0x00800000, 0x00000006 },
    { 0x0080751d, 0x00000006 },
    { 0000000000, 0000000000 },
    { 0x0000775c, 0x00000002 },
    { 0x00a05000, 0x00000002 },
    { 0x00661000, 0x00000002 },
    { 0x0460275d, 0x00000020 },
    { 0x00004000, 0000000000 },
    { 0x01e00830, 0x00000002 },
    { 0x21007000, 0000000000 },
    { 0x6464614d, 0000000000 },
    { 0x69687420, 0000000000 },
    { 0x00000073, 0000000000 },
    { 0000000000, 0000000000 },
    { 0x00005000, 0x00000002 },
    { 0x000380d0, 0x00000002 },
    { 0x040025e0, 0x00000002 },
    { 0x000075e1, 0000000000 },
    { 0x00000001, 0000000000 },
    { 0x000380e0, 0x00000002 },
    { 0x04002394, 0x00000002 },
    { 0x00005000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0x00000008, 0000000000 },
    { 0x00000004, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
};

static const u32 R200_cp_microcode[][2]={
    { 0x21007000, 0000000000 },
    { 0x20007000, 0000000000 },
    { 0x000000bf, 0x00000004 },
    { 0x000000c3, 0x00000004 },
    { 0x7a685e5d, 0000000000 },
    { 0x5d5d5588, 0000000000 },
    { 0x68659197, 0000000000 },
    { 0x5da19f78, 0000000000 },
    { 0x5d5d5d5d, 0000000000 },
    { 0x5dee5d50, 0000000000 },
    { 0xf2acacac, 0000000000 },
    { 0xe75df9e9, 0000000000 },
    { 0xb1dd0e11, 0000000000 },
    { 0xe2afafaf, 0000000000 },
    { 0x000f0000, 0x00000016 },
    { 0x452f232d, 0000000000 },
    { 0x00000013, 0x00000004 },
    { 0x000f0000, 0x00000016 },
    { 0x452f272d, 0000000000 },
    { 0x000f0001, 0x00000016 },
    { 0x3e4d4a37, 0000000000 },
    { 0x000077ef, 0x00000002 },
    { 0x00061000, 0x00000002 },
    { 0x00000020, 0x0000001a },
    { 0x00004000, 0x0000001e },
    { 0x00061000, 0x00000002 },
    { 0x00000020, 0x0000001a },
    { 0x00004000, 0x0000001e },
    { 0x00061000, 0x00000002 },
    { 0x00000020, 0x0000001a },
    { 0x00004000, 0x0000001e },
    { 0x00000016, 0x00000004 },
    { 0x0003802a, 0x00000002 },
    { 0x040067e0, 0x00000002 },
    { 0x00000016, 0x00000004 },
    { 0x000077e0, 0x00000002 },
    { 0x00065000, 0x00000002 },
    { 0x000037e1, 0x00000002 },
    { 0x040067e1, 0x00000006 },
    { 0x000077e0, 0x00000002 },
    { 0x000077e1, 0x00000002 },
    { 0x000077e1, 0x00000006 },
    { 0xffffffff, 0000000000 },
    { 0x10000000, 0000000000 },
    { 0x07f007f0, 0000000000 },
    { 0x0003802a, 0x00000002 },
    { 0x040067e0, 0x00000006 },
    { 0x0003802c, 0x00000002 },
    { 0x04002741, 0x00000002 },
    { 0x04002741, 0x00000002 },
    { 0x04002743, 0x00000002 },
    { 0x00007675, 0x00000002 },
    { 0x00007676, 0x00000002 },
    { 0x00007677, 0x00000002 },
    { 0x00007678, 0x00000006 },
    { 0x0003802c, 0x00000002 },
    { 0x04002741, 0x00000002 },
    { 0x04002741, 0x00000002 },
    { 0x04002743, 0x00000002 },
    { 0x00007676, 0x00000002 },
    { 0x00007677, 0x00000002 },
    { 0x00007678, 0x00000006 },
    { 0x0003802b, 0x00000002 },
    { 0x04002676, 0x00000002 },
    { 0x00007677, 0x00000002 },
    { 0x0003802c, 0x00000002 },
    { 0x04002741, 0x00000002 },
    { 0x04002743, 0x00000002 },
    { 0x00007678, 0x00000006 },
    { 0x0003802c, 0x00000002 },
    { 0x04002741, 0x00000002 },
    { 0x04002741, 0x00000002 },
    { 0x04002743, 0x00000002 },
    { 0x00007678, 0x00000006 },
    { 0x0000002f, 0x00000018 },
    { 0x0000002f, 0x00000018 },
    { 0000000000, 0x00000006 },
    { 0x00000037, 0x00000018 },
    { 0x00000037, 0x00000018 },
    { 0000000000, 0x00000006 },
    { 0x01605000, 0x00000002 },
    { 0x00065000, 0x00000002 },
    { 0x00098000, 0x00000002 },
    { 0x00061000, 0x00000002 },
    { 0x64c06051, 0x00000004 },
    { 0x00080000, 0x00000016 },
    { 0000000000, 0000000000 },
    { 0x0400251d, 0x00000002 },
    { 0x00007580, 0x00000002 },
    { 0x00067581, 0x00000002 },
    { 0x04002580, 0x00000002 },
    { 0x00067581, 0x00000002 },
    { 0x0000005a, 0x00000004 },
    { 0x00005000, 0000000000 },
    { 0x00061000, 0x00000002 },
    { 0x0000750e, 0x00000002 },
    { 0x00019000, 0x00000002 },
    { 0x00011064, 0x00000014 },
    { 0x00000064, 0x00000012 },
    { 0x0400250f, 0x00000002 },
    { 0x0000505e, 0x00000004 },
    { 0x00007565, 0x00000002 },
    { 0x00007566, 0x00000002 },
    { 0x00000065, 0x00000004 },
    { 0x01e655b4, 0x00000002 },
    { 0x4401b0f0, 0x00000002 },
    { 0x01c110f0, 0x00000002 },
    { 0x26667071, 0x00000018 },
    { 0x040c2565, 0x00000002 },
    { 0x00000071, 0x00000018 },
    { 0x04002564, 0x00000002 },
    { 0x00007566, 0x00000002 },
    { 0x00000068, 0x00000004 },
    { 0x00401074, 0x00000008 },
    { 0x00101000, 0x00000002 },
    { 0x000d80ff, 0x00000002 },
    { 0x00800077, 0x00000008 },
    { 0x000f9000, 0x00000002 },
    { 0x000e00ff, 0x00000002 },
    { 0000000000, 0x00000006 },
    { 0x00000094, 0x00000018 },
    { 0x00000068, 0x00000004 },
    { 0x00007576, 0x00000002 },
    { 0x00065000, 0x00000002 },
    { 0x00009000, 0x00000002 },
    { 0x00041000, 0x00000002 },
    { 0x0c00350e, 0x00000002 },
    { 0x00049000, 0x00000002 },
    { 0x00051000, 0x00000002 },
    { 0x01e785f8, 0x00000002 },
    { 0x00200000, 0x00000002 },
    { 0x00600087, 0x0000000c },
    { 0x00007563, 0x00000002 },
    { 0x006075f0, 0x00000021 },
    { 0x2000707c, 0x00000004 },
    { 0x0000507c, 0x00000004 },
    { 0x00007576, 0x00000002 },
    { 0x00007577, 0x00000002 },
    { 0x0000750e, 0x00000002 },
    { 0x0000750f, 0x00000002 },
    { 0x00a05000, 0x00000002 },
    { 0x0060008a, 0x0000000c },
    { 0x006075f0, 0x00000021 },
    { 0x000075f8, 0x00000002 },
    { 0x0000008a, 0x00000004 },
    { 0x000a750e, 0x00000002 },
    { 0x0020750f, 0x00000002 },
    { 0x0060008d, 0x00000004 },
    { 0x00007570, 0x00000002 },
    { 0x00007571, 0x00000002 },
    { 0x00007572, 0x00000006 },
    { 0x00005000, 0x00000002 },
    { 0x00a05000, 0x00000002 },
    { 0x00007568, 0x00000002 },
    { 0x00061000, 0x00000002 },
    { 0x00000098, 0x0000000c },
    { 0x00058000, 0x00000002 },
    { 0x0c607562, 0x00000002 },
    { 0x0000009a, 0x00000004 },
    { 0x00600099, 0x00000004 },
    { 0x400070f1, 0000000000 },
    { 0x000380f1, 0x00000002 },
    { 0x000000a7, 0x0000001c },
    { 0x000650a9, 0x00000018 },
    { 0x040025bb, 0x00000002 },
    { 0x000610aa, 0x00000018 },
    { 0x040075bc, 0000000000 },
    { 0x000075bb, 0x00000002 },
    { 0x000075bc, 0000000000 },
    { 0x00090000, 0x00000006 },
    { 0x00090000, 0x00000002 },
    { 0x000d8002, 0x00000006 },
    { 0x00005000, 0x00000002 },
    { 0x00007821, 0x00000002 },
    { 0x00007800, 0000000000 },
    { 0x00007821, 0x00000002 },
    { 0x00007800, 0000000000 },
    { 0x01665000, 0x00000002 },
    { 0x000a0000, 0x00000002 },
    { 0x000671cc, 0x00000002 },
    { 0x0286f1cd, 0x00000002 },
    { 0x000000b7, 0x00000010 },
    { 0x21007000, 0000000000 },
    { 0x000000be, 0x0000001c },
    { 0x00065000, 0x00000002 },
    { 0x000a0000, 0x00000002 },
    { 0x00061000, 0x00000002 },
    { 0x000b0000, 0x00000002 },
    { 0x38067000, 0x00000002 },
    { 0x000a00ba, 0x00000004 },
    { 0x20007000, 0000000000 },
    { 0x01200000, 0x00000002 },
    { 0x20077000, 0x00000002 },
    { 0x01200000, 0x00000002 },
    { 0x20007000, 0000000000 },
    { 0x00061000, 0x00000002 },
    { 0x0120751b, 0x00000002 },
    { 0x8040750a, 0x00000002 },
    { 0x8040750b, 0x00000002 },
    { 0x00110000, 0x00000002 },
    { 0x000380f1, 0x00000002 },
    { 0x000000d1, 0x0000001c },
    { 0x000610aa, 0x00000018 },
    { 0x844075bd, 0x00000002 },
    { 0x000610a9, 0x00000018 },
    { 0x840075bb, 0x00000002 },
    { 0x000610aa, 0x00000018 },
    { 0x844075bc, 0x00000002 },
    { 0x000000d4, 0x00000004 },
    { 0x804075bd, 0x00000002 },
    { 0x800075bb, 0x00000002 },
    { 0x804075bc, 0x00000002 },
    { 0x00108000, 0x00000002 },
    { 0x01400000, 0x00000002 },
    { 0x006000d8, 0x0000000c },
    { 0x20c07000, 0x00000020 },
    { 0x000000da, 0x00000012 },
    { 0x00800000, 0x00000006 },
    { 0x0080751d, 0x00000006 },
    { 0x000025bb, 0x00000002 },
    { 0x000040d4, 0x00000004 },
    { 0x0000775c, 0x00000002 },
    { 0x00a05000, 0x00000002 },
    { 0x00661000, 0x00000002 },
    { 0x0460275d, 0x00000020 },
    { 0x00004000, 0000000000 },
    { 0x00007999, 0x00000002 },
    { 0x00a05000, 0x00000002 },
    { 0x00661000, 0x00000002 },
    { 0x0460299b, 0x00000020 },
    { 0x00004000, 0000000000 },
    { 0x01e00830, 0x00000002 },
    { 0x21007000, 0000000000 },
    { 0x00005000, 0x00000002 },
    { 0x00038056, 0x00000002 },
    { 0x040025e0, 0x00000002 },
    { 0x000075e1, 0000000000 },
    { 0x00000001, 0000000000 },
    { 0x000380ed, 0x00000002 },
    { 0x04007394, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0x000078c4, 0x00000002 },
    { 0x000078c5, 0x00000002 },
    { 0x000078c6, 0x00000002 },
    { 0x00007924, 0x00000002 },
    { 0x00007925, 0x00000002 },
    { 0x00007926, 0x00000002 },
    { 0x000000f2, 0x00000004 },
    { 0x00007924, 0x00000002 },
    { 0x00007925, 0x00000002 },
    { 0x00007926, 0x00000002 },
    { 0x000000f9, 0x00000004 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
};

static const u32 R300_cp_microcode[][2]={
    { 0x4200e000, 0000000000 },
    { 0x4000e000, 0000000000 },
    { 0x000000ae, 0x00000008 },
    { 0x000000b2, 0x00000008 },
    { 0x67554b4a, 0000000000 },
    { 0x4a4a4475, 0000000000 },
    { 0x55527d83, 0000000000 },
    { 0x4a8c8b65, 0000000000 },
    { 0x4aef4af6, 0000000000 },
    { 0x4ae14a4a, 0000000000 },
    { 0xe4979797, 0000000000 },
    { 0xdb4aebdd, 0000000000 },
    { 0x9ccc4a4a, 0000000000 },
    { 0xd1989898, 0000000000 },
    { 0x4a0f9ad6, 0000000000 },
    { 0x000ca000, 0x00000004 },
    { 0x000d0012, 0x00000038 },
    { 0x0000e8b4, 0x00000004 },
    { 0x000d0014, 0x00000038 },
    { 0x0000e8b6, 0x00000004 },
    { 0x000d0016, 0x00000038 },
    { 0x0000e854, 0x00000004 },
    { 0x000d0018, 0x00000038 },
    { 0x0000e855, 0x00000004 },
    { 0x000d001a, 0x00000038 },
    { 0x0000e856, 0x00000004 },
    { 0x000d001c, 0x00000038 },
    { 0x0000e857, 0x00000004 },
    { 0x000d001e, 0x00000038 },
    { 0x0000e824, 0x00000004 },
    { 0x000d0020, 0x00000038 },
    { 0x0000e825, 0x00000004 },
    { 0x000d0022, 0x00000038 },
    { 0x0000e830, 0x00000004 },
    { 0x000d0024, 0x00000038 },
    { 0x0000f0c0, 0x00000004 },
    { 0x000d0026, 0x00000038 },
    { 0x0000f0c1, 0x00000004 },
    { 0x000d0028, 0x00000038 },
    { 0x0000f041, 0x00000004 },
    { 0x000d002a, 0x00000038 },
    { 0x0000f184, 0x00000004 },
    { 0x000d002c, 0x00000038 },
    { 0x0000f185, 0x00000004 },
    { 0x000d002e, 0x00000038 },
    { 0x0000f186, 0x00000004 },
    { 0x000d0030, 0x00000038 },
    { 0x0000f187, 0x00000004 },
    { 0x000d0032, 0x00000038 },
    { 0x0000f180, 0x00000004 },
    { 0x000d0034, 0x00000038 },
    { 0x0000f393, 0x00000004 },
    { 0x000d0036, 0x00000038 },
    { 0x0000f38a, 0x00000004 },
    { 0x000d0038, 0x00000038 },
    { 0x0000f38e, 0x00000004 },
    { 0x0000e821, 0x00000004 },
    { 0x0140a000, 0x00000004 },
    { 0x00000043, 0x00000018 },
    { 0x00cce800, 0x00000004 },
    { 0x001b0001, 0x00000004 },
    { 0x08004800, 0x00000004 },
    { 0x001b0001, 0x00000004 },
    { 0x08004800, 0x00000004 },
    { 0x001b0001, 0x00000004 },
    { 0x08004800, 0x00000004 },
    { 0x0000003a, 0x00000008 },
    { 0x0000a000, 0000000000 },
    { 0x2000451d, 0x00000004 },
    { 0x0000e580, 0x00000004 },
    { 0x000ce581, 0x00000004 },
    { 0x08004580, 0x00000004 },
    { 0x000ce581, 0x00000004 },
    { 0x00000047, 0x00000008 },
    { 0x0000a000, 0000000000 },
    { 0x000c2000, 0x00000004 },
    { 0x0000e50e, 0x00000004 },
    { 0x00032000, 0x00000004 },
    { 0x00022051, 0x00000028 },
    { 0x00000051, 0x00000024 },
    { 0x0800450f, 0x00000004 },
    { 0x0000a04b, 0x00000008 },
    { 0x0000e565, 0x00000004 },
    { 0x0000e566, 0x00000004 },
    { 0x00000052, 0x00000008 },
    { 0x03cca5b4, 0x00000004 },
    { 0x05432000, 0x00000004 },
    { 0x00022000, 0x00000004 },
    { 0x4ccce05e, 0x00000030 },
    { 0x08274565, 0x00000004 },
    { 0x0000005e, 0x00000030 },
    { 0x08004564, 0x00000004 },
    { 0x0000e566, 0x00000004 },
    { 0x00000055, 0x00000008 },
    { 0x00802061, 0x00000010 },
    { 0x00202000, 0x00000004 },
    { 0x001b00ff, 0x00000004 },
    { 0x01000064, 0x00000010 },
    { 0x001f2000, 0x00000004 },
    { 0x001c00ff, 0x00000004 },
    { 0000000000, 0x0000000c },
    { 0x00000080, 0x00000030 },
    { 0x00000055, 0x00000008 },
    { 0x0000e576, 0x00000004 },
    { 0x000ca000, 0x00000004 },
    { 0x00012000, 0x00000004 },
    { 0x00082000, 0x00000004 },
    { 0x1800650e, 0x00000004 },
    { 0x00092000, 0x00000004 },
    { 0x000a2000, 0x00000004 },
    { 0x000f0000, 0x00000004 },
    { 0x00400000, 0x00000004 },
    { 0x00000074, 0x00000018 },
    { 0x0000e563, 0x00000004 },
    { 0x00c0e5f9, 0x000000c2 },
    { 0x00000069, 0x00000008 },
    { 0x0000a069, 0x00000008 },
    { 0x0000e576, 0x00000004 },
    { 0x0000e577, 0x00000004 },
    { 0x0000e50e, 0x00000004 },
    { 0x0000e50f, 0x00000004 },
    { 0x0140a000, 0x00000004 },
    { 0x00000077, 0x00000018 },
    { 0x00c0e5f9, 0x000000c2 },
    { 0x00000077, 0x00000008 },
    { 0x0014e50e, 0x00000004 },
    { 0x0040e50f, 0x00000004 },
    { 0x00c0007a, 0x00000008 },
    { 0x0000e570, 0x00000004 },
    { 0x0000e571, 0x00000004 },
    { 0x0000e572, 0x0000000c },
    { 0x0000a000, 0x00000004 },
    { 0x0140a000, 0x00000004 },
    { 0x0000e568, 0x00000004 },
    { 0x000c2000, 0x00000004 },
    { 0x00000084, 0x00000018 },
    { 0x000b0000, 0x00000004 },
    { 0x18c0e562, 0x00000004 },
    { 0x00000086, 0x00000008 },
    { 0x00c00085, 0x00000008 },
    { 0x000700e3, 0x00000004 },
    { 0x00000092, 0x00000038 },
    { 0x000ca094, 0x00000030 },
    { 0x080045bb, 0x00000004 },
    { 0x000c2095, 0x00000030 },
    { 0x0800e5bc, 0000000000 },
    { 0x0000e5bb, 0x00000004 },
    { 0x0000e5bc, 0000000000 },
    { 0x00120000, 0x0000000c },
    { 0x00120000, 0x00000004 },
    { 0x001b0002, 0x0000000c },
    { 0x0000a000, 0x00000004 },
    { 0x0000e821, 0x00000004 },
    { 0x0000e800, 0000000000 },
    { 0x0000e821, 0x00000004 },
    { 0x0000e82e, 0000000000 },
    { 0x02cca000, 0x00000004 },
    { 0x00140000, 0x00000004 },
    { 0x000ce1cc, 0x00000004 },
    { 0x050de1cd, 0x00000004 },
    { 0x00400000, 0x00000004 },
    { 0x000000a4, 0x00000018 },
    { 0x00c0a000, 0x00000004 },
    { 0x000000a1, 0x00000008 },
    { 0x000000a6, 0x00000020 },
    { 0x4200e000, 0000000000 },
    { 0x000000ad, 0x00000038 },
    { 0x000ca000, 0x00000004 },
    { 0x00140000, 0x00000004 },
    { 0x000c2000, 0x00000004 },
    { 0x00160000, 0x00000004 },
    { 0x700ce000, 0x00000004 },
    { 0x001400a9, 0x00000008 },
    { 0x4000e000, 0000000000 },
    { 0x02400000, 0x00000004 },
    { 0x400ee000, 0x00000004 },
    { 0x02400000, 0x00000004 },
    { 0x4000e000, 0000000000 },
    { 0x000c2000, 0x00000004 },
    { 0x0240e51b, 0x00000004 },
    { 0x0080e50a, 0x00000005 },
    { 0x0080e50b, 0x00000005 },
    { 0x00220000, 0x00000004 },
    { 0x000700e3, 0x00000004 },
    { 0x000000c0, 0x00000038 },
    { 0x000c2095, 0x00000030 },
    { 0x0880e5bd, 0x00000005 },
    { 0x000c2094, 0x00000030 },
    { 0x0800e5bb, 0x00000005 },
    { 0x000c2095, 0x00000030 },
    { 0x0880e5bc, 0x00000005 },
    { 0x000000c3, 0x00000008 },
    { 0x0080e5bd, 0x00000005 },
    { 0x0000e5bb, 0x00000005 },
    { 0x0080e5bc, 0x00000005 },
    { 0x00210000, 0x00000004 },
    { 0x02800000, 0x00000004 },
    { 0x00c000c7, 0x00000018 },
    { 0x4180e000, 0x00000040 },
    { 0x000000c9, 0x00000024 },
    { 0x01000000, 0x0000000c },
    { 0x0100e51d, 0x0000000c },
    { 0x000045bb, 0x00000004 },
    { 0x000080c3, 0x00000008 },
    { 0x0000f3ce, 0x00000004 },
    { 0x0140a000, 0x00000004 },
    { 0x00cc2000, 0x00000004 },
    { 0x08c053cf, 0x00000040 },
    { 0x00008000, 0000000000 },
    { 0x0000f3d2, 0x00000004 },
    { 0x0140a000, 0x00000004 },
    { 0x00cc2000, 0x00000004 },
    { 0x08c053d3, 0x00000040 },
    { 0x00008000, 0000000000 },
    { 0x0000f39d, 0x00000004 },
    { 0x0140a000, 0x00000004 },
    { 0x00cc2000, 0x00000004 },
    { 0x08c0539e, 0x00000040 },
    { 0x00008000, 0000000000 },
    { 0x03c00830, 0x00000004 },
    { 0x4200e000, 0000000000 },
    { 0x0000a000, 0x00000004 },
    { 0x200045e0, 0x00000004 },
    { 0x0000e5e1, 0000000000 },
    { 0x00000001, 0000000000 },
    { 0x000700e0, 0x00000004 },
    { 0x0800e394, 0000000000 },
    { 0000000000, 0000000000 },
    { 0x0000e8c4, 0x00000004 },
    { 0x0000e8c5, 0x00000004 },
    { 0x0000e8c6, 0x00000004 },
    { 0x0000e928, 0x00000004 },
    { 0x0000e929, 0x00000004 },
    { 0x0000e92a, 0x00000004 },
    { 0x000000e4, 0x00000008 },
    { 0x0000e928, 0x00000004 },
    { 0x0000e929, 0x00000004 },
    { 0x0000e92a, 0x00000004 },
    { 0x000000eb, 0x00000008 },
    { 0x02c02000, 0x00000004 },
    { 0x00060000, 0x00000004 },
    { 0x000000f3, 0x00000034 },
    { 0x000000f0, 0x00000008 },
    { 0x00008000, 0x00000004 },
    { 0xc000e000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0x000c2000, 0x00000004 },
    { 0x001d0018, 0x00000004 },
    { 0x001a0001, 0x00000004 },
    { 0x000000fb, 0x00000034 },
    { 0x0000004a, 0x00000008 },
    { 0x0500a04a, 0x00000008 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
};

static const u32 R420_cp_microcode[][2]={
    { 0x4200e000, 0000000000 },
    { 0x4000e000, 0000000000 },
    { 0x00000099, 0x00000008 },
    { 0x0000009d, 0x00000008 },
    { 0x4a554b4a, 0000000000 },
    { 0x4a4a4467, 0000000000 },
    { 0x55526f75, 0000000000 },
    { 0x4a7e7d65, 0000000000 },
    { 0xd9d3dff6, 0000000000 },
    { 0x4ac54a4a, 0000000000 },
    { 0xc8828282, 0000000000 },
    { 0xbf4acfc1, 0000000000 },
    { 0x87b04a4a, 0000000000 },
    { 0xb5838383, 0000000000 },
    { 0x4a0f85ba, 0000000000 },
    { 0x000ca000, 0x00000004 },
    { 0x000d0012, 0x00000038 },
    { 0x0000e8b4, 0x00000004 },
    { 0x000d0014, 0x00000038 },
    { 0x0000e8b6, 0x00000004 },
    { 0x000d0016, 0x00000038 },
    { 0x0000e854, 0x00000004 },
    { 0x000d0018, 0x00000038 },
    { 0x0000e855, 0x00000004 },
    { 0x000d001a, 0x00000038 },
    { 0x0000e856, 0x00000004 },
    { 0x000d001c, 0x00000038 },
    { 0x0000e857, 0x00000004 },
    { 0x000d001e, 0x00000038 },
    { 0x0000e824, 0x00000004 },
    { 0x000d0020, 0x00000038 },
    { 0x0000e825, 0x00000004 },
    { 0x000d0022, 0x00000038 },
    { 0x0000e830, 0x00000004 },
    { 0x000d0024, 0x00000038 },
    { 0x0000f0c0, 0x00000004 },
    { 0x000d0026, 0x00000038 },
    { 0x0000f0c1, 0x00000004 },
    { 0x000d0028, 0x00000038 },
    { 0x0000f041, 0x00000004 },
    { 0x000d002a, 0x00000038 },
    { 0x0000f184, 0x00000004 },
    { 0x000d002c, 0x00000038 },
    { 0x0000f185, 0x00000004 },
    { 0x000d002e, 0x00000038 },
    { 0x0000f186, 0x00000004 },
    { 0x000d0030, 0x00000038 },
    { 0x0000f187, 0x00000004 },
    { 0x000d0032, 0x00000038 },
    { 0x0000f180, 0x00000004 },
    { 0x000d0034, 0x00000038 },
    { 0x0000f393, 0x00000004 },
    { 0x000d0036, 0x00000038 },
    { 0x0000f38a, 0x00000004 },
    { 0x000d0038, 0x00000038 },
    { 0x0000f38e, 0x00000004 },
    { 0x0000e821, 0x00000004 },
    { 0x0140a000, 0x00000004 },
    { 0x00000043, 0x00000018 },
    { 0x00cce800, 0x00000004 },
    { 0x001b0001, 0x00000004 },
    { 0x08004800, 0x00000004 },
    { 0x001b0001, 0x00000004 },
    { 0x08004800, 0x00000004 },
    { 0x001b0001, 0x00000004 },
    { 0x08004800, 0x00000004 },
    { 0x0000003a, 0x00000008 },
    { 0x0000a000, 0000000000 },
    { 0x2000451d, 0x00000004 },
    { 0x0000e580, 0x00000004 },
    { 0x000ce581, 0x00000004 },
    { 0x08004580, 0x00000004 },
    { 0x000ce581, 0x00000004 },
    { 0x00000047, 0x00000008 },
    { 0x0000a000, 0000000000 },
    { 0x000c2000, 0x00000004 },
    { 0x0000e50e, 0x00000004 },
    { 0x00032000, 0x00000004 },
    { 0x00022051, 0x00000028 },
    { 0x00000051, 0x00000024 },
    { 0x0800450f, 0x00000004 },
    { 0x0000a04b, 0x00000008 },
    { 0x0000e565, 0x00000004 },
    { 0x0000e566, 0x00000004 },
    { 0x00000052, 0x00000008 },
    { 0x03cca5b4, 0x00000004 },
    { 0x05432000, 0x00000004 },
    { 0x00022000, 0x00000004 },
    { 0x4ccce05e, 0x00000030 },
    { 0x08274565, 0x00000004 },
    { 0x0000005e, 0x00000030 },
    { 0x08004564, 0x00000004 },
    { 0x0000e566, 0x00000004 },
    { 0x00000055, 0x00000008 },
    { 0x00802061, 0x00000010 },
    { 0x00202000, 0x00000004 },
    { 0x001b00ff, 0x00000004 },
    { 0x01000064, 0x00000010 },
    { 0x001f2000, 0x00000004 },
    { 0x001c00ff, 0x00000004 },
    { 0000000000, 0x0000000c },
    { 0x00000072, 0x00000030 },
    { 0x00000055, 0x00000008 },
    { 0x0000e576, 0x00000004 },
    { 0x0000e577, 0x00000004 },
    { 0x0000e50e, 0x00000004 },
    { 0x0000e50f, 0x00000004 },
    { 0x0140a000, 0x00000004 },
    { 0x00000069, 0x00000018 },
    { 0x00c0e5f9, 0x000000c2 },
    { 0x00000069, 0x00000008 },
    { 0x0014e50e, 0x00000004 },
    { 0x0040e50f, 0x00000004 },
    { 0x00c0006c, 0x00000008 },
    { 0x0000e570, 0x00000004 },
    { 0x0000e571, 0x00000004 },
    { 0x0000e572, 0x0000000c },
    { 0x0000a000, 0x00000004 },
    { 0x0140a000, 0x00000004 },
    { 0x0000e568, 0x00000004 },
    { 0x000c2000, 0x00000004 },
    { 0x00000076, 0x00000018 },
    { 0x000b0000, 0x00000004 },
    { 0x18c0e562, 0x00000004 },
    { 0x00000078, 0x00000008 },
    { 0x00c00077, 0x00000008 },
    { 0x000700c7, 0x00000004 },
    { 0x00000080, 0x00000038 },
    { 0x0000e5bb, 0x00000004 },
    { 0x0000e5bc, 0000000000 },
    { 0x0000a000, 0x00000004 },
    { 0x0000e821, 0x00000004 },
    { 0x0000e800, 0000000000 },
    { 0x0000e821, 0x00000004 },
    { 0x0000e82e, 0000000000 },
    { 0x02cca000, 0x00000004 },
    { 0x00140000, 0x00000004 },
    { 0x000ce1cc, 0x00000004 },
    { 0x050de1cd, 0x00000004 },
    { 0x00400000, 0x00000004 },
    { 0x0000008f, 0x00000018 },
    { 0x00c0a000, 0x00000004 },
    { 0x0000008c, 0x00000008 },
    { 0x00000091, 0x00000020 },
    { 0x4200e000, 0000000000 },
    { 0x00000098, 0x00000038 },
    { 0x000ca000, 0x00000004 },
    { 0x00140000, 0x00000004 },
    { 0x000c2000, 0x00000004 },
    { 0x00160000, 0x00000004 },
    { 0x700ce000, 0x00000004 },
    { 0x00140094, 0x00000008 },
    { 0x4000e000, 0000000000 },
    { 0x02400000, 0x00000004 },
    { 0x400ee000, 0x00000004 },
    { 0x02400000, 0x00000004 },
    { 0x4000e000, 0000000000 },
    { 0x000c2000, 0x00000004 },
    { 0x0240e51b, 0x00000004 },
    { 0x0080e50a, 0x00000005 },
    { 0x0080e50b, 0x00000005 },
    { 0x00220000, 0x00000004 },
    { 0x000700c7, 0x00000004 },
    { 0x000000a4, 0x00000038 },
    { 0x0080e5bd, 0x00000005 },
    { 0x0000e5bb, 0x00000005 },
    { 0x0080e5bc, 0x00000005 },
    { 0x00210000, 0x00000004 },
    { 0x02800000, 0x00000004 },
    { 0x00c000ab, 0x00000018 },
    { 0x4180e000, 0x00000040 },
    { 0x000000ad, 0x00000024 },
    { 0x01000000, 0x0000000c },
    { 0x0100e51d, 0x0000000c },
    { 0x000045bb, 0x00000004 },
    { 0x000080a7, 0x00000008 },
    { 0x0000f3ce, 0x00000004 },
    { 0x0140a000, 0x00000004 },
    { 0x00cc2000, 0x00000004 },
    { 0x08c053cf, 0x00000040 },
    { 0x00008000, 0000000000 },
    { 0x0000f3d2, 0x00000004 },
    { 0x0140a000, 0x00000004 },
    { 0x00cc2000, 0x00000004 },
    { 0x08c053d3, 0x00000040 },
    { 0x00008000, 0000000000 },
    { 0x0000f39d, 0x00000004 },
    { 0x0140a000, 0x00000004 },
    { 0x00cc2000, 0x00000004 },
    { 0x08c0539e, 0x00000040 },
    { 0x00008000, 0000000000 },
    { 0x03c00830, 0x00000004 },
    { 0x4200e000, 0000000000 },
    { 0x0000a000, 0x00000004 },
    { 0x200045e0, 0x00000004 },
    { 0x0000e5e1, 0000000000 },
    { 0x00000001, 0000000000 },
    { 0x000700c4, 0x00000004 },
    { 0x0800e394, 0000000000 },
    { 0000000000, 0000000000 },
    { 0x0000e8c4, 0x00000004 },
    { 0x0000e8c5, 0x00000004 },
    { 0x0000e8c6, 0x00000004 },
    { 0x0000e928, 0x00000004 },
    { 0x0000e929, 0x00000004 },
    { 0x0000e92a, 0x00000004 },
    { 0x000000c8, 0x00000008 },
    { 0x0000e928, 0x00000004 },
    { 0x0000e929, 0x00000004 },
    { 0x0000e92a, 0x00000004 },
    { 0x000000cf, 0x00000008 },
    { 0x02c02000, 0x00000004 },
    { 0x00060000, 0x00000004 },
    { 0x000000d7, 0x00000034 },
    { 0x000000d4, 0x00000008 },
    { 0x00008000, 0x00000004 },
    { 0xc000e000, 0000000000 },
    { 0x0000e1cc, 0x00000004 },
    { 0x0500e1cd, 0x00000004 },
    { 0x000ca000, 0x00000004 },
    { 0x000000de, 0x00000034 },
    { 0x000000da, 0x00000008 },
    { 0x0000a000, 0000000000 },
    { 0x0019e1cc, 0x00000004 },
    { 0x001b0001, 0x00000004 },
    { 0x0500a000, 0x00000004 },
    { 0x080041cd, 0x00000004 },
    { 0x000ca000, 0x00000004 },
    { 0x000000fb, 0x00000034 },
    { 0x0000004a, 0x00000008 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0x000c2000, 0x00000004 },
    { 0x001d0018, 0x00000004 },
    { 0x001a0001, 0x00000004 },
    { 0x000000fb, 0x00000034 },
    { 0x0000004a, 0x00000008 },
    { 0x0500a04a, 0x00000008 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
};

static const u32 RS600_cp_microcode[][2]={
    { 0x4200e000, 0000000000 },
    { 0x4000e000, 0000000000 },
    { 0x000000a0, 0x00000008 },
    { 0x000000a4, 0x00000008 },
    { 0x4a554b4a, 0000000000 },
    { 0x4a4a4467, 0000000000 },
    { 0x55526f75, 0000000000 },
    { 0x4a7e7d65, 0000000000 },
    { 0x4ae74af6, 0000000000 },
    { 0x4ad34a4a, 0000000000 },
    { 0xd6898989, 0000000000 },
    { 0xcd4addcf, 0000000000 },
    { 0x8ebe4ae2, 0000000000 },
    { 0xc38a8a8a, 0000000000 },
    { 0x4a0f8cc8, 0000000000 },
    { 0x000ca000, 0x00000004 },
    { 0x000d0012, 0x00000038 },
    { 0x0000e8b4, 0x00000004 },
    { 0x000d0014, 0x00000038 },
    { 0x0000e8b6, 0x00000004 },
    { 0x000d0016, 0x00000038 },
    { 0x0000e854, 0x00000004 },
    { 0x000d0018, 0x00000038 },
    { 0x0000e855, 0x00000004 },
    { 0x000d001a, 0x00000038 },
    { 0x0000e856, 0x00000004 },
    { 0x000d001c, 0x00000038 },
    { 0x0000e857, 0x00000004 },
    { 0x000d001e, 0x00000038 },
    { 0x0000e824, 0x00000004 },
    { 0x000d0020, 0x00000038 },
    { 0x0000e825, 0x00000004 },
    { 0x000d0022, 0x00000038 },
    { 0x0000e830, 0x00000004 },
    { 0x000d0024, 0x00000038 },
    { 0x0000f0c0, 0x00000004 },
    { 0x000d0026, 0x00000038 },
    { 0x0000f0c1, 0x00000004 },
    { 0x000d0028, 0x00000038 },
    { 0x0000f041, 0x00000004 },
    { 0x000d002a, 0x00000038 },
    { 0x0000f184, 0x00000004 },
    { 0x000d002c, 0x00000038 },
    { 0x0000f185, 0x00000004 },
    { 0x000d002e, 0x00000038 },
    { 0x0000f186, 0x00000004 },
    { 0x000d0030, 0x00000038 },
    { 0x0000f187, 0x00000004 },
    { 0x000d0032, 0x00000038 },
    { 0x0000f180, 0x00000004 },
    { 0x000d0034, 0x00000038 },
    { 0x0000f393, 0x00000004 },
    { 0x000d0036, 0x00000038 },
    { 0x0000f38a, 0x00000004 },
    { 0x000d0038, 0x00000038 },
    { 0x0000f38e, 0x00000004 },
    { 0x0000e821, 0x00000004 },
    { 0x0140a000, 0x00000004 },
    { 0x00000043, 0x00000018 },
    { 0x00cce800, 0x00000004 },
    { 0x001b0001, 0x00000004 },
    { 0x08004800, 0x00000004 },
    { 0x001b0001, 0x00000004 },
    { 0x08004800, 0x00000004 },
    { 0x001b0001, 0x00000004 },
    { 0x08004800, 0x00000004 },
    { 0x0000003a, 0x00000008 },
    { 0x0000a000, 0000000000 },
    { 0x2000451d, 0x00000004 },
    { 0x0000e580, 0x00000004 },
    { 0x000ce581, 0x00000004 },
    { 0x08004580, 0x00000004 },
    { 0x000ce581, 0x00000004 },
    { 0x00000047, 0x00000008 },
    { 0x0000a000, 0000000000 },
    { 0x000c2000, 0x00000004 },
    { 0x0000e50e, 0x00000004 },
    { 0x00032000, 0x00000004 },
    { 0x00022051, 0x00000028 },
    { 0x00000051, 0x00000024 },
    { 0x0800450f, 0x00000004 },
    { 0x0000a04b, 0x00000008 },
    { 0x0000e565, 0x00000004 },
    { 0x0000e566, 0x00000004 },
    { 0x00000052, 0x00000008 },
    { 0x03cca5b4, 0x00000004 },
    { 0x05432000, 0x00000004 },
    { 0x00022000, 0x00000004 },
    { 0x4ccce05e, 0x00000030 },
    { 0x08274565, 0x00000004 },
    { 0x0000005e, 0x00000030 },
    { 0x08004564, 0x00000004 },
    { 0x0000e566, 0x00000004 },
    { 0x00000055, 0x00000008 },
    { 0x00802061, 0x00000010 },
    { 0x00202000, 0x00000004 },
    { 0x001b00ff, 0x00000004 },
    { 0x01000064, 0x00000010 },
    { 0x001f2000, 0x00000004 },
    { 0x001c00ff, 0x00000004 },
    { 0000000000, 0x0000000c },
    { 0x00000072, 0x00000030 },
    { 0x00000055, 0x00000008 },
    { 0x0000e576, 0x00000004 },
    { 0x0000e577, 0x00000004 },
    { 0x0000e50e, 0x00000004 },
    { 0x0000e50f, 0x00000004 },
    { 0x0140a000, 0x00000004 },
    { 0x00000069, 0x00000018 },
    { 0x00c0e5f9, 0x000000c2 },
    { 0x00000069, 0x00000008 },
    { 0x0014e50e, 0x00000004 },
    { 0x0040e50f, 0x00000004 },
    { 0x00c0006c, 0x00000008 },
    { 0x0000e570, 0x00000004 },
    { 0x0000e571, 0x00000004 },
    { 0x0000e572, 0x0000000c },
    { 0x0000a000, 0x00000004 },
    { 0x0140a000, 0x00000004 },
    { 0x0000e568, 0x00000004 },
    { 0x000c2000, 0x00000004 },
    { 0x00000076, 0x00000018 },
    { 0x000b0000, 0x00000004 },
    { 0x18c0e562, 0x00000004 },
    { 0x00000078, 0x00000008 },
    { 0x00c00077, 0x00000008 },
    { 0x000700d5, 0x00000004 },
    { 0x00000084, 0x00000038 },
    { 0x000ca086, 0x00000030 },
    { 0x080045bb, 0x00000004 },
    { 0x000c2087, 0x00000030 },
    { 0x0800e5bc, 0000000000 },
    { 0x0000e5bb, 0x00000004 },
    { 0x0000e5bc, 0000000000 },
    { 0x00120000, 0x0000000c },
    { 0x00120000, 0x00000004 },
    { 0x001b0002, 0x0000000c },
    { 0x0000a000, 0x00000004 },
    { 0x0000e821, 0x00000004 },
    { 0x0000e800, 0000000000 },
    { 0x0000e821, 0x00000004 },
    { 0x0000e82e, 0000000000 },
    { 0x02cca000, 0x00000004 },
    { 0x00140000, 0x00000004 },
    { 0x000ce1cc, 0x00000004 },
    { 0x050de1cd, 0x00000004 },
    { 0x00400000, 0x00000004 },
    { 0x00000096, 0x00000018 },
    { 0x00c0a000, 0x00000004 },
    { 0x00000093, 0x00000008 },
    { 0x00000098, 0x00000020 },
    { 0x4200e000, 0000000000 },
    { 0x0000009f, 0x00000038 },
    { 0x000ca000, 0x00000004 },
    { 0x00140000, 0x00000004 },
    { 0x000c2000, 0x00000004 },
    { 0x00160000, 0x00000004 },
    { 0x700ce000, 0x00000004 },
    { 0x0014009b, 0x00000008 },
    { 0x4000e000, 0000000000 },
    { 0x02400000, 0x00000004 },
    { 0x400ee000, 0x00000004 },
    { 0x02400000, 0x00000004 },
    { 0x4000e000, 0000000000 },
    { 0x000c2000, 0x00000004 },
    { 0x0240e51b, 0x00000004 },
    { 0x0080e50a, 0x00000005 },
    { 0x0080e50b, 0x00000005 },
    { 0x00220000, 0x00000004 },
    { 0x000700d5, 0x00000004 },
    { 0x000000b2, 0x00000038 },
    { 0x000c2087, 0x00000030 },
    { 0x0880e5bd, 0x00000005 },
    { 0x000c2086, 0x00000030 },
    { 0x0800e5bb, 0x00000005 },
    { 0x000c2087, 0x00000030 },
    { 0x0880e5bc, 0x00000005 },
    { 0x000000b5, 0x00000008 },
    { 0x0080e5bd, 0x00000005 },
    { 0x0000e5bb, 0x00000005 },
    { 0x0080e5bc, 0x00000005 },
    { 0x00210000, 0x00000004 },
    { 0x02800000, 0x00000004 },
    { 0x00c000b9, 0x00000018 },
    { 0x4180e000, 0x00000040 },
    { 0x000000bb, 0x00000024 },
    { 0x01000000, 0x0000000c },
    { 0x0100e51d, 0x0000000c },
    { 0x000045bb, 0x00000004 },
    { 0x000080b5, 0x00000008 },
    { 0x0000f3ce, 0x00000004 },
    { 0x0140a000, 0x00000004 },
    { 0x00cc2000, 0x00000004 },
    { 0x08c053cf, 0x00000040 },
    { 0x00008000, 0000000000 },
    { 0x0000f3d2, 0x00000004 },
    { 0x0140a000, 0x00000004 },
    { 0x00cc2000, 0x00000004 },
    { 0x08c053d3, 0x00000040 },
    { 0x00008000, 0000000000 },
    { 0x0000f39d, 0x00000004 },
    { 0x0140a000, 0x00000004 },
    { 0x00cc2000, 0x00000004 },
    { 0x08c0539e, 0x00000040 },
    { 0x00008000, 0000000000 },
    { 0x03c00830, 0x00000004 },
    { 0x4200e000, 0000000000 },
    { 0x0000a000, 0x00000004 },
    { 0x200045e0, 0x00000004 },
    { 0x0000e5e1, 0000000000 },
    { 0x00000001, 0000000000 },
    { 0x000700d2, 0x00000004 },
    { 0x0800e394, 0000000000 },
    { 0000000000, 0000000000 },
    { 0x0000e8c4, 0x00000004 },
    { 0x0000e8c5, 0x00000004 },
    { 0x0000e8c6, 0x00000004 },
    { 0x0000e928, 0x00000004 },
    { 0x0000e929, 0x00000004 },
    { 0x0000e92a, 0x00000004 },
    { 0x000000d6, 0x00000008 },
    { 0x0000e928, 0x00000004 },
    { 0x0000e929, 0x00000004 },
    { 0x0000e92a, 0x00000004 },
    { 0x000000dd, 0x00000008 },
    { 0x00e00116, 0000000000 },
    { 0x000700e1, 0x00000004 },
    { 0x0800401c, 0x00000004 },
    { 0x200050e7, 0x00000004 },
    { 0x0000e01d, 0x00000004 },
    { 0x000000e4, 0x00000008 },
    { 0x02c02000, 0x00000004 },
    { 0x00060000, 0x00000004 },
    { 0x000000eb, 0x00000034 },
    { 0x000000e8, 0x00000008 },
    { 0x00008000, 0x00000004 },
    { 0xc000e000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0x000c2000, 0x00000004 },
    { 0x001d0018, 0x00000004 },
    { 0x001a0001, 0x00000004 },
    { 0x000000fb, 0x00000034 },
    { 0x0000004a, 0x00000008 },
    { 0x0500a04a, 0x00000008 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
};

static const u32 RS690_cp_microcode[][2]={
    { 0x000000dd, 0x00000008 },
    { 0x000000df, 0x00000008 },
    { 0x000000a0, 0x00000008 },
    { 0x000000a4, 0x00000008 },
    { 0x4a554b4a, 0000000000 },
    { 0x4a4a4467, 0000000000 },
    { 0x55526f75, 0000000000 },
    { 0x4a7e7d65, 0000000000 },
    { 0x4ad74af6, 0000000000 },
    { 0x4ac94a4a, 0000000000 },
    { 0xcc898989, 0000000000 },
    { 0xc34ad3c5, 0000000000 },
    { 0x8e4a4a4a, 0000000000 },
    { 0x4a8a8a8a, 0000000000 },
    { 0x4a0f8c4a, 0000000000 },
    { 0x000ca000, 0x00000004 },
    { 0x000d0012, 0x00000038 },
    { 0x0000e8b4, 0x00000004 },
    { 0x000d0014, 0x00000038 },
    { 0x0000e8b6, 0x00000004 },
    { 0x000d0016, 0x00000038 },
    { 0x0000e854, 0x00000004 },
    { 0x000d0018, 0x00000038 },
    { 0x0000e855, 0x00000004 },
    { 0x000d001a, 0x00000038 },
    { 0x0000e856, 0x00000004 },
    { 0x000d001c, 0x00000038 },
    { 0x0000e857, 0x00000004 },
    { 0x000d001e, 0x00000038 },
    { 0x0000e824, 0x00000004 },
    { 0x000d0020, 0x00000038 },
    { 0x0000e825, 0x00000004 },
    { 0x000d0022, 0x00000038 },
    { 0x0000e830, 0x00000004 },
    { 0x000d0024, 0x00000038 },
    { 0x0000f0c0, 0x00000004 },
    { 0x000d0026, 0x00000038 },
    { 0x0000f0c1, 0x00000004 },
    { 0x000d0028, 0x00000038 },
    { 0x0000f041, 0x00000004 },
    { 0x000d002a, 0x00000038 },
    { 0x0000f184, 0x00000004 },
    { 0x000d002c, 0x00000038 },
    { 0x0000f185, 0x00000004 },
    { 0x000d002e, 0x00000038 },
    { 0x0000f186, 0x00000004 },
    { 0x000d0030, 0x00000038 },
    { 0x0000f187, 0x00000004 },
    { 0x000d0032, 0x00000038 },
    { 0x0000f180, 0x00000004 },
    { 0x000d0034, 0x00000038 },
    { 0x0000f393, 0x00000004 },
    { 0x000d0036, 0x00000038 },
    { 0x0000f38a, 0x00000004 },
    { 0x000d0038, 0x00000038 },
    { 0x0000f38e, 0x00000004 },
    { 0x0000e821, 0x00000004 },
    { 0x0140a000, 0x00000004 },
    { 0x00000043, 0x00000018 },
    { 0x00cce800, 0x00000004 },
    { 0x001b0001, 0x00000004 },
    { 0x08004800, 0x00000004 },
    { 0x001b0001, 0x00000004 },
    { 0x08004800, 0x00000004 },
    { 0x001b0001, 0x00000004 },
    { 0x08004800, 0x00000004 },
    { 0x0000003a, 0x00000008 },
    { 0x0000a000, 0000000000 },
    { 0x2000451d, 0x00000004 },
    { 0x0000e580, 0x00000004 },
    { 0x000ce581, 0x00000004 },
    { 0x08004580, 0x00000004 },
    { 0x000ce581, 0x00000004 },
    { 0x00000047, 0x00000008 },
    { 0x0000a000, 0000000000 },
    { 0x000c2000, 0x00000004 },
    { 0x0000e50e, 0x00000004 },
    { 0x00032000, 0x00000004 },
    { 0x00022051, 0x00000028 },
    { 0x00000051, 0x00000024 },
    { 0x0800450f, 0x00000004 },
    { 0x0000a04b, 0x00000008 },
    { 0x0000e565, 0x00000004 },
    { 0x0000e566, 0x00000004 },
    { 0x00000052, 0x00000008 },
    { 0x03cca5b4, 0x00000004 },
    { 0x05432000, 0x00000004 },
    { 0x00022000, 0x00000004 },
    { 0x4ccce05e, 0x00000030 },
    { 0x08274565, 0x00000004 },
    { 0x0000005e, 0x00000030 },
    { 0x08004564, 0x00000004 },
    { 0x0000e566, 0x00000004 },
    { 0x00000055, 0x00000008 },
    { 0x00802061, 0x00000010 },
    { 0x00202000, 0x00000004 },
    { 0x001b00ff, 0x00000004 },
    { 0x01000064, 0x00000010 },
    { 0x001f2000, 0x00000004 },
    { 0x001c00ff, 0x00000004 },
    { 0000000000, 0x0000000c },
    { 0x00000072, 0x00000030 },
    { 0x00000055, 0x00000008 },
    { 0x0000e576, 0x00000004 },
    { 0x0000e577, 0x00000004 },
    { 0x0000e50e, 0x00000004 },
    { 0x0000e50f, 0x00000004 },
    { 0x0140a000, 0x00000004 },
    { 0x00000069, 0x00000018 },
    { 0x00c0e5f9, 0x000000c2 },
    { 0x00000069, 0x00000008 },
    { 0x0014e50e, 0x00000004 },
    { 0x0040e50f, 0x00000004 },
    { 0x00c0006c, 0x00000008 },
    { 0x0000e570, 0x00000004 },
    { 0x0000e571, 0x00000004 },
    { 0x0000e572, 0x0000000c },
    { 0x0000a000, 0x00000004 },
    { 0x0140a000, 0x00000004 },
    { 0x0000e568, 0x00000004 },
    { 0x000c2000, 0x00000004 },
    { 0x00000076, 0x00000018 },
    { 0x000b0000, 0x00000004 },