summaryrefslogtreecommitdiffstats
path: root/sys/modules/firewire
diff options
context:
space:
mode:
authorsimokawa <simokawa@FreeBSD.org>2003-10-18 05:41:31 +0000
committersimokawa <simokawa@FreeBSD.org>2003-10-18 05:41:31 +0000
commit8b6083e5fde0fed3e65fe960fe837878e7f57e2a (patch)
treea2bdcc8a21ecea578cf18a8c8f85f80462307ffc /sys/modules/firewire
parentf8104f75ffa214a0ff2049118e6a36c7707510eb (diff)
downloadFreeBSD-src-8b6083e5fde0fed3e65fe960fe837878e7f57e2a.zip
FreeBSD-src-8b6083e5fde0fed3e65fe960fe837878e7f57e2a.tar.gz
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.
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 4bce1a6..a8ea55c 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 0000000..7a105b4
--- /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>
+
OpenPOWER on IntegriCloud