summaryrefslogtreecommitdiff
path: root/sys/modules/syscons
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Make MOD_* macros almost consistent:Peter Dufault1997-04-064-12/+12
| | | | | | | | | | | | | | | | | | | | | | | 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=24673
* Revert $FreeBSD$ back to $Id$Peter Wemm1997-02-2212-12/+12
| | | | Notes: svn path=/head/; revision=22982
* Upgrade the kbdio rutines to provide queued kbd & mouse events.Søren Schmidt1997-01-152-4/+36
| | | | | | | | | Minor other updates to syscons by me. Submitted by: Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp> Notes: svn path=/head/; revision=21731
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-1412-12/+12
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* Make snake 3.0-CURRENT here.Jordan K. Hubbard1996-11-111-2/+2
| | | | | | | There's gotta be a better way of syncronizing our release numbers. :-) Notes: svn path=/head/; revision=19643
* delete unused variable BINDIR, use new variable MODLOAD/MODUNLOADWolfram Schneider1996-10-065-10/+5
| | | | Notes: svn path=/head/; revision=18778
* add forgotten $Id$Wolfram Schneider1996-09-221-0/+2
| | | | Notes: svn path=/head/; revision=18471
* Added or restored #include of <machine/md_var.h>. Some declarationsBruce Evans1996-07-012-4/+10
| | | | | | | moved from <machine/cpufunc.h> to better places. Notes: svn path=/head/; revision=16879
* Delete obnoxious uprintf()s in load/unload procedures.Garrett Wollman1995-11-295-15/+5
| | | | Notes: svn path=/head/; revision=12536
* Changed the first (name) arg of MOD_DEV(), MOD_EXEC() and MOD_MISC()Bruce Evans1995-11-145-21/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from a string to an identifier so that it can be used to generate declarations and strings. It's much easier to stringize an identifier than to identifize a string. A uniform naming scheme must be used for the automatically generated things to apply. This is a feature. Used the module identifer to generate prototypes for the module load, unload and stat functions. Removed the few prototypes for these that already existed. Used the module identifier to generate a unique struct tag in MOD_DEV(). This should probably be done for all the MOD_*() macros. Moved the trailing semicolon from the MOD_*() macro definitions to the macro invocations that didn't already (bogusly) have it. Staticized the module load and unload functions. Added function return types for the module load, unload and stat functions. lkm/ibcs2/ibcs2.c: Included <sys/sysproto.h> to get everything prototyped. Cleaned up #includes. lkm/ibcs2/ipfw.c: Cleaned up #includes. lkm/linux/linux.c: The module name had to change from "linux_emulator" to "linux_mod" to be automatically generated. Cleaned up #includes. lkm/syscons/*/*_saver.c: Completed delcarations of function pointers. sys/i386/isa/atapi.c: The module name had to change from "atapi" to "atapi_mod" to be automatically generated. sys/i386/isa/wcd.c: Used the fixed MOD_DEV(). This module has two devices and expanded the macro in the source instead of fixing it. The module names had to change from "wcd" and "rwcd" to "wcd_mod" and "rwcd_mod" to be automatically generated. sys/pccard/pcic.c: The module name had to change from "pcic" to "pcic_mod" to be automatically generated. Notes: svn path=/head/; revision=12276
* Replaced nosys() by lkm_nullcmd(). Always call lkm load/unload/statBruce Evans1995-11-135-10/+15
| | | | | | | | functions instead of skipping the call if the function is nosys(). nosys() returned the wrong value as well as having the wrong type. Notes: svn path=/head/; revision=12250
* Do a pass over the broken LKM's and update them to use the "new"Peter Wemm1995-10-285-25/+25
| | | | | | | | | | | | | | | | | | convention of having their entry point named "<modname>_mod"". Symorder is enforcing this when the current bsd.kmod.mk is installed. I've not tested all these, but at least they all compile now. Reattach them to the makefile. Note that the change that I made to symorder needs to be compiled and installed before any LKM's will work - the last version was corrupting the relocation tables. A "make world" will to this, but if you manually run a make on the lkm's you'll need to take care of it by hand. Notes: svn path=/head/; revision=11857
* Update the version in the snake saver...Peter Wemm1995-09-041-2/+2
| | | | | | | | Something similar needs to happen to RELENG_2_1_0 - or better yet, this should become dynamic... Notes: svn path=/head/; revision=10555
* Remove trailing whitespace.Rodney W. Grimes1995-05-305-26/+26
| | | | Notes: svn path=/head/; revision=8871
* Changed relase number in snake_saver.c from 2.1 to 2.0.5Søren Schmidt1995-05-161-2/+2
| | | | Notes: svn path=/head/; revision=8560
* Fix declaration of palette[] so that fade saver doesn't cause panics.Bruce Evans1995-05-141-1/+1
| | | | Notes: svn path=/head/; revision=8513
* Update to new screen update method.Søren Schmidt1995-03-302-4/+6
| | | | Notes: svn path=/head/; revision=7500
* Make in lkm/syscons fails due to missing include for apm stuff.Nate Williams1995-03-031-0/+1
| | | | | | | Submitted by: John Capo <jc@irbs.com> and John Hay <jhay@mikom.csir.co.za> Notes: svn path=/head/; revision=6859