[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[microblaze-uclinux] ps/2 mouse



hi all,

I am currently working with Xilinx PS/2 code...here i need use this only for my ps/2 mouse, so i want to know how do we initialize the ps/2 mouse ...can i use the same values as in pc_keyb.c in this also...

Has anyone made use of this code or modified this code:
http://ppc.bkbits.net:8080/linuxppc-2.4/src/drivers/char/xilinx_keyb?nav=index.html|src/.|src/drivers|src/drivers/char

i have registered this  device as psaux using this code but i think i am  not able to initialize the mouse since the status register does not change when i write the initialization values(as in pc_keyb.c) to the control and data write registers.

what exactly should happen when i initialize the mouse...i mean how will i know the mouse is beign initialized.

when i move the mouse i do not get any increment in /proc/



when i do "cat /dev/psaux" for the first time its okay..but when i do the same next time its gives a error device or resource busy....so when i open the device....what could be the reason for this?

i am getting Mouse with irq 5 in /proc/interrupts
but i get the above only when i call request_irq in the init function....but when i call request_irq from open function i do not get Mouse with irq 5 in /proc/interrupts...what could be the reason for this?

but in the default code we call request_irq(for mouse) in the open function.

any help or clue in regard will be of immense help

Regards
Hema

___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/