ulpt_at_usb.c revision 1.8
11.8Spgoyette/* $NetBSD: ulpt_at_usb.c,v 1.8 2019/01/27 02:08:49 pgoyette Exp $ */ 21.8Spgoyette 31.8Spgoyette#include <sys/cdefs.h> 41.8Spgoyette__KERNEL_RCSID(0, "$NetBSD: ulpt_at_usb.c,v 1.8 2019/01/27 02:08:49 pgoyette Exp $"); 51.7Salnsn 61.7Salnsn#include <sys/cdefs.h> 71.7Salnsn__KERNEL_RCSID(0, "$NetBSD: ulpt_at_usb.c,v 1.8 2019/01/27 02:08:49 pgoyette Exp $"); 81.1Spooka 91.1Spooka#include <sys/param.h> 101.1Spooka#include <sys/conf.h> 111.1Spooka#include <sys/device.h> 121.1Spooka#include <sys/mount.h> 131.1Spooka#include <sys/stat.h> 141.1Spooka 151.3Spooka#include "ioconf.c" 161.1Spooka 171.6Spooka#include <rump-sys/kern.h> 181.6Spooka#include <rump-sys/vfs.h> 191.1Spooka 201.2SpookaRUMP_COMPONENT(RUMP_COMPONENT_DEV) 211.1Spooka{ 221.1Spooka extern struct cdevsw ulpt_cdevsw; 231.1Spooka devmajor_t bmaj, cmaj; 241.1Spooka 251.5Spooka config_init_component(cfdriver_ioconf_ulpt, 261.5Spooka cfattach_ioconf_ulpt, cfdata_ioconf_ulpt); 271.1Spooka 281.1Spooka bmaj = cmaj = -1; 291.1Spooka FLAWLESSCALL(devsw_attach("ulpt", NULL, &bmaj, &ulpt_cdevsw, &cmaj)); 301.1Spooka 311.1Spooka FLAWLESSCALL(rump_vfs_makedevnodes(S_IFCHR, "/dev/ulpt", '0', 321.1Spooka cmaj, 0, 1)); 331.1Spooka} 34