Commit Graph

582 Commits

Author SHA1 Message Date
christos 95dabd3395 get rid of CIRCLEQ 2013-11-23 20:56:41 +00:00
martin 1e0cbe687d Consistently ifdef a variable and all uses 2013-10-25 20:55:24 +00:00
mrg 923e17fd1b use __USE() where appropriate. 2013-10-19 21:01:39 +00:00
martin bff32430d6 Remove unused variable 2013-09-15 16:12:00 +00:00
martin 6e9fb02d07 Comment out a variable only used in #if 0 code 2013-09-14 21:06:50 +00:00
macallan e8a38776d4 in vcons_redraw_screen():
- if RI_FULLCLEAR is set and we use it to clear the screen, don't draw any
  whitespaces with the default background colour
- draw stretches of whitespaces with the same background colour using erasecols
2013-05-28 11:04:04 +00:00
kiyohara 4f684b65cc Add WS{DISPLAY,KBD}_TYPE_* for epoc32. 2013-04-29 13:39:47 +00:00
jmcneill d35e9908e8 If there are no devices attached to the mux and software does
WSxxxIO_SETVERSION, the change doesn't actually get applied to the event
source as wsmux hands off processing of these ioctls to attached devices.
Handle these ioctls directly from the mux device instead of passing them
through, to correct an issue that prevented keyboards and mice from working
in X if there were zero devices attached when the X server started.
2013-03-18 11:40:39 +00:00
macallan 4e198487fa fix a bunch of _IO() ioctl()s to actually work on LP64/BE
( the data pointer is abused to pass an integer, we get a pointer to it so
  we need to deref it to something the same size as a pointer to get the
  correct value )
now the PCVT compat code ( which is used for VT switching in and out of X )
works on sparc64
2013-02-19 15:21:08 +00:00
macallan 719e71a847 add ioctl(WSDISPLAYIO_GET_FBINFO) 2013-01-31 10:57:30 +00:00
macallan e5be1fca4c fix a typo in a comment 2013-01-27 03:59:09 +00:00
macallan a2a003a83a add WSDISPLAY_TYPE_OMAP3 2013-01-21 14:15:03 +00:00
jmcneill 4a8b1bee78 add WSDISPLAY_TYPE_VC4 and WSDISPLAYIO_BUS_SOC 2013-01-08 23:49:56 +00:00
macallan 9622d8acf1 glyphcache_init(): bail if we don't have enough off-screen memory to be useful 2012-11-13 20:29:03 +00:00
macallan d55e837f75 defflag GLYPHCACHE_DEBUG 2012-10-04 19:09:20 +00:00
macallan f952894398 allow caching of glyphs with attributes other than the default
while there, also add support for underlined characters
2012-10-04 10:26:32 +00:00
he d498be058a Now that we use keysym_t, make sure <dev/wscons/wsksymvar.h> is included.
Fixes the kernel build for next68k's nextcons.c and mac68k's maccons.c.
2012-09-02 21:14:56 +00:00
macallan ff1bd1aab8 support an optional table to translate scancodes when in event mode 2012-08-29 02:38:31 +00:00
macallan 4de7bc18ac deal with negative cache sizes 2012-07-12 01:21:08 +00:00
abs 9c537a963a Add the following above the version = 0 line, just to provide a hint...
/* For binary compat. New code must call WSxxxIO_SETVERSION */
2012-05-24 18:16:31 +00:00
khorben 1ffeba3ee9 Implemented extra keys as found on Sun Type 7 USB keyboards, and
according to the documentation mentioned above in this file.

"works here" macallan@, myself
2012-04-22 14:32:08 +00:00
uebayasi eabd60ab7f Add newline at end of file; fix ALL build for me. 2012-04-22 03:47:53 +00:00
macallan 4d3aa5644d no need to convert cell number to coordinates every time we draw a glyph
from cache - just stick the coordinates directly into the map
2012-04-19 08:46:17 +00:00
bsh 456cfa8109 Support i.MX51's LCD framebuffer on Netwalker.
from Kenichi Hashimoto.
2012-04-17 10:19:57 +00:00
elad 0c9d8d15c9 Replace the remaining KAUTH_GENERIC_ISSUSER authorization calls with
something meaningful. All relevant documentation has been updated or
written.

Most of these changes were brought up in the following messages:

    http://mail-index.netbsd.org/tech-kern/2012/01/18/msg012490.html
    http://mail-index.netbsd.org/tech-kern/2012/01/19/msg012502.html
    http://mail-index.netbsd.org/tech-kern/2012/02/17/msg012728.html

Thanks to christos, manu, njoly, and jmmv for input.

