diff options
| author | Jeff Roberson <jeff@FreeBSD.org> | 2002-03-19 05:14:23 +0000 |
|---|---|---|
| committer | Jeff Roberson <jeff@FreeBSD.org> | 2002-03-19 05:14:23 +0000 |
| commit | 12744388383ef4fcd6727584f177fa077448e1c5 (patch) | |
| tree | dfaf5adb261e2846d8b3b4c7a43c2158079e7ab2 /sys/dev/txp | |
| parent | 89734883fa08b06fddbc6b6cae4df14b0b68d617 (diff) | |
Notes
Diffstat (limited to 'sys/dev/txp')
| -rw-r--r-- | sys/dev/txp/if_txp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/txp/if_txp.c b/sys/dev/txp/if_txp.c index 7491cba329698..089c88691fa69 100644 --- a/sys/dev/txp/if_txp.c +++ b/sys/dev/txp/if_txp.c @@ -486,6 +486,7 @@ txp_reset_adapter(sc) u_int32_t r; int i; + r = 0; WRITE_REG(sc, TXP_SRR, TXP_SRR_ALL); DELAY(1000); WRITE_REG(sc, TXP_SRR, 0); @@ -515,6 +516,7 @@ txp_download_fw(sc) int sect; u_int32_t r, i, ier, imr; + r = 0; ier = READ_REG(sc, TXP_IER); WRITE_REG(sc, TXP_IER, ier | TXP_INT_A2H_0); @@ -586,6 +588,7 @@ txp_download_fw_wait(sc) { u_int32_t i, r; + r = 0; for (i = 0; i < 10000; i++) { r = READ_REG(sc, TXP_ISR); if (r & TXP_INT_A2H_0) @@ -960,6 +963,7 @@ txp_alloc_rings(sc) u_int32_t r; int i; + r = 0; ld = sc->sc_ldata; boot = &ld->txp_boot; |
