diff options
Diffstat (limited to 'xc/programs/Xserver/hw/xfree86/drivers/rendition/vmisc.c')
-rw-r--r-- | xc/programs/Xserver/hw/xfree86/drivers/rendition/vmisc.c | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/xc/programs/Xserver/hw/xfree86/drivers/rendition/vmisc.c b/xc/programs/Xserver/hw/xfree86/drivers/rendition/vmisc.c index 774200b9e..ffc3861e7 100644 --- a/xc/programs/Xserver/hw/xfree86/drivers/rendition/vmisc.c +++ b/xc/programs/Xserver/hw/xfree86/drivers/rendition/vmisc.c @@ -1,22 +1,35 @@ /* Misc routines used elsewhere in driver */ -/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/vmisc.c,v 1.2 1999/11/19 14:59:18 hohndel Exp $ */ +/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/vmisc.c,v 1.3 2000/02/25 21:03:05 dawes Exp $ */ #include "rendition.h" #include "vtypes.h" #include "vos.h" #include "vmisc.h" +#undef DEBUG + /* block copy from and to the card */ -void v_bustomem_cpy(vu8 *dst, vu8 *src, vu32 num) +void +v_bustomem_cpy(vu8 *dst, vu8 *src, vu32 num) { int i; + +#ifdef DEBUG + ErrorF ("Rendition: DEBUG v_bustomem_cpy called\n"); +#endif for (i=0; i<num; i++) dst[i] = v_read_memory8(src, i); } -void v_memtobus_cpy(vu8 *dst, vu8 *src, vu32 num) +void +v_memtobus_cpy(vu8 *dst, vu8 *src, vu32 num) { int i; + +#ifdef DEBUG + ErrorF ("Rendition: DEBUG v_memtobus_cpy called\n"); +#endif + for (i=0; i<num; i++) v_write_memory8(dst, i, src[i]); } |