linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Any hints on custom keyboard driver?
       [not found] <407B6736.9090607@nortelnetworks.com>
@ 2004-04-15 15:24 ` Song Sam
  2004-04-15 16:36   ` Brad Boyer
  0 siblings, 1 reply; 3+ messages in thread
From: Song Sam @ 2004-04-15 15:24 UTC (permalink / raw)
  To: linuxppc-dev list


Hi,

I am in a trouble of coding a custom keyboard driver
under 2.4.18.

My custom keyboard scheme is as following:

          MPC823  IP_B0  IP_B1  IP_B2   IP_B3  IP_B4-7
Parallel Port
     PD0            1      q       a      z     ...
     PD1            2      w       s      x     ...
     PD2            3      e       d      c     ...
     PD3            4      r       f      v     ...
     PD4            ...    ...     ...   ...    ...
     ...

My Puzzles:
1. Should I use input.o as interactive interface to
communicate with kernel & user space for convenience?
Otherwise,I need to code it as a normal char device
drvier.I have finished to make PCMCIA and Parallel
port create a character by now.

2. Is there any clue on how to code a standard input
driver?Or any reference in this aspect?

Thanks a million in advance for any input!!!

Sam

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Any hints on custom keyboard driver?
  2004-04-15 15:24 ` Any hints on custom keyboard driver? Song Sam
@ 2004-04-15 16:36   ` Brad Boyer
  2004-04-16  6:18     ` Song Sam
  0 siblings, 1 reply; 3+ messages in thread
From: Brad Boyer @ 2004-04-15 16:36 UTC (permalink / raw)
  To: Song Sam; +Cc: linuxppc-dev list


On Thu, Apr 15, 2004 at 11:24:53PM +0800, Song Sam wrote:
> My Puzzles:
> 1. Should I use input.o as interactive interface to
> communicate with kernel & user space for convenience?

If you want to use this keyboard for your console, then the easiest
way would be to create an input layer driver. I think USB and ADB
are the only keyboard drivers using the input layer in 2.4, but
just about everything is using it in 2.6.

> 2. Is there any clue on how to code a standard input
> driver?Or any reference in this aspect?

There is some documentation in the kernel source. Take a look at
the stuff in Documentation/input/.

	Brad Boyer
	flar@allandria.com


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Any hints on custom keyboard driver?
  2004-04-15 16:36   ` Brad Boyer
@ 2004-04-16  6:18     ` Song Sam
  0 siblings, 0 replies; 3+ messages in thread
From: Song Sam @ 2004-04-16  6:18 UTC (permalink / raw)
  To: Brad Boyer; +Cc: linuxppc-dev list


Brad Boyer <flar@allandria.com> wrote:
> > 1. Should I use input.o as interactive interface to communicate with
> > kernel & user space for convenience?

> If you want to use this keyboard for your console, then the easiest
> way would be to create an input layer driver.

Thanks for your hints.So,the data flow related my
custom keyboard driver module could be like this:

My_custom_keyboard device -> mykeyboard.o -> input.o

-> keybdev.o -> LINUX kernel

> I think USB and ADB are the only keyboard drivers using the input
> layer in 2.4, but just about everything is using it in 2.6.

That's also a puzzle for me.Use input layer for my
custom keyboard in 2.4 or not and how?Could I take 2.6
PC keyboard driver as a reference for my custom
keyboard driver?

> > 2. Is there any clue on how to code a standard input driver?Or any
> > reference in this aspect?

> There is some documentation in the kernel source. Take a look at the
> stuff in Documentation/input/.

I have studied some stuff in Documentation/input
several days but still have some troubles for these
simplified demo.Also,I searched "linux keyboard
driver" in google but no luck.Anyway,this is my first
time to code a custom driver.I hope this one isn't
hard more than I can chew.

Thanks a lot for your nice advice!

Sam

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-04-16  6:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <407B6736.9090607@nortelnetworks.com>
2004-04-15 15:24 ` Any hints on custom keyboard driver? Song Sam
2004-04-15 16:36   ` Brad Boyer
2004-04-16  6:18     ` Song Sam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).