1/* Misc routines used elsewhere in driver */ 2 3#ifdef HAVE_CONFIG_H 4#include "config.h" 5#endif 6 7#include "rendition.h" 8#include "vtypes.h" 9#include "vos.h" 10#include "vmisc.h" 11 12#undef DEBUG 13 14/* block copy from and to the card */ 15void 16verite_bustomem_cpy(vu8 *dst, vu8 *src, vu32 num) 17{ 18 int i; 19 20#ifdef DEBUG 21 ErrorF ("Rendition: DEBUG verite_bustomem_cpy called\n"); 22#endif 23 for (i=0; i<num; i++) 24 dst[i] = verite_read_memory8(src, i); 25} 26 27void 28verite_memtobus_cpy(vu8 *dst, vu8 *src, vu32 num) 29{ 30 int i; 31 32#ifdef DEBUG 33 ErrorF ("Rendition: DEBUG verite_memtobus_cpy called\n"); 34#endif 35 36 for (i=0; i<num; i++) 37 verite_write_memory8(dst, i, src[i]); 38} 39