Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/netbsd32 support ioctl(POWER_EVENT_RECVDICT) - no...



details:   https://anonhg.NetBSD.org/src/rev/143a954e7565
branches:  trunk
changeset: 769362:143a954e7565
user:      macallan <macallan%NetBSD.org@localhost>
date:      Wed Sep 07 02:35:00 2011 +0000

description:
support ioctl(POWER_EVENT_RECVDICT) - now powerd turns my gdium's backlight
off when the lid is closed

diffstat:

 sys/compat/netbsd32/netbsd32_ioctl.c |  7 +++++--
 sys/compat/netbsd32/netbsd32_ioctl.h |  5 ++++-
 2 files changed, 9 insertions(+), 3 deletions(-)

diffs (47 lines):

diff -r d68daa867540 -r 143a954e7565 sys/compat/netbsd32/netbsd32_ioctl.c
--- a/sys/compat/netbsd32/netbsd32_ioctl.c      Wed Sep 07 00:16:40 2011 +0000
+++ b/sys/compat/netbsd32/netbsd32_ioctl.c      Wed Sep 07 02:35:00 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_ioctl.c,v 1.60 2011/08/30 14:22:22 bouyer Exp $       */
+/*     $NetBSD: netbsd32_ioctl.c,v 1.61 2011/09/07 02:35:00 macallan Exp $     */
 
 /*
  * Copyright (c) 1998, 2001 Matthew R. Green
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_ioctl.c,v 1.60 2011/08/30 14:22:22 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_ioctl.c,v 1.61 2011/09/07 02:35:00 macallan Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -873,6 +873,9 @@
        case SIOCS80211NWKEY32:
                IOCTL_STRUCT_CONV_TO(SIOCG80211NWKEY, ieee80211_nwkey);
 
+       case POWER_EVENT_RECVDICT32:
+               IOCTL_STRUCT_CONV_TO(POWER_EVENT_RECVDICT, plistref);
+
        default:
 #ifdef NETBSD32_MD_IOCTL
                error = netbsd32_md_ioctl(fp, com, data32, l);
diff -r d68daa867540 -r 143a954e7565 sys/compat/netbsd32/netbsd32_ioctl.h
--- a/sys/compat/netbsd32/netbsd32_ioctl.h      Wed Sep 07 00:16:40 2011 +0000
+++ b/sys/compat/netbsd32/netbsd32_ioctl.h      Wed Sep 07 02:35:00 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_ioctl.h,v 1.39 2011/08/30 14:22:22 bouyer Exp $       */
+/*     $NetBSD: netbsd32_ioctl.h,v 1.40 2011/09/07 02:35:00 macallan Exp $     */
 
 /*
  * Copyright (c) 1998, 2001 Matthew R. Green
@@ -127,6 +127,9 @@
 #define        SIOCS80211NWKEY32                _IOW('i', 232, struct netbsd32_ieee80211_nwkey)
 #define        SIOCG80211NWKEY32               _IOWR('i', 233, struct netbsd32_ieee80211_nwkey)
 
+/* for powerd */
+#define POWER_EVENT_RECVDICT32 _IOWR('P', 1, struct netbsd32_plistref)
+
 /* can wait! */
 #if 0
 dev/ccdvar.h:219:#define CCDIOCSET     _IOWR('F', 16, struct ccd_ioctl)   /* enable ccd */



Home | Main Index | Thread Index | Old Index