No empty .Rs/.Re
[netbsd-mini2440.git] / sys / external / bsd / drm / dist / shared-core / nv10_fb.c
blob6e0773ac8c87b036784bd8fa85cef9c2b55032b1
1 #include "drmP.h"
2 #include "drm.h"
3 #include "nouveau_drv.h"
4 #include "nouveau_drm.h"
6 int
7 nv10_fb_init(struct drm_device *dev)
9 struct drm_nouveau_private *dev_priv = dev->dev_private;
10 uint32_t fb_bar_size;
11 int i;
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);
19 return 0;
22 void
23 nv10_fb_takedown(struct drm_device *dev)