Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Mar 2018 12:43:11 +0000 (UTC)
From:      Emmanuel Vadot <manu@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r330335 - head/sys/sys
Message-ID:  <201803031243.w23ChBMQ096308@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: manu
Date: Sat Mar  3 12:43:11 2018
New Revision: 330335
URL: https://svnweb.freebsd.org/changeset/base/330335

Log:
  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

Modified:
  head/sys/sys/bus.h

Modified: head/sys/sys/bus.h
==============================================================================
--- head/sys/sys/bus.h	Sat Mar  3 11:53:44 2018	(r330334)
+++ head/sys/sys/bus.h	Sat Mar  3 12:43:11 2018	(r330335)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803031243.w23ChBMQ096308>