1 #include "drmP.h"
2 #include "drm.h"
3 #include "nouveau_drv.h"
4 #include "nouveau_drm.h"
5 
6 int
nv40_mc_init(struct drm_device * dev)7 nv40_mc_init(struct drm_device *dev)
8 {
9 	/* Power up everything, resetting each individual unit will
10 	 * be done later if needed.
11 	 */
12 	nv_wr32(dev, NV03_PMC_ENABLE, 0xFFFFFFFF);
13 
14 	if (nv44_graph_class(dev)) {
15 		u32 tmp = nv_rd32(dev, NV04_PFB_FIFO_DATA);
16 		nv_wr32(dev, NV40_PMC_1700, tmp);
17 		nv_wr32(dev, NV40_PMC_1704, 0);
18 		nv_wr32(dev, NV40_PMC_1708, 0);
19 		nv_wr32(dev, NV40_PMC_170C, tmp);
20 	}
21 
22 	return 0;
23 }
24 
25 void
nv40_mc_takedown(struct drm_device * dev)26 nv40_mc_takedown(struct drm_device *dev)
27 {
28 }
29