Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sandpoint/sandpoint Add an entry for "miconv2" sate...



details:   https://anonhg.NetBSD.org/src/rev/9f40dbec2232
branches:  trunk
changeset: 778681:9f40dbec2232
user:      nisimura <nisimura%NetBSD.org@localhost>
date:      Sun Apr 08 12:11:57 2012 +0000

description:
Add an entry for "miconv2" satellite processor control.  The button
press event handler remains unimplemented for now.  Use /dev/satmgr
to talk the processor.

diffstat:

 sys/arch/sandpoint/sandpoint/satmgr.c |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (38 lines):

diff -r a7d975cde2df -r 9f40dbec2232 sys/arch/sandpoint/sandpoint/satmgr.c
--- a/sys/arch/sandpoint/sandpoint/satmgr.c     Sun Apr 08 11:28:12 2012 +0000
+++ b/sys/arch/sandpoint/sandpoint/satmgr.c     Sun Apr 08 12:11:57 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: satmgr.c,v 1.16 2012/02/22 22:56:44 nisimura Exp $ */
+/* $NetBSD: satmgr.c,v 1.17 2012/04/08 12:11:57 nisimura Exp $ */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -139,6 +139,7 @@
 static void ibutton(struct satmgr_softc *, int);
 static void idosync(void *);
 static void iprepcmd(struct satmgr_softc *, int, int, int, int, int, int);
+static void mbutton(struct satmgr_softc *, int);
 static void guarded_pbutton(void *);
 static void sched_sysmon_pbutton(void *);
 
@@ -154,6 +155,7 @@
     { "dlink",    NULL,  NULL,    dpwroff, dbutton },
     { "iomega",   iinit, ireboot, ipwroff, ibutton },
     { "kurobox",  NULL,  kreboot, kpwroff, kbutton },
+    { "miconv2",  NULL,  NULL,    NULL,    mbutton },
     { "qnap",     qinit, qreboot, qpwroff, qbutton },
     { "synology", sinit, sreboot, spwroff, sbutton }
 };
@@ -950,6 +952,12 @@
 }
 
 static void
+mbutton(struct satmgr_softc *sc, int ch)
+{
+       /* do nothing */
+}
+
+static void
 guarded_pbutton(void *arg)
 {
        struct satmgr_softc *sc = arg;



Home | Main Index | Thread Index | Old Index