From owner-freebsd-hackers Thu Jan 18 2: 6:49 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from cain.gsoft.com.au (genesi.lnk.telstra.net [139.130.136.161]) by hub.freebsd.org (Postfix) with ESMTP id BACA237B401 for ; Thu, 18 Jan 2001 02:06:15 -0800 (PST) Received: from cain.gsoft.com.au (doconnor@cain [203.38.152.97]) by cain.gsoft.com.au (8.8.8/8.8.8) with ESMTP id UAA29785; Thu, 18 Jan 2001 20:34:28 +1030 (CST) (envelope-from doconnor@gsoft.com.au) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Thu, 18 Jan 2001 20:34:28 +1030 (CST) From: "Daniel O'Connor" To: Satyajeet Seth Subject: RE: How to make a PCI network device loadable module? Cc: freebsd-hackers@freebsd.org Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 18-Jan-01 Satyajeet Seth wrote: > I'd like to know how to make the network device driver I'm > working on, a loadable module. It's for a PCI device. I was > unable to find any examples of PCI network modules under /sys/pci. > The examples under /usr/share/examples/kld are not very helpful > either for a PCI network device. There are a lot of loadable PCI network cards.. fxp, dc, sk, ti, tl etc... Try looking at /usr/src/sys/pci/if_??*.[ch] This is a 4.2-STABLE system FYI. I don't think you need anything special for your device to be a KLD.. I maintain a simple character device which didn't need anything special, but network devices may be different. --- 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-hackers" in the body of the message