Subject: None
To: None <port-alpha@netbsd.org>
From: Toru Nishimura <nisimura@itc.aist-nara.ac.jp>
List: port-alpha
Date: 02/13/2001 14:40:58
> I've started using XalphaNetBSD on my DEC 3000/300 recently. I love it,
> and applaud those who got it working. I was wondering if anyone could
> tell me how to do the following:
> ...
> 2) Enable the built-in screenblank (and turn off keyclick). The xset
> command does not appear to do this for me. (It reports screenblanking
> is enabled, but the screenblank never activates.)
Here is the void-filling piece of code to make sfb SVIDEO ioctl working.
Tohru Nishimura
Index: sfb.c
===================================================================
RCS file: /cvsroot/syssrc/sys/dev/tc/sfb.c,v
retrieving revision 1.43
diff -c -r1.43 sfb.c
*** sfb.c 2001/01/19 05:43:43 1.43
--- sfb.c 2001/02/13 05:39:30
***************
*** 427,437 ****
case WSDISPLAYIO_SVIDEO:
turnoff = *(int *)data == WSDISPLAYIO_VIDEO_OFF;
! if ((dc->dc_blanked == 0) ^ turnoff) {
dc->dc_blanked = turnoff;
- #if 0 /* XXX later XXX */
- To turn off, assign value 0 in ASIC_VIDEO_VALID register.
- #endif /* XXX XXX XXX */
}
return (0);
--- 427,439 ----
case WSDISPLAYIO_SVIDEO:
turnoff = *(int *)data == WSDISPLAYIO_VIDEO_OFF;
! if (dc->dc_blanked ^ turnoff) {
! caddr_t sfbasic;
! sfbasic = (caddr_t)dc->dc_vaddr + SFB_ASIC_OFFSET;
! *(u_int32_t *)(sfbasic + SFB_ASIC_VIDEO_VALID)
! = !turnoff;
! tc_wmb();
dc->dc_blanked = turnoff;
}
return (0);
--