Huge thanks to pgoyette for spinning these changes through some build
cycles and ATF.
2012-03-13 18:40:26 +00:00
macallan e297db4b59 generic support for caching glyphs in video memory
for speeding up anti-aliased fonts on slow CPUs
2012-02-16 17:29:21 +00:00
drochner 005775381c delete virtual screens on detach - this allows to hot-unplug
a udl@usb monitor without crash
2012-02-02 13:11:25 +00:00
rmind 668cc4102c wsmux_getmux: do not increment nwsmux if allocation fails (might cause buffer
overflow).  Simplify slightly.
2012-01-30 01:54:08 +00:00
macallan 1c9c22440c ass WSDISPLAY_TYPE_VALKYRIE 2012-01-24 04:34:05 +00:00
macallan 452ccd358c bump character buffers and cache to 32bit per character so flags we store
in the upper bits don't get lost
now autogenerated line drawing characters work with VCONS_DRAW_INTR and don't
get lost when switching screens
2012-01-04 08:25:03 +00:00
reinoud 1f33988c72 Add the Usermode vnc framebuffer and (vnc) remote keyboard types. 2011-12-30 08:20:50 +00:00
phx 01173747fc Amiga wscons/Xorg support, first phase.
Implemented wscons for CV64 and CV64/3D. Other graphics cards drivers are
prepared for it, but will not be attempted before Xorg is not running.
The wscons support is disabled by default. A GENERIC kernel should behave
like always. Use WSCONS to try out a kernel with wscons support.
Done by rkujawa@ and phx@.
2011-12-15 14:25:12 +00:00
jakllsch dca50c47f9 Correct copy/paste error in previous. 2011-09-11 22:28:21 +00:00
jakllsch d5704d8888 Initialize the W axis value on open as is already done for the other axes. 2011-09-11 19:19:19 +00:00
christos f11ae0d12b PR/35473: Wigcher Spanninga: Add Dutch keyboard support to wscons 2011-07-22 18:17:11 +00:00
tsutsui 6f57be1369 Add and return WSKBD_TYPE_LUNA and WSDISPLAY_TYPE_LUNA on WS*_GTYPE ioctls.
XXX: should we still sync <sys/dev/wsconsio.h> and src/sbin/wsconsctl/util.c?
2011-07-21 10:33:17 +00:00
macallan d981780965 make the EDID buffer pointer void * 2011-06-29 05:00:06 +00:00
macallan dcc7dd1b42 make sizes unsigned 2011-06-29 04:50:32 +00:00
macallan f4441d032a declare wsdisplayio_get_edid() 2011-06-29 03:11:59 +00:00
macallan 8db9d73a65 dumping ground for generic driver convenience functions
So far it contains only a generic WSDISPLAYIO_GET_EDID implementation that
relies on EDID data being passed to drivers as a device property.
2011-06-29 03:09:37 +00:00
macallan 5058059930 add two new ioctl()s:
WSDISPLAYIO_GET_EDID to retrieve EDID data from display drivers
WSDISPLAYIO_SET_POLLING to control polling with VCONS_DRAW_INTR
2011-06-29 03:06:16 +00:00
drochner 89c8725c96 add support for the interesting parts of ISO-2 and KOI8-R fonts
to the vga(4) driver
2011-06-08 10:25:21 +00:00
macallan 26ec9200cf remove VCONS_DRAW_ASYNC
it was always experimental, VCONS_DRAW_INTR is much simpler and Just Works.
2011-05-25 06:13:29 +00:00
macallan 6eb32961ce add a cache so when we update the screen we only redraw the character cells
that actually changed since last time. This gives a noticeable speedup on
slower hardware with dumb framebuffers.
For now this works with VCONS_DRAW_INTR and VCONS_DONT_READ only.
2011-05-25 06:01:38 +00:00
rmind 2626d57668 Rename ttymalloc() to tty_alloc(), and ttyfree() to tty_free() for
consistency.  Remove some unnecessary malloc.h inclusions as well.
2011-04-24 16:26:51 +00:00
jmcneill a1001814e2 add vcons_hard_switch, for switching w/o callouts (eg. entering ddb) 2011-02-18 13:56:11 +00:00
jmcneill f24dfbb13c add vcons_{enable,disable}_polling and genfb_{enable,disable}_polling
functions, to switch between intr and polling modes when VCONS_DRAW_INTR
is defined
2011-02-09 13:19:18 +00:00
jmcneill 3f11f2aa84 VCONS_DRAW_INTR changes:
- use softint instead of workqueue for drawing
- track scr_dirty with atomic_ops
2011-02-08 23:06:25 +00:00
jmcneill 232459ad54 abuse config_interrupts to make sure we don't switch to 'intr' mode until
interrupts are enabled
2011-02-08 13:40:35 +00:00
jmcneill 8485f28760 add support for command buffering in vcons. still a WIP, same limitations
as async drawing (no ddb, needs interrupts). you can try it with options
VCONS_DRAW_INTR. as with async, there are still occasional glitches.
2011-02-08 12:45:04 +00:00