From owner-freebsd-hackers Mon Nov 13 0:38:27 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mass.osd.bsdi.com (unknown [167.216.157.206]) by hub.freebsd.org (Postfix) with ESMTP id 7B15F37B4C5 for ; Mon, 13 Nov 2000 00:38:24 -0800 (PST) Received: from mass.osd.bsdi.com (localhost [127.0.0.1]) by mass.osd.bsdi.com (8.11.0/8.11.1) with ESMTP id eAD8iVF01116; Mon, 13 Nov 2000 00:44:31 -0800 (PST) (envelope-from msmith@mass.osd.bsdi.com) Message-Id: <200011130844.eAD8iVF01116@mass.osd.bsdi.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: "Chris Ptacek" Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: KLDs and PCI? In-reply-to: Your message of "Sun, 12 Nov 2000 20:16:21 PST." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 13 Nov 2000 00:44:31 -0800 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I am working on a KLD for a PCI device. My problem is I can't find how to > call the probe and attach calls during the load for a PCI device. I have > looked in the /usr/src/sys/pci directory and haven't found any KLDs to use > as an example. What are the steps I need to take to handle a PCI device in > a KLD? Are there any examples I can look out? > > Oh yeah, I am doing this for a FreeBSD 3.x system (I know, but is needed for > this project, it will be ported to 4.x later) You can't (properly) do this with 3.x. You might want to track down Kevin Van Maren, however, who cooked up a technique for doing it. I don't have a current email address for him easily to hand; I'd recommend checking the FreeBSD list archives though. -- ... every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the tasks and relationships force people to take different points of view. [Dr. Fritz Todt] V I C T O R Y N O T V E N G E A N C E To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message