diff options
author | Michel Daenzer <michel@daenzer.net> | 2003-05-16 23:41:27 +0000 |
---|---|---|
committer | Michel Daenzer <michel@daenzer.net> | 2003-05-16 23:41:27 +0000 |
commit | e5d3c7f260d18168eec755c73f01ac617390d96c (patch) | |
tree | 9628a3f566362142f10f7d0109a1a218cbc5ddc4 /linux/i810_dma.c | |
parent | 1d5bf7a7de35f87e68cce740151fd46cd8fa2ff3 (diff) |
Support AGP bridges where the AGP aperture can't be accessed directly by
the CPU (David Mosberger, Benjamin Herrenschmidt, myself, Paul
Mackerras, Jeff Wiedemeier)
Diffstat (limited to 'linux/i810_dma.c')
-rw-r--r-- | linux/i810_dma.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/linux/i810_dma.c b/linux/i810_dma.c index 8e0e8f45..678610c6 100644 --- a/linux/i810_dma.c +++ b/linux/i810_dma.c @@ -253,7 +253,7 @@ int i810_dma_cleanup(drm_device_t *dev) if(dev_priv->ring.virtual_start) { DRM(ioremapfree)((void *) dev_priv->ring.virtual_start, - dev_priv->ring.Size); + dev_priv->ring.Size, dev); } if (dev_priv->hw_status_page) { pci_free_consistent(dev->pdev, PAGE_SIZE, @@ -270,7 +270,7 @@ int i810_dma_cleanup(drm_device_t *dev) drm_buf_t *buf = dma->buflist[ i ]; drm_i810_buf_priv_t *buf_priv = buf->dev_private; if ( buf_priv->kernel_virtual && buf->total ) - DRM(ioremapfree)(buf_priv->kernel_virtual, buf->total); + DRM(ioremapfree)(buf_priv->kernel_virtual, buf->total, dev); } } return 0; @@ -340,7 +340,7 @@ static int i810_freelist_init(drm_device_t *dev, drm_i810_private_t *dev_priv) *buf_priv->in_use = I810_BUF_FREE; buf_priv->kernel_virtual = DRM(ioremap)(buf->bus_address, - buf->total); + buf->total, dev); } return 0; } @@ -393,7 +393,7 @@ static int i810_dma_initialize(drm_device_t *dev, dev_priv->ring.virtual_start = DRM(ioremap)(dev->agp->base + init->ring_start, - init->ring_size); + init->ring_size, dev); if (dev_priv->ring.virtual_start == NULL) { dev->dev_private = (void *) dev_priv; |