aboutsummaryrefslogtreecommitdiff
path: root/sys/isa
diff options
context:
space:
mode:
authorMatthew N. Dodd <mdodd@FreeBSD.org>2005-04-13 03:26:24 +0000
committerMatthew N. Dodd <mdodd@FreeBSD.org>2005-04-13 03:26:24 +0000
commit2ca94fca7e09af2060c4664896e97307ba589035 (patch)
treec9a5d43569dd86cbc4f9052eeaa488009834ee66 /sys/isa
parent15f3d79b553984168a96c9758128235703784462 (diff)
downloadsrc-2ca94fca7e09af2060c4664896e97307ba589035.tar.gz
src-2ca94fca7e09af2060c4664896e97307ba589035.zip
Add ISACFGATTR_HINTS flag to allow detection of a device that was created
as a result of the hints mechanism.
Notes
Notes: svn path=/head/; revision=144985
Diffstat (limited to 'sys/isa')
-rw-r--r--sys/isa/isahint.c2
-rw-r--r--sys/isa/isavar.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/sys/isa/isahint.c b/sys/isa/isahint.c
index 32833f159229..65a0d5c8950d 100644
--- a/sys/isa/isahint.c
+++ b/sys/isa/isahint.c
@@ -78,6 +78,8 @@ isahint_add_device(device_t parent, const char *name, int unit)
if (resource_disabled(name, unit))
device_disable(child);
+
+ isa_set_configattr(child, (isa_get_configattr(child)|ISACFGATTR_HINTS));
}
static void
diff --git a/sys/isa/isavar.h b/sys/isa/isavar.h
index ab87fa35511d..86641ced4050 100644
--- a/sys/isa/isavar.h
+++ b/sys/isa/isavar.h
@@ -134,6 +134,7 @@ enum isa_device_ivars {
#define ISACFGATTR_CANDISABLE (1 << 0) /* can be disabled */
#define ISACFGATTR_DYNAMIC (1 << 1) /* dynamic configuration */
#define ISACFGATTR_MULTI (1 << 2) /* multiple configurations */
+#define ISACFGATTR_HINTS (1 << 3) /* source of config is hints */
/*
* Simplified accessors for isa devices