2009-11-19 19:49:17 +01:00
|
|
|
/*
|
2013-01-04 13:56:16 +01:00
|
|
|
* Copyright (C) 2007-2013 ST-Ericsson
|
2009-11-19 19:49:17 +01:00
|
|
|
* License terms: GNU General Public License (GPL) version 2
|
|
|
|
* DMA driver for COH 901 318
|
|
|
|
* Author: Per Friden <per.friden@stericsson.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef COH901318_H
|
|
|
|
#define COH901318_H
|
|
|
|
|
|
|
|
#define MAX_DMA_PACKET_SIZE_SHIFT 11
|
|
|
|
#define MAX_DMA_PACKET_SIZE (1 << MAX_DMA_PACKET_SIZE_SHIFT)
|
|
|
|
|
|
|
|
/**
|
|
|
|
* struct coh901318_lli - linked list item for DMAC
|
|
|
|
* @control: control settings for DMAC
|
|
|
|
* @src_addr: transfer source address
|
|
|
|
* @dst_addr: transfer destination address
|
|
|
|
* @link_addr: physical address to next lli
|
tree-wide: fix comment/printk typos
"gadget", "through", "command", "maintain", "maintain", "controller", "address",
"between", "initiali[zs]e", "instead", "function", "select", "already",
"equal", "access", "management", "hierarchy", "registration", "interest",
"relative", "memory", "offset", "already",
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2010-11-01 15:38:34 -04:00
|
|
|
* @virt_link_addr: virtual address of next lli (only used by pool_free)
|
2009-11-19 19:49:17 +01:00
|
|
|
* @phy_this: physical address of current lli (only used by pool_free)
|
|
|
|
*/
|
|
|
|
struct coh901318_lli {
|
|
|
|
u32 control;
|
|
|
|
dma_addr_t src_addr;
|
|
|
|
dma_addr_t dst_addr;
|
|
|
|
dma_addr_t link_addr;
|
|
|
|
|
|
|
|
void *virt_link_addr;
|
|
|
|
dma_addr_t phy_this;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* COH901318_H */
|