From owner-freebsd-scsi Sat Jul 29 12:27:22 2000 Delivered-To: freebsd-scsi@freebsd.org Received: from njord.bart.nl (njord.bart.nl [194.158.170.15]) by hub.freebsd.org (Postfix) with ESMTP id 17F4437B578; Sat, 29 Jul 2000 12:27:17 -0700 (PDT) (envelope-from asmodai@wxs.nl) Received: from daemon.ninth-circle.org (daemon.ninth-circle.org [195.38.210.81]) by njord.bart.nl (8.10.1/8.10.1) with ESMTP id e6TJQgF54068; Sat, 29 Jul 2000 21:26:46 +0200 (CEST) Received: (from asmodai@localhost) by daemon.ninth-circle.org (8.9.3/8.9.3) id VAA27361; Sat, 29 Jul 2000 21:26:06 +0200 (CEST) (envelope-from asmodai) Date: Sat, 29 Jul 2000 21:26:06 +0200 From: Jeroen Ruigrok/Asmodai To: "Justin T. Gibbs" Cc: mjacob@feral.com, scsi@freebsd.org, sos@freebsd.org Subject: Re: CAM layer Message-ID: <20000729212605.A27295@daemon.ninth-circle.org> References: <200007241900.NAA17859@pluto.plutotech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2i In-Reply-To: <200007241900.NAA17859@pluto.plutotech.com>; from gibbs@plutotech.com on Mon, Jul 24, 2000 at 01:01:24PM -0600 Organisation: Ninth-Circle Enterprises Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org -On [20000724 22:00], Justin T. Gibbs (gibbs@plutotech.com) wrote: >In article you wrote: [you being Matthew Jacob] >> What do you feel needs to change with FreeBSD's CAM implementation? [Matt to Søren] >It needs to be made less SCSI centric. e.g. cam/scsi/cam_xpt_scsi.c >with cam/cam_xpt.c offering only common glue. It has been on my >list of things to do for a long time, but I just haven't gotten >around to it. I think that a large part of the CAM/ATA/ATAPI >issue is that the barrier to entry for new subsystems is too high... >Someone has to do the "split it out" work first. Ok, so we need to get the following at least: /usr/src/sys/cam/ ata/ common/ scsi/ for the directories. I see that, for example, cam_xpt.c contains the quirk table, perhaps we want to put this in a seperate file for each disksystem. Of course, all SCSI functions would need to move towards scsi/ with scsi_xpt.c being a more consistent name when it comes to that directory, or when given the names in cam/ cam_xpt_scsi.c like Justin says. Going by the scsi word in the files, we have at least these files to clean up: [asmodai@celestial] (15) $ grep -i scsi * | sed 's/\:.*//' | uniq cam.c cam.h cam_ccb.h cam_debug.h cam_periph.c cam_sim.c cam_sim.h cam_xpt.c I can only help with the splitting of the files, I am SCSI/ATA clueless when it comes to programming those systems. -- Jeroen Ruigrok vd Werven/Asmodai asmodai@[wxs.nl|bart.nl|freebsd.org] Documentation nutter/C-rated Coder BSD: Technical excellence at its best The BSD Programmer's Documentation Project Abandon hope, all ye who enter here... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message