From 5f3c1d48e0c738b7f499c243b8b0abae25ce10e9 Mon Sep 17 00:00:00 2001 From: scottr Date: Sat, 17 Jan 1998 09:27:03 +0000 Subject: [PATCH] We haven't needed a driver-specific minphys() for quite some time now. --- sys/arch/mac68k/dev/sbc.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/sys/arch/mac68k/dev/sbc.c b/sys/arch/mac68k/dev/sbc.c index a2b6f104dc5b..c8c0c240fff7 100644 --- a/sys/arch/mac68k/dev/sbc.c +++ b/sys/arch/mac68k/dev/sbc.c @@ -1,4 +1,4 @@ -/* $NetBSD: sbc.c,v 1.34 1998/01/12 19:22:17 thorpej Exp $ */ +/* $NetBSD: sbc.c,v 1.35 1998/01/17 09:27:03 scottr Exp $ */ /* * Copyright (C) 1996 Scott Reynolds. All rights reserved. @@ -72,11 +72,9 @@ int sbc_debug = 0 /* | SBC_DB_INTR | SBC_DB_DMA */; int sbc_link_flags = 0 /* | SDEV_DB2 */; int sbc_options = 0 /* | SBC_PDMA */; -static void sbc_minphys __P((struct buf *bp)); - struct scsipi_adapter sbc_ops = { ncr5380_scsi_cmd, /* scsi_cmd() */ - sbc_minphys, /* scsi_minphys() */ + minphys, /* scsi_minphys() */ NULL, /* open_target_lu() */ NULL, /* close_target_lu() */ }; @@ -97,14 +95,6 @@ static int sbc_wait_busy __P((struct ncr5380_softc *)); static int sbc_ready __P((struct ncr5380_softc *)); static int sbc_wait_dreq __P((struct ncr5380_softc *)); -static void -sbc_minphys(struct buf *bp) -{ - if (bp->b_bcount > MAX_DMA_LEN) - bp->b_bcount = MAX_DMA_LEN; - return (minphys(bp)); -} - /*** * General support for Mac-specific SCSI logic.