1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Copyright © 2009 Bertrik Sikken
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
24 /* generic DMA definitions */
25 #define DMA_IO_TO_MEM 0
26 #define DMA_MEM_TO_IO 1
28 /* IISOUT DMA settings */
29 #define DMA_IISOUT_CHANNEL 0
30 #define DMA_IISOUT_SELECT 0
31 #define DMA_IISOUT_DSIZE 1 /* 1 = 16-bit/transfer */
32 #define DMA_IISOUT_BLEN 0 /* 0 = 1 transfer/burst */
36 void dma_setup_channel(int channel
, int sel
, int dir
, int dsize
, int blen
,
37 void *addr
, size_t size
, void (*callback
)(void));
39 void dma_enable_channel(int channel
);
40 void dma_disable_channel(int channel
);