Search
lxdream.org :: lxdream/src/sh4/dmac.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/dmac.c
changeset 430:467519b050f4
prev422:61a0598e07ff
next502:c4ecae2b1b5e
author nkeynes
date Mon Oct 08 12:09:06 2007 +0000 (14 years ago)
permissions -rw-r--r--
last change Fix compilation warnings
file annotate diff log raw
1.1 --- a/src/sh4/dmac.c Sat Oct 06 09:03:24 2007 +0000
1.2 +++ b/src/sh4/dmac.c Mon Oct 08 12:09:06 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: dmac.c,v 1.2 2007-10-06 09:03:24 nkeynes Exp $
1.6 + * $Id: dmac.c,v 1.3 2007-10-08 12:06:01 nkeynes Exp $
1.7 *
1.8 * SH4 onboard DMA controller (DMAC) peripheral.
1.9 *
1.10 @@ -170,7 +170,7 @@
1.11 *
1.12 * @return the number of bytes actually transferred.
1.13 */
1.14 -uint32_t DMAC_get_buffer( int channel, char *buf, uint32_t numBytes )
1.15 +uint32_t DMAC_get_buffer( int channel, unsigned char *buf, uint32_t numBytes )
1.16 {
1.17 uint32_t control = DMA_CONTROL(channel);
1.18 uint32_t source, count, run_count, size, i;
1.19 @@ -235,7 +235,7 @@
1.20 return run_count * size;
1.21 }
1.22
1.23 -uint32_t DMAC_put_buffer( int channel, char *buf, uint32_t numBytes )
1.24 +uint32_t DMAC_put_buffer( int channel, unsigned char *buf, uint32_t numBytes )
1.25 {
1.26 uint32_t control = DMA_CONTROL(channel);
1.27 uint32_t dest, count, run_count, size, i;
.