Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/newsmips Add WSDISPLAYIO_LINEBYTES ioctl (for Xorg ...
details: https://anonhg.NetBSD.org/src/rev/1676319acbad
branches: trunk
changeset: 326494:1676319acbad
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Fri Jan 31 15:43:06 2014 +0000
description:
Add WSDISPLAYIO_LINEBYTES ioctl (for Xorg wsfb driver).
diffstat:
sys/arch/newsmips/apbus/xafb.c | 8 ++++++--
sys/arch/newsmips/dev/fb.c | 8 ++++++--
2 files changed, 12 insertions(+), 4 deletions(-)
diffs (58 lines):
diff -r 7399a0fd4bd6 -r 1676319acbad sys/arch/newsmips/apbus/xafb.c
--- a/sys/arch/newsmips/apbus/xafb.c Fri Jan 31 15:41:48 2014 +0000
+++ b/sys/arch/newsmips/apbus/xafb.c Fri Jan 31 15:43:06 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xafb.c,v 1.16 2010/05/15 10:01:44 tsutsui Exp $ */
+/* $NetBSD: xafb.c,v 1.17 2014/01/31 15:43:06 tsutsui Exp $ */
/*-
* Copyright (c) 2000 Tsubai Masanari. All rights reserved.
@@ -29,7 +29,7 @@
/* "xa" frame buffer driver. Currently supports 1280x1024x8 only. */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xafb.c,v 1.16 2010/05/15 10:01:44 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xafb.c,v 1.17 2014/01/31 15:43:06 tsutsui Exp $");
#include <sys/param.h>
#include <sys/buf.h>
@@ -268,6 +268,10 @@
wdf->cmsize = 256;
return 0;
+ case WSDISPLAYIO_LINEBYTES:
+ *(u_int *)data = dc->dc_ri.ri_stride;
+ return 0;
+
case WSDISPLAYIO_GETCMAP:
return xafb_getcmap(sc, (struct wsdisplay_cmap *)data);
diff -r 7399a0fd4bd6 -r 1676319acbad sys/arch/newsmips/dev/fb.c
--- a/sys/arch/newsmips/dev/fb.c Fri Jan 31 15:41:48 2014 +0000
+++ b/sys/arch/newsmips/dev/fb.c Fri Jan 31 15:43:06 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fb.c,v 1.25 2010/05/15 10:01:44 tsutsui Exp $ */
+/* $NetBSD: fb.c,v 1.26 2014/01/31 15:43:06 tsutsui Exp $ */
/*-
* Copyright (c) 2000 Tsubai Masanari. All rights reserved.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fb.c,v 1.25 2010/05/15 10:01:44 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fb.c,v 1.26 2014/01/31 15:43:06 tsutsui Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -255,6 +255,10 @@
wdf->cmsize = 2;
return 0;
+ case WSDISPLAYIO_LINEBYTES:
+ *(u_int *)data = dc->dc_ri.ri_stride;
+ return 0;
+
case WSDISPLAYIO_SVIDEO:
if (*(int *)data == WSDISPLAYIO_VIDEO_OFF) {
volatile u_short *ctlreg = NWB253_CTLREG;
Home |
Main Index |
Thread Index |
Old Index