Page MenuHomeFreeBSD

D42384.id129467.diff
No OneTemporary

D42384.id129467.diff

diff --git a/usr.sbin/bhyve/amd64/ps2kbd.c b/usr.sbin/bhyve/amd64/ps2kbd.c
--- a/usr.sbin/bhyve/amd64/ps2kbd.c
+++ b/usr.sbin/bhyve/amd64/ps2kbd.c
@@ -53,6 +53,7 @@
/* keyboard device commands */
#define PS2KC_RESET_DEV 0xff
+#define PS2KC_SET_DEFAULTS 0xf6
#define PS2KC_DISABLE 0xf5
#define PS2KC_ENABLE 0xf4
#define PS2KC_SET_TYPEMATIC 0xf3
@@ -300,6 +301,10 @@
fifo_put(sc, PS2KC_ACK);
fifo_put(sc, PS2KC_BAT_SUCCESS);
break;
+ case PS2KC_SET_DEFAULTS:
+ fifo_reset(sc);
+ fifo_put(sc, PS2KC_ACK);
+ break;
case PS2KC_DISABLE:
sc->enabled = false;
fifo_put(sc, PS2KC_ACK);

File Metadata

Mime Type
text/plain
Expires
Sat, Jan 11, 1:11 AM (13 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15748610
Default Alt Text
D42384.id129467.diff (618 B)

Event Timeline