summaryrefslogtreecommitdiff
path: root/sys/dev/wscons
AgeCommit message (Collapse)Author
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
2009-10-31KNOTE() after selwakeup(); ok miodTheo de Raadt
2009-10-31Use suser when possible. Suggested by miod@.Federico G. Schwindt
miod@ deraadt@ ok.
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-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-14Correctly empty the tty rings in wsdisplaystart() if the display isMiod Vallat
in SCR_GRAPHICS mode; spotted by martynas@
2009-09-05Buglet crept in.Miod Vallat
2009-09-05Check the return value of all emulops in the emulation code, and abortMiod Vallat
tty output as soon as we hit a failure. Since the `output' of a character may cause several emulops to be called (e.g. if it causes scrollup or if this is the end of an escape sequence), all emulation code maintain a so-called `abort state', to be able to properly recover when the character is tentatively output later, and not reissue the emulops which did not fail the first time. With help from mglocker@
2009-09-05Make the output() wsemul_op return the number of characters processed andMiod Vallat
check it in wsdisplaystart() to suspend output if not all characters have been output; they will get reissued at the next tty rstrt_to timeout.
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-09-05Rework internal interfaces in the wsdisplay emulation code to prepare forMiod Vallat
upcoming changes. No functional change.
2009-07-03Add a wsdisplay type for an upcoming driver for the Sun XVR-100 framebuffer.Mark Kettenis
ok deraadt@
2009-06-03Define a wsdisplay type for gfxp(4).Mark Kettenis
2009-06-02Define a proper wsdisplay type for machfb(4).Mark Kettenis
requested by miod@
2009-05-31The wsmouse support code has been written for pcvt long ago, then liftedMiod Vallat
to work with wscons. Back then, the universe was simple and there was only one single wsdisplay device, so that code would use global variables. Overhaul this, and make sure the various routines take the wsscreen or wsdisplay they operate on as arguments. This will eventually allow multiple wsmoused to run, one per wsdisplay device. While there, use more appropriate integer types in that code, so that unholy big displays do not cause integer overflows in coordinates computations. As a bonus, this makes the code smaller.
2009-05-31Do not access sc_scr[-1] from the wsmoused-related code ifMiod Vallat
wsdisplay_switch(..., WSDISPLAY_NULLSCREEN, ...).
2009-05-31Make sure wsdisplay_kbdholdscreen() checks whether the screen has a ttyMiod Vallat
before invoking wsdisplay_kbdholdscr(), which assumes it does.
2009-05-20Add code to attach sun mice on sparc and sparc64 as wsmouse devices. SinceMiod Vallat
not all Sun mice run at the canonical 1200 bps, hop between 1200, 4800 and 9600 bps by paying attention to breaks on the line. Attachement and engine code written 7 years ago for OpenBSD/sparc, except for sparc64 com(4) attachment. Speed hop idea borrowed from Opensolaris. This allows sparc and sparc64 users to run X11 without needing a configuration file anymore, as it was in the XFree86 3.x days. Multihead configurations will still need a minimal configuration file, though.
2009-05-09Initial console device driver for USB displays based on the DisplayLinkMarcus Glocker
DL-120 / DL-160 graphic chips, using the wsdisplay(4) layer. Based on the reversed engineered specifications of Florian Echtler. The driver is disabled in GENERIC for now. Thanks to claudio@ for donating me a device and to oga@ and miod@ for giving me hints in the graphic and wsdisplay area. OK deraadt
2009-05-06When computing output result for jump scroll purposes, do not count LFMiod Vallat
as moving the cursor one charcell right before scrolling.
2009-03-12Define a proper wsdisplay type for raptor(4).Mark Kettenis
ok miod@
2009-01-21Replace timeout_add(msecs * hz / 1000) with timeout_add_msec(msecs).Alexander Yurchenko
No functional changes. ok krw@ miod@
2009-01-12Recognize CAN and SUB control characters, and cancel any current escapeMiod Vallat
sequence when they appear. Per VT100 manual via naddy@, ok naddy@