On Thu, May 04, 2000, David Brownell <[EMAIL PROTECTED]> wrote:
> The PCMCIA sequence Alan posted is similar to
> what we can do today, no kernel changes, with USB
> just by watching usbdevfs. The work to be done
> doesn't seem primarily kernel mode ...
Actually, you need some extra glue. My userspace driver binding patch
has all of the glue necessary in the kernel atleast.
> > Insertion event
> > Umm.. this is a CyQ've Ethernet blah blah
> > Post to user space
> > pcmcia daemon
>
> yep, notice devfs changed ... though I think a
> short message to userspace (under 32 bytes) could
> pass all the relevant information.
All of this can be handled in userspace exclusively. All you need to
know is that a new device has been connected, and the userspace daemon
can take it from there.
> > Scan in /etc/pcmcia
> > Thats an ne2000 driver job
> > Load ne2000 driver if not loaded
> > Tell pcmcia to plug that card and driver together
>
> Today, if it's loaded it _should_ have bound to
> the driver already. We do need to be able to check
> if they really did, without parsing that textfile.
The devfs patch I posted today contains a new GET_DRIVER call which
returns the name of the driver bound to the interface or an error.
> > Plugged together
> > pcmcia daemon builds a descriptor set
> > Run the script for this type of object
>
> The USB analogue being to dispatch based on
> interface (etc) or product/vendor ids.
It's a little bit more complicated than that, but it is analogous.
> > Matches eth0 and mac
> > Run that script item
> > ifconfig blah
> > route add foo
> > done
>
> Hmm, this should be generic network housekeeping.
> I remember a while back that some distributions
> did it a bit differently (how to plug into the
> various admin tools).
>
> I suggest the USB team reuse something for that!!
Exactly. Most likely the PCMCIA scripts would have everything that is
needed.
JE
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]