patch-2.4.25 linux-2.4.25/drivers/char/drm-4.0/r128_cce.c
Next file: linux-2.4.25/drivers/char/drm-4.0/r128_drv.c
Previous file: linux-2.4.25/drivers/char/drm-4.0/mga_drv.c
Back to the patch index
Back to the overall index
- Lines: 50
- Date:
2004-02-18 05:36:31.000000000 -0800
- Orig file:
linux-2.4.24/drivers/char/drm-4.0/r128_cce.c
- Orig date:
2002-02-25 11:37:57.000000000 -0800
diff -urN linux-2.4.24/drivers/char/drm-4.0/r128_cce.c linux-2.4.25/drivers/char/drm-4.0/r128_cce.c
@@ -86,12 +86,12 @@
};
-#define DO_REMAP(_m) (_m)->handle = drm_ioremap((_m)->offset, (_m)->size)
+#define DO_REMAP(_m, _d) (_m)->handle = drm_ioremap((_m)->offset, (_m)->size, (_d))
-#define DO_REMAPFREE(_m) \
+#define DO_REMAPFREE(_m, _d) \
do { \
if ((_m)->handle && (_m)->size) \
- drm_ioremapfree((_m)->handle, (_m)->size); \
+ drm_ioremapfree((_m)->handle, (_m)->size, (_d)); \
} while (0)
#define DO_FIND_MAP(_m, _o) \
@@ -481,12 +481,12 @@
(drm_r128_sarea_t *)((u8 *)dev_priv->sarea->handle +
init->sarea_priv_offset);
- DO_REMAP( dev_priv->cce_ring );
- DO_REMAP( dev_priv->ring_rptr );
- DO_REMAP( dev_priv->buffers );
+ DO_REMAP( dev_priv->cce_ring, dev );
+ DO_REMAP( dev_priv->ring_rptr, dev );
+ DO_REMAP( dev_priv->buffers, dev );
#if 0
if ( !dev_priv->is_pci ) {
- DO_REMAP( dev_priv->agp_textures );
+ DO_REMAP( dev_priv->agp_textures, dev );
}
#endif
@@ -521,12 +521,12 @@
if ( dev->dev_private ) {
drm_r128_private_t *dev_priv = dev->dev_private;
- DO_REMAPFREE( dev_priv->cce_ring );
- DO_REMAPFREE( dev_priv->ring_rptr );
- DO_REMAPFREE( dev_priv->buffers );
+ DO_REMAPFREE( dev_priv->cce_ring, dev );
+ DO_REMAPFREE( dev_priv->ring_rptr, dev );
+ DO_REMAPFREE( dev_priv->buffers, dev );
#if 0
if ( !dev_priv->is_pci ) {
- DO_REMAPFREE( dev_priv->agp_textures );
+ DO_REMAPFREE( dev_priv->agp_textures, dev );
}
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)