ps/2 mouse

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
User avatar
gaf
Member
Member
Posts: 349
Joined: Thu Oct 21, 2004 11:00 pm
Location: Munich, Germany

ps/2 mouse

Post 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
Gandalf

RE:ps/2 mouse

Post 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.
User avatar
gaf
Member
Member
Posts: 349
Joined: Thu Oct 21, 2004 11:00 pm
Location: Munich, Germany

RE:ps/2 mouse

Post 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
Gandalf

RE:ps/2 mouse

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