Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/dev allow the LED blinker to be disabled vi...



details:   https://anonhg.NetBSD.org/src/rev/490ac58b63dc
branches:  trunk
changeset: 570227:490ac58b63dc
user:      mrg <mrg%NetBSD.org@localhost>
date:      Wed Sep 29 04:45:05 2004 +0000

description:
allow the LED blinker to be disabled via do_blink.

diffstat:

 sys/arch/sparc64/dev/auxio.c |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (38 lines):

diff -r 8dbdf051710e -r 490ac58b63dc sys/arch/sparc64/dev/auxio.c
--- a/sys/arch/sparc64/dev/auxio.c      Wed Sep 29 04:27:41 2004 +0000
+++ b/sys/arch/sparc64/dev/auxio.c      Wed Sep 29 04:45:05 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: auxio.c,v 1.11 2003/07/15 03:36:04 lukem Exp $ */
+/*     $NetBSD: auxio.c,v 1.12 2004/09/29 04:45:05 mrg Exp $   */
 
 /*
  * Copyright (c) 2000, 2001 Matthew R. Green
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: auxio.c,v 1.11 2003/07/15 03:36:04 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: auxio.c,v 1.12 2004/09/29 04:45:05 mrg Exp $");
 
 #include "opt_auxio.h"
 
@@ -98,6 +98,9 @@
 
 static void auxio_blink(void *);
 
+/* let someone disable it if it's already turned on; XXX sysctl? */
+int do_blink = 1;
+
 static void
 auxio_blink(x)
        void *x;
@@ -106,6 +109,9 @@
        int s;
        u_int32_t led;
 
+       if (do_blink == 0)
+               return;
+
        s = splhigh();
        if (sc->sc_flags & AUXIO_EBUS)
                led = le32toh(bus_space_read_4(sc->sc_tag, sc->sc_led, 0));



Home | Main Index | Thread Index | Old Index