From owner-freebsd-scsi Sun Apr 2 14:50:25 2000 Delivered-To: freebsd-scsi@freebsd.org Received: from narnia.plutotech.com (narnia.plutotech.com [206.168.67.130]) by hub.freebsd.org (Postfix) with ESMTP id 6991937B965 for ; Sun, 2 Apr 2000 14:50:23 -0700 (PDT) (envelope-from gibbs@narnia.plutotech.com) Received: (from gibbs@localhost) by narnia.plutotech.com (8.9.3/8.7.3) id PAA27619; Sun, 2 Apr 2000 15:35:36 -0600 (MDT) Date: Sun, 2 Apr 2000 15:35:36 -0600 (MDT) From: "Justin T. Gibbs" Message-Id: <200004022135.PAA27619@narnia.plutotech.com> To: Nick Hibma Cc: scsi@FreeBSD.org Subject: Re: peripheral X-Newsgroups: pluto.freebsd.scsi In-Reply-To: User-Agent: tin/pre-1.4-980818 ("Laura") (UNIX) (FreeBSD/4.0-CURRENT (i386)) Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In article you wrote: > > How do I send an action to a SIM (XPT_SCAN_BUS)? A SIM does not seem to > have a peripheral (cam_find_find_periph), yet periph needs to be > initialised in the path passed to xpt_setup_ccb/xpt_action, to avoid a > NULL dereference in xpt_done. A SIM is not supposed to send CCBs to itself. To truely implement auto-discovery (which I'm guessing is the root of your question), requires adding in the auto-discovery hooks from CAM3. Until then, either add your hack to get at the xpt_periph, or allocate a peripheral (cam_periph_alloc) for your SIM and use it to generate the SCAN_BUS request. -- Justin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message