summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/uplcom.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* The usb configuration descriptor parameter providing the number ofmglocker2021-01-271-2/+2
| | | | | | available device interfaces is called 'bNumInterfaces'. ok phessler@, thfr@ (who provided the man page diff)
* Add support for the PL2303HXN series chips to uplcom(4). The mainpatrick2020-11-131-18/+62
| | | | | | | | | | difference is that is uses a different bRequest value for READ/WRITE. Apart from that the flow control bits are in a different register and resetting the data pipes uses different bits as well. We can check if its an HXN by reading an HX-only register and checking for a fail. ok kettenis@
* Nuke all occurrences of usbd_abort_pipe() if it gets called rightmglocker2020-07-311-3/+1
| | | | | | | | | | before usbd_close_pipe(), since usbd_close_pipe() already takes care about aborting non-empty pipes. As investigated by gerhard@ usbdi.c rev. 1.57 did add usbd_abort_pipe() to usbd_close_pipe(), but the drivers didn't get cleaned up afterwards. ok gerhard@
* Remove dead code which is actually duplicated a few lines abovejasper2020-03-111-6/+1
| | | | | | | | right after err is set. Coverity CID 975917 ok kettenis@ kn@
* USB_DEBUG -> UPLCOM_DEBUG.mpi2018-11-181-2/+2
|
* Add an HP LD220 pole displaymikeb2018-06-181-1/+2
| | | | Diff from Paul de Weerd (weerd@), tested by Jan-Piet Mens, thanks!
* Remove duplicate device identification so my usb drive attaches as a umasstb2018-04-271-2/+1
| | | | | | and not as a uplcom. From mpi, ok deraadt, no objection kettenis
* 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-17/+17
| | | | | 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.
* Kill unused ioctl(2)s.mpi2016-05-241-36/+2
| | | | ok deraadt@
* 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@
* Kill the last dumb DVACT_DEACTIVATE handlers.mpi2014-07-121-29/+11
|
* 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-061-20/+18
| | | | Tested and okay mpi@
* Get rid of various 'typedef struct' definitions and use plain structuremglocker2013-04-151-12/+13
| | | | | | | | | 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@
* BenQ M32 GSM/GPRS modem uses a custom product ID prolific PL2303; Mark Peoplesderaadt2010-11-161-1/+2
|
* 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@
* Palm 700WX from and tested by todd@jsg2008-03-031-1/+2
| | | | discussed with deraadt@.
* I-O Data USB-RSAQ5 serial from Masao Uebayashi in NetBSD.jsg2008-02-221-1/+2
| | | | Corega CG-WLUSB2GL WLAN from KIYOHARA Takashi in NetBSD.
* add Y.C. Cable USB-Serial adapterokan2008-01-221-2/+3
| | | | ok jsg@
* treat usb vendor/product names as a locator, and have usbd_print handle it,deraadt2007-10-111-8/+2
| | | | | | 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
* correct type printingderaadt2007-09-141-2/+2
|
* adapt to new hx/non-hx type-selection algorithm from linux/dragonfly; ok jsgderaadt2007-09-131-4/+13
|
* new productderaadt2007-09-121-2/+3
|
* 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 usb_proc_ptr type definition, which was really a 'struct proc *'mbalmer2007-06-111-3/+3
| | | | | | | | only. No binary change. ok mk.
* Remove the definition and use of the USBDEVNAME macro.mbalmer2007-06-101-16/+16
| | | | | | | (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-16/+16
| | | | | | | 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-22/+23
| | | | ok deraadt@ krw@ mbalmer@
* Remove logprintf macrojsg2007-05-211-2/+2
|
* Add an unbranded device I have, chip says its a PL-2303HX.jsg2007-04-231-1/+2
|
* add the Belkin serial adapter.brad2006-08-041-1/+2
|
* Remove comments in device list that duplicate man page,jsg2006-07-011-35/+18
| | | | | sort device list while here. ok deraadt@
* 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@
* Add a bunch more uplcom devices found in Linux driver.jsg2006-04-151-2/+17
|
* AirPrime EVDO does not work with uplcom as suspected.jsg2006-02-161-4/+2
| | | | Noticed by Ben Lovett.