From owner-freebsd-multimedia Mon Sep 11 4: 6:32 2000 Delivered-To: freebsd-multimedia@freebsd.org Received: from mailrouter1.strath.ac.uk (orkney.cc.strath.ac.uk [130.159.248.40]) by hub.freebsd.org (Postfix) with ESMTP id 7B43537B423 for ; Mon, 11 Sep 2000 04:06:29 -0700 (PDT) Received: from m96-mp1-cvx1b.ren.ntl.com ([62.252.136.96] helo=cs.strath.ac.uk) by mailrouter1.strath.ac.uk with esmtp (Exim 3.12 #2) id 13YRPe-0005LH-00 for multimedia@freebsd.org; Mon, 11 Sep 2000 12:06:10 +0100 Message-ID: <39BCBD21.626881FC@cs.strath.ac.uk> Date: Mon, 11 Sep 2000 12:08:17 +0100 From: Roger Hardiman Organization: Strathclyde University X-Mailer: Mozilla 4.51 [en] (X11; I; FreeBSD 4.1-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: multimedia@freebsd.org Subject: New BKTR driver loadable modules Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-RBL-Warning: (dul.maps.vix.com) See Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi all, I've changed the way the bktr Bt848/Bt878 driver works when it is a loadable Kernel Module. (KLD) Previously there was just one module to load, bktr.ko You either put "bktr_load=YES" in your /boot/loader.conf file OR you put "kldload bktr" in your rc.local. Now the bktr driver is split in two bktr_mem (contains a memory holder function) bktr (the main bktr driver) So, you need to load bktr_mem AND bktr to get a working driver. In -CURRENT the dependency facility should work so just load 'bktr'and 'bktr_mem' should auto-load for you. In 4.1-STABLE you do have to load both bktr_mem AND bktr yourself as module dependencies are not implemented yet. I've updated the default loader.conf as an example. What it does ------------ bktr_mem holds onto the bktr_driver's precious contiguously allocated memory if/when the bktr driver is unloaded. This makes it much much easier to test driver changes and even install an updated bktr driver without rebooting the system. Reboots are now only required if you change the amount of contiguous memory the driver needs to allocate. Please report any problems or bugs to me, roger@freebsd.org or roger@cs.strath.ac.uk Cheers Roger -- Roger Hardiman Strathclyde Uni Telepresence Research Group, Glasgow, Scotland. http://www.telepresence.strath.ac.uk 0141 548 2897 roger@cs.strath.ac.uk To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message