History log of /freebsd-11-stable/sys/dev/usb/serial/u3g.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 359259 23-Mar-2020 hselasky

MFC r359031:
Add new USB device ID to u3g driver.

Submitted by: super_gromit@hotmail.com
PR: 244798
Sponsored by: Mellanox Technologies


# 359258 23-Mar-2020 hselasky

MFC r324607:
Support the D-Link DWM-222 LTE Dongle

Submitted by: Daniel H?nschke <jailedemon@googlemail.com>


# 342036 13-Dec-2018 hselasky

MFC r334648:
Add support for SIMCom SIM7600E.

PR: 226066
Sponsored by: MSI/FUNTORO


# 331176 19-Mar-2018 eadler

MFC r328162:

Improve support for USB based 3G/4G/5G dongles from Huawei.

PR: 192345


# 329303 15-Feb-2018 hselasky

MFC r328163:
Add new USB ID to U3G driver.

PR: 134299
Sponsored by: Mellanox Technologies


# 328888 05-Feb-2018 n_hibma

Merge r327951

Add IDs for Quectel EC25.

Submitted by: Samuel Crookes


# 314501 01-Mar-2017 ian

MFC r303347, r303350, r303351, r303353:

Translate modem status reg bits from ns16550 to SER_* values used by the
tty layer.

Annotate the usb-serial drivers which always return 0 for line status,
so that it'll be easier to find and fix them in the future.

Also annotate a switch case fall-through per style(9).


# 306956 10-Oct-2016 hselasky

MFC r306478:
Add new USB ID.

While at it remove some whitespaces.

Submitted by: Jose Luis Duran <jlduran@gmail.com>
PR: 213110


# 306369 27-Sep-2016 loos

MFC r306205:

Add the ID for the Huawei ME909S LTE modem.

Submitted by: svenauhagen at github
Sponsored by: Rubicon Communications, LLC (Netgate)


# 302408 07-Jul-2016 gjb

Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle.
Prune svn:mergeinfo from the new branch, as nothing has been merged
here.

Additional commits post-branch will follow.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


