From: Takashi Iwai <tiwai@suse.de>
To: "Simon White" <s_a_white@email.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: ISA "struct device"
Date: Mon, 13 Mar 2006 21:18:30 +0100 [thread overview]
Message-ID: <s5h3bhmm73d.wl%tiwai@suse.de> (raw)
In-Reply-To: <20060313193246.EEFF01F50C4@ws1-2.us4.outblaze.com>
At Mon, 13 Mar 2006 14:32:46 -0500,
Simon White wrote:
>
> Hi,
>
> I am supporting various hardsid/catweasel cards that provide _probe
> calls. These _probe calls are called with struct pci_device and
> friends that contain various information about bus, slot, id,
> resources, etc.
>
> I see that isa pnp does something similar and all this information is
> appears via /sys presumably for utitilies to pick up and do nice
> things with.
>
> Am wondering what happens with non pnp isa (unfortunately nolonger
> have an ISA machine to experiment with). Currently in the driver I
> just use request_region with a few known addresses, with a challange
> respone mechanism to see if it is the right thing. How does one go
> about getting that into a nice, sensibly filled out "struct device"
> object and register it with /sys, for it to do the right thing.
> Are there any existing examples to follow?
platform_device is the easiest solution for non-PnP ISA drivers.
You can find many drivers when you grep with platform_device
(including 2.6.16-rc* ALSA ISA drivers :)
Takashi
prev parent reply other threads:[~2006-03-13 20:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-13 19:32 Simon White
2006-03-13 20:18 ` Takashi Iwai [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=s5h3bhmm73d.wl%tiwai@suse.de \
--to=tiwai@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=s_a_white@email.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®