summaryrefslogtreecommitdiff
path: root/sys/dev/usb/udl.c
AgeCommit message (Collapse)Author
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@.
2009-10-11Minor cleanup run, no functional changes;Marcus Glocker
- Spacing / comments. - Be constant in using variable types. - Avoid repeating function-inline definitions for the same variable.
2009-10-10Let udl select the maximum resolution supported by the udl device and theMats O Jansson
monitor. Use the EDID parsing from videomode. -moj ok mglocker@
2009-09-27If no xfer buffer is free for the UDLIO_DAMAGE ioctl, sleep in the kernelMarcus Glocker
until one xfer buffer gets freed again, instead userland needs to handle this. Help and OK miod@, matthieu@
2009-09-26Fix artefacts in compression mode especially seen when running X.Marcus Glocker
2009-09-21Document a private ioctl range for wscons drivers (from Miod). ThereforeMarcus Glocker
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@
2009-09-20Remove XXX content about missing screen repaint when switching to EMULMarcus Glocker
mode. Miod mentioned that is it OK to loose screen content when switching DUMBFB -> EMUL. Thanks.
2009-09-20For now just clear the screen when switching to emulation mode (need toMarcus Glocker
figure out how we can repaint it as well).
2009-09-20Add WSDISPLAYIO_SMODE, WSDISPLAYIO_SVIDEO, WSDISPLAYIO_GVIDEO ioctl. ToMarcus Glocker
be completed.
2009-09-19Rename another function; udl_cmd_set_xfer -> udl_cmd_set_xfer_type isMarcus Glocker
a bit more self explaining. No functional changes.
2009-09-19Rename two functions; udl_cmd_get_offset -> udl_cmd_save_offset, andMarcus Glocker
udl_cmd_set_offset -> udl_cmd_restore_offset, matches better what we do. No functional changes.
2009-09-19Re-sort function pointer assignments. No functional changes.Marcus Glocker
2009-09-19If UDLIO_DAMAGE fails to queue the damage drawing request, undo theMarcus Glocker
operation and tell the X11 driver to retry later (same as for rasops).
2009-09-19Add bits for X11 support over the wsdisplay framework (fully HuffmanMarcus Glocker
compressed). The upcoming X11 driver mmaps its framebuffer from the kernel and sends updates via the Damage mechanism. Committed from a X session on udl, of course.
2009-09-13Remove (last) obsolete panic() case.Marcus Glocker
2009-09-13Fix command undo for compression. Fixes artifacts seen in some cases.Marcus Glocker
2009-09-13Move some real noisy operations to a higher debug level.Marcus Glocker
2009-09-13Use function pointers in erasecols and eraserows for framebufferMarcus Glocker
operations, so we do compression in there as well.
2009-09-12Don't use function pointers at places where we always call the sameMarcus Glocker
function.
2009-09-12Re-sort some functions. Fix comment. No functional changes.Marcus Glocker
2009-09-11Don't panic if the command buffer runs full. Instead try to flush it,Marcus Glocker
and continue operation afterwards. If we can't flush immediately, we will undo the operation and return EAGAIN to wsdisplay (like we do already for the xfer queue). This allows us to set higher resolutions (tested up to 1280x1024) without bumping the command buffer or xfer buffer memory further.
2009-09-09Today we just support a font width up to 8 pixels. Allow a font widthMarcus Glocker
up to 16 pixels now. Reported by maja@
2009-09-06Fix typo in comment, safe -> save.Marcus Glocker
Spotted by miod@
2009-09-06Fix udl_copycols overlay copy problem by copying area to off-screen firstMarcus Glocker
(same as in udl_copyrows).
2009-09-05Make use of the new wsdisplay ability, committed by miod previously, whichMarcus Glocker
allows our rasops functions to return EAGAIN if our usb command queue is full. This gets us rid of the ugly while { delay(); } loop and makes udl work also on MP kernels now (we faced a deadlock so far because spinning in that delay() loop with biglock active wasn't that much fun). With help from miod@
2009-09-05Change the wsdisplay_emulops return types from void to int; emulops will nowMiod Vallat
return zero on success and nonzero on failure. This commit only performs mechanical changes for the existing emulops to always return zero.
2009-08-30Add some new devices. -mojMats O Jansson
2009-08-29Ooops, revert the last bcopy()-elimination commit. I forgot that bcopy()Marcus Glocker
does the job for us on strict alignment archs.
2009-08-27Reduce padding overhead in compressed blocks.Marcus Glocker
2009-08-26Remove obsolete comment.Marcus Glocker
2009-08-26Replace some stupidly used bcopy()s by direct assignment.Marcus Glocker
2009-08-26Also avoid __packed struct to Huffman table in the driver side in favourMarcus Glocker
of performance. Instead generate the Huffman table with two ints. Suggested, help and OK deraadt@
2009-08-25Enable pixel compression (Huffman pixel difference method). If theMarcus Glocker
Huffman table can't be loaded, the driver will operate in uncompressed mode.
2009-08-09Check if the command buffer has been allocated before we free it. FixesMarcus Glocker
a possible page fault trap while device detach.
2009-08-02Never return nonzero in a device activate method invoked with DVACT_ACTIVATE,Miod Vallat
for this prevents it to be invoked with DVACT_DEACTIVATE later. This had been sweeped some time ago already, but bad constructs crept in again.
2009-07-23Add some more udl devices. -mojMats O Jansson
2009-06-06add another UDL deviceYojiro Uo
- LCD-4300U (century corp.) ok mglocker@
2009-06-01Use the background color attribute in udl_erasecols and udl_eraserowsMarcus Glocker
instead hardcoding ``0x0000''.
2009-06-01Sort argument list of udl_draw_char similar as udl_fb_* friends.Marcus Glocker
2009-06-01Allow a font width other than 8 pixels.Marcus Glocker
2009-06-01Better naming for some framebuffer functions.Marcus Glocker
2009-06-01Reduce data payload for font drawing to a fixed size per character.Marcus Glocker
2009-06-01I forgot to apply the End Of Command token for async xfers. Maybe thatMarcus Glocker
caused the stalls seen in some rare conditions? Who knows ...
2009-05-31We are able to address 256 pixels (16bit) per command not just 128 pixels.Marcus Glocker
This safes us some protocol overhead, especially when bit blittering large regions.
2009-05-24Mention broken cursor drawing.Marcus Glocker
2009-05-24List product name instead chip type.Marcus Glocker
2009-05-22Add Unitek Y-2240. -mojMats O Jansson
2009-05-21Add König CMP-USBVGA10. -mojMats O Jansson
2009-05-21Add ForwardVideo EasyCAP008. -mojMats O Jansson
2009-05-18Add support for the DisplayLink USB<->DVI Adapter.Marcus Glocker