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

[microblaze-uclinux] mouse driver code in uClinux-dist



Hi all

Actually we are using Sparten 2E memec board with microblaze soft core processor an OS as uClinux.

here we have separate PS2 ports and controllers for mouse and keyboard. ie mouse and keyboard are independent of each other.ie mouse must work irrespective of  keyboard.

now in the uClinux-dist the mouse and keyboard code is in the file (ie) in /uClinux-dist/linux-2.4x/drivers/char/pc_keyb.c
 
so can i use the same code  by changing kbd_read,kbd_write etc functions
to mouse_read,mouse_write functions
and defining the  proper register locations to the respective read,write,cntl,status calls
unlike keyboard which uses 3 registers(data,cntl,status) the mouse uses 4 registers (data read,data write,cntl,status)
these are the details given to me by the hardware person responsible for mouse.

can the same file pc_keyb.c be used with some modifications......has anyone worked with the mouse driver....i mean what are other details i will have to define in the header files....

can anyone forward me a proper link to learn about ps2 mouse driver.

thanks and 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/