Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci/voyager support ioctl(WSDISPLAYIO_SVIDEO) and fr...
details: https://anonhg.NetBSD.org/src/rev/a7e18dd12dda
branches: trunk
changeset: 769720:a7e18dd12dda
user: macallan <macallan%NetBSD.org@localhost>
date: Tue Sep 20 06:15:02 2011 +0000
description:
support ioctl(WSDISPLAYIO_SVIDEO) and friends so wsfb can turn the backlight
off
diffstat:
sys/dev/pci/voyager/voyagerfb.c | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
diffs (37 lines):
diff -r 76b471509ecc -r a7e18dd12dda sys/dev/pci/voyager/voyagerfb.c
--- a/sys/dev/pci/voyager/voyagerfb.c Tue Sep 20 05:57:11 2011 +0000
+++ b/sys/dev/pci/voyager/voyagerfb.c Tue Sep 20 06:15:02 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: voyagerfb.c,v 1.3 2011/09/06 06:27:14 macallan Exp $ */
+/* $NetBSD: voyagerfb.c,v 1.4 2011/09/20 06:15:02 macallan Exp $ */
/*
* Copyright (c) 2009 Michael Lorenz
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: voyagerfb.c,v 1.3 2011/09/06 06:27:14 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: voyagerfb.c,v 1.4 2011/09/20 06:15:02 macallan Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -371,6 +371,18 @@
}
return 0;
+ case WSDISPLAYIO_GVIDEO:
+ *(int *)data = sc->sc_bl_on ? WSDISPLAYIO_VIDEO_ON :
+ WSDISPLAYIO_VIDEO_OFF;
+ return 0;
+
+ case WSDISPLAYIO_SVIDEO: {
+ int new_bl = *(int *)data;
+
+ voyagerfb_switch_backlight(sc, new_bl);
+ }
+ return 0;
+
case WSDISPLAYIO_GETPARAM:
param = (struct wsdisplay_param *)data;
switch (param->param) {
Home |
Main Index |
Thread Index |
Old Index