* using dma engine on MPC8555 processor
@ 2009-01-27 12:01 wael showair
2009-01-28 10:52 ` wael showair
0 siblings, 1 reply; 2+ messages in thread
From: wael showair @ 2009-01-27 12:01 UTC (permalink / raw)
To: linuxppc-dev
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-tp21683674p21683674.html
Sent from the linuxppc-dev mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: using dma engine on MPC8555 processor
2009-01-27 12:01 using dma engine on MPC8555 processor wael showair
@ 2009-01-28 10:52 ` wael showair
0 siblings, 0 replies; 2+ messages in thread
From: wael showair @ 2009-01-28 10:52 UTC (permalink / raw)
To: linuxppc-dev
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-01-28 10:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-27 12:01 using dma engine on MPC8555 processor wael showair
2009-01-28 10:52 ` wael showair
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).