summaryrefslogtreecommitdiffstats
path: root/sys/modules
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2007-04-07 19:40:58 +0000
committerscottl <scottl@FreeBSD.org>2007-04-07 19:40:58 +0000
commit1320f9f144d11efc5e2e12e3ab69a5a4559b06fe (patch)
treef3bff966194b6ef5bf3c76fcbd41adc4ff98caa6 /sys/modules
parent9a4581bab30ccb9819a6020d5156ef862a0613f1 (diff)
downloadFreeBSD-src-1320f9f144d11efc5e2e12e3ab69a5a4559b06fe.zip
FreeBSD-src-1320f9f144d11efc5e2e12e3ab69a5a4559b06fe.tar.gz
Add the CAM 'SG' peripheral device. This device implements a subset of the
Linux SCSI SG passthrough device API. The intention is to allow for both running of Linux apps that want to talk to /dev/sg* nodes, and to facilitate porting of apps from Linux to FreeBSD. As such, both native and linuxolator entry points and definitions are provided. Caveats: - This does not support the procfs and sysfs nodes that the Linux SG driver provides. Some Linux apps may rely on these for operation, others may only use them for informational purposes. - More ioctls need to be implemented. - Linux uses a naming scheme of "sg[a-z]" for devices, while FreeBSD uses a scheme of "sg[0-9]". Devfs aliasis (symlinks) are automatically created to link the two together. However, tools like camcontrol only see the native names. - Some operations were originally designed to return byte counts or other data directly as the syscall return value. The linuxolator doesn't appear to support this well, so this driver just punts for these cases. Now that the driver is in place, others are welcome to add missing functionality. Thanks to Roman Divacky for pushing this work along.
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/cam/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/modules/cam/Makefile b/sys/modules/cam/Makefile
index af908c7..6f88b35 100644
--- a/sys/modules/cam/Makefile
+++ b/sys/modules/cam/Makefile
@@ -22,6 +22,7 @@ SRCS+= scsi_pass.c
SRCS+= scsi_pt.c
SRCS+= scsi_sa.c
SRCS+= scsi_ses.c
+SRCS+= scsi_sg.c
SRCS+= scsi_targ_bh.c scsi_target.c
EXPORT_SYMS= YES # XXX evaluate
OpenPOWER on IntegriCloud