John Baldwin
58ccf5b41c
Remove unneeded includes of <sys/linker_set.h>. Other headers that use
...
it internally contain nested includes.
Reviewed by: bde
2011-01-11 13:59:06 +00:00
Hans Petter Selasky
876cab6fc2
Fix compiler warnings.
...
Submitted by: Alexander Best (arundel)
Approved by: thompsa (mentor)
2010-11-13 19:26:45 +00:00
Andrew Thompson
910cb8feb9
Add missing MODULE_VERSION() definitions, this resolves problems around
...
duplicate module loads.
PR: usb/125736
Submitted by: danger, mm
Reviewed by: hselasky
2010-09-01 23:47:53 +00:00
Andrew Thompson
b850ecc180
Change USB_DEBUG to #ifdef and allow it to be turned off. Previously this had
...
the illusion of a tunable setting but was always turned on regardless.
MFC after: 1 week
2010-04-22 21:31:34 +00:00
Joel Dahl
7e4b1c0608
The NetBSD Foundation has granted permission to remove clause 3 and 4 from
...
their software.
Obtained from: NetBSD
2010-03-03 10:18:03 +00:00
Andrew Thompson
0ca80d71d0
If the ID byte is non zero then we allow descriptors having multiple sizes.
...
Submitted by: HPS
Reported by: daichi
2009-12-09 20:15:05 +00:00
Nathan Whitehorn
b201cde68d
Reduce probe priority of USB input devices to BUS_PROBE_GENERIC from
...
BUS_PROBE_SPECIFIC. This allows device-specific drivers like atp to
attach reliably.
Reviewed by: hps
2009-11-11 03:17:51 +00:00
Andrew Thompson
ed6d949afd
- Make struct usb_xfer opaque so that drivers can not access the internals
...
- Reduce the number of headers needed for a usb driver, the common case is just usb.h and usbdi.h
2009-06-23 02:19:59 +00:00
Andrew Thompson
a593f6b8de
s/usb2_/usb_|usbd_/ on all function names for the USB stack.
2009-06-15 01:02:43 +00:00
Andrew Thompson
e0a69b51ac
s/usb2_/usb_/ on all typedefs for the USB stack.
2009-05-29 18:46:57 +00:00
Andrew Thompson
760bc48e7e
s/usb2_/usb_/ on all C structs for the USB stack.
2009-05-28 17:36:36 +00:00
Andrew Thompson
9360ae4073
Rename the usb sysctl tree from hw.usb2.* back to hw.usb.*.
...
Submitted by: Hans Petter Selasky
2009-05-21 01:48:42 +00:00
Andrew Thompson
f29a072444
- rename usb2_mode to usb_mode [1]
...
- change variable types to use the enum
Submitted by: Hans Petter Selasky [1]
2009-05-21 00:04:17 +00:00
Andrew Thompson
4eae601ebd
MFp4 //depot/projects/usb@159909
...
- make usb2_power_mask_t 16-bit
- remove "usb2_config_sub" structure from "usb2_config". To compensate for this
"usb2_config" has a new field called "usb_mode" which select for which mode
the current xfer entry is active. Options are: a) Device mode only b) Host
mode only (default-by-zero) c) Both modes. This change was scripted using
the following sed script: "s/\.mh\././g".
- the standard packet size table in "usb_transfer.c" is now a function, hence
the code for the function uses less memory than the table itself.
Submitted by: Hans Petter Selasky
2009-04-05 18:20:38 +00:00
Andrew Thompson
296ade6016
MFp4 //depot/projects/usb @159375,159376,159377
...
Further remove dependancy towards Giant.
Submitted by: Hans Petter Selasky
2009-03-20 18:56:27 +00:00
Andrew Thompson
9aef556d71
Rename the ushub device class back to uhub as it was in the old usb stack,
...
moused(8) looks for "uhub/ums" to decide if needs to load the module.
Reported by: Garrett Cooper
2009-03-02 05:37:05 +00:00
Andrew Thompson
ee3e3ff5c2
Change USB over to make_dev() for all device nodes, previously it hooked into
...
the devfs clone handler to open the (invisible) devices on the fly.
The /dev entries are layed out as follows,
/dev/usbctl = master device
/dev/usb/0.1.0.5 = usb device, (<bus>.<dev>.<iface>.<endpoint>)
/dev/ugen0.1 -> usb/0.1.0.0 = ugen link to ctrl endpoint
This also removes the custom permissions model from USB. Bump
__FreeBSD_version to 800066.
Submitted by: rink (earlier version)
2009-02-27 17:27:16 +00:00
Andrew Thompson
02ac645488
Move the new USB stack into its new home.
2009-02-23 18:31:00 +00:00