summaryrefslogtreecommitdiff
path: root/sys/dev/wscons
AgeCommit message (Collapse)Author
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@
2007-09-01- Add bthidev(4), from NetBSD.Xavier Santolaria
- Make btms(4) and btkbd(4) compile. - Removed remaining proplib NetBSD'sim Prodded a while ago by gwk@. Eyeballed by miod@.
2007-07-25Back out the tracking of procs in struct selinfo. There's one seriousArtur Grabowski
bug in the code, but as soon as I try to fix it, it seems to trigger some other bugs. Instead of trying to figure out what's going on while everyone suffers, it's better to back out and figure out the bugs outside the tree.
2007-06-02little fixes to get hotkeys working again. from alexey vatchenkoTed Unangst
2007-05-31switch wskbd hotkeys over to workq. this eliminates quite a bit of code,Ted Unangst
so remove the option too. if you have audio and wskbd, you have hotkeys. ok dlg
2007-05-14wsmouse.h is needed for the NWSMOUSE test to actually workTed Unangst
found by and ok art
2007-05-08add swapxy, resx and resy to struct wsmouse_calibcoords,Robert Nagy
so we can store these values here; ok miod@
2007-04-10Add support for a fourth axis on wsmouse devices, e.g. on the Apple MightMiod Vallat
Mouse. Currently limited to USB mice. Adapted from a diff from Gareth <garf@loveandnature.co.za> on tech@
2007-04-10``it's'' -> ``its'' when the grammar gods require this change.Miod Vallat
2007-03-25POLLERR is the correct return code for poll errorsTed Unangst
ok art deraadt miod
2007-03-24Kill the horrible hack of storing the pid in struct selinfo.Artur Grabowski
Instead, keep the proc pointer in it and put the selinfo on a list in struct proc in selrecord. Then clean up the list when leaving sys_select and sys_poll. miod@ ok, testing by many, including Bobs spamd boxes.
2007-03-07For unsupported (yet) Expert3D style frame buffers, attach pcons and attachMiod Vallat
a really dumb wsdisplay to pcons, so that wskbd/wsmouse input drivers can be used for input, and prom for output. This is a band-aid for the release, so that people with such frame buffers do not need to unplug them or switch to serial console to install OpenBSD. Probably not the best way to do this, but this one has a minimal footprint and no tentacles in wscons. ok deraadt@
2007-02-14FALLTHRU -> FALLTHROUGH for consistency.Jonathan Gray
Suggested by miod@
2007-02-14Consistently spell FALLTHROUGH to appease lint.Jonathan Gray
ok kettenis@ cloder@ tom@ henning@
2007-01-07Some dynamically allocated elements are not considered of vital importanceMiod Vallat
for the vt100 emulation to work well enough for most cases (i.e. alternate character set tables, non-default tab settings, etc). However, code did not always check if these elements had been successfully allocated before trying to use them, or worse, would explicitely panic in DIAGNOSTIC kernels. Change this to work in a degraded mode (by ignoring related escape sequences) instead.
2007-01-07Change allocations to M_NOWAIT in attach methods, and return NULL if they fail.Miod Vallat
2007-01-07In wsscreen_attach(), allow wsemul->attach to fail (returning NULL) if theMiod Vallat
screen is not the console.
2006-12-17More leftovers from rcons.Miod Vallat
2006-12-17When processing a compose sequence of a dead accent and the spacebar, putMiod Vallat
the ``mundane'' accent: apostrophe instead of acute, and comma instead of cedilla. This matches what existing keyboard layouts with dead keys do. From Maurice Janssen via otto@
2006-12-09Do not make sun terminal emulation selected by the wsemul_sun frame bufferMiod Vallat
attribute anymore; remove it and use option WSEMUL_SUN instead, which gets added to all sparc* kernels. While there, do not compile vt100 emulation on sparc* kernels, this saves 16+ KB of text. ok deraadt@