KBD Queries

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
rahman

KBD Queries

Post 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?
BI lazy

Re:KBD Queries

Post 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?
rahman

Re:KBD Queries

Post by rahman »

thanx a lot
Therx

Re:KBD Queries

Post 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 ;)
BI lazy

Re:KBD Queries

Post 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.
Post Reply