obrien
bb6fb45e0f
Fix problem with some logitec usb wireless mice.
...
Submitted by: Markus <mw@kpnqwest.ch>
Tested by: Randy Bush <randy@psg.com>
2005-02-06 12:41:00 +00:00
akiyama
f9a616f908
Use a taskqueue to handle port status changes.
...
Calling ucom layer directly from interrupt context make a panic.
MFC after: 1 week
2005-01-31 13:58:10 +00:00
akiyama
5aa1777f1d
- Add support for new chips, PL-2303X and PL-2303HX.
...
- Update comment about datasheet.
- Fix minor typo in sysctl variable description.
Submitted by: Michal Mertl <mime@traveller.cz>
MFC after: 1 week
2005-01-25 14:38:21 +00:00
imp
e394c4c99a
Although USBVERBOSE was an option in the config system, usb_subr.c failed
...
to recognize that. Include opt_usb.h to pick it up, rather than usb_port.h.
2005-01-20 05:03:28 +00:00
akiyama
bfbb212401
Fix USB serial device stalled after tcflush() was called.
...
PR: kern/65769
MFC after: 3 days
2005-01-19 15:18:00 +00:00
imp
63ced9b235
MFp4:
...
sc_child isn't used on FreeBSD, so ifdef it out in a way that is
NetBSD mergeable.
2005-01-11 07:34:13 +00:00
julian
747264f265
fix a "little-endian-big-endian confusion that luckily:
...
1/ doesn't matter on most of our architectures
2/ will never happen unless we start queueing multiple trasactions
to a single endpoint at one time (which we do not allow yet).
If anyone has a big_endian machine with EHCI they might check this
if they are having problems with EHCI but it's unlikely even there..
Submitted by: Hans Petter Selasky <hselasky@c2i.net>
MFC after: 3 days
2005-01-09 23:49:45 +00:00
imp
4b319958e7
Start each of the license/copyright comments with /*-, minor shuffle of lines
2005-01-06 01:43:34 +00:00
imp
e4f5af10c5
add copyright notice to something I wrote that didn't have one
2005-01-06 01:36:28 +00:00
keramida
9ad4cdef3b
Fix KASSERT inversion that was introduced in 1.150, resulting in instant
...
panic curlen != 0, which is perfectly normal.
Approved by: mux
2005-01-05 20:10:05 +00:00
julian
b625b904ff
Fix comment. One of the two "Step 4" shuold be a "step 5"
2005-01-05 01:04:35 +00:00
julian
4bf9384dba
Remove comment that doesn't seem to be true and add comments describing
...
what is going on, to replace it. Slight formatting changes
Code here is alredy different to NetBSD.
MFC after: 1 week
2005-01-03 08:52:26 +00:00
julian
f19a6b0905
A much simpler way to work out if the required transfer can be done in 2
...
scatter gather segments.
MFC after: 1 week
2005-01-03 08:09:05 +00:00
imp
702123653d
First pass at shortening names. Likely more can be done. Generally
...
prefer ethernet and serial to \1 adapter.
2004-12-31 19:10:33 +00:00
imp
6c6ac1163b
Eliminate the redundant/verbose portion of the company names.
...
Generally omit semiconductor, electronics, inc, corp, pny, ltd and the
like.
This saves almost 3k for the usb module.
2004-12-31 18:59:38 +00:00
imp
0a39eafc47
Finish merging usb vendors from NetBSD.
2004-12-31 18:37:49 +00:00
julian
7d4c614c90
Don't call ugen_destroy_devnodes(). it is called from ugen_set_config()
...
which is the very next line.
Submitted by: stefanf
MFC after: 3 days
2004-12-29 21:36:43 +00:00
imp
9f520936d6
Move WINBOND 4 port hub to its proper location in the file. It belongs
...
in a section of its own, not arbitrarily grouped in the hawking section
just because hawking sells it...
2004-12-29 06:21:41 +00:00
obrien
2287d5020d
Add the Winbond made Hawking UH104 4-port hub.
...
Add a note where to find the offical USB assigned numbers.
2004-12-29 02:09:19 +00:00
julian
ad31868542
Rewrite ehci_abort_xfer() to use the method hinted at in the EHCI spec.
...
to remove a transaction from the async schedule. The previous method didn't
work well and led to the hardware writing to free'd buffers etc, as
it didn't always know that the transaction had been aborted.
Written after consultation with David Brownell who wrote the Linux
EHCI driver.
As part of this give the sqh structure a "previous" pointer.
MFC after: 1 week
2004-12-29 01:21:18 +00:00
jb
08d2181db1
Pass an explicit pointer to the bus structure in the 'usb' device ivar
...
rather than a softc pointer (with the bus structure at the start).
This is a non-functional change. It just helps when reading the code to
know that the ehci, ohci and uhci drivers share the bus structure, not the
entire softc.
2004-12-28 22:17:10 +00:00
imp
5acf0361de
Remove duplicate CHPRODUCTS entry.
...
Use tab religiously in the vendor section.
2004-12-27 06:58:05 +00:00
imp
8aa567b09d
More minor diff reduction against netbsd:
...
ADVANCELOGIC->AVANCELOGIC (nothing in the tree uses it, so safe to do)
sort HAGIWARA vendor entry
sort ACTIONTAR vendor entry
Minor change to SYSTEMTALKS vendor entry.
2004-12-26 07:48:46 +00:00
imp
be8bad5c95
Minor merges from NetBSD (up through 1.388):
...
Add $NetBSD$ in a comment at the top
Update copyright dates
Update header comment
Add some of the entries not present in FreeBSD's usbdevs file
Harmonize some descriptions with NetBSD where NetBSD's were shorter
More work needs to happen here, as there's many conflicting vendor
names. There's also more harmonization that can happen before that
problem is tackled.
This was inspired by recent discussions, but none of the patches
posted were consulted to produce this commit. Other, similar ones
will follow.
2004-12-26 07:14:55 +00:00
phk
8deec74094
Include fcntl.h
...
check O_NONBLOCK instead of IO_NDELAY
Don't include vnode.h.
2004-12-22 17:35:52 +00:00
phk
1273b3575c
Include fcntl.h
...
check O_NONBLOCK instead of IO_NDELAY
don't include vnode.h
2004-12-22 17:34:53 +00:00
phk
52fb0f35d0
Include fcntl.h
...
Check O_NONBLOCK instead of IO_NDELAY
Don't include vnode.h
2004-12-22 17:34:25 +00:00
phk
9fa6e5be50
Don't include vnode.h.
...
Check O_NONBLOCK instead of IO_NDELAY
2004-12-22 17:31:44 +00:00
julian
df11d2eb83
Oops, this one isn't ready
...
back it out until fixed
2004-12-20 21:17:22 +00:00
julian
bb3e4ff4e1
Add a bunch of USB definitions from NetBSD.
...
This is part of an ongoing cycle of commits on all the BSDs to
merge the USB vendor and device defintions..
A merge from OpenBSD is still pending.
Submitted by: barry bouwsma (freebsd-misuser@NOSPAM.dyndns.dk )
Obtained from: NetBSD
MFC after: 1 week
2004-12-20 20:41:55 +00:00
julian
13d101e836
Merge in a bunch of USB device and manufacturer definitions..
...
Submitted by: barry bouwsma (freebsd-misuser@NOSPAM.dyndns.dk )
Obtained from: Dragonfly
MFC after: 3 days
2004-12-20 20:10:57 +00:00
julian
dbd1bd5be7
Slight change to formatting so that 'ctags' doesn't
...
give up on teh file half way through.. Might have been my
mistake earlier anyhow. No actual code change
MFC after: 5 days
2004-12-18 01:20:18 +00:00
phk
a410ae531e
Make LINT compile.
...
When leaving functions for ddb use don't make them static: it makes
gcc think they are unused.
Shouldn't this be in #ifdef DDB anyway ?
2004-12-14 07:46:28 +00:00
julian
ccc36e1e1b
A bunch more whitespace and formatting diff reductions for NetBSD.
...
Obtained from: NetBSD
MFC after: 1 week
2004-12-14 04:47:24 +00:00
julian
cc6f359e9f
Don't abandon ship just because the number of companions doesn't seem correct.
...
Obtained from: NetBSD
MFC after: 1 week
2004-12-14 04:05:10 +00:00
julian
8c60563127
Slightly reorganise part of the ohci_softintr() function
...
to better keep track of the total amoutn transferred during a
transfer. Seems similar to some code in the NetBSD version.
I notice they have incorporated matches from him so I don't know which
direction it went.
Submitted by: damien.bergamini@free.fr
Obtained from: patches to make the ueagle driver work
MFC after: 1 week
2004-12-14 03:59:24 +00:00
julian
6846f0b857
Small formatting change..
...
Move a declaration to the same place as in NetBSD.
Obtained from: NetBSD
MFC after: 1 week
2004-12-14 03:54:08 +00:00
julian
b678066314
Might as well get the right $NetBSD$ string while we are at it.
...
MFC after: 1 week
2004-12-13 08:12:06 +00:00
julian
1cf882e7f6
Diff reduction to NetBSD.
...
Now only things that are different between us and NetBSD show up.
Means that these files are more of NetBSD style in some places but
since thay are NetBSD files, um, that's ok.
Obtained from: NetBSD
MFC after: 1 week
2004-12-13 08:08:57 +00:00
julian
fa3c9e1494
MFNetBSD
...
Whitespace diff reduction, formatting fixes and one actual
arithmetic error that NetBSD have fixed.
Obtained from: NetBSD
MFC after: 1 week
2004-12-13 07:45:02 +00:00
imp
07608a8fda
We don't need vnode.h, but do need uio.h in these files. vnode.h
...
shouldn't be included in drivers, generally, so remove them.
OK'd by: phk
2004-12-13 07:09:54 +00:00
imp
a7ef57e297
Add sys/uio.h explicitly, and move sys/vnode.h include to be more
...
alphabetical.
# vnode.h should not be included here, but it is required for proper decoding
# of the flags args. This may change in the future...
2004-12-13 07:08:22 +00:00
imp
d8504f8e86
sys/vnode.h is inappropriate for a driver. Use sys/uio.h instead.
2004-12-13 06:26:23 +00:00
imp
44b7a63175
Crank down the lame-o-matic a notch by moving the = inside the /* */ rather
...
than outside to fix the build.
2004-12-13 05:41:33 +00:00
julian
532abd191c
Try make code for teh M$ Intellimouse less obtrusive
...
when not using such a device.
2004-12-13 02:20:48 +00:00
julian
0dfd473a43
Don't export the 'dt' field as that would break the exisiting ABI.
...
keep the code but comment it out so that if the ABI changes we
can see easily what should be done.
Submitted by: iedowse
2004-12-13 01:23:49 +00:00
julian
e798309545
Revert addition of Lide scanner entry..
...
It's a duplicate of an already exisiting entry. (with another name).
2004-12-13 00:25:03 +00:00
julian
cfac934dde
Add support for Cannon LIDE 20 scanner
...
PR: kern/74301
Submitted by: Vlad Manilici <vman@tmok.com>
MFC after: 1 week
2004-12-12 08:35:21 +00:00
julian
b8473b1c5d
Add support for USB Microsoft Intellimouse
...
PR: kern/70607
Submitted by: Matt Wright <matt@consultmatt.co.uk>
MFC after: 1 week
2004-12-12 05:34:20 +00:00
julian
4f6eebc338
Changes to cache endpoint descriptors for all the interfaces. this information
...
is not always available if we change interfaces.
Submitted by: jamie at bishopston dot net (jamie jones)
MFC after: 1 week
2004-12-12 02:27:30 +00:00