Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/x86 If ACPI is active and the FADT reports no l...
details: https://anonhg.NetBSD.org/src/rev/9d8f58e79eec
branches: trunk
changeset: 757262:9d8f58e79eec
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sat Aug 21 17:10:03 2010 +0000
description:
If ACPI is active and the FADT reports no legacy devices present, set
the 'no-legacy-devices' property to true on isa0.
diffstat:
sys/arch/x86/x86/x86_autoconf.c | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
diffs (48 lines):
diff -r 6d07fa2e55a2 -r 9d8f58e79eec sys/arch/x86/x86/x86_autoconf.c
--- a/sys/arch/x86/x86/x86_autoconf.c Sat Aug 21 17:08:15 2010 +0000
+++ b/sys/arch/x86/x86/x86_autoconf.c Sat Aug 21 17:10:03 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: x86_autoconf.c,v 1.50 2010/02/24 22:37:55 dyoung Exp $ */
+/* $NetBSD: x86_autoconf.c,v 1.51 2010/08/21 17:10:03 jmcneill Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: x86_autoconf.c,v 1.50 2010/02/24 22:37:55 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: x86_autoconf.c,v 1.51 2010/08/21 17:10:03 jmcneill Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -55,10 +55,15 @@
#include "acpica.h"
#include "pci.h"
+#include "isa.h"
#include "genfb.h"
#include "wsdisplay.h"
#include "opt_vga.h"
+#if NACPICA > 0
+#include <dev/acpi/acpivar.h>
+#endif
+
#ifdef VGA_POST
#include <x86/vga_post.h>
#endif
@@ -618,6 +623,13 @@
}
#endif /* NPCI > 0 */
}
+#if NISA > 0 && NACPICA > 0
+ if (device_is_a(dev, "isa") && acpi_active) {
+ if (!(AcpiGbl_FADT.BootFlags & ACPI_FADT_LEGACY_DEVICES))
+ prop_dictionary_set_bool(device_properties(dev),
+ "no-legacy-devices", true);
+ }
+#endif /* NISA > 0 && NACPICA > 0 */
#if NPCI > 0
if (device_parent(dev) && device_is_a(device_parent(dev), "pci") &&
found_console == false) {
Home |
Main Index |
Thread Index |
Old Index