summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/dev/ic/mfi.c6
-rw-r--r--sys/dev/pci/mfii.c4
-rw-r--r--sys/dev/pci/mpii.c4
-rw-r--r--sys/dev/pci/vmwpvs.c4
4 files changed, 9 insertions, 9 deletions
diff --git a/sys/dev/ic/mfi.c b/sys/dev/ic/mfi.c
index 3104dcea990..b9df7ba1f75 100644
--- a/sys/dev/ic/mfi.c
+++ b/sys/dev/ic/mfi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mfi.c,v 1.176 2020/03/21 20:42:23 krw Exp $ */
+/* $OpenBSD: mfi.c,v 1.177 2020/06/24 18:33:50 krw Exp $ */
/*
* Copyright (c) 2006 Marco Peereboom <marco@peereboom.us>
*
@@ -774,7 +774,7 @@ mfi_attach(struct mfi_softc *sc, enum mfi_iop iop)
sc->sc_link.adapter = &mfi_switch;
sc->sc_link.adapter_softc = sc;
sc->sc_link.adapter_buswidth = sc->sc_info.mci_max_lds;
- sc->sc_link.adapter_target = -1;
+ sc->sc_link.adapter_target = SDEV_NO_ADAPTER_TARGET;
sc->sc_link.luns = 1;
sc->sc_link.openings = sc->sc_max_cmds - 1;
sc->sc_link.pool = &sc->sc_iopool;
@@ -851,7 +851,7 @@ mfi_syspd(struct mfi_softc *sc)
link->adapter = &mfi_pd_switch;
link->adapter_softc = sc;
link->adapter_buswidth = MFI_MAX_PD;
- link->adapter_target = -1;
+ link->adapter_target = SDEV_NO_ADAPTER_TARGET;
link->openings = sc->sc_max_cmds - 1;
link->pool = &sc->sc_iopool;
diff --git a/sys/dev/pci/mfii.c b/sys/dev/pci/mfii.c
index 67f3f4eb6f2..2920d7cd9b3 100644
--- a/sys/dev/pci/mfii.c
+++ b/sys/dev/pci/mfii.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mfii.c,v 1.68 2020/03/21 20:42:23 krw Exp $ */
+/* $OpenBSD: mfii.c,v 1.69 2020/06/24 18:33:50 krw Exp $ */
/*
* Copyright (c) 2012 David Gwynne <dlg@openbsd.org>
@@ -921,7 +921,7 @@ mfii_syspd(struct mfii_softc *sc)
link->adapter = &mfii_pd_switch;
link->adapter_softc = sc;
link->adapter_buswidth = MFI_MAX_PD;
- link->adapter_target = -1;
+ link->adapter_target = SDEV_NO_ADAPTER_TARGET;
link->openings = sc->sc_max_cmds - 1;
link->pool = &sc->sc_iopool;
diff --git a/sys/dev/pci/mpii.c b/sys/dev/pci/mpii.c
index f5c5cf6303f..1041143abe5 100644
--- a/sys/dev/pci/mpii.c
+++ b/sys/dev/pci/mpii.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpii.c,v 1.128 2020/02/05 16:29:30 krw Exp $ */
+/* $OpenBSD: mpii.c,v 1.129 2020/06/24 18:33:50 krw Exp $ */
/*
* Copyright (c) 2010, 2012 Mike Belopuhov
* Copyright (c) 2009 James Giannoules
@@ -584,7 +584,7 @@ mpii_attach(struct device *parent, struct device *self, void *aux)
/* we should be good to go now, attach scsibus */
sc->sc_link.adapter = &mpii_switch;
sc->sc_link.adapter_softc = sc;
- sc->sc_link.adapter_target = -1;
+ sc->sc_link.adapter_target = SDEV_NO_ADAPTER_TARGET;
sc->sc_link.adapter_buswidth = sc->sc_max_devices;
sc->sc_link.luns = 1;
sc->sc_link.openings = sc->sc_max_cmds - 1;
diff --git a/sys/dev/pci/vmwpvs.c b/sys/dev/pci/vmwpvs.c
index d607282dd65..b6179c12434 100644
--- a/sys/dev/pci/vmwpvs.c
+++ b/sys/dev/pci/vmwpvs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmwpvs.c,v 1.16 2020/02/05 16:29:30 krw Exp $ */
+/* $OpenBSD: vmwpvs.c,v 1.17 2020/06/24 18:33:50 krw Exp $ */
/*
* Copyright (c) 2013 David Gwynne <dlg@openbsd.org>
@@ -562,7 +562,7 @@ vmwpvs_attach(struct device *parent, struct device *self, void *aux)
sc->sc_link.adapter = &vmwpvs_switch;
sc->sc_link.adapter_softc = sc;
- sc->sc_link.adapter_target = -1;
+ sc->sc_link.adapter_target = SDEV_NO_ADAPTER_TARGET;
sc->sc_link.adapter_buswidth = sc->sc_bus_width;
sc->sc_link.openings = VMWPVS_OPENINGS;
sc->sc_link.pool = &sc->sc_iopool;