/freebsd-11-stable/MAINTAINERS
/freebsd-11-stable/cddl
/freebsd-11-stable/cddl/contrib/opensolaris
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/print
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/zfs
/freebsd-11-stable/cddl/contrib/opensolaris/lib/libzfs
/freebsd-11-stable/contrib/amd
/freebsd-11-stable/contrib/apr
/freebsd-11-stable/contrib/apr-util
/freebsd-11-stable/contrib/atf
/freebsd-11-stable/contrib/binutils
/freebsd-11-stable/contrib/bmake
/freebsd-11-stable/contrib/byacc
/freebsd-11-stable/contrib/bzip2
/freebsd-11-stable/contrib/com_err
/freebsd-11-stable/contrib/compiler-rt
/freebsd-11-stable/contrib/dialog
/freebsd-11-stable/contrib/dma
/freebsd-11-stable/contrib/dtc
/freebsd-11-stable/contrib/ee
/freebsd-11-stable/contrib/elftoolchain
/freebsd-11-stable/contrib/elftoolchain/ar
/freebsd-11-stable/contrib/elftoolchain/brandelf
/freebsd-11-stable/contrib/elftoolchain/elfdump
/freebsd-11-stable/contrib/expat
/freebsd-11-stable/contrib/file
/freebsd-11-stable/contrib/gcc
/freebsd-11-stable/contrib/gcclibs/libgomp
/freebsd-11-stable/contrib/gdb
/freebsd-11-stable/contrib/gdtoa
/freebsd-11-stable/contrib/groff
/freebsd-11-stable/contrib/ipfilter
/freebsd-11-stable/contrib/ldns
/freebsd-11-stable/contrib/ldns-host
/freebsd-11-stable/contrib/less
/freebsd-11-stable/contrib/libarchive
/freebsd-11-stable/contrib/libarchive/cpio
/freebsd-11-stable/contrib/libarchive/libarchive
/freebsd-11-stable/contrib/libarchive/libarchive_fe
/freebsd-11-stable/contrib/libarchive/tar
/freebsd-11-stable/contrib/libc++
/freebsd-11-stable/contrib/libc-vis
/freebsd-11-stable/contrib/libcxxrt
/freebsd-11-stable/contrib/libexecinfo
/freebsd-11-stable/contrib/libpcap
/freebsd-11-stable/contrib/libstdc++
/freebsd-11-stable/contrib/libucl
/freebsd-11-stable/contrib/libxo
/freebsd-11-stable/contrib/llvm
/freebsd-11-stable/contrib/llvm/projects/libunwind
/freebsd-11-stable/contrib/llvm/tools/clang
/freebsd-11-stable/contrib/llvm/tools/lldb
/freebsd-11-stable/contrib/llvm/tools/llvm-dwarfdump
/freebsd-11-stable/contrib/llvm/tools/llvm-lto
/freebsd-11-stable/contrib/mdocml
/freebsd-11-stable/contrib/mtree
/freebsd-11-stable/contrib/ncurses
/freebsd-11-stable/contrib/netcat
/freebsd-11-stable/contrib/ntp
/freebsd-11-stable/contrib/nvi
/freebsd-11-stable/contrib/one-true-awk
/freebsd-11-stable/contrib/openbsm
/freebsd-11-stable/contrib/openpam
/freebsd-11-stable/contrib/openresolv
/freebsd-11-stable/contrib/pf
/freebsd-11-stable/contrib/sendmail
/freebsd-11-stable/contrib/serf
/freebsd-11-stable/contrib/sqlite3
/freebsd-11-stable/contrib/subversion
/freebsd-11-stable/contrib/tcpdump
/freebsd-11-stable/contrib/tcsh
/freebsd-11-stable/contrib/tnftp
/freebsd-11-stable/contrib/top
/freebsd-11-stable/contrib/top/install-sh
/freebsd-11-stable/contrib/tzcode/stdtime
/freebsd-11-stable/contrib/tzcode/zic
/freebsd-11-stable/contrib/tzdata
/freebsd-11-stable/contrib/unbound
/freebsd-11-stable/contrib/vis
/freebsd-11-stable/contrib/wpa
/freebsd-11-stable/contrib/xz
/freebsd-11-stable/crypto/heimdal
/freebsd-11-stable/crypto/openssh
/freebsd-11-stable/crypto/openssl
/freebsd-11-stable/gnu/lib
/freebsd-11-stable/gnu/usr.bin/binutils
/freebsd-11-stable/gnu/usr.bin/cc/cc_tools
/freebsd-11-stable/gnu/usr.bin/gdb
/freebsd-11-stable/lib/libc/locale/ascii.c
/freebsd-11-stable/sys/cddl/contrib/opensolaris
/freebsd-11-stable/sys/contrib/dev/acpica
/freebsd-11-stable/sys/contrib/ipfilter
/freebsd-11-stable/sys/contrib/libfdt
/freebsd-11-stable/sys/contrib/octeon-sdk
/freebsd-11-stable/sys/contrib/x86emu
/freebsd-11-stable/sys/contrib/xz-embedded
/freebsd-11-stable/usr.sbin/bhyve/atkbdc.h
/freebsd-11-stable/usr.sbin/bhyve/bhyvegc.c
/freebsd-11-stable/usr.sbin/bhyve/bhyvegc.h
/freebsd-11-stable/usr.sbin/bhyve/console.c
/freebsd-11-stable/usr.sbin/bhyve/console.h
/freebsd-11-stable/usr.sbin/bhyve/pci_fbuf.c
/freebsd-11-stable/usr.sbin/bhyve/pci_xhci.c
/freebsd-11-stable/usr.sbin/bhyve/pci_xhci.h
/freebsd-11-stable/usr.sbin/bhyve/ps2kbd.c
/freebsd-11-stable/usr.sbin/bhyve/ps2kbd.h
/freebsd-11-stable/usr.sbin/bhyve/ps2mouse.c
/freebsd-11-stable/usr.sbin/bhyve/ps2mouse.h
/freebsd-11-stable/usr.sbin/bhyve/rfb.c
/freebsd-11-stable/usr.sbin/bhyve/rfb.h
/freebsd-11-stable/usr.sbin/bhyve/sockstream.c
/freebsd-11-stable/usr.sbin/bhyve/sockstream.h
/freebsd-11-stable/usr.sbin/bhyve/usb_emul.c
/freebsd-11-stable/usr.sbin/bhyve/usb_emul.h
/freebsd-11-stable/usr.sbin/bhyve/usb_mouse.c
/freebsd-11-stable/usr.sbin/bhyve/vga.c
/freebsd-11-stable/usr.sbin/bhyve/vga.h
# 298300 19-Apr-2016 pfg

