summaryrefslogtreecommitdiff
path: root/sys/dev/usb/usb_subr.c
AgeCommit message (Expand)Author
2016-09-19Correctly check for valid maximum packet size.Martin Pieuchot
2016-09-19``bMaxPacketSize'' is reported as a power of 2 for super speed devicesMartin Pieuchot
2016-09-18Ensure that the device descriptor ``bMaxPacketSize'' value is usableMartin Pieuchot
2016-09-12Split usbd_fill_iface_data() in two and introduce usbd_parse_idesc() aMartin Pieuchot
2016-09-02Pass M_ZERO when allocating memory for "struct usbd_endpoint".Martin Pieuchot
2016-09-02Cleanup usbd_fill_iface_data() to make it easier to check for badMartin Pieuchot
2016-09-02Do not free the configuration descriptor without setting ``dev->cdesc''Martin Pieuchot
2016-09-02Prevent a NULL dereference, triggerable with a crafted configurationMartin Pieuchot
2016-05-23Get rid of usbd_get_device_strings() because we use it only once.Martin Pieuchot
2016-05-21Free the cache if the string cannot be retrieved. This allows thePatrick Wildt
2016-05-18Cache vendor, product and serial info for each usb device. This allowsPatrick Wildt
2016-03-03Convert uiomovei to uiomove. Fixes a few integer truncations along theStefan Kempf
2016-01-14Prevent a NULL dereference when detaching a USB device with ugen(4)Martin Pieuchot
2015-10-24Wait a short while between setting a USB device's address and reloadingStefan Sperling
2015-03-23Return an error if getting the config descriptor failed.Jonathan Gray
2014-12-21Always clear a port reset feature after setting it, or at least try to.Martin Pieuchot
2014-12-13yet more mallocarray() changes.Doug Hogan
2014-12-09More malloc() -> mallocarray() in the kernel.Doug Hogan
2014-11-10Remove USB locators. They are currently unused and this wont change dueMartin Pieuchot
2014-11-01Remove the port status argument from usbd_reset_port(). We don't doMartin Pieuchot
2014-11-01Use usbd_set_port_feature() instead of rerolling it.Martin Pieuchot
2014-10-05Do not re-establish the default pipe twice for every controller. MoveMartin Pieuchot
2014-10-01Check that the speed of a new device does not exceed its parent's speedMartin Pieuchot
2014-08-10Do not allocate space for the whole structure when we just want to storeMartin Pieuchot
2014-08-09Do not store the whole USB hub descriptor in the "struct usbd_hub"Martin Pieuchot
2014-07-12add a size argument to free. will be used soon, but for now default to 0.Ted Unangst
2014-07-12Remove incorrect comment about how autoconf(9) works and documentMartin Pieuchot
2014-07-12Only detach the USB device you disconnected, fix a regression reportedMartin Pieuchot
2014-07-10Always assign the device address found by the USB stack even if itMartin Pieuchot
2014-07-09autoconf(9) is your friend and it knows you more than you think. ItMartin Pieuchot
2014-07-09Adds an optional bus function to set the address of a new device andMartin Pieuchot
2014-03-08Pass M_ZERO to malloc(9) when allocating usbd pipes to make sure toMartin Pieuchot
2014-03-07Print the wrong device descriptor's bMaxPacketSize before correcting itMartin Pieuchot
2014-02-09Make sure to close the default pipe before re-opening it when we wantMartin Pieuchot
2014-02-09Do not allow to unconfigure a device by setting the configurationMartin Pieuchot
2014-01-15Remove a hack to update the address and packet length for every deviceMartin Pieuchot
2013-11-19Kill matchlvl usage throughout the usb stack.Paul Irofti
2013-11-02Remove a layer of abstraction for fetching a configuration descriptor.Martin Pieuchot
2013-08-21Unswap address and configuration value arguments in a debug printf.Martin Pieuchot
2013-08-13Remove bogus and useless refcounting of usbd pipes that could lead toMartin Pieuchot
2013-08-08These functions should only used in the usb-autoconf glue, do not exposeMartin Pieuchot
2013-08-08Use the same functions to abort and close the control pipe of a deviceMartin Pieuchot
2013-04-15Get rid of various 'typedef struct' definitions and use plain structureMarcus Glocker
2013-04-10Merge usbd_get_device_desc() into the only function using them.Martin Pieuchot
2013-04-10Merge usb_devinfo* helper functions into usbd_print(), nothing else useMartin Pieuchot
2013-04-09There's no need for usbd_get_config_desc_full() so just call usbd_get_desc()Martin Pieuchot
2013-04-01Make ugen_get_cdesc() a generic function by renaming it to usbd_get_cdesc()Marcus Glocker
2013-03-28proc.h is way too much header for usb to handle.Ted Unangst
2013-03-16No need for two similar functions to free/remove USB device descriptors.Martin Pieuchot
2012-05-15Set the usb(4) unit number as bus number. This fixes a possibleMartin Pieuchot