From owner-freebsd-hackers Mon May 22 5:49:16 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from finch-post-11.mail.demon.net (finch-post-11.mail.demon.net [194.217.242.39]) by hub.freebsd.org (Postfix) with ESMTP id 2BA5937C038 for ; Mon, 22 May 2000 05:49:05 -0700 (PDT) (envelope-from n_hibma@calcaphon.com) Received: from calcaphon.demon.co.uk ([193.237.19.5] helo=bluebottle.qubesoft.com) by finch-post-11.mail.demon.net with esmtp (Exim 2.12 #1) id 12trdc-0009Xm-0B; Mon, 22 May 2000 12:48:53 +0000 Received: from henny.webweaving.org (henny.qubesoft.com [192.168.1.5]) by bluebottle.qubesoft.com (8.9.3/8.9.1) with ESMTP id NAA34140; Mon, 22 May 2000 13:48:49 +0100 (BST) (envelope-from n_hibma@calcaphon.com) Received: from localhost (localhost [127.0.0.1]) by henny.webweaving.org (8.9.3/8.9.3) with ESMTP id SAA04133; Sun, 21 May 2000 18:20:16 +0100 (BST) (envelope-from n_hibma@calcaphon.com) Date: Sun, 21 May 2000 18:20:16 +0100 (BST) From: Nick Hibma X-Sender: n_hibma@localhost Reply-To: Nick Hibma To: Adam Cc: hackers@freebsd.org Subject: Re: modules and newbus In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I got the impression that newbus would make it easier to make kernel > modules out of things. What in general does it take to make something > into a kld? I'm thinking of pcm for example. In general all it takes is a good look at de-allocation of the resources it allocates. Another point with some hardware is that you need to deinitialise it and make it shut up / no longer produce interrupts. Also the encapsulation of the driver into a MODULE needs to be done, which should be fairly trivial or already done. Be reminded that you cannot detach from all the busses, like for example ISA. Nick -- n_hibma@webweaving.org n_hibma@freebsd.org USB project http://www.etla.net/~n_hibma/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message