summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/umct.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Delete unnecessary <sys/file.h> includesguenther2017-12-301-2/+1
| | | | ok millert@ krw@
* A pile of sizes to free(9). In test for a few days in snapshots.deraadt2017-04-081-3/+3
| | | | | Errors will result in nice clean panic messages so we know what's wrong. Reviewed by dhill visa natano jsg.
* Avoid calling usbd_set_config_index() in *_attach() and let the stackmpi2016-09-021-12/+2
| | | | | | | do it instead. If anything bad happen due to a malformed descriptor it makes no sense to try to attach a driver, and bail before probing.
* Two extra messages required after sending a baud rate update, as observedjmatthew2015-04-261-5/+23
| | | | | | | | | | in the linux mct_u232 driver, which apparently got them by sniffing usb traffic from the vendor's windows 98 driver. Makes this device work at 115200: umct0 at uhub0 port 2 "Belkin Components F5U109 Serial" rev 1.10/1.02 addr 2 ok dlg@
* Remove some includes include-what-you-use claims don'tjsg2015-03-141-2/+1
| | | | | | | have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels. ok tedu@ deraadt@
* Nuke yet more obvious #include duplications.krw2014-11-181-2/+1
| | | | ok miod@
* tedu another bunch of DVACT_DEACTIVATE handlers that do nothing but setmpi2014-07-121-29/+11
| | | | the 'dying' flag.
* add a size argument to free. will be used soon, but for now default to 0.tedu2014-07-121-3/+3
| | | | after discussions with beck deraadt kettenis.
* Clean-up usbd_abort_pipe() usage.pirofti2013-11-151-5/+2
| | | | | | | This function never fails. So change it's return type to void and adjust the copy-pasted callers that were checking the return. "If it compiles, ok" mpi@
* Sort-out activate functionality for ucom(4) and it's parents.pirofti2013-11-151-5/+2
| | | | | | | | | | | | The child should not have to call the parent for deactivation. The parent should handle it. So kill the activate routine in ucom(4) and adapt the parents to no longer call it. Also remove sc_dying in ucom(4) and use usbd_is_dying() instead. Okay mpi@.
* Replace sc_dying in favour of usbd_is_dying() and usbd_deactivate().pirofti2013-11-071-14/+12
| | | | Okay mpi@
* Get rid of various 'typedef struct' definitions and use plain structuremglocker2013-04-151-8/+8
| | | | | | | | | definitions instead. We don't change usb.h for now to stay compatible with userland. Tested by mpi@ on macppc and myself on i386. ok mpi@
* proc.h is way too much header for usb to handle.tedu2013-03-281-2/+1
|
* you probably don't need to include vnode.h or reboot.h. you most definitelytedu2013-03-281-2/+1
| | | | | absolutely do not need to include vnode.h because it includes uvm_extern.h and you want the idiotic TRUE FALSE defines from uvm.
* Remove config_activate() and DVACT_ACTIVATE. PCMCIA's the only thingmatthew2011-07-031-4/+1
| | | | | | | | that's ever used it, and it's long since been changed to use DVACT_{QUIESCE,SUSPEND,RESUME} instead. ok deraadt@, dlg@; miod@ also agreed with this idea when I brought it up a few weeks ago
* garbage collect "usb events". without /dev/usb there is no way to accessjakemsr2011-01-251-7/+1
| | | | | | them from userland, and nothing in the kernel uses them. ok krw@, miod@
* - use usb_lookup() instead of handrolled macrojasper2010-12-171-4/+3
| | | | ok jakemsr@
* remove dying flag in detach() function.yuo2010-09-241-2/+1
| | | | | | The dying flag will be set in activate()/DEACTIVATE. ok deraadt@
* Get rid of devact enum, substitute it with an int and coresponding defines.pirofti2009-10-131-3/+3
| | | | | | This is needed for the addition of further suspend/resume actions. Okay deraadt@, marco@.
* 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@
* treat usb vendor/product names as a locator, and have usbd_print handle it,deraadt2007-10-111-6/+1
| | | | | | 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
* 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-18/+18
| | | | | | No binary change. ok ray.
* Remove the definition and use of the device_ptr_t which was a struct device *.mbalmer2007-06-121-3/+3
| | | | | | No binary change. ok mk.
* Remove the definition and use of the USBDEVNAME macro.mbalmer2007-06-101-12/+12
| | | | | | | (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-3/+3
| | | | | | | | and the address of it's argument: USBDEV(sc->sc_dev) yields &sc->sc_dev. No binary changes. 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-15/+15
| | | | | | | 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.
* Farewell USB_{ATTACH,MATCH,DETACH}* you will not be missed.jsg2007-05-271-18/+19
| | | | ok deraadt@ krw@ mbalmer@
* Remove logprintf macrojsg2007-05-211-2/+2
|
* 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@.
* spaces vs tabbrad2005-08-011-3/+3
|
* Don't keep the devinfo string on the stack, instead use malloc/free.brad2005-08-011-4/+5
| | | | | | | | This should cure some rare stack overflows. From augustss NetBSD ok dlg@ pascoe@
* more uplcom and umct; jsg@goblin.cx pulled from netbsdderaadt2004-09-201-1/+3
|
* from freebsd via netbsd via lokideraadt2004-07-111-5/+8
| | | | | | | The MCT advertises both the interrupt and bulkin endpoints as interrupts. Go from assuming that the first enumerated interrupt is the bulkin (since this may not be the case) to assuming that the true interrupt endpoint will have a 0x2 wMaxPacketSize.
* put "do { } while (0)" wrappers on all the debug maroc functionsderaadt2004-07-081-2/+2
|
* Belkin F5U109; from NetBSD, ok henningpvalchev2004-04-201-2/+5
|
* more updated URLs from Jared Yanovich;jmc2003-11-071-2/+2
|
* nuke unused variable, from NetBSDnate2003-05-191-4/+3
|
* string cleanup; nate okderaadt2003-05-071-2/+2
|
* sync with NetBSDnate2002-11-111-3/+2
|
* update $NetBSD$ tagsnate2002-07-251-2/+2
|
* get rid of trailing whitespacenate2002-07-251-8/+8
|
* Add the umct serial driver for netbsd.nate2002-06-111-0/+631
| | | | | This currently does not work properly with the device that I have, so I will not add it to GENERIC
* Meant to commit only ulpt and committed everything. Most things weren't readynate2002-05-071-631/+0
|
* Sync ulpt driver with NetBSDnate2002-05-071-0/+631