From 3339a3e525afcf920fe26f3dcc772414293c24f2 Mon Sep 17 00:00:00 2001 From: tsutsui Date: Thu, 27 Sep 2001 15:26:57 +0000 Subject: [PATCH] Remove iha_minphys() and use minphys() instead. --- sys/dev/ic/iha.c | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/sys/dev/ic/iha.c b/sys/dev/ic/iha.c index 4f62708f2aaf..bd052f2bdca1 100644 --- a/sys/dev/ic/iha.c +++ b/sys/dev/ic/iha.c @@ -1,4 +1,4 @@ -/* $NetBSD: iha.c,v 1.8 2001/07/27 16:16:34 tsutsui Exp $ */ +/* $NetBSD: iha.c,v 1.9 2001/09/27 15:26:57 tsutsui Exp $ */ /* * Initio INI-9xxxU/UW SCSI Device Driver * @@ -223,7 +223,6 @@ static int iha_resel(struct iha_softc *); static void iha_abort_xs(struct iha_softc *, struct scsipi_xfer *, u_int8_t); -static void iha_minphys(struct buf *); void iha_scsipi_request(struct scsipi_channel *, scsipi_adapter_req_t, void *arg); @@ -467,7 +466,7 @@ iha_attach(sc) sc->sc_adapter.adapt_openings = IHA_MAX_SCB; sc->sc_adapter.adapt_max_periph = IHA_MAX_SCB; sc->sc_adapter.adapt_ioctl = NULL; - sc->sc_adapter.adapt_minphys = iha_minphys; + sc->sc_adapter.adapt_minphys = minphys; sc->sc_adapter.adapt_request = iha_scsipi_request; /* @@ -486,22 +485,6 @@ iha_attach(sc) config_found(&sc->sc_dev, &sc->sc_channel, scsiprint); } -/* - * iha_minphys - reduce bp->b_bcount to something less than - * or equal to the largest I/O possible through - * the adapter. Called from higher layers - * via sc->sc_adapter.scsi_minphys. - */ -static void -iha_minphys(bp) - struct buf *bp; -{ - if (bp->b_bcount > ((IHA_MAX_SG_ENTRIES - 1) * PAGE_SIZE)) - bp->b_bcount = ((IHA_MAX_SG_ENTRIES - 1) * PAGE_SIZE); - - minphys(bp); -} - /* * iha_reset_dma - abort any active DMA xfer, reset tulip FIFO. */