summaryrefslogtreecommitdiff
path: root/sys/modules/syscons
Commit message (Collapse)AuthorAgeFilesLines
* This commit was manufactured by cvs2svn to create tagrelease/4.3.0_cvscvs2svn2001-04-2125-25/+25
| | | | | | | 'RELENG_4_3_0_RELEASE'. This commit was manufactured to restore the state of the 4.3-RELEASE image. Releases prior to 5.3-RELEASE are omitting the secure/ and crypto/ subdirs.
* MFC: v1.12.Nick Sayer2001-03-071-6/+2
| | | | | | | | | Don't needlessly indirect the apm soft state. Approved by: jkh Notes: svn path=/stable/4/; revision=73968
* MFC: Added pc98 apm support.Yoshihiro Takahashi2001-02-082-0/+9
| | | | Notes: svn path=/stable/4/; revision=72163
* MFC: $FreeBSD$Peter Wemm2000-08-032-0/+3
| | | | Notes: svn path=/stable/4/; revision=64172
* MFC: use MI random.hDavid E. O'Brien2000-05-102-4/+2
| | | | Notes: svn path=/stable/4/; revision=60329
* MFC: use MI random.h rather than i386 specific oneDavid E. O'Brien2000-05-101-2/+1
| | | | Notes: svn path=/stable/4/; revision=60323
* MFC: Added PC-98 supports.Yoshihiro Takahashi2000-05-096-0/+30
| | | | Notes: svn path=/stable/4/; revision=60255
* MFC (build screen savers other than "apm" on the Alpha)David E. O'Brien2000-05-061-1/+4
| | | | Notes: svn path=/stable/4/; revision=60063
* This is the 3rd stage of syscons code reorganization.Kazutaka YOKOTA2000-01-153-3/+3
| | | | | | | | | | | | | | | | | | - Split terminal emulation code from the main part of the driver so that we can have alternative terminal emulator modules if we like in the future. (We are not quite there yet, though.) - Put sysmouse related code in a separate file, thus, simplifying the main part of the driver. As some files are added to the source tree, you need to run config(8) before you compile a new kernel next time. You shouldn't see any functional change by this commit; this is only internal code reorganization. Notes: svn path=/head/; revision=56043
* Add the apm_saver syscons screen saver module.Nick Sayer1999-10-023-0/+101
| | | | | | | | | | | | | | | | | apm_saver uses the apm_display() routine from the apm system to "suspend" the "display" part of the machine. This is beneficial for some laptops (or other machines with non-traditional displays) that choke on the 'green' saver's effect. Another way of looking at this is that it's the same as a screen saver that does an 'apm -d 0' to blank the display and an 'apm -d 1' to bring it back. One probably ought to use these commands to make sure the effect will be correct before using it unattended. Notes: svn path=/head/; revision=51851
* Clean up and reorder.Dag-Erling Smørgrav1999-09-081-1/+11
| | | | Notes: svn path=/head/; revision=51101
* $Id$ -> $FreeBSD$Peter Wemm1999-08-2821-21/+21
| | | | Notes: svn path=/head/; revision=50477
* The second phase of syscons reorganization.Kazutaka YOKOTA1999-06-2211-288/+217
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Split syscons source code into manageable chunks and reorganize some of complicated functions. - Many static variables are moved to the softc structure. - Added a new key function, PREV. When this key is pressed, the vty immediately before the current vty will become foreground. Analogue to PREV, which is usually assigned to the PrntScrn key. PR: kern/10113 Submitted by: Christian Weisgerber <naddy@mips.rhein-neckar.de> - Modified the kernel console input function sccngetc() so that it handles function keys properly. - Reorganized the screen update routine. - VT switching code is reorganized. It now should be slightly more robust than before. - Added the DEVICE_RESUME function so that syscons no longer hooks the APM resume event directly. - New kernel configuration options: SC_NO_CUTPASTE, SC_NO_FONT_LOADING, SC_NO_HISTORY and SC_NO_SYSMOUSE. Various parts of syscons can be omitted so that the kernel size is reduced. SC_PIXEL_MODE Made the VESA 800x600 mode an option, rather than a standard part of syscons. SC_DISABLE_DDBKEY Disables the `debug' key combination. SC_ALT_MOUSE_IMAGE Inverse the character cell at the mouse cursor position in the text console, rather than drawing an arrow on the screen. Submitted by: Nick Hibma (n_hibma@FreeBSD.ORG) SC_DFLT_FONT makeoptions "SC_DFLT_FONT=_font_name_" Include the named font as the default font of syscons. 16-line, 14-line and 8-line font data will be compiled in. This option replaces the existing STD8X16FONT option, which loads 16-line font data only. - The VGA driver is split into /sys/dev/fb/vga.c and /sys/isa/vga_isa.c. - The video driver provides a set of ioctl commands to manipulate the frame buffer. - New kernel configuration option: VGA_WIDTH90 Enables 90 column modes: 90x25, 90x30, 90x43, 90x50, 90x60. These modes are mot always supported by the video card. PR: i386/7510 Submitted by: kbyanc@freedomnet.com and alexv@sui.gda.itesm.mx. - The header file machine/console.h is reorganized; its contents is now split into sys/fbio.h, sys/kbio.h (a new file) and sys/consio.h (another new file). machine/console.h is still maintained for compatibility reasons. - Kernel console selection/installation routines are fixed and slightly rebumped so that it should now be possible to switch between the interanl kernel console (sc or vt) and a remote kernel console (sio) again, as it was in 2.x, 3.0 and 3.1. - Screen savers and splash screen decoders Because of the header file reorganization described above, screen savers and splash screen decoders are slightly modified. After this update, /sys/modules/syscons/saver.h is no longer necessary and is removed. Notes: svn path=/head/; revision=48104
* MFS: indent-assisted style cleanup.Dag-Erling Smørgrav1999-05-101-30/+27
| | | | Notes: svn path=/head/; revision=46899
* A little closer to style(9).Dag-Erling Smørgrav1999-05-081-58/+64
| | | | Notes: svn path=/head/; revision=46689
* Add missing copyright.Jordan K. Hubbard1999-05-041-0/+27
| | | | Notes: svn path=/head/; revision=46409
* Add "fire" screen saver.Jordan K. Hubbard1999-05-043-2/+114
| | | | | | | Submitted by: Brad Forschinger <retch@flag.blackened.net> Notes: svn path=/head/; revision=46407
* Centralize and reorganize a few macros.Dag-Erling Smørgrav1999-04-124-18/+19
| | | | Notes: svn path=/head/; revision=45616
* Followup to yokota's last commit:Dag-Erling Smørgrav1999-02-054-13/+14
| | | | | | | | - va_mode_flags -> va_info.vi_flags - scanline width may be different from screen width Notes: svn path=/head/; revision=43673
* Retrun EAGAIN if the current video mode is a graphics mode.Kazutaka YOKOTA1999-01-173-6/+6
| | | | Notes: svn path=/head/; revision=42749
* Move the definition of set_origin from logo_saver.c to saver.h.Dag-Erling Smørgrav1999-01-162-4/+4
| | | | Notes: svn path=/head/; revision=42720
* The first stage of console driver reorganization: activate newKazutaka YOKOTA1999-01-1110-302/+240
| | | | | | | | | | | | | | | | keyboard and video card drivers. Because of the changes, you are required to update your kernel configuration file now! The files in sys/dev/syscons are still i386-specific (but less so than before), and won't compile for alpha and PC98 yet. syscons still directly accesses the video card registers here and there; this will be rectified in the later stages. Notes: svn path=/head/; revision=42504
* Use M_VGA_VG320 if M_VESA_CG800x600 is not available. It looks ugly inDag-Erling Smørgrav1999-01-011-23/+31
| | | | | | | | | low-res, but it works... Submitted by: Ben Smithurst <ben@scientia.demon.co.uk> Notes: svn path=/head/; revision=42236
* Activate the rain screensaver.Dag-Erling Smørgrav1998-12-311-2/+2
| | | | Notes: svn path=/head/; revision=42206
* Here's one for the terminally melancholic amongst us.Dag-Erling Smørgrav1998-12-312-0/+146
| | | | Notes: svn path=/head/; revision=42205
* Eliminate "initialization from incompatible type" warning in SAVER_MODULEDag-Erling Smørgrav1998-12-311-4/+3
| | | | | | | macro. Notes: svn path=/head/; revision=42204
* Compile without warnings.Dag-Erling Smørgrav1998-12-312-5/+6
| | | | Notes: svn path=/head/; revision=42203
* Add -I${.CURDIR} since it #includes logo.c from the source dir and breaksPeter Wemm1998-12-291-2/+2
| | | | | | | | | when building with an obj dir. Reported by: Quite a few people.. :-/ Notes: svn path=/head/; revision=42143
* Activate the logo screensaver.Dag-Erling Smørgrav1998-12-281-2/+2
| | | | Notes: svn path=/head/; revision=42121
* One more for the road: Chuck the friendly floating daemon. RequiresDag-Erling Smørgrav1998-12-283-0/+520
| | | | | | | VESA_800x600 to run. Notes: svn path=/head/; revision=42120
* Save the palette in case syscons doesn't restore it properly.Dag-Erling Smørgrav1998-12-281-3/+6
| | | | | | | Fix a minor overflow. Notes: svn path=/head/; revision=42119
* Activate the warp screensaver.Dag-Erling Smørgrav1998-12-271-2/+2
| | | | Notes: svn path=/head/; revision=42109
* Finally give FreeBSD a graphical screensaver. It isn't much, but it works,Dag-Erling Smørgrav1998-12-272-0/+150
| | | | | | | | | | and can serve as a template for further efforts. Consider this my (belated) Christmas present to the Project :) Requested by: jkh Notes: svn path=/head/; revision=42108
* Simple update to make these work as kld and preload modules.Peter Wemm1998-11-047-85/+56
| | | | Notes: svn path=/head/; revision=40885
* Sample initial set of kld-ified modules. Not all have been completelyPeter Wemm1998-10-167-12/+15
| | | | | | | | | | converted yet. These are more of a starting point. This is NOT connected to the parent Makefile. OK'ed by jkh (who is ever so patiently waiting) Notes: svn path=/head/; revision=40440
* Fix the sreensavers so the work again with the new syscons & friends.Søren Schmidt1998-09-177-35/+46
| | | | | | | Submitted by: Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp> Notes: svn path=/head/; revision=39428
* Add VESA support to syscons.Søren Schmidt1998-09-157-39/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Kazu writes: The VESA support code requires vm86 support. Make sure your kernel configuration file has the following line. options "VM86" If you want to statically link the VESA support code to the kernel, add the following option to the kernel configuration file. options "VESA" The vidcontrol command now accepts the following video mode names: VESA_132x25, VESA_132x43, VESA_132x50, VESA_132x60, VESA_800x600 The VESA_800x600 mode is a raster display mode. The 80x25 text will be displayed on the 800x600 screen. Useful for some laptop computers. vidcontrol accepts the new `-i <info>' option, where <info> must be either `adapter' or `mode'. When the `-i adapter' option is given, vidcontrol will print basic information (not much) on the video adapter. When the `-i mode' option is specified, vidcontrol will list video modes which are actually supported by the video adapter. Submitted by: Kazutaka YOKOTA yokota@FreeBSD.ORG Notes: svn path=/head/; revision=39287
* The daemon, snake and star savers should refuse to load if the currentKazutaka YOKOTA1998-08-063-3/+12
| | | | | | | | video mode is the VESA mode, because they cannot work properly under the VESA mode support as in the current form. Notes: svn path=/head/; revision=38137
* Don't put a path to "sys" in ${CFLAGS} here. bsd.kmod.mk now handlesBruce Evans1998-02-016-12/+12
| | | | | | | this more generally. Notes: svn path=/head/; revision=32988
* Include <machine/pc/display.h>, not <i386/include/pc/display.h>. This isBruce Evans1998-01-163-6/+6
| | | | | | | | | not quite correct, because the Makefiles in lkm/syscons don't set up the `machine' symlink, but other, more volatile headers in <machine> are already used. Notes: svn path=/head/; revision=32571
* - The daemon might go off the screen and crashed the system if theKazutaka YOKOTA1997-10-261-35/+148
| | | | | | | | | | | | | | | | | | screen size was changed while the screen saver was inactive. Adjust the positions of the daemon and the text and clip them accordingly each time. - Don't call set_border() too often. Some video chip may produce flicker. Pointed out by tony@dell.com - Don't fill the entire screen with blank char every time the saver is called. Blank only the part of the screen where the daemon and the text was previously printed. Notes: svn path=/head/; revision=30725
* Make the blank screen saver work with MDA and CGA. The fade and greenKazutaka YOKOTA1997-10-044-39/+171
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | savers are also modified so that they behave in the same way as the blank saver on MDA and CGA, although it's not the way these screen savers are supposed to work, but fading monitor and tickling green monitor cannot be done on MDA and CGA, AFAIK. So, this is the second best solution. As of this change, the current state of support of screen savers is summarized in the following table. MDA CGA EGA VGA blank OK OK NA OK daemon OK OK OK OK fade * * NA OK green * * NA OK snake OK OK OK OK star OK OK OK OK OK: works NA: doesn't work, the module cannot be loaded for this adapter. *: behave the same way as the blank saver. As you can see, EGA is left out for now. But, we can do no better, as EGA registers cannot be read... Reviewed by: sos Notes: svn path=/head/; revision=30095
* Incorporated lots of fixes and suggestions from Bruce and changes toKazutaka YOKOTA1997-07-1513-160/+112
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | facilitate the new saver loading/unloading notification interface in syscons. daemon_saver: - M_NOWAIT was wrong, since NULL returns are not handled. Just use M_WAITOK. - use `ostype' instead of hard-coded "FreeBSD". Now there is no more hard-coded string! (But, who will run this screen saver on other OS?!) - put macros and data declarations in a consistent order. - -DDEAMON_ONLY and -DSHOW_HOSTNAME options added in the previous commit are removed. Options of this kind can go stale and no one notices because no one uses them. DEAMON_ONLY is just removed. SHOW_HOSTNAME is made default. snake_saver: - use `ostype' and `osrelease' as in the daemon saver. The string changes slightly - there was a hyphen after "FreeBSD"; now there is a space. (It is consistent with uname -a, like the daemon server already is.) all screen savers: - Use the new add_scrn_saver()/remove_scrn_saver() in syscons.c to declare loading/unloading of a screen saver. Removed reference to `current_saver' and the variable `old_saver' as they are not necessary anymore. - The blank, fade and green screen savers manipulate VGA registers. Module loading should fail for non-VGA cards. - `scrn_blanked' is consistently treated as a number/counter rather than boolean. - Some savers touch `scp->start' and `scp->end' to force entire screen update when stopping themselves. This is unnecessary now because syscons.c takes care of that. - cleared up many unused or unnecessary #include statements. - Removed -DLKM from Makefiles. YOU NEED TO RECOMPILE BOTH SCREEN SAVERS AND KERNEL AS OF THIS CHANGE. Notes: svn path=/head/; revision=27427
* Take the OS release string from the kernel variable `osrelease'Kazutaka YOKOTA1997-06-242-5/+34
| | | | | | | | | | | rather than hard-code it in the message text. Optinally include the host name in the message if SHOW_HOSTNAME is defined. The origianl idea and sample code submitted by Angelo Turetta <ATuretta@stylo.it>. Notes: svn path=/head/; revision=26893
* Corrected accidental breakage in the last commit.Kazutaka YOKOTA1997-05-261-3/+3
| | | | | | | Pointed out by: Steve Passe, smp@csn.net Notes: svn path=/head/; revision=26146
* Fixed up ssigala@globalnet.it's "Jumping Daemon" screen saver for < v3.0.David E. O'Brien1997-05-251-4/+4
| | | | Notes: svn path=/head/; revision=26128
* Flip the daemon at the edge of the screen.Kazutaka YOKOTA1997-05-241-14/+53
| | | | | | | Submitted by: Sandro Sigala, Chris Shenton Notes: svn path=/head/; revision=26081
* Introducing "Jumping Daemon" screen saver. This is really cute andKazutaka YOKOTA1997-05-212-0/+224
| | | | | | | | | eye-catching :-) Submitted by: ssigala@globalnet.it Notes: svn path=/head/; revision=25968
* Introducing "Jumping Daemon" screen saver. This is really cute andKazutaka YOKOTA1997-05-212-5/+5
| | | | | | | | | | | eye-catching :-) Submitted by: ssigala@globalnet.it Also fixed some `extern' declarations in saver.h. Notes: svn path=/head/; revision=25967
* Make MOD_* macros almost consistent:Peter Dufault1997-04-061-3/+3
| | | | | | | | | | | | | | | | | | | | | | | Use the name argument almost the same in all LKM types. Maintain the current behavior for the external (e.g., modstat) name for DEV, EXEC, and MISC types being #name ## "_mod" and SYCALL and VFS only #name. This is a candidate for change and I vote just the name without the "_mod". Change the DISPATCH macro to MOD_DISPATCH for consistency with the other macros. Add an LKM_ANON #define to eliminate the magic -1 and associated signed/unsigned warnings. Add MOD_PRIVATE to support wcd.c's poking around in the lkm structure. Change source in tree to use the new interface. Reviewed by: Bruce Evans Notes: svn path=/head/; revision=24674