summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2009-02-16 21:19:08 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2009-02-16 21:19:08 +0000
commit2da99529039b177155c4f8b121a56af665bbc013 (patch)
tree164ac14d81166b8b640ca50ae2bfbd661def8e85 /sys/arch/mvme88k
parent02ba6ef4276aced0ecad6ed5dc9b0a7e1cd1d4ad (diff)
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/arch/mvme88k')
-rw-r--r--sys/arch/mvme88k/dev/vs.c6
-rw-r--r--sys/arch/mvme88k/dev/vsbic.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/mvme88k/dev/vs.c b/sys/arch/mvme88k/dev/vs.c
index 1019c17ae51..27e1484e46f 100644
--- a/sys/arch/mvme88k/dev/vs.c
+++ b/sys/arch/mvme88k/dev/vs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vs.c,v 1.75 2009/02/08 13:28:01 miod Exp $ */
+/* $OpenBSD: vs.c,v 1.76 2009/02/16 21:19:06 miod Exp $ */
/*
* Copyright (c) 2004, 2009, Miodrag Vallat.
@@ -64,7 +64,7 @@
int vsmatch(struct device *, void *, void *);
void vsattach(struct device *, struct device *, void *);
-void vs_minphys(struct buf *);
+void vs_minphys(struct buf *, struct scsi_link *);
int vs_scsicmd(struct scsi_xfer *);
struct scsi_adapter vs_scsiswitch = {
@@ -254,7 +254,7 @@ vsattach(struct device *parent, struct device *self, void *args)
}
void
-vs_minphys(struct buf *bp)
+vs_minphys(struct buf *bp, struct scsi_link *sl)
{
if (bp->b_bcount > ptoa(MAX_SG_ELEMENTS))
bp->b_bcount = ptoa(MAX_SG_ELEMENTS);
diff --git a/sys/arch/mvme88k/dev/vsbic.c b/sys/arch/mvme88k/dev/vsbic.c
index 898af91bf33..afd2447275d 100644
--- a/sys/arch/mvme88k/dev/vsbic.c
+++ b/sys/arch/mvme88k/dev/vsbic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vsbic.c,v 1.2 2009/02/15 15:44:32 miod Exp $ */
+/* $OpenBSD: vsbic.c,v 1.3 2009/02/16 21:19:06 miod Exp $ */
/*
* Copyright (c) 2008, 2009 Miodrag Vallat.
@@ -30,7 +30,7 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/device.h>
-#include <sys/buf.h> /* minphys */
+#include <sys/buf.h>
#include <sys/malloc.h>
#include <uvm/uvm_extern.h>
@@ -426,7 +426,7 @@ struct cfdriver vsbic_cd = {
struct scsi_adapter vsbic_swtch = {
vsbic_scsicmd,
- minphys
+ scsi_minphys
};
struct scsi_device vsbic_scsidev = {