From owner-freebsd-hackers Mon Sep 29 12:36:29 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA02864 for hackers-outgoing; Mon, 29 Sep 1997 12:36:29 -0700 (PDT) Received: from terra.Sarnoff.COM (terra.sarnoff.com [130.33.11.203]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id MAA02857 for ; Mon, 29 Sep 1997 12:36:25 -0700 (PDT) Received: (from rminnich@localhost) by terra.Sarnoff.COM (8.6.12/8.6.12) id PAA07420; Mon, 29 Sep 1997 15:28:30 -0400 Date: Mon, 29 Sep 1997 15:28:29 -0400 (EDT) From: "Ron G. Minnich" X-Sender: rminnich@terra To: hackers@freebsd.org Subject: PCI device loadable module Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk maybe this is all clear on 3.0, but i am on 2.2.1. Here's the question: I have a loadable module for a device. How do I arrange for the probe() to be called? As i understand it on fbsd this happens at pci_configure time, which is done at boot time. But my driver is not in at that point, obviously: so what's the right thing to do? pci_configure says it can be called more than once. So, should my load entry point call pci_configure()? what's the right way here? There are no examples in the lkm's that I can find that point the way. thanks ron Ron Minnich |Java: an operating-system-independent, rminnich@sarnoff.com |architecture-independent programming language (609)-734-3120 |for Windows/95 and Windows/NT on the Pentium ftp://ftp.sarnoff.com/pub/mnfs/www/docs/cluster.html