Search
lxdream.org :: lxdream/src/pvr2/pvr2.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/pvr2.c
changeset 127:4ba79389bb6d
prev108:565de331ccec
next133:249aeda31f02
author nkeynes
date Thu Mar 23 13:19:15 2006 +0000 (14 years ago)
permissions -rw-r--r--
last change Add a vram dump function for debugging purposes
file annotate diff log raw
1.1 --- a/src/pvr2/pvr2.c Wed Mar 15 13:16:50 2006 +0000
1.2 +++ b/src/pvr2/pvr2.c Thu Mar 23 13:19:15 2006 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: pvr2.c,v 1.20 2006-03-15 13:16:50 nkeynes Exp $
1.6 + * $Id: pvr2.c,v 1.21 2006-03-23 13:19:15 nkeynes Exp $
1.7 *
1.8 * PVR2 (Video) Core MMIO registers.
1.9 *
1.10 @@ -341,3 +341,10 @@
1.11 }
1.12 }
1.13 }
1.14 +
1.15 +void pvr2_vram64_dump( sh4addr_t addr, uint32_t length, FILE *f )
1.16 +{
1.17 + char tmp[length];
1.18 + pvr2_vram64_read( tmp, addr, length );
1.19 + fwrite_dump( tmp, length, f );
1.20 +}
.