Module Name: src
Committed By: riz
Date: Mon Jun 11 20:44:43 UTC 2012
Modified Files:
src/sys/arch/vax/vsa [netbsd-6]: spx.c
Log Message:
Pull up following revision(s) (requested by abs in ticket #299):
sys/arch/vax/vsa/spx.c: revision 1.6
>From the "why was this not done before" box:
Implement WSDISPLAYIO_LINEBYTES so xwsfb works
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.5.2.1 src/sys/arch/vax/vsa/spx.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/vax/vsa/spx.c
diff -u src/sys/arch/vax/vsa/spx.c:1.5 src/sys/arch/vax/vsa/spx.c:1.5.2.1
--- src/sys/arch/vax/vsa/spx.c:1.5 Wed Jan 11 21:26:13 2012
+++ src/sys/arch/vax/vsa/spx.c Mon Jun 11 20:44:43 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: spx.c,v 1.5 2012/01/11 21:26:13 macallan Exp $ */
+/* $NetBSD: spx.c,v 1.5.2.1 2012/06/11 20:44:43 riz Exp $ */
/*
* SPX/LCSPX/SPXg/SPXgt accelerated framebuffer driver for NetBSD/VAX
* Copyright (c) 2005 Blaz Antonic
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: spx.c,v 1.5 2012/01/11 21:26:13 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: spx.c,v 1.5.2.1 2012/06/11 20:44:43 riz Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1023,6 +1023,10 @@ spx_ioctl(void *v, void *vs, u_long cmd,
WSDISPLAYIO_VIDEO_ON : WSDISPLAYIO_VIDEO_OFF;
break;
+ case WSDISPLAYIO_LINEBYTES:
+ *(u_int *)data = spx_xsize;
+ break;
+
default:
return EPASSTHROUGH;
}