I've been discussing this patch with Eric and Doug, and now its time
to get a broader opinion.
This patch is an improvement over my previous one, mainly trying to
not disturb lowlevel host drivers, and add some Docbook documentation
groundwork. The Docbook stuff was done by Douglas Gilbert.
Its pretty big due to the splitup of scsi.c into scsi_command.c, and
we may have to split it up if/when it goes into the kernel.
One thing this patch does that wasn't in my previous one, is to stop
using the word device when referring to the upper layers. Douglas
sugested to only use "device" when referring to something with a
target:id:lun. This may or may not be something people like.
Ohh and btw, we need to write a lot more documentation.
A changelog has been attached.
Patch is available from
http://tlan.kernel.dk/patches/scsi_feb09.diff.gz
Any comments are welcome.
Have a nice weekend.
--
Torben Mathiasen <[EMAIL PROTECTED]>
Linux ThunderLAN maintainer
http://opensource.compaq.com
Current patch (5 Feb 2001):
- Move command related routines out of scsi.c and into scsi_command.c
- Get rid of hosts.c and hosts.h. All scsi data structures now reside
in scsi.h. Drivers (lowlevel & upper) shouldn't include hosts.h anymmore.
- Removed references to USE_STATIC_SCSI_MEMORY as it wasn't being used. Maybe
it should be reimplemented?
- Changed loops for removal of scsi_host_no_list hosts.
- Cleaned up #ifdef MODULE directives.
- Changed some comments to reflect current design.
- Added hosts.h wrapper.
- Changed definiton of device to include describe something which has
a bus:target:lun. "upper" is now used for the higher layers
(sd/st/sr/sg).
- Merged Douglas' DocBook patch.
Notes:
scsi_do_cmd : Seems to be obsolete. Currently only used by Compaq
cpqfcTSinit.c and gdth