aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/firewire
diff options
context:
space:
mode:
authorHidetoshi Shimokawa <simokawa@FreeBSD.org>2003-10-18 05:41:31 +0000
committerHidetoshi Shimokawa <simokawa@FreeBSD.org>2003-10-18 05:41:31 +0000
commite9e688e24362baf97f9383904c7323b6fe94f5ef (patch)
treea2bdcc8a21ecea578cf18a8c8f85f80462307ffc /sys/modules/firewire
parent5217c8c29351ebe5f355bc4b9ffdd838404c56e5 (diff)
downloadsrc-e9e688e24362baf97f9383904c7323b6fe94f5ef.tar.gz
src-e9e688e24362baf97f9383904c7323b6fe94f5ef.zip
Add SBP-II target mode driver.
Though this is still incomplete and has some missing features such as exclusive login and event notification, it may be enough for someone who wants to play with it. This driver is supposed to work with firewire(4), targ(4) of CAM(4) and scsi_target(8) which can be found in /usr/share/example/scsi_target. This driver doesn't require sbp(4) which implements initiator mode. Sample configuration: Kernel: (you can use modules as well) device firewire device scbus device targ device sbp_targ After reboot: # mdconfig -a -t malloc -s 10m md0 # scsi_target 0:0:0 /dev/md0 (Assuming sbp_targ0 on scbus0) You should find the 10MB HDD on FreeBSD/MacOS X/WinXP or whatever connected to the target using FireWire. Manpage is not finished yet.
Notes
Notes: svn path=/head/; revision=121186
Diffstat (limited to 'sys/modules/firewire')
-rw-r--r--sys/modules/firewire/Makefile1
-rw-r--r--sys/modules/firewire/sbp_targ/Makefile16
2 files changed, 17 insertions, 0 deletions
diff --git a/sys/modules/firewire/Makefile b/sys/modules/firewire/Makefile
index 4bce1a65a39f..a8ea55cb9ea3 100644
--- a/sys/modules/firewire/Makefile
+++ b/sys/modules/firewire/Makefile
@@ -3,6 +3,7 @@
SUBDIR =
SUBDIR += firewire
SUBDIR += sbp
+SUBDIR += sbp_targ
SUBDIR += fwe
.include <bsd.subdir.mk>
diff --git a/sys/modules/firewire/sbp_targ/Makefile b/sys/modules/firewire/sbp_targ/Makefile
new file mode 100644
index 000000000000..7a105b488c93
--- /dev/null
+++ b/sys/modules/firewire/sbp_targ/Makefile
@@ -0,0 +1,16 @@
+# $FreeBSD$
+
+# Makefile for the SBP-II Target mode
+
+.PATH: ${.CURDIR}/../../../dev/firewire
+
+KMOD = sbp_targ
+SRCS = bus_if.h device_if.h \
+ opt_cam.h opt_scsi.h \
+ sbp_targ.c sbp.h \
+ firewire.h firewirereg.h \
+ iec13213.h
+
+#CFLAGS += -g
+.include <bsd.kmod.mk>
+