Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci - defflag PPB_USEINTR



details:   https://anonhg.NetBSD.org/src/rev/1258f0cf4c94
branches:  trunk
changeset: 446470:1258f0cf4c94
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Fri Dec 07 09:36:26 2018 +0000

description:
- defflag PPB_USEINTR
- Print "interrupting at "

diffstat:

 sys/dev/pci/files.pci |   3 ++-
 sys/dev/pci/ppb.c     |  10 +++++++---
 2 files changed, 9 insertions(+), 4 deletions(-)

diffs (48 lines):

diff -r 643118214e3e -r 1258f0cf4c94 sys/dev/pci/files.pci
--- a/sys/dev/pci/files.pci     Fri Dec 07 09:29:01 2018 +0000
+++ b/sys/dev/pci/files.pci     Fri Dec 07 09:36:26 2018 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: files.pci,v 1.410 2018/11/24 18:23:29 bouyer Exp $
+#      $NetBSD: files.pci,v 1.411 2018/12/07 09:36:26 msaitoh Exp $
 #
 # Config file and device description for machine-independent PCI code.
 # Included by ports that need it.  Requires that the SCSI files be
@@ -378,6 +378,7 @@
 device ppb: pcibus
 attach ppb at pci
 file   dev/pci/ppb.c                   ppb
+defflag opt_ppb.h      PPB_USEINTR
 
 # Cyclades Cyclom-8/16/32
 attach cy at pci with cy_pci
diff -r 643118214e3e -r 1258f0cf4c94 sys/dev/pci/ppb.c
--- a/sys/dev/pci/ppb.c Fri Dec 07 09:29:01 2018 +0000
+++ b/sys/dev/pci/ppb.c Fri Dec 07 09:36:26 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ppb.c,v 1.63 2017/05/10 03:24:31 msaitoh Exp $ */
+/*     $NetBSD: ppb.c,v 1.64 2018/12/07 09:36:26 msaitoh Exp $ */
 
 /*
  * Copyright (c) 1996, 1998 Christopher G. Demetriou.  All rights reserved.
@@ -31,7 +31,11 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ppb.c,v 1.63 2017/05/10 03:24:31 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ppb.c,v 1.64 2018/12/07 09:36:26 msaitoh Exp $");
+
+#ifdef _KERNEL_OPT
+#include "opt_ppb.h"
+#endif
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -276,7 +280,7 @@
 
                intrstr = pci_intr_string(pc, sc->sc_pihp[0], intrbuf,
                    sizeof(intrbuf));
-               aprint_normal_dev(self, "%s\n", intrstr);
+               aprint_normal_dev(self, "interrupting at %s\n", intrstr);
 
                /* Clear any pending events */
                slcsr = pci_conf_read(pc, pa->pa_tag,



Home | Main Index | Thread Index | Old Index