lkml.org 
[lkml]   [2006]   [Mar]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: ISA "struct device"
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-03-13 21:20    [W:0.059 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site