Am 08.06.2007 00:25 schrieb Lars K.W. Gohlke: >>> a) With a line discipline, [...] >>> b) With the "serio" interface, [...] >>> >> ok because I want to handle it in kernel space I will no take option a) > >> I will try it the way of b) > I asked [email protected] as one of the driver developer > > this is how I did it (just prototype) > > (neccessary just one folder and two files) > 1. copy template linux-source/drivers/input/joystick/magellan.c > 2. insert in line 90 : > printk("%s:\"%s\"\n",__FUNCTION__, data); > 3. make and insert it > 4. inputattach --magellan /dev/ttyS0 & I see. So it turns out the "serio" interface finally goes through a line discipline (N_MOUSE) and consequently also needs a userspace daemon (inputattach). That doesn't give me any advantage compared to attaching directly to the line discipline interface, so I'll stay with the latter approach. But glad to hear it worked out for you. Take care, Tilman -- Tilman Schmidt E-Mail: [email protected] Bonn, Germany Diese Nachricht besteht zu 100% aus wiederverwerteten Bits. Ungeöffnet mindestens haltbar bis: (siehe Rückseite)
Attachment:
signature.asc
Description: OpenPGP digital signature
- References:
- How to access correctly serial port inside module?
- From: "Lars K.W. Gohlke" <[email protected]>
- Re: How to access correctly serial port inside module?
- From: "Lars K.W. Gohlke" <[email protected]>
- Re: How to access correctly serial port inside module?
- From: Jan Engelhardt <[email protected]>
- Re: How to access correctly serial port inside module?
- From: Tilman Schmidt <[email protected]>
- Re: How to access correctly serial port inside module?
- From: Tilman Schmidt <[email protected]>
- Re: How to access correctly serial port inside module?
- From: "Lars K.W. Gohlke" <[email protected]>
- Re: How to access correctly serial port inside module?
- From: Tilman Schmidt <[email protected]>
- Re: How to access correctly serial port inside module?
- From: "Lars K.W. Gohlke" <[email protected]>
- Re: How to access correctly serial port inside module?
- From: "Lars K.W. Gohlke" <[email protected]>
- How to access correctly serial port inside module?
- Prev by Date: Re: [PATCH] trim memory not covered by WB MTRRs
- Next by Date: [patch 0/4] PI-Futex bugfixes and cleanups
- Previous by thread: Re: How to access correctly serial port inside module?
- Next by thread: Re: How to access correctly serial port inside module?
- Index(es):