diff options
author | markm <markm@FreeBSD.org> | 1995-11-12 17:02:45 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 1995-11-12 17:02:45 +0000 |
commit | a01aa9429168245f1480fadaa22f17c436e9cf79 (patch) | |
tree | 8c810f5e24a4600a1911c1857fefbf7c28e64a49 /sys/i386/isa/pcvt/pcvt_kbd.c | |
parent | 813c396d87b382adbe74b412e354966d7d7b8eee (diff) | |
download | FreeBSD-src-a01aa9429168245f1480fadaa22f17c436e9cf79.zip FreeBSD-src-a01aa9429168245f1480fadaa22f17c436e9cf79.tar.gz |
Add /dev/random hooks to the key input routines for pcvt. This allows
the scancodes on a PCVT machine to be used as stochastic input as well
as SysCons..
Reviewed by: Joerg Wunsch
Diffstat (limited to 'sys/i386/isa/pcvt/pcvt_kbd.c')
-rw-r--r-- | sys/i386/isa/pcvt/pcvt_kbd.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/i386/isa/pcvt/pcvt_kbd.c b/sys/i386/isa/pcvt/pcvt_kbd.c index b0caf49..eda2d08 100644 --- a/sys/i386/isa/pcvt/pcvt_kbd.c +++ b/sys/i386/isa/pcvt/pcvt_kbd.c @@ -981,6 +981,11 @@ loop: if (pcvt_kbd_raw) { keybuf[0] = dt; + +#if PCVT_FREEBSD > 210 + add_keyboard_randomness(dt); +#endif /* PCVT_FREEBSD > 210 */ + #if !PCVT_USL_VT_COMPAT if ((dt & 0x80) == 0) /* key make */ @@ -1323,6 +1328,10 @@ no_mouse_event: /* got a normal scan key */ regular: +#if PCVT_FREEBSD > 210 + add_keyboard_randomness(dt); +#endif /* PCVT_FREEBSD > 210 */ + #if PCVT_SCANSET == 1 kbd_status.breakseen = dt & 0x80 ? 1 : 0; dt &= 0x7f; |