head	1.9;
access;
symbols;
locks; strict;
comment	@# @;


1.9
date	2009.02.23.18.32.59;	author thompsa;	state dead;
branches;
next	1.8;

1.8
date	2009.02.09.22.38.55;	author thompsa;	state Exp;
branches;
next	1.7;

1.7
date	2009.01.28.11.04.27;	author glebius;	state Exp;
branches;
next	1.6;

1.6
date	2009.01.28.08.39.48;	author imp;	state Exp;
branches;
next	1.5;

1.5
date	2009.01.04.00.12.01;	author alfred;	state Exp;
branches;
next	1.4;

1.4
date	2008.12.27.12.23.22;	author weongyo;	state Exp;
branches;
next	1.3;

1.3
date	2008.11.25.09.17.01;	author bz;	state Exp;
branches;
next	1.2;

1.2
date	2008.11.25.08.04.40;	author alfred;	state Exp;
branches;
next	1.1;

1.1
date	2008.11.04.02.31.03;	author alfred;	state Exp;
branches;
next	;


desc
@@


1.9
log
@SVN rev 188943 on 2009-02-23 18:32:59Z by thompsa

Hook up new USB modules.
@
text
@#
# $FreeBSD: src/sys/modules/usb2/Makefile,v 1.8 2009/02/09 22:38:55 thompsa Exp $
#
# Copyright (c) 2008 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.
#

SUBDIR =
SUBDIR += bluetooth
SUBDIR += bluetooth_ng
SUBDIR += bluetooth_fw
SUBDIR += controller
.if ${MACHINE_ARCH} == "arm"
SUBDIR += controller_at91dci
.endif
SUBDIR += controller_ehci
SUBDIR += controller_musb
SUBDIR += controller_ohci
SUBDIR += controller_uhci
SUBDIR += controller_uss820dci
SUBDIR += core
SUBDIR += ethernet
SUBDIR += ethernet_aue
SUBDIR += ethernet_axe
SUBDIR += ethernet_cdce
SUBDIR += ethernet_cue
SUBDIR += ethernet_dav
SUBDIR += ethernet_kue
SUBDIR += ethernet_rue
SUBDIR += image
SUBDIR += input
SUBDIR += input_hid
SUBDIR += input_kbd
SUBDIR += input_ms
SUBDIR += misc
SUBDIR += misc_dbp
SUBDIR += misc_fm
#SUBDIR += ndis
SUBDIR += quirk
SUBDIR += scanner
SUBDIR += serial
SUBDIR += serial_3g
SUBDIR += serial_ark
SUBDIR += serial_bsa
SUBDIR += serial_bser
SUBDIR += serial_chcom
SUBDIR += serial_cycom
SUBDIR += serial_foma
SUBDIR += serial_ftdi
SUBDIR += serial_gensa
SUBDIR += serial_ipaq
SUBDIR += serial_lpt
SUBDIR += serial_mct
SUBDIR += serial_modem
SUBDIR += serial_moscom
SUBDIR += serial_plcom
SUBDIR += serial_slcom
SUBDIR += serial_visor
SUBDIR += serial_vscom
SUBDIR += sound
SUBDIR += storage
SUBDIR += storage_ata
SUBDIR += storage_fs
SUBDIR += storage_mass
SUBDIR += storage_rio
SUBDIR += template
SUBDIR += wlan
SUBDIR += wlan_ral
SUBDIR += wlan_rum
SUBDIR += wlan_zyd

.include <bsd.subdir.mk>
@


1.8
log
@SVN rev 188423 on 2009-02-09 22:38:55Z by thompsa

Hook uslcom2 up to the build.
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.7
log
@SVN rev 187816 on 2009-01-28 11:04:27Z by glebius

Fix typo in last commit.
@
text
@d77 1
@


1.6
log
@SVN rev 187813 on 2009-01-28 08:39:48Z by imp

at91dci isn't useful except on arm.
@
text
@d35 1
a35 1
#endif
@


1.5
log
@SVN rev 186730 on 2009-01-04 00:12:01Z by alfred

Sync with usb4bsd:

src/lib/libusb20/libusb20_desc.c

Make "libusb20_desc_foreach()" more readable.

