3 #include "nouveau_drv.h"
4 #include "nouveau_drm.h"
7 nv40_mc_init(struct drm_device
*dev
)
9 struct drm_nouveau_private
*dev_priv
= dev
->dev_private
;
12 /* Power up everything, resetting each individual unit will
13 * be done later if needed.
15 NV_WRITE(NV03_PMC_ENABLE
, 0xFFFFFFFF);
17 switch (dev_priv
->chipset
) {
21 case 0x4c: /* C51_G7X */
22 tmp
= NV_READ(NV10_PFB_CSTATUS
);
23 NV_WRITE(NV40_PMC_1700
, tmp
);
24 NV_WRITE(NV40_PMC_1704
, 0);
25 NV_WRITE(NV40_PMC_1708
, 0);
26 NV_WRITE(NV40_PMC_170C
, tmp
);
36 nv40_mc_takedown(struct drm_device
*dev
)