Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Print "range: not set" if the decode window isn...
details: https://anonhg.NetBSD.org/src/rev/3706564f9008
branches: trunk
changeset: 329510:3706564f9008
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Tue May 27 16:50:31 2014 +0000
description:
Print "range: not set" if the decode window isn't set.
diffstat:
sys/dev/pci/pci_subr.c | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diffs (47 lines):
diff -r a6484c70a204 -r 3706564f9008 sys/dev/pci/pci_subr.c
--- a/sys/dev/pci/pci_subr.c Tue May 27 16:26:15 2014 +0000
+++ b/sys/dev/pci/pci_subr.c Tue May 27 16:50:31 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pci_subr.c,v 1.120 2014/05/27 16:26:15 msaitoh Exp $ */
+/* $NetBSD: pci_subr.c,v 1.121 2014/05/27 16:50:31 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.120 2014/05/27 16:26:15 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_subr.c,v 1.121 2014/05/27 16:50:31 msaitoh Exp $");
#ifdef _KERNEL_OPT
#include "opt_pci.h"
@@ -2043,7 +2043,8 @@
printf(" range: 0x%08x-0x%08x\n", base, limit);
else
printf(" range: 0x%04x-0x%04x\n", base, limit);
- }
+ } else
+ printf(" range: not set\n");
/* Non-prefetchable memory region */
rval = regs[o2i(PCI_BRIDGE_MEMORY_REG)];
@@ -2058,6 +2059,8 @@
& PCI_BRIDGE_MEMORY_LIMIT_MASK) << 20) | 0x000fffff;
if (base < limit)
printf(" range: 0x%08x-0x%08x\n", base, limit);
+ else
+ printf(" range: not set\n");
/* Prefetchable memory region */
rval = regs[o2i(PCI_BRIDGE_PREFETCHMEM_REG)];
@@ -2092,7 +2095,8 @@
else
printf(" range: 0x%08x-0x%08x\n",
(uint32_t)pbase, (uint32_t)plimit);
- }
+ } else
+ printf(" range: not set\n");
if (regs[o2i(PCI_COMMAND_STATUS_REG)] & PCI_STATUS_CAPLIST_SUPPORT)
printf(" Capability list pointer: 0x%02x\n",
Home |
Main Index |
Thread Index |
Old Index