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:
mdodd 2005-04-13 03:26:24 +00:00
parent 3ff751d8da
commit 6221bff975
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