From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from phobos.lunarpages.com (phobos.lunarpages.com [67.210.120.30]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 3EC19DDF85 for ; Thu, 7 May 2009 12:02:58 +1000 (EST) Message-ID: <4A02409D.80500@kobekara.com> Date: Thu, 07 May 2009 08:59:57 +0700 From: lhthanh MIME-Version: 1.0 To: Timur Tabi Subject: Re: MPC8349E's DMA controller like ISA controller but with more feature? References: <49EC6CB5.2020300@kobekara.com> <20090420155511.GA25470@ld0162-tx32.am.freescale.net> <49EFEA26.2010602@kobekara.com> <20090423154311.GA19717@ld0162-tx32.am.freescale.net> <49F08FBC.9010903@freescale.com> <49F15831.9080507@kobekara.com> <49F1CF7B.2080703@freescale.com> In-Reply-To: <49F1CF7B.2080703@freescale.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Cc: Scott Wood , linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , lhthanh wrote: > >> Thanks for your explaination! So if I want to transfer a buffer of data >> from a single I/O port, will not DMA framework >> also be able ? >> > > No. > > >> Have I to write aother driver? >> > > Yes. > > >> Actually, I don't want write all because there are serveral DMA code at >> hand. I only want to use a framework instead of re-writing. >> > > There is no framework for what you want to do. There is only one other > driver that does what you want (sound/soc/fsl/fsl_dma.c), and that is a > complicated driver that does many things besides transferring data to an > I/O port. > > >> And I afraid that I can not write code which assure sharing DMA channels. >> > > Look at arch/powerpc/boot/dts/mpc8610_hpcd.dts. The DMA channels that > are needed by the 8610 audio driver have a different 'compatible' > property. This is how you prevent the generic DMA driver from using a > channel that you want. > > I'm afraid that you're going to have to study the DMA programming model, > and my device driver, and write a brand new driver from scratch. > > Thank Scott and Timur very much! I will study more DMA driver and come back later. :) Regard!