summaryrefslogtreecommitdiff
path: root/sys/dev/wscons
AgeCommit message (Collapse)Author
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@
2009-01-11WSDISPLAY_COMPAT_RAWKBD support for sun serial keyboards (zskbd, comkbd).Miod Vallat
2009-01-10Do not compile in wsdisplay_emulinput() if WSEMUL_NO_VT100 is #defined.Miod Vallat
2009-01-10When switching from emulation mode to mapped mode (i.e. X starts), it is notMiod Vallat
enough to suspend the screen burner; the video has to be switched on if the screen burner had run already.
2008-12-29Give ifb its own display type (be sure to make includes before rebuildingMiod Vallat
wsconsctl)
2008-12-21on i386 and amd64, let ctrl-alt-delete let you enter ddb if ddb.console=1David Gwynne
and machdep.kbdreset=2. "i like it" deraadt@
2008-10-06Add missing checks for sc_focus being NULL. Found the hard way byMiod Vallat
Jesus Sanchez.
2008-09-10Convert timeout_add() calls using multiples of hz to timeout_add_sec()Bret Lambert
Really just the low-hanging fruit of (hopefully) forthcoming timeout conversions. ok art@, krw@
2008-08-24Define a proper wsdisplay type for legss(4).Miod Vallat
2008-06-26First pass at removing clauses 3 and 4 from NetBSD licenses.Ray Lai
Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
2008-06-07Since wsmux is currently designed to act as a N inputs : 1 output device,Miod Vallat
be more coherent when handling the attachment of output devices (displays): - on attach, only claim the mux output if it has none already; - on detach, only force detachment from the input devices from this display if we are the mux output.
2008-06-07Do not stupidly dereference NULL in wsmux_set_display() is invoked with NULLMiod Vallat
as the second parameter.
2008-01-23Cleanup cn_pri. Change constants to more meaningful names, rather thanJoel Sing
the hp300 related ones currently in use. CN_NORMAL becomes CN_LOWPRI, CN_INTERNAL becomes CN_MIDPRI and CN_REMOTE becomes CN_HIGHPRI. ok miod@
2007-11-27Remove whitespace at EOL, KNF, ansify. Move jump scroll code to a separateMiod Vallat
routine. No functional change (har, har)
2007-11-27Add display type for SGI GBE.Joel Sing
ok miod@
2007-11-26Constify the output of the emulops translate() function, as well as theMiod Vallat
various tables they use.
2007-11-25Ask the emulation code to hide the cursor when leaving emulation mode. ThisMiod Vallat
way we do not get a phantom cursor image when X exits.
2007-11-24typoMiod Vallat
2007-09-17Only the most obvious bzero() -> M_ZERO changes. No cast changes, noKenneth R Westerback
MALLOC/FREE, etc. Just adding M_ZERO to malloc() and deleting an immediately adjacent bzero().
2007-09-11KNFGilles Chehade
prompted and "much better" by marco@, ok pyr@
2007-09-10more MALLOC/FREE -> malloc/free and M_ZERO changesGilles Chehade
ok pyr@