-/* $OpenBSD: mb89352.c,v 1.32 2021/09/25 23:53:35 aoyama Exp $ */
+/* $OpenBSD: mb89352.c,v 1.33 2022/04/16 19:19:58 naddy Exp $ */
/* $NetBSD: mb89352.c,v 1.5 2000/03/23 07:01:31 thorpej Exp $ */
/* NecBSD: mb89352.c,v 1.4 1998/03/14 07:31:20 kmatsuda Exp */
void
/* spc_attach(sc) */
-spc_attach(struct spc_softc *sc, struct scsi_adapter *adapter)
+spc_attach(struct spc_softc *sc, const struct scsi_adapter *adapter)
{
struct scsibus_attach_args saa;
SPC_TRACE(("spc_attach "));
-/* $OpenBSD: mb89352var.h,v 1.8 2021/03/11 11:16:58 jsg Exp $ */
+/* $OpenBSD: mb89352var.h,v 1.9 2022/04/16 19:19:58 naddy Exp $ */
/* $NetBSD: mb89352var.h,v 1.6 2003/08/02 12:48:09 tsutsui Exp $ */
/* NecBSD: mb89352var.h,v 1.4 1998/03/14 07:31:22 kmatsuda Exp */
#define SPC_TRACE(s) SPC_PRINT(SPC_SHOWTRACE, s)
#define SPC_START(s) SPC_PRINT(SPC_SHOWSTART, s)
-void spc_attach(struct spc_softc *, struct scsi_adapter *);
+void spc_attach(struct spc_softc *, const struct scsi_adapter *);
int spc_intr(void *);
int spc_find(bus_space_tag_t, bus_space_handle_t, int);
void spc_init(struct spc_softc *);
-/* $OpenBSD: spc.c,v 1.12 2022/04/06 18:59:26 naddy Exp $ */
+/* $OpenBSD: spc.c,v 1.13 2022/04/16 19:19:58 naddy Exp $ */
/* $NetBSD: spc.c,v 1.4 2003/07/05 19:00:17 tsutsui Exp $ */
/*-
NULL, "spc", DV_DULL
};
-struct scsi_adapter spc_switch = {
+const struct scsi_adapter spc_switch = {
spc_scsi_cmd, NULL, NULL, NULL, NULL
};
-/* $OpenBSD: vdsk.c,v 1.72 2021/10/24 17:05:04 mpi Exp $ */
+/* $OpenBSD: vdsk.c,v 1.73 2022/04/16 19:19:58 naddy Exp $ */
/*
* Copyright (c) 2009, 2011 Mark Kettenis
*
void vdsk_scsi_cmd(struct scsi_xfer *);
-struct scsi_adapter vdsk_switch = {
+const struct scsi_adapter vdsk_switch = {
vdsk_scsi_cmd, NULL, NULL, NULL, NULL
};
-/* $OpenBSD: atascsi.c,v 1.152 2022/04/09 20:10:26 naddy Exp $ */
+/* $OpenBSD: atascsi.c,v 1.153 2022/04/16 19:19:58 naddy Exp $ */
/*
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
void atascsi_free(struct scsi_link *);
/* template */
-struct scsi_adapter atascsi_switch = {
+const struct scsi_adapter atascsi_switch = {
atascsi_cmd, NULL, atascsi_probe, atascsi_free, NULL
};
-/* $OpenBSD: atapiscsi.c,v 1.119 2022/04/06 18:59:27 naddy Exp $ */
+/* $OpenBSD: atapiscsi.c,v 1.120 2022/04/16 19:19:58 naddy Exp $ */
/*
* This code is derived from code with the copyright below.
int wdc_atapi_ioctl(struct scsi_link *, u_long, caddr_t, int);
void wdc_atapi_send_cmd(struct scsi_xfer *sc_xfer);
-static struct scsi_adapter atapiscsi_switch = {
+static const struct scsi_adapter atapiscsi_switch = {
wdc_atapi_send_cmd, NULL, NULL, NULL, wdc_atapi_ioctl
};
-/* $OpenBSD: aac.c,v 1.93 2022/01/09 05:42:37 jsg Exp $ */
+/* $OpenBSD: aac.c,v 1.94 2022/04/16 19:19:58 naddy Exp $ */
/*-
* Copyright (c) 2000 Michael Smith
NULL, "aac", DV_DULL
};
-struct scsi_adapter aac_switch = {
+const struct scsi_adapter aac_switch = {
aac_scsi_cmd, NULL, NULL, NULL, NULL
};
-/* $OpenBSD: adv.c,v 1.52 2021/03/07 06:21:38 jsg Exp $ */
+/* $OpenBSD: adv.c,v 1.53 2022/04/16 19:19:58 naddy Exp $ */
/* $NetBSD: adv.c,v 1.6 1998/10/28 20:39:45 dante Exp $ */
/*
};
-struct scsi_adapter adv_switch = {
+const struct scsi_adapter adv_switch = {
adv_scsi_cmd, NULL, NULL, NULL, NULL
};
-/* $OpenBSD: adw.c,v 1.68 2020/09/22 19:32:52 krw Exp $ */
+/* $OpenBSD: adw.c,v 1.69 2022/04/16 19:19:58 naddy Exp $ */
/* $NetBSD: adw.c,v 1.23 2000/05/27 18:24:50 dante Exp $ */
/*
NULL, "adw", DV_DULL
};
-struct scsi_adapter adw_switch = {
+const struct scsi_adapter adw_switch = {
adw_scsi_cmd, NULL, NULL, NULL, NULL
};
-/* $OpenBSD: aic6360.c,v 1.39 2022/01/09 05:42:38 jsg Exp $ */
+/* $OpenBSD: aic6360.c,v 1.40 2022/04/16 19:19:58 naddy Exp $ */
/* $NetBSD: aic6360.c,v 1.52 1996/12/10 21:27:51 thorpej Exp $ */
#ifdef DDB
NULL, "aic", DV_DULL
};
-struct scsi_adapter aic_switch = {
+const struct scsi_adapter aic_switch = {
aic_scsi_cmd, NULL, NULL, NULL, NULL
};
-/* $OpenBSD: aic79xx_openbsd.c,v 1.59 2020/09/22 19:32:52 krw Exp $ */
+/* $OpenBSD: aic79xx_openbsd.c,v 1.60 2022/04/16 19:19:58 naddy Exp $ */
/*
* Copyright (c) 2004 Milos Urbanek, Kenneth R. Westerback & Marco Peereboom
NULL, "ahd", DV_DULL
};
-static struct scsi_adapter ahd_switch = {
+static const struct scsi_adapter ahd_switch = {
ahd_action, NULL, NULL, NULL, NULL
};
-/* $OpenBSD: aic7xxx_openbsd.c,v 1.71 2020/09/22 19:32:52 krw Exp $ */
+/* $OpenBSD: aic7xxx_openbsd.c,v 1.72 2022/04/16 19:19:58 naddy Exp $ */
/* $NetBSD: aic7xxx_osm.c,v 1.14 2003/11/02 11:07:44 wiz Exp $ */
/*
NULL, "ahc", DV_DULL
};
-static struct scsi_adapter ahc_switch = {
+static const struct scsi_adapter ahc_switch = {
ahc_action, NULL, NULL, NULL, NULL
};
-/* $OpenBSD: ami.c,v 1.261 2022/01/09 05:42:38 jsg Exp $ */
+/* $OpenBSD: ami.c,v 1.262 2022/04/16 19:19:58 naddy Exp $ */
/*
* Copyright (c) 2001 Michael Shalayeff
void ami_scsi_cmd(struct scsi_xfer *);
int ami_scsi_ioctl(struct scsi_link *, u_long, caddr_t, int);
-struct scsi_adapter ami_switch = {
+const struct scsi_adapter ami_switch = {
ami_scsi_cmd, NULL, NULL, NULL, ami_scsi_ioctl
};
void ami_scsi_raw_cmd(struct scsi_xfer *);
-struct scsi_adapter ami_raw_switch = {
+const struct scsi_adapter ami_raw_switch = {
ami_scsi_raw_cmd, NULL, NULL, NULL, NULL
};
-/* $OpenBSD: cac.c,v 1.75 2022/01/09 05:42:38 jsg Exp $ */
+/* $OpenBSD: cac.c,v 1.76 2022/04/16 19:19:59 naddy Exp $ */
/* $NetBSD: cac.c,v 1.15 2000/11/08 19:20:35 ad Exp $ */
/*
void cac_scsi_cmd(struct scsi_xfer *);
-struct scsi_adapter cac_switch = {
+const struct scsi_adapter cac_switch = {
cac_scsi_cmd, NULL, NULL, NULL, NULL
};
-/* $OpenBSD: ciss.c,v 1.90 2022/01/09 05:42:38 jsg Exp $ */
+/* $OpenBSD: ciss.c,v 1.91 2022/04/16 19:19:59 naddy Exp $ */
/*
* Copyright (c) 2005,2006 Michael Shalayeff
void ciss_scsi_cmd(struct scsi_xfer *xs);
int ciss_scsi_ioctl(struct scsi_link *, u_long, caddr_t, int);
-struct scsi_adapter ciss_switch = {
+const struct scsi_adapter ciss_switch = {
ciss_scsi_cmd, NULL, NULL, NULL, ciss_scsi_ioctl
};
-/* $OpenBSD: gdt_common.c,v 1.84 2021/08/30 14:44:39 jasper Exp $ */
+/* $OpenBSD: gdt_common.c,v 1.85 2022/04/16 19:19:59 naddy Exp $ */
/*
* Copyright (c) 1999, 2000, 2003 Niklas Hallqvist. All rights reserved.
NULL, "gdt", DV_DULL
};
-struct scsi_adapter gdt_switch = {
+const struct scsi_adapter gdt_switch = {
gdt_scsi_cmd, NULL, NULL, NULL, NULL
};
-/* $OpenBSD: mfi.c,v 1.187 2020/09/22 19:32:52 krw Exp $ */
+/* $OpenBSD: mfi.c,v 1.188 2022/04/16 19:19:59 naddy Exp $ */
/*
* Copyright (c) 2006 Marco Peereboom <marco@peereboom.us>
*
void mfi_pd_scsi_cmd(struct scsi_xfer *);
int mfi_pd_scsi_probe(struct scsi_link *);
-struct scsi_adapter mfi_switch = {
+const struct scsi_adapter mfi_switch = {
mfi_scsi_cmd, NULL, NULL, NULL, mfi_scsi_ioctl
};
-struct scsi_adapter mfi_pd_switch = {
+const struct scsi_adapter mfi_pd_switch = {
mfi_pd_scsi_cmd, NULL, mfi_pd_scsi_probe, NULL, mfi_scsi_ioctl
};
-/* $OpenBSD: mpi.c,v 1.223 2020/09/22 19:32:52 krw Exp $ */
+/* $OpenBSD: mpi.c,v 1.224 2022/04/16 19:19:59 naddy Exp $ */
/*
* Copyright (c) 2005, 2006, 2009 David Gwynne <dlg@openbsd.org>
int mpi_scsi_ioctl(struct scsi_link *, u_long, caddr_t,
int);
-struct scsi_adapter mpi_switch = {
+const struct scsi_adapter mpi_switch = {
mpi_scsi_cmd, NULL, mpi_scsi_probe, NULL, mpi_scsi_ioctl
};
-/* $OpenBSD: ncr53c9x.c,v 1.79 2022/01/09 05:42:38 jsg Exp $ */
+/* $OpenBSD: ncr53c9x.c,v 1.80 2022/04/16 19:19:59 naddy Exp $ */
/* $NetBSD: ncr53c9x.c,v 1.56 2000/11/30 14:41:46 thorpej Exp $ */
/*
int ncr53c9x_scsi_probe(struct scsi_link *);
void ncr53c9x_scsi_free(struct scsi_link *);
-struct scsi_adapter ncr53c9x_switch = {
+const struct scsi_adapter ncr53c9x_switch = {
ncr53c9x_scsi_cmd, NULL, ncr53c9x_scsi_probe,
ncr53c9x_scsi_free, NULL
};
-/* $OpenBSD: nvme.c,v 1.103 2021/08/31 04:21:04 dlg Exp $ */
+/* $OpenBSD: nvme.c,v 1.104 2022/04/16 19:19:59 naddy Exp $ */
/*
* Copyright (c) 2014 David Gwynne <dlg@openbsd.org>
int nvme_hibernate_io(dev_t, daddr_t, vaddr_t, size_t, int, void *);
#endif
-struct scsi_adapter nvme_switch = {
+const struct scsi_adapter nvme_switch = {
nvme_scsi_cmd, nvme_minphys, nvme_scsi_probe, nvme_scsi_free, NULL
};
-/* $OpenBSD: oosiop.c,v 1.35 2022/01/09 05:42:38 jsg Exp $ */
+/* $OpenBSD: oosiop.c,v 1.36 2022/04/16 19:19:59 naddy Exp $ */
/* $NetBSD: oosiop.c,v 1.4 2003/10/29 17:45:55 tsutsui Exp $ */
/*
NULL, "oosiop", DV_DULL
};
-struct scsi_adapter oosiop_switch = {
+const struct scsi_adapter oosiop_switch = {
oosiop_scsicmd, NULL, NULL, NULL, NULL
};
-/* $OpenBSD: osiop.c,v 1.63 2020/09/22 19:32:52 krw Exp $ */
+/* $OpenBSD: osiop.c,v 1.64 2022/04/16 19:19:59 naddy Exp $ */
/* $NetBSD: osiop.c,v 1.9 2002/04/05 18:27:54 bouyer Exp $ */
/*
NULL, "osiop", DV_DULL
};
-struct scsi_adapter osiop_switch = {
+const struct scsi_adapter osiop_switch = {
osiop_scsicmd, NULL, NULL, NULL, NULL
};
-/* $OpenBSD: qla.c,v 1.68 2020/09/22 19:32:52 krw Exp $ */
+/* $OpenBSD: qla.c,v 1.69 2022/04/16 19:19:59 naddy Exp $ */
/*
* Copyright (c) 2011 David Gwynne <dlg@openbsd.org>
#define qla_read_isr(_sc, _isr, _info) \
((*(_sc)->sc_regs->read_isr)((_sc), (_isr), (_info)))
-struct scsi_adapter qla_switch = {
+const struct scsi_adapter qla_switch = {
qla_scsi_cmd, NULL, qla_scsi_probe, NULL, NULL
};
-/* $OpenBSD: qlw.c,v 1.47 2020/09/22 19:32:52 krw Exp $ */
+/* $OpenBSD: qlw.c,v 1.48 2022/04/16 19:19:59 naddy Exp $ */
/*
* Copyright (c) 2011 David Gwynne <dlg@openbsd.org>
qlw_write(sc, sc->sc_mbox_base + offset, value);
}
-struct scsi_adapter qlw_switch = {
+const struct scsi_adapter qlw_switch = {
qlw_scsi_cmd, NULL, NULL, NULL, NULL
};
-/* $OpenBSD: siop.c,v 1.88 2022/01/09 05:42:42 jsg Exp $ */
+/* $OpenBSD: siop.c,v 1.89 2022/04/16 19:19:59 naddy Exp $ */
/* $NetBSD: siop.c,v 1.79 2005/11/18 23:10:32 bouyer Exp $ */
/*
NULL, "siop", DV_DULL
};
-struct scsi_adapter siop_switch = {
+const struct scsi_adapter siop_switch = {
siop_scsicmd, NULL, siop_scsiprobe, siop_scsifree, NULL
};
-/* $OpenBSD: twe.c,v 1.66 2021/07/14 01:11:13 daniel Exp $ */
+/* $OpenBSD: twe.c,v 1.67 2022/04/16 19:19:59 naddy Exp $ */
/*
* Copyright (c) 2000-2002 Michael Shalayeff. All rights reserved.
void twe_scsi_cmd(struct scsi_xfer *);
-struct scsi_adapter twe_switch = {
+const struct scsi_adapter twe_switch = {
twe_scsi_cmd, NULL, NULL, NULL, NULL
};
-/* $OpenBSD: uha.c,v 1.41 2022/02/15 12:04:44 jsg Exp $ */
+/* $OpenBSD: uha.c,v 1.42 2022/04/16 19:19:59 naddy Exp $ */
/* $NetBSD: uha.c,v 1.3 1996/10/13 01:37:29 christos Exp $ */
/*
* Copyright (c) 1994, 1996 Charles M. Hannum. All rights reserved.
void uha_scsi_cmd(struct scsi_xfer *);
int uhaprint(void *, const char *);
-struct scsi_adapter uha_switch = {
+const struct scsi_adapter uha_switch = {
uha_scsi_cmd, NULL, NULL, NULL, NULL
};
-/* $OpenBSD: wds.c,v 1.58 2022/04/06 18:59:29 naddy Exp $ */
+/* $OpenBSD: wds.c,v 1.59 2022/04/16 19:19:59 naddy Exp $ */
/* $NetBSD: wds.c,v 1.13 1996/11/03 16:20:31 mycroft Exp $ */
#undef WDSDIAG
void wds_timeout(void *);
int wdsprint(void *, const char *);
-struct scsi_adapter wds_switch = {
+const struct scsi_adapter wds_switch = {
wds_scsi_cmd, NULL, NULL, NULL, NULL
};
-/* $OpenBSD: arc.c,v 1.122 2022/03/11 18:00:45 mpi Exp $ */
+/* $OpenBSD: arc.c,v 1.123 2022/04/16 19:19:59 naddy Exp $ */
/*
* Copyright (c) 2006 David Gwynne <dlg@openbsd.org>
NULL, "arc", DV_DULL
};
-struct scsi_adapter arc_switch = {
+const struct scsi_adapter arc_switch = {
arc_scsi_cmd, NULL, NULL, NULL, NULL
};
-/* $OpenBSD: iha_pci.c,v 1.20 2022/03/11 18:00:50 mpi Exp $ */
+/* $OpenBSD: iha_pci.c,v 1.21 2022/04/16 19:19:59 naddy Exp $ */
/*-------------------------------------------------------------------------
*
* Device driver for the INI-9XXXU/UW or INIC-940/950 PCI SCSI Controller.
NULL, "iha", DV_DULL
};
-struct scsi_adapter iha_switch = {
+const struct scsi_adapter iha_switch = {
iha_scsi_cmd, NULL, NULL, NULL, NULL
};
-/* $OpenBSD: ips.c,v 1.134 2022/03/11 18:00:50 mpi Exp $ */
+/* $OpenBSD: ips.c,v 1.135 2022/04/16 19:19:59 naddy Exp $ */
/*
* Copyright (c) 2006, 2007, 2009 Alexander Yurchenko <grange@openbsd.org>
NULL, "ips", DV_DULL
};
-static struct scsi_adapter ips_switch = {
+static const struct scsi_adapter ips_switch = {
ips_scsi_cmd, NULL, NULL, NULL, ips_scsi_ioctl
};
-static struct scsi_adapter ips_pt_switch = {
+static const struct scsi_adapter ips_pt_switch = {
ips_scsi_pt_cmd, NULL, NULL, NULL, NULL
};
-/* $OpenBSD: mfii.c,v 1.84 2022/03/11 18:00:50 mpi Exp $ */
+/* $OpenBSD: mfii.c,v 1.85 2022/04/16 19:19:59 naddy Exp $ */
/*
* Copyright (c) 2012 David Gwynne <dlg@openbsd.org>
int mfii_scsi_ioctl(struct scsi_link *, u_long, caddr_t, int);
int mfii_ioctl_cache(struct scsi_link *, u_long, struct dk_cache *);
-struct scsi_adapter mfii_switch = {
+const struct scsi_adapter mfii_switch = {
mfii_scsi_cmd, NULL, NULL, NULL, mfii_scsi_ioctl
};
void mfii_pd_scsi_cmd(struct scsi_xfer *);
int mfii_pd_scsi_probe(struct scsi_link *);
-struct scsi_adapter mfii_pd_switch = {
+const struct scsi_adapter mfii_pd_switch = {
mfii_pd_scsi_cmd, NULL, mfii_pd_scsi_probe, NULL, NULL,
};
-/* $OpenBSD: mpii.c,v 1.142 2022/03/11 18:00:50 mpi Exp $ */
+/* $OpenBSD: mpii.c,v 1.143 2022/04/16 19:19:59 naddy Exp $ */
/*
* Copyright (c) 2010, 2012 Mike Belopuhov
* Copyright (c) 2009 James Giannoules
int mpii_scsi_probe(struct scsi_link *);
int mpii_scsi_ioctl(struct scsi_link *, u_long, caddr_t, int);
-struct scsi_adapter mpii_switch = {
+const struct scsi_adapter mpii_switch = {
mpii_scsi_cmd, NULL, mpii_scsi_probe, NULL, mpii_scsi_ioctl
};
-/* $OpenBSD: qle.c,v 1.62 2022/03/11 18:00:51 mpi Exp $ */
+/* $OpenBSD: qle.c,v 1.63 2022/04/16 19:19:59 naddy Exp $ */
/*
* Copyright (c) 2013, 2014 Jonathan Matthew <jmatthew@openbsd.org>
int qle_scsi_probe(struct scsi_link *);
-struct scsi_adapter qle_switch = {
+const struct scsi_adapter qle_switch = {
qle_scsi_cmd, NULL, qle_scsi_probe, NULL, NULL
};
-/* $OpenBSD: trm_pci.c,v 1.11 2022/04/06 18:59:29 naddy Exp $
+/* $OpenBSD: trm_pci.c,v 1.12 2022/04/16 19:19:59 naddy Exp $
* ------------------------------------------------------------
* O.S : OpenBSD
* FILE NAME : trm_pci.c
NULL, "trm", DV_DULL
};
-struct scsi_adapter trm_switch = {
+const struct scsi_adapter trm_switch = {
trm_scsi_cmd, NULL, NULL, NULL, NULL
};
-/* $OpenBSD: vmwpvs.c,v 1.26 2022/03/11 18:00:52 mpi Exp $ */
+/* $OpenBSD: vmwpvs.c,v 1.27 2022/04/16 19:19:59 naddy Exp $ */
/*
* Copyright (c) 2013 David Gwynne <dlg@openbsd.org>
void vmwpvs_scsi_cmd(struct scsi_xfer *);
-struct scsi_adapter vmwpvs_switch = {
+const struct scsi_adapter vmwpvs_switch = {
vmwpvs_scsi_cmd, NULL, NULL, NULL, NULL
};
sizeof(struct hvs_softc), hvs_match, hvs_attach
};
-struct scsi_adapter hvs_switch = {
+const struct scsi_adapter hvs_switch = {
hvs_scsi_cmd, NULL, NULL, NULL, NULL
};
-/* $OpenBSD: vioblk.c,v 1.34 2022/01/09 05:42:58 jsg Exp $ */
+/* $OpenBSD: vioblk.c,v 1.35 2022/04/16 19:19:59 naddy Exp $ */
/*
* Copyright (c) 2012 Stefan Fritsch.
NULL, "vioblk", DV_DULL
};
-struct scsi_adapter vioblk_switch = {
+const struct scsi_adapter vioblk_switch = {
vioblk_scsi_cmd, NULL, NULL, NULL, NULL
};
-/* $OpenBSD: vioscsi.c,v 1.29 2022/01/09 05:42:58 jsg Exp $ */
+/* $OpenBSD: vioscsi.c,v 1.30 2022/04/16 19:19:59 naddy Exp $ */
/*
* Copyright (c) 2013 Google Inc.
*
NULL, "vioscsi", DV_DULL,
};
-struct scsi_adapter vioscsi_switch = {
+const struct scsi_adapter vioscsi_switch = {
vioscsi_scsi_cmd, NULL, NULL, NULL, NULL
};
-/* $OpenBSD: xbf.c,v 1.51 2020/10/15 13:22:13 krw Exp $ */
+/* $OpenBSD: xbf.c,v 1.52 2022/04/16 19:19:59 naddy Exp $ */
/*
* Copyright (c) 2016, 2017 Mike Belopuhov
int xbf_poll_cmd(struct scsi_xfer *);
void xbf_complete_cmd(struct xbf_softc *, struct xbf_ccb_queue *, int);
-struct scsi_adapter xbf_switch = {
+const struct scsi_adapter xbf_switch = {
xbf_scsi_cmd, NULL, NULL, NULL, NULL
};
-/* $OpenBSD: sdmmc_scsi.c,v 1.60 2021/03/27 14:36:28 kn Exp $ */
+/* $OpenBSD: sdmmc_scsi.c,v 1.61 2022/04/16 19:19:59 naddy Exp $ */
/*
* Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org>
void sdmmc_stimeout(void *);
void sdmmc_minphys(struct buf *, struct scsi_link *);
-struct scsi_adapter sdmmc_switch = {
+const struct scsi_adapter sdmmc_switch = {
sdmmc_scsi_cmd, sdmmc_minphys, NULL, NULL, NULL
};
-/* $OpenBSD: softraid.c,v 1.424 2022/04/12 14:34:11 semarie Exp $ */
+/* $OpenBSD: softraid.c,v 1.425 2022/04/16 19:19:58 naddy Exp $ */
/*
* Copyright (c) 2007, 2008, 2009 Marco Peereboom <marco@peereboom.us>
* Copyright (c) 2008 Chris Kuethe <ckuethe@openbsd.org>
extern void (*softraid_disk_attach)(struct disk *, int);
/* scsi glue */
-struct scsi_adapter sr_switch = {
+const struct scsi_adapter sr_switch = {
sr_scsi_cmd, NULL, sr_scsi_probe, NULL, sr_scsi_ioctl
};
-/* $OpenBSD: umass_scsi.c,v 1.62 2021/11/22 10:17:14 mglocker Exp $ */
+/* $OpenBSD: umass_scsi.c,v 1.63 2022/04/16 19:19:59 naddy Exp $ */
/* $NetBSD: umass_scsipi.c,v 1.9 2003/02/16 23:14:08 augustss Exp $ */
/*
* Copyright (c) 2001 The NetBSD Foundation, Inc.
int umass_scsi_probe(struct scsi_link *);
void umass_scsi_cmd(struct scsi_xfer *);
-struct scsi_adapter umass_scsi_switch = {
+const struct scsi_adapter umass_scsi_switch = {
umass_scsi_cmd, NULL, umass_scsi_probe, NULL, NULL
};
-/* $OpenBSD: vscsi.c,v 1.59 2022/04/06 18:59:27 naddy Exp $ */
+/* $OpenBSD: vscsi.c,v 1.60 2022/04/16 19:19:58 naddy Exp $ */
/*
* Copyright (c) 2008 David Gwynne <dlg@openbsd.org>
int vscsi_probe(struct scsi_link *);
void vscsi_free(struct scsi_link *);
-struct scsi_adapter vscsi_switch = {
+const struct scsi_adapter vscsi_switch = {
vscsi_cmd, NULL, vscsi_probe, vscsi_free, NULL
};
-/* $OpenBSD: mpath.c,v 1.55 2021/10/24 16:57:30 mpi Exp $ */
+/* $OpenBSD: mpath.c,v 1.56 2022/04/16 19:19:59 naddy Exp $ */
/*
* Copyright (c) 2009 David Gwynne <dlg@openbsd.org>
void mpath_failover_start(void *);
void mpath_failover_check(struct mpath_dev *);
-struct scsi_adapter mpath_switch = {
+const struct scsi_adapter mpath_switch = {
mpath_cmd, NULL, mpath_probe, NULL, NULL
};
-/* $OpenBSD: scsiconf.h,v 1.200 2020/10/14 23:40:33 krw Exp $ */
+/* $OpenBSD: scsiconf.h,v 1.201 2022/04/16 19:19:59 naddy Exp $ */
/* $NetBSD: scsiconf.h,v 1.35 1997/04/02 02:29:38 mycroft Exp $ */
/*
};
struct scsibus_attach_args {
- struct scsi_adapter *saa_adapter;
+ const struct scsi_adapter *saa_adapter;
void *saa_adapter_softc;
struct scsi_iopool *saa_pool;
u_int64_t saa_wwpn;
struct device sc_dev;
SLIST_HEAD(, scsi_link) sc_link_list;
void *sb_adapter_softc;
- struct scsi_adapter *sb_adapter;
+ const struct scsi_adapter *sb_adapter;
struct scsi_iopool *sb_pool;
u_int16_t sb_quirks;
u_int16_t sb_flags;