summaryrefslogtreecommitdiffstats
path: root/sys/modules
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2017-04-09 19:30:49 +0000
committertrasz <trasz@FreeBSD.org>2017-04-09 19:30:49 +0000
commitaa70bf371240fb6aba8a23474d17509423657f10 (patch)
tree39f4904a8aa5f5091dec0691b056a0523f6773eb /sys/modules
parentab082095a0af0f040623bfc836e1c92b98537b4b (diff)
downloadFreeBSD-src-aa70bf371240fb6aba8a23474d17509423657f10.zip
FreeBSD-src-aa70bf371240fb6aba8a23474d17509423657f10.tar.gz
MFC r313959:
Add USB Mass Storage CTL frontend. This makes it possible for USB OTG-capable hardware to implement device side of USB Mass Storage, ie pretend it's a flash drive. It's configured in the same way as other CTL frontends, using ctladm(8) or ctld(8). Differently from usfs(4), all the configuration can be done without rebuilding the kernel. Testing and review is welcome. Right now I'm still moving, and I don't have access to my test environment, so I'm somewhat reluctant to making larger changes to this code; on the other hand I don't want to let it sit on Phab until my testing setup is back, because I want to get it into 11.1-RELEASE. Relnotes: yes Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/usb/Makefile2
-rw-r--r--sys/modules/usb/cfumass/Makefile9
2 files changed, 10 insertions, 1 deletions
diff --git a/sys/modules/usb/Makefile b/sys/modules/usb/Makefile
index 72b123e..f1c2224 100644
--- a/sys/modules/usb/Makefile
+++ b/sys/modules/usb/Makefile
@@ -47,7 +47,7 @@ SUBDIR = usb
SUBDIR += ${_dwc_otg} ehci ${_musb} ohci uhci xhci ${_uss820dci} ${_at91dci} \
${_atmegadci} ${_avr32dci} ${_rsu} ${_rsufw} ${_saf1761otg}
SUBDIR += ${_rum} ${_run} ${_runfw} ${_uath} upgt usie ural ${_zyd} ${_urtw}
-SUBDIR += atp uhid ukbd ums udbp ufm uep wsp ugold uled
+SUBDIR += atp cfumass uhid ukbd ums udbp ufm uep wsp ugold uled
SUBDIR += ucom u3g uark ubsa ubser uchcom ucycom ufoma uftdi ugensa uipaq ulpt \
umct umcs umodem umoscom uplcom uslcom uvisor uvscom
SUBDIR += udl
diff --git a/sys/modules/usb/cfumass/Makefile b/sys/modules/usb/cfumass/Makefile
new file mode 100644
index 0000000..f659b9b
--- /dev/null
+++ b/sys/modules/usb/cfumass/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../dev/usb/storage
+KMOD= cfumass
+
+SRCS= bus_if.h device_if.h opt_bus.h opt_usb.h usb_if.h usbdevs.h \
+ cfumass.c
+
+.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud