summaryrefslogtreecommitdiffstats
path: root/sys/cam
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-01-19 00:13:05 +0000
committerpeter <peter@FreeBSD.org>1999-01-19 00:13:05 +0000
commit0c42a357a5ea6e2a572ea150ba4c769968543cea (patch)
tree6adb3be339da68ecffe877537729c4baf2864405 /sys/cam
parentc4b1b5e86e5bc07619d2557dae1d86f068b496f1 (diff)
downloadFreeBSD-src-0c42a357a5ea6e2a572ea150ba4c769968543cea.zip
FreeBSD-src-0c42a357a5ea6e2a572ea150ba4c769968543cea.tar.gz
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.
Diffstat (limited to 'sys/cam')
-rw-r--r--sys/cam/cam_xpt.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/cam/cam_xpt.c b/sys/cam/cam_xpt.c
index 7408662..2d3b3d8 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 <sys/param.h>
#include <sys/systm.h>
@@ -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;
OpenPOWER on IntegriCloud