summaryrefslogtreecommitdiff
path: root/linux/drm_stub.h
blob: a09f08b896fbe069106e4bbba01c9725251e9f31 (plain)
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
/**
 * \file drm_stub.h
 * Stub support
 *
 * \author Rickard E. (Rik) Faith <faith@valinux.com>
 */

/*
 * Created: Fri Jan 19 10:48:35 2001 by faith@acm.org
 *
 * Copyright 2001 VA Linux Systems, Inc., Sunnyvale, California.
 * 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
 * PRECISION INSIGHT 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.
 */

#include "drmP.h"

static unsigned int cards_limit = 16;	/* Enough for one machine */
static unsigned int debug = 0;		/* 1 to enable debug output */

MODULE_AUTHOR( DRIVER_AUTHOR );
MODULE_DESCRIPTION( DRIVER_DESC );
MODULE_LICENSE("GPL and additional rights");
MODULE_PARM_DESC(cards_limit, "Maximum number of graphics cards");
MODULE_PARM_DESC(debug, "Enable debug output");

module_param(cards_limit, int, 0444);
module_param(debug, int, 0666);

drm_global_t *DRM(global);

/**
 * File \c open operation.
 *
 * \param inode device inode.
 * \param filp file pointer.
 *
 * Puts the dev->fops corresponding to the device minor number into
 * \p filp, call the \c open method, and restore the file operations.
 */
static int stub_open(struct inode *inode, struct file *filp)
{
	drm_device_t *dev = NULL;
	int minor = iminor(inode);
	int err = -ENODEV;
	struct file_operations *old_fops;
	
	DRM_DEBUG("\n");

	if (!((minor >= 0) && (minor < DRM(global)->cards_limit)))
		return -ENODEV;

	dev = DRM(global)->minors[minor].dev;
	if (!dev)
		return -ENODEV;

	old_fops = filp->f_op;
	filp->f_op = fops_get(dev->fops);
	if (filp->f_op->open && (err = filp->f_op->open(inode, filp))) {
		fops_put(filp->f_op);
		filp->f_op = fops_get(old_fops);
	}
	fops_put(old_fops);

	return err;
}

/** File operations structure */
static struct file_operations DRM(stub_fops) = {
	.owner = THIS_MODULE,
	.open  = stub_open
};


/**
 * Get a device minor number.
 *
 * \param pdev PCI device structure
 * \param ent entry from the PCI ID table with device type flags
 * \return negative number on failure.
 *
 * Search an empty entry and initialize it to the given parameters, and 
 * create the proc init entry via proc_init().
 */
static int get_minor(struct pci_dev *pdev, const struct pci_device_id *ent)
{
	struct class_device *dev_class;
	drm_device_t *dev;
	int ret;
	int minor;
	drm_minor_t *minors = &DRM(global)->minors[0];

	DRM_DEBUG("\n");

	for (minor = 0; minor < DRM(global)->cards_limit; minor++, minors++) {
		if (minors->class == DRM_MINOR_FREE) {

			DRM_DEBUG("assigning minor %d\n", minor);
			dev = DRM(calloc)(1, sizeof(*dev), DRM_MEM_STUB);
			if(!dev) 
				return -ENOMEM;

			*minors = (drm_minor_t){.dev = dev, .class = DRM_MINOR_PRIMARY};
			dev->minor = minor;
			if ((ret = DRM(fill_in_dev)(dev, pdev, ent))) {
				printk (KERN_ERR "DRM: Fill_in_dev failed.\n");
				goto err_g1;
			}
			if ((ret = DRM(proc_init)(dev, minor, DRM(global)->proc_root, &minors->dev_root))) {
				printk (KERN_ERR "DRM: Failed to initialize /proc/dri.\n");
				goto err_g1;
			}
			if (!DRM(fb_loaded)) {
				pci_set_drvdata(pdev, dev);
				pci_request_regions(pdev, DRIVER_NAME);
				pci_enable_device(pdev);
			}
			dev_class = DRM(sysfs_device_add)(DRM(global)->drm_class, 
					MKDEV(DRM_MAJOR, minor), DRM_PCI_DEV(pdev), "card%d", minor);
			if (IS_ERR(dev_class)) {
				printk (KERN_ERR "DRM: Error sysfs_device_add.\n");
				ret = PTR_ERR(dev_class);
				goto err_g2;
			}

			DRM_DEBUG("new primary minor assigned %d\n", minor);
			return 0;
		}
	}
	DRM_ERROR("out of minors\n");
	return -ENOMEM;
err_g2:
	if (!DRM(fb_loaded)) {
		pci_set_drvdata(pdev, NULL);
		pci_release_regions(pdev);
		pci_disable_device(pdev);
	}
	DRM(proc_cleanup)(minor, DRM(global)->proc_root, minors->dev_root);
err_g1:
	*minors = (drm_minor_t){.dev = NULL, .class = DRM_MINOR_FREE};
	DRM(free)(dev, sizeof(*dev), DRM_MEM_STUB);
	return ret;
}

