From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from az33egw01.freescale.net (az33egw01.freescale.net [192.88.158.102]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "az33egw01.freescale.net", Issuer "Thawte Premium Server CA" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id 484CCDDF82 for ; Tue, 24 Jun 2008 03:10:24 +1000 (EST) Date: Mon, 23 Jun 2008 12:09:56 -0500 From: Scott Wood To: jumpingProgrammer Subject: Re: a question of mpc8313, maybe simple Message-ID: <20080623170956.GA6978@loki.buserror.net> References: <18067094.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <18067094.post@talk.nabble.com> Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, Jun 23, 2008 at 05:48:07AM -0700, jumpingProgrammer wrote: > i am working with a board of mpc8313 using default mpc8313erdb.dts. > But i do not know how can i correctly use DMA to transport data from memory > to a PCI device. > i tryed this > { > ..... > request_irq(IRQ,....); > request_dma(.....); > .... > } > > In request_irq() , i do not know what is the parameter IRQ. Use pci_dev->irq. > And , i did not find any words about DMA in mpc8313erdb.dts . PCI devices can do bus-mastering DMA themselves; request_dma() is for ISA devices. -Scott