summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/radeon_drv.c
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2009-02-05 00:25:52 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2009-02-05 00:25:52 +0000
commit48ebf84cb1cf60450fb5790980135ca5b130f99c (patch)
tree943303f793368fefc00aaf0150bba2f429e58907 /sys/dev/pci/drm/radeon_drv.c
parent9f999dadd4b348d0252c59054ddcc0c0e62a97ff (diff)
Merge the static block allocation code from {i915,radeon}_mem.c into
non-static code that's shared between both. While i'm here convert them to TAILQ. Eventually, both of these will die, but until then I'd rather shave the space in the kernel. Tested on radeon and intel.
Diffstat (limited to 'sys/dev/pci/drm/radeon_drv.c')
-rw-r--r--sys/dev/pci/drm/radeon_drv.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/radeon_drv.c b/sys/dev/pci/drm/radeon_drv.c
index d287e850d0a..eccdcc09f87 100644
--- a/sys/dev/pci/drm/radeon_drv.c
+++ b/sys/dev/pci/drm/radeon_drv.c
@@ -587,6 +587,9 @@ radeondrm_attach(struct device *parent, struct device *self, void *aux)
is_agp = pci_get_capability(pa->pa_pc, pa->pa_tag, PCI_CAP_AGP,
NULL, NULL);
+ TAILQ_INIT(&dev_priv->gart_heap);
+ TAILQ_INIT(&dev_priv->fb_heap);
+
dev_priv->drmdev = drm_attach_pci(&radeondrm_driver, pa, is_agp, self);
}