From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 2 08:16:42 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A704216A4CE for ; Tue, 2 Mar 2004 08:16:42 -0800 (PST) Received: from msgbas1x.cos.agilent.com (msgbas1x.cos.agilent.com [192.25.240.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 85F4243D2F for ; Tue, 2 Mar 2004 08:16:42 -0800 (PST) (envelope-from chuck_tuffli@agilent.com) Received: from relcos1.cos.agilent.com (relcos1.cos.agilent.com [130.29.152.239]) by msgbas1x.cos.agilent.com (Postfix) with ESMTP id 2835127246; Tue, 2 Mar 2004 09:16:42 -0700 (MST) Received: from rtl.rose.agilent.com (rtl.rose.agilent.com [130.30.179.189]) by relcos1.cos.agilent.com (Postfix) with ESMTP id CF0B158D; Tue, 2 Mar 2004 09:16:41 -0700 (MST) Received: from cre85086tuf.rose.agilent.com (cre85086tuf [130.30.174.150]) ESMTP id IAA14469; Tue, 2 Mar 2004 08:16:39 -0800 (PST) Received: by cre85086tuf.rose.agilent.com (Postfix, from userid 1001) id 311F319E2AC; Tue, 2 Mar 2004 08:16:28 -0800 (PST) Date: Tue, 2 Mar 2004 08:16:28 -0800 From: Chuck Tuffli To: thefly@acaro.org Message-ID: <20040302161627.GB10533@cre85086tuf.rose.agilent.com> References: <20040302155403.6267.qmail@nexlab.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040302155403.6267.qmail@nexlab.it> User-Agent: Mutt/1.4i cc: freebsd-hackers@freebsd.org Subject: Re: Compilation X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Mar 2004 16:16:42 -0000 For the pci_* calls, you need to add the interface stuff. In Makefile SRC = bus_if.h device_if.h pci_if.h device.c In device.c uncomment the #include lines ---chuck On Tue, Mar 02, 2004 at 10:54:03AM -0500, thefly@acaro.org wrote: > I did that. I've got some #difine collisions with PCI and some system > defines not finding files like: > > @/sys/bus.h:320: device_if.h: No such file or directory > @/sys/bus.h:321: bus_if.h: No such file or directory > In file included from wd1100-lkm.c:28: > @/pci/pcivar.h:176: pci_if.h: No such file or directory > In file included from wd1100-lkm.c:28: > > or problems with functions not found like: > > @/pci/pcivar.h: In function `pci_enable_io': > @/pci/pcivar.h:274: warning: implicit declaration of function > `PCI_ENABLE_IO' > @/pci/pcivar.h: In function `pci_disable_io': > @/pci/pcivar.h:280: warning: implicit declaration of function > `PCI_DISABLE_IO' > @/pci/pcivar.h: In function `pci_set_powerstate': > @/pci/pcivar.h:307: warning: implicit declaration of function > `PCI_SET_POWERSTATE' > > code is here: http://chiakotay.nexlab.it/acaro/wd1100/wd1100.c > > > > > Chuck Tuffli writes: > > Try creating a Makefile similar to the other loadable modules. For > > example, > > > > MAINTAINER = you@yourdomain.whatever > > KMOD = mydriver > > > > .PATH: ${.CURDIR}/../../dev/wd > > > > SRCS = driver.c > > > > .include > > > > Then just type make. See src/sys/modules/*/Makefile for other > > examples. > > -- Chuck Tuffli Agilent Technologies, Storage Area Networking