From owner-freebsd-usb@FreeBSD.ORG Fri Dec 2 09:24:12 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 B7C6416A41F for ; Fri, 2 Dec 2005 09:24:12 +0000 (GMT) (envelope-from fierykylin@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id D298143D60 for ; Fri, 2 Dec 2005 09:24:11 +0000 (GMT) (envelope-from fierykylin@gmail.com) Received: by xproxy.gmail.com with SMTP id t12so389027wxc for ; Fri, 02 Dec 2005 01:24:11 -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=c3Gafl9DVNGtG+97ORZs29erK91+KGFyAy3Sn4O/UQRwbINcDaID/KzpkI2XZVfmiCwmL7H3HEQjqTihNTGExzt5/NqSQtyIewRR595Zkv2vSOlPQXMFGZNgcvbzZNbI3daY2tHO8XMUEcHO+aj9N+fKA0Scgl7aNtc4dtNSHUg= Received: by 10.70.48.2 with SMTP id v2mr3229282wxv; Fri, 02 Dec 2005 01:24:11 -0800 (PST) Received: by 10.70.18.16 with HTTP; Fri, 2 Dec 2005 01:24:11 -0800 (PST) Message-ID: <87ab37ab0512020124h5e7e0112rb0811c34ec4d909f@mail.gmail.com> Date: Fri, 2 Dec 2005 17:24:11 +0800 From: kylin To: "M. Warner Losh" In-Reply-To: <20051202.015736.66169514.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20051201.231433.32736713.imp@bsdimp.com> <20051202.003353.21274600.imp@bsdimp.com> <87ab37ab0512020030u2dcdc3ecj69fa27ec6840ca3b@mail.gmail.com> <20051202.015736.66169514.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 09:24:12 -0000 wawo ! thanks again sir :) that really benifit me alot :) On 12/2/05, M. Warner Losh wrote: > In message: <87ab37ab0512020030u2dcdc3ecj69fa27ec6840ca3b@mail.gmail.com> > I suspect that if one were to write a hot-plug PCI bus bridge that it > would mostly work similar to cbb, but with some differences due to API > differences. I found that the cbb 's bus number dynamic allocation way s need to change for the pci bridge 's hotplug ,but not sure ... acording to the spec > The USB stuff, btw, is confusingly located in uhub.c. There are a > number of bugs in the newbus integration of usb, and various people > have tried to fix it. In usbland uhub is the bus, not the usb device, > which is confusing at first, and poorly documented. The usb_port.h > obfuscation also doesn't help. > > Warner > may be usb inherited from the SCSI way :) and speak of SCSI 's hotplug ,there r so many layers -- we who r about to die,salute u!