From c5d29ba41c872c7e6868460f442c18d119c4c04a Mon Sep 17 00:00:00 2001 From: mdodd Date: Wed, 13 Apr 2005 03:26:24 +0000 Subject: Add ISACFGATTR_HINTS flag to allow detection of a device that was created as a result of the hints mechanism. --- sys/isa/isahint.c | 2 ++ sys/isa/isavar.h | 1 + 2 files changed, 3 insertions(+) (limited to 'sys/isa') diff --git a/sys/isa/isahint.c b/sys/isa/isahint.c index 32833f1..65a0d5c 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 ab87fa3..86641ce 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 -- cgit v1.1