From owner-freebsd-arch Tue Oct 10 10:43:13 2000 Delivered-To: freebsd-arch@freebsd.org Received: from sandman.sandgate.com (sandman.sandgate.com [38.161.139.2]) by hub.freebsd.org (Postfix) with ESMTP id B69A337B502 for ; Tue, 10 Oct 2000 10:43:07 -0700 (PDT) Received: from vectra (a118.COMCAT.COM [207.86.230.118]) by sandman.sandgate.com (8.10.0/8.10.0) with SMTP id e9AHhLx11539 for ; Tue, 10 Oct 2000 13:43:27 -0400 (EDT) From: "Sue Wainer" To: "Freebsd-Arch" Subject: Ethernet Device Driver Modules Date: Tue, 10 Oct 2000 13:42:58 -0400 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_000C_01C032C0.002A3690" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. ------=_NextPart_000_000C_01C032C0.002A3690 Content-Type: multipart/alternative; boundary="----=_NextPart_001_000D_01C032C0.002A3690" ------=_NextPart_001_000D_01C032C0.002A3690 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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. 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. 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? Thanks for your attention. Sue Wainer ------=_NextPart_001_000D_01C032C0.002A3690 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I am trying to = create an=20 Ethernet Device Driver Module that I can load with
kldload. I am = assuming that the=20 driver probe function will be entered when the
module is=20 loaded.
I have created a = standard pci=20 bus Ethernet driver, if_asic.c, modeled after = drivers
in /sys/pci. And, I = have looked=20 in /usr/share/examples/kld/cdev for an example.
 
Attached is my = Makefile. When=20 compiling if_asic.c, I get undefines "device_if.h", = etc.
I have made a = kernel image=20 including my driver, and see where these files are = placed
in my=20 config/MYBUILD/modules/.... directory path. What am I missing in=20 building
my driver as a = loadable=20 module?
 
Thanks for your=20 attention.
 
Sue=20 Wainer
------=_NextPart_001_000D_01C032C0.002A3690-- ------=_NextPart_000_000C_01C032C0.002A3690 Content-Type: application/octet-stream; name="Makefile" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Makefile" SUBDIR= module load: _SUBDIRUSE unload: _SUBDIRUSE .include SRCS = if_asic.c CFLAGS = -I/sys/WaveNIC1/FreeBSD/AdapterDriver \ -I/sys/WaveNIC1/FreeBSD/include \ -I/sys/WaveNIC1/include \ -I/sys/WaveNIC1/SharedSource \ -I/sys/od \ -I- -I. -I.. -I../.. -I../../../include -O -D__CYGWIN32__ \ -DUSE_PPP -DDEFAULT_DEBUG_LEVEL=0 -D__CYGWIN32__ -DKERNEL KMOD = wavenic NOMAN = 1 .include "/usr/share/mk/bsd.kmod.mk" ------=_NextPart_000_000C_01C032C0.002A3690-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message