Add ISACFGATTR_HINTS flag to allow detection of a device that was created

as a result of the hints mechanism.
This commit is contained in:
Matthew N. Dodd 2005-04-13 03:26:24 +00:00
parent 15f3d79b55
commit 2ca94fca7e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=144985
2 changed files with 3 additions and 0 deletions

View File

@ -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

View File

@ -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