thorpej
6c88de3b53
Introduce a new routine, config_match(), which invokes the
...
cfattach->ca_match function in behalf of the caller. Use it
rather than invoking cfattach->ca_match directly.
2002-09-27 03:17:40 +00:00
augustss
86650920c9
Get rid of trailing white space.
2002-07-11 21:14:24 +00:00
christos
6728d906e9
Prefix structure members to protect them against clashes with eg. c++ keywords.
...
Suggested by Alfred Perlstein, from FreeBSD, ok'd by augustss
2002-02-20 20:30:12 +00:00
tsutsui
e6f8529d26
Call malloc(9) with M_ZERO flag instead of memset() after malloc().
2002-01-12 16:58:16 +00:00
augustss
37c8189778
Correct a comment.
2001-11-22 21:59:33 +00:00
augustss
2f560c9410
Sanity check max packet lengths.
2001-11-20 16:09:01 +00:00
augustss
86e6ea35eb
Update for new speed handling.
2001-11-20 13:50:07 +00:00
augustss
1f6462461a
Make it possible to report device speeds with ioctl(USB_DEVICEINFO).
2001-11-17 01:49:53 +00:00
augustss
3db4a768d4
Handle devices that disappear during reset gracefully.
2001-11-16 01:57:47 +00:00
lukem
667807e40c
add RCSIDs
2001-11-13 06:24:53 +00:00
augustss
9a444aef81
Get rid of unused abort_handle.
2001-11-10 17:11:38 +00:00
augustss
21f0709fbe
Abort any xfers on the control pipe before closing it on detach.
2001-11-10 17:10:42 +00:00
augustss
02186d8353
Small portability improvement.
2001-11-10 16:53:32 +00:00
augustss
dfe96bae01
Add a little infrastructure so that individual drivers can easily check
...
if thee was a vendor+product locator match.
2001-08-15 00:04:59 +00:00
lukem
c15945130c
delint: remove unnecessary assignment to same objection (hidden in #define)
2001-05-16 04:50:11 +00:00
augustss
29984607e8
Trim space off both ends of device product and vendor strings.
2001-01-21 02:34:34 +00:00
jdolecek
34c8ae80da
constify
2001-01-18 20:28:15 +00:00
augustss
e6616f532a
Cosmetic changes.
2001-01-08 20:21:16 +00:00
augustss
34bb7b9a35
Don't try to access a device that is being disconnected when generating
...
the detach event. Fixes (I hope) PR 11713 from itohy@netbsd.org (ITOH Yasufumi).
2000-12-13 04:05:14 +00:00
augustss
a675063a0d
Add a hack to try and figure out if the TI UTUSB41 hub is bus powered
...
despite claiming to be self powered (it's important to know so that the
power budget can be met).
2000-10-24 15:01:26 +00:00
augustss
3a05d9ba7b
Avoid empty strings for vendor&product.
2000-10-12 23:11:04 +00:00
augustss
5218e2a490
Improve some portability items.
2000-06-01 14:37:51 +00:00
augustss
ed9486e158
Bring the coding style into the 80s, i.e., get rid of __P and use
...
ANSI prototypes and declarations.
2000-06-01 14:28:57 +00:00
augustss
ca8d562f6e
Be more careful when setting the alternate interface.
2000-05-31 16:15:49 +00:00
augustss
30c20f930f
Change my email address.
2000-04-27 15:26:44 +00:00
augustss
b12ed6c03b
Make it possible to move a device to its unconfigured state by
...
using config #0 .
2000-04-23 00:46:59 +00:00
augustss
60bb0d050d
Add some comments.
2000-04-21 20:58:56 +00:00
augustss
f791a72b9c
Change error reporting in port reset function.
2000-04-21 15:58:55 +00:00
augustss
017ca78459
Make attach of ugen work as it should so product&vendor locators can be used.
2000-04-14 14:13:56 +00:00
augustss
a25e27e1eb
Some OpenBSD portability fixes.
2000-03-29 18:24:52 +00:00
augustss
5e754a177b
Do not accept new xfers for queuing while a pipe is aborting.
2000-03-29 01:45:20 +00:00
augustss
fc72e72d7d
Change (almost) all static to Static. The symbol `Static' can then be defined
...
to `' or `static' depending on if you want to debug or not.
2000-03-27 12:33:53 +00:00
augustss
3fded57690
Rename and move around callout handles to make it more sane.
...
Add some DIAGNOSTIC.
Fix buglet in isoc abort on UHCI.
2000-03-25 18:02:32 +00:00
soren
95054da1a1
Fix doubled 'the's in comments.
2000-03-13 23:52:25 +00:00
jdolecek
5f0b3b1510
usbd_devinfo_vp(): search the know devs array also if the device
...
doesn't return product description (e.g. Kye's Genius NetScroll
mouse returns vendor, but not product); the strings
returned by device are still preferred to those in the array, though
2000-02-20 14:45:05 +00:00
augustss
481e8339dc
Change the USB event mechanism to include more information about devices
...
and drivers. Partly from FreeBSD.
2000-02-02 07:33:59 +00:00
augustss
e7f114ba6d
Make sure to use delay() in usb_delay_ms() while cold booting.
2000-02-01 17:46:17 +00:00
augustss
c3716a6bb9
Add an argument to usbd_open_pipe_intr() to specify the polling interval
...
for an interrupt pipe in case we don't what what the descriptor suggests.
2000-01-19 00:23:58 +00:00
augustss
cc381bcb7c
Add usbd_reload_device_desc() to get the device descriptor again from a device.
...
Useful if e.g. downloading firmware updates the revision number.
2000-01-16 23:11:43 +00:00
augustss
33cf622176
Add another debug printf.
1999-12-18 22:51:58 +00:00
augustss
fc03707eef
Add even more debug output.
1999-12-15 23:00:05 +00:00
augustss
0164856f79
More debug printfs.
1999-12-15 20:05:08 +00:00
augustss
8111aaeef9
Cosmetics and a couple of diagnostic messages.
1999-12-06 21:06:59 +00:00
augustss
c156651eb9
Avoid the special when disconnecting devices with no config descriptor.
...
It was wrong.
1999-11-24 23:14:39 +00:00
augustss
3386c68b46
Cosmetic changes and some small improvements. From FreeBSD and Nick Hibma.
1999-11-18 23:32:25 +00:00
augustss
70ad5362d4
Fix a pointer test that I got wrong in the big code cleanup.
1999-11-16 22:15:50 +00:00
augustss
b019d68caa
Some minor changes from OpenBSD.
1999-11-16 12:04:28 +00:00
augustss
0d2fabdf26
A number of stylistic changes to increase readability (many suggested
...
by Nick Hibma):
use NULL not 0
declare all local definitions static
rename s/usbd_request/usbd_xfer/ s/reqh/xfer/
rename s/r/err/
use implicit test for no err
KNF
1999-11-12 00:34:57 +00:00
augustss
03a522d3c1
Merge in a large batch of changes from Nick Hibma <hibma@skylink.it> so
...
the USB stack compiles on FreeBSD again.
1999-10-13 08:10:55 +00:00
augustss
11403b6ec1
Fix some bugs in USB controller detach code.
1999-10-12 20:02:47 +00:00