From owner-freebsd-usb@FreeBSD.ORG Fri Dec 2 08:30:09 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4EB7D16A41F for ; Fri, 2 Dec 2005 08:30:09 +0000 (GMT) (envelope-from fierykylin@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E04D43D5F for ; Fri, 2 Dec 2005 08:30:08 +0000 (GMT) (envelope-from fierykylin@gmail.com) Received: by xproxy.gmail.com with SMTP id t12so382870wxc for ; Fri, 02 Dec 2005 00:30:08 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=INhlLfS6BpDxRS++flqtAAFwocTFS+YsRgqBE3er2X3gQ5jcMmsqsD5yXla5L77eoxt/V9ijCi+/V4o9t9cuORfu7dKRXvUHUnHlsJ4GRWFs4qwyqLhn8R96Kxc+oH92zlyXqo+JMAk5Nxjtcn4gHmwvxaEb3WauNVWsjXm7m8c= Received: by 10.70.40.13 with SMTP id n13mr3167879wxn; Fri, 02 Dec 2005 00:30:07 -0800 (PST) Received: by 10.70.18.16 with HTTP; Fri, 2 Dec 2005 00:30:07 -0800 (PST) Message-ID: <87ab37ab0512020030u2dcdc3ecj69fa27ec6840ca3b@mail.gmail.com> Date: Fri, 2 Dec 2005 16:30:07 +0800 From: kylin To: "M. Warner Losh" In-Reply-To: <20051202.003353.21274600.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <87ab37ab0512012209j1a80a3f8l2ee36567f5fbe04e@mail.gmail.com> <20051201.231433.32736713.imp@bsdimp.com> <20051202.003353.21274600.imp@bsdimp.com> Cc: jhb@freebsd.org, freebsd-usb@freebsd.org Subject: Re: the mechanism of USB hotplug 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: Fri, 02 Dec 2005 08:30:09 -0000 thank u,sir :) i have been reading ur pccbb code for a long time . really elegant.here I think my ignorace is partly because the lack of reading to the doc about the generic device architecture .but frankly ,i still haven't fount the newbus-draft :( mention to pccbb ,i wonder the reason why pccard driver is so different from the cardbus and still attach to the same pci carbus bridge level . thanks again sir :) On 12/2/05, M. Warner Losh wrote: > In message: <20051201.231433.32736713.imp@bsdimp.com> > "M. Warner Losh" writes: > : In message: <87ab37ab0512012209j1a80a3f8l2ee36567f5fbe04e@mail.gmail.co= m> > : kylin writes: > : : sir : > : : I am now working on the pci e hotplug of freebsd ,and reading code > : : of the relative part in linux. > : : i have never touch the field of USB . > : : now i wonder the mechanism of USB hotplug and the scsi hotplug . > : : in linux and my working on freebsd ,there r specail mechanism to > : : waiting for the hotplug event ,and the IRQ and MEM IO resource > : : allocation is complex . > : : i am fresh to the USB and the even complex SCSI driver arch , could u > : : give me some advise ? > : > : All FreeBSD devices use devd. Unlike Linux, FreeBSD's generic device > : architecture means that all busses automatically support hot plugging > : hooks. > > I'll add that each bus just needs to implement what it needs to for > the device's arrival and departure. See pccbb for one example. The > allocation algorithms aren't that complex or difficult because FreeBSD > dynamically allocates all the non-wired resources. > > Warner > -- we who r about to die,salute u!