src/sys/dev/usb2/controller/*.[ch]
src/sys/dev/usb2/core/*.[ch]

Implement support for USB power save for all HC's.

Implement support for Big-endian EHCI.

Move Huawei quirks back into "u3g" driver.

Improve device enumeration.

src/sys/dev/usb2/ethernet/*[ch]

Patches for supporting new AXE Gigabit chipset.

src/sys/dev/usb2/serial/*[ch]

Fix IOCTL return code.

src/sys/dev/usb2/wlan/*[ch]

Sync with old USB stack.

Submitted by: hps
@
text
@d33 1
d35 1
a91 1

@


1.4
log
@SVN rev 186514 on 2008-12-27 12:23:22Z by weongyo

unbreak the build.  Decoupled the USB2's NDIS build from the default
build.

Pointy hat to:  me
@
text
@d60 1
a60 1
#SUBDIR += serial_3g
@


1.3
log
@SVN rev 185291 on 2008-11-25 09:17:01Z by bz

Unbreak the build until alfred@@ is back to fix it correctly.
For now disconnect the nonexistent serial_3g.
@
text
@d56 1
a56 1
SUBDIR += ndis
@


1.2
log
@SVN rev 185290 on 2008-11-25 08:04:40Z by alfred

src/lib/libusb20/libusb20_compat01.c

Fix some issues about re-scanning of the devices.

src/lib/libusb20/libusb20_ugen20.c

Fix issue about libusb20 having to release the
USB transfers before doing a SET_CONFIG, else
the kernel will kill the file handle.

src/sys/dev/usb2/core/usb2_device.
src/sys/dev/usb2/core/usb2_generic.c
src/sys/dev/usb2/core/usb2_generic.h

Add support for U3G devices.
Improve and cleanup FIFO free handling.
Improve device re-enumeration.

src/sys/dev/usb2/core/usb2_msctest.c
src/sys/dev/usb2/core/usb2_msctest.h

Fix some problems in the USB Mass Storage Test.
Add Huawei vendor specific quirks.

src/sys/dev/usb2/core/usb2_request.c

Improve device re-enumeration.

src/sys/dev/usb2/ethernet/if_aue2.c
src/sys/dev/usb2/include/usb2_devid.h
src/sys/dev/usb2/include/usb2_devtable.h
src/sys/dev/usb2/quirk/usb2_quirk.c

Integrate changes from the old USB driver.

src/sys/dev/usb2/include/usb2_standard.h

Add definition of USB3.0 structures from USB.org.

src/sys/dev/usb2/serial/u3g2.c
src/sys/dev/usb2/serial/ugensa2.c
src/sys/modules/usb2/Makefile
src/sys/modules/usb2/serial_3g/Makefile

Import U3G driver.

Submitted by:	Hans Petter Selasky (usb4bsd)
@
text
@d60 1
a60 1
SUBDIR += serial_3g
@


1.1
log
@SVN rev 184610 on 2008-11-04 02:31:03Z by alfred

Bring in USB4BSD, Hans Petter Selasky rework of the USB stack
that includes significant features and SMP safety.

This commit includes a more or less complete rewrite of the *BSD USB
stack, including Host Controller and Device Controller drivers and
updating all existing USB drivers to use the new USB API:

1) A brief feature list:

  - A new and mutex enabled USB API.

  - Many USB drivers are now running Giant free.

  - Linux USB kernel compatibility layer.

  - New UGEN backend and libusb library, finally solves the "driver
    unloading" problem. The new BSD licensed libusb20 library is fully
    compatible with libusb-0.1.12 from sourceforge.

  - New "usbconfig" utility, for easy configuration of USB.

  - Full support for Split transactions, which means you can use your
    full speed USB audio device on a high speed USB HUB.

  - Full support for HS ISOC transactions, which makes writing drivers
    for various HS webcams possible, for example.

  - Full support for USB on embedded platforms, mostly cache flushing
    and buffer invalidating stuff.

  - Safer parsing of USB descriptors.

  - Autodetect of annoying USB install disks.

  - Support for USB device side mode, also called USB gadget mode,
    using the same API like the USB host side. In other words the new
    USB stack is symmetric with regard to host and device side.

  - Support for USB transfers like I/O vectors, means more throughput
    and less interrupts.

  - ... see the FreeBSD quarterly status reports under "USB project"

2) To enable the driver in the default kernel build:

2.a) Remove all existing USB device options from your kernel config
file.

2.b) Add the following USB device options to your kernel configuration
file:

# USB core support
device          usb2_core

# USB controller support
device		usb2_controller
device		usb2_controller_ehci
device		usb2_controller_ohci
device		usb2_controller_uhci

# USB mass storage support
device		usb2_storage
device		usb2_storage_mass

# USB ethernet support, requires miibus
device		usb2_ethernet
device		usb2_ethernet_aue
device		usb2_ethernet_axe
device		usb2_ethernet_cdce
device		usb2_ethernet_cue
device		usb2_ethernet_kue
device		usb2_ethernet_rue
device		usb2_ethernet_dav

# USB wireless LAN support
device		usb2_wlan
device		usb2_wlan_rum
device		usb2_wlan_ral
device		usb2_wlan_zyd

# USB serial device support
device		usb2_serial
device		usb2_serial_ark
device		usb2_serial_bsa
device		usb2_serial_bser
device		usb2_serial_chcom
device		usb2_serial_cycom
device		usb2_serial_foma
device		usb2_serial_ftdi
device		usb2_serial_gensa
device		usb2_serial_ipaq
device		usb2_serial_lpt
device		usb2_serial_mct
device		usb2_serial_modem
device		usb2_serial_moscom
device		usb2_serial_plcom
device		usb2_serial_visor
device		usb2_serial_vscom

# USB bluetooth support
device		usb2_bluetooth
device		usb2_bluetooth_ng

# USB input device support
device		usb2_input
device		usb2_input_hid
device		usb2_input_kbd
device		usb2_input_ms

# USB sound and MIDI device support
device		usb2_sound

2) To enable the driver at runtime:

2.a) Unload all existing USB modules. If USB is compiled into the
kernel then you might have to build a new kernel.

2.b) Load the "usb2_xxx.ko" modules under /boot/kernel having the same
base name like the kernel device option.

Submitted by: Hans Petter Selasky hselasky at c2i dot net
Reviewed by: imp, alfred
@
text
@d60 1
@

