Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Change a 'continue' to a 'break' in switch confi...
details: https://anonhg.NetBSD.org/src/rev/4e25be8225d7
branches: trunk
changeset: 533298:4e25be8225d7
user: briggs <briggs%NetBSD.org@localhost>
date: Thu Jun 27 00:59:21 2002 +0000
description:
Change a 'continue' to a 'break' in switch configuring 64-bit devices.
Add a little more debugging code.
diffstat:
sys/dev/pci/pciconf.c | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
diffs (42 lines):
diff -r 64b41d3a97d8 -r 4e25be8225d7 sys/dev/pci/pciconf.c
--- a/sys/dev/pci/pciconf.c Wed Jun 26 23:13:04 2002 +0000
+++ b/sys/dev/pci/pciconf.c Thu Jun 27 00:59:21 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pciconf.c,v 1.15 2002/02/21 20:22:48 kleink Exp $ */
+/* $NetBSD: pciconf.c,v 1.16 2002/06/27 00:59:21 briggs Exp $ */
/*
* Copyright 2001 Wasabi Systems, Inc.
@@ -65,7 +65,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pciconf.c,v 1.15 2002/02/21 20:22:48 kleink Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pciconf.c,v 1.16 2002/06/27 00:59:21 briggs Exp $");
#include "opt_pci.h"
@@ -544,7 +544,7 @@
size = (u_int64_t) PCI_MAPREG_MEM64_SIZE(
(((u_int64_t) mask64) << 32) | mask);
width = 8;
- continue;
+ break;
default:
print_tag(pb->pc, tag);
printf("reserved mapping type 0x%x\n",
@@ -561,6 +561,14 @@
64 : 32, br);
}
continue;
+ } else {
+ if (pci_conf_debug) {
+ print_tag(pb->pc, tag);
+ printf("MEM%d BAR 0x%x has size %lx\n",
+ PCI_MAPREG_MEM_TYPE(mask) ==
+ PCI_MAPREG_MEM_TYPE_64BIT ?
+ 64 : 32, br, (unsigned long)size);
+ }
}
if (pb->nmemwin >= MAX_CONF_MEM) {
Home |
Main Index |
Thread Index |
Old Index