blob: ac14cf0a3486b8675b66f38472f353468033a36d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
/* Misc routines used elsewhere in driver */
/* $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
verite_bustomem_cpy(vu8 *dst, vu8 *src, vu32 num)
{
int i;
#ifdef DEBUG
ErrorF ("Rendition: DEBUG verite_bustomem_cpy called\n");
#endif
for (i=0; i<num; i++)
dst[i] = verite_read_memory8(src, i);
}
void
verite_memtobus_cpy(vu8 *dst, vu8 *src, vu32 num)
{
int i;
#ifdef DEBUG
ErrorF ("Rendition: DEBUG verite_memtobus_cpy called\n");
#endif
for (i=0; i<num; i++)
verite_write_memory8(dst, i, src[i]);
}
|