Patch for eth[4-7]

Juan Cespedes (cespedes@etsit.upm.es)
Thu, 30 May 1996 10:54:35 +0200 (MET DST)


Every time I get a new kernel I have to patch
drivers/net/Space.c to support more than 4 ethernet devices (I have a
Linux box with six NE2000's), and I think it would be a good idea to
include the following patch in the standard kernel to help any of us
with a Linux acting as a router.

It's against pre2.0.9 but should work with any kernel as this
hasn't been changed for ages :)

diff -u --recursive --new-file pre2.0.9/linux/drivers/net/Space.c linux/drivers/net/Space.c
--- pre2.0.9/linux/drivers/net/Space.c Wed May 13 23:23:07 1996
+++ linux/drivers/net/Space.c Wed May 29 23:12:17 1996
@@ -263,8 +263,16 @@
which means "don't probe". These entries exist to only to provide empty
slots which may be enabled at boot-time. */

+static struct device eth7_dev = {
+ "eth7", 0,0,0,0,0xffe0 /* I/O base*/, 0,0,0,0, NEXT_DEV, ethif_probe };
+static struct device eth6_dev = {
+ "eth6", 0,0,0,0,0xffe0 /* I/O base*/, 0,0,0,0, &eth7_dev, ethif_probe };
+static struct device eth5_dev = {
+ "eth5", 0,0,0,0,0xffe0 /* I/O base*/, 0,0,0,0, &eth6_dev, ethif_probe };
+static struct device eth4_dev = {
+ "eth4", 0,0,0,0,0xffe0 /* I/O base*/, 0,0,0,0, &eth5_dev, ethif_probe };
static struct device eth3_dev = {
- "eth3", 0,0,0,0,0xffe0 /* I/O base*/, 0,0,0,0, NEXT_DEV, ethif_probe };
+ "eth3", 0,0,0,0,0xffe0 /* I/O base*/, 0,0,0,0, &eth4_dev, ethif_probe };
static struct device eth2_dev = {
"eth2", 0,0,0,0,0xffe0 /* I/O base*/, 0,0,0,0, &eth3_dev, ethif_probe };
static struct device eth1_dev = {