Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/eisa Report our interrupt trigger type.



details:   https://anonhg.NetBSD.org/src/rev/a59aec52a579
branches:  trunk
changeset: 1022542:a59aec52a579
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sat Jul 24 19:14:35 2021 +0000

description:
Report our interrupt trigger type.

diffstat:

 sys/dev/eisa/depca_eisa.c |  12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diffs (33 lines):

diff -r 846b4993a02b -r a59aec52a579 sys/dev/eisa/depca_eisa.c
--- a/sys/dev/eisa/depca_eisa.c Sat Jul 24 19:06:25 2021 +0000
+++ b/sys/dev/eisa/depca_eisa.c Sat Jul 24 19:14:35 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: depca_eisa.c,v 1.16 2021/07/12 16:44:52 thorpej Exp $  */
+/*     $NetBSD: depca_eisa.c,v 1.17 2021/07/24 19:14:35 thorpej Exp $  */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: depca_eisa.c,v 1.16 2021/07/12 16:44:52 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: depca_eisa.c,v 1.17 2021/07/24 19:14:35 thorpej Exp $");
 
 #include "opt_inet.h"
 
@@ -175,9 +175,11 @@
                aprint_error("\n");
                return (NULL);
        }
-       if (intrstr != NULL)
-               aprint_normal_dev(sc->sc_dev, "interrupting at %s\n",
-                   intrstr);
+       if (intrstr != NULL) {
+               aprint_normal_dev(sc->sc_dev,
+                   "interrupting at %s (%s trigger)\n",
+                   (esc->sc_ist == IST_LEVEL) ? "level" : "edge", intrstr);
+       }
 
        return (rv);
 }



Home | Main Index | Thread Index | Old Index