Re: [PATCH] support for ISAPnP code with ne2000 network driver

Alan Cox (alan@lxorguk.ukuu.org.uk)
Sat, 11 Sep 1999 12:43:19 +0100 (BST)


> Attached is a patch to support initializing a ISAPnP ne2k clone
> with the ne.c driver. Unfortunately, deactivating the card at
> module unload seems to be impossible (or at least hard) due to
> a lack of a private field in struct net_dev. At least it works
> for me, but probably other ID's have to be added to the isapnp
> card list.

The ne driver uses the 8390 driver so its priv field is taken up by
ei_local. However, ei_device has a priv field too, so you an use

struct ei_device *my_sub_dev = dev->private;
my_sub_dev->priv = (whatever)

Alan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/