Commit Graph

82 Commits

Author SHA1 Message Date
jmcneill
cd4f8360bb High speed isochronous transfer support, from Jeremy Morse as part of
Google Summer of Code 2008.
2008-08-02 23:14:34 +00:00
jmcneill
065296bfe0 USB video class definitions, from Patrick Mahoney for GSoC 2008. 2008-06-18 14:20:31 +00:00
drochner
736f4fcd27 some cleanup:
-unifdef
-since the roothub attach doesn't use locators, don't call
 config_stdsubmatch() -- it is a no-op in that case
-ifsubmatch has configuration and interface always set to useful values,
 remove unnecessary checks
-remove now unused locator definitions from shared header
2008-05-26 18:00:33 +00:00
martin
ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
perry
b6a2ef7569 Convert many of the uses of __attribute__ to equivalent
__packed, __unused and __dead macros from cdefs.h
2007-12-25 18:33:32 +00:00
drochner
3ccaca911b -remove "bDescriptorSubtype" from usb_descriptor_t - this is not part
of the common USB spec
-Fix length of string descriptor: Descriptors have only a byte field
 for length, so 2*127+2 is already too much. Some devices obviously
 don't reply to string read requests with impossible length which
 happened if "sizeof(usb_string_descriptor_t) was used.
2007-02-26 13:58:36 +00:00
drochner
60e1a2a1cb Kill the "bus powered" bit in the configuration descriptor. This doesn't
exist in newer spec revisions, and is recommended to be set to 1.
So call it _MBO and also use it in the fake root hub descriptors, just
for sanity, even if nothing ever looks at it.
2007-01-19 22:46:21 +00:00
pavel
9b8e4189e5 Restore compatibility of USB_DEVICEINFO ioctl and reads from /dev/usb with
NetBSD 3.x. Patch from Stephan Thesing provided in
http://mail-index.netbsd.org/current-users/2006/03/21/0002.html, with some
modifications by me.
See also
http://mail-index.netbsd.org/current-users/2006/08/29/0017.html

The code is conditionally compiled depending on COMPAT_30.

Also fix a leak of struct usb_event in usbread() introduced while converting
on-stack variables to dynamic allocation.

Reviewed by martin@.
2006-12-03 22:34:58 +00:00
gdt
f9f3dc0a85 Add UGEN_BULK_RA_WB, which allows users of ugen(4) to request read
ahead and write behind, improving performance for the Universal
Software Radio Peripheral (USRP) used with GNU Radio.

Enable UGEN_BULK_RA_WB in GENERIC and GENERIC_LAPTOP; behavior is
unchanged unless the new ioctl is called.

This code was written by Joanne Mikkelson under funding from DARPA's
ACERT program.

ok'd by christos@, tested by Berndt Josef Wulf
2006-07-24 14:24:48 +00:00
christos
95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
augustss
c2c00331d7 Use UTF8 to encode strings read from the device (instead of using '?' for
characters >=0x100).

Also add serial number string to the device information struct.
2005-05-02 15:32:18 +00:00
mycroft
dbee7a2507 In the "seemed like a good idea until I found the fatal flaw" department...
Attempting to read a maximum-size string descriptor causes my kue device to go
completely apeshit.  So, go back to the original method, but allow the device
to return a shorter string than it claimed.
2004-06-23 06:27:54 +00:00
mycroft
1bce39942b Whoops, use the correct value for the maximum string descriptor length. 2004-06-23 05:23:19 +00:00
augustss
9859bd8412 Increasre the reset recovery time. 2002-09-22 23:20:50 +00:00
augustss
f7f7bb1ee4 Update class codes. 2002-08-22 10:15:12 +00:00
augustss
b8a7c4ede8 Add Bluetooth related classes etc. 2002-08-22 10:08:34 +00:00
augustss
86650920c9 Get rid of trailing white space. 2002-07-11 21:14:24 +00:00
augustss
ae9f835cf2 A small fix for FreeBSD. 2002-02-26 10:27:49 +00:00
augustss
ab875c9c5c Some minor fixes from FreeBSD. 2002-02-26 02:00:16 +00:00
augustss
306aa99ff8 Some portability improvement.
Add define for usb.h version.
2002-02-25 00:46:37 +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
371722006a Add a missing subclass definition. 2002-01-01 14:23:37 +00:00
augustss
496dc72437 Add some definitions from the USB OTG (On The Go) spec. 2001-12-29 15:44:11 +00:00
augustss
22fd9bbb5f Add IrDA related defines. 2001-12-06 17:00:26 +00:00
augustss
6f95b070ca Update mass storage protocol numbers. 2001-11-23 01:14:45 +00:00
augustss
9dae283057 Add another "feature". 2001-11-21 16:12:56 +00:00
augustss
e5353fd3b5 Use longer reset for root hubs (as told in the spec). 2001-11-20 16:08:10 +00:00
augustss
482dbdf4e3 More USB 2.0 definitions. 2001-11-20 13:46:09 +00:00
augustss
1f6462461a Make it possible to report device speeds with ioctl(USB_DEVICEINFO). 2001-11-17 01:49:53 +00:00
augustss
4469f30685 Add some USB 2 related definitions. 2001-11-06 12:29:48 +00:00
nathanw
9f36932334 Add the constant for the IEEE 1284-mode protocol for the printer
class, as given in revision 1.1 of the USB printer class spec.
2001-07-23 15:17:50 +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
fff66007d9 Reorder a little. 2000-06-01 15:43:32 +00:00
augustss
53f83c5533 Use attribute packed for on-the-wire data structures. 2000-05-30 10:10:17 +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
4379f92630 Make sure to read the full hub descriptor (including the deprecated field). 2000-04-21 18:57:40 +00:00
augustss
878deae672 Add a define for some slack port power up time. 2000-04-21 16:01:31 +00:00
augustss
358b947b7b Correct a typo. 2000-04-03 13:40:05 +00:00
augustss
81c03592ef Rename bulk only protocol (following FreeBSD). 2000-03-24 22:16:42 +00:00
augustss
c6eb2d324c Add ioctl USB_SET_REPORT for uhid. This will allow manipulating the
feature items.
2000-03-19 22:23:28 +00:00
augustss
7d05674ba7 Distinguish between device and interface classes.
(I finally found a document that said that they were different.)
2000-02-29 21:37:00 +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
3386c68b46 Cosmetic changes and some small improvements. From FreeBSD and Nick Hibma. 1999-11-18 23:32:25 +00:00
augustss
a5b6bed471 Add a macro to extract the isoc type. 1999-10-20 21:02:39 +00:00
augustss
cefd751ca7 Remove FreeBSD tags that got in there by accident.
Add #include <sys/time.h> to usb.h.
1999-10-13 18:52:54 +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
df435c83b2 Add an event mechanism so that a userland process can watch devices come
and go.
1999-10-12 11:54:56 +00:00
augustss
97a24aa488 Make defines follow the standard. 1999-09-16 21:53:58 +00:00
augustss
98b6524413 * Move DMA buffer allocation to HC independent code.
* Remove (almost) unused definitions USBD_XFER_OUT and USBD_XFER_IN.
1999-09-11 08:19:26 +00:00