From owner-freebsd-hackers Sun Aug 13 15:58:39 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id B2AF137B68E for ; Sun, 13 Aug 2000 15:58:35 -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 QAA19792; Sun, 13 Aug 2000 16:58:33 -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 QAA10640; Sun, 13 Aug 2000 16:57:56 -0600 (MDT) Message-Id: <200008132257.QAA10640@harmony.village.org> To: Devin Butterfield Subject: Re: "Unknown" driver gobbles resources?? Cc: freebsd-hackers@FreeBSD.ORG In-reply-to: Your message of "Sun, 13 Aug 2000 05:11:30 PDT." <39969072.EED2B8F6@wireless.net> References: <39969072.EED2B8F6@wireless.net> <200008112235.PAA00839@mass.osd.bsdi.com> <39953196.1103F555@wireless.net> <200008121302.JAA00442@jupiter.delta.ny.us> Date: Sun, 13 Aug 2000 16:57:56 -0600 From: Warner Losh Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <39969072.EED2B8F6@wireless.net> Devin Butterfield writes: : So my question is this: Do I need to do anything special to recover the : resources from the unknown driver so that during loading *my* module can : get the resources it needs?? Do I need to add something to my identify, : probe, or attach routines to make this work right? With modern enough versions of -current, you shouldn't have to do anything at all to make this work. It should just happen. And you'll likely not need an identify routine. The Unknown device just sucks up the plug and play resources. Therefore, there's already a device node in the tree addociated with that plug and play hardware, so your probe routine will just be called. However, this is fairly recent (like on the order of the first part of July, 2000). Before that you did ineed have to jump though many many hoops to make this work. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message