thorpej
c49eaa2724
Don't use NULL for non-pointer arguments.
2002-02-28 04:49:16 +00:00
augustss
2c66bc238b
Fix a typo that prevented timeout in control requests from working.
...
Spotted by Alfred Perlstein <bright@mu.org>.
2002-02-26 10:22:48 +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
augustss
319f13f6ef
Give usbd_do_request_flags() an extra argument for the timeout.
2002-02-11 15:11:49 +00:00
augustss
e644076000
A little const poisoning. (From FreeBSD.)
2002-02-11 12:42:48 +00:00
augustss
ff21b251a0
Make sure we don't have any pending softintrs when entering polling mode.
...
Thanks to Darrin for finding and fixing this problem when using USB
keyboards in DDB.
2001-12-30 20:26:59 +00:00
augustss
bfc3660fb1
Add some more DIAGNOSTIC tests.
...
Make usb_match_device() match on USB_PRODUCT_ANY.
2001-12-24 21:36:15 +00:00
augustss
2fdd0f5a4b
Some more paranoia checks when DIAGNOSTIC.
2001-12-12 15:38:58 +00:00
augustss
22735e5d44
Move usbd_clear_endpoint_toggle() prototype to usbdi.h.
2001-12-12 15:23:58 +00:00
augustss
02aa2a59bc
Handle vendor/product lookup with a common routine.
2001-12-03 01:47:12 +00:00
augustss
23d4159897
Add a subroutine to search for a vendor/product pair.
2001-12-02 23:25:25 +00:00
augustss
7467533f5a
Improve dump routine slightly.
2001-11-22 04:31:01 +00:00
augustss
df1a49923c
Fix indentation and typos.
2001-11-21 15:37:41 +00:00
augustss
7e4459fe10
Keep track of device speed for USB 2.0.
2001-11-20 13:48:03 +00:00
augustss
b684cbc2a7
usbd_interface2device_handle() cannot fail.
2001-11-15 15:15:58 +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
3d963db4f2
Add some dump routines for debugging.
2001-11-10 16:54:56 +00:00
augustss
f14db62d03
Add a DIAGNOSTIC.
2001-04-17 00:05:33 +00:00
augustss
38c02444d9
Finally get rid of the UGLY and EVIL hack for avoiding tsleep().
2001-04-13 11:19:58 +00:00
augustss
e8db629494
Add code to use soft interrupt to handle USB interrupt processing.
...
Don't enable the code since it doesn't work with the kludgy Ethernet drivers.
2001-01-21 02:39:52 +00:00
augustss
79c6c8ec3f
Make this compile again after const-ification.
2001-01-19 04:01:10 +00:00
augustss
d9c7baa183
Add a way to do control transfers on other pipes than the default pipe.
2000-09-23 21:02:04 +00:00
augustss
1c94b92bc4
Initialize pointer before doing free of it.
2000-06-06 11:36:21 +00:00
augustss
c6ddc6009b
Make it compile with USB_DEBUG.
2000-06-01 15:51:26 +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
18cd73168e
Be more careful when setting the alternate interface so we don't end up with
...
nothing set at all if it fails.
2000-05-31 16:14:42 +00:00
augustss
30c20f930f
Change my email address.
2000-04-27 15:26:44 +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
9609f4caa2
Add a comment.
2000-03-28 09:48:25 +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
augustss
0069eba19b
Some cleanup and renaming of the callouts used in USB drivers.
2000-03-24 22:03:28 +00:00
thorpej
6a6358ed5c
Shake out some bugs from the callout changes.
2000-03-23 18:59:10 +00:00
augustss
e0d3ede01c
Get the status right when a polled transfer times out.
2000-03-08 15:34:10 +00:00
augustss
2dda67d4a2
Fix typo in argument to ratecheck().
2000-03-02 15:49:29 +00:00
augustss
d6c4ac7ff2
Use ratecheck() to limit error messages on disconnect.
...
Break out some common functionality.
2000-03-02 12:37:50 +00:00
augustss
76c14cd322
Don't stall the control pipe on error.
2000-02-08 18:46:03 +00:00
augustss
c9aa323521
Change the way the HC done method is invoked a little.
2000-01-31 20:13:07 +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
21863071b1
Move the zeroing of the xfer to the individual methods.
2000-01-18 20:23:42 +00:00
augustss
f14036861f
Turn xfer allocation into a method in the HC driver. The reason is that
...
an HC driver may want to subclass the xfer to have additional private fields.
2000-01-18 20:11:00 +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
67ad556c60
Get timeout right in the gruesome hack.
2000-01-16 13:34:51 +00:00
augustss
eb7268f16c
XXX Add a temporary, gruesome hack. It allows transfers to
...
XXX be done using delay() instead of tsleep().
XXX This enables transfers to be made from an interrupt context, which
XXX is needed until some more threads are added to the kernel.
XXX Using this hack (which is rare) causes the kernel to busy-wait
XXX for up to 1 ms at splusb().
2000-01-16 13:22:18 +00:00
augustss
c664f35fc5
Let usbd_set_polling() work on a usbd_device_handle instead of
...
a usbd_interface_handle.
2000-01-16 09:37:18 +00:00
augustss
18f862c072
More USB_DEBUG and DIAGNOSTIC output.
1999-11-28 22:49:53 +00:00
augustss
77bb4d8ce2
Cosmetic change.
1999-11-26 01:40:01 +00:00
augustss
3386c68b46
Cosmetic changes and some small improvements. From FreeBSD and Nick Hibma.
1999-11-18 23:32:25 +00:00
augustss
cdaec29859
A few more purely stylistic changes that I missed in the last round.
1999-11-17 23:00:49 +00:00