patch-2.1.125 linux/drivers/net/eexpress.c
Next file: linux/drivers/net/ethertap.c
Previous file: linux/drivers/net/de4x5.c
Back to the patch index
Back to the overall index
- Lines: 37
- Date:
Wed Oct 7 15:51:45 1998
- Orig file:
v2.1.124/linux/drivers/net/eexpress.c
- Orig date:
Wed Jun 24 22:54:06 1998
diff -u --recursive --new-file v2.1.124/linux/drivers/net/eexpress.c linux/drivers/net/eexpress.c
@@ -8,6 +8,11 @@
*
* Many modifications, and currently maintained, by
* Philip Blundell <Philip.Blundell@pobox.com>
+ * Added the Compaq LTE Alan Cox <alan@redhat.com>
+ *
+ * Note - this driver is experimental still - it has problems on faster
+ * machines. Someone needs to sit down and go through it line by line with
+ * a databook...
*/
/* The EtherExpress 16 is a fairly simple card, based on a shared-memory
@@ -326,7 +331,7 @@
if (sum==0xbaba && !eexp_hw_probe(dev,*port))
return 0;
}
- return ENODEV;
+ return -ENODEV;
}
/*
@@ -931,11 +936,13 @@
hw_addr[1] = eexp_hw_readeeprom(ioaddr,3);
hw_addr[2] = eexp_hw_readeeprom(ioaddr,4);
- if (hw_addr[2]!=0x00aa || ((hw_addr[1] & 0xff00)!=0x0000))
+ /* Standard Address or Compaq LTE Address */
+ if (!((hw_addr[2]==0x00aa && ((hw_addr[1] & 0xff00)==0x0000)) ||
+ (hw_addr[2]==0x0080 && ((hw_addr[1] & 0xff00)==0x5F00))))
{
printk(" rejected: invalid address %04x%04x%04x\n",
hw_addr[2],hw_addr[1],hw_addr[0]);
- return ENODEV;
+ return -ENODEV;
}
/* Calculate the EEPROM checksum. Carry on anyway if it's bad,
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov