From 5f812b489da947a1e9ee4db1f2150a5376ae40f8 Mon Sep 17 00:00:00 2001 From: Matthew Dempsky Date: Fri, 8 Jul 2011 22:09:28 +0000 Subject: 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@ --- sys/dev/ic/gdt_common.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sys/dev/ic/gdt_common.c') 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); -- cgit v1.2.3