Changeset View
Changeset View
Standalone View
Standalone View
stable/11/sys/dev/mcd/mcd.c
Show First 20 Lines • Show All 203 Lines • ▼ Show 20 Lines | |||||
#endif | #endif | ||||
MCD_UNLOCK(sc); | MCD_UNLOCK(sc); | ||||
/* name filled in probe */ | /* name filled in probe */ | ||||
sc->mcd_dev_t = make_dev(&mcd_cdevsw, 8 * unit, | sc->mcd_dev_t = make_dev(&mcd_cdevsw, 8 * unit, | ||||
UID_ROOT, GID_OPERATOR, 0640, "mcd%d", unit); | UID_ROOT, GID_OPERATOR, 0640, "mcd%d", unit); | ||||
sc->mcd_dev_t->si_drv1 = (void *)sc; | sc->mcd_dev_t->si_drv1 = (void *)sc; | ||||
callout_init_mtx(&sc->timer, &sc->mtx, 0); | callout_init_mtx(&sc->timer, &sc->mtx, 0); | ||||
device_printf(sc->dev, | |||||
"WARNING: This driver is deprecated and will be removed.\n"); | |||||
return (0); | return (0); | ||||
} | } | ||||
static int | static int | ||||
mcdopen(struct cdev *dev, int flags, int fmt, struct thread *td) | mcdopen(struct cdev *dev, int flags, int fmt, struct thread *td) | ||||
{ | { | ||||
struct mcd_softc *sc; | struct mcd_softc *sc; | ||||
▲ Show 20 Lines • Show All 1,433 Lines • Show Last 20 Lines |