mirror of
https://github.com/Stichting-MINIX-Research-Foundation/netbsd.git
synced 2025-08-10 06:29:51 -04:00
36 lines
803 B
C
36 lines
803 B
C
/* $NetBSD: ucom_at_usb.c,v 1.7 2010/03/26 15:51:55 pooka Exp $ */
|
|
|
|
#include <sys/param.h>
|
|
#include <sys/types.h>
|
|
#include <sys/conf.h>
|
|
#include <sys/device.h>
|
|
#include <sys/kmem.h>
|
|
#include <sys/stat.h>
|
|
|
|
#include "ioconf.c"
|
|
|
|
#include "rump_private.h"
|
|
#include "rump_dev_private.h"
|
|
#include "rump_vfs_private.h"
|
|
|
|
void tty_init(void);
|
|
|
|
RUMP_COMPONENT(RUMP_COMPONENT_DEV)
|
|
{
|
|
extern struct cdevsw ucom_cdevsw;
|
|
devmajor_t cmaj, bmaj;
|
|
|
|
config_init_component(cfdriver_ioconf_ucom,
|
|
cfattach_ioconf_ucom, cfdata_ioconf_ucom);
|
|
|
|
bmaj = cmaj = -1;
|
|
FLAWLESSCALL(devsw_attach("ucom", NULL, &bmaj, &ucom_cdevsw, &cmaj));
|
|
|
|
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();
|
|
}
|