summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/udl.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* change wsdisplay attribute type from long to uint32_tjsg2020-05-251-9/+9
| | | | | | | | miod explained it was initially a long as it was thought drivers may need to allocate storage but in practice they don't need more than 32 bits for an attribute. suggested and reviewed by miod@
* rename wsdisplay alloc_attr() to pack_attr()jsg2020-05-251-2/+2
| | | | | | | | Suggested by John Carmack. miod agrees a rename would make sense and explained it was initially thought drivers may need to allocate storage but in practice they don't need more than 32 bits for an attribute. ok mpi@
* Rename udl_mode field to not shadow global `hz' variable.mpi2020-01-091-9/+9
| | | | ok mglocker@
* Convert to tsleep_nsec(9).mpi2020-01-051-2/+2
| | | | ok mglocker@
* Make udl(4) and uts(4) compile again in debug mode by fixing IOCGROUPmglocker2019-11-061-4/+4
| | | | and IOCPARM_LEN macros types.
* Correct a bounds test. Coverity CID 1452930.jsg2017-09-051-2/+2
| | | | ok mpi@
* A pile of sizes to free(9). In test for a few days in snapshots.deraadt2017-04-081-3/+5
| | | | | Errors will result in nice clean panic messages so we know what's wrong. Reviewed by dhill visa natano jsg.
* Add sizes to various free(9) calls. Fixing the simpler ones first.deraadt2017-03-261-4/+5
| | | | ok natano visa
* Avoid calling usbd_set_config_no() in *_attach() and let the stack dompi2016-11-061-8/+2
| | | | | | | | | 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. This is similar to the change to avoid calling usbd_set_config_index().
* Replace mountroothook_establish(9) by config_mountroot(9) a narrower APImpi2015-12-111-8/+5
| | | | | | similar to config_defer(9). ok mikeb@, deraadt@
* add missing splx callsjsg2015-05-021-1/+2
|
* Remove some includes include-what-you-use claims don'tjsg2015-03-141-3/+1
| | | | | | | have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels. ok tedu@ deraadt@
* More malloc() -> mallocarray() in the kernel.doug2014-12-091-2/+2
| | | | ok deraadt@ tedu@
* add a size argument to free. will be used soon, but for now default to 0.tedu2014-07-121-5/+5
| | | | after discussions with beck deraadt kettenis.
* Add a DVACT_WAKEUP op to the *_activate() API. This is called after thederaadt2013-12-061-5/+4
| | | | | | | | kernel resumes normal (non-cold, able to run processes, etc) operation. Previously we were relying on specific DVACT_RESUME op's in drivers creating callback/threads themselves, but that has become too common, indicating the need for a built-in mechanism. ok dlg kettenis, tested by a sufficient amount of people
* Add load_font and list_font accessops to all rasops-based wsdisplay drivers.miod2013-10-211-1/+23
| | | | | Trivial except for tga(4) and gpx(4/vax) which need a bit more care setting up a new font.
* Use C99 named initializers for struct wsdisplay_accessops fields.miod2013-10-201-10/+7
| | | | No functional change.
* Enforce ca_activate tree-walks over the entire heirarchy for all events,deraadt2013-05-301-2/+4
| | | | | | cleaning up some shutdown-hook related code on the way. (A few drivers related to sparc are still skipped at kettenis' request) ok kettenis mlarkin, tested by many others too
* Don't use usbd_bulk_transfer() to submit a synchronous transfer. Thismpi2013-04-261-4/+4
| | | | | | | | | | | function is badly named and should be used for transfers coming from userland which is not the case here as synchronous transfers are only used while configuring the device. Note that the transfer submission code can be simplified now that sync and async transfers use the standard setup_xfer()/transfer() method. Tested by and ok mglocker@
* uvm_extern.h not uvm.htedu2013-04-171-2/+4
|
* Get rid of various 'typedef struct' definitions and use plain structuremglocker2013-04-151-5/+3
| | | | | | | | | 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
|
* the 'WIDE' was droppedjasper2012-09-181-2/+2
|
* support the Lenovo ThinkVision LT1421jasper2012-09-181-2/+3
| | | | ok mglocker@
* Add support for the udl(4) in the Polaris2 USB dockclaudio2012-03-261-2/+3
| | | | OK mglocker@
* Remove config_activate() and DVACT_ACTIVATE. PCMCIA's the only thingmatthew2011-07-031-3/+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-5/+1
| | | | | | them from userland, and nothing in the kernel uses them. ok krw@, miod@
* * add cfattach activate functions and call usbd_deactivate() in thejakemsr2010-12-271-2/+4
| | | | | | | | DVACT_DEACTIVATE case for drivers that don't have activate finctions * fill out cfattach activate functions and call usbd_deactivate() in the DVACT_DEACTIVATE case for drivers that don't have a dying flag "ok with the intent" miod@
* Kill pmap_phys_address(), and force every driver's mmap() routine to returnmiod2010-12-261-5/+1
| | | | | | | a physical address [more precisely, something suitable to pass to pmap_enter()'sphysical address argument]. This allows MI drivers to implement mmap() routines without having to know about the pmap_phys_address() implementation and #ifdef obfuscation.
* SUNWEIT DVI can be just about any chipset. Use the revision to select which.maja2010-10-161-25/+75
| | | | | | Some other products use more than one generation of chipset. e.g. both DL160 and DL165. Change to a later chipset if the family is newer than expected. ok mglocker@ -moj
* Add proper malloc flags so we can attach again.mglocker2010-10-101-3/+3
|
* A few M_ZEROs without any M_WAITOK/M_NOWAITs.thib2010-09-271-2/+2
|
* annotate that this driver needs sc_dying codederaadt2010-08-311-1/+2
|
* Add some more devices. -mojmaja2010-07-291-1/+4
|
* Lilliput UM-70 uses the newer DL1x5 chipset. -mojmaja2010-07-191-2/+2
|
* Add another one. -mojmaja2010-06-271-2/+3
|
* Add ``StarTech CONV-USB2DVI'' udl device.mglocker2010-06-011-2/+3
| | | | From Bryan Vyhmeister
* Enable transparent console cursor by adding a driver internal charactermglocker2010-04-121-12/+44
| | | | backing store.
* 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@.
* Minor cleanup run, no functional changes;mglocker2009-10-111-33/+30
| | | | | | - Spacing / comments. - Be constant in using variable types. - Avoid repeating function-inline definitions for the same variable.
* Let udl select the maximum resolution supported by the udl device and themaja2009-10-101-31/+243
| | | | monitor. Use the EDID parsing from videomode. -moj ok mglocker@
* If no xfer buffer is free for the UDLIO_DAMAGE ioctl, sleep in the kernelmglocker2009-09-271-5/+17
| | | | | | | until one xfer buffer gets freed again, instead userland needs to handle this. Help and OK miod@, matthieu@
* Fix artefacts in compression mode especially seen when running X.mglocker2009-09-261-2/+2
|
* Document a private ioctl range for wscons drivers (from Miod). Thereforemglocker2009-09-211-1/+2
| | | | | | | change the UDLIO_DAMAGE ioctl from 0 to 128 and move the ioctl part from udl.h to udlio.h so we can include it in userland applications. Suggested and OK miod@
* Remove XXX content about missing screen repaint when switching to EMULmglocker2009-09-201-2/+2
| | | | | mode. Miod mentioned that is it OK to loose screen content when switching DUMBFB -> EMUL. Thanks.
* For now just clear the screen when switching to emulation mode (need tomglocker2009-09-201-4/+30
| | | | figure out how we can repaint it as well).
* Add WSDISPLAYIO_SMODE, WSDISPLAYIO_SVIDEO, WSDISPLAYIO_GVIDEO ioctl. Tomglocker2009-09-201-3/+20
| | | | be completed.
* Rename another function; udl_cmd_set_xfer -> udl_cmd_set_xfer_type ismglocker2009-09-191-7/+7
| | | | a bit more self explaining. No functional changes.
* Rename two functions; udl_cmd_get_offset -> udl_cmd_save_offset, andmglocker2009-09-191-19/+19
| | | | | udl_cmd_set_offset -> udl_cmd_restore_offset, matches better what we do. No functional changes.
* Re-sort function pointer assignments. No functional changes.mglocker2009-09-191-11/+11
|