Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/hpc Add WSDISPLAYIO_LINEBYTES, which is required by ...
details: https://anonhg.NetBSD.org/src/rev/266c63cc5348
branches: trunk
changeset: 755738:266c63cc5348
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Fri Jun 18 09:11:44 2010 +0000
description:
Add WSDISPLAYIO_LINEBYTES, which is required by Xorg wsfb server.
diffstat:
sys/dev/hpc/hpcfb.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r 9e1e759a2613 -r 266c63cc5348 sys/dev/hpc/hpcfb.c
--- a/sys/dev/hpc/hpcfb.c Fri Jun 18 06:30:53 2010 +0000
+++ b/sys/dev/hpc/hpcfb.c Fri Jun 18 09:11:44 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hpcfb.c,v 1.55 2010/05/15 08:53:27 tsutsui Exp $ */
+/* $NetBSD: hpcfb.c,v 1.56 2010/06/18 09:11:44 tsutsui Exp $ */
/*-
* Copyright (c) 1999
@@ -43,7 +43,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hpcfb.c,v 1.55 2010/05/15 08:53:27 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hpcfb.c,v 1.56 2010/06/18 09:11:44 tsutsui Exp $");
#ifdef _KERNEL_OPT
#include "opt_hpcfb.h"
@@ -582,6 +582,10 @@
wdf->cmsize = 256; /* XXXX */
return (0);
+ case WSDISPLAYIO_LINEBYTES:
+ *(u_int *)data = dc->dc_rinfo.ri_stride;
+ return 0;
+
case WSDISPLAYIO_SMODE:
if (*(int *)data == WSDISPLAYIO_MODE_EMUL){
if (sc->sc_mapping){
Home |
Main Index |
Thread Index |
Old Index