Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Make pci_conf_print() dump the device-dependent ...



details:   https://anonhg.NetBSD.org/src/rev/62cc9709cb58
branches:  trunk
changeset: 526447:62cc9709cb58
user:      nathanw <nathanw%NetBSD.org@localhost>
date:      Fri May 03 16:08:36 2002 +0000

description:
Make pci_conf_print() dump the device-dependent header in userspace, too.

diffstat:

 sys/dev/pci/pci_subr.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (31 lines):

diff -r 635204a4f0ff -r 62cc9709cb58 sys/dev/pci/pci_subr.c
--- a/sys/dev/pci/pci_subr.c    Fri May 03 15:43:40 2002 +0000
+++ b/sys/dev/pci/pci_subr.c    Fri May 03 16:08:36 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pci_subr.c,v 1.48 2002/03/22 20:03:20 drochner Exp $   */
+/*     $NetBSD: pci_subr.c,v 1.49 2002/05/03 16:08:36 nathanw Exp $    */
 
 /*
  * Copyright (c) 1997 Zubin D. Dittia.  All rights reserved.
@@ -40,7 +40,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pci_subr.c,v 1.48 2002/03/22 20:03:20 drochner Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_subr.c,v 1.49 2002/05/03 16:08:36 nathanw Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_pci.h"
@@ -1202,11 +1202,11 @@
                    hdrtype);
        printf("\n");
 
-#ifdef _KERNEL
        /* device-dependent header */
        printf("  Device-dependent header:\n");
        pci_conf_print_regs(regs, endoff, 256);
        printf("\n");
+#ifdef _KERNEL
        if (printfn)
                (*printfn)(pc, tag, regs);
        else



Home | Main Index | Thread Index | Old Index