dev/usb: use our nitems() macro when param.h is available.

Reviewed by: hselasky


# 292080 11-Dec-2015 imp

Create a USB_PNP_INFO and use it to export the existing PNP
tables. Some drivers needed some slight re-arrangement of declarations
to accommodate this. Change the USB pnp tables slightly to allow
better compatibility with the system by moving linux driver info from
start of each entry to the end. All other PNP tables in the system
have the per-device flags and such at the end of the elements rather
that at the beginning.

Differential Review: https://reviews.freebsd.org/D3458


# 287828 15-Sep-2015 garga

Add support for Sierra MC7355 card

Submitted by: Jeremy Porter <jporter@netgate.com>
Approved by: loos
Obtained from: pfSense
MFC after: 1 week
Sponsored by: Rubicon Communications (Netgate)


# 287616 10-Sep-2015 hselasky

Update USB quirk.

MFC after: 1 month
PR: 202968


# 287592 09-Sep-2015 hselasky

Add new USB ID.

MFC after: 1 month
PR: 202968


# 287575 08-Sep-2015 garga

Remove duplicate entry for Sierra Wireless Aircard 875

Approved by: loos
MFC after: 3 days
Sponsored by: Rubicon Communications (Netgate)


# 287295 29-Aug-2015 gavin

Support the ZTE MF112 HSUPA 3G USB stick.

MFC after: 1 week


# 282469 05-May-2015 garga

Add support for Sierra MC7354 card

Author: Jeremy Porter <jporter@netgate.com>
Differential Revision: https://reviews.freebsd.org/D2444
Reviewed by: gnn, hselasky
MFC after: 1 week
Sponsored by: Netgate


# 279725 07-Mar-2015 hselasky

Add more USB IDs.

PR: 197753
MFC after: 1 week


# 278379 08-Feb-2015 dchagin

Add Neoway WM620 module ID.

MFC after: 1 Week


# 277246 16-Jan-2015 hselasky

Add more USB device IDs.

Submitted by: max.n.boyarov@gmail.com
PR: 196362
MFC after: 1 week


# 276701 05-Jan-2015 hselasky

Make a bunch of USB debug SYSCTLs tunable, so that their value(s) can
be set before the USB device(s) are probed.


# 275606 08-Dec-2014 hselasky

Add more U3G USB IDs.

Submitted by: Benediktus Anindito <bennybroz105@gmail.com>
MFC after: 1 week


# 274227 07-Nov-2014 hselasky

Add new USB IDs.

Submitted by: G'abor Zahemszky <gabor@zahemszky.hu>
MFC after: 1 week


# 273252 18-Oct-2014 hselasky

Add support for new USB 3G device.

Submitted by: gabor@zahemszky.hu
MFC after: 1 week


# 273216 17-Oct-2014 hselasky

Add support for new USB 3G device.

Submitted by: gabor@zahemszky.hu
MFC after: 1 week


# 271874 19-Sep-2014 hselasky

Add new USB IDs.

PR: 193775
MFC after: 1 week


