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:
parent
3ff751d8da
commit
6221bff975
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user