summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/umidi.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* If the MIDI UART is not ready for output, don't spin at IPL_CLOCK;ratchov2012-03-301-51/+17
| | | | | | | just return and make the midi(4) driver retry later. UART buffers are large enough for this, except eap(4) which uses interrupts for output. help from and ok jsg@
* 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
* Back out inadvertently commited change.oga2011-06-231-20/+24
| | | | This one wanted some more comments before commit.
* Don't leak the ctrl_data in uvideo_queryctrl, uvideo_s_ctrl and uvideo_g_ctrl.oga2011-06-231-24/+20
| | | | | | | If one of the usb calls we did here failed we'd return immediately and not free our buffer. ok miod@
* M_WAITOK cleanup of two cases:mk2011-06-171-6/+6
| | | | | | | | | | | | | | | | 1) Allocating with M_WAITOK, checking for NULL, and calling panic() is pointless (malloc() will panic if it can't allocate) so remove the check and the call. 2) Allocating with M_WAITOK, checking for NULL, and then gracefully handling failure to allocate is pointless. Instead also pass M_CANFAIL so malloc() doesn't panic so we can actually handle it gracefully. 1) was done using Coccinelle. Input from oga. ok miod.
* 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@
* 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
* Simpliest memset(,0,) -> M_ZERO changes. One (caddr *) cast removal,krw2007-10-061-4/+3
| | | | | otherwise just adding M_ZERO to malloc() and removing the immediately adjacent memset(,0,).
* 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.
* Remove the definition and use of the device_ptr_t which was a struct device *.mbalmer2007-06-121-2/+2
| | | | | | No binary change. ok mk.
* Remove the definition and use of the USBDEVNAME macro.mbalmer2007-06-101-15/+15
| | | | | | | (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.
* Farewell USB_{ATTACH,MATCH,DETACH}* you will not be missed.jsg2007-05-271-9/+12
| | | | ok deraadt@ krw@ mbalmer@
* #include <sys/lock.h> not needed. i.e. these compile fine without it.krw2007-05-051-2/+1
|
* In a drivers activate() entry point, if on DVACT_DEACTIVATE it doesmiod2006-06-231-3/+1
| | | | | | 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 optional flush method to MIDI hardware interface.jsg2006-04-071-83/+140
| | | | | | | Allow umidi(4) to send multiple events in a single USB transfer. This greatly improves the number of interrupts umidi is able to generate. From Alexandre Ratchov.
* 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@.
* Fix bug that caused multi byte MIDI messages to get corruptedjsg2005-09-071-22/+24
| | | | | | | | | | when a single real time byte is inserted. From Alexandre Ratchov. While I don't have a umidi device to test here it looks correct to me and alex has a history of sending good MIDI diffs. ok deraadt@
* 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@
* When processing sysex stop bytes ensure the packet is not corruptedjsg2004-11-201-1/+3
| | | | | if we are building a new packet, from Alexandre Ratchov. ok deraadt@
* better midi stuff from alex@caoua.orgderaadt2004-06-271-256/+233
|
* check for null before memsetnate2003-05-191-2/+2
|
* string cleanup; nate okderaadt2003-05-071-2/+2
|
* sync with NetBSDnate2002-11-111-2/+2
|
* update $NetBSD$ tagsnate2002-07-251-3/+2
|
* get rid of trailing whitespacenate2002-07-251-4/+4
|
* fixes from NetBSDnate2002-07-091-9/+15
|
* add usb midi support.nate2002-06-111-0/+1376
| | | | | untested From NetBSD
* Meant to commit only ulpt and committed everything. Most things weren't readynate2002-05-071-1374/+0
|
* Sync ulpt driver with NetBSDnate2002-05-071-0/+1374