# 271492 12-Sep-2014 hselasky

Workaround for receiving Voice Calls using the E1750 dongle from
Huawei. It might appear as if the firmware is allocating memory blocks
according to the USB transfer size and if there is initially a lot of
data, like at the answering machine prompt, it simply dies without any
apparent reason. The simple workaround for this is to force a zero
length packet at hardware level after every 512 bytes of data. This
will force the other side to use smaller memory blocks aswell.

MFC after: 1 week


# 269582 05-Aug-2014 n_hibma

don't OR integer error values together as this does not make sense.
Instead bail on the first failed command.


# 269576 05-Aug-2014 n_hibma

Add a second Huawei SCSI eject command as USB mode switch config files
sometimes use one or the other. Maybe newer Huawei modems switched.

Add a quirk for it as well.

PR: 145319
Submitted by: rozhuk.im gmail.com


# 269571 05-Aug-2014 n_hibma

Add ID for Novatel MC990D to u3g.

PR: 145319
Submitted by: rozhuk.im gmail.com
MFC after: 3 days


# 269569 05-Aug-2014 n_hibma

Remove unused defines.
Fix some device_printf's that were missing '\n' at the end or had
speling errors.

PR: 145319
Submitted by: rozhuk.im gmail.com


# 268929 20-Jul-2014 hselasky

Add new device ID.

MFC after: 1 week
PR: 191959


# 260534 11-Jan-2014 hselasky

Move USB ID from u3g driver to uhso driver.

Submitted by: Lundberg, Johannes <johannes@brilliantservice.co.jp>
MFC after: 1 week


# 258363 20-Nov-2013 truckman

Add alternate ID for Novatel MiFi 2200 CDMA, which is used by my
Virgin Mobile branded device. It needs the U3GINIT_SCSIEJECT quirk.

Reviewed by: hselasky
MFC after: 1 month


# 257132 25-Oct-2013 n_hibma

Add id for GTM661W.


# 252294 27-Jun-2013 remko

Add support for the NTT Docomo L-02C card.

PR: 180017
Submitted by: Masaharu FUJITA
Glanced at by: imp
MFC after: 1 week


# 248499 19-Mar-2013 hselasky

Add new USB ID.

PR: usb/177105
MFC after: 1 week


# 245427 14-Jan-2013 hselasky

Add new u3g device quirk.

Submitted by: Lowell Gilbert
MFC after: 1 week


# 244837 29-Dec-2012 hselasky

Add new USB ID.

PR: usb/174814
Submitted by: Andy Balholm
MFC after: 1 week


# 244047 09-Dec-2012 hselasky

Add new USB ID.

MFC after: 1 week
Submitted by: Artyom Mirgorodskiy


# 243663 28-Nov-2012 eadler

Add support for AT&T Sierra Wireless USB 3G adapter

PR: kern/173982
Submitted by: Eric Camachat <eric@camachat.org>
Approved by: cperciva (implicit)
MFC after: 1 week


# 242906 12-Nov-2012 hselasky

Add new USB IDs.

MFC after: 1 week
PR: usb/173503


# 241555 14-Oct-2012 n_hibma

Implement modem control in u3g. Tested on Option GTM382W, Huawei E220,
and Sierra Wireless MC8790V. Also implement the .ucom_poll method.

Note: This makes it possible to use lqr/echo in ppp.conf. And it
resolves ppp hanging during the PPp> phase.

Reviewed by: hps
MFC after: 1 week


# 239299 15-Aug-2012 hselasky

Revert r239178 and implement two new functions, namely
"device_free_softc()" and "device_claim_softc()",
to allow USB serial drivers refcounting the softc.
These functions are used to grab the softc from
auto-free and to free the softc back to the correct
malloc type, respectivly.

Discussed with: jhb
MFC after: 2 weeks


# 239182 10-Aug-2012 hselasky

Style.

MFC after: 2 weeks


# 239180 10-Aug-2012 hselasky

