Electronic Components Datasheet Search
  English  ▼

X  

UM0851 Datasheet(PDF) 166 Page - STMicroelectronics

Part # UM0851
Description  SPEAr is a family of highly customizable ARM-based embedded
PDF  245 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

UM0851 Datasheet(HTML) 166 Page - STMicroelectronics

Back Button UM0851 Datasheet HTML 162Page - STMicroelectronics UM0851 Datasheet HTML 163Page - STMicroelectronics UM0851 Datasheet HTML 164Page - STMicroelectronics UM0851 Datasheet HTML 165Page - STMicroelectronics UM0851 Datasheet HTML 166Page - STMicroelectronics UM0851 Datasheet HTML 167Page - STMicroelectronics UM0851 Datasheet HTML 168Page - STMicroelectronics UM0851 Datasheet HTML 169Page - STMicroelectronics UM0851 Datasheet HTML 170Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 166 / 245 page
background image
Accelerator engine device drivers
UM0851
166/245
Doc ID 16604 Rev 2
DMA transfer configuration
There are four types of DMA transfer possible: memory-set, memory-to-memory, peripheral-
to-peripheral and memory-to/from-peripheral. The first two can work either with the default
configuration of the DMA driver or the configuration provided by client. Transfers with
peripherals always require the user to pass the configuration.
Configuration parameters are passed to the DMA driver using the struct dma_slave *slave
pointer present in struct dma_client.
/* We need to pass address of transmit register in tx_reg and receive register in
rx_reg for DMA_SLAVE transfers, otherwise this structure must not be
filled by
user driver.
Note: Address of this slave structure has to be passed to in slave pointer in
client structure. */
struct dw_dma_slave {
struct dma_slave
slave;
/* Generic information about the slave. See
below */
u32
ctl;
/* Platform-specific value for the CTL
register. Control
information include
src/dest access width, src/dest
burst size,
dmac modes, interrupt option after each
packet transfer, src/dest address increment
after each access_width sized transfer. Please
see
<linux/spr_dmac_pl080.h> for further
information. */
u32
cfg;
/* Platform-specific value for the CFG register.
Configuration information include transfer flow
controller and
src/dest request id (physical
request line between peripheral and DMAC),. Please
see <linux/spr_dmac_pl080.h> for further
information.*/
enum dma_master src_master;
/* DMA masters for source and destination side.
Masters are fixed for the board architecture.
Master information is
present in enum
dma_master_info present in <mach/dma.h>. */
enum dma_master dest_master;
void
*private_data;
/* It is for client driver private data
purposes. It can be extracted from pointer to
client structure in dma_event callback. */
};
/* Generic information about the slave. See below */
struct dma_slave {
struct device
*dev;
struct device
*dma_dev;
dma_addr_t
tx_reg;
dma_addr_t
rx_reg;
enum dma_slave_widthreg_width;
};
This slave structure must be defined by the client driver before requesting DMA channels. It
must be filled with configuration values before preparing DMA transfer.
The default DMA driver ctl configuration for memory-to-memory transfers is:
DWC_CTL_USER_MODE | DWC_CTL_NON_BUFFERABLE | DWC_CTL_NON_CACHEABLE |
DWC_CTL_DEST_BURST(BURST_8) | DWC_CTL_SRC_BURST(BURST_8) |
DWC_CTL_DEST_WIDTH(width) | DWC_CTL_SRC_WIDTH(width) | DWC_CTL_DEST_ADDR_INC
The default DMA driver ctl configuration for memset transfers is:



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com