diff options
author | n_hibma <n_hibma@FreeBSD.org> | 2000-03-16 09:32:59 +0000 |
---|---|---|
committer | n_hibma <n_hibma@FreeBSD.org> | 2000-03-16 09:32:59 +0000 |
commit | 7cb4860e818f92c566840532cf9cb975148d7cca (patch) | |
tree | 928f45242121f0567968ed8d79f8ef610ffbaded /sys/sys/bus_private.h | |
parent | 5c1a46084c3e3ce12aa997a78029d705ae6b3c9e (diff) | |
download | FreeBSD-src-7cb4860e818f92c566840532cf9cb975148d7cca.zip FreeBSD-src-7cb4860e818f92c566840532cf9cb975148d7cca.tar.gz |
Instead of using the next unit available, use the first unit available.
This avoids the unit number from going up indefinitely when
diconnecting and connecting 2 devices alternately.
Noticed by: nsayer (quite a while ago)
And stop calling DEVICE_NOMATCH at probe repeatedly. This stops the
message on the PCI VGA board from being printed when loading a PCI driver.
Diffstat (limited to 'sys/sys/bus_private.h')
-rw-r--r-- | sys/sys/bus_private.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/bus_private.h b/sys/sys/bus_private.h index 265a761..485e921 100644 --- a/sys/sys/bus_private.h +++ b/sys/sys/bus_private.h @@ -53,7 +53,6 @@ struct devclass { char *name; device_t *devices; /* array of devices indexed by unit */ int maxunit; /* size of devices array */ - int nextunit; /* next unused unit number */ }; /* @@ -134,6 +133,7 @@ struct device { #define DF_WILDCARD 4 /* unit was originally wildcard */ #define DF_DESCMALLOCED 8 /* description was malloced */ #define DF_QUIET 16 /* don't print verbose attach message */ +#define DF_DONENOMATCH 32 /* don't execute DEVICE_NOMATCH again */ u_char order; /* order from device_add_child_ordered() */ u_char pad; #ifdef DEVICE_SYSCTLS |