summaryrefslogtreecommitdiff
path: root/sys/dev/ic/ciss.c
diff options
context:
space:
mode:
authorMatthew Dempsky <matthew@cvs.openbsd.org>2011-07-08 22:09:28 +0000
committerMatthew Dempsky <matthew@cvs.openbsd.org>2011-07-08 22:09:28 +0000
commit5f812b489da947a1e9ee4db1f2150a5376ae40f8 (patch)
treec0fb5195bc2167b8616c28c256db90a8f00ff991 /sys/dev/ic/ciss.c
parentb5ce742f51f1ca4111dcbb133e602d1ecd8adf30 (diff)
First batch of converting SCSI HBAs from setting saa_targets and
saa_luns instead of adapter_buswidth and luns in the prototype link. ok dlg@, miod@
Diffstat (limited to 'sys/dev/ic/ciss.c')
-rw-r--r--sys/dev/ic/ciss.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/ciss.c b/sys/dev/ic/ciss.c
index 5c98fb26e8e..987b4142a36 100644
--- a/sys/dev/ic/ciss.c
+++ b/sys/dev/ic/ciss.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ciss.c,v 1.64 2011/04/05 19:54:35 jasper Exp $ */
+/* $OpenBSD: ciss.c,v 1.65 2011/07/08 22:09:27 matthew Exp $ */
/*
* Copyright (c) 2005,2006 Michael Shalayeff
@@ -366,12 +366,12 @@ ciss_attach(struct ciss_softc *sc)
sc->sc_link.adapter_softc = sc;
sc->sc_link.openings = sc->maxcmd;
sc->sc_link.adapter = &ciss_switch;
- sc->sc_link.luns = 1;
sc->sc_link.adapter_target = sc->maxunits;
- sc->sc_link.adapter_buswidth = sc->maxunits;
sc->sc_link.pool = &sc->sc_iopool;
bzero(&saa, sizeof(saa));
saa.saa_sc_link = &sc->sc_link;
+ saa.saa_targets = sc->maxunits;
+ saa.saa_luns = 1;
scsibus = (struct scsibus_softc *)config_found_sm(&sc->sc_dev,
&saa, scsiprint, NULL);