patch-2.4.3 linux/drivers/net/3c503.c
Next file: linux/drivers/net/3c505.c
Previous file: linux/drivers/media/video/zr36120.c
Back to the patch index
Back to the overall index
- Lines: 46
- Date:
Tue Mar 6 19:28:33 2001
- Orig file:
v2.4.2/linux/drivers/net/3c503.c
- Orig date:
Wed Feb 21 18:20:24 2001
diff -u --recursive --new-file v2.4.2/linux/drivers/net/3c503.c linux/drivers/net/3c503.c
@@ -53,8 +53,8 @@
#define WRD_COUNT 4
int el2_probe(struct net_device *dev);
-int el2_pio_probe(struct net_device *dev);
-int el2_probe1(struct net_device *dev, int ioaddr);
+static int el2_pio_probe(struct net_device *dev);
+static int el2_probe1(struct net_device *dev, int ioaddr);
/* A zero-terminated list of I/O addresses to be probed in PIO mode. */
static unsigned int netcard_portlist[] __initdata =
@@ -115,7 +115,7 @@
/* Try all of the locations that aren't obviously empty. This touches
a lot of locations, and is much riskier than the code above. */
-int __init
+static int __init
el2_pio_probe(struct net_device *dev)
{
int i;
@@ -136,13 +136,14 @@
/* Probe for the Etherlink II card at I/O port base IOADDR,
returning non-zero on success. If found, set the station
address and memory parameters in DEVICE. */
-int __init
+static int __init
el2_probe1(struct net_device *dev, int ioaddr)
{
int i, iobase_reg, membase_reg, saved_406, wordlength, retval;
static unsigned version_printed;
unsigned long vendor_id;
+ /* FIXME: code reads ioaddr + 0x400, we request ioaddr + 16 */
if (!request_region(ioaddr, EL2_IO_EXTENT, dev->name))
return -EBUSY;
@@ -250,7 +251,8 @@
}
#endif /* EL2MEMTEST */
- dev->mem_end = dev->rmem_end = dev->mem_start + EL2_MEMSIZE;
+ if (dev->mem_start)
+ dev->mem_end = dev->rmem_end = dev->mem_start + EL2_MEMSIZE;
if (wordlength) { /* No Tx pages to skip over to get to Rx */
dev->rmem_start = dev->mem_start;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)