Shunsuke Akiyama
7db2e52424
- 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
Warner Losh
bec6d0ea5a
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
Shunsuke Akiyama
1f41d5d83a
Fix USB serial device stalled after tcflush() was called.
...
PR: kern/65769
MFC after: 3 days
2005-01-19 15:18:00 +00:00
Warner Losh
ad3142eda4
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 Elischer
4f93332f16
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
Warner Losh
098ca2bda9
Start each of the license/copyright comments with /*-, minor shuffle of lines
2005-01-06 01:43:34 +00:00
Warner Losh
a8c5ecf70f
add copyright notice to something I wrote that didn't have one
2005-01-06 01:36:28 +00:00
Giorgos Keramidas
285d9e0fa7
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 Elischer
4eefd67bb0
Fix comment. One of the two "Step 4" shuold be a "step 5"
2005-01-05 01:04:35 +00:00
Julian Elischer
a8ef988f65
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 Elischer
2410443379
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
Warner Losh
24ea6505cb
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
Warner Losh
edfffcdb9a
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
Warner Losh
61522a4654
Finish merging usb vendors from NetBSD.
2004-12-31 18:37:49 +00:00
Julian Elischer
3331831fd8
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
Warner Losh
7fcb3efbe0
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
David E. O'Brien
51799eec6c
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 Elischer
2f37e02978
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
John Birrell
4f2a7ca189
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
Warner Losh
b2e1ce3c5f
Remove duplicate CHPRODUCTS entry.
...
Use tab religiously in the vendor section.
2004-12-27 06:58:05 +00:00
Warner Losh
255bc0be62
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
Warner Losh
37705f86ba
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
Poul-Henning Kamp
4114357bf9
Include fcntl.h
...
check O_NONBLOCK instead of IO_NDELAY
Don't include vnode.h.
2004-12-22 17:35:52 +00:00
Poul-Henning Kamp
0b6db26c6c
Include fcntl.h
...
check O_NONBLOCK instead of IO_NDELAY
don't include vnode.h
2004-12-22 17:34:53 +00:00
Poul-Henning Kamp
e22b0e7682
Include fcntl.h
...
Check O_NONBLOCK instead of IO_NDELAY
Don't include vnode.h
2004-12-22 17:34:25 +00:00
Poul-Henning Kamp
7df050f9a8
Don't include vnode.h.
...
Check O_NONBLOCK instead of IO_NDELAY
2004-12-22 17:31:44 +00:00
Julian Elischer
efba049184
Oops, this one isn't ready
...
back it out until fixed
2004-12-20 21:17:22 +00:00
Julian Elischer
f1e27f62c1
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 Elischer
b3ea468624
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 Elischer
53d4f8518a
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
Poul-Henning Kamp
a884a1b0f2
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 Elischer
b96aca53dc
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 Elischer
47f9e7b6ce
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 Elischer
80ee93cb22
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 Elischer
6e6281a3dc
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 Elischer
1cc7d59e34
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 Elischer
cd015c5e87
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 Elischer
18b5fd62f9
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
Warner Losh
1239b0391a
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
Warner Losh
a9557e2194
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
Warner Losh
317ccb1fc3
sys/vnode.h is inappropriate for a driver. Use sys/uio.h instead.
2004-12-13 06:26:23 +00:00
Warner Losh
da5c87ba08
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 Elischer
d0a9f61fea
Try make code for teh M$ Intellimouse less obtrusive
...
when not using such a device.
2004-12-13 02:20:48 +00:00
Julian Elischer
22c2b56594
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 Elischer
0e7470486d
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 Elischer
a09345e6cd
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 Elischer
c29b0a0f7e
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 Elischer
060cd8af25
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
Christian Brueffer
61af118148
URL of the data sheet has changed.
...
Obtained from: OpenBSD
2004-12-09 13:27:44 +00:00
Scott Mitchell
d49a36b1d5
Diff-reduction before merging if_axe to RELENG_4.
...
Approved by: imp (mentor)
MFC after: 1 week
2004-12-08 22:02:58 +00:00