summaryrefslogtreecommitdiff
path: root/sys/dev/ic/gdt_common.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/gdt_common.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/gdt_common.c')
-rw-r--r--sys/dev/ic/gdt_common.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/ic/gdt_common.c b/sys/dev/ic/gdt_common.c
index 7b4268b119c..ccffa0b78d4 100644
--- a/sys/dev/ic/gdt_common.c
+++ b/sys/dev/ic/gdt_common.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gdt_common.c,v 1.57 2011/04/19 23:59:11 krw Exp $ */
+/* $OpenBSD: gdt_common.c,v 1.58 2011/07/08 22:09:27 matthew Exp $ */
/*
* Copyright (c) 1999, 2000, 2003 Niklas Hallqvist. All rights reserved.
@@ -156,8 +156,6 @@ gdt_attach(struct gdt_softc *sc)
sc->sc_link.adapter_softc = sc;
sc->sc_link.adapter = &gdt_switch;
/* openings will be filled in later. */
- sc->sc_link.adapter_buswidth =
- (sc->sc_class & GDT_FC) ? GDT_MAXID : GDT_MAX_HDRIVES;
sc->sc_link.adapter_target = sc->sc_link.adapter_buswidth;
sc->sc_link.pool = &sc->sc_iopool;
@@ -480,6 +478,7 @@ gdt_attach(struct gdt_softc *sc)
bzero(&saa, sizeof(saa));
saa.saa_sc_link = &sc->sc_link;
+ saa.saa_targets = (sc->sc_class & GDT_FC) ? GDT_MAXID : GDT_MAX_HDRIVES;
config_found(&sc->sc_dev, &saa, scsiprint);