static void el2_init(dpeth_t *dep);
static void el2_stop(dpeth_t *dep);
-static void milli_delay(unsigned long millis);
/*===========================================================================*
* el2_init *
/* Resets board */
outb_el2(dep, EL2_CNTR, ECNTR_RESET | thin);
- milli_delay(1);
+ micro_delay(1000);
outb_el2(dep, EL2_CNTR, thin);
- milli_delay(5);
+ micro_delay(5000);
/* Map the address PROM to lower I/O address range */
outb_el2(dep, EL2_CNTR, ECNTR_SAPROM | thin);
return 1;
}
-static void milli_delay(unsigned long millis)
-{
- tickdelay(MILLIS_TO_TICKS(millis));
-}
-
#endif /* ENABLE_3C503 */
/** 3c503.c **/
static int test_8(dpeth_t *dep, int pos, u8_t *pat);
static int test_16(dpeth_t *dep, int pos, u8_t *pat);
static void ne_stop(dpeth_t *dep);
-static void milli_delay(unsigned long millis);
/*===========================================================================*
* ne_probe *
{
/* Reset the ethernet card */
byte= inb_ne(dep, NE_RESET);
- milli_delay(2);
+ micro_delay(2000);
outb_ne(dep, NE_RESET, byte);
- milli_delay(2);
+ micro_delay(2000);
/* Reset the dp8390 */
outb_reg0(dep, DP_CR, CR_STP | CR_DM_ABORT);
/* Reset the ethernet card */
byte= inb_ne(dep, NE_RESET);
- milli_delay(2);
+ micro_delay(2000);
outb_ne(dep, NE_RESET, byte);
}
-static void milli_delay(unsigned long millis)
-{
- tickdelay(MILLIS_TO_TICKS(millis));
-}
-
#endif /* ENABLE_NE2000 */
/*
e1000_reg_set(e, E1000_REG_CTRL, E1000_REG_CTRL_RST);
/* Wait one microsecond. */
- tickdelay(1);
+ micro_delay(16000);
}
/*
ret_val = 0;
break;
}
- tickdelay(1);
+ micro_delay(16000);
}
if (ret_val == 0) {
/*
hsfsts.regval = E1000_READ_FLASH_REG16(e, ICH_FLASH_HSFSTS);
if (hsfsts.hsf_status.flcdone == 1)
break;
- tickdelay(1);
+ micro_delay(16000);
} while (i++ < timeout);
if (hsfsts.hsf_status.flcdone == 1 && hsfsts.hsf_status.flcerr == 0)
e->flash_base_addr;
do {
- tickdelay(1);
+ micro_delay(16000);
/* Steps */
ret_val = eeprom_ich_init(e);
/* Reset device */
fxp_outl(port, CSR_PORT, CP_CMD_SOFT_RESET);
- tickdelay(micros_to_ticks(CSR_PORT_RESET_DELAY));
+ micro_delay(CSR_PORT_RESET_DELAY);
/* Disable interrupts */
fxp_outb(port, SCB_INT_MASK, SIM_M);
LAN8710A_DEBUG_PRINT(("Autonegotiation failed"));
break;
}
- tickdelay(100);
+ micro_delay(1666666);
}
/* GMII RX and TX release from reset. */