#include <linux/bitops.h>
#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/dmaengine.h>
#include <linux/dma-mapping.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/of.h>
#include <linux/mm.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include "dw_dmac_regs.h"
#include "dmaengine.h"
Go to the source code of this file.
#define DWC_DEFAULT_CTLLO |
( |
|
_chan | ) |
|
Value:
int _dms = dwc_get_dms(__slave); \
int _sms = dwc_get_sms(__slave);
\
u8 _smsize = __slave ? _sconfig->src_maxburst : \
u8 _dmsize = __slave ? _sconfig->dst_maxburst : \
DW_DMA_MSIZE_16; \
\
})
Definition at line 49 of file dw_dmac.c.
#define NR_DESCS_PER_CHANNEL 64 |
dw_dma_cyclic_free - free a prepared cyclic DMA transfer : the DMA channel to free
Definition at line 1413 of file dw_dmac.c.
dw_dma_cyclic_prep - prepare the cyclic DMA transfer : the DMA channel to prepare : physical DMA address where the buffer starts : total number of bytes for the entire buffer : number of bytes for each period : transfer direction, to or from device
Must be called before trying to start the transfer. Returns a valid struct dw_cyclic_desc if successful or an ERR_PTR(-errno) if not successful.
Definition at line 1260 of file dw_dmac.c.
dw_dma_cyclic_start - start the cyclic DMA transfer : the DMA channel to start
Must be called with soft interrupts disabled. Returns zero on success or -errno on failure.
Definition at line 1191 of file dw_dmac.c.
dw_dma_cyclic_stop - stop the cyclic DMA transfer : the DMA channel to stop
Must be called with soft interrupts disabled.
Definition at line 1235 of file dw_dmac.c.
MODULE_AUTHOR |
( |
"Haavard Skinnemoen (Atmel)" |
| ) |
|
MODULE_LICENSE |
( |
"GPL v2" |
| ) |
|
subsys_initcall |
( |
dw_init |
| ) |
|