ulpt_at_usb.c revision 1.10
11.10Spgoyette/* $NetBSD: ulpt_at_usb.c,v 1.10 2022/03/31 19:30:18 pgoyette Exp $ */ 21.8Spgoyette 31.8Spgoyette#include <sys/cdefs.h> 41.10Spgoyette__KERNEL_RCSID(0, "$NetBSD: ulpt_at_usb.c,v 1.10 2022/03/31 19:30:18 pgoyette Exp $"); 51.1Spooka 61.1Spooka#include <sys/param.h> 71.1Spooka#include <sys/conf.h> 81.1Spooka#include <sys/device.h> 91.1Spooka#include <sys/mount.h> 101.1Spooka#include <sys/stat.h> 111.1Spooka 121.3Spooka#include "ioconf.c" 131.1Spooka 141.6Spooka#include <rump-sys/kern.h> 151.6Spooka#include <rump-sys/vfs.h> 161.1Spooka 171.2SpookaRUMP_COMPONENT(RUMP_COMPONENT_DEV) 181.1Spooka{ 191.1Spooka extern struct cdevsw ulpt_cdevsw; 201.1Spooka devmajor_t bmaj, cmaj; 211.1Spooka 221.10Spgoyette bmaj = cmaj = -1; 231.10Spgoyette FLAWLESSCALL(devsw_attach("ulpt", NULL, &bmaj, &ulpt_cdevsw, &cmaj)); 241.10Spgoyette 251.5Spooka config_init_component(cfdriver_ioconf_ulpt, 261.5Spooka cfattach_ioconf_ulpt, cfdata_ioconf_ulpt); 271.1Spooka 281.1Spooka FLAWLESSCALL(rump_vfs_makedevnodes(S_IFCHR, "/dev/ulpt", '0', 291.1Spooka cmaj, 0, 1)); 301.1Spooka} 31