summaryrefslogtreecommitdiff
path: root/sys/dev/ic/comvar.h
diff options
context:
space:
mode:
authorexplorer <explorer@NetBSD.org>1997-10-19 11:45:33 +0000
committerexplorer <explorer@NetBSD.org>1997-10-19 11:45:33 +0000
commitebf03fd00cdfdfd2cfa6abccdfb44cef10f92a49 (patch)
tree47b62f3272624bed17f4beae1e20febf593a68a3 /sys/dev/ic/comvar.h
parent2a18497c3f134cd13c2cd7721e1e1c9458605ee5 (diff)
Add hooks for entropy collection. Right now, you must place
options RND_COM in your kernel config file (along with the pseudo-device rnd line) to enable this. If results are positive, I will make this enabled by default.
Diffstat (limited to 'sys/dev/ic/comvar.h')
-rw-r--r--sys/dev/ic/comvar.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/ic/comvar.h b/sys/dev/ic/comvar.h
index 0142fb5b93b..04e0aed1720 100644
--- a/sys/dev/ic/comvar.h
+++ b/sys/dev/ic/comvar.h
@@ -1,4 +1,4 @@
-/* $NetBSD: comvar.h,v 1.16 1997/10/15 22:00:17 thorpej Exp $ */
+/* $NetBSD: comvar.h,v 1.17 1997/10/19 11:45:45 explorer Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All rights reserved.
@@ -30,6 +30,11 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include "rnd.h"
+#if NRND > 0 && defined(RND_COM)
+#include <sys/rnd.h>
+#endif
+
int comcnattach __P((bus_space_tag_t, int, int, int, tcflag_t));
#ifdef KGDB
@@ -100,6 +105,9 @@ struct com_softc {
sc_rx_ready;
volatile u_char sc_heldchange;
+#if NRND > 0 && defined(RND_COM)
+ rndsource_element_t rnd_source;
+#endif
};
/* Macros to clear/set/test flags. */