From owner-freebsd-hackers Sat Nov 1 01:07:16 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id BAA09466 for hackers-outgoing; Sat, 1 Nov 1997 01:07:16 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from hydrogen.nike.efn.org (resnet.uoregon.edu [128.223.170.28]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id BAA09451; Sat, 1 Nov 1997 01:07:09 -0800 (PST) (envelope-from gurney_j@efn.org) Received: (from jmg@localhost) by hydrogen.nike.efn.org (8.8.7/8.8.7) id BAA10612; Sat, 1 Nov 1997 01:07:08 -0800 (PST) Message-ID: <19971101010707.25996@hydrogen.nike.efn.org> Date: Sat, 1 Nov 1997 01:07:07 -0800 From: John-Mark Gurney To: Stefan Esser 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> <19971031184937.23539@mi.uni-koeln.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.69 In-Reply-To: <19971031184937.23539@mi.uni-koeln.de>; from Stefan Esser on Fri, Oct 31, 1997 at 06:49:37PM +0100 Reply-To: John-Mark Gurney Organization: Cu Networking X-Operating-System: FreeBSD 2.2.1-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Stefan Esser scribbled this message on Oct 31: > 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. hmm... ok... > 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. so, did the pci_register_lkm do this? or was this another function that would do this? > 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. if you could, just send me the patches... I'll make sure that they work with the new system... > 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). interesting... could you include that too? thanks.. ttyl.. -- John-Mark Gurney Modem/FAX: +1 541 683 6954 Cu Networking Live in Peace, destroy Micro$oft, support free software, run FreeBSD