summaryrefslogtreecommitdiffstats
path: root/sys/dev/syscons
Commit message (Collapse)AuthorAgeFilesLines
* - 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-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
* Call ttymalloc() when sysmouse is opened, rather thanyokota2001-07-061-1/+1
| | | | | when the driver is attached. MFC after: 2 weeks
* Remove the resume method. It is not necessary any more, becauseyokota2001-06-302-13/+0
| | | | | keyboard drivers have it now... MFC after: 4 weeks
* If we are in DDB, don't switch to a vty in the VT_PROCESS mode.yokota2001-06-301-0/+6
| | | | MFC after: 2 weeks
* Add a new MI pointer to the process' trapframe p_frame instead of usingjhb2001-06-291-2/+2
| | | | | | various differently named pointers buried under p_md. Reviewed by: jake (in principle)
* Don't free buffers we didn't allocate.yokota2001-06-292-3/+6
| | | | MFC after: 2 weeks
* Quit the ioctl MOUSE_GETINFO as soon as we have gathered necessaryyokota2001-06-291-1/+1
| | | | | information. There is no need to stick around any longer. MFC after: 2 weeks
* Test "sc->kbd != NULL" rather than "sc != NULL" beforeyokota2001-06-291-1/+1
| | | | | accessing the keyboard in scopen(). MFC after: 2 weeks
* With this commit, I hereby pronounce gensetdefs past its use-by date.peter2001-06-135-19/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace the a.out emulation of 'struct linker_set' with something a little more flexible. <sys/linker_set.h> now provides macros for accessing elements and completely hides the implementation. The linker_set.h macros have been on the back burner in various forms since 1998 and has ideas and code from Mike Smith (SET_FOREACH()), John Polstra (ELF clue) and myself (cleaned up API and the conversion of the rest of the kernel to use it). The macros declare a strongly typed set. They return elements with the type that you declare the set with, rather than a generic void *. For ELF, we use the magic ld symbols (__start_<setname> and __stop_<setname>). Thanks to Richard Henderson <rth@redhat.com> for the trick about how to force ld to provide them for kld's. For a.out, we use the old linker_set struct. NOTE: the item lists are no longer null terminated. This is why the code impact is high in certain areas. The runtime linker has a new method to find the linker set boundaries depending on which backend format is in use. linker sets are still module/kld unfriendly and should never be used for anything that may be modular one day. Reviewed by: eivind
* Make the beep duration independent of HZ.phk2001-05-282-2/+3
| | | | | | PR: 25201 Submitted by: Akio Morita amorita@meadow.scphys.kyoto-u.ac.jp MFC after: 1 week
* In the VIRTUAL_TTY macro, add a check to make sure that the result ofdd2001-05-271-1/+2
| | | | | | | | | | | SC_DEV isn't NULL; if it is, evaluate to NULL and don't dereference NULL. Callers of VIRTUAL_TTY must already check for the result being NULL since si_tty can be NULL, so this should be safe. This fixes a panic when trying to switch to a different vty in an environment such as userconfig (-c option to the kernel). PR: 26508
* Add a CONS_CLRHIST ioctl which instructs syscons to clear the historydd2001-05-271-0/+6
| | | | | | | (scroll-back) buffer. PR: 27616 Reviewed by: ru
* Add a new ioctl to syscons, CONS_SCRSHOT. Given a userland buffer, itnik2001-05-181-0/+18
| | | | | | | | | | | copies out the current contents of the video buffer for a syscons terminal, providing a snapshot of the text and attributes. Based heavily on work originally submitted by Joel Holveck <joelh@gnu.org> for 2.2.x almost 30 months ago, which I cleaned up a little, and forward ported to -current. See also the usr.bin/scrshot utility.
* Undo part of the tangle of having sys/lock.h and sys/mutex.h included inmarkm2001-05-012-14/+18
| | | | | | | | | | | other "system" header files. Also help the deprecation of lockmgr.h by making it a sub-include of sys/lock.h and removing sys/lockmgr.h form kernel .c files. Sort sys/*.h includes where possible in affected files. OK'ed by: bde (with reservations)
* Change the pfind() and zpfind() functions to lock the process that theyjhb2001-04-242-11/+28
| | | | | | find before releasing the allproc lock and returning. Reviewed by: -smp, dfr, jake
* Upper limit of mousechar start is UCHAR_MAX - 3, not UCHAR_MAX - 4ache2001-04-211-2/+4
| | | | | | | Restore original characters when mousechar start changes, not always 0-3 PR: 24437 Submitted by: Cejka Rudolf <cejkar@dcse.fee.vutbr.cz>
* Send the remains (such as I have located) of "block major numbers" tophk2001-03-262-2/+0
| | | | the bit-bucket.
* Multiply empty lines pasted as single line, fix itache2001-03-131-2/+2
|
* Don't require that mouse cursor must be visible before mouse paste.ache2001-03-122-15/+7
| | | | | | Paste always happens to current _text_ cursor position independently of mouse cursor position in any case and old variant force user to press mouse paste button _two_ times if mouse cursor is invisible.
* Implement keyboard pasteache2001-03-113-5/+17
| | | | | PR: 25499 Submitted by: Gaspar Chilingarov <nm@web.am>
* Grab the process lock while calling psignal and before calling psignal.jhb2001-03-072-0/+8
|
* Indent the comment about the Alpha palette evilness correctly.jhb2001-03-061-5/+5
| | | | Noticed by: bde
* Fix longstanding mouse cursor bug: blinking and eating all CPU while near textache2001-03-061-0/+1
| | | | | | | | | cursor. The reason is: mouse cursor goes into hide/visible loop while text cursor even not moved. PR: 25536 Submitted by: David Xu <davidx@viasoft.com.cn>
* The SRM console gets the red and blue attributes backwards in the VGAjhb2001-03-051-0/+12
| | | | | | | | | | | | | | | palette. As a result, the colors on the video console can look rather weird. For example, sysinstall on the alpha has a read background. We can work around this partially by remapping the colors used by syscons for the ANSI color escape sequences. Note that screen savers and anything that sets the colors explicitly will still get incorrect colors, but programs such as sysinstall will now use the correct colors. A more correct fix would be to actually fix the VGA palette on boot by either swapping all the red and blue attributes or by hardcoding a standard palette and overwriting the entire palette. Requested by: gallatin Obtained from: NetBSD
* Fixed warnings.nyan2001-02-213-14/+14
|
* Added necessary include for pc98.nyan2001-01-251-0/+1
|
* Added PC-98 apm support.nyan2001-01-221-0/+4
| | | | Submitted by: MURAMATSU Atsushi <amura@ma3.seikyou.ne.jp>
* Convert apm from a bogus 'count' into a plain option. Clean out somepeter2001-01-191-2/+2
| | | | other cruft from the files.alpha and files.ia64 that were related to this.
* select() DKI is now in <sys/selinfo.h>.wollman2001-01-091-1/+1
|
* Convert more malloc+bzero to malloc+M_ZERO.dwmalone2000-12-081-2/+1
| | | | | Submitted by: josh@zipperup.org Submitted by: Robert Drehmel <robd@gmx.net>
* Don't needlessly indirect the APM softstate. It does nothing butnsayer2000-10-311-6/+2
| | | | obfuscate the code.
* Move suser() and suser_xxx() prototypes and a related #define fromphk2000-10-291-1/+0
| | | | | | | | | <sys/proc.h> to <sys/systm.h>. Correctly document the #includes needed in the manpage. Add one now needed #include of <sys/systm.h>. Remove the consequent 48 unused #includes of <sys/proc.h>.
* Initiate deorbit burn sequence for <machine/mouse.h>.phk2000-10-092-4/+2
| | | | | | | | | | Replace all in-tree uses with <sys/mouse.h> which repo-copied a few moments ago from src/sys/i386/include/mouse.h by peter. This is also the appropriate fix for exo-tree sources. Put warnings in <machine/mouse.h> to discourage use. November 15th 2000 the warnings will be converted to errors. January 15th 2001 the <machine/mouse.h> files will be removed.
* A couple of negative options was not commented out in NOTES/LINT. Thisphk2000-10-091-0/+2
| | | | obscured a #include bug in syscons.
* Initiate deorbit burn sequence for <machine/console.h>.phk2000-10-089-10/+15
| | | | | | | | | Replace all in-tree uses with necessary subset of <sys/{fb,kb,cons}io.h>. This is also the appropriate fix for exo-tree sources. Put warnings in <machine/console.h> to discourage use. November 15th 2000 the warnings will be converted to errors. January 15th 2001 the <machine/console.h> files will be removed.
* Add the ability to define a "shutdown" and "shutdown and poweroff" keydwmalone2000-09-111-0/+12
| | | | | | | | to syscons. I have a man page to follow describing the format of the kbdmap file. PR: 19273 Reviewed by: sheldonh
* Harvest mouse events for the entropy device in a better place. In themarkm2000-09-102-3/+4
| | | | | | new location, all mouse events are harvested, not just the ones being written out to moused(8). This means that mouse entropy is harvested at the consoles as well as in X.
* Make it possible to pass boot()'s flags to shutdown_nice() so that themsmith2000-08-311-1/+1
| | | | | | kernel can instigate an orderly shutdown but still determine the form of that shutdown. Make it possible eg. to cleanly shutdown and power off the system under ACPI when the power button is pressed.
* * Completely rewrite the alpha busspace to hide the implementation fromdfr2000-08-283-0/+3
| | | | | | | | | | | | the drivers. * Remove legacy inx/outx support from chipset and replace with macros which call busspace. * Rework pci config accesses to route through the pcib device instead of calling a MD function directly. With these changes it is possible to cleanly support machines which have more than one independantly numbered PCI busses. As a bonus, the new busspace implementation should be measurably faster than the old one.
* Fix ioctl MOUSE_SETMODE as defined in mouse(4).yokota2000-08-271-2/+5
| | | | | (Do not return EINVAL when -1 is specified as a new value, as it should mean "preserve the current value.")
* o Fix a horrible bug where small reads (< 8 bytes) would return themarkm2000-07-252-6/+2
| | | | | | | | wrong bytes. o Improve the public interface; use void* instead of char* or u_int64_t to pass arbitrary data around. Submitted by: kris ("horrible bug")
* Make Reset (ESC c) reset attributes too, not only clear screenache2000-07-211-1/+6
|
* Implement SGR 22,24,25,27 from ECMA-48ache2000-07-201-0/+16
|
* Accorfing to ECMA-48 SGR 39 and 49 are just another colors and must not resetache2000-07-201-2/+2
| | | | other attrs, so reset only bold on 39
* Don't break the ability to debug the kernel when gathering entropy.markm2000-07-161-1/+2
| | | | Pointed out by: bde
* Shorten 49m attr resetting expressionache2000-07-151-2/+1
|
* Reset corresponding color attributes on 39m and 49mache2000-07-151-16/+17
| | | | Unify comments related to color
* Add entropy-harvesting calls.markm2000-07-092-0/+10
| | | | /dev/random now has new-and-improved entropy!
* Remove old entropy-harvesting hooks; this is going to be re-engineeredmarkm2000-06-251-7/+0
| | | | later.
OpenPOWER on IntegriCloud