1188943Sthompsa#
2188943Sthompsa# $FreeBSD$
3188943Sthompsa#
4188943Sthompsa# Copyright (c) 2008 Hans Petter Selasky. All rights reserved.
5188943Sthompsa#
6188943Sthompsa# Redistribution and use in source and binary forms, with or without
7188943Sthompsa# modification, are permitted provided that the following conditions
8188943Sthompsa# are met:
9188943Sthompsa# 1. Redistributions of source code must retain the above copyright
10188943Sthompsa#    notice, this list of conditions and the following disclaimer.
11188943Sthompsa# 2. Redistributions in binary form must reproduce the above copyright
12188943Sthompsa#    notice, this list of conditions and the following disclaimer in the
13188943Sthompsa#    documentation and/or other materials provided with the distribution.
14188943Sthompsa#
15188943Sthompsa# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
16188943Sthompsa# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17188943Sthompsa# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18188943Sthompsa# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
19188943Sthompsa# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20188943Sthompsa# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21188943Sthompsa# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22188943Sthompsa# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23188943Sthompsa# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24188943Sthompsa# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25188943Sthompsa# SUCH DAMAGE.
26188943Sthompsa#
27188943Sthompsa
28230972Srmh.include <bsd.own.mk>
29230972Srmh
30230972Srmh# Modules that include binary-only blobs of microcode should be selectable by
31230972Srmh# MK_SOURCELESS_UCODE option (see below).
32230972Srmh
33188943SthompsaSUBDIR = usb
34253789SrpauloSUBDIR += ${_dwc_otg} ehci ${_musb} ohci uhci xhci ${_uss820dci} ${_at91dci} \
35253790Srpaulo	  ${_atmegadci} ${_avr32dci} ${_rsu} ${_rsufw}
36253790SrpauloSUBDIR += ${_rum} ${_run} ${_runfw} ${_uath} upgt usie ural ${_zyd} ${_urtw} 
37253790SrpauloSUBDIR += ${_urtwn} ${_urtwnfw}
38219059SglebiusSUBDIR += atp uhid ukbd ums udbp ufm uep
39198256SthompsaSUBDIR += ucom u3g uark ubsa ubser uchcom ucycom ufoma uftdi ugensa uipaq ulpt \
40222696Shselasky	  umct umcs umodem umoscom uplcom uslcom uvisor uvscom
41246195ShselaskySUBDIR += uether aue axe cdce cue ${_kue} mos rue smsc udav uhso ipheth
42188943SthompsaSUBDIR += usfs umass urio
43188943SthompsaSUBDIR += quirk template
44253544ShselaskySUBDIR += ${_g_audio} ${_g_keyboard} ${_g_modem} ${_g_mouse}
45188943Sthompsa
46253544Shselasky.if ${MK_USB_GADGET_EXAMPLES} == "yes"
47253544Shselasky_g_audio=	g_audio
48253544Shselasky_g_keyboard=	g_keyboard
49253544Shselasky_g_modem=	g_modem
50253544Shselasky_g_mouse=	g_mouse
51253544Shselasky.endif
52253544Shselasky
53230972Srmh.if ${MK_SOURCELESS_UCODE} != "no"
54230972Srmh_rum=		rum
55230972Srmh_uath=		uath
56230972Srmh_zyd=		zyd
57230972Srmh_kue=		kue
58253790Srpaulo_urtwn=		urtwn
59253790Srpaulo_urtwnfw=	urtwnfw
60253790Srpaulo_run=		run
61253790Srpaulo_runfw=		runfw
62253790Srpaulo_rsu=		rsu
63253790Srpaulo_rsufw=		rsufw
64230972Srmh.endif
65230972Srmh
66211690Simp.if ${MACHINE_CPUARCH} == "amd64"
67193195Sweongyo_urtw=		urtw
68193195Sweongyo.endif
69193195Sweongyo
70211690Simp.if ${MACHINE_CPUARCH} == "arm"
71188943Sthompsa_at91dci=	at91dci
72188943Sthompsa_atmegadci=	atmegadci
73232540Shselasky_dwc_otg=	dwc_otg
74232540Shselasky_musb=		musb
75232540Shselasky_uss820dci=	uss820dci
76188943Sthompsa.endif
77188943Sthompsa
78211690Simp.if ${MACHINE_CPUARCH} == "i386"
79193195Sweongyo_urtw=		urtw
80193195Sweongyo.endif
81193195Sweongyo
82228483Shselasky.if ${MACHINE_CPUARCH} == "avr32"
83228483Shselasky_avr32dci=	avr32dci
84228483Shselasky.endif
85228483Shselasky
86188943Sthompsa.include <bsd.subdir.mk>
87