LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: "Dmitry Torokhov" <dmitry.torokhov@gmail.com>
To: "Fausto Carvalho" <faustocarva@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Fwd: Using serio_register_driver
Date: Wed, 28 Feb 2007 11:34:31 -0500	[thread overview]
Message-ID: <d120d5000702280834v64748e9fj485642735866b994@mail.gmail.com> (raw)
In-Reply-To: <abe01d5c0702270241s75f70301y6e1cddacf65e8829@mail.gmail.com>

On 2/27/07, Fausto Carvalho <faustocarva@gmail.com> wrote:
> Well, i have a 8042 controller "connected" to the keyboard controller
> that send information about battery and others to the keyboard
> interrupt and io ports in the format of keystrokes. I want a way to
> not alter atkbd but to create another driver that lives together with
> atkbd. Is there a way?
>

Depending on how big and box-specific the code is we could either add
it to i8042
or you need to imaplement a pass-through serio port in your driver.
You would filter out "interesting" bytes and pass the rest to the new
serio port that your driver shoudl register. Tnen atkbd would bind to
that new port and function as usual. The only problem is that you
woudl need to bind you driver to the keyboard port from userspace (via
sysfs - /sys/bus/devices/serioX/drvctl)

-- 
Dmitry

      reply	other threads:[~2007-02-28 16:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-26 23:03 Fausto Carvalho
     [not found] ` <abe01d5c0702261732k6634ff02u69e07562a39b9a8d@mail.gmail.com>
     [not found]   ` <200702270034.09603.dtor@insightbb.com>
2007-02-27 10:41     ` Fwd: " Fausto Carvalho
2007-02-28 16:34       ` Dmitry Torokhov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d120d5000702280834v64748e9fj485642735866b994@mail.gmail.com \
    --to=dmitry.torokhov@gmail.com \
    --cc=faustocarva@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --subject='Re: Fwd: Using serio_register_driver' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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).