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