From owner-freebsd-scsi Tue Nov 19 11: 6: 9 2002 Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DE0A937B401 for ; Tue, 19 Nov 2002 11:06:08 -0800 (PST) Received: from rootlabs.com (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 6A13343E42 for ; Tue, 19 Nov 2002 11:06:04 -0800 (PST) (envelope-from nate@rootlabs.com) Received: (qmail 61185 invoked by uid 1000); 19 Nov 2002 19:06:04 -0000 Date: Tue, 19 Nov 2002 11:06:04 -0800 (PST) From: Nate Lawson To: Chuck Tuffli Cc: freebsd-scsi@FreeBSD.ORG Subject: Re: SIM as loadable module? In-Reply-To: <20021118064805.GA7533@thegrail.rose.agilent.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sun, 17 Nov 2002, Chuck Tuffli wrote: > case XPT_PATH_INQ: > { > ... > cpi->bus_id = bus; Shouldn't this be: cpi->bus_id = cam_sim_bus(sim); (of course, I don't know what the type of "bus" is in this context) > cpi->initiator_id = cpi->max_target + 1; Does this accurately reflect the card's settings? Some SIMs I've seen do a device-specific call to read the card's id (in your case, fcPortGetInfo?). I guess your approach should be necessary in the FC case since your position in the chain can change when you get a LIP. The rest looks fine. -Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message