From: Hannes Reinecke <hare@suse.de>
To: linux-hotplug@vger.kernel.org
Subject: Re: udev and ISA network cards
Date: Tue, 30 Jun 2009 06:20:30 +0000 [thread overview]
Message-ID: <4A49AEAE.8080402@suse.de> (raw)
In-Reply-To: <4A44A631.5080900@ban-solms.de>
Hi Olaf,
Olaf wrote:
> Kay Sievers wrote:
>
>>> I would like to use ISA cards in combination with persistent net rules,
>>> especially renaming ethX to something like internal / internet / etc. as
>>> this is somewhat easier to remember ;-)
>>>
>>> Is this at all possible?
>>
>> It should work.
>
> [... snip snip ...]
>
>> This needs to be fixed in the kernel driver, it needs to set the
>> parent device of the netdev before it is registered.
>
> I was afraid you were going to say something like that ...
> Ah well, I'll start staring at kernel driver code then.
>
Which would help you only to a very limited amount.
udev relies on device autodetection, ie a (hardware) device must
have some means by which someone else can identify it.
With PCI this is no problem at all, as each device has its
vendor/device ID as per spec.
ISA OTOH is a different beast. And if you trawl memory back to
the ISA days, the main problem with it was that it _doesn't_
have an independent identifier.
IIRC you couldn't even identify the slot itself; each device
mostly hardcoded to use a specific I/O address / region and
some IRQ. And it was up to the task of the admin to ensure
each device got a separate addr/irq tuple.
Hence they invented PnP IDs which provide for exactly this
sort of identifier.
So, translated to udev this means that any ISA card providing
PnP IDs should work, or at least it should be possible to make
it work with udev.
Any ISA card _not_ providing PnP IDs you're basically out of luck.
The only choice you'd have here is to use some sort of lookup-table
which provides a static assignment between IO addresses and drivers.
HTH.
Cheers,
Hannes
--
Dr. Hannes Reinecke zSeries & Storage
hare@suse.de +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Markus Rex, HRB 16746 (AG Nürnberg)
next prev parent reply other threads:[~2009-06-30 6:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-26 10:42 udev and ISA network cards Olaf
2009-06-26 11:15 ` Kay Sievers
2009-06-30 5:45 ` Olaf
2009-06-30 6:20 ` Hannes Reinecke [this message]
2009-07-02 6:33 ` Olaf
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=4A49AEAE.8080402@suse.de \
--to=hare@suse.de \
--cc=linux-hotplug@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).