summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usb.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* assign ehcidebug to USB_DEBUG ioctl argument.yuo2008-12-091-4/+16
| | | | | | | add priv check to the ioctl. only root priv should access these debug flags. ok deraadt@
* 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-19/+3
| | | | | | | | (which was used to define USB_USE_SOFTINTR). No binary changes. ok dlg, mk.
* Remove the definition and usage of the USB_DECLARE_DRIVER_CLASS andmbalmer2007-06-141-2/+17
| | | | | | | | USB_DECLARE_DRIVER macros. No binary change. ok dlg.
* Apply some KNF after the recent removal of macros and type definitions.mbalmer2007-06-131-5/+5
| | | | | | 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 the usb_proc_ptr type definition, which was really a 'struct proc *'mbalmer2007-06-111-8/+8
| | | | | | | | only. No binary change. ok mk.
* Remove the USB_GET_SC_OPEN macro. There is a double check for sc == NULL inmbalmer2007-06-111-2/+6
| | | | | | | | ulpt.c, I am aware of that and it will be changed later. No binary change. ok mk.
* Remove the definition and use of the USB_GET_SC macro, no binary change.mbalmer2007-06-111-2/+2
| | | | ok mk.
* More USB cleanup: In usb_port.h, get rid of the sel_klist #definemk2007-06-111-3/+3
| | | | | | | (which was there twice without gcc complaining) and update all uses of it. ok jsg mbalmer
* Get rid of the USBDEVPTRNAME macro.mbalmer2007-06-101-2/+2
| | | | | | No binary change. ok jsg.
* Remove the definition and use of USBDEVUNIT.mbalmer2007-06-101-3/+3
| | | | ok jsg.
* Remove the definition and use of the USBDEVNAME macro.mbalmer2007-06-101-5/+5
| | | | | | | (This might look easy, but it was a big diff. Thanks to dlg and especially jsg for looking over it; we found at least four mistakes in the initial diff.) ok jsg.
* Remove the definition and use of the USBDEV macro. It only created confusionmbalmer2007-06-101-2/+2
| | | | | | | | and the address of it's argument: USBDEV(sc->sc_dev) yields &sc->sc_dev. No binary changes. ok jsg.
* Remove definitions and usage of usb_callout and related macros. These macrosmbalmer2007-06-101-6/+8
| | | | | | | | 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
* Remove the "Static" declaration of many functions. It was defined to be emptymbalmer2007-06-051-22/+22
| | | | | | | and it was not consistently used. It was confusing as it suggested these functions were static, which they were not. discussed with dlg and jsg, ok jsg.
* Last part of FreeBSD/NetBSD sepcific code removal.mbalmer2007-06-041-17/+1
| | | | ok jsg@
* Farewell USB_{ATTACH,MATCH,DETACH}* you will not be missed.jsg2007-05-271-8/+8
| | | | ok deraadt@ krw@ mbalmer@
* Remove logprintf macrojsg2007-05-211-3/+3
|
* Reapplication of rev 1.36.pascoe2007-03-221-1/+7
| | | | | | | | | Wait the stable power delay on a USB hub only once per hub (not per port), and defer the delay for root hubs until the host controller event thread starts, permitting some concurrency. Speeds up the boot process dramatically when you have lots of host controllers. ok dlg@
* Backout pascoe@'s last USB change because it page faults at attachmentmglocker2007-03-181-7/+1
| | | | | | | | | time. Chris; Get your shiz fixed and tested for the next time. We have better todo then wasting our time by backing out untested stuff. OK deraadt, OK ckuethe
* Wait the stable power delay on a USB hub only once per hub (not per port),pascoe2007-03-181-1/+7
| | | | | | | | and defer the delay for root hubs until the host controller event thread starts, permitting some concurrency. Speeds up the boot process dramatically when you have lots of host controllers. ok dlg@
* poll errors should be POLLERR, not some random E valuetedu2006-11-011-2/+2
| | | | from alexandre ratchov. ok claudio
* get rid of the usb_port.h macros that wrap our kthread create functions.dlg2006-09-181-13/+10
| | | | looks ok pascoe@
* In a drivers activate() entry point, if on DVACT_DEACTIVATE it doesmiod2006-06-231-2/+2
| | | | | | something, then it MUST return zero on DVACT_ACTIVATE, not EOPNOTSUPP; this very popular bug has been cut and pasted a lot of times... ok deraadt@ mickey@
* Move contents of sys/select.h to sys/selinfo.h in preparation for amillert2005-11-211-2/+2
| | | | | userland-visible sys/select.h. Consistent with what Net and Free do. OK deraadt@, tested with full ports build by naddy@.
* make all usb1 controllers sleep until all the usb2 controllers have probeddlg2005-10-111-1/+16
| | | | | | | | | and handed over any usb1 devices to the companion. without this usb1 devices didnt appear till after root was mounted, which is frustrating if you want to use a usb keyboard to enter the root device. tested by kettenis@ and drahn@ ok drahn@ go for it deraadt@
* better way to do the reattachement of a devicedlg2004-12-121-1/+10
|
* put "do { } while (0)" wrappers on all the debug maroc functionsderaadt2004-07-081-3/+3
|
* This moves access to wall and uptime variables in MI code,tholo2004-06-241-4/+4
| | | | | | | | | | | | | | encapsulating all such access into wall-defined functions that makes sure locking is done as needed. It also cleans up some uses of wall time vs. uptime some places, but there is sure to be more of these needed as well, particularily in MD code. Also, many current calls to microtime() should probably be changed to getmicrotime(), or to the {,get}microuptime() versions. ok art@ deraadt@ aaron@ matthieu@ beck@ sturm@ millert@ others "Oh, that is not your problem!" from miod@
* Remove useless ``elm'' argument from the SIMPLEQ_REMOVE_HEAD macro.grange2004-05-041-2/+2
| | | | | | This matches our SLIST behaviour and NetBSD's SIMPLEQ as well. ok millert krw deraadt
* updated URLs from Jared Yanovich;jmc2003-11-071-3/+3
| | | | | | however, I did not apply the diff exactly. After hunting around I found URLs for the missing files, and the ../index.html link appears not to work. I replaced it with a more suitable link.
* Sync USB code with NetBSD.nate2003-07-081-58/+164
| | | | This includes numerous fixes and paves the way for usb 2.0 support.
* kqueue support for various usb devices including: usb, uhid, ugen,nate2003-06-271-1/+56
| | | | | and uscanner From NetBSD
* get rid of trailing whitespacenate2002-07-251-15/+15
|
* Please be more portable in usb landnate2002-07-111-1/+5
|
* no provate cdev_decl()s, they are in sys/conf.h nowmickey2002-07-101-3/+1
|
* make the timeout a function parameternate2002-07-091-2/+2
| | | | From NetBSD
* Meant to commit only ulpt and committed everything. Most things weren't readynate2002-05-071-170/+66
|
* Sync ulpt driver with NetBSDnate2002-05-071-66/+170
|
* prefix structure members to avoid name clashes.nate2002-05-021-7/+8
| | | | From NetBSD
* Synchronize usb code with NetBSD.nate2001-10-311-2/+2
|
* Sync with NetBSD. Tested with a USB keyboard, USB mouse, and three differentaaron2001-05-031-150/+76
| | | | kue(4) Ethernet devices.
* Another USB sync with NetBSD. We are still lacking an up-to-date umass(4)aaron2001-01-281-3/+3
| | | | | | 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-67/+26
| | | | 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-6/+7
|
* Sync with NetBSD. USB Ethernet drivers should work now.aaron2000-03-301-24/+16
|
* Much cleaner sync with NetBSD. Some #if defined() magic has been sent in theaaron2000-03-281-30/+43
| | | | | | 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).
* Fix typos.aaron2000-03-261-4/+5
|