patch-1.3.62 linux/drivers/net/3c59x.c

Next file: linux/drivers/net/ibmtr.c
Previous file: linux/drivers/char/vt_kern.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.61/linux/drivers/net/3c59x.c linux/drivers/net/3c59x.c
@@ -413,6 +413,16 @@
 	vp  = (struct vortex_private *)dev->priv;
 	vp->product_name = product_names[product_index];
 	vp->options = options;
+	if (options >= 0) {
+		vp->media_override = options & 7;
+		vp->full_duplex = (options & 8) ? 1 : 0;
+		vp->bus_master = (options & 16) ? 1 : 0;
+	} else {
+		vp->media_override = 7;
+		vp->full_duplex = 0;
+		vp->bus_master = 0;
+	}
+
 	vortex_probe1(dev);
 #endif /* MODULE */
 	return 0;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this