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

[microblaze-uclinux] xilinx ps/2 code



Hi all,


http://ppc.bkbits.net:8080/linuxppc-2.4/src/drivers/char/xilinx_keyb?nav=in
dex.html|src/.|src/drivers|src/drivers/char


in the above xilinx code for PS/2...(which is for both mouse & keyboard)...the initialisation for these devices is done with the base address and the device ID.

But in pc_keyb.c in /uClinux/linux-2.4-x/drivers/char/pc_keyb.c

we initialise  the ps/2 mouse by writing various values to the control,data write registers in sequence.

isn't this type of initialisation required with the xilinx ps/2 code when we use this for mouse?

or do we assume that the device registered because the following printk statement is not appearing..

if (XPs2_Initialize(&dev->Ps2, cfg->DeviceId ) != XST_SUCCESS) {
               printk(KERN_ERR
                      "Xilinx PS/2 #%d: Could not initialize device.\n",
                      dev->index);
               return -ENODEV;
       }

must i write open,release,read functions in this xilinx code similar to pc_keyb.c

any help in this 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/