From owner-freebsd-usb@FreeBSD.ORG Thu May 1 18:24:04 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5C663106571C for ; Thu, 1 May 2008 18:24:04 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe03.swip.net [212.247.154.65]) by mx1.freebsd.org (Postfix) with ESMTP id DF7978FC24 for ; Thu, 1 May 2008 18:24:02 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=feXiF3FZNr0A:10 a=BGTpj-pkAg8A:10 a=Kh-K9tu1zxwjQkdMZdkA:9 a=yrvJSssOUkL9u7IKSCbdf6a-WksA:4 a=9aOQ2cSd83gA:10 a=LY0hPdMaydYA:10 Received: from [193.217.167.134] (account mc467741@c2i.net HELO [10.0.0.64]) by mailfe03.swip.net (CommuniGate Pro SMTP 5.1.13) with ESMTPA id 927645808; Thu, 01 May 2008 20:24:01 +0200 From: Hans Petter Selasky To: "Xiaofan Chen" Date: Thu, 1 May 2008 20:25:23 +0200 User-Agent: KMail/1.9.7 References: <200804301830.49842.hselasky@c2i.net> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200805012025.24433.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: USB Mass Storage Device with HPS Stack X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 May 2008 18:24:04 -0000 On Thursday 01 May 2008, Xiaofan Chen wrote: > On Thu, May 1, 2008 at 12:30 AM, Hans Petter Selasky wrote: > > Try and find out. I know that many structures can be optimized for > > minimal memory usage. Currently I reserve space for 128 USB devices and > > 32 endpoints and interfaces. If you reduce those numbers then you will > > save a lot of memory. > > I am a bit confused now. So your USB stack now can be used for > Device side which does not require FreeBSD OS support. Is this > true? There you got it! My new USB stack is completely symmetric. You use the same callback API in USB Host mode and USB Device mode! > > I thought your device side stack is like Linux Gadget which runs > some kind of Linux and then act as an usb function device (slave) > to a USB host. Nope, it is fully symmetric. > > I am getting two new USB development boards from Microchip, > PIC24 16bit and PIC32 32 bit (MIPS based) USB, both with OTG, both > will not be able to run FreeBSD or Linux or even uClinux due to memory > constraint. I have the Olimex LPC-P2148 (ARM7 based) as well which > could not run FreeBSD/Linux either. > > Do you think any of them can run your stack's device side? With a little work it will not be a problem. You need to support mutexes and a few other things that are specific to USB. > > What is your test platform for your stack's device side? Does > it run FreeBSD? Yep. AT91RM9200 (KB9202B from Kwikbyte) --HPS