PS 2 keyboard device driver
From: anand (anand_12_at_tenet.res.in)
Date: 07/30/04
- Next message: Tim Roberts: "Re: above 4 GB RAM access for user processes"
- Previous message: sean larsson: "do_brk() error return"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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)
- Next message: Tim Roberts: "Re: above 4 GB RAM access for user processes"
- Previous message: sean larsson: "do_brk() error return"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|