Messages in this thread Patch in this message |  | | From | Juan Cespedes <> | Subject | Patch for eth[4-7] | Date | 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, ð7_dev, ethif_probe }; +static struct device eth5_dev = { + "eth5", 0,0,0,0,0xffe0 /* I/O base*/, 0,0,0,0, ð6_dev, ethif_probe }; +static struct device eth4_dev = { + "eth4", 0,0,0,0,0xffe0 /* I/O base*/, 0,0,0,0, ð5_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, ð4_dev, ethif_probe }; static struct device eth2_dev = { "eth2", 0,0,0,0,0xffe0 /* I/O base*/, 0,0,0,0, ð3_dev, ethif_probe }; static struct device eth1_dev = {
|  |