From owner-freebsd-scsi Sun Nov 17 22:52:34 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 9992737B431 for ; Sun, 17 Nov 2002 22:52:32 -0800 (PST) Received: from msgbas1x.cos.agilent.com (msgbas1x.cos.agilent.com [192.25.240.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1A8A943ED8 for ; Sun, 17 Nov 2002 22:52:13 -0800 (PST) (envelope-from ctuffli@rose.agilent.com) Received: from relcos2.cos.agilent.com (relcos2.cos.agilent.com [130.29.152.237]) by msgbas1x.cos.agilent.com (Postfix) with ESMTP id C0BCA8A4B for ; Sun, 17 Nov 2002 23:52:12 -0700 (MST) Received: from rtl.rose.agilent.com (rtl.rose.agilent.com [130.30.179.189]) by relcos2.cos.agilent.com (Postfix) with ESMTP id 43C7656E for ; Sun, 17 Nov 2002 23:52:12 -0700 (MST) Received: from mail.rose.agilent.com (mailsrv@bellhop [130.30.179.19]) by rtl.rose.agilent.com (8.9.3 (PHNE_18979)/8.9.3 SMKit7.1.0) with ESMTP id WAA12048 for ; Sun, 17 Nov 2002 22:52:11 -0800 (PST) Received: from thegrail (anu.rose.agilent.com [156.140.225.186]) by mail.rose.agilent.com (Netscape Messaging Server 3.6) with ESMTP id AAA1764; Sun, 17 Nov 2002 22:52:07 -0800 Received: by thegrail (Postfix, from userid 1001) id 37E638470F; Sun, 17 Nov 2002 22:48:07 -0800 (PST) Date: Sun, 17 Nov 2002 22:48:06 -0800 From: Chuck Tuffli To: "Long, Scott" Cc: freebsd-scsi@FreeBSD.ORG Subject: Re: SIM as loadable module? Message-ID: <20021118064805.GA7533@thegrail.rose.agilent.com> References: <6100BCEB85F8E244959C756C04E0EDD161CB79@otcexc01.otc.adaptec.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6100BCEB85F8E244959C756C04E0EDD161CB79@otcexc01.otc.adaptec.com> User-Agent: Mutt/1.4i 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 Mon, Nov 18, 2002 at 01:31:14AM -0500, Long, Scott wrote: > > What are you setting ccb->ccb_h.status to? Can you share the body of > your action method, or at least the XPT_PATH_INQ portions? case XPT_PATH_INQ: { /* get properties of the SIM driver and HBA */ struct ccb_pathinq *cpi = &ccb->cpi; hpFCPortInfo_t fpi; cpi->version_num = 1; /* all drivers use version 1 */ cpi->target_sprt = 0; /* initiator only */ cpi->hba_eng_cnt = 0; cpi->bus_id = bus; cpi->max_target = TACH_MAX_DISKS - 1; cpi->max_lun = TACH_MAX_LUN - 1; cpi->hba_misc = PIM_NOBUSRESET; cpi->hba_inquiry = PI_TAG_ABLE; cpi->initiator_id = cpi->max_target + 1; fcPortGetInfo(&(ini->tach->root), &fpi); if (fpi.PortSpeed == 0) { cpi->base_transfer_speed = 100000; } else { cpi->base_transfer_speed = 200000; } strncpy(cpi->sim_vid, "FreeBSD", SIM_IDLEN); strncpy(cpi->hba_vid, "Agilent", HBA_IDLEN); strncpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN); cpi->unit_number = unit; cpi->ccb_h.status = CAM_REQ_CMP; xpt_done(ccb); break; } -- Chuck Tuffli Agilent Technologies, Storage and Networking To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message