mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Lukasz Stelmach <stlman@poczta.fm>
To: Ananda Krishnan <veedutwo@yahoo.com>
Cc: linux-kernel@vger.kernel.org, veedutwous@yahoo.com
Subject: Re: device-driver supporting more than one device
Date: Mon, 06 Jun 2005 11:40:49 +0200	[thread overview]
Message-ID: <42A41A21.5050100@poczta.fm> (raw)
In-Reply-To: <20050604024830.13002.qmail@web14824.mail.yahoo.com>

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

Ananda Krishnan napisał(a):
> Hi All,
> 
>   Can a device-driver (a generic serial driver)
> support more than one device from different vendors
> (hence different vendor ids and device ids)?

In general, yes. Does it apply to the particular driver you mentioned? I
don't know.

> If so,
> during the boot time how the pci_device_id structure
> gets the info about the drvier_data?  Would like to
> know the name of the function name(s) and file(s) that
> are used for this process.  Thanks a lot.

The driver contains IDs of hardware it supports. At the boot time
each driver registers itself providing this list. Then for each piece of
hardware supported by a particular driver .probe function is called.
You should definitly look at /usr/src/linux/drivers/usb/usb-skeleton.c.
However, it is a usb driver, pci seem to work in a similar manner.

You might also like to read this: http://lwn.net/Kernel/LDD3/

I am quite a newbie to kernel drivers so please correct me someone if I
am wrong.

-- 
Było mi bardzo miło.                    Trzecia pospolita klęska, [...]
>Łukasz<                      Już nie katolicka lecz złodziejska.  (c)PP


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 256 bytes --]

      reply	other threads:[~2005-06-06  9:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-04  2:48 Ananda Krishnan
2005-06-06  9:40 ` Lukasz Stelmach [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=42A41A21.5050100@poczta.fm \
    --to=stlman@poczta.fm \
    --cc=linux-kernel@vger.kernel.org \
    --cc=veedutwo@yahoo.com \
    --cc=veedutwous@yahoo.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®