Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/acpi Do not ignore non-zero segment numbers in MCFG ...
details: https://anonhg.NetBSD.org/src/rev/0987a3ba25fa
branches: trunk
changeset: 445564:0987a3ba25fa
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Fri Nov 02 19:51:08 2018 +0000
description:
Do not ignore non-zero segment numbers in MCFG if __HAVE_PCI_GET_SEGMENT
is defined.
diffstat:
sys/dev/acpi/acpi_mcfg.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r cc2f964b9410 -r 0987a3ba25fa sys/dev/acpi/acpi_mcfg.c
--- a/sys/dev/acpi/acpi_mcfg.c Fri Nov 02 18:13:11 2018 +0000
+++ b/sys/dev/acpi/acpi_mcfg.c Fri Nov 02 19:51:08 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_mcfg.c,v 1.12 2018/11/02 15:01:18 jmcneill Exp $ */
+/* $NetBSD: acpi_mcfg.c,v 1.13 2018/11/02 19:51:08 jmcneill Exp $ */
/*-
* Copyright (C) 2015 NONAKA Kimihiro <nonaka%NetBSD.org@localhost>
@@ -28,7 +28,7 @@
#include "opt_pci.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_mcfg.c,v 1.12 2018/11/02 15:01:18 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_mcfg.c,v 1.13 2018/11/02 19:51:08 jmcneill Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -394,6 +394,7 @@
ama->Address, ama->StartBusNumber, bus_end);
}
+#ifndef __HAVE_PCI_GET_SEGMENT
if (ama->PciSegment != 0) {
aprint_debug_dev(acpi_sc->sc_dev,
"MCFG: segment %d, bus %d-%d, address 0x%016" PRIx64
@@ -401,6 +402,7 @@
ama->StartBusNumber, bus_end, ama->Address);
goto next;
}
+#endif
seg = &mcfg_segs[nsegs++];
seg->ms_address = ama->Address;
Home |
Main Index |
Thread Index |
Old Index