Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci fix some bitmask in PCI Express capabilities dec...
details: https://anonhg.NetBSD.org/src/rev/e19e05b257dc
branches: trunk
changeset: 750764:e19e05b257dc
user: drochner <drochner%NetBSD.org@localhost>
date: Wed Jan 13 12:18:55 2010 +0000
description:
fix some bitmask in PCI Express capabilities decoding
being here, fix some typos and add a comma for clarity
diffstat:
sys/dev/pci/pci_subr.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (47 lines):
diff -r 6bcdb03469ef -r e19e05b257dc sys/dev/pci/pci_subr.c
--- a/sys/dev/pci/pci_subr.c Wed Jan 13 10:56:17 2010 +0000
+++ b/sys/dev/pci/pci_subr.c Wed Jan 13 12:18:55 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pci_subr.c,v 1.77 2009/01/20 13:54:43 jmcneill Exp $ */
+/* $NetBSD: pci_subr.c,v 1.78 2010/01/13 12:18:55 drochner 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.77 2009/01/20 13:54:43 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_subr.c,v 1.78 2010/01/13 12:18:55 drochner Exp $");
#ifdef _KERNEL_OPT
#include "opt_pci.h"
@@ -431,7 +431,7 @@
else {
if (subclassp == NULL || subclassp->name == NULL)
cp += snprintf(cp, ep - cp,
- "%s subclass 0x%02x",
+ "%s, subclass 0x%02x",
classp->name, subclass);
else
cp += snprintf(cp, ep - cp, "%s %s",
@@ -859,8 +859,8 @@
printf(" Command Completed Interrupt Enabled\n");
if ((regs[o2i(capoff + 0x18)] & 0x0020) != 0)
printf(" Hot-Plug Interrupt Enabled\n");
- printf(" Attention Indictor Control: ");
- switch ((regs[o2i(capoff + 0x18)] & 0x00a0) >> 6) {
+ printf(" Attention Indicator Control: ");
+ switch ((regs[o2i(capoff + 0x18)] & 0x00c0) >> 6) {
case 0x0:
printf("reserved\n");
break;
@@ -874,7 +874,7 @@
printf("off\n");
break;
}
- printf(" Power Indictor Control: ");
+ printf(" Power Indicator Control: ");
switch ((regs[o2i(capoff + 0x18)] & 0x0300) >> 8) {
case 0x0:
printf("reserved\n");
Home |
Main Index |
Thread Index |
Old Index