mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Aristeu Sergio Rozanski Filho <aris@cathedrallabs.org>
To: "Luis A. Montes" <luismontes@isp.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: gameport and USB joysticks/gamepads
Date: Tue, 7 Dec 2004 08:55:00 -0200	[thread overview]
Message-ID: <20041207105459.GE21902@cathedrallabs.org> (raw)
In-Reply-To: <1102406337.5938.9.camel@penguin.montes2.org>

[-- Attachment #1: Type: text/plain, Size: 772 bytes --]

Hi!
> How is the gameport_register_port() supposed to be called for USB
> devices? There doesn't seem to be any kernel hook for that. Is it
> supposed to happen in userspace?
you should use gameport_register_port() only to hardware game ports (e.g.
those found on soundcards).
USB joysticks don't need a gameport, so USB joystick drivers should call
directly input_register_device().

> Also, it seems to me that gameport_register_device is always going to
> add a null pointer (dev->node) to the gameport_dev_list, and that
> doesn't seem terribly useful. What's the purpose of that?
'node' is a kernel style linked list (struct list_head). I don't know
any URL which explains how it works but you may find it in Robert Love's
Linux Kernel Development book.

--
Aristeu


[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

      reply	other threads:[~2004-12-07 10:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-07  7:58 Luis A. Montes
2004-12-07 10:55 ` Aristeu Sergio Rozanski Filho [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=20041207105459.GE21902@cathedrallabs.org \
    --to=aris@cathedrallabs.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luismontes@isp.com \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®