From owner-freebsd-hackers Fri Oct 31 09:50:13 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id JAA22940 for hackers-outgoing; Fri, 31 Oct 1997 09:50:13 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from Octopussy.MI.Uni-Koeln.DE (Octopussy.MI.Uni-Koeln.DE [134.95.166.20]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id JAA22909 for ; Fri, 31 Oct 1997 09:50:00 -0800 (PST) (envelope-from se@dialup124.zpr.uni-koeln.de) Received: from dialup124.zpr.Uni-Koeln.DE (dialup124.zpr.Uni-Koeln.DE [134.95.219.124]) by Octopussy.MI.Uni-Koeln.DE (8.8.7/8.8.7) with ESMTP id SAA03375; Fri, 31 Oct 1997 18:49:49 +0100 (MET) Received: (from se@localhost) by dialup124.zpr.Uni-Koeln.DE (8.8.7/8.6.9) id SAA10089; Fri, 31 Oct 1997 18:49:38 +0100 (CET) X-Face: " Date: Fri, 31 Oct 1997 18:49:37 +0100 From: Stefan Esser To: John-Mark Gurney Cc: Chris Csanady , Chris Vance , freebsd-hackers@FreeBSD.ORG Subject: Re: LKM Interface References: <19971030180558.63267@hydrogen.nike.efn.org> <199710310308.VAA01889@bob.scl.ameslab.gov> <19971030194044.15908@hydrogen.nike.efn.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.84 In-Reply-To: <19971030194044.15908@hydrogen.nike.efn.org>; from John-Mark Gurney on Thu, Oct 30, 1997 at 07:40:44PM -0800 Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On 1997-10-30 19:40 -0800, John-Mark Gurney wrote: > > Wow.. I didn't realize that this was in current already. :) How do I > > go about converting my PCI device driver to use it? Also, are there > > well.. basicly look at the definition of DECLARE_MODULE.. only problem > is that I don't know if the pci bus code can rescan the bus for "new" > drivers as they loaded... PCI LKM support has been in -current for quite some time (I think I added it one year ago), but I temporarily removed it, when I completely rewrote the PCI code. If you need it, it is easy to put back. The API was that the PCI LKM just called pci_register_lkm(struct pci_device *p, int rev) with the parameter of the DATA_SET and rev=0. The rescan was automatically performed from within that LKM registration function. Sorry, I'm in a hurry, now. If there is any need for PCI LKM support, I may be able to put back that feature over the weekend. I also prepared a simple shell script that could be run from /etc/rc and which searched for PCI devices that had no driver compiled in, and tried to modload the corresponding driver (actually used for one ATM card driver, so far). Check the -hackers mail archive about one year back for some more information, the announcement and some discussion on the topic of PCI LKMs. Regards, STefan