use the baseaddr at least

main
Dave Airlie 2007-04-11 14:04:18 +10:00
parent 7e58276c76
commit b329f91502
1 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ int i915_driver_load(drm_device_t *dev, unsigned long flags)
dev_priv->sarea_priv = kmalloc(sizeof(drm_i915_sarea_t), GFP_KERNEL);
/* FIXME: need real front buffer offset */
dev_priv->sarea_priv->front_handle = 0xa0000000 + 1024*1024;
dev_priv->sarea_priv->front_handle = dev_priv->baseaddr + 1024*1024;
drm_bo_driver_init(dev);
/* this probably doesn't belong here - TODO */
@ -73,7 +73,7 @@ int i915_driver_load(drm_device_t *dev, unsigned long flags)
drm_set_desired_modes(dev);
/* FIXME: command ring needs AGP space, do we own it at this point? */
dev_priv->ring.Start = 0xa0000000;
dev_priv->ring.Start = dev_priv->baseaddr;
dev_priv->ring.End = 128*1024;
dev_priv->ring.Size = 128*1024;
dev_priv->ring.tail_mask = dev_priv->ring.Size - 1;