NetBSD/sys/rump/dev/wip/libums/ums_at_usb.c
pooka 57959b3859 Convert to pseudo-root.
These can be moved out of wip (once I get some time).
2010-03-08 10:57:25 +00:00

32 lines
750 B
C

/* $NetBSD: ums_at_usb.c,v 1.4 2010/03/08 10:57:25 pooka Exp $ */
#include <sys/param.h>
#include <sys/conf.h>
#include <sys/device.h>
#include <sys/mount.h>
#include "ioconf.c"
#include "rump_private.h"
#include "rump_dev_private.h"
#include "rump_vfs_private.h"
#define FLAWLESSCALL(call) \
do { \
int att_error; \
if ((att_error = call) != 0) \
panic("\"%s\" failed", #call); \
} while (/*CONSTCOND*/0)
RUMP_COMPONENT(RUMP_COMPONENT_DEV)
{
FLAWLESSCALL(config_cfdata_attach(cfdata_ums, 0));
FLAWLESSCALL(config_cfdriver_attach(&uhidev_cd));
FLAWLESSCALL(config_cfattach_attach("uhidev", &uhidev_ca));
FLAWLESSCALL(config_cfdriver_attach(&ums_cd));
FLAWLESSCALL(config_cfattach_attach("ums", &ums_ca));
}