lkml.org 
[lkml]   [2000]   [Sep]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[ot] resetting keyboard via keyboard contoller.

Hello,
Kind of off-topic question.

I want to reset/set keyboard from my own interrupt handler
(via irq 9), so I don't want/can't to use bios (or even dos)
interface. This assumes a PC.

Looking at kernel sources it seems to me, that reset of
keyboard would be

outp(0x60,0xFF);

and if I would want to set CAPS_LOCK led, it would be something
like this

outp(0x60,0xED);
sleep(1);
outp(0x60,0x2);

Yet it does not work. Can anyone hint me in right direction
what I'm doing wrong? A 5 line example would be great.
I suspect it has something to do w/ timing, but not sure
where the error is.

The above example is from borland 4.5 for dos (under dosemu).
(so it is emulated keyboard contoller, but it should not
make differnce).
--
Adam
http://www.eax.com The Supreme Headquarters of the 32 bit registers

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:38    [W:0.034 / U:0.036 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site