Take advantage of new UCOM and bus functionality so that
the device_detach() function doesn't block on UCOM device
drivers until the TTY handle is closed by the userspace
application. This is implemented by a postpone of the
softc free where the UCOM structures reside until the
TTY references are gone.

Discussed with: kib, ed
MFC after: 2 weeks


# 238717 23-Jul-2012 rea

u3g: add support for Huawei E392 LTE modem

I am using it rebranded and it carries the label "Megafon"
(it is Russian mobile operator); works fine with my 3G network.

Approved by: hselasky


# 238529 16-Jul-2012 hselasky

Add new USB device ID.

PR: usb/169789
Submitted by: Ruslan Bukin
MFC after: 1 week


# 238526 16-Jul-2012 hselasky

Add new USB device ID.

PR: usb/169789
MFC after: 1 week


# 238493 15-Jul-2012 hselasky

Add new USB device ID.

PR: usb/169789
MFC after: 1 week


# 238079 03-Jul-2012 hselasky

Add new USB device ID.

Submitted by: Erich Dollansky
MFC after: 1 week


# 234541 21-Apr-2012 kevlo

Add support for the SIMCom SIM5218, tested by me.


# 232684 08-Mar-2012 hselasky

Add new USB device IDs.

PR: usb/165815
MFC after: 1 week


# 231713 14-Feb-2012 hselasky

Add new USB device ID.

MFC after: 3 days
PR: usb/165154


# 230238 16-Jan-2012 hselasky

Add support for more USB devices.

Submitted by: pav @
MFC after: 1 week


# 227309 07-Nov-2011 ed

Mark all SYSCTL_NODEs static that have no corresponding SYSCTL_DECLs.

The SYSCTL_NODE macro defines a list that stores all child-elements of
that node. If there's no SYSCTL_DECL macro anywhere else, there's no
reason why it shouldn't be static.


# 225041 20-Aug-2011 hselasky

Add new USB ID to u3g driver.

Approved by: re (kib)
MFC after: 1 week
PR: usb/159919


# 224239 21-Jul-2011 hselasky

Add new USB ID to u3g driver.

Approved by: re (kib)
Submitted by: Nick Hibma
MFC after: 3 days


# 223486 24-Jun-2011 hselasky

- Move all USB device ID arrays into so-called sections,
sorted according to the mode which they support:
host, device or dual mode
- Add generic tool to extract these data:
tools/bus_autoconf

Discussed with: imp
Suggested by: Robert Millan <rmh@debian.org>
PR: misc/157903
MFC after: 14 days


# 218178 01-Feb-2011 n_hibma

New ID for the Novatel MC547

PR: 154127
Submitted by: Mike Tancsa
MFC after: 1 day


# 217637 20-Jan-2011 n_hibma

Add another ID for the ZTE MF190 Surf Stick

Submitted by: nagilum
MFC after: 1 day


# 217265 11-Jan-2011 jhb

Remove unneeded includes of <sys/linker_set.h>. Other headers that use
it internally contain nested includes.

Reviewed by: bde


# 215734 23-Nov-2010 n_hibma

Make the Huawei E1820 work (Emile Coetzee).
Shorten the descriptive strings for Huawei devices. The vendor or
operator name should not be included in the device name.

Submitted by: Emile Coetzee
MFC after: 3 days


# 215330 15-Nov-2010 thompsa

Add the Sierra MC8700.


# 215326 14-Nov-2010 dd

Add a special INIT product ID used by some models of the HUAWEI
K3765 datacard. After ejecting this device, it reappears using
the normal K3765 ID. It does not switch automatically

Reviewed by: n_hibma
Obtained from: OpenBSD
MFC after: 2 weeks


# 215258 13-Nov-2010 n_hibma

Add the switch config for the XS Stick.

It speaks AT commands on 2 out of 3 serial ports, but it has not been
verified to work at all speaking PPP yet.


# 215095 10-Nov-2010 n_hibma

