Search
lxdream.org :: lxdream/src/sh4/dmac.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/dmac.c
changeset 422:61a0598e07ff
prev54:d8b73031289c
next430:467519b050f4
author nkeynes
date Sat Oct 06 09:03:24 2007 +0000 (13 years ago)
permissions -rw-r--r--
last change Fix compilation warnings
file annotate diff log raw
1.1 --- a/src/sh4/dmac.c Sun Jan 01 08:08:40 2006 +0000
1.2 +++ b/src/sh4/dmac.c Sat Oct 06 09:03:24 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: dmac.c,v 1.1 2006-01-01 08:08:40 nkeynes Exp $
1.6 + * $Id: dmac.c,v 1.2 2007-10-06 09:03:24 nkeynes Exp $
1.7 *
1.8 * SH4 onboard DMA controller (DMAC) peripheral.
1.9 *
1.10 @@ -109,10 +109,11 @@
1.11 * @param channel Channel number (0-3) to run.
1.12 * @param run_count number of transfers to execute, or 0 to run to the
1.13 * end of the transfer count.
1.14 - * @return actual number of transfers run
1.15 */
1.16 -int DMAC_run_channel( uint32_t channel, uint32_t run_count )
1.17 +void DMAC_run_channel( uint32_t channel, uint32_t run_count )
1.18 {
1.19 +
1.20 +#if 0 /* Should really finish this */
1.21 char burst[32]; /* Transfer burst */
1.22 uint32_t control = DMA_CONTROL(channel);
1.23
1.24 @@ -158,6 +159,7 @@
1.25 count--;
1.26 }
1.27 }
1.28 +#endif
1.29 }
1.30
1.31 /**
1.32 @@ -237,7 +239,6 @@
1.33 {
1.34 uint32_t control = DMA_CONTROL(channel);
1.35 uint32_t dest, count, run_count, size, i;
1.36 - char tmp[32];
1.37
1.38 if( !IS_CHANNEL_ENABLED(control) || !IS_DMAC_ENABLED() )
1.39 return 0;
.