summaryrefslogtreecommitdiffstats
path: root/sys/alpha
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/alpha
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/alpha')
-rw-r--r--sys/alpha/include/console.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/sys/alpha/include/console.h b/sys/alpha/include/console.h
index 9406441..7503746 100644
--- a/sys/alpha/include/console.h
+++ b/sys/alpha/include/console.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: console.h,v 1.36 1998/02/12 20:47:39 phk Exp $
+ * $Id: console.h,v 1.37 1998/07/06 06:29:06 imp Exp $
*/
#ifndef _MACHINE_CONSOLE_H_
@@ -73,6 +73,9 @@
#define CONS_BELLTYPE _IOW('c', 8, int)
#define CONS_HISTORY _IOW('c', 9, int)
#define CONS_MOUSECTL _IOWR('c', 10, mouse_info_t)
+#define CONS_IDLE _IOR('c', 11, int)
+#define CONS_SAVERMODE _IOW('c', 12, int)
+#define CONS_SAVERSTART _IOW('c', 13, int)
#define PIO_FONT8x8 _IOW('c', 64, fnt8_t)
#define GIO_FONT8x8 _IOR('c', 65, fnt8_t)
#define PIO_FONT8x14 _IOW('c', 66, fnt14_t)
@@ -82,6 +85,10 @@
#define CONS_GETINFO _IOWR('c', 73, vid_info_t)
#define CONS_GETVERS _IOR('c', 74, int)
+/* CONS_SAVERMODE */
+#define CONS_LKM_SAVER 0
+#define CONS_USR_SAVER 1
+
#ifdef PC98
#define ADJUST_CLOCK _IO('t',100) /* for 98note resume */
#endif
@@ -157,7 +164,6 @@ struct mouse_info {
#define KD_EGA 4 /* enhanced graphics adapter */
#define KD_VGA 5 /* video graphics adapter */
#define KD_PC98 6 /* PC-98 display */
-#define KD_PIXEL 7 /* Pixel based display */
#define KD_TEXT 0 /* set text mode restore fonts */
#define KD_TEXT0 0 /* ditto */
@@ -372,6 +378,8 @@ typedef struct ssaver ssaver_t;
#define M_HGC_P1 0xe1 /* hercules graphics - page 1 @ B8000 */
#define M_MCA_MODE 0xff /* monochrome adapter mode */
+#define M_VESA_BASE 0x100 /* VESA mode number base */
+
#define SW_PC98_80x25 _IO('S', M_PC98_80x25)
#define SW_PC98_80x30 _IO('S', M_PC98_80x30)
#define SW_B40x25 _IO('S', M_B40x25)
OpenPOWER on IntegriCloud