From owner-freebsd-usb@FreeBSD.ORG Fri Dec 2 06:14:54 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 3F84816A41F; Fri, 2 Dec 2005 06:14:54 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB49343D53; Fri, 2 Dec 2005 06:14:53 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.3/8.13.3) with ESMTP id jB26Du9C066352; Thu, 1 Dec 2005 23:13:56 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Thu, 01 Dec 2005 23:14:33 -0700 (MST) Message-Id: <20051201.231433.32736713.imp@bsdimp.com> To: fierykylin@gmail.com From: "M. Warner Losh" In-Reply-To: <87ab37ab0512012209j1a80a3f8l2ee36567f5fbe04e@mail.gmail.com> References: <87ab37ab0512012209j1a80a3f8l2ee36567f5fbe04e@mail.gmail.com> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Thu, 01 Dec 2005 23:13:56 -0700 (MST) Cc: freebsd-usb@freebsd.org, jhb@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 06:14:54 -0000 In message: <87ab37ab0512012209j1a80a3f8l2ee36567f5fbe04e@mail.gmail.com> 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. Warner