summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2010-10-04 23:22:03 +0000
committerhselasky <hselasky@FreeBSD.org>2010-10-04 23:22:03 +0000
commit8b107fd7595f870278d65a33754314e0d5c8e7f5 (patch)
treea84ebf0c645597e74b8c0609734352c0f8e9cfe0 /sys
parente6d1951cfd46e446dfe1b702cd30cd289cd913cc (diff)
downloadFreeBSD-src-8b107fd7595f870278d65a33754314e0d5c8e7f5.zip
FreeBSD-src-8b107fd7595f870278d65a33754314e0d5c8e7f5.tar.gz
Link the XHCI (USB 3.0 hardware driver) into the default kernel build.
Approved by: thompsa (mentor)
Diffstat (limited to 'sys')
-rw-r--r--sys/conf/files2
-rw-r--r--sys/modules/usb/Makefile2
-rw-r--r--sys/modules/usb/xhci/Makefile38
3 files changed, 41 insertions, 1 deletions
diff --git a/sys/conf/files b/sys/conf/files
index 25f5e24..c1e89b4 100644
--- a/sys/conf/files
+++ b/sys/conf/files
@@ -1748,6 +1748,8 @@ dev/usb/controller/ohci_atmelarm.c optional ohci at91rm9200
dev/usb/controller/ohci_pci.c optional ohci pci
dev/usb/controller/uhci.c optional uhci
dev/usb/controller/uhci_pci.c optional uhci pci
+dev/usb/controller/xhci.c optional xhci
+dev/usb/controller/xhci_pci.c optional xhci pci
dev/usb/controller/uss820dci.c optional uss820dci
dev/usb/controller/uss820dci_atmelarm.c optional uss820dci at91rm9200
dev/usb/controller/usb_controller.c optional usb
diff --git a/sys/modules/usb/Makefile b/sys/modules/usb/Makefile
index dc4c178..69075eb 100644
--- a/sys/modules/usb/Makefile
+++ b/sys/modules/usb/Makefile
@@ -26,7 +26,7 @@
#
SUBDIR = usb
-SUBDIR += ehci musb ohci uhci uss820dci ${_at91dci} ${_atmegadci}
+SUBDIR += ehci musb ohci uhci xhci uss820dci ${_at91dci} ${_atmegadci}
SUBDIR += rum run uath upgt ural zyd ${_urtw}
SUBDIR += atp uhid ukbd ums udbp ufm
SUBDIR += ucom u3g uark ubsa ubser uchcom ucycom ufoma uftdi ugensa uipaq ulpt \
diff --git a/sys/modules/usb/xhci/Makefile b/sys/modules/usb/xhci/Makefile
new file mode 100644
index 0000000..07dcba0
--- /dev/null
+++ b/sys/modules/usb/xhci/Makefile
@@ -0,0 +1,38 @@
+#
+# $FreeBSD$
+#
+# Copyright (c) 2010 Hans Petter Selasky. All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+# 1. Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+# 2. Redistributions in binary form must reproduce the above copyright
+# notice, this list of conditions and the following disclaimer in the
+# documentation and/or other materials provided with the distribution.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+# SUCH DAMAGE.
+#
+
+S= ${.CURDIR}/../../..
+
+.PATH: $S/dev/usb/controller
+
+KMOD= xhci
+SRCS= bus_if.h device_if.h usb_if.h \
+ opt_bus.h opt_usb.h \
+ xhci_pci.c xhci.c \
+ pci_if.h
+
+.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud