diff options
author | bde <bde@FreeBSD.org> | 1998-06-21 11:33:32 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-06-21 11:33:32 +0000 |
commit | 7645c5747039df0ea1540e22d911a18e309eab8d (patch) | |
tree | 267a41ccb7aa5b2e3e76ec452479c6172d5ea461 /sys/sys/random.h | |
parent | 203d5be5bfd188411b34d5a1bcc08aceff4ebda3 (diff) | |
download | FreeBSD-src-7645c5747039df0ea1540e22d911a18e309eab8d.zip FreeBSD-src-7645c5747039df0ea1540e22d911a18e309eab8d.tar.gz |
Converted add_interrupt_randomness() to take a `void *' arg. Rewrote
mmioctl() to fix hundreds of style bugs and a few error handling bugs
(don't check for superuser privilege for inappropriate ioctls, don't
check the input arg for the output-only MEM_RETURNIRQ ioctl, and don't
return EPERM for null changes).
Diffstat (limited to 'sys/sys/random.h')
-rw-r--r-- | sys/sys/random.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/sys/sys/random.h b/sys/sys/random.h index 9c4850a..569173a 100644 --- a/sys/sys/random.h +++ b/sys/sys/random.h @@ -1,7 +1,7 @@ /* * random.h -- A strong random number generator * - * $Id: random.h,v 1.14 1998/04/06 09:30:18 phk Exp $ + * $Id: random.h,v 1.15 1998/06/18 15:32:05 bde Exp $ * * Version 0.95, last modified 18-Oct-95 * @@ -58,16 +58,19 @@ #ifdef KERNEL -/* Interrupts to be used in the randomizing process */ +/* Type of the cookie passed to add_interrupt_randomness. */ -extern inthand2_t *sec_intr_handler[]; -extern void *sec_intr_unit[]; +struct random_softc { + inthand2_t *sc_handler; + void *sc_arg; + int sc_intr; +}; /* Exported functions */ void rand_initialize(void); void add_keyboard_randomness(u_char scancode); -void add_interrupt_randomness(int irq); +inthand2_t add_interrupt_randomness; #ifdef notused void add_blkdev_randomness(int major); #endif |