summaryrefslogtreecommitdiff
path: root/sys/dev/wscons
AgeCommit message (Collapse)Author
2013-07-06s/wsemuldisplaysubmatch/wsemuldisplaydevsubmatch/gMark Kettenis
2013-07-05Add submatch function for use with config_found_sm(9).Mark Kettenis
ok miod@
2013-06-16Use (N * sizeof(u_int)) instead of (N * sizeof(int)) when malloc'ing u_int *.Miod Vallat
Doesn't change anything, but silences a Clang warning; dhill@bitrig
2013-06-15When we disable the burner when X is running, also set sc_burnout to 0 toMark Kettenis
prevent us from accidentally reenabling the burner. ok miod@
2013-06-11Replace all ovbcopy with memmove; swap the src and dst arguments tooTheo de Raadt
ok otto
2013-05-30Enforce ca_activate tree-walks over the entire heirarchy for all events,Theo de Raadt
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
2013-05-12In wsdisplay_switchtoconsole(), make sure we really are the console beforeMark Kettenis
attempting to switch screens. On amd64/i386 the glass console gets initialised early even if a serial console has been set up by the bootloader. To add insult to injury, the glass console isn't properly "detached" and the MI wsdisplay(4) driver continues to believe it is the console. This should really be fixed, but is a nasty can of worms. ok miod@
2013-04-14Add escape codes for F21 to F24, continuing the existing sequence. Note thatMiod Vallat
vt100 and vt220 do not have such function keys, and there is no clear consensus, for terminal emulations supporting F21 to F24, of the escape codes to use (linux stops at F20, and Wyse and QNX use incompatible sequences for keys up to F20). From "Creamy" on tech@
2013-03-10Make it possible to call wsdisplay_cnattach() to override an already attachedMark Kettenis
wsdisplay console later in the boot process. Needed for upcoming KMS changes where on i386/amd64 we will switch from vga text mode to a framebuffer console when the KMS drm driver attaches. ok miod@, mpi@
2013-01-06don't propagate XF86XK_Audio{Lower,Raise}Volume keys to userspace,Alexandre Ratchov
otherwise volume may be adjusted twice: once by X apps and once in the kernel. feedback from many, ok shadchin@
2012-12-05Remove excessive sys/cdefs.h inclusionTheo de Raadt
ok guenther millert kettenis
2012-10-29Add support for Elantech touchpads to pms(4). This allows the X synaptics(4)Stefan Sperling
input driver to configure these touchpads properly, e.g. toggle tap-to-click, two-finger scrolling, edge-scrolling, etc. So far these pads were working only in PS/2 mouse compatibility mode. Support for up to hardware version 3 has been implemented. But only version 3 has been tested so versions 1 and 2 remain disabled via #ifdef notyet until someone tests (bugs in this code could seriously mess up the mouse and I don't want to end up shipping such bugs in 5.3). help and ok mpi@ shadchin@
2012-10-17#if NWSDISPLAY > 0 not #if WSDISPLAY > 0Jonathan Gray
ok miod@
2012-07-22Fix for ClickPad. On issue pointed gilles@ and matthieu@Alexandr Shadchin
ok gilles@, matthieu@, mpi@, miod@, deraadt@
2012-07-13Try to avoid using the same wchan name twice.Theo de Raadt
2012-04-17Add type numbers for upcoming sgi work, forgotten during newport(4) import.Miod Vallat
2012-03-28guenther notes that s_pid must also move to matchTheo de Raadt
2012-03-28Yet another ioctl-related pid value. Should be the master of theTheo de Raadt
thread, aka. p_p->ps_pid. ok miod
2011-11-09If directly open /dev/wskbdX, then wskbdX be removed from mux wskbd,Alexandr Shadchin
but if close wskbdX, wskbdX not returned to mux. Fix it. ok miod@
2011-09-20Prepare to add support ALPS touchpadsAlexandr Shadchin
no objections mpi@ and matthieu@
2011-08-17Adding support Synaptics touchpad. Thanks all for test.Alexandr Shadchin
ok miod@, matthieu@
2011-08-04In `string' state, accept bell (^G) as an end of sequence in addition toMiod Vallat
`ESC \', as supported by xterm; some third-party software such as ncmpcpp rely upon this. Noticed by dcoppa@, based on a draft diff by nicm@; ok deraadt@
2011-07-03Fix return values of wsdisplaykqfilter and move some code so it matchesNicholas Marriott
wsdisplaypoll. ok miod deraadt
2011-06-24machdep.kbdreset enables a shutdown by Ctrl-Alt-Del on amd64 andChristian Weisgerber
i386. Stop abusing it on other archs for controling a shutdown by pressing the soft power button: * Add a MI sysctl hw.allowpowerdown; if set to 1 (the default) it allows a power button shutdown. * Make acpi(4)/acpibtn(4) honor hw.allowpowerdown. * Switch the various power button intercepts on landisk, sgi, sparc64 and zaurus over to hw.allowpowerdown. * Garbage collect the machdep.kbdreset sysctl on all archs other than amd64 and i386. ok miod@
2011-06-23a bit more ansi; ok teduTheo de Raadt
2011-06-06Microphone mute button support from acpithinkpad (or elsewhere).Theo de Raadt
The audio side is a bit lacking; it does not yet mute all types of devices. from Alexander Polakov ok jakemsr
2011-05-05synaptics touchpad keep the current (pms) behaviour until WSMOUSEIO_SETMODEAlexandr Shadchin
ioctl is issued to switch to synaptics mode. WSMOUSE_COMPAT - behavior conventional mouse (relative mode) (default) WSMOUSE_NATIVE - full power synaptics ok miod@
2011-04-14Reducing number of call update_leds().Alexandr Shadchin
Updating state LED only when necessary. ok krw@
2011-04-13wskbd_holdscreen() is not needed and can be removedAlexandr Shadchin
ok miod@
2011-04-07Prepare to add support Synaptics touchpadsAlexandr Shadchin
ok miod@
2011-04-05Icelandic keyboard mapping. Commited from an Icelandic keyboard.Miod Vallat
2011-04-05Push COMPAT_FREEBSD in front of a whale. Buggy, out of date, noPhilip Guenthe
one has been weeding it, and it makes life harder. Toasts of Brennivin for its passing from many; diff ok henning@
2011-01-30Report the compose key on sun keyboards in raw mode as a different keycodeMiod Vallat
from right alt. ok krw@ shadchin@ deraadt@
2010-11-20Change wsdisplay_kbdinput() to get an aray of keysym_t and a count, instead ofMiod Vallat
a single keysym_t at a time - this means tty sanity checks will only happen once. Introduce wsdisplay_rawkbdinput() for raw mode input, since raw input is a byte array. As a bonus this allows us to skip the `is this a KS_GROUP_Ascii value' test in that case.
2010-11-20Replace all mentions of sc_base.me_dispdv with sc_displaydv. The latter is aMiod Vallat
short #define for the former, and seeing both forms in this file is confusing.
2010-09-01After all escape sequence processing, check for being beyond the lastNicholas Marriott
column and and clear VTFL_LASTCHAR if so. This fixes the case where an escape sequence (originally noticed with DECSTBM) moves the cursor and doesn't reset the flag - if it was set, there would be a spurious line feed on the next input. ok miod
2010-08-28ansify function definitions, and constify a few arrays while there.Miod Vallat
no functional change.
2010-07-31Support extra F-keys (up to F24) on HID keyboards.Miod Vallat
2010-07-26Correct the links between threads, processes, pgrps, and sessions,Philip Guenthe
so that the process-level stuff is to/from struct process and not struct proc. This fixes a bunch of problem cases in rthreads. Based on earlier work by blambert and myself, but mostly written at c2k10. Tested by many: deraadt, sthen, krw, ray, and in snapshots
2010-07-02Move common code for waking up writers on a tty into a function.Nicholas Marriott
ok deraadt matthew millert
2010-07-01Make it possible to get the screen types and emulations for a wsdisplay.Mats O Jansson
Information needed for wsconscfg. feedback and ok miod@. -moj
2010-06-28Allow tty drivers to request larger buffers at attach time using aTheo de Raadt
max-baud-rate hint. Adjust TTYHOG (the nearly full logic) to this new situation. The larger buffers are required by the very high speed KDDI devices in Japan (CF com, or USB ucom) so those are the only two drivers which currently ask for a larger buffer size. ok yasuoka miod
2010-04-12Some of the line disciplines want to check for suser. Better to pass themTed Unangst
a process instead of using curproc. ok deraadt
2010-03-30Prevent the apmd/x races for good.Owain Ainsworth
When we hit suspend time, go through all wsdisplays on the system. if they are in mode MAPPED, but not MODE_DUMBFB then if possible do a full vt switch to a !mapped vt, and prevent switching back until resume time. This has to be called from MD code because this involves userland running so that X can run the vt switch signal handler. This way, any case where we are using the "poke registers from userland" model, we will not be on the hardware when we go down, so the kernel can actually handle thing properly. Tested on several acpi laptops (by kettenis@ and ian@), x40 (me and beck@ at LEAST) and zaurus (me). Maybe others, but if so I forgot who at this time.. Idea from deraadt somewhere over the Faroe Islands (I thought of a similar thing myself a while ago). Much prompting from him. Ok and comments miod@
2010-03-07Minimalistic driver for the ImpactSR (Mardigras) video option found on olderMiod Vallat
Octane systems, as well as some Onyxes. With special permission to change a systemwide .h file and add a manpage from deraadt@ Magic numbers and operation sequencing borrowed from Linux; tested on Octane + ESI. ok deraadt@
2010-03-04Add wsdisplay type for SGI VPro (aka Odyssey)Joel Sing
ok miod@
2010-02-28Minimal frame buffer driver for the SiS 315 found on Lemote Fuloong systems.Miod Vallat
Currently unable to change video modes or provide any form of acceleration, so you are stuck in a 640x400x8 mode, but at least people scared of serial consoles will get a chance to use their Fuloongs now. Tested by otto@ (early developments) and jasper@ (final version)
2009-12-25A couple more device types.Miod Vallat
2009-12-10a few sizeof(array)/sizeof(array[0]) -> nitems(array) conversions found whileOwain Ainsworth
looking for something else. sha1(1) tells me there's no binary change.
2009-11-09Every selwakeup() should have a matching KNOTE() (even if kqueue isn'tNicholas Marriott
supported it doesn't do any harm), so put the KNOTE() in selwakeup() itself and remove it from any occurences where both are used, except one for kqueue itself and one in sys_pipe.c (where the selwakeup is under a PIPE_SEL flag). Based on a diff from tedu. ok deraadt