/* $NetBSD: ucom_at_usb.c,v 1.12 2022/03/31 19:30:17 pgoyette Exp $ */ #include __KERNEL_RCSID(0, "$NetBSD: ucom_at_usb.c,v 1.12 2022/03/31 19:30:17 pgoyette Exp $"); #include #include #include #include #include #include #include "ioconf.c" #include #include void tty_init(void); RUMP_COMPONENT(RUMP_COMPONENT_DEV) { extern struct cdevsw ucom_cdevsw; devmajor_t cmaj, bmaj; bmaj = cmaj = -1; FLAWLESSCALL(devsw_attach("ucom", NULL, &bmaj, &ucom_cdevsw, &cmaj)); config_init_component(cfdriver_ioconf_ucom, cfattach_ioconf_ucom, cfdata_ioconf_ucom); FLAWLESSCALL(rump_vfs_makedevnodes(S_IFCHR, "/dev/ttyU", '0', cmaj, 0, 2)); FLAWLESSCALL(rump_vfs_makedevnodes(S_IFCHR, "/dev/dtyU", '0', cmaj, 0x80000, 2)); tty_init(); }