From 3c8f8257cd037d99d249a17877e6153a09df3f68 Mon Sep 17 00:00:00 2001 From: Andreas Schulz Date: Mon, 26 Dec 1994 17:50:18 +0000 Subject: [PATCH] Add a patch that someone on the net has used to run on his IBM Thinkpad. Sorry, lost the name and mail of the original author. The whole patch is ifdefed, so it should not disturb someone else in the moment. --- sys/dev/syscons/syscons.c | 9 ++++++++- sys/i386/isa/syscons.c | 9 ++++++++- sys/isa/syscons.c | 9 ++++++++- 3 files changed, 24 insertions(+), 3 deletions(-) diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c index f77531f9cd3e..5dadea9a4e1a 100644 --- a/sys/dev/syscons/syscons.c +++ b/sys/dev/syscons/syscons.c @@ -35,7 +35,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: syscons.c,v 1.82 1994/12/18 19:35:59 joerg Exp $ + * $Id: syscons.c,v 1.83 1994/12/18 19:45:53 joerg Exp $ */ #include "sc.h" @@ -344,6 +344,13 @@ gotack: if (val != KB_RESET_DONE) printf("scprobe: keyboard RESET failed %02x\n", val); } +#ifdef XT_KEYBOARD + kbd-wait(); + outb(KB_DatA, 0xF0); + kbd-wait(); + outb(KD_DATA, 1) + kbd_wait(); +#endif /* XT_KEYBOARD */ return (IO_KBDSIZE); } diff --git a/sys/i386/isa/syscons.c b/sys/i386/isa/syscons.c index f77531f9cd3e..5dadea9a4e1a 100644 --- a/sys/i386/isa/syscons.c +++ b/sys/i386/isa/syscons.c @@ -35,7 +35,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: syscons.c,v 1.82 1994/12/18 19:35:59 joerg Exp $ + * $Id: syscons.c,v 1.83 1994/12/18 19:45:53 joerg Exp $ */ #include "sc.h" @@ -344,6 +344,13 @@ gotack: if (val != KB_RESET_DONE) printf("scprobe: keyboard RESET failed %02x\n", val); } +#ifdef XT_KEYBOARD + kbd-wait(); + outb(KB_DatA, 0xF0); + kbd-wait(); + outb(KD_DATA, 1) + kbd_wait(); +#endif /* XT_KEYBOARD */ return (IO_KBDSIZE); } diff --git a/sys/isa/syscons.c b/sys/isa/syscons.c index f77531f9cd3e..5dadea9a4e1a 100644 --- a/sys/isa/syscons.c +++ b/sys/isa/syscons.c @@ -35,7 +35,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: syscons.c,v 1.82 1994/12/18 19:35:59 joerg Exp $ + * $Id: syscons.c,v 1.83 1994/12/18 19:45:53 joerg Exp $ */ #include "sc.h" @@ -344,6 +344,13 @@ gotack: if (val != KB_RESET_DONE) printf("scprobe: keyboard RESET failed %02x\n", val); } +#ifdef XT_KEYBOARD + kbd-wait(); + outb(KB_DatA, 0xF0); + kbd-wait(); + outb(KD_DATA, 1) + kbd_wait(); +#endif /* XT_KEYBOARD */ return (IO_KBDSIZE); }