Page 1 of 1

ps/2 mouse

Posted: Tue Feb 10, 2004 12:00 am
by gaf
Hi
I'm a bit confused about the status-byte of the ps/2 controller. There are 3 bits that seem to indicate wether data is available or not:
b1 Output Buffer Full (keyboard ??)
b2 Input Buffer Full (general ??)
b6 Mouse Output Buffer Full (mouse ??)

Can anybody explain me what _exactly_ they mean ?
Some source would be perfect.

regards,
gaf

RE:ps/2 mouse

Posted: Wed Feb 11, 2004 12:00 am
by Gandalf
hi gaf,

OBF (b1) - This bit is set whenever the keyboard Controller has some new data to provide to the kernel.

IBF (b2) - This bit is set whenever the keyboard Controller has some data in its input buffer (ie when you do something like outb(0x60,val) and the controller hasn't read it yet).

The same applies to MOBF.

if you want to have more info visit www.beyondlogic.com and read PS/2 protocol and PS/2 Keyboard Controller docs.

rgds
Gandalf

PS: However I found that the docs from www.beyondlogic.com confuses the IBF & OBFs. Correct if I am wrong.

RE:ps/2 mouse

Posted: Wed Feb 11, 2004 12:00 am
by gaf
Hi Gandalf,
Thanks for your quick answer.
I've been to www.beyondlogic.com but this site seemed to be pretty under construction - did you mean www.beyondlogic.org ?

cheers,
gaf

RE:ps/2 mouse

Posted: Thu Feb 12, 2004 12:00 am
by Gandalf
hi,

  Well here are the real links (forget about beyondlogic.org - it is for other stuffs like USBs etc):

http://panda.cs.ndsu.nodak.edu/~achapwe ... mouse.html
http://panda.cs.ndsu.nodak.edu/~achapwe ... S2/ps2.htm

These docs are damn useful.

rgds
Gandalf