From owner-freebsd-questions Fri Nov 17 7:31: 3 2000 Delivered-To: freebsd-questions@freebsd.org Received: from po4.wam.umd.edu (po4.wam.umd.edu [128.8.10.166]) by hub.freebsd.org (Postfix) with ESMTP id E635537B479 for ; Fri, 17 Nov 2000 07:31:00 -0800 (PST) Received: from rac2.wam.umd.edu (IDENT:root@rac2.wam.umd.edu [128.8.10.142]) by po4.wam.umd.edu (8.9.3/8.9.3) with ESMTP id KAA06428; Fri, 17 Nov 2000 10:30:54 -0500 (EST) Received: from rac2.wam.umd.edu (IDENT:sendmail@localhost [127.0.0.1]) by rac2.wam.umd.edu (8.9.3/8.9.3) with SMTP id KAA13360; Fri, 17 Nov 2000 10:30:54 -0500 (EST) Received: from localhost (culverk@localhost) by rac2.wam.umd.edu (8.9.3/8.9.3) with ESMTP id KAA13356; Fri, 17 Nov 2000 10:30:53 -0500 (EST) X-Authentication-Warning: rac2.wam.umd.edu: culverk owned process doing -bs Date: Fri, 17 Nov 2000 10:30:53 -0500 (EST) From: Kenneth Wayne Culver To: Vinay Gupta Cc: freebsd-questions@FreeBSD.ORG Subject: Re: PCI LKM driver source code? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Where can I get example source code for PCI device drivers > for FreeBSD that are built as LKMs? Is there any documentation > available on this subject? > You could look in /usr/src/sys/modules/ and pick anything out that is a module and has a PCI device driver. I'm using a module for the if_xl driver right now as well as the bktr driver. You will notice that there is no source code in any of the /usr/src/sys/modules directories, that is because the regular drivers are used... so just check out the regular drivers. I would reccomend using FreeBSD 4.x for this, and also, FreeBSD hasn't used LKM's since 3.0 I believe, they're called KLD's now. :-) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message