Subject: CVS commit: syssrc/sys/dev/ieee1394
To: None <source-changes@netbsd.org>
From: James Chacon <jmc@netbsd.org>
List: source-changes
Date: 11/22/2002 18:29:00
Module Name:	syssrc
Committed By:	jmc
Date:		Fri Nov 22 16:29:00 UTC 2002

Modified Files:
	syssrc/sys/dev/ieee1394: TODO files.ieee1394 ieee1394reg.h sbp2.c
	    sbp2reg.h
Added Files:
	syssrc/sys/dev/ieee1394: NOTES sbp2var.h sbpscsi.c sbpscsireg.h
	    sbpscsivar.h
Removed Files:
	syssrc/sys/dev/ieee1394: fwscsi.c

Log Message:
First pass (checkpoint checkin) for firewire scsi code.

There are a number of issues here for anyone trying to use this today:

1. On my test drive the command engine on the drive seems to stall after the
   inquire is done. So the mode sense times out for a long time before
   aborting. This obviously needs to be tracked down and fixed.

   However it does do a proper inquire:

scsibus0 at sbpscsi0: 1 target, 1 lun per target
sd0 at scsibus0 target 0 lun 0: <Maxtor, 1394 storage, 60> disk fixed

2. This code is quite ugly in places as debug code was added to test things.
   Definitly needs cleanup/documention in places where it's using command
   structures. The structure for alloc'ing orbs, running them through the
   command engine and getting state back is mostly set but implementation needs
   an overhaul in places.

3. For testing I use the following config options:

fwohci* at cardbus? dev ? function ?    # IEEE1394 Controller
fw*     at fwbus?
options FW_DEBUG
options FWNODE_DEBUG
options P1212_DEBUG
options SBP2_DEBUG
options SBPSCSI_DEBUG
fwnode* at fwbus?
sbpscsi* at fwnode?
scsibus* at sbpscsi?


To generate a diff of this commit:
cvs rdiff -r0 -r1.1 syssrc/sys/dev/ieee1394/NOTES \
    syssrc/sys/dev/ieee1394/sbp2var.h syssrc/sys/dev/ieee1394/sbpscsi.c \
    syssrc/sys/dev/ieee1394/sbpscsireg.h syssrc/sys/dev/ieee1394/sbpscsivar.h
cvs rdiff -r1.8 -r1.9 syssrc/sys/dev/ieee1394/TODO
cvs rdiff -r1.6 -r1.7 syssrc/sys/dev/ieee1394/files.ieee1394
cvs rdiff -r1.9 -r0 syssrc/sys/dev/ieee1394/fwscsi.c
cvs rdiff -r1.12 -r1.13 syssrc/sys/dev/ieee1394/ieee1394reg.h
cvs rdiff -r1.1 -r1.2 syssrc/sys/dev/ieee1394/sbp2.c \
    syssrc/sys/dev/ieee1394/sbp2reg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.