From owner-freebsd-arch Tue Oct 10 21:37:20 2000 Delivered-To: freebsd-arch@freebsd.org Received: from mass.osd.bsdi.com (adsl-63-202-176-106.dsl.snfc21.pacbell.net [63.202.176.106]) by hub.freebsd.org (Postfix) with ESMTP id BFC7A37B66D for ; Tue, 10 Oct 2000 21:37:16 -0700 (PDT) Received: from mass.osd.bsdi.com (localhost [127.0.0.1]) by mass.osd.bsdi.com (8.11.0/8.9.3) with ESMTP id e9B4LZh04292; Tue, 10 Oct 2000 21:21:36 -0700 (PDT) (envelope-from msmith@mass.osd.bsdi.com) Message-Id: <200010110421.e9B4LZh04292@mass.osd.bsdi.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: "Sue Wainer" Cc: "Freebsd-Arch" Subject: Re: Ethernet Device Driver Modules In-reply-to: Your message of "Tue, 10 Oct 2000 13:42:58 EDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 10 Oct 2000 21:21:35 -0700 From: Mike Smith Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I am trying to create an Ethernet Device Driver Module that I can load > with kldload. I am assuming that the driver probe function will be entered > when the module is loaded. This will happen presuming your module itself has been correctly laid out. Without access to the sources for your module, that's hard to know. > I have created a standard pci bus Ethernet driver, if_asic.c, modeled > after drivers in /sys/pci. And, I have looked in /usr/share/examples/kld/ > cdev for an example. These examples are extremely old. Check any of the modules in sys/ modules for better examples. > Attached is my Makefile. When compiling if_asic.c, I get undefines > "device_if.h", etc. I have made a kernel image including my driver, and > see where these files are placed in my config/MYBUILD/modules/.... > directory path. What am I missing in building my driver as a loadable > module? You need to list the relevant bus interface headers in your module Makefile. Again, check any of the other network interface modules' build infrastructure for examples. If you need more specific help, please feel free to ask. Regards, Mike -- ... 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-arch" in the body of the message