From owner-freebsd-hackers Thu Mar 14 10:40:29 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from rwcrmhc53.attbi.com (rwcrmhc53.attbi.com [204.127.198.39]) by hub.freebsd.org (Postfix) with ESMTP id D49FC37B405 for ; Thu, 14 Mar 2002 10:40:22 -0800 (PST) Received: from InterJet.elischer.org ([12.232.206.8]) by rwcrmhc53.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020314184021.LQBP2951.rwcrmhc53.attbi.com@InterJet.elischer.org>; Thu, 14 Mar 2002 18:40:21 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id KAA81304; Thu, 14 Mar 2002 10:37:49 -0800 (PST) Date: Thu, 14 Mar 2002 10:37:48 -0800 (PST) From: Julian Elischer To: "Kreider, Carl" Cc: freebsd-hackers@freebsd.org Subject: Re: Another kernel newbie In-Reply-To: <20020314124906.A25849@indy.doctordesign.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG check how the modules do this.. also, look at the example device driver in -current /usr/share/examples/drivers/make_device_driver.sh that makes and then compiles a driver. On Thu, 14 Mar 2002, Kreider, Carl wrote: > > I've been tasked with a driver for a video capture card. I've been > following the example of the bktr driver, searched the net for > information, bought "The Design and Implementation of the 4.4BSD > Operating System", read the Developer's Handbook, etc. > > I am working outside the kernel tree right now, in /usr/local/src > and am ready to compile. However, sys/bus.h wants device_if.h and > bus_if.h, which apparently are generated dynamically. How do I > make that magic happen? > > -- > Carl Kreider > Doctor Design Services > 700 E Beardsley Suite 14A > Elkhart Indiana 46514 > 219-206-8050 x104 > carl.kreider@windriver.com ckreider@doctordesign.com > ckreider@acm.org ckreider@gte.net > ============================================================= > "The reasonable man adapts himself to the world: the unreasonable one > persists in trying to adapt the world to himself. Therefore all progress > depends on the unreasonable man." > -- George Bernard Shaw > ============================================================= > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message