Allow specification of eject method through quirks, so people can test
drive eject methods before supplying patches.


# 214852 05-Nov-2010 n_hibma

Bugfix: In rev 213509 Alexander committed a duplicate ID for ZTE STOR
based devices (QUALCOMMINC 0x2000). He made it use SCSI eject instead of
ZTE STOR eject. This prevented my ZTE MF626 dongle from switching.

- Apply both eject methods for ZTE STOR based devices. Works on my as
well as mav's device.
- Remove the duplicate.
- Sort the usbdevs entries for Qualcomm so this won't happen again.
- Add bootverbose message displaying the fact that we are ejecting (and
how).

Reviewed by: mav
MFC after: 2 weeks


# 214843 05-Nov-2010 n_hibma

Implement ucom_set_pnpinfo_usb() providing ttyname and port number
information through devd. My E220 now produces the notification (1 line):

+u3g0 at bus=1 hubaddr=1 port=0 devaddr=2 interface=0 \
vendor=0x12d1 product=0x1003 devclass=0x00 devsubclass=0x00 \
sernum="" release=0x0000 intclass=0xff intsubclass=0xff \
ttyname=U0 ttyports=2 on uhub0

Note: serial/ufoma and net/uhso still provide port number and tty name
(uhso only) information through sysctls, which should now be removed.

Reviewed by: hpselasky


# 214761 03-Nov-2010 n_hibma

- Simplify the way unit/subunit allocation is done in ucom.
- hw.usb.ucom.cons_unit is now split into
hw.usb.ucom.cons_unit/...cons_subunit.

Note: The tunable/sysctl hw.usb.ucom.cons_unit needs to be reviewed if

a) a console was defined a USB serial devices, and a USB device with
more than 1 subunit is present, and this device is attached before the
device functioning as a console

or

b) a console was defined on a USB device with more than 1 subunit

Reviewed by: hps
MFC after: 2 weeks


# 213879 14-Oct-2010 hselasky

- Add more USB devices to usbdevs and rename some previously unknown ones.
- Add more USB mass storage quirks.

Submitted by: Dmitry Luhtionov
PR: usb/149934, usb/143045
Approved by: thompsa (mentor)


# 213509 07-Oct-2010 mav

Add ID for Vodafone (ZTE) Mobile Broadband K3565-Z modem.

Reviewed by: hselasky


# 213480 06-Oct-2010 glebius

Add support to Alcatel/TCTMobile X080S USB 3G modem. The device needs
special eject command to reappear as modem. It also requires DIR_IN flag
in the command message, so we supply some dummy data along with the command.

Feedback from X080S owners appreciated. I have not a pure Alcatel/TCTMobile
device, but another one under "Svyaznoy" (Связной) brand, and I didn't yet
managed to get it working. It is successfully recognized, it responds to
AT commands, but it shuts up right after successfull CONNECT response.

Reviewed by: hps


# 212122 01-Sep-2010 thompsa

Add missing MODULE_VERSION() definitions, this resolves problems around
duplicate module loads.

PR: usb/125736
Submitted by: danger, mm
Reviewed by: hselasky


# 210534 27-Jul-2010 gavin

Add support for the Longcheer WM66 USB HSDPA Modem to u3g(4)

This patch is different to that provided in the PR, due to the changes in
this driver since 7.x.

PR: usb/129945
Submitted by: Antonio Hilario <avahilario gmail.com>
MFC after: 1 week


# 208015 12-May-2010 thompsa

Increase the max ports to 12, 3G devices exist where the ppp endpoint is #9.

Requested by: n_hibma


# 207077 22-Apr-2010 thompsa

Change USB_DEBUG to #ifdef and allow it to be turned off. Previously this had
the illusion of a tunable setting but was always turned on regardless.

MFC after: 1 week


# 206544 13-Apr-2010 kevlo

The Quanta Q101 modem has a different type of cdrom driver disk,
add the product id and use a standard scsi eject.

Reviewed by: thompsa
MFC after: 3 days


