3 #include "nouveau_drv.h"
4 #include "nouveau_drm.h"
7 nv40_mc_init(struct drm_device
*dev
)
9 /* Power up everything, resetting each individual unit will
10 * be done later if needed.
12 nv_wr32(dev
, NV03_PMC_ENABLE
, 0xFFFFFFFF);
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
);
26 nv40_mc_takedown(struct drm_device
*dev
)