summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usbdivar.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Don't use a pointer to an opaque softc, we'll need to access its unitmpi2012-05-151-6/+2
| | | | | | number. No functional change. ok miod@
* Remove usb_event_cookie_t type and instances of it found in various structs;miod2012-01-081-2/+1
| | | | leftover from the "usb event" stuff removal. Diff from Tobias Ulmer.
* * instead of NULLing pointers to interface descriptors in the uaa, markjakemsr2011-01-161-1/+3
| | | | | | | | | | | | | interfaces as being claimed in the usbd_device's copy of the interface descriptors * allow ugen(4) to be attached if there are unused interfaces in a configuration that has had drivers attached * make ugen(4) aware that it may be sharing a device with (an)other driver(s), and if so: * do not let ugen(4) change the configuration * do not let ugen(4) access the already claimed interfaces discussed with deraadt and miod
* * add a process reference counting variable to struct usbd_devicejakemsr2010-12-301-2/+3
| | | | | | * add functions to increment and decrement the reference count, and a function to wait until the reference count is zero ok martynas@
* * add dying flag to struct usbd_devicejakemsr2010-12-061-1/+2
| | | | | | | | | * add usbd_deactivate(), which should be use to set the dying flag in struct usbd_device * add usbd_is_dying(), which can be used to check if either the device or the associated bus dying flag has been set * use usbd_is_dying() to check if the deivce or bus is dying before issuing transfers or requests
* add a 'dying' flag to struct usbd_bus. use this to signify the busjakemsr2010-09-231-1/+2
| | | | | | | | | is dying, instead of setting a flag in struct usb_softc. as usbd_device_handle has a pointer to the usbd_bus it's attached to, usb devices, and functions they run or functions run on their behalf, can now easily check if their bus is dying. use this to stop usbd_do_request* from running and the usb task thread from adding new tasks when a device's bus is dying.
* instead of running usb_explore() from individual kthreads for eachjakemsr2010-09-231-3/+6
| | | | | | | USB bus, make usb_explore() a usb_task. reduces races during normal USB device detach, since now usb_tasks and detach happen in the same process. ok yuo@, matthew@ helped with the task thread loop
* Avoid using the trick of malloc'ing more than a struct to grow the arrayderaadt2009-11-121-2/+2
| | | | | | | | of the last element. Bad technique. Use a pointer to the array. The author (or later people) will often not pay attention to the consequences of structure padding & alignment issues when they add new fields to the base structure, and there will be fireworks. tested by jasper, too
* Get rid of __HAVE_GENERIC_SOFT_INTERRUPTS now that all our platforms support it.kettenis2009-11-041-4/+1
| | | | ok jsing@, miod@
* Reinstate SPLUSBCHECK checks (DIAGNOSTIC-only), but implemented as splassert(),miod2009-08-301-15/+1
| | | | | | | which is exactly what it was trying to do. Tested on all *hci controllers with a bunch of usb devices by at least ckuethe@ and I.
* add usb2.0 to usb1.1(ohci/uchi) handover request to usb subsystem.yuo2008-06-291-1/+3
| | | | | | | | | | | add new quirk entry for uvideo which is required isoc transfer. Some usb2.0 devices use isochronous transfer but current usb subsystem does not support isoc transfer in ehci(usb2.0) bus. This patch introduce new psuedo usb hub request UHF_PORT_DISOWN_TO_1_1 to handover the device to ehci to usb1.1 bus(ohci or uhci). ok mglocker@ deraadt@ fgsch@
* First pass at removing clauses 3 and 4 from NetBSD licenses.ray2008-06-261-8/+1
| | | | | | | | | Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
* Replace the USB_USE_SOFTINTR macro with __HAVE_GENERIC_SOFT_INTTERUPTSmbalmer2007-06-151-5/+1
| | | | | | | | (which was used to define USB_USE_SOFTINTR). No binary changes. ok dlg, mk.
* Remove the definition and (single) use of the DECLARE_USB_DMA_T macro.mbalmer2007-06-131-2/+6
| | | | | | No binary change. ok dlg.
* Apply some KNF after the recent removal of macros and type definitions.mbalmer2007-06-131-10/+7
| | | | | | No binary change. ok ray.
* Remove the definition and use of the device_ptr_t which was a struct device *.mbalmer2007-06-121-4/+4
| | | | | | No binary change. ok mk.
* Remove definitions and usage of usb_callout and related macros. These macrosmbalmer2007-06-101-3/+3
| | | | | | | | were used as a layer of confusion^Wabstraction around the timeout(9) API. No binary change. ok jsg.
* Mechanical removal of USBBASEDEVICE. No binary change.mk2007-06-061-2/+2
| | | | | | Tested by thib and myself. ok mbalmer jsg
* Forgot this in my last committ.mbalmer2007-06-041-15/+1
|
* addess -> addressmiod2007-05-201-2/+2
|
* Save and restore the data toggle value when a pipe to an endpointpascoe2006-05-311-1/+2
| | | | | | | | | | | | | | is closed and then reopened. This may be necessary now that we no longer clear endpoint stalls every time a pipe is opened. Previously we could assume an initial toggle value of zero because a clear-stall operation resets the device's toggle state. Derived from work in FreeBSD. This is most likely to affect devices like printers, which open pipes for short periods of time and close them again. ok dlg@
* Merge support for USB1 devices located beyond USB2 hubs, mostly from netbsd.pascoe2005-03-131-2/+7
| | | | | | | Supports bulk, control and interrupt pipes, letting USB1 keyboards and most network interfaces work when connected to a USB2 hub. ok dlg@
* get rid of uhub_reset_devicedlg2004-12-121-2/+1
|
* better way to do the reattachement of a devicedlg2004-12-121-1/+3
|
* code to let us cause a detach and reattach of a device from softwaredlg2004-12-091-1/+2
| | | | ok deraadt@
* Sync USB code with NetBSD.nate2003-07-081-10/+17
| | | | This includes numerous fixes and paves the way for usb 2.0 support.
* string cleanup; nate okderaadt2003-05-071-2/+2
|
* get rid of trailing whitespacenate2002-07-251-3/+3
|
* Meant to commit only ulpt and committed everything. Most things weren't readynate2002-05-071-17/+10
|
* Sync ulpt driver with NetBSDnate2002-05-071-10/+17
|
* Synchronize usb code with NetBSD.nate2001-10-311-3/+13
|
* Sync with NetBSD. Tested with a USB keyboard, USB mouse, and three differentaaron2001-05-031-3/+3
| | | | kue(4) Ethernet devices.
* Another USB sync with NetBSD. We are still lacking an up-to-date umass(4)aaron2001-01-281-4/+4
| | | | | | driver. I would appreciate it if someone with the hardware looked into it. I also have to take a closer look at changes to the USB Ethernet drivers, as well as import some drivers we are missing (uftdi, if_upl, yap, etc.)
* Sync with NetBSD. Too many changes to mention. For now I have skippedaaron2000-11-081-45/+42
| | | | umass.c and ukbd.c as the diffs are a bit hairier.
* sync with NetBSD... well almost. someone w/ the hw should check umass.fgsch2000-07-041-3/+6
|
* Sync with NetBSD. USB Ethernet drivers should work now.aaron2000-03-301-6/+4
|
* Much cleaner sync with NetBSD. Some #if defined() magic has been sent in theaaron2000-03-281-31/+42
| | | | | | form of a diff to augustss@netbsd.org so that future syncs will be very easy. This commit also adds support for ADMtek AN986 "Pegasus" based USB Ethernet, CATC USB-EL1210A based USB Ethernet, and USB Printers (all untested).
* Sync with NetBSD.aaron2000-03-261-34/+47
|
* sync with NetBSD.fgsch1999-11-071-4/+7
|
* Sync with NetBSD.fgsch1999-09-271-15/+50
|
* sync with NetBSD;fgsch1999-08-311-3/+3
| | | | struct device->bdevice.
* Sync with NetBSD;fgsch1999-08-271-8/+6
| | | | | | | Make sure not to call tsleep() from suspend/resume routine. Move more of the transfer completion processing to HC independent code. Fix some problems with transfer abort & timeout. Merge the soft_{td,qh} with the real {td,qh}. This saves time and space.
* Sync with NetBSD.fgsch1999-08-191-4/+4
|
* From NetBSD; USB support.fgsch1999-08-131-0/+242