summaryrefslogtreecommitdiffstats
path: root/sys/dev/random/randomdev.h
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2013-10-06 09:55:28 +0000
committermarkm <markm@FreeBSD.org>2013-10-06 09:55:28 +0000
commitefb299b5bd4b07ba1bee39b550375dd6771baabe (patch)
tree62bd76f5e2f9f64639531f96df64626d889df1db /sys/dev/random/randomdev.h
parent21998ad6881d6d9abdfd231ea6a267465f7d3e93 (diff)
downloadFreeBSD-src-efb299b5bd4b07ba1bee39b550375dd6771baabe.zip
FreeBSD-src-efb299b5bd4b07ba1bee39b550375dd6771baabe.tar.gz
SNAPSHOT.
Simplify the malloc pools; We only need one for this device. Simplify the harvest queue. Marginally improve the entropy pool hashing, making it a bit faster in the process. Connect up the hardware "live" source harvesting. This is simplistic for now, and will need to be made rate-adaptive. All of the above passes a compile test but needs to be debugged.
Diffstat (limited to 'sys/dev/random/randomdev.h')
-rw-r--r--sys/dev/random/randomdev.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/random/randomdev.h b/sys/dev/random/randomdev.h
index a0e002f..3afa943 100644
--- a/sys/dev/random/randomdev.h
+++ b/sys/dev/random/randomdev.h
@@ -30,6 +30,8 @@
* and non algorithm-specific for the entropy processor
*/
+MALLOC_DECLARE(M_ENTROPY);
+
typedef void random_init_func_t(void);
typedef void random_deinit_func_t(void);
typedef int random_block_func_t(int);
OpenPOWER on IntegriCloud