summaryrefslogtreecommitdiff
path: root/xc/programs/Xserver/hw/xfree86/drivers/rendition/vmisc.c
blob: 774200b9e93293d8a3768d00c53864b582743657 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* 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 $ */

#include "rendition.h"
#include "vtypes.h"
#include "vos.h"
#include "vmisc.h"

/* block copy from and to the card */
void v_bustomem_cpy(vu8 *dst, vu8 *src, vu32 num)
{
    int i;
    for (i=0; i<num; i++)
        dst[i] = v_read_memory8(src, i);
}

void v_memtobus_cpy(vu8 *dst, vu8 *src, vu32 num)
{
    int i;
    for (i=0; i<num; i++)
        v_write_memory8(dst, i, src[i]);
}