/**
 * Get a secondary minor number.
 *
 * \param dev device data structure
 * \param sec-minor structure to hold the assigned minor
 * \return negative number on failure.
 *
 * Search an empty entry and initialize it to the given parameters, and 
 * create the proc init entry via proc_init(). This routines assigns
 * minor numbers to secondary heads of multi-headed cards
 */
int DRM(get_secondary_minor)(drm_device_t *dev, drm_minor_t **sec_minor)
{
	drm_minor_t *minors = &DRM(global)->minors[0];
	struct class_device *dev_class;
	int ret;
	int minor;

	DRM_DEBUG("\n");

	for (minor = 0; minor < DRM(global)->cards_limit; minor++, minors++) {
		if (minors->class == DRM_MINOR_FREE) {

			*minors = (drm_minor_t){.dev = dev, .class = DRM_MINOR_SECONDARY};
			if ((ret = DRM(proc_init)(dev, minor, DRM(global)->proc_root, &minors->dev_root))) {
				printk (KERN_ERR "DRM: Failed to initialize /proc/dri.\n");
				goto err_g1;
			}

			dev_class = DRM(sysfs_device_add)(DRM(global)->drm_class, 
					MKDEV(DRM_MAJOR, minor), DRM_PCI_DEV(dev->pdev), "card%d", minor);
			if (IS_ERR(dev_class)) {
				printk (KERN_ERR "DRM: Error sysfs_device_add.\n");
				ret = PTR_ERR(dev_class);
				goto err_g2;
			}
			*sec_minor = minors;

			DRM_DEBUG("new secondary minor assigned %d\n", minor);
			return 0;
		}
	}
	DRM_ERROR("out of minors\n");
	return -ENOMEM;
err_g2:
	DRM(proc_cleanup)(minor, DRM(global)->proc_root, minors->dev_root);
err_g1:
	*minors = (drm_minor_t){.dev = NULL, .class = DRM_MINOR_FREE};
	DRM(free)(dev, sizeof(*dev), DRM_MEM_STUB);
	return ret;
}

/**
 * Put a device minor number.
 *
 * \param dev device data structure
 * \return always zero
 *
 * Cleans up the proc resources. If it is the last minor then release the foreign
 * "drm" data, otherwise unregisters the "drm" data, frees the dev list and
 * unregisters the character device. 
 */
int DRM(put_minor)(drm_device_t *dev)
{
	drm_minor_t *minors = &DRM(global)->minors[dev->minor];
	int i;
	
	DRM_DEBUG("release primary minor %d\n", dev->minor);

	DRM(proc_cleanup)(dev->minor, DRM(global)->proc_root, minors->dev_root);
	DRM(sysfs_device_remove)(MKDEV(DRM_MAJOR, dev->minor));

	*minors = (drm_minor_t){.dev = NULL, .class = DRM_MINOR_FREE};
	DRM(free)(dev, sizeof(*dev), DRM_MEM_STUB);

	/* if any device pointers are non-NULL we are not the last module */
	for (i = 0; i < DRM(global)->cards_limit; i++) {
		if (DRM(global)->minors[i].class != DRM_MINOR_FREE) {
			DRM_DEBUG("inter_module_put called\n");
			inter_module_put("drm");
			return 0;
		}
	}
	DRM_DEBUG("unregistering inter_module \n");
	inter_module_unregister("drm");
	remove_proc_entry("dri", NULL);
	DRM(sysfs_destroy)(DRM(global)->drm_class);

	unregister_chrdev(DRM_MAJOR, "drm");

	DRM(free)(DRM(global)->minors, sizeof(*DRM(global)->minors) *
				DRM(global)->cards_limit, DRM_MEM_STUB);
	DRM(free)(DRM(global), sizeof(*DRM(global)), DRM_MEM_STUB);
	DRM(global) = NULL;

	return 0;
}

/**
 * Put a secondary minor number.
 *
 * \param sec_minor - structure to be released
 * \return always zero
 *
 * Cleans up the proc resources. Not legal for this to be the
 * last minor released.
 * 
 */
