From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by ozlabs.org (Postfix) with ESMTP id 22165DE05A for ; Wed, 28 Jan 2009 21:52:10 +1100 (EST) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LS81e-0007eJ-My for linuxppc-dev@ozlabs.org; Wed, 28 Jan 2009 02:52:06 -0800 Message-ID: <21703549.post@talk.nabble.com> Date: Wed, 28 Jan 2009 02:52:06 -0800 (PST) From: wael showair To: linuxppc-dev@ozlabs.org Subject: Re: using dma engine on MPC8555 processor In-Reply-To: <21683674.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii References: <21683674.post@talk.nabble.com> List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , now I can understand that the file of the fsldma.c is the driver of the DMA engine that contains also a test the DMA. I noticed that it contains 2 module init functions: subsys_initcall(of_fsl_dma_chan_init); subsys_initcall(of_fsl_dma_init); Also it contains two probe functions: static int __devinit of_fsl_dma_chan_probe(struct of_device *dev,const struct of_device_id *match) static int __devinit of_fsl_dma_probe(struct of_device *dev,const struct of_device_id *match) How can i make these 2 probe functions work, i also noticed that fsldma.c cant be built as a module either it is built-in or not built. is there something i should write in the command line to let fsldma works & tests the DMA engine i have on my board. also i want to know the module "dmatest",what does it test exactly? can it test the DMA engine or not? thanks for your help wael showair wrote: > > Hi All, > i have an evaluation board with MPC8555 processor. > linux kernel 2.6.27 > i have read the Documentation of my board, i found that it contains DMA > engine. > i know that there fsldma.c & fsldma.h > all my target is that i want to test the DMA on my board. > i want to transfer data from source to destination & i imagine that the > DMA will raise an interrupt after it finishes the transfer. > > so i believe there must be some APIs related to the DMA engine which do > the following: > 1. initialize the DMA by determining the src & dest addresses. Also > determines which channel to use. > 2. register an interrupt handler for the DMA interrupt line. > 3. fire the DMA. > > where can i find these APIs, or i m missing something? > thanks in advance for ur help > -- View this message in context: http://www.nabble.com/using-dma-engine-on-MPC8555-processor-tp21683674p21703549.html Sent from the linuxppc-dev mailing list archive at Nabble.com.