summaryrefslogtreecommitdiffstats
path: root/sys/dev/sdmmc
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2009-02-16 21:19:04 +0000
committermiod <miod@openbsd.org>2009-02-16 21:19:04 +0000
commit01355dc11dc5cb713b30d962d44129b263423f70 (patch)
treed6f34ddd821f6091f82ede6388950dd63d5e085f /sys/dev/sdmmc
parentDon't try to SCSIDEBUG targets or luns >31 since we only have 32 bits to (diff)
downloadwireguard-openbsd-01355dc11dc5cb713b30d962d44129b263423f70.tar.xz
wireguard-openbsd-01355dc11dc5cb713b30d962d44129b263423f70.zip
Extend the scsi_adapter minphys() callback to take a struct scsi_link *
as additional argument. This will allow intermediate layers between scsi devices such as sd and scsi host adapters to take appropriate action if necessary.
Diffstat (limited to 'sys/dev/sdmmc')
-rw-r--r--sys/dev/sdmmc/sdmmc_scsi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/sdmmc/sdmmc_scsi.c b/sys/dev/sdmmc/sdmmc_scsi.c
index 9e10a8760e6..3b324b072b1 100644
--- a/sys/dev/sdmmc/sdmmc_scsi.c
+++ b/sys/dev/sdmmc/sdmmc_scsi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sdmmc_scsi.c,v 1.13 2009/02/06 20:16:41 grange Exp $ */
+/* $OpenBSD: sdmmc_scsi.c,v 1.14 2009/02/16 21:19:07 miod Exp $ */
/*
* Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org>
@@ -82,7 +82,7 @@ int sdmmc_start_xs(struct sdmmc_softc *, struct sdmmc_ccb *);
void sdmmc_complete_xs(void *);
void sdmmc_done_xs(struct sdmmc_ccb *);
void sdmmc_stimeout(void *);
-void sdmmc_scsi_minphys(struct buf *);
+void sdmmc_scsi_minphys(struct buf *, struct scsi_link *);
#define DEVNAME(sc) SDMMCDEVNAME(sc)
@@ -495,7 +495,7 @@ sdmmc_stimeout(void *arg)
}
void
-sdmmc_scsi_minphys(struct buf *bp)
+sdmmc_scsi_minphys(struct buf *bp, struct scsi_link *sl)
{
/* XXX limit to max. transfer size supported by card/host? */
if (bp->b_bcount > DEV_BSIZE)