int DRM(put_secondary_minor)(drm_minor_t *sec_minor)
{
	int minor = sec_minor - &DRM(global)->minors[0];

	DRM_DEBUG("release secondary minor %d\n", minor);

	DRM(proc_cleanup)(minor, DRM(global)->proc_root, sec_minor->dev_root);
	DRM(sysfs_device_remove)(MKDEV(DRM_MAJOR, minor));

	*sec_minor = (drm_minor_t){.dev = NULL, .class = DRM_MINOR_FREE};

	return 0;
}

/**
 * Register.
 *
 * \param pdev - PCI device structure
 * \param ent entry from the PCI ID table with device type flags
 * \return zero on success or a negative number on failure.
 *
 * Attempt to gets inter module "drm" information. If we are first
 * then register the character device and inter module information.
 * Try and register, if we fail to register, backout previous work.
 */
int DRM(probe)(struct pci_dev *pdev, const struct pci_device_id *ent)
{
	drm_global_t *global;
	int ret = -ENOMEM;

	DRM_DEBUG("\n");

	/* use the inter_module_get to check - as if the same module
		registers chrdev twice it succeeds */
	global = (drm_global_t *)inter_module_get("drm");
	if (global) {
		DRM(global) = global;
		global = NULL;
	} else {
		DRM_DEBUG("first probe\n");

		global = DRM(calloc)(1, sizeof(*global), DRM_MEM_STUB);
		if(!global) 
			return -ENOMEM;

		global->cards_limit = (cards_limit < DRM_MAX_MINOR + 1 ? cards_limit : DRM_MAX_MINOR + 1);
		global->minors = DRM(calloc)(global->cards_limit, 
					sizeof(*global->minors), DRM_MEM_STUB);
		if(!global->minors) 
			goto err_p1;

		if (register_chrdev(DRM_MAJOR, "drm", &DRM(stub_fops)))
			goto err_p1;
	
		global->drm_class = DRM(sysfs_create)(THIS_MODULE, "drm");
		if (IS_ERR(global->drm_class)) {
			printk (KERN_ERR "DRM: Error creating drm class.\n");
			ret = PTR_ERR(global->drm_class);
			goto err_p2;
		}

		global->proc_root = create_proc_entry("dri", S_IFDIR, NULL);
		if (!global->proc_root) {
			DRM_ERROR("Cannot create /proc/dri\n");
			ret = -1;
			goto err_p3;
		}
		DRM_DEBUG("calling inter_module_register\n");
		inter_module_register("drm", THIS_MODULE, global);
		
		DRM(global) = global;
	}
	if ((ret = get_minor(pdev, ent))) {
		if (global)
			goto err_p3;
		return ret;
	}
	return 0;
err_p3:
	DRM(sysfs_destroy)(global->drm_class);
err_p2:
	unregister_chrdev(DRM_MAJOR, "drm");
	DRM(free)(global->minors, sizeof(*global->minors) * global->cards_limit, DRM_MEM_STUB);
err_p1:	
	DRM(free)(global, sizeof(*global), DRM_MEM_STUB);
	DRM(global) = NULL;
	return ret;
}
='n1559' href='#n1559'>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 },
    { 0x18c0e562, 0x00000004 },
    { 0x00000078, 0x00000008 },
    { 0x00c00077, 0x00000008 },
    { 0x000700cb, 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 },
    { 0x00100000, 0x0000002c },
    { 0x00004000, 0000000000 },
    { 0x080045c8, 0x00000004 },
    { 0x00240005, 0x00000004 },
    { 0x08004d0b, 0x00000004 },
    { 0x000c2000, 0x00000004 },
    { 0x0240e51b, 0x00000004 },
    { 0x0080e50a, 0x00000005 },
    { 0x0080e50b, 0x00000005 },
    { 0x00220000, 0x00000004 },
    { 0x000700cb, 0x00000004 },
    { 0x000000b7, 0x00000038 },
    { 0x000c2087, 0x00000030 },
    { 0x0880e5bd, 0x00000005 },
    { 0x000c2086, 0x00000030 },
    { 0x0800e5bb, 0x00000005 },
    { 0x000c2087, 0x00000030 },
    { 0x0880e5bc, 0x00000005 },
    { 0x000000ba, 0x00000008 },
    { 0x0080e5bd, 0x00000005 },
    { 0x0000e5bb, 0x00000005 },
    { 0x0080e5bc, 0x00000005 },
    { 0x00210000, 0x00000004 },
    { 0x02800000, 0x00000004 },
    { 0x00c000be, 0x00000018 },
    { 0x4180e000, 0x00000040 },
    { 0x000000c0, 0x00000024 },
    { 0x01000000, 0x0000000c },
    { 0x0100e51d, 0x0000000c },
    { 0x000045bb, 0x00000004 },
    { 0x000080ba, 0x00000008 },
    { 0x03c00830, 0x00000004 },
    { 0x4200e000, 0000000000 },
    { 0x0000a000, 0x00000004 },
    { 0x200045e0, 0x00000004 },
    { 0x0000e5e1, 0000000000 },
    { 0x00000001, 0000000000 },
    { 0x000700c8, 0x00000004 },
    { 0x0800e394, 0000000000 },
    { 0000000000, 0000000000 },
    { 0x0000e8c4, 0x00000004 },
    { 0x0000e8c5, 0x00000004 },
    { 0x0000e8c6, 0x00000004 },
    { 0x0000e928, 0x00000004 },
    { 0x0000e929, 0x00000004 },
    { 0x0000e92a, 0x00000004 },
    { 0x000000cc, 0x00000008 },
    { 0x0000e928, 0x00000004 },
    { 0x0000e929, 0x00000004 },
    { 0x0000e92a, 0x00000004 },
    { 0x000000d3, 0x00000008 },
    { 0x02c02000, 0x00000004 },
    { 0x00060000, 0x00000004 },
    { 0x000000db, 0x00000034 },
    { 0x000000d8, 0x00000008 },
    { 0x00008000, 0x00000004 },
    { 0xc000e000, 0000000000 },
    { 0x000000e1, 0x00000030 },
    { 0x4200e000, 0000000000 },
    { 0x000000e1, 0x00000030 },
    { 0x4000e000, 0000000000 },
    { 0x0025001b, 0x00000004 },
    { 0x00230000, 0x00000004 },
    { 0x00250005, 0x00000004 },
    { 0x000000e6, 0x00000034 },
    { 0000000000, 0x0000000c },
    { 0x00244000, 0x00000004 },
    { 0x080045c8, 0x00000004 },
    { 0x00240005, 0x00000004 },
    { 0x08004d0b, 0x0000000c },
    { 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 R520_cp_microcode[][2]={
    { 0x4200e000, 0000000000 },
    { 0x4000e000, 0000000000 },
    { 0x00000099, 0x00000008 },
    { 0x0000009d, 0x00000008 },
    { 0x4a554b4a, 0000000000 },
    { 0x4a4a4467, 0000000000 },
    { 0x55526f75, 0000000000 },
    { 0x4a7e7d65, 0000000000 },
    { 0xe0dae6f6, 0000000000 },
    { 0x4ac54a4a, 0000000000 },
    { 0xc8828282, 0000000000 },
    { 0xbf4acfc1, 0000000000 },
    { 0x87b04ad5, 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 },
    { 0x0000e000, 0x00000004 },
    { 0x000d002a, 0x00000038 },
    { 0x0000e000, 0x00000004 },
    { 0x000d002c, 0x00000038 },
    { 0x0000e000, 0x00000004 },
    { 0x000d002e, 0x00000038 },
    { 0x0000e000, 0x00000004 },
    { 0x000d0030, 0x00000038 },
    { 0x0000e000, 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 },
    { 0xdeadbeef, 0000000000 },
    { 0x00000116, 0000000000 },
    { 0x000700d3, 0x00000004 },
    { 0x080050e7, 0x00000004 },
    { 0x000700d4, 0x00000004 },
    { 0x0800401c, 0x00000004 },
    { 0x0000e01d, 0000000000 },
    { 0x02c02000, 0x00000004 },
    { 0x00060000, 0x00000004 },
    { 0x000000de, 0x00000034 },
    { 0x000000db, 0x00000008 },
    { 0x00008000, 0x00000004 },
    { 0xc000e000, 0000000000 },
    { 0x0000e1cc, 0x00000004 },
    { 0x0500e1cd, 0x00000004 },
    { 0x000ca000, 0x00000004 },
    { 0x000000e5, 0x00000034 },
    { 0x000000e1, 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 },
    { 0x000c2000, 0x00000004 },
    { 0x001d0018, 0x00000004 },
    { 0x001a0001, 0x00000004 },
    { 0x000000fb, 0x00000034 },
    { 0x0000004a, 0x00000008 },
    { 0x0500a04a, 0x00000008 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
    { 0000000000, 0000000000 },
};


#endif