Subject: Re: 3100 cmap entries
To: Jonathan Stone <jonathan@DSG.Stanford.EDU>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: port-pmax
Date: 01/15/1996 16:19:02
On Mon, 15 Jan 1996 13:45:24 -0800 
 Jonathan Stone <jonathan@DSG.Stanford.EDU> wrote:

 > next on the menu: screenblank??

Should be relatively trivial to make the framebuffer portion of that 
work.  Heck, here's a patch for fb_usrreq.c...

However, that still leaves the issue of how to detect of the 
keyboard/mouse are un-idle.  Looks like that interface is a lot different 
under NetBSD/pmax.

Index: fb_usrreq.c
===================================================================
RCS file: /mastersrc/netbsd/src/sys/arch/pmax/dev/fb_usrreq.c,v
retrieving revision 1.1.1.1
diff -c -r1.1.1.1 fb_usrreq.c
*** fb_usrreq.c	1995/12/27 23:56:58	1.1.1.1
--- fb_usrreq.c	1996/01/16 00:36:45
***************
*** 157,162 ****
--- 157,176 ----
  		(*fi->fi_driver->fbd_blank) (fi);
  		break;
  
+ 	/*
+ 	 * Sun-style ioctls, mostly so that screenblank(1) works.
+ 	 */
+ 	case FBIOSVIDEO:
+ 		if (*(int *)data)
+ 			(*fi->fi_driver->fbd_unblank) (fi);
+ 		else
+ 			(*fi->fi_driver->fbd_blank) (fi);
+ 		break;
+ 
+ 	case FBIOGVIDEO:
+ 		*(int *)data = fi->fi_blanked;
+ 		break;
+ 
  	default:
  		printf("fb%d: Unknown ioctl command %x\n", minor(dev), cmd);
  		return (EINVAL);

--------------------------------------------------------------------------
Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                               Home: 408.866.1912
NAS: M/S 258-6                                          Work: 415.604.0935
Moffett Field, CA 94035                                Pager: 415.428.6939