diff options
| author | Peter Wemm <peter@FreeBSD.org> | 1999-08-19 15:07:20 +0000 |
|---|---|---|
| committer | Peter Wemm <peter@FreeBSD.org> | 1999-08-19 15:07:20 +0000 |
| commit | e9fc0b372f5ad56e1d1c08df2e1a0e0d4d157b20 (patch) | |
| tree | 866ef366edf9c4729f788cf6688b28d03fc52508 /sys/dev/de | |
| parent | 264c3d8738c3580b596ecf5aaa1ce1b5367fc0da (diff) | |
Notes
Diffstat (limited to 'sys/dev/de')
| -rw-r--r-- | sys/dev/de/if_de.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/sys/dev/de/if_de.c b/sys/dev/de/if_de.c index e0e9d55b11d2..c1a290f32706 100644 --- a/sys/dev/de/if_de.c +++ b/sys/dev/de/if_de.c @@ -1820,16 +1820,7 @@ static const tulip_boardsw_t tulip_2114x_isv_boardsw = { /* * Code the read the SROM and MII bit streams (I2C) */ -static void -tulip_delay_300ns( - tulip_softc_t * const sc) -{ - int idx; - for (idx = (300 / 33) + 1; idx > 0; idx--) - (void) TULIP_CSR_READ(sc, csr_busmode); -} - -#define EMIT do { TULIP_CSR_WRITE(sc, csr_srom_mii, csr); tulip_delay_300ns(sc); } while (0) +#define EMIT do { TULIP_CSR_WRITE(sc, csr_srom_mii, csr); DELAY(1); } while (0) static void tulip_srom_idle( @@ -1902,7 +1893,7 @@ tulip_srom_read( tulip_srom_idle(sc); } -#define MII_EMIT do { TULIP_CSR_WRITE(sc, csr_srom_mii, csr); tulip_delay_300ns(sc); } while (0) +#define MII_EMIT do { TULIP_CSR_WRITE(sc, csr_srom_mii, csr); DELAY(1); } while (0) static void tulip_mii_writebits( |
