add a new init-related calls

This commit is contained in:
pooka 2009-10-01 21:43:29 +00:00
parent b7ab3bd781
commit 73ad6a8b6e
2 changed files with 14 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: rump_dev.c,v 1.5 2009/09/21 12:14:47 pooka Exp $ */ /* $NetBSD: rump_dev.c,v 1.6 2009/10/01 21:43:29 pooka Exp $ */
/* /*
* Copyright (c) 2009 Antti Kantee. All Rights Reserved. * Copyright (c) 2009 Antti Kantee. All Rights Reserved.
@ -26,7 +26,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: rump_dev.c,v 1.5 2009/09/21 12:14:47 pooka Exp $"); __KERNEL_RCSID(0, "$NetBSD: rump_dev.c,v 1.6 2009/10/01 21:43:29 pooka Exp $");
#include <sys/param.h> #include <sys/param.h>
#include <sys/device.h> #include <sys/device.h>
@ -39,10 +39,14 @@ __weak_alias(rump_dev_cgd_init,nocomponent);
__weak_alias(rump_dev_raidframe_init,nocomponent); __weak_alias(rump_dev_raidframe_init,nocomponent);
__weak_alias(rump_dev_netsmb_init,nocomponent); __weak_alias(rump_dev_netsmb_init,nocomponent);
__weak_alias(rump_dev_rnd_init,nocomponent); __weak_alias(rump_dev_rnd_init,nocomponent);
__weak_alias(rump_dev_rumpusbhc_init,nocomponent);
__weak_alias(rump_device_configuration,nocomponent);
void void
rump_dev_init(void) rump_dev_init(void)
{ {
extern int cold;
config_init_mi(); config_init_mi();
@ -50,9 +54,13 @@ rump_dev_init(void)
rump_dev_raidframe_init(); rump_dev_raidframe_init();
rump_dev_netsmb_init(); rump_dev_netsmb_init();
rump_dev_rnd_init(); rump_dev_rnd_init();
rump_dev_rumpusbhc_init();
rump_pdev_finalize(); rump_pdev_finalize();
rump_device_configuration();
cold = 0;
if (config_rootfound("mainbus", NULL) == NULL) if (config_rootfound("mainbus", NULL) == NULL)
panic("no mainbus"); panic("no mainbus");

View File

@ -1,4 +1,4 @@
/* $NetBSD: rump_dev_private.h,v 1.4 2009/09/08 20:15:51 pooka Exp $ */ /* $NetBSD: rump_dev_private.h,v 1.5 2009/10/01 21:43:29 pooka Exp $ */
/* /*
* Copyright (c) 2009 Antti Kantee. All Rights Reserved. * Copyright (c) 2009 Antti Kantee. All Rights Reserved.
@ -37,5 +37,8 @@ void rump_dev_cgd_init(void);
void rump_dev_raidframe_init(void); void rump_dev_raidframe_init(void);
void rump_dev_netsmb_init(void); void rump_dev_netsmb_init(void);
void rump_dev_rnd_init(void); void rump_dev_rnd_init(void);
void rump_dev_rumpusbhc_init(void);
void rump_device_configuration(void);
#endif /* _SYS_RUMP_DEV_PRIVATE_H_ */ #endif /* _SYS_RUMP_DEV_PRIVATE_H_ */