diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2009-02-05 00:25:52 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2009-02-05 00:25:52 +0000 |
commit | 48ebf84cb1cf60450fb5790980135ca5b130f99c (patch) | |
tree | 943303f793368fefc00aaf0150bba2f429e58907 /sys/dev/pci/drm/i915_drv.c | |
parent | 9f999dadd4b348d0252c59054ddcc0c0e62a97ff (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/i915_drv.c')
-rw-r--r-- | sys/dev/pci/drm/i915_drv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/i915_drv.c b/sys/dev/pci/drm/i915_drv.c index 6a966387da4..a711a999857 100644 --- a/sys/dev/pci/drm/i915_drv.c +++ b/sys/dev/pci/drm/i915_drv.c @@ -164,6 +164,7 @@ inteldrm_attach(struct device *parent, struct device *self, void *aux) printf(": %s\n", pci_intr_string(pa->pa_pc, dev_priv->ih)); mtx_init(&dev_priv->user_irq_lock, IPL_BIO); + TAILQ_INIT(&dev_priv->agp_heap); /* All intel chipsets need to be treated as agp, so just pass one */ dev_priv->drmdev = drm_attach_pci(&inteldrm_driver, pa, 1, self); |