From owner-cvs-all Mon Apr 3 4:11:22 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 1F7F137BE3F; Mon, 3 Apr 2000 04:11:14 -0700 (PDT) (envelope-from n_hibma@FreeBSD.org) Received: (from n_hibma@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id EAA05374; Mon, 3 Apr 2000 04:11:14 -0700 (PDT) (envelope-from n_hibma@FreeBSD.org) Message-Id: <200004031111.EAA05374@freefall.freebsd.org> From: Nick Hibma Date: Mon, 3 Apr 2000 04:11:13 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/cam cam_periph.h cam_xpt.c src/sys/dev/usb umass.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG n_hibma 2000/04/03 04:11:13 PDT Modified files: sys/cam cam_periph.h cam_xpt.c sys/dev/usb umass.c Log: Add a hack to cam that makes the cam_xpt available to the rest of the kernel. Justin agress that there is no other reasonable alternative to do automatic rescans on connect. The problem is that when a new device attaches to a SIM (SCSI host controller) we need to send a XPT_SCAN_BUS command to the SIM using xpt_action. This requires however that there is a peripheral available to take the command (otherwise xpt_done and later bomb). The RESCAN ioctl uses the same periph. This enables a USB mass storage drive to do an automatic rescan on connection of the drive. The automatic dropping of a CAM entry on disconnection was already working (asynchronous event). The next thing to do is find someone to commit a change to vpo to do the same thing. Just port umass_cam_rescan and friends across to that driver. Approved by: gibbs Revision Changes Path 1.8 +3 -1 src/sys/cam/cam_periph.h 1.82 +1 -3 src/sys/cam/cam_xpt.c 1.18 +4 -27 src/sys/dev/usb/umass.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message