diff options
Diffstat (limited to 'sys/dev/ic/aic7xxx_openbsd.c')
-rw-r--r-- | sys/dev/ic/aic7xxx_openbsd.c | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/sys/dev/ic/aic7xxx_openbsd.c b/sys/dev/ic/aic7xxx_openbsd.c index 406a0c33893..861464b54bc 100644 --- a/sys/dev/ic/aic7xxx_openbsd.c +++ b/sys/dev/ic/aic7xxx_openbsd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aic7xxx_openbsd.c,v 1.59 2020/02/06 15:08:19 krw Exp $ */ +/* $OpenBSD: aic7xxx_openbsd.c,v 1.60 2020/02/15 18:02:00 krw Exp $ */ /* $NetBSD: aic7xxx_osm.c,v 1.14 2003/11/02 11:07:44 wiz Exp $ */ /* @@ -53,7 +53,6 @@ void ahc_execute_scb(void *, bus_dma_segment_t *, int); int ahc_poll(struct ahc_softc *, int); void ahc_setup_data(struct ahc_softc *, struct scsi_xfer *, struct scb *); -void ahc_minphys(struct buf *, struct scsi_link *); void ahc_adapter_req_set_xfer_mode(struct ahc_softc *, struct scb *); @@ -62,7 +61,7 @@ struct cfdriver ahc_cd = { }; static struct scsi_adapter ahc_switch = { - ahc_action, ahc_minphys, NULL, NULL, NULL + ahc_action, NULL, NULL, NULL, NULL }; /* @@ -254,21 +253,6 @@ ahc_done(struct ahc_softc *ahc, struct scb *scb) } void -ahc_minphys(struct buf *bp, struct scsi_link *sl) -{ - /* - * Even though the card can transfer up to 16megs per command - * we are limited by the number of segments in the dma segment - * list that we can hold. The worst case is that all pages are - * discontinuous physically, hence the "page per segment" limit - * enforced here. - */ - if (bp->b_bcount > ((AHC_NSEG - 1) * PAGE_SIZE)) { - bp->b_bcount = ((AHC_NSEG - 1) * PAGE_SIZE); - } -} - -void ahc_action(struct scsi_xfer *xs) { struct ahc_softc *ahc; |