diff options
author | dg <dg@FreeBSD.org> | 1995-12-18 02:47:43 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1995-12-18 02:47:43 +0000 |
commit | 9b9a2cb9f03ddc5ef290c07362b047f9290aa0cf (patch) | |
tree | b8294e915f64fedf7c06cf38fb959bba3edee1e6 /sys/dev/fxp | |
parent | 9127bd82d9a3fa4f62fc48e6398634249eeca540 (diff) | |
download | FreeBSD-src-9b9a2cb9f03ddc5ef290c07362b047f9290aa0cf.zip FreeBSD-src-9b9a2cb9f03ddc5ef290c07362b047f9290aa0cf.tar.gz |
Added prototype for fxp_scb_wait() and fixed a bug where the wrong pointer
was passed in one case.
Diffstat (limited to 'sys/dev/fxp')
-rw-r--r-- | sys/dev/fxp/if_fxp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/fxp/if_fxp.c b/sys/dev/fxp/if_fxp.c index 844590e..8173363 100644 --- a/sys/dev/fxp/if_fxp.c +++ b/sys/dev/fxp/if_fxp.c @@ -29,7 +29,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: if_fxp.c,v 1.4 1995/12/05 11:49:49 davidg Exp $ + * $Id: if_fxp.c,v 1.5 1995/12/07 12:47:35 davidg Exp $ */ /* @@ -134,6 +134,7 @@ static u_char fxp_cb_config_template[] = { 0x0, 0x0 }; +static inline void fxp_scb_wait __P((struct fxp_csr *)); static char *fxp_probe __P((pcici_t, pcidi_t)); static void fxp_attach __P((pcici_t, int)); static int fxp_shutdown __P((struct kern_devconf *, int)); @@ -691,7 +692,7 @@ fxp_stats_update(arg) * writing scb_command in other parts of the driver. */ sc->csr->scb_command = FXP_SCB_COMMAND_CU_DUMPRESET; - fxp_scb_wait(sc); + fxp_scb_wait(sc->csr); } else { /* * A previous command is still waiting to be accepted. |