PS 2 keyboard device driver

From: anand (anand_12_at_tenet.res.in)
Date: 07/30/04


Date: 29 Jul 2004 21:19:23 -0700

Hi all

 I am in the process of writing a PS 2 keyboard device driver..I have
a MicroBlaze uClinux(linux 2.4.x) system(SoC..MicroBlaze is a softcore
processor without an MMU, provided by Xilinx)..and the only aid i am
using is ldd(rubini,2nd edition)...I have a few doubts regarding this
effort of writing a driver..

1. Will the scan code-to-ascii character conversion happen in
software(driver) or is it done by the PS 2 controller hardware(a piece
of VHDL code)..?..if both are possible then which method should be
used in most cases?

2. the driver code, as i understand it, will have an interrupt handler
to service every keyboard interrupt..the handler being specified in
the request_irq function..the handler will receive the scan code into
a static variable for further processing by the bottom half..I want to
know how will the handler/bottom half send these received characters
upwards to appropriate applications..i am not clear about this context
change from kernel space code to user land application code..Is it the
job of the driver to bother about this also or is the application
responsible for collecting the received chars from the keyboard?

 Thanks in advance for any information in this regard.

Cheers

V.Anand
(www.tenet.res.in)



Relevant Pages

  • [patch 04/33] m68k: Atari keyboard and mouse support.
    ... Atari keyboard and mouse support. ... +static void atakeyb_rep; ... To compile this driver as a module, ...
    (Linux-Kernel)
  • RE: my pc always hanged up!!
    ... usually you have a driver that's current compared to what came on the ... changed the original mouse and keyboard) will have updated drivers if any are ... To get to Downloaded Program files, you can click Tools on the right of your ...
    (microsoft.public.windowsupdate)
  • Re: Maybe we should stop "Paging Beth Stone" already...
    ... So normally, you'd load a keyboard driver which attaches to the first PS/2 port, and a mouse driver which attaches to the second PS/2 port. ... So if you plugged a keyboard into the second PS/2 port, all you would have to do is unload the mouse driver, and load a second keyboard driver, telling it to use the second PS/2 port instead of the first. ... Since the IPC protocol it uses to connect to the second PS/2 port is identical to the IPC protocol it uses to connect to the first PS/2 port, it will happily connect to it instead. ... has to be treated as it needs to and all hardware drivers are connected via structures (including buffer pointers) to communicate with any software. ...
    (alt.lang.asm)
  • Re: my pc always hanged up!!
    ... Go tot the manufacturers website and download an updated driver that is if ... keyboard, but when i clicked the keyboard name and select the update ... To get to Downloaded Program files, you can click Tools on the ...
    (microsoft.public.windowsupdate)
  • Re: Maybe we should stop "Paging Beth Stone" already...
    ... into a global structure and into a buffer if configured that way. ... So normally, you'd load a keyboard driver which attaches to the first PS/2 port, and a mouse driver which attaches to the second PS/2 port. ... So if you plugged a keyboard into the second PS/2 port, all you would have to do is unload the mouse driver, and load a second keyboard driver, telling it to use the second PS/2 port instead of the first. ... Since the IPC protocol it uses to connect to the second PS/2 port is identical to the IPC protocol it uses to connect to the first PS/2 port, it will happily connect to it instead. ...
    (alt.lang.asm)