Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/isa If the 'no-legacy-devices' property is present a...
details: https://anonhg.NetBSD.org/src/rev/6d07fa2e55a2
branches: trunk
changeset: 757261:6d07fa2e55a2
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sat Aug 21 17:08:15 2010 +0000
description:
If the 'no-legacy-devices' property is present and true, skip device
enumeration.
diffstat:
sys/dev/isa/isa.c | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diffs (35 lines):
diff -r f355b58a938f -r 6d07fa2e55a2 sys/dev/isa/isa.c
--- a/sys/dev/isa/isa.c Sat Aug 21 16:36:15 2010 +0000
+++ b/sys/dev/isa/isa.c Sat Aug 21 17:08:15 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: isa.c,v 1.137 2009/08/19 16:23:28 cegger Exp $ */
+/* $NetBSD: isa.c,v 1.138 2010/08/21 17:08:15 jmcneill Exp $ */
/*-
* Copyright (c) 1998, 2001, 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: isa.c,v 1.137 2009/08/19 16:23:28 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: isa.c,v 1.138 2010/08/21 17:08:15 jmcneill Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -162,7 +162,16 @@
int
isarescan(device_t self, const char *ifattr, const int *locators)
{
+ prop_dictionary_t dict;
int locs[ISACF_NLOCS];
+ bool no_legacy_devices = false;
+
+ dict = device_properties(self);
+ if (prop_dictionary_get_bool(dict, "no-legacy-devices",
+ &no_legacy_devices) == true) {
+ aprint_debug_dev(self, "platform reports no legacy devices\n");
+ return 0;
+ }
memcpy(locs, locators, sizeof(locs));
Home |
Main Index |
Thread Index |
Old Index