summaryrefslogtreecommitdiffstats
path: root/sys/isa/syscons.h
diff options
context:
space:
mode:
authoryokota <yokota@FreeBSD.org>1998-08-03 11:30:45 +0000
committeryokota <yokota@FreeBSD.org>1998-08-03 11:30:45 +0000
commit506dee0328f0c5179f765cc7a550341382b5d3cb (patch)
tree0726b4c71f01cb1337f1932ed61e8be8af9ab61f /sys/isa/syscons.h
parentef6d9fe5f09518eb0c43f6e464e0b0775432d278 (diff)
downloadFreeBSD-src-506dee0328f0c5179f765cc7a550341382b5d3cb.zip
FreeBSD-src-506dee0328f0c5179f765cc7a550341382b5d3cb.tar.gz
1. Reorganized screen saver related code so that both the LKM screen
saver and splash screen can all work properly with syscons. Note that the splash screen option (SC_SPLASH_SCREEN) does not work yet, as it requires additional code from msmith. - Reorganized the splash screen code to match the latest development in this area. - Delay screen switch in `switch_scr()' until the screen saver is stopped, if one is running, - Start the screen saver immediately, if any, when the `saver' key is pressed. (There will be another commit for `kbdcontrol' to support this keyword in the keymap file.) - Do not always stop the screen saver when mouse-related ioctls are called. Stop it only if the mouse is moved or buttons are clicked; don't stop it if any other mouse ioctls are called. 2. Added provision to write userland screen savers. (Contact me if you are interested in writing one.) - Added CONS_IDLE, CONS_SAVERMODE, and CONS_SAVERSTART ioctls to support userland screen savers. 3. Some code clean-ups.
Diffstat (limited to 'sys/isa/syscons.h')
-rw-r--r--sys/isa/syscons.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/sys/isa/syscons.h b/sys/isa/syscons.h
index e65aff4..b23a2ae 100644
--- a/sys/isa/syscons.h
+++ b/sys/isa/syscons.h
@@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: syscons.h,v 1.37 1998/02/12 22:05:08 phk Exp $
+ * $Id: syscons.h,v 1.38 1998/08/03 09:09:35 yokota Exp $
*/
#ifndef _I386_ISA_SYSCONS_H_
@@ -174,8 +174,8 @@ typedef struct scr_stat {
u_short bell_duration;
u_short bell_pitch;
u_char border; /* border color */
- u_char initial_mode; /* initial mode */
- u_char mode; /* mode */
+ int initial_mode; /* initial mode */
+ int mode; /* mode */
pid_t pid; /* pid of controlling proc */
struct proc *proc; /* proc* of controlling proc */
struct vt_mode smode; /* switch mode */
@@ -185,6 +185,9 @@ typedef struct scr_stat {
u_short *history_save; /* save area index */
int history_size; /* size of history buffer */
struct apmhook r_hook; /* reconfiguration support */
+#ifdef SC_SPLASH_SCREEN
+ u_char splash_save_mode; /* saved mode for splash screen */
+#endif
} scr_stat;
typedef struct default_attr {
@@ -200,4 +203,10 @@ void load_palette(char *palette);
int add_scrn_saver(void (*this)(int));
int remove_scrn_saver(void (*this)(int));
+#ifdef SC_SPLASH_SCREEN
+void splash(int);
+int splash_load(void);
+int splash_unload(void);
+#endif
+
#endif /* !_I386_ISA_SYSCONS_H_ */
OpenPOWER on IntegriCloud