From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from web34704.mail.mud.yahoo.com (web34704.mail.mud.yahoo.com [209.191.68.153]) by ozlabs.org (Postfix) with SMTP id 4E84F67B95 for ; Fri, 4 Aug 2006 09:09:32 +1000 (EST) Message-ID: <20060803230931.28100.qmail@web34704.mail.mud.yahoo.com> Date: Thu, 3 Aug 2006 16:09:31 -0700 (PDT) From: Manish Joshi Subject: Re: DMA Driver on MPC8260 To: jimmy liu , linuxppc-embedded@ozlabs.org In-Reply-To: <20060803213507.93830.qmail@web53109.mail.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-960873631-1154646571=:27321" List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --0-960873631-1154646571=:27321 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit No idea about sample code. But I think programming DMA itself is straightforward as mentioned below. Just ensure to use uncached physical memory for src/dest addresses. Then you can program your interrupt to receive the DMA completion notification. There are couple of registers like ESR, DMASR etc which you can check in case you see any issues after programming your DMA config registers which are little endian. jimmy liu wrote: You are 100% right. MPC8260 has 4 DMA channels which can be programmed independently. Could I find some sample code from some place? --- Manish Joshi wrote: > What kind of information you are looking for? > Specific questions always help. > General details you can find in the user manual > itself. > > Not sure, but I think MPC8260 has 4 DMA channels > which can be programmed independently. You need to > set the mode registers and then the src/dest addr > registers and byte count and finally turn on the > start bit. > > > jimmy liu wrote: > I am working on PCI transactions between MPC8260 > and > FPGA. Could somebody give me some information about > the PCI DMA Driver on MPC8260? > > Thanks. > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > _______________________________________________ > Linuxppc-embedded mailing list > Linuxppc-embedded@ozlabs.org > https://ozlabs.org/mailman/listinfo/linuxppc-embedded > > > > --------------------------------- > Want to be your own boss? Learn how on Yahoo! Small > Business. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------- Want to be your own boss? Learn how on Yahoo! Small Business. --0-960873631-1154646571=:27321 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit
No idea about sample code.
But I think programming DMA itself is straightforward as mentioned below.
Just ensure to use uncached physical memory for src/dest addresses.
Then you can program your interrupt to receive the DMA completion notification.
 
There are couple of registers like ESR, DMASR etc which you can check in case you see any issues after programming your DMA config registers which are little endian.

jimmy liu <jimmyzhmliu@yahoo.com> wrote:
You are 100% right. MPC8260 has 4 DMA channels which
can be programmed independently. Could I find some
sample code from some place?

--- Manish Joshi wrote:

> What kind of information you are looking for?
> Specific questions always help.
> General details you can find in the user manual
> itself.
>
> Not sure, but I think MPC8260 has 4 DMA channels
> which can be programmed independently. You need to
> set the mode registers and then the src/dest addr
> registers and byte count and finally turn on the
> start bit.
>
>
> jimmy liu wrote:
> I am working on PCI transactions between MPC8260
> and
> FPGA. Could somebody give me some information about
> the PCI DMA Driver on MPC8260?
>
> Thanks.
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam
> protection around
> http://mail.yahoo.com
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
>
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>
>
>
> ---------------------------------
> Want to be your own boss? Learn how on Yahoo! Small
> Business.


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


Want to be your own boss? Learn how on Yahoo! Small Business. --0-960873631-1154646571=:27321--