From 9b9a2cb9f03ddc5ef290c07362b047f9290aa0cf Mon Sep 17 00:00:00 2001 From: dg Date: Mon, 18 Dec 1995 02:47:43 +0000 Subject: [PATCH] Added prototype for fxp_scb_wait() and fixed a bug where the wrong pointer was passed in one case. --- sys/dev/fxp/if_fxp.c | 5 +++-- sys/pci/if_fxp.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/sys/dev/fxp/if_fxp.c b/sys/dev/fxp/if_fxp.c index 844590e1ba6b..81733637ac0c 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. diff --git a/sys/pci/if_fxp.c b/sys/pci/if_fxp.c index 844590e1ba6b..81733637ac0c 100644 --- a/sys/pci/if_fxp.c +++ b/sys/pci/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.