From 6d2a8f1ca04bc1f3aec89cbb291b2faf241876d2 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Tue, 19 Jan 1999 00:13:05 +0000 Subject: Call the xpt_init() hook during at the start of the configure() process via SYSINIT(). This gets a little closer to making cam useable as a module. --- sys/cam/cam_xpt.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/sys/cam/cam_xpt.c b/sys/cam/cam_xpt.c index 740866225539..2d3b3d8fd718 100644 --- a/sys/cam/cam_xpt.c +++ b/sys/cam/cam_xpt.c @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: cam_xpt.c,v 1.35 1999/01/07 01:11:24 ken Exp $ + * $Id: cam_xpt.c,v 1.36 1999/01/14 06:03:59 gibbs Exp $ */ #include #include @@ -530,8 +530,9 @@ u_int32_t cam_dflags; #endif /* CAMDEBUG */ #endif /* CAM_DEBUG_BUS || CAM_DEBUG_TARGET || CAM_DEBUG_LUN */ -/* Forward declarations for private functions */ -void xpt_init(void); +/* Our boot-time initialization hook */ +static void xpt_init(void *); +SYSINIT(cam, SI_SUB_CONFIGURE, SI_ORDER_SECOND, xpt_init, NULL); static cam_status xpt_compile_path(struct cam_path *new_path, struct cam_periph *perph, @@ -1138,8 +1139,9 @@ ptstartover: } /* Functions accessed by the peripheral drivers */ -void -xpt_init() +static void +xpt_init(dummy) + void *dummy; { struct cam_sim *xpt_sim; struct cam_path *path; -- cgit v1.3