Path: blob/master/Documentation/arm/Samsung-S3C24XX/DMA.txt
10823 views
S3C2410 DMA1===========23Introduction4------------56The kernel provides an interface to manage DMA transfers7using the DMA channels in the CPU, so that the central8duty of managing channel mappings, and programming the9channel generators is in one place.101112DMA Channel Ordering13--------------------1415Many of the range do not have connections for the DMA16channels to all sources, which means that some devices17have a restricted number of channels that can be used.1819To allow flexibility for each CPU type and board, the20DMA code can be given a DMA ordering structure which21allows the order of channel search to be specified, as22well as allowing the prohibition of certain claims.2324struct s3c24xx_dma_order has a list of channels, and25each channel within has a slot for a list of DMA26channel numbers. The slots are searched in order for27the presence of a DMA channel number with DMA_CH_VALID28or-ed in.2930If the order has the flag DMA_CH_NEVER set, then after31checking the channel list, the system will return no32found channel, thus denying the request.3334A board support file can call s3c24xx_dma_order_set()35to register a complete ordering set. The routine will36copy the data, so the original can be discarded with37__initdata.383940Authour41-------4243Ben Dooks,44Copyright (c) 2007 Ben Dooks, Simtec Electronics45Licensed under the GPL v2464748