summaryrefslogtreecommitdiff
path: root/sys/dev/wscons
AgeCommit message (Collapse)Author
2016-07-13remove <0 check for an unsigned variableTheo de Raadt
from tom
2016-07-12Reset the mt state completely in wsmouse_mt_init.Ulf Brosziewski
ok kettenis@
2016-07-05Improve the tracking functions in wsmouse.Ulf Brosziewski
ok mpi@
2016-06-06Remove wsmouse_input.Ulf Brosziewski
ok mpi@
2016-05-30Do not forward declare an enum, makes gcc3 happy.Martin Pieuchot
From miod@, ok bru@
2016-04-24Remove 'option COMPAT_PCVT' now that X doen't use it anymore.Matthieu Herrb
An X server built after april 3 is needed to be able to start X with the new kernel. ok kettenis@
2016-03-30Add support for multitouch input to wsmouse.Ulf Brosziewski
This change adds new input-processing functions to wsmouse and adapts the touchpad drivers. ok mpi@, shadchin@
2016-03-28OpenBSD has stopped using the SVr4 KDENABIO/KDDISABIO ioctls for atMatthieu Herrb
least 10 years. No need for special treatement on i386. ok deraadt@, millert@, jca@
2016-03-03Remove WSDISPLAY_COMPAT_SYSCONS. We no longer run FreeBSD binary X11Christian Weisgerber
servers. Pointed out by jmc@, ok deraadt@ millert@
2016-01-12Use uiomove() instead of uiomovei(); from Martin NatanoStefan Kempf
ok deraadt@
2015-12-12add new ioctls to control keyboard backlightsJoerg Jung
tested by Bryan Vyhmeister, krw, tb, and myself ok jcs krw tb
2015-09-10kqueue(2) support for wsmouse(4), wskbd(4) and wsmux(4).Martin Pieuchot
Needed for libinput port. ok guenther@, miod@
2015-09-08sizes for free(); checked by semarieTheo de Raadt
2015-09-05Support for xterm-compatible SGR escapes 39 and 49 (reset fg/bg colour toMiod Vallat
default). From Matthew Martin on tech@
2015-08-30Modify kernel to prepare boot from UEFI.YASUOKA Masahiko
- Add new boot arg "bios_efi_info_t" to pass the paramters from UEFI - Make bios(4) and acpi(4) be able to probe with the parameters from UEFI - Add efifb(8). It uses the framebuffer from UEFI and it will work as a backend of wsdisplay(4) and wsfb (X11 video driver). Disabled by the kernel config for this moment input and ok kettenis
2015-08-28fairly simple sizes for free(); ok teduTheo de Raadt
2015-05-08When changing screen saver parameters with wsconsctl (or any other way toMiod Vallat
perform ioctls), check the flags of the currently displayed screen in order to decide whether the screen saver needs to be retriggered, rather than the flags of the device we are issuing the ioctl on. wsconsctl will always use ttyC0, while the X server may run on another virtual screen (such as ttyC4), and the kernel screen saver would then be reenabled behind the X server's back. While there, apply this `should the screen burner get reenabled or disabled?' logic at the end of every virtual screen switch. The screen burner will now get reenabled when switching from X11 to a virtual text console, and disabled when switching back to X.
2015-05-07remove a surplus tabJonathan Gray
from miod@
2015-03-14Remove some includes include-what-you-use claims don'tJonathan Gray
have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels. ok tedu@ deraadt@
2015-02-10First step towards making uiomove() take a size_t size argument:Miod Vallat
- rename uiomove() to uiomovei() and update all its users. - introduce uiomove(), which is similar to uiomovei() but with a size_t. - rewrite uiomovei() as an uiomove() wrapper. ok kettenis@
2015-01-15Define a new wscons mouse type for Synaptics clickpad devices that lackJonathan Gray
physical buttons. This will be used if the acpi pnpid for the mouse matches a list provided by Synaptics found in Linux. Combined with the xenocara changes this will remove the need for an xorg config file for the x240/t440/t540 generation of thinkpads. ok matthieu@ shadchin@ kettenis@
2015-01-11use mallocarray() when reallocating the mux tableTheo de Raadt
2015-01-11unnecessary castTheo de Raadt
2014-12-21WSCONS_EVENT_WSMOUSED_SLEEP and WSCONS_EVENT_WSMOUSED_CLOSE not used anymore.Alexandr Shadchin
ok mpi@
2014-12-21WSMOUSE_INPUT_WSMOUSED_CLOSE not used anymore.Alexandr Shadchin
ok mpi@
2014-12-13yet more mallocarray() changes.Doug Hogan
ok tedu@ deraadt@
2014-12-09More malloc() -> mallocarray() in the kernel.Doug Hogan
ok deraadt@ tedu@
2014-10-27Stop supporting wsmoused and X in parallel. This code is racy andMartin Pieuchot
known to break mice upon resume. ok shadchin@
2014-09-14remove uneeded proc.h includesJonathan Gray
ok mpi@ kspillner@
2014-07-12add a size argument to free. will be used soon, but for now default to 0.Ted Unangst
after discussions with beck deraadt kettenis.
2014-07-11It's init as a process that's special, not init's original thread.Philip Guenther
Remember initprocess instead of initproc. ok matthew@ blambert@
2014-05-15Use a more appropriate malloc(9) type than M_TEMP for the keymap memoryMartin Pieuchot
since it is only freed when your keyboard is detached.
2014-05-14wsmoused() called if cmd == WSDISPLAYIO_WSMOUSED only,Alexandr Shadchin
don't need check cmd twice. ok miod@
2014-05-05Plug a memory leak, free the keymap's memory on detach.Martin Pieuchot
ok miod@
2014-04-18For the WSDISPLAY_COMPAT_USL protocol, send the synchronizing signals toPhilip Guenther
the process, not just the thread. ok kettenis@
2014-01-26Attempt to make user changes of keyboard layout a bit more `sticky' on wsmuxMiod Vallat
kernels: - keyboard drivers will now tell wskbd if the keyboard layout they ask for is a default value, or a value they are 100% sure of (either because your kernel has a XXXKBD_LAYOUT option, or because the driver can tell the keyboard layout, e.g. by the country code on USB keyboards which provide it, such as Sun's) - when attaching a keyboard with a non-default layout, the layout will become the default layout of the mux for new keyboard attachments if the mux doesn't have a layout set already. - when changing the keyboard layout of a particular keyboard with an ioctl (i.e. using kbd(8) or wsconsctl(8)), the layout will become the default layout of the mux for new keyboard attachments. ok mpi@
2013-12-02CIRCLEQ begone.Kenneth R Westerback
ok jsing@ (who actually ok'd the systat one too, not millert@)
2013-11-17Distinguish between inteldrm and radeondrm.Mark Kettenis
ok jsg@, miod@
2013-11-04Convert wskbd_set_mixervolume() to use a task internally instead ofMartin Pieuchot
being called in a workq. ok kettenis@
2013-11-04Better defaults for the screen burner settings: all unblank actions enabled,Miod Vallat
but burning still disabled by default. Setting display.screen_off to a nonzero value with wsconsctl will be enough to enable screen blanking after the given time.
2013-10-30Fix jagged diagonal lines (kernel part)Alexandr Shadchin
Send WSCONS_EVENT_SYNC every time you call wsmouse_input(). Used to synchronize and separate events into packets of input data changes occurring at the same moment in time. For example, motion of a mouse may set the DELTA_X and DELTA_Y values for one motion, then emit a SYNC. ok matthieu@. tested edd@, Henri Kemppainen and Alf Schlichting.
2013-10-20No longer store fonts added with the WSDISPLAYIO_LDFONT ioctl into theMiod Vallat
wsdisplay softc. Instead, since the knowledge about available fonts lies in the parent driver itself, introduce a list_font wsdisplay_accessop which queries a font index, suitable to use within the WSDISPLAYIO_LSFONT ioctl. With this in place: - there is no global wsdisplay limit on the number of fonts loaded. Such a limit will be enforced by the display drivers themselves. - built-in kernel fonts will now appear in the list of fonts. Grow a list_font accesop for rasops, which relies upon wsfont_enum(), which is turned into something useful (and abortable if you do not need to iterate further). Not used by any rasops driver yet.
2013-10-20Allow WSDISPLAYIO_GTYPE ioctl on the tty*cfg device (passing it back to tty*0).Miod Vallat
2013-10-20WSDISPLAYIO_GTYPE ioctl support for KMS drivers. ok jsg@Miod Vallat
2013-10-18UTF-8 support for wsdisplay emulation modes. Both vt100 and sun emulationMiod Vallat
will now recognize xterm-compatible escape sequences ESC % G and ESC % @ to enter and leave UTF-8 mode, respectively. Not enabled on SMALL_KERNEL. Most of this written during c2k7, completed during b2k13. Note that the value of several international keysyms change, to switch from ISO Latin-[257] values to the real Unicode values. Be sure to update your includes and rebuild and install wsconsctl.
2013-10-18Add a conditional to disable most of the `abort state' code in the emulationMiod Vallat
code. Enable this if SMALL_KERNEL, since this code is currently only really needed for udl(4) which is not on any tight (SMALL_KERNEL) installation media.
2013-10-18Introduce a dedicated private header file to control the optional featuresMiod Vallat
of wscons (which usually get disabled for installation kernels, to save space), instead of duplicating parts of it to too many places. No functional change.
2013-08-20Define WS_DEFAULT_FG and WS_DEFAULT_BG as default colors (black on white forMark Kettenis
sparc/sparc64, white on black for everybody else), and use them to construct a default color attribute in the rasops(4) code. ok miod@
2013-07-06s/wsemuldisplaysubmatch/wsemuldisplaydevsubmatch/gMark Kettenis
2013-07-05Add submatch function for use with config_found_sm(9).Mark Kettenis
ok miod@