Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Always print the Slot implemented bit in the PCI...
details: https://anonhg.NetBSD.org/src/rev/f663735cdb10
branches: trunk
changeset: 332464:f663735cdb10
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Mon Sep 22 13:01:44 2014 +0000
description:
Always print the Slot implemented bit in the PCIe Capabilities
Register using with onoff().
diffstat:
sys/dev/pci/pci_subr.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (28 lines):
diff -r 35f736948390 -r f663735cdb10 sys/dev/pci/pci_subr.c
--- a/sys/dev/pci/pci_subr.c Mon Sep 22 08:13:02 2014 +0000
+++ b/sys/dev/pci/pci_subr.c Mon Sep 22 13:01:44 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pci_subr.c,v 1.126 2014/09/21 14:30:22 christos Exp $ */
+/* $NetBSD: pci_subr.c,v 1.127 2014/09/22 13:01:44 msaitoh 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.126 2014/09/21 14:30:22 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_subr.c,v 1.127 2014/09/22 13:01:44 msaitoh Exp $");
#ifdef _KERNEL_OPT
#include "opt_pci.h"
@@ -1338,8 +1338,7 @@
printf("unknown\n");
break;
}
- if (check_slot && (reg & PCIE_XCAP_SI) != 0)
- printf(" Slot implemented\n");
+ onoff("Slot implemented", reg, PCIE_XCAP_SI);
printf(" Interrupt Message Number: %x\n",
(unsigned int)((reg & PCIE_XCAP_IRQ) >> 27));
Home |
Main Index |
Thread Index |
Old Index