aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/cam
Commit message (Collapse)AuthorAgeFilesLines
* Add the CAM 'SG' peripheral device. This device implements a subset of theScott Long2007-04-071-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=168477
* Let modules use the kernel's opt_*.h files if built along withYaroslav Tykhiy2005-10-141-0/+2
| | | | | | | | | | | | | | | | | the kernel by wrapping all targets for fake opt_*.h files in .if defined(KERNBUILDDIR). Thus, such fake files won't be created at all if modules are built with the kernel. Some modules undergo cleanup like removing unused or unneeded options or .h files, without which they wouldn't build this way or the other. Reviewed by: ru Tested by: no binary changes in modules built alone Tested on: i386 sparc64 amd64 Notes: svn path=/head/; revision=151350
* Release n_hibma's maintainership due to his ENOTIME.Jens Schweikhardt2005-06-041-2/+1
| | | | | | | Discussed with, okayed, authorized, requested by, on behalf of: n_hibma (MAINTAINER) Notes: svn path=/head/; revision=146957
* Remove the HW_WDOG option; it serves no purpose.Dag-Erling Smørgrav2004-08-291-1/+0
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=134479
* Remove opt_da.h from the Makefile as well. Duplication of the option inNate Lawson2004-04-191-1/+0
| | | | | | | | both the Makefile and sys/conf/options is what led to this oversight. Apologies for breaking the build. Notes: svn path=/head/; revision=128431
* Use double quotes instead of single quotes for echos to build optionsBruce Evans2003-12-291-1/+1
| | | | | | | | headers as in most other modules Makefiles (5 yesterday, none now). Fixed any simple nearby style bugs (not many). Notes: svn path=/head/; revision=123962
* Fix the new DA_OLD_QUIRKS option for normal and module compiles.Nate Lawson2003-07-291-0/+1
| | | | | | | Pointed out by: bde Notes: svn path=/head/; revision=118179
* New SCSI target emulator codeNate Lawson2002-11-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=107178
* Move adding -DPC98 to CFLAGS from each modules to sys/modules/Makefile.inc.Yoshihiro Takahashi2002-11-061-4/+0
| | | | Notes: svn path=/head/; revision=106497
* Remove cam_extend.c from sources to unbreak modules.Alfred Perlstein2002-08-151-1/+1
| | | | | | | Missed by: kern/39809,njl Notes: svn path=/head/; revision=101946
* Drop <bsd.man.mk> support from <bsd.kmod.mk>.Ruslan Ermilov2002-01-111-2/+0
| | | | | | | Not objected to by: -current Notes: svn path=/head/; revision=89260
* Turn on unconditional symbol export for modules whose API isMike Smith2002-01-111-0/+2
| | | | | | | | not clear enough, will require additional analysis, or will require some input from their maintainers. Notes: svn path=/head/; revision=89245
* Add pc98 support.Yoshihiro Takahashi2001-02-101-0/+4
| | | | Notes: svn path=/head/; revision=72315
* Use a consistent style and one much closer to the rest of /usr/srcDavid E. O'Brien2001-01-061-24/+25
| | | | Notes: svn path=/head/; revision=70711
* CAM, the module: scbus, da, cd, and st wrapped in one module.Nick Hibma2000-08-131-0/+33
Make the umass driver depend on this module. Makes it possible to compile the kernel without SCSI support and load it when for example a USB floppy is conencted. Notes: svn path=/head/; revision=64621