patch-2.4.19 linux-2.4.19/drivers/net/epic100.c
Next file: linux-2.4.19/drivers/net/es3210.c
Previous file: linux-2.4.19/drivers/net/eepro100.c
Back to the patch index
Back to the overall index
- Lines: 74
- Date:
Fri Aug 2 17:39:44 2002
- Orig file:
linux-2.4.18/drivers/net/epic100.c
- Orig date:
Mon Feb 25 11:37:59 2002
diff -urN linux-2.4.18/drivers/net/epic100.c linux-2.4.19/drivers/net/epic100.c
@@ -60,11 +60,14 @@
LK1.1.12:
* fix power-up sequence
+ LK1.1.13:
+ * revert version 1.1.12, power-up sequence "fix"
+
*/
#define DRV_NAME "epic100"
-#define DRV_VERSION "1.11+LK1.1.12"
-#define DRV_RELDATE "Jan 18, 2002"
+#define DRV_VERSION "1.11+LK1.1.13"
+#define DRV_RELDATE "Mar 20, 2002"
/* The user-configurable values.
@@ -131,6 +134,7 @@
#include <linux/spinlock.h>
#include <linux/ethtool.h>
#include <linux/mii.h>
+#include <linux/crc32.h>
#include <asm/bitops.h>
#include <asm/io.h>
#include <asm/uaccess.h>
@@ -578,7 +582,7 @@
#define EE_READ256_CMD (6 << 8)
#define EE_ERASE_CMD (7 << 6)
-static int read_eeprom(long ioaddr, int location)
+static int __devinit read_eeprom(long ioaddr, int location)
{
int i;
int retval = 0;
@@ -677,8 +681,9 @@
required by the details of which bits are reset and the transceiver
wiring on the Ositech CardBus card.
*/
-
- outl(0x12, ioaddr + MIICfg);
+#if 0
+ outl(dev->if_port == 1 ? 0x13 : 0x12, ioaddr + MIICfg);
+#endif
if (ep->chip_flags & MII_PWRDWN)
outl((inl(ioaddr + NVCTL) & ~0x003C) | 0x4800, ioaddr + NVCTL);
@@ -1302,27 +1307,6 @@
new frame, not around filling ep->setup_frame. This is non-deterministic
when re-entered but still correct. */
-/* The little-endian AUTODIN II ethernet CRC calculation.
- N.B. Do not use for bulk data, use a table-based routine instead.
- This is common code and should be moved to net/core/crc.c */
-static unsigned const ethernet_polynomial_le = 0xedb88320U;
-static inline unsigned ether_crc_le(int length, unsigned char *data)
-{
- unsigned int crc = 0xffffffff; /* Initial value. */
- while(--length >= 0) {
- unsigned char current_octet = *data++;
- int bit;
- for (bit = 8; --bit >= 0; current_octet >>= 1) {
- if ((crc ^ current_octet) & 1) {
- crc >>= 1;
- crc ^= ethernet_polynomial_le;
- } else
- crc >>= 1;
- }
- }
- return crc;
-}
-
static void set_rx_mode(struct net_device *dev)
{
long ioaddr = dev->base_addr;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)