# 203905 14-Feb-2010 thompsa

Add support for the E1752 3G modem and the required eject command.

Submitted by: Milan Obuch


# 203507 05-Feb-2010 thompsa

The ZTE MF633R modem has a different type of cdrom driver disk, add the product
ID and use a standard scsi eject.

Reported by: Patrick Lamaiziere
MFC after: 3 days


# 203506 04-Feb-2010 thompsa

Properly name the 0x0016 ZTE product as MF633R now that its known.


# 202054 10-Jan-2010 thompsa

Add the Globetrotter GE40x.

Submitted by: Mike Tancsa


# 201766 07-Jan-2010 thompsa

Remove unneeded includes.


# 201681 06-Jan-2010 thompsa

Improve u3g device ejecting by providing additional methods for the eject
command in the usb_msctest routines, as well as a general tidyup.

This now properly ejects the ZTE MF636, Option Gi0322 and Novatel MC950D
devices I have on my desk.


# 200658 17-Dec-2009 thompsa

Keep list sorted.


# 200657 17-Dec-2009 thompsa

Add a bunch of new 3G ids obtained from from various operating systems and
Internet sources.

Obtained from: Linux, NetBSD, OpenBSD, etc


# 200653 17-Dec-2009 thompsa

Use the EVENTHANDLER system to hook into the usb device configuration and
perform a function such as ejecting a 3G autoinstaller disk. The eventhandler
system properly tracks threads and is safe to unload, remove the
setting/clearing of a function pointer in the kernel by u3g(4) which included a
tsleep for safety.


# 200376 10-Dec-2009 thompsa

Revert r199331, the UM175 is in fact a cdc-acm device handled by umodem(4).


# 199816 25-Nov-2009 thompsa

Remove overuse of exclamation marks in kernel printfs, there mere fact a
message has been printed is enough to get someones attention. Also remove the
line number for DPRINTF/DPRINTFN, it already prints the funtion name and a
unique message.


# 199332 16-Nov-2009 thompsa

Sort ID list by vendor.


# 199331 16-Nov-2009 thompsa

Add the Curitel UM175 3g device.


# 197568 28-Sep-2009 thompsa

add more device IDs

Reported by: Mike Tancsa
Submitted by: Hans Petter Selasky


# 196219 14-Aug-2009 jhb

Purge mergeinfo from files that were temporarily renamed while USB2 was
imported into the tree alongside USB.

Approved by: re (mergeinfo blanket)


# 195962 29-Jul-2009 alfred

USB serial:
- add new ID for Huawei
- P4 ID: 166150

PR: usb/136761

Submitted by: hps
Approved by: re


# 194677 23-Jun-2009 thompsa

- Make struct usb_xfer opaque so that drivers can not access the internals
- Reduce the number of headers needed for a usb driver, the common case is just usb.h and usbdi.h


# 194228 14-Jun-2009 thompsa

s/usb2_/usb_|usbd_/ on all function names for the USB stack.


# 193045 29-May-2009 thompsa

s/usb2_/usb_/ on all typedefs for the USB stack.


# 192984 28-May-2009 thompsa

s/usb2_/usb_/ on all C structs for the USB stack.


# 192557 21-May-2009 thompsa

Add Sharp WILLCOM03 ipaq and Option GTHSDPA 3g device ids.

Submitted by: Hans Petter Selasky


# 192502 20-May-2009 thompsa

Rename the usb sysctl tree from hw.usb2.* back to hw.usb.*.

Submitted by: Hans Petter Selasky


# 192499 20-May-2009 thompsa

- rename usb2_mode to usb_mode [1]
- change variable types to use the enum

Submitted by: Hans Petter Selasky [1]


# 191892 07-May-2009 thompsa

Use a 32 bit type for the interface mask as this equals the max interface
count.


# 191870 07-May-2009 thompsa

Add the Sierra AC885U and increase the max ports to 8.


# 191869 07-May-2009 thompsa

