Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/sun add support for WSDISPLAYIO_LINEBYTES. mostly f...



details:   https://anonhg.NetBSD.org/src/rev/95f8367ba11a
branches:  trunk
changeset: 759005:95f8367ba11a
user:      mrg <mrg%NetBSD.org@localhost>
date:      Tue Nov 23 22:14:27 2010 +0000

description:
add support for WSDISPLAYIO_LINEBYTES.  mostly from macallan.

diffstat:

 sys/dev/sun/cgsix.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r 36862cb2dc8a -r 95f8367ba11a sys/dev/sun/cgsix.c
--- a/sys/dev/sun/cgsix.c       Tue Nov 23 20:48:40 2010 +0000
+++ b/sys/dev/sun/cgsix.c       Tue Nov 23 22:14:27 2010 +0000
@@ -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;



Home | Main Index | Thread Index | Old Index