1*97f8debdSpgoyette /* $NetBSD: ulpt_at_usb.c,v 1.10 2022/03/31 19:30:18 pgoyette Exp $ */
2a57097d0Salnsn
3a57097d0Salnsn #include <sys/cdefs.h>
4*97f8debdSpgoyette __KERNEL_RCSID(0, "$NetBSD: ulpt_at_usb.c,v 1.10 2022/03/31 19:30:18 pgoyette Exp $");
5a7334989Spooka
6a7334989Spooka #include <sys/param.h>
7a7334989Spooka #include <sys/conf.h>
8a7334989Spooka #include <sys/device.h>
9a7334989Spooka #include <sys/mount.h>
10a7334989Spooka #include <sys/stat.h>
11a7334989Spooka
121590160eSpooka #include "ioconf.c"
13a7334989Spooka
146bb51422Spooka #include <rump-sys/kern.h>
156bb51422Spooka #include <rump-sys/vfs.h>
16a7334989Spooka
RUMP_COMPONENT(RUMP_COMPONENT_DEV)17510a73e0Spooka RUMP_COMPONENT(RUMP_COMPONENT_DEV)
18a7334989Spooka {
19a7334989Spooka extern struct cdevsw ulpt_cdevsw;
20a7334989Spooka devmajor_t bmaj, cmaj;
21a7334989Spooka
22a7334989Spooka bmaj = cmaj = -1;
23a7334989Spooka FLAWLESSCALL(devsw_attach("ulpt", NULL, &bmaj, &ulpt_cdevsw, &cmaj));
24a7334989Spooka
25*97f8debdSpgoyette config_init_component(cfdriver_ioconf_ulpt,
26*97f8debdSpgoyette cfattach_ioconf_ulpt, cfdata_ioconf_ulpt);
27*97f8debdSpgoyette
28a7334989Spooka FLAWLESSCALL(rump_vfs_makedevnodes(S_IFCHR, "/dev/ulpt", '0',
29a7334989Spooka cmaj, 0, 1));
30a7334989Spooka }
31