path: root/sys/sys/bus.h
diff options
authorWarner Losh <imp@FreeBSD.org>2018-05-07 21:09:08 +0000
committerWarner Losh <imp@FreeBSD.org>2018-05-07 21:09:08 +0000
commitad7142757b110d924bcd3fe0deb76ba5d11e7f74 (patch)
treeac81e6db26dda5381580d800f49cf079dc1184f3 /sys/sys/bus.h
parentbed34b0b04082b65572333c9dccd114adf8b180b (diff)
Add device_quiet_children() and device_has_quiet_children()
If you add a child to a device that has quiet children, we'll automatically set the quiet flag on the children, and its children. This is indended for things like CPU that have a large amount of repetition in booting that adds nothing.
Notes: svn path=/head/; revision=333333
Diffstat (limited to 'sys/sys/bus.h')
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/sys/bus.h b/sys/sys/bus.h
index fa5ada3867bb..66c227c66d98 100644
--- a/sys/sys/bus.h
+++ b/sys/sys/bus.h
@@ -89,6 +89,7 @@ struct u_device {
#define DF_EXTERNALSOFTC 0x40 /* softc not allocated by us */
#define DF_REBID 0x80 /* Can rebid after attach */
#define DF_SUSPENDED 0x100 /* Device is suspended. */
+#define DF_QUIET_CHILDREN 0x200 /* Default to quiet for all my children */
* @brief Device request structure used for ioctl's.
@@ -584,6 +585,7 @@ device_state_t device_get_state(device_t dev);
int device_get_unit(device_t dev);
struct sysctl_ctx_list *device_get_sysctl_ctx(device_t dev);
struct sysctl_oid *device_get_sysctl_tree(device_t dev);
+int device_has_quiet_children(device_t dev);
int device_is_alive(device_t dev); /* did probe succeed? */
int device_is_attached(device_t dev); /* did attach succeed? */
int device_is_enabled(device_t dev);
@@ -597,6 +599,7 @@ int device_probe_and_attach(device_t dev);
int device_probe_child(device_t bus, device_t dev);
int device_quiesce(device_t dev);
void device_quiet(device_t dev);
+void device_quiet_children(device_t dev);
void device_set_desc(device_t dev, const char* desc);
void device_set_desc_copy(device_t dev, const char* desc);
int device_set_devclass(device_t dev, const char *classname);