Commit aaf9c531 authored by Jeff Garzik's avatar Jeff Garzik

[hw_random] update amd768_rng driver to be modular; add Intel support

Take Alan's amd768_rng driver, recently renamed to hw_random.c,
and convert it's very-simple structure to support multiple
types of hardware RNG.  Integrate Intel i8xx (ICH) RNG support.
parent 8022d071
...@@ -709,39 +709,20 @@ config NWFLASH ...@@ -709,39 +709,20 @@ config NWFLASH
If you're not sure, say N. If you're not sure, say N.
config INTEL_RNG config HW_RANDOM
tristate "Intel i8x0 Random Number Generator support" tristate "Intel/AMD H/W Random Number Generator support"
depends on (X86 || IA64) && PCI depends on (X86 || IA64) && PCI
---help--- ---help---
This driver provides kernel-side support for the Random Number This driver provides kernel-side support for the Random Number
Generator hardware found on Intel i8xx-based motherboards. Generator hardware found on Intel i8xx-based motherboards,
and AMD 76x-based motherboards.
Both a character driver, used to read() entropy data, and a timer Provides a character driver, used to read() entropy data.
function which automatically adds entropy directly into the
kernel pool, are exported by this driver.
To compile this driver as a module ( = code which can be inserted in To compile this driver as a module ( = code which can be inserted in
and removed from the running kernel whenever you want), say M here and removed from the running kernel whenever you want), say M here
and read <file:Documentation/modules.txt>. The module will be called and read <file:Documentation/modules.txt>. The module will be called
i810_rng. hw_random.
If unsure, say N.
config AMD_RNG
tristate "AMD 768 Random Number Generator support"
depends on X86 && PCI
---help---
This driver provides kernel-side support for the Random Number
Generator hardware found on AMD 76x based motherboards.
Both a character driver, used to read() entropy data, and a timer
function which automatically adds entropy directly into the
kernel pool, are exported by this driver.
To compile this driver as a module ( = code which can be inserted in
and removed from the running kernel whenever you want), say M here
and read <file:Documentation/modules.txt>. The module will be called
amd768_rng.
If unsure, say N. If unsure, say N.
......
...@@ -59,8 +59,7 @@ endif ...@@ -59,8 +59,7 @@ endif
obj-$(CONFIG_TOSHIBA) += toshiba.o obj-$(CONFIG_TOSHIBA) += toshiba.o
obj-$(CONFIG_I8K) += i8k.o obj-$(CONFIG_I8K) += i8k.o
obj-$(CONFIG_DS1620) += ds1620.o obj-$(CONFIG_DS1620) += ds1620.o
obj-$(CONFIG_INTEL_RNG) += i810_rng.o obj-$(CONFIG_HW_RANDOM) += hw_random.o
obj-$(CONFIG_AMD_RNG) += amd768_rng.o
obj-$(CONFIG_QIC02_TAPE) += tpqic02.o obj-$(CONFIG_QIC02_TAPE) += tpqic02.o
obj-$(CONFIG_FTAPE) += ftape/ obj-$(CONFIG_FTAPE) += ftape/
obj-$(CONFIG_H8) += h8.o obj-$(CONFIG_H8) += h8.o
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment