From owner-cvs-lkm Tue Jul 15 07:54:09 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id HAA01926 for cvs-lkm-outgoing; Tue, 15 Jul 1997 07:54:09 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id HAA01605; Tue, 15 Jul 1997 07:50:33 -0700 (PDT) From: Kazutaka YOKOTA Received: (from yokota@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id HAA25688; Tue, 15 Jul 1997 07:49:40 -0700 (PDT) Date: Tue, 15 Jul 1997 07:49:40 -0700 (PDT) Message-Id: <199707151449.HAA25688@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lkm@FreeBSD.ORG Subject: cvs commit: src/lkm/syscons saver.h src/lkm/syscons/blank Makefile blank_saver.c src/lkm/syscons/daemon Makefile daemon_saver.c src/lkm/syscons/fade Makefile fade_saver.c src/lkm/syscons/green Makefile green_saver.c src/lkm/syscons/snake Makefile ... Sender: owner-cvs-lkm@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk yokota 1997/07/15 07:49:40 PDT Modified files: lkm/syscons saver.h lkm/syscons/blank Makefile blank_saver.c lkm/syscons/daemon Makefile daemon_saver.c lkm/syscons/fade Makefile fade_saver.c lkm/syscons/green Makefile green_saver.c lkm/syscons/snake Makefile snake_saver.c lkm/syscons/star Makefile star_saver.c Log: Incorporated lots of fixes and suggestions from Bruce and changes to 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. Revision Changes Path 1.9 +4 -10 src/lkm/syscons/saver.h 1.6 +2 -2 src/lkm/syscons/blank/Makefile 1.10 +8 -13 src/lkm/syscons/blank/blank_saver.c 1.3 +2 -8 src/lkm/syscons/daemon/Makefile 1.6 +25 -52 src/lkm/syscons/daemon/daemon_saver.c 1.6 +2 -2 src/lkm/syscons/fade/Makefile 1.11 +8 -13 src/lkm/syscons/fade/fade_saver.c 1.6 +2 -2 src/lkm/syscons/green/Makefile 1.10 +8 -13 src/lkm/syscons/green/green_saver.c 1.6 +2 -2 src/lkm/syscons/snake/Makefile 1.15 +42 -25 src/lkm/syscons/snake/snake_saver.c 1.6 +2 -2 src/lkm/syscons/star/Makefile 1.12 +7 -18 src/lkm/syscons/star/star_saver.c