Page 1 of 1

KBD Queries

Posted: Sun Dec 07, 2003 12:57 pm
by rahman
in my keyboard driver, when i move edh to the port 64h, i receive the error message in bochs as:

unsupported io write to 64h value=ed

what will be the problem?

Re:KBD Queries

Posted: Sun Dec 07, 2003 1:22 pm
by BI lazy
you want to play with kbd leds, don't you?

port 64h is the kbd status port, from which you fetch status information.- like: input buffer ready/output buffer ready.

a command like 0xed (modify led), you write to port 0x60, just followed by the value describing which leds to torn on/off .

everything clear now?

Re:KBD Queries

Posted: Sun Dec 07, 2003 1:29 pm
by rahman
thanx a lot

Re:KBD Queries

Posted: Sun Dec 07, 2003 3:08 pm
by Therx
error message in bochs
I guess that bochs doesn't support this port yet. Lets face it its hardly a key functionality thing. You could use #ifdef's so you can compile a bochs version but I've given up on bochs if it works on a real PC I'm happy ;)

Re:KBD Queries

Posted: Mon Dec 08, 2003 5:27 am
by BI lazy
Bochs supports this kind of operatiion, Pete. I use it all the time and it works pretty fine as long as i dont' exceed the length of data which can bew written to that port.

Yeah, and this led thing now works for quite a year pretty fine.

stay safe.