From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.227]) by ozlabs.org (Postfix) with ESMTP id 7F955DDDD8 for ; Sat, 25 Oct 2008 02:14:50 +1100 (EST) Received: by rv-out-0506.google.com with SMTP id f6so856964rvb.9 for ; Fri, 24 Oct 2008 08:14:49 -0700 (PDT) Message-ID: <9e4733910810240814p6d43eb0by4fc3c913b60063c3@mail.gmail.com> Date: Fri, 24 Oct 2008 11:14:49 -0400 From: "Jon Smirl" To: "Matt Sealey" Subject: Re: Using Bestcomm API (DMA) on MPC5200b with Linux? In-Reply-To: <4900FA72.1040201@genesi-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 References: <406316.49476.qm@web25808.mail.ukl.yahoo.com> <4900FA72.1040201@genesi-usa.com> Cc: arieswar24b@yahoo.de, linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Was the new BestComm support in the 2.6.23.1 kernel he is using? On Thu, Oct 23, 2008 at 6:28 PM, Matt Sealey wrote: > You need to write a task that does the DMA operation you want; GenBD is > actually pretty generic and lets you just copy from one place to another. > > The API is pretty simple; make sure genbd is compiled in, get the task > structure using bcom_gen_bd_[tr]x_init, and then.. uhh.. this is where I > always forget. > > There is a way to submit a buffer descriptor and have the engine basically > perform that transfer. I think it's bcom_prepare_next_buffer and then > bcom_submit_next_buffer. > > Actually I can't even FIND those functions in the Linux tree right now, but > they have to be in there because the FEC driver uses them.. > > -- > Matt Sealey > Genesi, Manager, Developer Relations > > Dave Best wrote: >> >> I am trying to connect a FPGA/FIFO with my MPC5200b on a phytec PCM 030 >> board while running a 2.6.23.1 Linux. >> >> The Linux Kernel source contains an implementation for the Bestcomm API in >> the form of a driver for ethernet (fec) and ATA.(situated in the >> arch-powerpc/sysdev/bestcomm path) I tried to make use of it but i've run >> into some problems. >> >> So i tried to include the API in a module to utilize its functionality but >> no luck till now. >> >> Freescale supports the Bestcomm DMA API not on an OS level. So the problem >> is adopting this API into a Linux environment, which distinguishes between >> kernel space and user space while writing to the appropriate registers. >> >> Further information is very hard to find for such a common task as >> starting a DMA transfer. >> >> Dave >> >> >> >> _______________________________________________ >> Linuxppc-embedded mailing list >> Linuxppc-embedded@ozlabs.org >> https://ozlabs.org/mailman/listinfo/linuxppc-embedded > > > _______________________________________________ > Linuxppc-embedded mailing list > Linuxppc-embedded@ozlabs.org > https://ozlabs.org/mailman/listinfo/linuxppc-embedded > -- Jon Smirl jonsmirl@gmail.com