From owner-freebsd-hackers Sat Nov 1 06:11:28 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id GAA20240 for hackers-outgoing; Sat, 1 Nov 1997 06:11:28 -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 GAA20232 for ; Sat, 1 Nov 1997 06:11:17 -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 PAA21599; Sat, 1 Nov 1997 15:11:07 +0100 (MET) Received: (from se@localhost) by dialup124.zpr.Uni-Koeln.DE (8.8.7/8.6.9) id MAA02487; Sat, 1 Nov 1997 12:17:29 +0100 (CET) X-Face: " Date: Sat, 1 Nov 1997 12:17:29 +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> <19971031184937.23539@mi.uni-koeln.de> <19971101010707.25996@hydrogen.nike.efn.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.84 In-Reply-To: <19971101010707.25996@hydrogen.nike.efn.org>; from John-Mark Gurney on Sat, Nov 01, 1997 at 01:07:07AM -0800 Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On 1997-11-01 01:07 -0800, John-Mark Gurney wrote: > Stefan Esser scribbled this message on Oct 31: > > 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? The pci_regsister_lkm() function initiated the rescan. Only cards with no driver were looked at. > > 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... You'll find everything in the last version of pci.c before my rewrite (rev. 1.60 did not have LKM support, and rev 1.64 is the last one where I made a change to the implementation, so you may want to look at a diff from 1.60 to 1.64). But that code relied on the probed PCI devices to be registered (was function pci_remember()), but I want to have a completely different data structure in the future (you already know that ...). > > 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? Sorry, but seems I did fail to make me understood in more than one sentence of the previous reply ... The Zeitnet ATM driver was written by "Jin Guojun[ITG]" and contains the PCI LKM as patches (relative to FreeBSD-2.2.0, I guess). Information is available from the Zeitnet web site, according to the author of the driver. Regards, STefan PS: I'll try to find time to reply top your previous mail regarding the data device structure later this weekend ...