Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbsh5/dev Add sysfpga_nmi_clear(). This resets the...



details:   https://anonhg.NetBSD.org/src/rev/8ae1b3a464b1
branches:  trunk
changeset: 536834:8ae1b3a464b1
user:      scw <scw%NetBSD.org@localhost>
date:      Sun Sep 22 20:51:09 2002 +0000

description:
Add sysfpga_nmi_clear(). This resets the NMI one-shot in Cayman's
System FPGA chip.

diffstat:

 sys/arch/evbsh5/dev/sysfpga.c    |  9 ++++++++-
 sys/arch/evbsh5/dev/sysfpgavar.h |  3 ++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diffs (36 lines):

diff -r cc7d4d8fc48b -r 8ae1b3a464b1 sys/arch/evbsh5/dev/sysfpga.c
--- a/sys/arch/evbsh5/dev/sysfpga.c     Sun Sep 22 20:49:27 2002 +0000
+++ b/sys/arch/evbsh5/dev/sysfpga.c     Sun Sep 22 20:51:09 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sysfpga.c,v 1.3 2002/08/31 09:30:02 scw Exp $  */
+/*     $NetBSD: sysfpga.c,v 1.4 2002/09/22 20:51:09 scw Exp $  */
 
 /*
  * Copyright 2002 Wasabi Systems, Inc.
@@ -331,3 +331,10 @@
 
        ih->ih_func = NULL;
 }
+
+void
+sysfpga_nmi_clear(void)
+{
+
+       sysfpga_reg_write(sysfpga_sc, SYSFPGA_REG_NMISR, 0);
+}
diff -r cc7d4d8fc48b -r 8ae1b3a464b1 sys/arch/evbsh5/dev/sysfpgavar.h
--- a/sys/arch/evbsh5/dev/sysfpgavar.h  Sun Sep 22 20:49:27 2002 +0000
+++ b/sys/arch/evbsh5/dev/sysfpgavar.h  Sun Sep 22 20:51:09 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sysfpgavar.h,v 1.2 2002/08/30 10:59:39 scw Exp $       */
+/*     $NetBSD: sysfpgavar.h,v 1.3 2002/09/22 20:51:09 scw Exp $       */
 
 /*
  * Copyright 2002 Wasabi Systems, Inc.
@@ -73,5 +73,6 @@
 extern struct evcnt *sysfpga_intr_evcnt(int);
 extern void *sysfpga_intr_establish(int, int, int, int (*)(void *), void *);
 extern void sysfpga_intr_disestablish(void *);
+extern void sysfpga_nmi_clear(void);
 
 #endif /* _SH5_SYSFPGAVAR_H */



Home | Main Index | Thread Index | Old Index