From owner-freebsd-stable  Thu May  7 18:23:58 1998
Return-Path: <owner-freebsd-stable@FreeBSD.ORG>
Received: (from majordom@localhost)
          by hub.freebsd.org (8.8.8/8.8.8) id SAA18845
          for freebsd-stable-outgoing; Thu, 7 May 1998 18:23:58 -0700 (PDT)
          (envelope-from owner-freebsd-stable@FreeBSD.ORG)
Received: from cain.gsoft.com.au (genesi.lnk.telstra.net [139.130.136.161])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA18754
          for <freebsd-stable@FreeBSD.ORG>; Thu, 7 May 1998 18:23:07 -0700 (PDT)
          (envelope-from doconnor@cain.gsoft.com.au)
Received: from cain (localhost [127.0.0.1]) by cain.gsoft.com.au (8.8.8/8.6.9) with ESMTP id KAA26869; Fri, 8 May 1998 10:44:17 +0930 (CST)
Message-Id: <199805080114.KAA26869@cain.gsoft.com.au>
X-Mailer: exmh version 2.0zeta 7/24/97
To: Robert_Wagner@dgii.com (Robert Wagner)
cc: freebsd-stable@FreeBSD.ORG
Subject: Re: PCI lkm Device Driver 
In-reply-to: Your message of "Thu, 07 May 1998 17:14:57 EST."
             <1998May07.151357.1839.2431657@msp-ln05.dgii.com> 
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Fri, 08 May 1998 10:44:17 +0930
From: "Daniel O'Connor" <doconnor@gsoft.com.au>
Sender: owner-freebsd-stable@FreeBSD.ORG
Precedence: bulk


> I am in the process of creating a PCI lkm Device Driver.  I have read all the
> information on how to write lkm drivers but they all show isa devices.  I am 
> working on the load and unload.  For loading the lkm, how do I go about 
> rescanning for pci devices on the pci bus.  I see that in pci.c there is a 

Well, I wrote one for 2.2.5, and it would load, but unfortunatly you can't 
unload them :)
The reason is that the PCI code doesn't support freeing the IRQ's/mapings etc 
that you allocate when you attach your device, which is kind of annoying.

There was some effort to fix this, but it didn't seem to go far :(

---------------------------------------------------------------------
|Daniel O'Connor software and network engineer for Genesis Software |
|http://www.gsoft.com.au                                            |
|The nice thing about standards is that there are so many of them to|
|choose from. -- Andrew Tanenbaum                                   |
---------------------------------------------------------------------



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message