Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Jul 2000 21:26:06 +0200
From:      Jeroen Ruigrok/Asmodai <asmodai@wxs.nl>
To:        "Justin T. Gibbs" <gibbs@plutotech.com>
Cc:        mjacob@feral.com, scsi@freebsd.org, sos@freebsd.org
Subject:   Re: CAM layer
Message-ID:  <20000729212605.A27295@daemon.ninth-circle.org>
In-Reply-To: <200007241900.NAA17859@pluto.plutotech.com>; from gibbs@plutotech.com on Mon, Jul 24, 2000 at 01:01:24PM -0600
References:  <200007241900.NAA17859@pluto.plutotech.com>

next in thread | previous in thread | raw e-mail | index | archive | help
-On [20000724 22:00], Justin T. Gibbs (gibbs@plutotech.com) wrote:
>In article <Pine.BSF.4.10.10007231355290.54040-100000@beppo.feral.com> 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 <http://home.wxs.nl/~asmodai>;
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000729212605.A27295>