From owner-freebsd-hackers Wed Nov 7 11: 0:46 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from InterJet.elischer.org (c421509-a.pinol1.sfba.home.com [24.7.86.9]) by hub.freebsd.org (Postfix) with ESMTP id 3C8CA37B41A for ; Wed, 7 Nov 2001 11:00:35 -0800 (PST) Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id KAA72081; Wed, 7 Nov 2001 10:56:46 -0800 (PST) Date: Wed, 7 Nov 2001 10:56:45 -0800 (PST) From: Julian Elischer To: mark tinguely Cc: dragonfire820@mediaone.net, freebsd-hackers@FreeBSD.ORG Subject: Re: PCI Device Drivers In-Reply-To: <200111071441.fA7EfQp95037@web.cs.ndsu.nodak.edu> 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 On Wed, 7 Nov 2001, mark tinguely wrote: > I put a generic 4.4 PCI device driver skeleton at: > > http://www.cs.ndsu.nodak.edu/~tinguely/xxx_pci.c > > it is more that you wanted but less fluff than a complete driver. > It is a skeleton C code, not a tutorial on newbus, dma, etc issues. > > The ioctl() interface depends on how you interface your code with the > kernel (network driver is different from a character driver). I think > you are implementing a character driver, see the character driver information > in /usr/share/examples/drivers/make_device_driver.sh. how to add your driver > to the kernel configuration is simular to the changes made in In -current, the example IS a PCI driver... > make_device_driver.sh. yes, I know you want a complete > make_pci_device_driver.sh file, but I am too lazy. > > --mark tinguely > > > 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