From owner-freebsd-drivers@FreeBSD.ORG Wed Mar 1 19:32:37 2006 Return-Path: X-Original-To: freebsd-drivers@freebsd.org Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 96C3816A420 for ; Wed, 1 Mar 2006 19:32:37 +0000 (GMT) (envelope-from mmp9769@cs.rit.edu) Received: from pony-express.cs.rit.edu (pony-express.cs.rit.edu [129.21.30.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id 016D243D48 for ; Wed, 1 Mar 2006 19:32:36 +0000 (GMT) (envelope-from mmp9769@cs.rit.edu) Received: (qmail 17113 invoked by uid 56003); 1 Mar 2006 19:32:36 -0000 Received: from 129.21.37.65 by pony-express (envelope-from , uid 20003) with qmail-scanner-1.25st (clamdscan: 0.87/1184. spamassassin: 3.0.3. perlscan: 1.25st. Clear:RC:1(129.21.37.65):SA:0(0.0/5.0):. Processed in 0.665942 secs); 01 Mar 2006 19:32:36 -0000 X-Spam-Status: No, hits=0.0 required=5.0 Received: from krypton.cs.rit.edu (HELO krypton) (129.21.37.65) by pony-express.cs.rit.edu with (EDH-RSA-DES-CBC3-SHA encrypted) SMTP; 1 Mar 2006 19:32:35 -0000 Date: Wed, 1 Mar 2006 14:32:34 -0500 (EST) From: "Michael M. Press" To: freebsd-drivers@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Intel 82802 Firmware Hub RNG support X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Mar 2006 19:32:37 -0000 Some older Intel boards have 82802AB or 82802AC chips with random number generators built into them. I have a system with one of these chips in it, but FreeBSD doesn't appear to have a driver for it. I think support for this hardware RNG would be great and I am willing to write the driver, but I don't have much knowledge or experience with drivers and will probably not be able to do it on my own. OpenBSD has support for these chips built in to their 'pchb' driver (sys/arch/i386/pci/pchb.c). I edited sys/i386/pci/pci_bus.c on my system and added some code to the legacy_pcib_attach function to attempt to mimic what OpenBSD is doing. After rebuilding and rebooting, my changes seem to have no effect. This doesn't really surprise me, since I have very little idea what I'm doing anyway and I don't even know if I'm tinkering with the correct file. I would greatly appreciate any suggestions anyone can offer that might help me. If anyone who has more experience than me would like to take over and write the driver themselves, they should feel free to do so. Thanks. --Mike