From owner-cvs-all Mon Jul 3 9:57:35 2000 Delivered-To: cvs-all@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id F331437B8EC; Mon, 3 Jul 2000 09:57:28 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id KAA06100; Mon, 3 Jul 2000 10:57:27 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id KAA23779; Mon, 3 Jul 2000 10:57:15 -0600 (MDT) Message-Id: <200007031657.KAA23779@harmony.village.org> To: Poul-Henning Kamp Subject: Re: cvs commit: src/sys/sys bus.h bus_private.h src/sys/kern subr_bus.c Cc: Garrett Wollman , Nick Hibma , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org In-reply-to: Your message of "Mon, 03 Jul 2000 18:52:00 +0200." <7213.962643120@critter.freebsd.dk> References: <7213.962643120@critter.freebsd.dk> Date: Mon, 03 Jul 2000 10:57:15 -0600 From: Warner Losh Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <7213.962643120@critter.freebsd.dk> Poul-Henning Kamp writes: : it probably is the correct behaviour for pccard and cardbus to go away : and stay away until replugged. : : It is probably the wrong behaviour for practically any other bus based : technology (cPCI etc). Why is that? When the hardware fails, it is turned off. New hardware is inserted. That new hardware needs to be completely reinitialized from scratch. Some drivers use the softc to tell them where in the initialization process they are. It would be hard to write a driver that could survive the physical removal of the hardware. I'm just not sure what that would gain you. I can see extentions to the newbus framework to support these concepts. It wouldn't be too hard to do this, but I'm not at all sure what it would buy you and the problems appear to be legion. : I have *no* idea which category USB lands in. I'd think it was the same as pccard. You insert, you remove, it is there, it is gone. I don't know if USB devices have unique serial numbers or not. That would be about the only way you could know if the device that came and went was the same one as before. Even then for removable disks this can get extremely tricky (ditto the CF card reader/writers, since the CF cards don't seem to have serial numbers). Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message