hwrng: alea - Add support for Araneus Alea I USB RNG
Subsystems (2)
PATCH 1/1 hwrng: alea - Add support for Araneus Alea I USB RNG
Adds support for the Araneus Alea I USB hardware Random Number Generator. This RNG creates entropy at a high rate, about 100kb/s.
---
Just a note about the name of the module, I haven't append "-rng" to the name, like every other module in hw_random, because those modules contain drivers for the RNG part of some more complex device. By contrast, the Alea is solely an RNG so adding "-rng" to the name seems redundant.
drivers/char/hw_random/Kconfig | 13 ++ drivers/char/hw_random/Makefile | 1 + drivers/char/hw_random/alea.c | 370 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 384 insertions(+) create mode 100644 drivers/char/hw_random/alea.c
drivers/char/hw_random/Kconfig +13 -0
@@ -396,6 +396,19 @@ config HW_RANDOM_PIC32 If unsure, say Y. +config HW_RANDOM_ALEA + tristate "Araneus Alea I USB Random Number Generator support" + depends on HW_RANDOM && USB + default n + ---help--- + This driver provides kernel-side support for the Araneus + Alea I USB hardware Random Number Generator. + + To compile this driver as a module, choose M here. the + module will be called alea. + + If unsure, say N. + endif # HW_RANDOM config UML_RANDOM
drivers/char/hw_random/Makefile +1 -0
@@ -34,3 +34,4 @@ obj-$(CONFIG_HW_RANDOM_ST) += st-rng.o obj-$(CONFIG_HW_RANDOM_XGENE) += xgene-rng.o obj-$(CONFIG_HW_RANDOM_STM32) += stm32-rng.o obj-$(CONFIG_HW_RANDOM_PIC32) += pic32-rng.o +obj-$(CONFIG_HW_RANDOM_ALEA) += alea.o
drivers/char/hw_random/alea.c new file +370 -0
370 lines not on this page · raw message
Signature · 1 line
2.1.4
Quoted 7 lines · Bob Ham
Adds support for the Araneus Alea I USB hardware Random Number Generator. This RNG creates entropy at a high rate, about 100kb/s.
Signed-off-by Bob Ham <bob.ham-ZGY8ohtN/[email protected]>---
+++
b/drivers/char/hw_random/alea.c
Why didn't you just add the device ID to chaoskey.c? (Because that one is hidden in drivers/usb/misc? ;-)
Regards,
Clemens
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 11 lines · Clemens Ladisch
Quoted 7 lines · Bob Ham
Adds support for the Araneus Alea I USB hardware Random Number Generator. This RNG creates entropy at a high rate, about 100kb/s.
Signed-off-by Bob Ham <[email protected]>---
+++
b/drivers/char/hw_random/alea.cWhy didn't you just add the device ID to
chaoskey.c? (Because that one is hidden indrivers/usb/misc? ;-)
Argh! Because that one is hidden in drivers/usb/misc! Pfft :-)
Thanks.
Signature · 3 lines
Bob Ham <[email protected]> Software Engineer Collabora
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Open First
Collabora is hiring!
Please check out our latest opportunities here:
http://bit.ly/Collabora-Careers
<<<<<<<<