aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/bus.h
diff options
context:
space:
mode:
authorEmmanuel Vadot <manu@FreeBSD.org>2018-03-03 12:43:11 +0000
committerEmmanuel Vadot <manu@FreeBSD.org>2018-03-03 12:43:11 +0000
commita213ad03dcb9ddf7fd9973c1f78411c1d145bba2 (patch)
tree9af4c03a89b040f8a75537bcabb2e0afdcd90ac5 /sys/sys/bus.h
parenta1c11a0a7be38352d83738abedc1cf0ef3c7499a (diff)
downloadsrc-a213ad03dcb9ddf7fd9973c1f78411c1d145bba2.tar.gz
src-a213ad03dcb9ddf7fd9973c1f78411c1d145bba2.zip
Introduce BUS_PASS_SUPPORTDEV
The reason for this new pass is : The earlier pass names are really specific (interrupt, timer, scheduler etc ..) and making a driver that other device driver (that attach at DEFAULT pass) needs probe at earlier pass can be confiusing. We can live with GPIO driver at INTERRUPT pass because they are often an interrupt controller too but having a usb phy driver probed at RESOURCES (or SCHEDULER for example) is silly. The number was choosen to have a lot of margin if we want to introduce other pass in the futur. Reviewed by: ian, imp, kevans Differential Revision: https://reviews.freebsd.org/D14568
Notes
Notes: svn path=/head/; revision=330335
Diffstat (limited to 'sys/sys/bus.h')
-rw-r--r--sys/sys/bus.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/bus.h b/sys/sys/bus.h
index 973f284a790e..fa5ada3867bb 100644
--- a/sys/sys/bus.h
+++ b/sys/sys/bus.h
@@ -702,6 +702,7 @@ void bus_data_generation_update(void);
#define BUS_PASS_INTERRUPT 40 /* Interrupt controllers. */
#define BUS_PASS_TIMER 50 /* Timers and clocks. */
#define BUS_PASS_SCHEDULER 60 /* Start scheduler. */
+#define BUS_PASS_SUPPORTDEV 100000 /* Drivers which support DEFAULT drivers. */
#define BUS_PASS_DEFAULT __INT_MAX /* Everything else. */
#define BUS_PASS_ORDER_FIRST 0