Source-Changes-HG archive

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

[src/nathanw_sa]: src/sys/arch/hpcmips/vr Comment about start address of LED ...



details:   https://anonhg.NetBSD.org/src/rev/df4b7456a48f
branches:  nathanw_sa
changeset: 504730:df4b7456a48f
user:      enami <enami%NetBSD.org@localhost>
date:      Mon Jun 11 10:04:28 2001 +0000

description:
Comment about start address of LED unit in vr4122.

diffstat:

 sys/arch/hpcmips/vr/vrledreg.h |  63 ++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 63 insertions(+), 0 deletions(-)

diffs (67 lines):

diff -r 45dbdfd73fd0 -r df4b7456a48f sys/arch/hpcmips/vr/vrledreg.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/hpcmips/vr/vrledreg.h    Mon Jun 11 10:04:28 2001 +0000
@@ -0,0 +1,63 @@
+/*     $NetBSD: vrledreg.h,v 1.3.8.2 2001/06/11 10:04:28 enami Exp $   */
+
+/*-
+ * Copyright (c) 1999,2000 SATO Kazumi. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. The name of the developer may NOT be used to endorse or promote products
+ *    derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ */
+
+/*
+ *     LED (LED CONTROL Unit) Registers definitions.
+ *             start 0x0B000240 (??????)
+ *             start 0x0F000180 (vr4122)
+ */
+
+#define LEDHTS_REG_W           0x0     /* LED H Time Set register */
+#define                LEDHTS_SEC              0x10    /* 1 sec */
+#define                LEDHTS_DIV2SEC          0x08    /* 0.5 sec */
+#define                LEDHTS_DIV4SEC          0x04    /* 0.25 sec */
+#define                LEDHTS_DIV8SEC          0x02    /* 0.125 sec */
+#define                LEDHTS_DIV16SEC         0x01    /* 0.0625 sec */
+
+#define LEDLTS_REG_W           0x2     /* LED L Time Set register */
+#define                LEDLTS_4SEC             0x40    /* 4 sec */
+#define                LEDLTS_2SEC             0x20    /* 2 sec */
+#define                LEDLTS_SEC              0x10    /* 1 sec */
+#define                LEDLTS_DIV2SEC          0x08    /* 0.5 sec */
+#define                LEDLTS_DIV4SEC          0x04    /* 0.25 sec */
+#define                LEDLTS_DIV8SEC          0x02    /* 0.125 sec */
+#define                LEDLTS_DIV16SEC         0x01    /* 0.0625 sec */
+
+#define LEDCNT_REG_W           0x8     /* LED Coltrol register */
+#define                LEDCNT_AUTOSTOP         (1<<1)  /* Auto Stop */
+#define                LEDCNT_NOAUTOSTOP       (0<<1)  /* Auto Stop Disable*/
+
+#define                LEDCNT_BLINK            (1)     /* Start Blink  */
+#define                LEDCNT_BLINK_DISABLE    (0)     /* Stop Blink */
+
+#define LEDASTC_REG_W          0xa     /* LED Auto Stop Time register */
+
+#define LEDINT_REG_W           0xc     /* LED Interrupt register */
+#define        LEDINT_AUTOSTOP         1       /* Auto Stop */
+#define        LEDINT_ALL              LEDINT_AUTOSTOP
+
+/* END vrledreg.h */



Home | Main Index | Thread Index | Old Index