As written, yes. -ishwar On Thu, 19 Sep 2002, Yuan Huailin-w19410 wrote: > thanks, Becker! > > In the Ne2.c, I found the module init code: > > int init_module(void) > { > int this_dev, found = 0; > > for (this_dev = 0; this_dev < MAX_NE_CARDS; this_dev++) { > struct net_device *dev = &dev_ne[this_dev]; > dev->irq = irq[this_dev]; > dev->mem_end = bad[this_dev]; > dev->base_addr = io[this_dev]; > dev->init = ne2_probe; > if (register_netdev(dev) != 0) { > if (found != 0) return 0; /* Got at least one. */ > > printk(KERN_WARNING "ne2.c: No NE/2 card found.\n"); > return -ENXIO; > } > found++; > } > return 0; > } > #define MAX_NE_CARDS 4 /* Max number of NE cards per module */ > > > My question is if it only support 4 Ne2 network cards on one host? > > > > thanks! > > -----Original Message----- > From: Donald Becker [mailto:becker@scyld.com] > Sent: Thursday, September 19, 2002 12:06 AM > To: Yuan Huailin-w19410 > Cc: linux-net@vger.kernel.org > Subject: Re: Multi-network card? > > > On Wed, 18 Sep 2002, Yuan Huailin-w19410 wrote: > > > I want to know how a network card driver code to supports > > multi-network card on one linux host? > > If there is a linux kernel mechanism to support multi-card or I should > > add code in my card driver? > > There are many good examples. You first looked at 3c501.c, which is the > worst example. It was converted to use modules by someone that didn't > understand the need for multiple network interfaces, and was never fixed > because no one in their right mind (Alan) uses 3c501 cards. > > I've published pci-skeleton.c as an example for many years, and before > that skeleton.c (which should be considered "isa-skeleton.c") > ftp://www.scyld.com/pub/network/pci-skeleton.c > > - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html