imp
1a4f4f2adf
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
7b01b2336f
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
e75d9c9ff9
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
84d4e4a72e
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
9bc042de86
Start each of the license/copyright comments with /*-, minor shuffle of lines
2005-01-06 01:43:34 +00:00
imp
ca1e338ad8
add copyright notice to something I wrote that didn't have one
2005-01-06 01:36:28 +00:00
keramida
29b6957a62
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
9cd9fbcab1
Fix comment. One of the two "Step 4" shuold be a "step 5"
2005-01-05 01:04:35 +00:00
julian
d4cbadf08b
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
1aee5c2224
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
ddf8fa447f
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
d7e8c91c33
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
87d61aebec
Finish merging usb vendors from NetBSD.
2004-12-31 18:37:49 +00:00
julian
3853d2c05f
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
8701c51bf1
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
708a364ac6
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
4bc45cb16a
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
3a1c4e219e
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
fddacf0a68
Remove duplicate CHPRODUCTS entry.
...
Use tab religiously in the vendor section.
2004-12-27 06:58:05 +00:00
imp
2379942d8f
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
f69732be4d
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
f8029924f6
Include fcntl.h
...
check O_NONBLOCK instead of IO_NDELAY
Don't include vnode.h.
2004-12-22 17:35:52 +00:00
phk
a615d63978
Include fcntl.h
...
check O_NONBLOCK instead of IO_NDELAY
don't include vnode.h
2004-12-22 17:34:53 +00:00
phk
a132426341
Include fcntl.h
...
Check O_NONBLOCK instead of IO_NDELAY
Don't include vnode.h
2004-12-22 17:34:25 +00:00
phk
6dd1d74a40
Don't include vnode.h.
...
Check O_NONBLOCK instead of IO_NDELAY
2004-12-22 17:31:44 +00:00
julian
ed3137741c
Oops, this one isn't ready
...
back it out until fixed
2004-12-20 21:17:22 +00:00
julian
08604dfb09
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
450c346d59
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
9104e348bb
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
2393c80843
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
1ab661391a
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
ff9390b6f6
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
007515dacb
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
531cf2a8b6
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
58895d9526
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
e336db3abd
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
5bb55ede40
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
d346696b63
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
a24566706a
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
f85030d949
sys/vnode.h is inappropriate for a driver. Use sys/uio.h instead.
2004-12-13 06:26:23 +00:00
imp
d539ea55a8
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
b0b47ef3ef
Try make code for teh M$ Intellimouse less obtrusive
...
when not using such a device.
2004-12-13 02:20:48 +00:00
julian
1df134ba51
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
79f3a3573b
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
18de84cc34
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
b906ce124b
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
87c3e5f96d
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
brueffer
6721f3fbbe
URL of the data sheet has changed.
...
Obtained from: OpenBSD
2004-12-09 13:27:44 +00:00
rsm
8d9c96e59f
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
iedowse
d3a4c9a9d5
Add support for the TwinMOS Memory Disk IV.
...
PR: kern/73766
Submitted by: Valentin Nechayev
MFC after: 1 week
2004-11-28 21:49:30 +00:00