summaryrefslogtreecommitdiff
path: root/sys/dev/usb/uhub.c
AgeCommit message (Collapse)Author
2009-11-13do not need to pad up the uhub allocation anymore, from miodTheo de Raadt
2009-11-12Avoid using the trick of malloc'ing more than a struct to grow the arrayTheo de Raadt
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
2009-10-13Get rid of devact enum, substitute it with an int and coresponding defines.Paul Irofti
This is needed for the addition of further suspend/resume actions. Okay deraadt@, marco@.
2008-06-26First pass at removing clauses 3 and 4 from NetBSD licenses.Ray Lai
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@
2007-10-11treat usb vendor/product names as a locator, and have usbd_print handle it,Theo de Raadt
so that it shows up before the :. as a result, all the usb devices do not need to have name printing code anymore. all this now works and prints nicely because usbd_probe_and_attach() is serialized. ok kettenis
2007-06-14Remove the definition and usage of the USB_DECLARE_DRIVER_CLASS andMarc Balmer
USB_DECLARE_DRIVER macros. No binary change. ok dlg.
2007-06-12Remove the definition and use of the device_ptr_t which was a struct device *.Marc Balmer
No binary change. ok mk.
2007-06-10Remove the definition and use of the USBDEVNAME macro.Marc Balmer
(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.
2007-06-10Remove the definition and use of the USBDEV macro. It only created confusionMarc Balmer
and the address of it's argument: USBDEV(sc->sc_dev) yields &sc->sc_dev. No binary changes. ok jsg.
2007-06-06Mechanical removal of USBBASEDEVICE. No binary change.Michael Knudsen
Tested by thib and myself. ok mbalmer jsg
2007-06-06Shrink dmesg output. Tweaked version of a diff from tedu@Jonathan Gray
ok by a bunch of people
2007-06-05Remove the "Static" declaration of many functions. It was defined to be emptyMarc Balmer
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.
2007-06-01Remove more Free(?)BSD and NetBSD #ifdef/#endifs. No functional norMarc Balmer
binary change. ok jsg
2007-05-27Farewell USB_{ATTACH,MATCH,DETACH}* you will not be missed.Jonathan Gray
ok deraadt@ krw@ mbalmer@
2007-05-21Remove logprintf macroJonathan Gray
2007-03-22Reapplication of rev 1.36.Christopher Pascoe
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@
2007-03-18Backout pascoe@'s last USB change because it page faults at attachmentMarcus Glocker
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
2007-03-18Wait the stable power delay on a USB hub only once per hub (not per port),Christopher Pascoe
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@
2006-06-26fix typos in debug messagesMichael Coulter
ok pascoe@
2006-06-23In a drivers activate() entry point, if on DVACT_DEACTIVATE it doesMiod Vallat
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@
2005-08-01Don't keep the devinfo string on the stack, instead use malloc/free.Brad Smith
This should cure some rare stack overflows. From augustss NetBSD ok dlg@ pascoe@
2005-03-28shorten dmesgDavid Gwynne
requested by deraadt@ ok pascoe@
2005-03-13Merge support for USB1 devices located beyond USB2 hubs, mostly from netbsd.Christopher Pascoe
Supports bulk, control and interrupt pipes, letting USB1 keyboards and most network interfaces work when connected to a USB2 hub. ok dlg@
2004-12-12get rid of uhub_reset_deviceDavid Gwynne
2004-12-12better way to do the reattachement of a deviceDavid Gwynne
2004-12-09code to let us cause a detach and reattach of a device from softwareDavid Gwynne
ok deraadt@
2004-07-11from netbsd via loki@animata.net, revision 1.68Theo de Raadt
Ignore a port error that happens to come in at the same time as a connect status change. Some root hubs seem to report both.
2004-07-11from netbsd via loki@animata.netTheo de Raadt
uhub.c revision 1.65, ohci.c revision 1.146, uhci.c revision 1.177 Use the correct wValue to get hub desriptors. Also, make wValue checks of root hub codes less strict.
2004-07-08put "do { } while (0)" wrappers on all the debug maroc functionsTheo de Raadt
2004-07-07silence somethingTheo de Raadt
2004-06-10From FreeBSD (via rees@umich.edu and nate)Peter Valchev
Initialise `restartcnt' in the newly malloc'd usbd_port structure, as otherwise the junk it contains may cause uhub_explore to give up without ever trying to restart the port. This fixes the following errors I was seeing with a VIA UHCI controller: uhub0: port error, restarting port 1 uhub0: port error, giving up port 1
2003-07-08Sync USB code with NetBSD.Nathan Binkert
This includes numerous fixes and paves the way for usb 2.0 support.
2003-05-19fix documentation links from netbsdNathan Binkert
2003-05-07string cleanup; nate okTheo de Raadt
2002-07-25get rid of trailing whitespaceNathan Binkert
2002-07-10Handle resetting port better.Nathan Binkert
From NetBSD
2002-05-07Meant to commit only ulpt and committed everything. Most things weren't readyNathan Binkert
2002-05-07Sync ulpt driver with NetBSDNathan Binkert
2001-10-31Synchronize usb code with NetBSD.Nathan Binkert
2001-05-03Sync with NetBSD. Tested with a USB keyboard, USB mouse, and three differentAaron Campbell
kue(4) Ethernet devices.
2001-01-28Another USB sync with NetBSD. We are still lacking an up-to-date umass(4)Aaron Campbell
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.)
2000-11-08Sync with NetBSD. Too many changes to mention. For now I have skippedAaron Campbell
umass.c and ukbd.c as the diffs are a bit hairier.
2000-07-04sync with NetBSD... well almost. someone w/ the hw should check umass.Federico G. Schwindt
2000-03-30Sync with NetBSD. USB Ethernet drivers should work now.Aaron Campbell
2000-03-28Much cleaner sync with NetBSD. Some #if defined() magic has been sent in theAaron Campbell
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).
2000-03-26Sync with NetBSD.Aaron Campbell
1999-11-07sync with NetBSD.Federico G. Schwindt
1999-09-27Sync with NetBSD.Federico G. Schwindt
1999-08-31sync with NetBSD;Federico G. Schwindt
struct device->bdevice.
1999-08-27Sync with NetBSD;Federico G. Schwindt
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.