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

Re: [microblaze-uclinux] PS/2 Controller



Hi Michal,
 
I haven't tested it but I don't expect any big troubles. If you can please
try it and let me know.

Thanks,
Michal


Just wanted to let you know that I am getting errors while compiling the XPS_PS2 driver.

  CC      drivers/input/serio/xilinx_ps2.o
  LD      fs/ramfs/built-in.o
  CC      lib/random32.o
drivers/input/serio/xilinx_ps2.c:26:29: linux/of_device.h: No such file or directory
drivers/input/serio/xilinx_ps2.c:27:31: linux/of_platform.h: No such file or directory
drivers/input/serio/xilinx_ps2.c:235: warning: "struct of_device" declared inside parameter list
drivers/input/serio/xilinx_ps2.c:235: warning: its scope is only this definition or declaration, which is probably not what you want
drivers/input/serio/xilinx_ps2.c: In function `xps2_of_probe':
drivers/input/serio/xilinx_ps2.c:241: error: dereferencing pointer to incomplete type
drivers/input/serio/xilinx_ps2.c:245: error: dereferencing pointer to incomplete type
drivers/input/serio/xilinx_ps2.c:249: warning: implicit declaration of function `of_address_to_resource'
drivers/input/serio/xilinx_ps2.c:249: error: dereferencing pointer to incomplete type
drivers/input/serio/xilinx_ps2.c:256: warning: implicit declaration of function `of_irq_to_resource'
drivers/input/serio/xilinx_ps2.c:256: error: dereferencing pointer to incomplete type
  CC      net/core/scm.o
drivers/input/serio/xilinx_ps2.c: At top level:
drivers/input/serio/xilinx_ps2.c:334: warning: "struct of_device" declared inside parameter list
drivers/input/serio/xilinx_ps2.c: In function `xps2_of_remove':
drivers/input/serio/xilinx_ps2.c:336: error: dereferencing pointer to incomplete type
drivers/input/serio/xilinx_ps2.c:344: error: dereferencing pointer to incomplete type
drivers/input/serio/xilinx_ps2.c: At top level:
drivers/input/serio/xilinx_ps2.c:363: error: variable `xps2_of_driver' has initializer but incomplete type
drivers/input/serio/xilinx_ps2.c:364: error: unknown field `name' specified in initializer
drivers/input/serio/xilinx_ps2.c:364: warning: excess elements in struct initializer
drivers/input/serio/xilinx_ps2.c:364: warning: (near initialization for `xps2_of_driver')
drivers/input/serio/xilinx_ps2.c:365: error: unknown field `match_table' specified in initializer
drivers/input/serio/xilinx_ps2.c:365: warning: excess elements in struct initializer
drivers/input/serio/xilinx_ps2.c:365: warning: (near initialization for `xps2_of_driver')
drivers/input/serio/xilinx_ps2.c:366: error: unknown field `probe' specified in initializer
drivers/input/serio/xilinx_ps2.c:366: warning: excess elements in struct initializer
drivers/input/serio/xilinx_ps2.c:366: warning: (near initialization for `xps2_of_driver')
drivers/input/serio/xilinx_ps2.c:367: error: unknown field `remove' specified in initializer
drivers/input/serio/xilinx_ps2.c:367: warning: excess elements in struct initializer
drivers/input/serio/xilinx_ps2.c:367: warning: (near initialization for `xps2_of_driver')
drivers/input/serio/xilinx_ps2.c: In function `xps2_init':
drivers/input/serio/xilinx_ps2.c:372: warning: implicit declaration of function `of_register_platform_driver'
drivers/input/serio/xilinx_ps2.c: In function `xps2_cleanup':
drivers/input/serio/xilinx_ps2.c:377: warning: implicit declaration of function `of_unregister_platform_driver'
drivers/input/serio/xilinx_ps2.c: At top level:
drivers/input/serio/xilinx_ps2.c:363: error: storage size of `xps2_of_driver' isn't known
make[3]: *** [drivers/input/serio/xilinx_ps2.o] Error 1
make[2]: *** [drivers/input/serio] Error 2
make[1]: *** [drivers] Error 2

Regards.

On Mon, Jun 22, 2009 at 11:15 PM, Michal Simek <michal.simek@xxxxxxxxxxxxx> wrote:


Aws Ismail wrote:
> Hi Pablo,
>
> I was sifting through the /drivers/input/ list on the git repository and
> I have found the driver for the xps_ps2 IP core. This can be found here:
>
> http://git.monstr.eu/git/gitweb.cgi?p=linux-2.6-microblaze.git;a=history;f=drivers/input/serio/xilinx_ps2.c;h=ebb22f88c8426bdd3cebff9e2f822d0b7412ade7;hb=HEAD
>
> Its been added by John Linn from Xilinx on July of 2008. As part of my
> project of migrating Petalinux to the XUPV2P board, I want to eventually
> use a PS/2 keyboard attached to the PS/2 port of the board. My EDK
> project is microblaze-based and uses the XPS_PS2 core. However, looking
> at the Kconfig entry of the XPS_PS2 driver, john linn mentions that its
> for PPC, I am new to all of this so do you know if it will work with a
> microblaze-based design instead?

I haven't tested it but I don't expect any big troubles. If you can please
try it and let me know.

Thanks,
Michal

>
> By the way, I also checked the SVN trunk for Petalinux here (username:
> guest, no password):
>
> https://developer.petalogix.com/pr/internal/petalinux/trunk/software/linux-2.6.x-petalogix/drivers/input/serio/
>
> and the driver does not exist.
>
> If anyone has tried using this driver, would you please let me know if
> it works with a microblaze-based EDK project.
>
> Best Regards.
>
> Aws\
>
> On Fri, Apr 3, 2009 at 2:41 AM, <pcolodron@xxxxxxxx
> <mailto:pcolodron@xxxxxxxx>> wrote:
>
>     Hi all,
>
>     I am actually working with a ML405 board and microblaze. I have
>     succesfully ported a uClinux system with framebuffer support. My
>     next aim is to work with a PS/2 mouse and a PS/2 keyboard.
>
>     I guessed I had to activate 'Device Drivers'->'Input device
>     support'->'Mouse interface' and 'Provide legacy /dev/psaux'.
>
>     I also activated 'Device Drivers'->'Input device
>     support'->'Mouse'->'PS/2 Mouse' and also 'AT Keyboard'.
>
>     However, if I do this I do not have any /dev/psaux in my system and
>     neither I have /dev/input. Is this normal?
>
>     'i8042 PC keyboard controller' is activated as well but I believe
>     that, in my case, I need a specific Xilinx PS/2 driver, am I right?
>
>     I have been looking at ../drivers/input files and, if I am not
>     mistaken, mousedev.c should register the devices /dev/psaux and
>     dev/mice. When the kernel boots, I receive 'mice: PS/2 mouse device
>     common for all mice'.
>
>     Could anyone help to understand the connection beeween these drivers
>     and devices? Do you know any place where I could find a driver for
>     Xilinx PS/2?
>
>     Thanks a lot for your help.
>
>     Kind regards,
>
>     Pablo Colodron
>
>     ___________________________
>     microblaze-uclinux mailing list
>     microblaze-uclinux@xxxxxxxxxxxxxx
>     <mailto:microblaze-uclinux@xxxxxxxxxxxxxx>
>     Project Home Page :
>     http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
>     <http://www.itee.uq.edu.au/%7Ejwilliams/mblaze-uclinux>
>     Mailing List Archive :
>     http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
>     <http://www.itee.uq.edu.au/%7Elistarch/microblaze-uclinux/>
>
>
>

--
Michal Simek, Ing. (M.Eng)
PetaLogix - Linux Solutions for a Reconfigurable World
w: www.petalogix.com p: +61-7-30090663,+42-0-721842854 f: +61-7-30090663
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/




--
Aws Ismail, BASc. EE

MASc. Candidate
Mechatronic Systems Engineering
Simon Fraser University
250-13450 102 Avenue
Surrey BC V3T 0A3

Tel (Cell): 778-889-0526
---------