wscons_component.c revision 1.1.6.2 1 1.1.6.2 yamt /* $NetBSD: wscons_component.c,v 1.1.6.2 2014/05/22 11:41:13 yamt Exp $ */
2 1.1.6.2 yamt
3 1.1.6.2 yamt #include <sys/param.h>
4 1.1.6.2 yamt #include <sys/conf.h>
5 1.1.6.2 yamt #include <sys/device.h>
6 1.1.6.2 yamt #include <sys/mount.h>
7 1.1.6.2 yamt #include <sys/stat.h>
8 1.1.6.2 yamt
9 1.1.6.2 yamt #include "ioconf.c"
10 1.1.6.2 yamt
11 1.1.6.2 yamt #include "rump_private.h"
12 1.1.6.2 yamt #include "rump_dev_private.h"
13 1.1.6.2 yamt #include "rump_vfs_private.h"
14 1.1.6.2 yamt
15 1.1.6.2 yamt RUMP_COMPONENT(RUMP_COMPONENT_DEV)
16 1.1.6.2 yamt {
17 1.1.6.2 yamt extern struct cdevsw wskbd_cdevsw, wsmouse_cdevsw;
18 1.1.6.2 yamt devmajor_t bmaj, cmaj;
19 1.1.6.2 yamt
20 1.1.6.2 yamt config_init_component(cfdriver_ioconf_wscons,
21 1.1.6.2 yamt cfattach_ioconf_wscons, cfdata_ioconf_wscons);
22 1.1.6.2 yamt
23 1.1.6.2 yamt bmaj = cmaj = -1;
24 1.1.6.2 yamt FLAWLESSCALL(devsw_attach("wskbd", NULL, &bmaj, &wskbd_cdevsw, &cmaj));
25 1.1.6.2 yamt FLAWLESSCALL(rump_vfs_makeonedevnode(S_IFCHR, "/dev/wskbd", cmaj, 0));
26 1.1.6.2 yamt
27 1.1.6.2 yamt bmaj = cmaj = -1;
28 1.1.6.2 yamt FLAWLESSCALL(devsw_attach("wsmouse", NULL, &bmaj,
29 1.1.6.2 yamt &wsmouse_cdevsw, &cmaj));
30 1.1.6.2 yamt FLAWLESSCALL(rump_vfs_makeonedevnode(S_IFCHR, "/dev/wsmouse", cmaj, 0));
31 1.1.6.2 yamt }
32