Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci sent PMF events when (un)blanking so things like...
details: https://anonhg.NetBSD.org/src/rev/fc9340ba5219
branches: trunk
changeset: 969057:fc9340ba5219
user: macallan <macallan%NetBSD.org@localhost>
date: Thu Feb 06 13:31:30 2020 +0000
description:
sent PMF events when (un)blanking so things like lmu can turn their lights on
or off as well
diffstat:
sys/dev/pci/radeonfb.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r cdcd0591ef59 -r fc9340ba5219 sys/dev/pci/radeonfb.c
--- a/sys/dev/pci/radeonfb.c Thu Feb 06 12:51:13 2020 +0000
+++ b/sys/dev/pci/radeonfb.c Thu Feb 06 13:31:30 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: radeonfb.c,v 1.105 2019/08/15 00:50:11 rin Exp $ */
+/* $NetBSD: radeonfb.c,v 1.106 2020/02/06 13:31:30 macallan Exp $ */
/*-
* Copyright (c) 2006 Itronix Inc.
@@ -70,7 +70,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: radeonfb.c,v 1.105 2019/08/15 00:50:11 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: radeonfb.c,v 1.106 2020/02/06 13:31:30 macallan Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1173,6 +1173,9 @@
(*(unsigned int *)d == WSDISPLAYIO_VIDEO_OFF));
radeonfb_switch_backlight(dp,
(*(unsigned int *)d == WSDISPLAYIO_VIDEO_ON));
+ pmf_event_inject(NULL,
+ (*(unsigned int *)d == WSDISPLAYIO_VIDEO_ON) ?
+ PMFE_DISPLAY_ON : PMFE_DISPLAY_OFF);
return 0;
case WSDISPLAYIO_GETCMAP:
Home |
Main Index |
Thread Index |
Old Index