Current sbp_targ diff

Sean Bruno sbruno at miralink.com
Thu May 22 17:34:09 UTC 2008


I've been quiet lately but I had some time at BSDCAN to cleanup some of 
my firewire sbp_targ diffs and would like to get them out for review.

1.  I've added a new XPORT_FW type to sys/cam/cam_ccb.h for firewire.  I 
have added a couple of patches from RELENG_7 to my tree, but they can be 
ignored:
Index: cam/cam_ccb.h
===================================================================
--- cam/cam_ccb.h       (.../FreeBSD_RELENG_6_13APR07/src/sys)  
(revision 5436)
+++ cam/cam_ccb.h       (.../miralink.FreeBSD.6/src/sys)        
(revision 5436)
@@ -226,14 +223,15 @@
        XPORT_SSA,      /* Serial Storage Architecture */
        XPORT_USB,      /* Universal Serial Bus */
        XPORT_PPB,      /* Parallel Port Bus */
-       XPORT_ATA       /* AT Attachment */
+       XPORT_ATA,      /* AT Attachment */
+       XPORT_SAS,      /* Serial Attached SCSI */
+       XPORT_FW        /* FireWire 1394a/b */
 } cam_xport;

2.  I've added a new file to sbp_targ(fwcsr.c) that currently only 
handles the Busy Timeout register, but will undoubtably handle more in 
the future:
Index: modules/firewire/firewire/Makefile
===================================================================
--- modules/firewire/firewire/Makefile  
(.../FreeBSD_RELENG_6_13APR07/src/sys)  (revision 5436)
+++ modules/firewire/firewire/Makefile  
(.../miralink.FreeBSD.6/src/sys)        (revision 5436)
@@ -9,7 +9,8 @@
          firewire.c firewire.h firewire_phy.h firewirereg.h \
          fwohci.c fwohci_pci.c fwohcireg.h fwohcivar.h \
          iec13213.h iec68113.h \
-         fwcrom.c fwdev.c fwmem.c fwmem.h fwdma.c fwdma.h
+         fwcrom.c fwdev.c fwmem.c fwmem.h fwdma.c fwdma.h \
+         fwcsr.c fwcsr.h

 .include <bsd.kmod.mk>
Index: conf/files
===================================================================
--- conf/files  (.../FreeBSD_RELENG_6_13APR07/src/sys)  (revision 5436)
+++ conf/files  (.../miralink.FreeBSD.6/src/sys)        (revision 5436)
@@ -617,6 +617,7 @@
 dev/fe/if_fe_pccard.c          optional fe pccard
 dev/firewire/firewire.c                optional firewire
 dev/firewire/fwcrom.c          optional firewire
+dev/firewire/fwcsr.c           optional firewire
 dev/firewire/fwdev.c           optional firewire
 dev/firewire/fwdma.c           optional firewire
 dev/firewire/fwmem.c           optional firewire


3.  Finally, the code.  I'm attaching a diff, however it's pretty 
intrusive so I'm also placing a tar ball of the code on my web server at:
http://www.consultcsg.com/firewire_sbp-targ.tgz so you can review the 
entirety of the code at your leisure.


I am still working on the code at this time and will be generating even 
more intrusive patches to support SBP-2 and possibly SBP-3 soon-ish.

-- 
Sean Bruno
MiraLink Corporation
6015 NE 80th Ave, Ste 100
Portland, OR 97218
Phone 503-621-5143
Fax 503-621-5199

-------------- next part --------------
A non-text attachment was scrubbed...
Name: firewire.diff
Type: text/x-patch
Size: 50598 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-firewire/attachments/20080522/42a1de6d/firewire.bin


More information about the freebsd-firewire mailing list