Subject: CVS commit: src/sys/dev/pci
To: None <>
From: Thor Lancelot Simon <>
List: source-changes
Date: 10/15/2005 08:58:15
Module Name:	src
Committed By:	tls
Date:		Sat Oct 15 08:58:15 UTC 2005

Modified Files:
	src/sys/dev/pci: hifn7751.c hifn7751var.h

Log Message:
Add support for the hardware random number generator on the Hifn 7811
and 795x.  This was present in the driver before, but disabled due to
problems with the actual randomness of generated numbers on the
ubiquitious 7900-series parts.  The code here is far, far more
conservative than anyone else's driver for this RNG is -- but I
believe that conservatism is called for, because the 79xx RNG
design is missing a number of pieces from Hifn's "reference" 6500
RNG, and thus the numbers it generates must be treated with some

Support for the 7811 RNG (which is a full-fledged 6500 type
generator) is pretty much the same here as in other variants of
this driver, except that it uses Hifn's "worst case" estimate of
actual entropy per output bit, so it will accumulate bits much
more slowly.  The 7811 support is untested.

To generate a diff of this commit:
cvs rdiff -r1.24 -r1.25 src/sys/dev/pci/hifn7751.c
cvs rdiff -r1.5 -r1.6 src/sys/dev/pci/hifn7751var.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.