aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/syscons
Commit message (Collapse)AuthorAgeFilesLines
* Replace various spelling with FALLTHROUGH which is lint()ablePhilippe Charnier2002-08-251-2/+2
| | | | Notes: svn path=/head/; revision=102412
* Use machine/limits.h rather than userland limits.h (which may come fromPeter Wemm2002-08-221-1/+1
| | | | | | | the userland source tree, or even worse: /usr/include) Notes: svn path=/head/; revision=102290
* Don't use "NULL" when "0" is really meant.Archie Cobbs2002-08-212-5/+5
| | | | Notes: svn path=/head/; revision=102241
* de-count schistory.c. The handling of NSC was rather bogus here and wasPeter Wemm2002-08-191-4/+13
| | | | | | | | | | | little more than a place holder, because nothing actually counted the number of 'sc' units to compare it against NSC. A bit more work here is needed so that the scaling of SC_MAX_HISTORY_SIZE and extra_history_size goes up when more sc units are added. But, it does not appear that we can have more than one console yet, so it does not seem particularly urgent. Notes: svn path=/head/; revision=102148
* 1. Allow information about current history size be retrieved using ioctl(2);Maxim Sobolev2002-08-191-5/+44
| | | | | | | | 2. modify screen dumpung routine, so that in addition to visible area, it allows to grab any portion of history buffer as well. Notes: svn path=/head/; revision=102108
* Add a VT_LOCKSWITCH ioctl that disallows vty switching. SomethingDima Dorfman2002-07-102-0/+15
| | | | | | | | | | | like this can be emulated by VT_SETMODEing to VT_PROCESS and never releasing the vty, but this has a number of problems, most notably that a process must stay resident for the lock to be in effect. Reviewed by: roam, sheldonh Notes: svn path=/head/; revision=99704
* Make sc_saver_keyb_only (sceen saver interrupted by keyboard input only)Alfred Perlstein2002-06-061-1/+1
| | | | | | | the default. Notes: svn path=/head/; revision=97918
* When a program launched on the local console exits, the shell willMaxime Henrion2002-05-041-1/+2
| | | | | | | | | | | call read() to get the next command, and scread() disables the screensaver. We don't want this behaviour in the sc_saver_keybonly case. Submitted by: Olivier Houchard <doginou@ci0.org> Notes: svn path=/head/; revision=96033
* Turn on TGA support.David E. O'Brien2002-04-133-5/+13
| | | | | | | Submitted by: Andrew M. Miklic <AndrwMklc@cs.com> Notes: svn path=/head/; revision=94617
* remove blanktime sysctl, this can't be done as easily as it looks.Alfred Perlstein2002-04-051-2/+0
| | | | | | | Requested by: jhb Notes: svn path=/head/; revision=93902
* Add some functionality via sysctl to syscons.Alfred Perlstein2002-04-051-1/+8
| | | | | | | | | | | | | | hw.syscons.saver.keybonly: used to specify that only input is to interrupt the screensaver. This allows one to run a chatty console app but still have the screen blank out until a key is pressed. There should probably also be an ioctl for this, we'll do that later. hw.syscons.saver.blanktime: exports the screensaver timeout via sysctl. Submitted by: Olivier Houchard <doginou@cognet.ci0.org> Notes: svn path=/head/; revision=93897
* Change the suser() API to take advantage of td_ucred as well as do aJohn Baldwin2002-04-012-3/+3
| | | | | | | | | | | | | | | general cleanup of the API. The entire API now consists of two functions similar to the pre-KSE API. The suser() function takes a thread pointer as its only argument. The td_ucred member of this thread must be valid so the only valid thread pointers are curthread and a few kernel threads such as thread0. The suser_cred() function takes a pointer to a struct ucred as its first argument and an integer flag as its second argument. The flag is currently only used for the PRISON_ROOT flag. Discussed on: smp@ Notes: svn path=/head/; revision=93593
* Remote newly unused variable to unbreak LINT.Brooks Davis2002-03-251-1/+1
| | | | | | | Pointy hat to: amorita Notes: svn path=/head/; revision=93115
* Add new graphical screen saver (dragon_saver).Akio Morita2002-03-235-90/+490
| | | | | | | Add support for NEC PC-9821 PEGC screen (fire/logo/rain/warp_saver). Notes: svn path=/head/; revision=93011
* Remove __P.Alfred Perlstein2002-03-201-1/+1
| | | | Notes: svn path=/head/; revision=92762
* Extend CONS_GETINFO ioctl to provide information about size of the currentlyMaxim Sobolev2002-03-161-0/+1
| | | | | | | | | displayed font. MFC after: 2 weeks Notes: svn path=/head/; revision=92459
* Fixed compilation warnings.Ruslan Ermilov2002-03-061-0/+2
| | | | Notes: svn path=/head/; revision=91734
* Simple p_ucred -> td_ucred changes to start using the per-thread ucredJohn Baldwin2002-02-271-1/+1
| | | | | | | reference. Notes: svn path=/head/; revision=91406
* Lock struct pgrp, session and sigio.Seigo Tanimura2002-02-231-3/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | New locks are: - pgrpsess_lock which locks the whole pgrps and sessions, - pg_mtx which protects the pgrp members, and - s_mtx which protects the session members. Please refer to sys/proc.h for the coverage of these locks. Changes on the pgrp/session interface: - pgfind() needs the pgrpsess_lock held. - The caller of enterpgrp() is responsible to allocate a new pgrp and session. - Call enterthispgrp() in order to enter an existing pgrp. - pgsignal() requires a pgrp lock held. Reviewed by: jhb, alfred Tested on: cvsup.jp.FreeBSD.org (which is a quad-CPU machine running -current) Notes: svn path=/head/; revision=91140
* Spell #if 0 correctlyAndrew Gallatin2002-02-141-2/+2
| | | | Notes: svn path=/head/; revision=90664
* In the word selection mode don't append newline if the word ends at theMaxim Sobolev2002-01-051-0/+4
| | | | | | | screen boundary. Notes: svn path=/head/; revision=88926
* Fix POLA - when selecting line into syscons' cut'n'paste buffer (doubleMaxim Sobolev2001-11-251-0/+4
| | | | | | | | | click) do not include newline into the buffer. This is exacly how things worked before my recent changes to the cut'n'paste code and how they work in 4-STABLE. Notes: svn path=/head/; revision=86894
* More drive-by stylification, and some clarificationsDag-Erling Smørgrav2001-11-061-10/+16
| | | | Notes: svn path=/head/; revision=86122
* More drive-by stylificationDag-Erling Smørgrav2001-11-061-4/+4
| | | | Notes: svn path=/head/; revision=86121
* Drive-by stylification + reintroduce set_border().Dag-Erling Smørgrav2001-11-063-211/+218
| | | | Notes: svn path=/head/; revision=86120
* Some fix for the recent apm module changes.Mitsuru IWASAKI2001-11-011-11/+3
| | | | | | | | | | | | | | | | | - Now that apm loadable module can inform its existence to other kernel components (e.g. i386/isa/clock.c:startrtclock()'s TCS hack). - Exchange priority of SI_SUB_CPU and SI_SUB_KLD for above purpose. - Add simple arbitration mechanism for APM vs. ACPI. This prevents the kernel enables both of them. - Remove obsolete `#ifdef DEV_APM' related code. - Add abstracted interface for Powermanagement operations. Public apm(4) functions, such as apm_suspend(), should be replaced new interfaces. Currently only power_pm_suspend (successor of apm_suspend) is implemented. Reviewed by: peter, arch@ and audit@ Notes: svn path=/head/; revision=85835
* Add the TGA video driver. This is a great accomplishtment and will helpDavid E. O'Brien2001-11-011-711/+163
| | | | | | | | | | | us a lot on older Alphas. Andrew Gallatin, Thomas V. Crimi, and Peter Jeremy contributed to this work along with the submitter. Submitted by: Andrew M. Miklic <miklic@home.com> Notes: svn path=/head/; revision=85810
* cn_tab no longer exists, use cnadd() to add a console device. Note thatJonathan Lemon2001-10-241-1/+1
| | | | | | | this may result in duplicate console output in some cases. Notes: svn path=/head/; revision=85426
* Enable console. There are far too many 'ifdef __i386__' in this file.Doug Rabson2001-10-061-7/+7
| | | | Notes: svn path=/head/; revision=84589
* o Modify syscons ioctl securelevel checks to use securelevel_gt() (oh look,Robert Watson2001-09-261-2/+3
| | | | | | | | | yet another API to do direct hardware I/O access.) Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=83977
* Introduce new syscons(4) kernel options:Maxim Sobolev2001-09-211-100/+91
| | | | | | | | | | | | | | | | - SC_CUT_SPACES2TABS - when copying text into the cut buffer convert leading spaces into the tabs; - SC_CUT_SEPCHARS="XYZ" - treat supplied characters as possible words separators when the driver searches for words boundaries when doing cut operation. Also unify cut code a bit to decrease amount of duplicated code. This fixes line cut mode, so that it is no longer pads line with useless spaces. Approved by: ru Notes: svn path=/head/; revision=83791
* KSE Milestone 2Julian Elischer2001-09-128-35/+35
| | | | | | | | | | | | | | | | | Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is functionally equivalent to teh previousl -current except that there is a thread associated with each process. Sorry john! (your next MFC will be a doosie!) Reviewed by: peter@freebsd.org, dillon@freebsd.org X-MFC after: ha ha ha ha Notes: svn path=/head/; revision=83366
* Fix some malformed macro concatenation that gcc-3 has objections about.Peter Wemm2001-09-101-4/+4
| | | | Notes: svn path=/head/; revision=83274
* repo-copy the source files from modules/syscons to the normal treePeter Wemm2001-08-092-5/+13
| | | | | | | and connect them to the normal build infrastructure. Notes: svn path=/head/; revision=81322
* Don't call wakeup() while we are in DDB. The patch wasKazutaka YOKOTA2001-08-071-3/+16
| | | | | | | | | developed by bde. I added the same check in one more place where wakeup() might be called during the DDB session. Submitted by: bde Notes: svn path=/head/; revision=81230
* Use #ifdef DEV_SPLASH (from opt_splash.h) rather thanKazutaka YOKOTA2001-08-021-28/+28
| | | | | | | | #if NSPLASH > 0 (from splash.h) to test the presence of the splash driver. Notes: svn path=/head/; revision=81050
* Add FBIO_BLANK ioctl support. Return ENODEV for yet-to-be-Kazutaka YOKOTA2001-08-021-0/+5
| | | | | | | supported ioctls for now. Notes: svn path=/head/; revision=81039
* Refine cursor type/shape control escape sequences andKazutaka YOKOTA2001-08-025-111/+215
| | | | | | | | | | ioctls. We can now add ve, vi and vs capabilities to cons25 in termcap. Discussed with and tested by: ache Notes: svn path=/head/; revision=81030
* Fix grammar nit.Dima Dorfman2001-08-011-1/+1
| | | | Notes: svn path=/head/; revision=80964
* - Fix "off by one" error in VT_WAITACTIVATE. Correctly acceptKazutaka YOKOTA2001-07-221-5/+5
| | | | | | | | | | | 0 as meaning the requesting vty. - Accept 0 as the requesting vty in VT_ACTIVATE as in VT_WAITACTIVE. PR: 24423 MFC after: 10 days Notes: svn path=/head/; revision=80151
* Fix off by one error for ESC[1J.Kazutaka YOKOTA2001-07-201-1/+1
| | | | | | | | PR: kern/18381 MFC after: 10 days Notes: svn path=/head/; revision=80044
* Define a couple of subroutines to replace duplicated common code. YouKazutaka YOKOTA2001-07-201-65/+59
| | | | | | | shoulnd't see any functional difference. Notes: svn path=/head/; revision=80041
* - Define a convenience macro ISTTYOPEN().Kazutaka YOKOTA2001-07-121-21/+28
| | | | | | | | | | - Slightly refine screen saver logic. No functional change. MFC after: 2 weeks Notes: svn path=/head/; revision=79622
* Fix dependencies between kernel options:Kazutaka YOKOTA2001-07-105-17/+26
| | | | | | | | | | | | | - When both SC_PIXEL_MODE and SC_NO_FONT_LOADING are defined, quietly drop SC_NO_FONT_LOADING, because the pixel(raster) console requires font. - When SC_NO_FONT_LOADING is defined, force SC_ALT_MOUSE_IMAGE. Without font, the arrow-shaped mouse cursor cannot be drawn. - Fiddle and simplify some internal macros. MFC after: 2 weeks Notes: svn path=/head/; revision=79534
* Call ttymalloc() when sysmouse is opened, rather thanKazutaka YOKOTA2001-07-061-1/+1
| | | | | | | | when the driver is attached. MFC after: 2 weeks Notes: svn path=/head/; revision=79344
* Remove the resume method. It is not necessary any more, becauseKazutaka YOKOTA2001-06-302-13/+0
| | | | | | | | keyboard drivers have it now... MFC after: 4 weeks Notes: svn path=/head/; revision=79023
* If we are in DDB, don't switch to a vty in the VT_PROCESS mode.Kazutaka YOKOTA2001-06-301-0/+6
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=79021
* Add a new MI pointer to the process' trapframe p_frame instead of usingJohn Baldwin2001-06-291-2/+2
| | | | | | | | | various differently named pointers buried under p_md. Reviewed by: jake (in principle) Notes: svn path=/head/; revision=78962
* Don't free buffers we didn't allocate.Kazutaka YOKOTA2001-06-292-3/+6
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=78956
* Quit the ioctl MOUSE_GETINFO as soon as we have gathered necessaryKazutaka YOKOTA2001-06-291-1/+1
| | | | | | | | information. There is no need to stick around any longer. MFC after: 2 weeks Notes: svn path=/head/; revision=78951