|
@@ -2561,23 +2561,6 @@ static irqreturn_t device_intr(int irq, void *dev_instance)
|
|
|
return IRQ_RETVAL(handled);
|
|
|
}
|
|
|
|
|
|
-static unsigned const ethernet_polynomial = 0x04c11db7U;
|
|
|
-static inline u32 ether_crc(int length, unsigned char *data)
|
|
|
-{
|
|
|
- int crc = -1;
|
|
|
-
|
|
|
- while (--length >= 0) {
|
|
|
- unsigned char current_octet = *data++;
|
|
|
- int bit;
|
|
|
-
|
|
|
- for (bit = 0; bit < 8; bit++, current_octet >>= 1) {
|
|
|
- crc = (crc << 1) ^
|
|
|
- ((crc < 0) ^ (current_octet & 1) ? ethernet_polynomial : 0);
|
|
|
- }
|
|
|
- }
|
|
|
- return crc;
|
|
|
-}
|
|
|
-
|
|
|
//2008-8-4 <add> by chester
|
|
|
static int Config_FileGetParameter(unsigned char *string,
|
|
|
unsigned char *dest, unsigned char *source)
|