3 #include "nouveau_drv.h"
4 #include "nouveau_drm.h"
7 nv10_fb_init(struct drm_device
*dev
)
9 struct drm_nouveau_private
*dev_priv
= dev
->dev_private
;
13 fb_bar_size
= drm_get_resource_len(dev
, 0) - 1;
14 for (i
=0; i
<NV10_PFB_TILE__SIZE
; i
++) {
15 NV_WRITE(NV10_PFB_TILE(i
), 0);
16 NV_WRITE(NV10_PFB_TLIMIT(i
), fb_bar_size
);
23 nv10_fb_takedown(struct drm_device
*dev
)