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