patch-2.4.3 linux/drivers/net/ne.c
Next file: linux/drivers/net/ne2k-pci.c
Previous file: linux/drivers/net/natsemi.c
Back to the patch index
Back to the overall index
- Lines: 33
- Date:
Tue Mar 6 19:28:34 2001
- Orig file:
v2.4.2/linux/drivers/net/ne.c
- Orig date:
Wed Feb 21 18:20:27 2001
diff -u --recursive --new-file v2.4.2/linux/drivers/net/ne.c linux/drivers/net/ne.c
@@ -76,13 +76,18 @@
};
#endif
-static struct { unsigned short vendor, function; char *name; }
-isapnp_clone_list[] __initdata = {
- {ISAPNP_VENDOR('E','D','I'), ISAPNP_FUNCTION(0x0216), "NN NE2000" },
- {ISAPNP_VENDOR('P','N','P'), ISAPNP_FUNCTION(0x80d6), "Generic PNP" },
- {0,}
+static struct isapnp_device_id isapnp_clone_list[] __initdata = {
+ { ISAPNP_ANY_ID, ISAPNP_ANY_ID,
+ ISAPNP_VENDOR('E','D','I'), ISAPNP_FUNCTION(0x0216),
+ (long) "NN NE2000" },
+ { ISAPNP_ANY_ID, ISAPNP_ANY_ID,
+ ISAPNP_VENDOR('P','N','P'), ISAPNP_FUNCTION(0x80d6),
+ (long) "Generic PNP" },
+ { } /* terminate list */
};
+MODULE_DEVICE_TABLE(isapnp, isapnp_clone_list);
+
#ifdef SUPPORT_NE_BAD_CLONES
/* A list of bad clones that we none-the-less recognize. */
static struct { const char *name8, *name16; unsigned char SAprefix[4];}
@@ -206,7 +211,7 @@
dev->base_addr = idev->resource[0].start;
dev->irq = idev->irq_resource[0].start;
printk(KERN_INFO "ne.c: ISAPnP reports %s at i/o %#lx, irq %d.\n",
- isapnp_clone_list[i].name,
+ (char *) isapnp_clone_list[i].driver_data,
dev->base_addr, dev->irq);
if (ne_probe1(dev, dev->base_addr) != 0) { /* Shouldn't happen. */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)