summaryrefslogtreecommitdiffstats
path: root/sys/dev/syscons/syscons.c
Commit message (Collapse)AuthorAgeFilesLines
* Try again to get rid of makedev().phk2004-02-141-5/+9
|
* Back out my last commit to syscons, things seem to be far more evilphk2004-02-131-9/+5
| | | | | | | | than suspected. and obviously nobody runs the patches I post to -current :-( Poul-Henning
* Don't use makedev() to hack up dev_t's early in boot, do it rightphk2004-02-121-5/+9
| | | | with make_dev() (and avoid doing it again later).
* Eliminate global cons_unavailable flag and replace it by the statuskan2004-02-051-6/+9
| | | | | bit maintained on a per-device basis. Single variable is inadequate on machines running with multiple consoles enabled.
* __powerpc__ conditional code for the syscons OpenFirmware/PPC framebuffer.grehan2004-01-211-10/+10
| | | | | | | | | | | | Took the opportunity to reduce __i386__ || __ia64__ || __amd64__ || __sparc64__ || __powerpc__ to !__alpha__ reviewed by: gallatin
* Fix a panic that occurs when resuming. For some reason, sc->cur_scp isnjl2003-10-291-0/+3
| | | | | | NULL. Submitted by: Andrew Thompson <andy@fud.org.nz>
* Convert to cn_name rather than cn_dev.phk2003-09-261-2/+2
|
* Merge pc98 support from sys/pc98/pc98/syscons.c.nyan2003-08-251-0/+21
|
* Use __FBSDID().obrien2003-08-241-2/+3
| | | | Also some minor style cleanups.
* - Add a font width field to struct scr_stat. Use this instead of '8'.jake2003-08-241-3/+2
| | | | | - Use the values in the video info for the font size and width instead of second guessing.
* Add sparc64 ifdefs.jake2003-08-241-9/+27
|
* Fix endian bugs accessing ioctl arguments that are passed by value.jake2003-08-241-3/+3
|
* Trivial addition of __amd64__ to the ifdefs for platforms that usepeter2003-05-091-9/+9
| | | | | | i386-style vga console support. Approved by: re
* - Add vm_paddr_t, a physical address type. This is required for systemsjake2003-03-251-1/+1
| | | | | | | | | | | | | | | where physical addresses larger than virtual addresses, such as i386s with PAE. - Use this to represent physical addresses in the MI vm system and in the i386 pmap code. This also changes the paddr parameter to d_mmap_t. - Fix printf formats to handle physical addresses >4G in the i386 memory detection code, and due to kvtop returning vm_paddr_t instead of u_long. Note that this is a name change only; vm_paddr_t is still the same as vm_offset_t on all currently supported platforms. Sponsored by: DARPA, Network Associates Laboratories Discussed with: re, phk (cdevsw change)
* Don't call sysbeep() in sc_bell() if either duration or pitch is zero.jhb2003-03-241-1/+1
| | | | | | | | | | Otherwise sysbeep() makes an annoying clicking sound on some systems. 'kbdcontrol -b off' just sets the duration and pitch to zero, it doesn't set the QUIET_BELL flag. Tested by: SorAlx <soralx@cydem.zp.ua> PR: misc/41772 MFC after: 1 week
* Make nokqfilter() return the correct return value.phk2003-03-031-1/+1
| | | | Ditch the D_KQFILTER flag which was used to prevent calling NULL pointers.
* Gigacommit to improve device-driver source compatibility betweenphk2003-03-031-14/+11
| | | | | | | | | | | | | branches: Initialize struct cdevsw using C99 sparse initializtion and remove all initializations to default values. This patch is automatically generated and has been tested by compiling LINT with all the fields in struct cdevsw in reverse order on alpha, sparc64 and i386. Approved by: re(scottl)
* More low-hanging fruit: kill caddr_t in calls to wakeup(9) / [mt]sleep(9).des2003-03-021-6/+6
|
* When DDB is in the kernel, unlock VTY switching so that wemux2003-02-271-0/+4
| | | | | | | | don't end up freezing the box. This makes VTY locking useless in the DDB case but a box which is supposed to be physically secure shouldn't compile DDB anyway. Reviewed by: silence on -audit
* Cleanup of the d_mmap_t interface.mux2003-02-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | - Get rid of the useless atop() / pmap_phys_address() detour. The device mmap handlers must now give back the physical address without atop()'ing it. - Don't borrow the physical address of the mapping in the returned int. Now we properly pass a vm_offset_t * and expect it to be filled by the mmap handler when the mapping was successful. The mmap handler must now return 0 when successful, any other value is considered as an error. Previously, returning -1 was the only way to fail. This change thus accidentally fixes some devices which were bogusly returning errno constants which would have been considered as addresses by the device pager. - Garbage collect the poorly named pmap_phys_address() now that it's no longer used. - Convert all the d_mmap_t consumers to the new API. I'm still not sure wheter we need a __FreeBSD_version bump for this, since and we didn't guarantee API/ABI stability until 5.1-RELEASE. Discussed with: alc, phk, jake Reviewed by: peter Compile-tested on: LINT (i386), GENERIC (alpha and sparc64) Runtime-tested on: i386
* Change the console interface to pass a "struct consdev *" instead of aphk2003-02-201-4/+4
| | | | | | | | | dev_t to the method functions. The dev_t can still be found at struct consdev *->cn_dev. Add a void *cn_arg element to struct consdev which the drivers can use for retrieving their softc.
* Add a "hw.syscons.bell" sysctl, which can disable the bell at syscons level.cognet2003-02-201-1/+4
|
* Back out M_* changes, per decision of the TRB.imp2003-02-191-6/+6
| | | | Approved by: trb
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-211-6/+6
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* Make kqueue(2) work for virtual terminals.kbyanc2002-10-171-1/+2
| | | | | PR: 40486 Submitted by: Jilles Tjoelker <jilles+fbsd-bugs@stack.nl>
* Be consistent about "static" functions: if the function is markedphk2002-09-281-5/+5
| | | | | | static in its prototype, mark it static at the definition too. Inspired by: FlexeLint warning #512
* Don't use "NULL" when "0" is really meant.archie2002-08-211-1/+1
|
* 1. Allow information about current history size be retrieved using ioctl(2);sobomax2002-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.
* Add a VT_LOCKSWITCH ioctl that disallows vty switching. Somethingdd2002-07-101-0/+14
| | | | | | | | 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
* Make sc_saver_keyb_only (sceen saver interrupted by keyboard input only)alfred2002-06-061-1/+1
| | | | the default.
* When a program launched on the local console exits, the shell willmux2002-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>
* Turn on TGA support.obrien2002-04-131-2/+2
| | | | Submitted by: Andrew M. Miklic <AndrwMklc@cs.com>
* remove blanktime sysctl, this can't be done as easily as it looks.alfred2002-04-051-2/+0
| | | | Requested by: jhb
* Add some functionality via sysctl to syscons.alfred2002-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>
* Change the suser() API to take advantage of td_ucred as well as do ajhb2002-04-011-2/+2
| | | | | | | | | | | | 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@
* Extend CONS_GETINFO ioctl to provide information about size of the currentlysobomax2002-03-161-0/+1
| | | | | | displayed font. MFC after: 2 weeks
* Simple p_ucred -> td_ucred changes to start using the per-thread ucredjhb2002-02-271-1/+1
| | | | reference.
* Some fix for the recent apm module changes.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@
* cn_tab no longer exists, use cnadd() to add a console device. Note thatjlemon2001-10-241-1/+1
| | | | this may result in duplicate console output in some cases.
* Enable console. There are far too many 'ifdef __i386__' in this file.dfr2001-10-061-7/+7
|
* o Modify syscons ioctl securelevel checks to use securelevel_gt() (oh look,rwatson2001-09-261-2/+3
| | | | | | yet another API to do direct hardware I/O access.) Obtained from: TrustedBSD Project
* KSE Milestone 2julian2001-09-121-17/+17
| | | | | | | | | | | | | | 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
* Don't call wakeup() while we are in DDB. The patch wasyokota2001-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
* Use #ifdef DEV_SPLASH (from opt_splash.h) rather thanyokota2001-08-021-28/+28
| | | | | #if NSPLASH > 0 (from splash.h) to test the presence of the splash driver.
* Refine cursor type/shape control escape sequences andyokota2001-08-021-51/+113
| | | | | | | ioctls. We can now add ve, vi and vs capabilities to cons25 in termcap. Discussed with and tested by: ache
* Fix grammar nit.dd2001-08-011-1/+1
|
* - Fix "off by one" error in VT_WAITACTIVATE. Correctly acceptyokota2001-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
* Define a couple of subroutines to replace duplicated common code. Youyokota2001-07-201-65/+59
| | | | shoulnd't see any functional difference.
* - Define a convenience macro ISTTYOPEN().yokota2001-07-121-21/+28
| | | | | | | - Slightly refine screen saver logic. No functional change. MFC after: 2 weeks
* Fix dependencies between kernel options:yokota2001-07-101-5/+2
| | | | | | | | | | - 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
OpenPOWER on IntegriCloud