summaryrefslogtreecommitdiffstats
path: root/sys/dev/softraid.c
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/softraid.c
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/softraid.c')
-rw-r--r--sys/dev/softraid.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c
index 3139d54dbcd..e1187e06e34 100644
--- a/sys/dev/softraid.c
+++ b/sys/dev/softraid.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: softraid.c,v 1.126 2008/12/24 19:32:02 marco Exp $ */
+/* $OpenBSD: softraid.c,v 1.127 2009/02/16 21:19:06 miod Exp $ */
/*
* Copyright (c) 2007 Marco Peereboom <marco@peereboom.us>
* Copyright (c) 2008 Chris Kuethe <ckuethe@openbsd.org>
@@ -86,7 +86,7 @@ struct cfdriver softraid_cd = {
/* scsi & discipline */
int sr_scsi_cmd(struct scsi_xfer *);
-void sr_minphys(struct buf *bp);
+void sr_minphys(struct buf *bp, struct scsi_link *sl);
void sr_copy_internal_data(struct scsi_xfer *,
void *, size_t);
int sr_scsi_ioctl(struct scsi_link *, u_long,
@@ -1182,7 +1182,7 @@ sr_activate(struct device *self, enum devact act)
}
void
-sr_minphys(struct buf *bp)
+sr_minphys(struct buf *bp, struct scsi_link *sl)
{
DNPRINTF(SR_D_MISC, "sr_minphys: %d\n", bp->b_bcount);