From owner-freebsd-small Wed Nov 7 4:14:38 2001 Delivered-To: freebsd-small@freebsd.org Received: from chmls16.mediaone.net (chmls16.mediaone.net [24.147.1.151]) by hub.freebsd.org (Postfix) with ESMTP id EEE7937B419 for ; Wed, 7 Nov 2001 04:14:34 -0800 (PST) Received: from gandalf (h0050dac2456d.ne.mediaone.net [65.96.125.3]) by chmls16.mediaone.net (8.11.1/8.11.1) with SMTP id fA7CEYT29091 for ; Wed, 7 Nov 2001 07:14:34 -0500 (EST) Message-ID: <009c01c16785$c07db660$037d6041@gandalf> From: "Paul/Tricia Cevoli" To: Subject: PCI Device Driver Date: Wed, 7 Nov 2001 07:14:29 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-small@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I'm writing a very simple PCI device driver that, basically, needs to allocate PCI resources, provide 2 ioctls, then deallocate PCI resources on shutdown. The documentation on writing FreeBSD device drivers is sketchy at best. Does anybody have any good resources? Even a pointer to a simple driver would be helpful, many of the drivers in the source tree are SCSI or RAID drivers which are far more complicated than what I need. I've begun ripping these apart but if there are more resources available I'd like to get my hands on them. Also, I've begun to piece the driver together, but the most notable piece of missing information is how to have the driver loaded. There used to be a series of files to edit to add your source into the kernel build and add your device into the kernel config file. I'm missing the equivalent pieces of information for a loadable driver. Thanks in advance, Paul To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-small" in the body of the message