summaryrefslogtreecommitdiffstats
path: root/sys/modules
diff options
context:
space:
mode:
authorn_hibma <n_hibma@FreeBSD.org>2000-08-13 18:49:40 +0000
committern_hibma <n_hibma@FreeBSD.org>2000-08-13 18:49:40 +0000
commitcbb74c17bdde9e04efd4115114940217143abe93 (patch)
treef008fa927436b05de6cb7f877e62d71234d3d789 /sys/modules
parenta6c3c8dbfbbbdbe8e9dc451f059eec365e4825a1 (diff)
downloadFreeBSD-src-cbb74c17bdde9e04efd4115114940217143abe93.zip
FreeBSD-src-cbb74c17bdde9e04efd4115114940217143abe93.tar.gz
CAM, the module: scbus, da, cd, and st wrapped in one module.
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.
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/Makefile2
-rw-r--r--sys/modules/cam/Makefile33
2 files changed, 34 insertions, 1 deletions
diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index 6bbfbb6..2747785 100644
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@ -7,7 +7,7 @@ _randomdev= randomdev
.endif
SUBDIR= 3dfx accf_data accf_http agp aha amr an aue \
- ccd cd9660 coda cue dc fdesc fxp if_disc if_ef \
+ cam ccd cd9660 coda cue dc fdesc fxp if_disc if_ef \
if_ppp if_sl if_tap if_tun ipfilter ipfw ispfw joy kernfs kue \
md mfs mii mlx msdos ncp netgraph nfs ntfs nullfs \
nwfs oldcard pccard pcic portal procfs ${_randomdev} \
diff --git a/sys/modules/cam/Makefile b/sys/modules/cam/Makefile
new file mode 100644
index 0000000..2075d39
--- /dev/null
+++ b/sys/modules/cam/Makefile
@@ -0,0 +1,33 @@
+# $FreeBSD$
+
+MAINTAINER = n_hibma@freebsd.org
+S = ${.CURDIR}/../..
+
+.PATH: $S/cam $S/cam/scsi
+KMOD = cam
+
+# See sys/conf/options for the flags that go into the different opt_*.h files.
+SRCS = opt_cam.h
+SRCS += opt_scsi.h
+SRCS += opt_cd.h
+SRCS += opt_hw_wdog.h
+SRCS += opt_pt.h
+SRCS += opt_sa.h
+SRCS += opt_ses.h
+SRCS += device_if.h bus_if.h
+SRCS += cam.c cam_extend.c cam_periph.c cam_queue.c
+SRCS += cam_sim.c cam_xpt.c
+SRCS += scsi_all.c scsi_cd.c scsi_ch.c
+SRCS += scsi_da.c
+SRCS += scsi_pass.c
+SRCS += scsi_pt.c
+SRCS += scsi_sa.c
+SRCS += scsi_ses.c
+SRCS += scsi_targ_bh.c scsi_target.c
+
+NOMAN =
+
+opt_scsi.h:
+ echo '#define SCSI_DELAY 15000' > opt_scsi.h
+
+.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud