Module Name: src
Committed By: mrg
Date: Tue Nov 23 22:14:27 UTC 2010
Modified Files:
src/sys/dev/sun: cgsix.c
Log Message:
add support for WSDISPLAYIO_LINEBYTES. mostly from macallan.
To generate a diff of this commit:
cvs rdiff -u -r1.49 -r1.50 src/sys/dev/sun/cgsix.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/dev/sun/cgsix.c
diff -u src/sys/dev/sun/cgsix.c:1.49 src/sys/dev/sun/cgsix.c:1.50
--- src/sys/dev/sun/cgsix.c:1.49 Sat Nov 13 13:52:11 2010
+++ src/sys/dev/sun/cgsix.c Tue Nov 23 22:14:27 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: cgsix.c,v 1.49 2010/11/13 13:52:11 uebayasi Exp $ */
+/* $NetBSD: cgsix.c,v 1.50 2010/11/23 22:14:27 mrg Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -78,7 +78,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cgsix.c,v 1.49 2010/11/13 13:52:11 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cgsix.c,v 1.50 2010/11/23 22:14:27 mrg Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1135,6 +1135,10 @@
return cgsix_putcmap(sc,
(struct wsdisplay_cmap *)data);
+ case WSDISPLAYIO_LINEBYTES:
+ *(u_int *)data = sc->sc_stride;
+ return 0;
+
case WSDISPLAYIO_SMODE:
{
int new_mode = *(int*)data;