Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/acpi According to "PCI Express Base Specification Re...
details: https://anonhg.NetBSD.org/src/rev/17f6230aa940
branches: trunk
changeset: 346413:17f6230aa940
user: hannken <hannken%NetBSD.org@localhost>
date: Tue Jul 12 09:45:34 2016 +0000
description:
According to "PCI Express Base Specification Revision 3.0" from
November 10, 2010, section 7.9.1 an Extended Capability header
with value 0:0:0 represents the absence of Extended Capabilities.
diffstat:
sys/dev/acpi/acpi_mcfg.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r ce509de3c7cb -r 17f6230aa940 sys/dev/acpi/acpi_mcfg.c
--- a/sys/dev/acpi/acpi_mcfg.c Tue Jul 12 09:29:32 2016 +0000
+++ b/sys/dev/acpi/acpi_mcfg.c Tue Jul 12 09:45:34 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_mcfg.c,v 1.3 2016/07/12 09:29:32 hannken Exp $ */
+/* $NetBSD: acpi_mcfg.c,v 1.4 2016/07/12 09:45:34 hannken Exp $ */
/*-
* Copyright (C) 2015 NONAKA Kimihiro <nonaka%NetBSD.org@localhost>
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_mcfg.c,v 1.3 2016/07/12 09:29:32 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_mcfg.c,v 1.4 2016/07/12 09:45:34 hannken Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -490,7 +490,7 @@
/* Probe extended configuration space. */
if (((reg = pci_conf_read(pc, tag, PCI_CONF_SIZE)) == (pcireg_t)-1) ||
- (alias = acpimcfg_ext_conf_is_aliased(pc, tag))) {
+ (reg == 0) || (alias = acpimcfg_ext_conf_is_aliased(pc, tag))) {
aprint_debug_dev(acpi_sc->sc_dev,
"MCFG: %03d:%02d:%d: invalid config space "
"(cfg[0x%03x]=0x%08x, alias=%s)\n", bus, dev, func,
Home |
Main Index |
Thread Index |
Old Index