freebsd-skq/sys/cam/scsi
Nate Lawson c38b150ae4 New SCSI target emulator code
This code allows a user program to enable target mode on a SIM and
then emulate any number of devices (disks, tape drives, etc.)  All
decisions about device behavior (UA, CA, inquiry response) are left
to the usermode program and the kernel driver is merely a conduit
for CCBs.  This enables multiple concurrent target emulators, each
using its own backing store and IO model.

Also included is a user program that emulates a disk (RBC) using a
file as a backing store.  This provides functionality similar to
md(4) at the CAM layer.

Code has been tested on ahc(4) and should also work on isp(4) (and
other SIMs that gain target mode support).  It is a complete rewrite
of /sys/cam/scsi_target* and /usr/share/examples/scsi_target.

Design, comments from:	gibbs
Supported by:		Cryptography Research
Approved by:		re
2002-11-22 22:55:51 +00:00
..
scsi_all.c A SCSI_DELAY of zero is a legitimate value to have. 2002-09-23 04:56:35 +00:00
scsi_all.h Fix the location of the length bytes in the 12-byte read/write CDB 2002-10-08 17:12:44 +00:00
scsi_cd.c * Add CDRIOC{READ,WRITE}SPEED ioctls to cd(4). Units are in KB/sec. 2002-10-18 22:03:39 +00:00
scsi_cd.h * Add CDRIOC{READ,WRITE}SPEED ioctls to cd(4). Units are in KB/sec. 2002-10-18 22:03:39 +00:00
scsi_ch.c Be consistent about "static" functions: if the function is marked 2002-09-28 17:15:38 +00:00
scsi_ch.h
scsi_da.c Quirk for HP 315 USB Digital Camera 2002-10-17 18:04:41 +00:00
scsi_da.h
scsi_dvcfg.h
scsi_iu.h scsi_message.h: 2002-06-05 19:05:01 +00:00
scsi_low_pisa.c
scsi_low_pisa.h Remove __P. 2002-03-20 08:56:31 +00:00
scsi_low.c Panic message should end with \n. 2002-11-14 05:03:11 +00:00
scsi_low.h use __packed. 2002-09-23 18:54:32 +00:00
scsi_message.h scsi_message.h: 2002-06-05 19:05:01 +00:00
scsi_pass.c Remove usage of cam_extend.c, replace with dev->si_drv1 2002-08-15 20:54:03 +00:00
scsi_pass.h
scsi_pt.c Remove usage of cam_extend.c, replace with dev->si_drv1 2002-08-15 20:54:03 +00:00
scsi_pt.h
scsi_sa.c Panic message should end with \n. 2002-11-14 05:03:11 +00:00
scsi_sa.h
scsi_ses.c Fix instances of macros with improperly parenthasized arguments. 2002-11-09 12:55:07 +00:00
scsi_ses.h
scsi_targ_bh.c Remove usage of cam_extend.c, replace with dev->si_drv1 2002-08-15 20:54:03 +00:00
scsi_target.c New SCSI target emulator code 2002-11-22 22:55:51 +00:00
scsi_targetio.h New SCSI target emulator code 2002-11-22 22:55:51 +00:00