summaryrefslogtreecommitdiff
path: root/linux/mga_drv.h
diff options
context:
space:
mode:
authorGareth Hughes <gareth@users.sourceforge.net>2001-03-12 18:18:06 +0000
committerGareth Hughes <gareth@users.sourceforge.net>2001-03-12 18:18:06 +0000
commit0b60aad8a5f1e6d38bf2d254fa5209492157e344 (patch)
tree3117212742bc3d57e97afe8cd2287d3c12df7af2 /linux/mga_drv.h
parent134aecdeed19a339a147d7e88fc9b722b9794245 (diff)
Try that again...
Diffstat (limited to 'linux/mga_drv.h')
-rw-r--r--linux/mga_drv.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/linux/mga_drv.h b/linux/mga_drv.h
index f56186e1..bd33d9d1 100644
--- a/linux/mga_drv.h
+++ b/linux/mga_drv.h
@@ -36,7 +36,6 @@ typedef struct drm_mga_primary_buffer {
u8 *end;
int size;
- volatile u32 *head;
u32 tail;
int space;
@@ -246,6 +245,13 @@ do { \
#define FLUSH_DMA() \
do { \
+ if ( 0 ) { \
+ DRM_INFO( __FUNCTION__ ":\n" ); \
+ DRM_INFO( " tail=0x%06x head=0x%06lx\n", \
+ dev_priv->prim.tail, \
+ MGA_READ( MGA_PRIMADDRESS ) - \
+ dev_priv->primary->offset ); \
+ } \
if ( dev_priv->prim.space < dev_priv->prim.high_mark ) { \
mga_do_dma_wrap_start( dev_priv ); \
} else { \
@@ -278,7 +284,7 @@ do { \
} while (0)
-/* Buffer ageing via primary DMA stream head pointer.
+/* Buffer aging via primary DMA stream head pointer.
*/
#define SET_AGE( age, h, w ) \