From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8980 invoked by alias); 6 Apr 2006 21:26:15 -0000 Received: (qmail 8972 invoked by uid 22791); 6 Apr 2006 21:26:15 -0000 X-Spam-Check-By: sourceware.org Received: from londo.lunn.ch (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 06 Apr 2006 21:26:13 +0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1FRbzT-0002dN-00; Thu, 06 Apr 2006 23:26:07 +0200 Date: Thu, 06 Apr 2006 21:26:00 -0000 To: stevemors@gmail.com Cc: ecos-discuss Message-ID: <20060406212607.GI12221@lunn.ch> Mail-Followup-To: stevemors@gmail.com, ecos-discuss References: <54c370270604061418g739a050bl5605251f984477a2@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54c370270604061418g739a050bl5605251f984477a2@mail.gmail.com> User-Agent: Mutt/1.5.11+cvs20060126 From: Andrew Lunn X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] Help getting started: PCI/USB X-SW-Source: 2006-04/txt/msg00079.txt.bz2 On Thu, Apr 06, 2006 at 02:18:25PM -0700, stevemors@gmail.com wrote: > Dear group, > > I have been tasked with a project that involves a PCI-to-USB slave > device on a PC platform. This is supposed to allow the PC to act as a > USB slave. I'm trying to get my head around what all I need to do to > get this up and running, while trying to understand eCos, and hope > someone out there can shed some light. Here are some thoughts: > > 1. Would the driver for this device be a USB driver wrapped in a PCI > driver? Would I look at existing eCos PCI and USB drivers and create > some sort of hybrid of these? There is not really any PCI drivers. There are drivers which make use of PCI, eg ethernet device drivers. Looking at a PCI ethernet driver will give you the idea of how to find a PCI device, allocate it memory etc. > 2. The PC bios configures the PCI bus and devices. This means CPU-PCI > address translation is unknown to eCos, correct? How can I fill in > this information when this configuration has been skipped? (Doesn't > redboot have to do this?) I've never really studied PCI, but eCos does have the ability to allocate resouces to devices etc. Only PC's have BIOS's. For the rest of the world there is other ways to do it. > 3. Is this something that might be contributable to the eCos project > when complete? Sure, especially if you use a common PCI device. Do you have any idea what it will be yet? Has the hardware been chosen? Andrew -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss