1 /* $NetBSD: ulpt_at_usb.c,v 1.5 2010/03/26 15:51:55 pooka Exp $ */ 2 3 #include <sys/param.h> 4 #include <sys/conf.h> 5 #include <sys/device.h> 6 #include <sys/mount.h> 7 #include <sys/stat.h> 8 9 #include "ioconf.c" 10 11 #include "rump_private.h" 12 #include "rump_dev_private.h" 13 #include "rump_vfs_private.h" 14 15 RUMP_COMPONENT(RUMP_COMPONENT_DEV) 16 { 17 extern struct cdevsw ulpt_cdevsw; 18 devmajor_t bmaj, cmaj; 19 20 config_init_component(cfdriver_ioconf_ulpt, 21 cfattach_ioconf_ulpt, cfdata_ioconf_ulpt); 22 23 bmaj = cmaj = -1; 24 FLAWLESSCALL(devsw_attach("ulpt", NULL, &bmaj, &ulpt_cdevsw, &cmaj)); 25 26 FLAWLESSCALL(rump_vfs_makedevnodes(S_IFCHR, "/dev/ulpt", '0', 27 cmaj, 0, 1)); 28 } 29