- Fix the u3g port detection where it would not calculate the correct number of
ports when multiple interfaces are present.
- Claim all interfaces regardless of how many are attached


# 191868 07-May-2009 thompsa

Use vendor and product macro expansion to make the device table smaller and
more readable.


# 190749 05-Apr-2009 piso

Remove pointeless mergeinfo that crept in from r190633.


# 190734 05-Apr-2009 thompsa

MFp4 //depot/projects/usb@159909

- make usb2_power_mask_t 16-bit
- remove "usb2_config_sub" structure from "usb2_config". To compensate for this
"usb2_config" has a new field called "usb_mode" which select for which mode
the current xfer entry is active. Options are: a) Device mode only b) Host
mode only (default-by-zero) c) Both modes. This change was scripted using
the following sed script: "s/\.mh\././g".
- the standard packet size table in "usb_transfer.c" is now a function, hence
the code for the function uses less memory than the table itself.

Submitted by: Hans Petter Selasky


# 190633 01-Apr-2009 piso

Implement an ipfw action to reassemble ip packets: reass.


# 190581 30-Mar-2009 mav

Integrate user/mav/ata branch:

Add ch_suspend/ch_resume methods for PCI controllers and implement them
for AHCI. Refactor AHCI channel initialization according to it.

Fix Port Multipliers operation. It is far from perfect yet, but works now.
Tested with JMicron JMB363 AHCI + SiI 3726 PMP pair.
Previous version was also tested with SiI 4726 PMP.

Hardware sponsored by: Vitsch Electronics / VEHosting.nl


# 190174 20-Mar-2009 thompsa

MFp4 //depot/projects/usb @159430

- Move tunable defines into usb_core.h and dependancy towards usb_defs.h
- Leave hardcoded defines in "usb_defs.h".
- Allow overriding all tunable defines.
- Add more customisable typedefs.
- Correct maximum device number.

Submitted by: Hans Petter Selasky


# 189546 08-Mar-2009 thompsa

MFp4 //depot/projects/usb@158869

Fix sael init code.

Reported by: Alberto Mijares
Submitted by: Hans Petter Selasky


# 189275 02-Mar-2009 thompsa

Rename the ushub device class back to uhub as it was in the old usb stack,
moused(8) looks for "uhub/ums" to decide if needs to load the module.

Reported by: Garrett Cooper


# 189265 02-Mar-2009 thompsa

Move the serial drivers from Giant to using their own mutexs.

Tested with: u3g, ubser, uplcom


# 188989 24-Feb-2009 thompsa

MFp4 //depot/projects/usb@158015

Add support for the Sael M460 3G modem.

Submitted by: Hans Petter Selasky


# 188942 23-Feb-2009 thompsa

Move the new USB stack into its new home.


# 188746 18-Feb-2009 thompsa

Switch over to usbdevs.h generated at compile time.


# 188413 09-Feb-2009 thompsa

MFp4 //depot/projects/usb; 157069, 157136, 157143, 157145, 157429

- USB serial drivers cleanup, factor out code
- Simplify line state programming
- Integrate uslcom from old USB stack

Submitted by: Hans Petter Selasky


# 187970 31-Jan-2009 thompsa

Remove check for null softc in attach, it can never happen.


# 187728 26-Jan-2009 thompsa

MFp4 //depot/projects/usb/ @156521

U3G regression issue. Patch to support multiple modem instances per logical
USB interface.

Submitted by: Hans Petter Selasky


# 187259 15-Jan-2009 thompsa

Name the items in the xfer arrays so they can be identified throughout the
code.


# 187176 13-Jan-2009 thompsa

MFp4: //depot/projects/usb@155917

Remove dependancy towards the USB config thread in
the USB serial core. Use USB process msignalling
instead. Saves a little memory and hopefully makes
the code more understandable.

Submitted by: Hans Petter Selasky


# 186730 03-Jan-2009 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


# 185290 25-Nov-2008 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)